CN113742136B - Intelligent backup and recovery method based on safe embedded system - Google Patents

Intelligent backup and recovery method based on safe embedded system Download PDF

Info

Publication number
CN113742136B
CN113742136B CN202111025243.7A CN202111025243A CN113742136B CN 113742136 B CN113742136 B CN 113742136B CN 202111025243 A CN202111025243 A CN 202111025243A CN 113742136 B CN113742136 B CN 113742136B
Authority
CN
China
Prior art keywords
subsystem
source
backup
emergency
starting
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
CN202111025243.7A
Other languages
Chinese (zh)
Other versions
CN113742136A (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.)
Ruishengke Information Shenzhen Co ltd
Original Assignee
Ruishengke Information Shenzhen Co ltd
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 Ruishengke Information Shenzhen Co ltd filed Critical Ruishengke Information Shenzhen Co ltd
Priority to CN202111025243.7A priority Critical patent/CN113742136B/en
Publication of CN113742136A publication Critical patent/CN113742136A/en
Application granted granted Critical
Publication of CN113742136B publication Critical patent/CN113742136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Abstract

The invention discloses an intelligent backup and recovery method based on a safe embedded system, wherein the system comprises a start management subsystem, a source subsystem, an emergency subsystem and a backup memory; the start management subsystem comprises two first communication modules and two start control modules, the two start control modules are respectively connected with the source subsystem and the emergency subsystem, and the two first communication modules are respectively connected with the source subsystem and the emergency subsystem; the source subsystem is connected with the emergency subsystem, and both the source subsystem and the emergency subsystem are connected with the backup memory. By adopting the intelligent backup and recovery method based on the safe embedded system, the backup and recovery of the system can be realized without excessive manual maintenance and hardware cost, intelligent automatic backup is realized in the using process, automatic intelligent recovery is realized when problems occur, the safety of the embedded system is greatly improved, the user experience is greatly improved, and the maintenance work of the system is reduced.

Description

Intelligent backup and recovery method based on safe embedded system
Technical Field
The invention relates to the technical field of embedded systems, in particular to an intelligent backup and recovery method based on a safe embedded system.
Background
The embedded system is generally a special computer system based on embedded computer technology and centered on application, and is suitable for a special computer system with high requirements on functions, reliability, cost, volume, power consumption and the like, and common mobile phones, automobiles, entertainment systems and the like all use the embedded system. In the industrial control field, for example, the embedded system plays a very important role in the fields of industrial robots, satellites, flight systems, power automation protection and the like.
Backup and recovery of embedded systems are also an extremely important function in more demanding situations. In the prior art, a state flag is provided to determine whether the system needs to be started and restored through backup by adding a backup memory according to the last starting condition of the system, but the used backup is stored locally, and when the hardware fails or is replaced and used, the complete restoration of the original running configuration cannot be simply realized, and the flexibility is poor. Meanwhile, manual maintenance is needed, the maintenance cost is improved, and the safety and the stability are poor.
Disclosure of Invention
The invention aims to provide an intelligent backup and recovery method based on a safe embedded system, which realizes the backup and recovery of the system without excessive manual maintenance and hardware cost, intelligently and automatically backs up in the using process, automatically and intelligently recovers when problems occur, greatly improves the safety of the embedded system, improves the user experience, and simultaneously reduces the maintenance work of the system.
In order to achieve the above object, the present invention provides a secure embedded system, which includes a start management subsystem, a source subsystem, an emergency subsystem and a backup memory;
the starting management subsystem comprises two first communication modules and two starting control modules, the two starting control modules are respectively connected with the source subsystem and the emergency subsystem, and the two first communication modules are respectively connected with the source subsystem and the emergency subsystem;
the source subsystem comprises a second communication module, a first starting controlled module and a first interface module, wherein the first starting controlled module is connected with one of the starting control modules, and the second communication module is connected with one of the first communication modules;
the emergency subsystem comprises a third communication module, a second starting controlled module and a second interface module, the second starting controlled module is connected with the other starting control module, and the third communication module is connected with the other first communication module;
the first interface module is connected with the second interface module, and both the first interface module and the second interface module are connected with the backup memory.
Preferably, the backup memory is an internal storage device or an external storage device or a combination thereof.
Preferably, the first interface module and the second interface module each include two SCSI and a USB interface, the external storage device is connected to the USB interface and one of the SCSI of the first interface module and the second interface module, and the first interface module and the second interface module are connected through the other SCSI.
A method for intelligent backup and recovery based on a safe embedded system comprises the following specific steps:
step S1: the starting management subsystem acquires the states of a source subsystem and the emergency subsystem through a first communication module and a starting control module and determines a starting mode;
step S2: after the source subsystem is started, the source subsystem is communicated with the start management subsystem and informs the start management subsystem whether the start of the source subsystem is normal or not;
after the emergency subsystem is started, the starting emergency subsystem is communicated with the starting management subsystem, and the starting management subsystem controls the emergency subsystem to execute a corresponding source system, wherein the corresponding source system comprises a backup source system and a recovery source system;
step S3: when the backup source system is executed, the emergency subsystem reads the source subsystem through the SCSI connected with the source subsystem, writes the read source subsystem into the backup memory through the SCSI or USB connected with the backup memory, and backs up the source subsystem into the backup memory;
when executing the restoration of the source system, the emergency subsystem reads the backup of the backup storage through the SCSI or the USB connected to the backup storage, and restores the source subsystem by rewriting the source subsystem through the SCSI connected to the source subsystem.
Further, step S1 is specifically that the start management subsystem communicates with the source subsystem through the first communication module and obtains a status signal indicating whether the source subsystem can be started normally, and the start management subsystem determines whether the source subsystem is started through the start control module;
the starting management subsystem is communicated with the emergency subsystem through the first communication module and acquires a backup source system state signal and a recovery source system state signal of the emergency subsystem, and the starting management subsystem is started from the emergency subsystem through the starting control module.
Further, in step S2, after the source subsystem is updated, the source subsystem automatically generates a backup signal to the first communication module through the second communication module, and when it is determined that the device is not used, that is, after the power-off key is pressed, the startup management subsystem automatically starts up from the emergency subsystem, performs backup on the source system, and then shuts down.
Further, in step S2, in the using process, when the source subsystem is abnormal, the start management subsystem obtains a state signal of the source subsystem abnormality, the start management subsystem controls the source system to restart through the start control module to re-determine whether the source subsystem is abnormal, when the source subsystem is abnormal for the second time, the start management subsystem starts from the emergency subsystem through the start control module and generates a recovery signal to the emergency subsystem to execute the operation of the recovery source system, and the emergency subsystem sends a recovery completion signal to the dynamic management system after recovering the source system; the source subsystem reads the backup of the source system from the backup memory through the first interface module, the backup memory writes the backup into the source subsystem for recovery through the SCSI connected with the source subsystem, after the recovery is completed, the source subsystem sends a recovery completion signal to the start management subsystem, and the start management subsystem controls the system to start from the source subsystem through the start control module to recover the normal equipment work.
Therefore, the method for intelligently backing up and recovering based on the safe embedded system has the following beneficial effects:
(1) the source subsystem can automatically backup intelligently, when the source subsystem is updated, the source subsystem automatically generates a backup signal to the first communication module through the second communication module, when the device is determined not to be used, namely, after a shutdown key is pressed, the management subsystem is started to automatically start from the emergency subsystem, the source subsystem is backed up, and then the device is shut down. The user only needs to click the power-off key as usual, and can automatically back up the system without redundant operation.
(2) When the source subsystem is abnormal, the emergency subsystem is started, the backup source system is started and the normal work of the equipment is recovered, and the whole recovery process does not need human intervention.
(3) The embedded system safety is improved, the starting management subsystem, the source subsystem and the emergency subsystem can run independently and do not depend on each other, the file system needs to be read and written continuously when the source subsystem works normally, the starting management subsystem and the emergency subsystem are single and fixed in function relative to the source subsystem, products cannot be changed after being solidified, and the starting management subsystem and the emergency subsystem are stable and safe. Therefore, the source system is backed up and restored through the two safe systems, the stability and the safety of the whole embedded system are greatly improved, and excessive extra hardware cost is not required to be increased.
(4) The system is flexible in setting, the startup management subsystem communicates with the source subsystem to receive a direct instruction of a user, the user can issue an instruction to the startup management subsystem through the operation source subsystem when the embedded system normally works, the mode and time of the backup source system are set according to the user's will, and the mode and time of the recovery source system are set according to the user's will, so that the system is flexible in setting and convenient to operate.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
Fig. 1 is a schematic structural diagram of a secure embedded system according to the present invention.
Detailed Description
Examples
Fig. 1 is a schematic structural diagram of a secure embedded system according to the present invention, and as shown in the figure, the secure embedded system includes a boot management subsystem, a source subsystem, an emergency subsystem, and a backup memory. The starting management subsystem comprises two first communication modules and two starting control modules, the two starting control modules are respectively connected with the source subsystem and the emergency subsystem, and the two first communication modules are respectively connected with the source subsystem and the emergency subsystem. The source subsystem comprises a second communication module, a first starting controlled module and a first interface module, wherein the first starting controlled module is connected with one of the starting control modules, and the second communication module is connected with one of the first communication modules. The emergency subsystem comprises a third communication module, a second starting controlled module and a second interface module, the second starting controlled module is connected with the other starting control module, and the third communication module is connected with the other first communication module. The first interface module is connected with the second interface module, and both the first interface module and the second interface module are connected with the backup memory. The first interface module and the second interface module both comprise two SCSI and a USB interface, the external storage device is connected with the USB interface and one of the SCSI of the first interface module and the second interface module, and the first interface module is connected with the second interface module through the other SCSI. The backup memory is an internal storage device or an external storage device or a combination thereof, and according to the actual situation, for the source subsystem with the storage device, a part of independent storage space can be separated from the storage device of the source subsystem for backup without increasing extra cost; for a source subsystem without a storage device, a separate external storage device or a portable storage device can be used, and the embedded system is not forced to be necessarily attached with additional storage.
The start-up management subsystem, the source subsystem and the emergency subsystem can operate independently and do not depend on each other, the source subsystem needs to read and write the file system continuously during normal operation, the start-up management subsystem and the emergency subsystem are single and fixed in function relative to the source subsystem, products cannot be changed after being cured, and the start-up management subsystem and the emergency subsystem are stable and safe. Therefore, the source system is backed up and restored through the two safe systems, and the stability and the safety of the whole embedded system are greatly improved. Meanwhile, the emergency system can be realized by only adding a cheap micro control unit and a plurality of MB memories (used for storing the emergency system) without adding excessive additional hardware cost.
A method for intelligent backup and recovery based on a safe embedded system comprises the following specific steps:
step S1: the starting management subsystem acquires the states of the source subsystem and the emergency subsystem through the first communication module and the starting control module and determines a starting mode. The starting management subsystem is communicated with the source subsystem through a first communication module and acquires a state signal indicating whether the source subsystem can be started normally, and the starting management subsystem determines whether the source subsystem is started through a starting control module;
the starting management subsystem is communicated with the emergency subsystem through the first communication module and acquires a backup source system state signal and a recovery source system state signal of the emergency subsystem, and the starting management subsystem is started from the emergency subsystem through the starting control module.
Step S2: when the source subsystem is started, the source subsystem communicates with the start management subsystem and informs the start management subsystem whether the source subsystem is started normally. During use or when the system is just started up, when the source subsystem is abnormal, the starting management subsystem acquires an abnormal state signal of the source subsystem, controls the source system to restart through the starting control module to determine whether the source subsystem is abnormal again, and when the source subsystem is abnormal for the second time, the starting management subsystem starts from the emergency subsystem through the starting control module and generates a recovery signal to the emergency subsystem to execute the operation of the recovery source system, and then sends a recovery completion signal to the dynamic management system after the emergency subsystem recovers the source system; the source subsystem reads the backup of the source system from the backup memory through the first interface module, the backup memory writes the backup into the source subsystem for recovery through the SCSI connected with the source subsystem, after the recovery is completed, the source subsystem sends a recovery completion signal to the start management subsystem, and the start management subsystem controls the system to start from the source subsystem through the start control module to recover the normal equipment work.
When the emergency subsystem is started, the starting emergency subsystem is communicated with the starting management subsystem, the starting management subsystem controls the emergency subsystem to execute a corresponding source system, and the corresponding source system comprises a backup source system and a recovery source system.
And after the source subsystem is updated, the source subsystem automatically generates a backup signal to the first communication module through the second communication module, and when the equipment is determined not to be used, namely a shutdown key is pressed, the starting management subsystem is automatically started from the emergency subsystem, backs up the source subsystem, and then is shut down.
Step S3: when the backup source system is executed, the emergency subsystem reads the source subsystem through the SCSI connected with the source subsystem, and writes the read source subsystem into the backup storage through the SCSI or USB connected with the backup storage, so as to backup the source subsystem into the backup storage.
When executing the restoration of the source system, the emergency subsystem reads the backup of the backup storage through the SCSI or the USB connected to the backup storage, and restores the source subsystem by rewriting the source subsystem through the SCSI connected to the source subsystem.
Therefore, the method for intelligently backing up and recovering the system based on the safe embedded system does not need excessive manual maintenance and hardware cost to realize the backup and recovery of the system, intelligently and automatically backs up in the using process, automatically and intelligently recovers when problems occur, greatly improves the safety of the embedded system, improves the user experience, and simultaneously reduces the maintenance work of the system.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the invention without departing from the spirit and scope of the invention.

Claims (6)

1. A method for intelligent backup and recovery based on a safe embedded system is characterized in that: the safe embedded system comprises a starting management subsystem, a source subsystem, an emergency subsystem and a backup memory;
the starting management subsystem comprises two first communication modules and two starting control modules, the two starting control modules are respectively connected with the source subsystem and the emergency subsystem, and the two first communication modules are respectively connected with the source subsystem and the emergency subsystem;
the source subsystem comprises a second communication module, a first starting controlled module and a first interface module, wherein the first starting controlled module is connected with one of the starting control modules, and the second communication module is connected with one of the first communication modules;
the emergency subsystem comprises a third communication module, a second starting controlled module and a second interface module, the second starting controlled module is connected with the other starting control module, and the third communication module is connected with the other first communication module;
the first interface module is connected with the second interface module, and both the first interface module and the second interface module are connected with the backup memory;
the intelligent backup and recovery method comprises the following specific steps:
step S1: the starting management subsystem acquires the states of a source subsystem and the emergency subsystem through a first communication module and a starting control module and determines a starting mode;
step S2: after the source subsystem is started, the source subsystem is communicated with the start management subsystem and informs the start management subsystem whether the start of the source subsystem is normal or not;
after the emergency subsystem is started, the starting emergency subsystem is communicated with the starting management subsystem, and the starting management subsystem controls the emergency subsystem to execute a corresponding source system, wherein the corresponding source system comprises a backup source system and a recovery source system;
step S3: when the backup source system is executed, the emergency subsystem reads the source subsystem through the SCSI connected with the source subsystem, writes the read source subsystem into the backup memory through the SCSI or USB connected with the backup memory, and backs up the source subsystem into the backup memory;
when executing the restoration of the source system, the emergency subsystem reads the backup of the backup storage through the SCSI or the USB connected to the backup storage, and restores the source subsystem by rewriting the source subsystem through the SCSI connected to the source subsystem.
2. The intelligent backup and recovery method based on the secure embedded system according to claim 1, characterized in that: the backup memory is an internal storage device or an external storage device or a combination thereof.
3. The intelligent backup and recovery method based on the secure embedded system according to claim 2, characterized in that: the first interface module and the second interface module both comprise two SCSI and a USB interface, the external storage device is connected with the USB interface and one of the SCSI of the first interface module and the second interface module, and the first interface module is connected with the second interface module through the other SCSI.
4. The method for intelligent backup and recovery based on the secure embedded system according to claim 3, wherein: step S1 is specifically that the start management subsystem communicates with the source subsystem through a first communication module and obtains a status signal indicating whether the source subsystem can be started normally, and the start management subsystem determines whether the source subsystem is started through a start control module;
the starting management subsystem is communicated with the emergency subsystem through the first communication module and acquires a backup source system state signal and a recovery source system state signal of the emergency subsystem, and the starting management subsystem is started from the emergency subsystem through the starting control module.
5. The method for intelligent backup and recovery based on the secure embedded system according to claim 4, wherein: in step S2, after the source subsystem is updated, the source subsystem automatically generates a backup signal to the first communication module through the second communication module, and when it is determined that the device is not used, i.e., the power-off key is pressed, the start management subsystem automatically starts from the emergency subsystem, performs backup on the source subsystem, and then powers off the device.
6. The method for intelligent backup and recovery based on the secure embedded system according to claim 5, wherein: in step S2, in the using process, when the source subsystem is abnormal, the start management subsystem obtains a state signal of the source subsystem abnormality, the start management subsystem controls the source system to restart through the start control module to re-confirm whether the source subsystem is abnormal, when the source subsystem is abnormal for the second time, the start management subsystem starts from the emergency subsystem through the start control module control system and generates a recovery signal to the emergency subsystem to execute the operation of the recovery source system, and the emergency subsystem sends a recovery completion signal to the dynamic management system after recovering the source system; the source subsystem reads the backup of the source system from the backup memory through the first interface module, the backup memory writes the backup into the source subsystem for recovery through the SCSI connected with the source subsystem, after the recovery is completed, the source subsystem sends a recovery completion signal to the start management subsystem, and the start management subsystem controls the system to start from the source subsystem through the start control module to recover the normal equipment work.
CN202111025243.7A 2021-09-02 2021-09-02 Intelligent backup and recovery method based on safe embedded system Active CN113742136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111025243.7A CN113742136B (en) 2021-09-02 2021-09-02 Intelligent backup and recovery method based on safe embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111025243.7A CN113742136B (en) 2021-09-02 2021-09-02 Intelligent backup and recovery method based on safe embedded system

Publications (2)

Publication Number Publication Date
CN113742136A CN113742136A (en) 2021-12-03
CN113742136B true CN113742136B (en) 2022-05-17

Family

ID=78734879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111025243.7A Active CN113742136B (en) 2021-09-02 2021-09-02 Intelligent backup and recovery method based on safe embedded system

Country Status (1)

Country Link
CN (1) CN113742136B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6496949B1 (en) * 1999-08-06 2002-12-17 International Business Machines Corp. Emergency backup system, method and program product therefor

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200721008A (en) * 2005-11-23 2007-06-01 Inventec Corp Method and system for switching between embedded operating systems of computer platform
TW200732923A (en) * 2006-02-24 2007-09-01 Mitac Int Corp System and method of automatic data backup
JP5012017B2 (en) * 2006-12-28 2012-08-29 富士通株式会社 Embedded device and control method
US20090222497A1 (en) * 2008-02-29 2009-09-03 Schlumberger Technology Corp. Method, system and apparatus for remote software upgrade of an embedded device
TW201033808A (en) * 2009-03-10 2010-09-16 Vivotek Inc System recovery method and embedded system with auto-recovery function
US9244779B2 (en) * 2010-09-30 2016-01-26 Commvault Systems, Inc. Data recovery operations, such as recovery from modified network data management protocol data
CN111142911B (en) * 2019-12-27 2022-04-19 易思维(杭州)科技有限公司 Embedded system with abnormal recovery function and upgrading method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6496949B1 (en) * 1999-08-06 2002-12-17 International Business Machines Corp. Emergency backup system, method and program product therefor

Also Published As

Publication number Publication date
CN113742136A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US6367022B1 (en) Power management fault strategy for automotive multimedia system
CN101329632B (en) Method and apparatus for starting CPU by BOOT
CN1285990C (en) Method for saving and restoring computer system operation state
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
CN102880527B (en) Data recovery method of baseboard management controller
CN1976517B (en) Mobile terminal
CN111143132B (en) BIOS recovery method, device, equipment and readable storage medium
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN110806889A (en) ZYNQ program remote upgrading system and method based on 5G
CN104246655A (en) Information processing device, information processing method, and program
CN113742136B (en) Intelligent backup and recovery method based on safe embedded system
CN101515236B (en) Restoring method and update module for basic input/output system and computer system
US10649515B2 (en) Power management of computing and communications systems during power fluctuation and sudden power failure events
CN112035171B (en) Factory setting restoration method and system based on UEFI firmware
JP2002258988A (en) Uninterruptible power system
CN113608930A (en) System chip and electronic device
US20110289272A1 (en) Apparatus and methods for restoring data in a RAID system
CN107391776B (en) Data destruction device and method and blade server
US20120185713A1 (en) Server, storage medium, and method for controlling sleep and wakeup function of the server
CN111158963A (en) Server firmware redundancy starting method and server
CN1991681B (en) System for avoiding pushing power switch to interrupt BIOS updating and method thereof
JP3231561B2 (en) Backup memory control method
CN111427518B (en) Data protection method and NVDIMM
CN113696732A (en) Low-voltage power-down control method and device and electric automobile
CN112052122A (en) Linux system based backup and recovery system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant