CN110083493A - A kind of embedded system failure self-recovery method, terminal device and storage medium - Google Patents

A kind of embedded system failure self-recovery method, terminal device and storage medium Download PDF

Info

Publication number
CN110083493A
CN110083493A CN201810071099.2A CN201810071099A CN110083493A CN 110083493 A CN110083493 A CN 110083493A CN 201810071099 A CN201810071099 A CN 201810071099A CN 110083493 A CN110083493 A CN 110083493A
Authority
CN
China
Prior art keywords
application
recovery
configuration information
system failure
enters
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.)
Pending
Application number
CN201810071099.2A
Other languages
Chinese (zh)
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.)
Xiamen Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks 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 Xiamen Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN201810071099.2A priority Critical patent/CN110083493A/en
Publication of CN110083493A publication Critical patent/CN110083493A/en
Pending legal-status Critical Current

Links

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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error
    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present invention relates to a kind of embedded system failure self-recovery method, terminal device and storage mediums, in the method, comprising the following steps: S1: increasing system backup area in the subregion of equipment disk, using backup area and configuration information area;S2: bootstrap starting, the number of stoppages are incremented by;S3: judging that system failure number marks whether is more than threshold value, when being more than to enter S4, otherwise enters S5;S4: system enters reforestation practices;S5: judging whether system application failure number is more than threshold value, when being more than to enter S6, otherwise enters S7;S6: restoring application, returns to S2;S7: system normally starts, and system failure number is reset;S8: judge whether to need to carry out fault recovery to system component or application program, if desired, into S9, otherwise, into S10;S9: application or component recovery return to S2;S10: start completion runs application program.It is able to carry out self-regeneration when the present invention makes equipment the system failure occur, guarantees the continuous service of equipment.

Description

A kind of embedded system failure self-recovery method, terminal device and storage medium
Technical field
The present invention relates to fault recovery field more particularly to a kind of embedded system failure self-recovery methods, terminal device And storage medium.
Background technique
With the continuous development of science and technology, electronic product is more and more diversified, we are also more next to the dependence of electronic product It is higher, but electronic product is in use, due to the influence of the factors such as environment, application method, it is possible that flash is damaged Bad, file loss etc. leads to the exception of equipment fault, needs depot repair at this time or technical professional is asked to repair, in this way It not only needs to spend certain money, have to wait to which for quite a long time, the use of user can be largely effected on.
Summary of the invention
To solve the above-mentioned problems, the present invention is intended to provide a kind of embedded system failure self-recovery method, terminal device And storage medium, it is able to carry out self-regeneration when equipment being made the system failure occur, guarantees the continuous service of equipment.
Concrete scheme is as follows:
1. a kind of embedded system failure self-recovery method, comprising the following steps:
S1: increase system backup area in the subregion of equipment disk, using backup area and configuration information area, the system is standby Part area is described to be used to save the application installed in equipment using backup area for saving complete system image, using at least It include the application of current version, the content in the configuration information area includes log and configuration information;
The preparation information includes but is not limited to the following contents:
System failure number label, application failure number label, system restore label, application recovery label;
S2: system bootstrap routine starting, by configuration information area system failure number and application failure number be incremented by;
S3: judging whether system failure number is more than threshold value, enters S4 when being more than, and otherwise enters S5;
S4: after preparing to system recovery label, system enters reforestation practices, is using what is stored in system backup area Mirror image of uniting carries out system recovery, into S5;
S5: judging whether system application failure number is more than threshold value, enters S6 when being more than, and otherwise enters S7;
S6: after preparing to application recovery label, the newest backup of application is selected to be applied from application backup area Restore, returns to S2;
S7: system normally starts, and system failure number is reset, and in system background operating system fault detection program, uses In the operation of monitoring system, and the fault message occurred when system operation is recorded, which is stored in configuration information In the log in area;
S8: before starting application, the fault message in configuration information area is analyzed, judges whether to need to system group Part or application program carry out fault recovery, if desired, into S9, otherwise, into S10;
S9: if application program needs to restore, from described using selecting the newest backup of the application to carry out in backup area Application recovery, application program of reruning after the completion of restoring, if system component failure needs to restore, first in the equipment Backup component is found in disk, if any component recovery is then carried out, if not provided, passing through connection Server remote download system component It carries out component recovery again afterwards, returns to S2;
S10: removing the preparation information in configuration information area, and start completion runs application program.
Further, the fault message when log includes system operation.
Further, the bootstrap be system starting after, the brief program that system voluntarily inputs, by it Lai Complete bootup process.
Further, the frequency threshold value is 3.
A kind of embedded system failure self- recoverage terminal device, including memory, processor and it is stored in the storage In device and the computer program that can run on the processor, the processor realize this hair when executing the computer program The step of bright embodiment above-mentioned method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter The step of above-mentioned method of the embodiment of the present invention is realized when calculation machine program is executed by processor.
The present invention uses technical solution as above, and log when being run by analysis system is led to repair system component mistake The analysis of system failure number is crossed with automatically repair system failure, while after fault recovery, the application for having update is carried out Restore, to realize the fault recovery of system.The embedded system failure self-recovery method of the embodiment makes through the invention It is able to carry out self-regeneration when the system failure occurs in equipment, guarantees the long duration operation of equipment.
Detailed description of the invention
Fig. 1 show the flow diagram of the embodiment of the present invention one.
Specific embodiment
To further illustrate that each embodiment, the present invention are provided with attached drawing.These attached drawings are that the invention discloses one of content Point, mainly to illustrate embodiment, and the associated description of specification can be cooperated to explain the operation principles of embodiment.Cooperation ginseng These contents are examined, those of ordinary skill in the art will be understood that other possible embodiments and advantages of the present invention.In figure Component be not necessarily to scale, and similar component symbol is conventionally used to indicate similar component.
Now in conjunction with the drawings and specific embodiments, the present invention is further described.
Embodiment one:
The embodiment of the present invention one provides a kind of embedded system failure self-recovery method, as shown in Figure 1, it is the present invention The flow diagram of embedded system failure self-recovery method, the method described in embodiment one can comprise the following steps that
S1: increase system backup area in the subregion of equipment disk, using backup area and configuration information area, the system is standby For saving complete system image, which can guarantee the normal operation of system after burning again, described to answer for part area It is used to save all old versions for installing application in equipment with backup area, when application is broken down, uses what is installed recently The recovery that old version is applied can ensure the version applied be before failure, and the content in the configuration information area includes day Will and configuration information, for bootstrap to whether to carry out system recovery judge.
The bootstrap is after system starts, and the brief program that system voluntarily inputs is completed to guide by it Process.
The fault message when log includes system operation.
In the embodiment, the preparation information prepared in the information area includes but is not limited to the following contents:
System failure number (sys_err_count), application failure number (app_err_count), system restore label (sys_recover), application recovery label (app_recover).
Configuration information is specifically defined specific as follows in the embodiment:
S2: system bootstrap routine starting, by configuration information area system failure number and application failure number be incremented by.
S3: judging whether system failure number is more than threshold value, enters S4 when being more than, and otherwise enters S5.
The threshold value is rule of thumb set with experimental data, in the embodiment is preferably set to 3.
S4: after preparing to system recovery label, system enters reforestation practices, and system failure number is cleared at this time, System recovery is carried out using the system image stored in system backup area, into S5.
In the embodiment, system is restored into label and is set as 0 representative without system recovery, it is extensive to represent carry out system for 1 It is multiple, it is described that system recovery label is formulated as restoring to mark by system to be set as 1.
S5: judging whether system application failure number is more than threshold value, enters S6 when being more than, and otherwise enters S7.
S6: after preparing to application recovery label, the newest backup of application is selected to be applied from application backup area Restore, application failure number is cleared at this time, returns to S2.
In the embodiment, 0 representative is set without application recovery by application recovery label, represents and is carried out using extensive for 1 It is multiple, it is described that application recovery label is formulated as to set 1 for application recovery label.
S7: system normally starts, and system failure number is reset, and in system background operating system fault detection program, uses In the operation of monitoring system, and the fault message occurred when system operation is recorded, which is stored in configuration information In the log in area.
S8: before starting application, the fault message in configuration information area is analyzed, judges whether to need to system group Part or application program carry out fault recovery, if desired, into S9, otherwise, into S10.
S9: if application program needs to restore, from described using selecting the newest backup of the application to carry out in backup area Application recovery, application program of reruning after the completion of restoring, if system component failure needs to restore, first in the equipment Backup component is found in disk, if any component recovery is then carried out, if not provided, passing through connection Server remote download system component It carries out component recovery again afterwards, returns to S2.
S10: removing the preparation information in configuration information area, and start completion runs application program.
The log when embodiment of the present invention one is run by analysis system passes through the system failure with repair system component mistake The analysis of number restores the application for having update with automatically repair system failure, while after fault recovery, thus real The fault recovery of existing system.Through the invention the embedded system failure self-recovery method of the embodiment make be when equipment It is able to carry out self-regeneration when failure of uniting, guarantees the long duration operation of equipment.
Embodiment two:
The present invention also provides a kind of embedded system failure self- recoverage terminal device, including memory, processor and deposit The computer program that can be run in the memory and on the processor is stored up, the processor executes the computer journey The step in the above method embodiment of the embodiment of the present invention one is realized when sequence.
Further, as an executable scheme, the embedded system failure self- recoverage terminal device can be table Laptop computer, notebook, palm PC and cloud server etc. calculate equipment.The embedded system failure self- recoverage terminal Equipment may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that above-mentioned embedded system failure The composed structure of self- recoverage terminal device is only the example of embedded system failure self- recoverage terminal device, is not constituted to embedding The restriction of embedded system failure self- recoverage terminal device may include more certain than above-mentioned more or fewer components, or combination Component or different components, such as the embedded system failure self- recoverage terminal device can also be set including input and output Standby, network access equipment, bus etc., it is not limited in the embodiment of the present invention.
Further, as an executable scheme, alleged processor can be central processing unit (Centran Processing Unit, CHECKPOINTU), it can also be other general processors, digital signal processor (Digitan Signan Processor, DSP), specific integrated circuit (Appnication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Fiend-Programmabne Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc., and the processor is the embedded system failure self- recoverage terminal device Control centre utilizes the various pieces of various interfaces and the entire embedded system failure self- recoverage terminal device of connection.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization The various functions of embedded system failure self- recoverage terminal device.The memory can mainly include storing program area and storage number According to area, wherein storing program area can application program needed for storage program area, at least one function;Storage data area can deposit Storage uses created data etc. according to mobile phone.In addition, memory may include high-speed random access memory, can also wrap Include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digitan, SD) card, flash card (Fnash Card), at least one disk memory, flush memory device, Or other volatile solid-state parts.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has computer Program, when the computer program is executed by processor the step of the realization above method of the embodiment of the present invention.
If the integrated module/unit of the embedded system failure self- recoverage terminal device is with the shape of SFU software functional unit Formula realize and when sold or used as an independent product, can store in a computer readable storage medium.It is based on Such understanding, the present invention realize above-described embodiment method in all or part of the process, can also by computer program come Relevant hardware is instructed to complete, the computer program can be stored in a computer readable storage medium, the computer Program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes meter Calculation machine program code, the computer program code can be source code form, object identification code form, executable file or certain Intermediate form etc..The computer-readable medium may include: can carry the computer program code any entity or Device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Onny Memory), random access memory (RAM, Random Access Memory) and software distribution medium etc..It needs to illustrate It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice When increase and decrease.
Although specifically showing and describing the present invention in conjunction with preferred embodiment, those skilled in the art should be bright It is white, it is not departing from the spirit and scope of the present invention defined by the appended claims, it in the form and details can be right The present invention makes a variety of changes, and is protection scope of the present invention.

Claims (6)

1. a kind of embedded system failure self-recovery method, it is characterised in that: the following steps are included:
S1: increase system backup area in the subregion of equipment disk, using backup area and configuration information area, the system backup area For saving complete system image, it is described using backup area for saving the application installed in equipment, using including at least There is the application of current version, the content in the configuration information area includes log and configuration information;
The preparation information includes the following contents:
System failure number label, application failure number label, system restore label, application recovery label;
S2: system bootstrap routine starting, by configuration information area system failure number and application failure number be incremented by;
S3: judging whether system failure number is more than threshold value, enters S4 when being more than, and otherwise enters S5;
S4: after preparing to system recovery label, system enters reforestation practices, utilizes the system mirror stored in system backup area As carrying out system recovery, into S5;
S5: judging whether system application failure number is more than threshold value, enters S6 when being more than, and otherwise enters S7;
S6: after preparing to application recovery label, selecting the newest backup of application to carry out application recovery from application backup area, Return to S2;
S7: system normally starts, and system failure number is reset, in system background operating system fault detection program, for supervising The operation of control system, and the fault message occurred when system operation is recorded, which is stored in configuration information area In log;
S8: before starting application, analyzing the fault message in configuration information area, judge whether to need to system component or Person's application program carries out fault recovery, if desired, into S9, otherwise, into S10;
S9: if application program needs to restore, from described using selecting the newest backup of the application to be applied in backup area Restore, application program of reruning after the completion of restoring, if system component failure needs to restore, first in the disk of the equipment Interior searching backup component, if any component recovery is then carried out, if not provided, after passing through connection Server remote download system component again Component recovery is carried out, S2 is returned;
S10: removing the preparation information in configuration information area, and start completion runs application program.
2. embedded system failure self-recovery method according to claim 1, it is characterised in that: the log includes system Fault message when operation.
3. embedded system failure self-recovery method according to claim 1, it is characterised in that: the bootstrap is to be After system starting, the brief program that system voluntarily inputs completes bootup process by it.
4. embedded system failure self-recovery method according to claim 1, it is characterised in that: the frequency threshold value is 3.
5. a kind of embedded system failure self- recoverage terminal device, including memory, processor and it is stored in the memory In and the computer program that can run on the processor, which is characterized in that the processor executes the computer program The step of Shi Shixian such as Claims 1 to 4 the method.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization is such as the step of Claims 1 to 4 the method when the computer program is executed by processor.
CN201810071099.2A 2018-01-25 2018-01-25 A kind of embedded system failure self-recovery method, terminal device and storage medium Pending CN110083493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810071099.2A CN110083493A (en) 2018-01-25 2018-01-25 A kind of embedded system failure self-recovery method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810071099.2A CN110083493A (en) 2018-01-25 2018-01-25 A kind of embedded system failure self-recovery method, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110083493A true CN110083493A (en) 2019-08-02

Family

ID=67411895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810071099.2A Pending CN110083493A (en) 2018-01-25 2018-01-25 A kind of embedded system failure self-recovery method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110083493A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874289A (en) * 2019-09-23 2020-03-10 深圳市元征科技股份有限公司 System program backup method, device, information processor and storage medium
CN111367720A (en) * 2020-03-04 2020-07-03 北京字节跳动网络技术有限公司 Data protection method and device, electronic equipment and computer readable storage medium
CN116048872A (en) * 2022-06-16 2023-05-02 荣耀终端有限公司 Management and control method for data cloning process, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859162A (en) * 2005-06-15 2006-11-08 华为技术有限公司 Realizing method and system for automatic restoring equipment fault
US20080184063A1 (en) * 2007-01-31 2008-07-31 Ibm Corporation System and Method of Error Recovery for Backup Applications
US20100223498A1 (en) * 2009-03-02 2010-09-02 Microsoft Corporation Operating system-based application recovery
CN102662798A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Data recovery method and terminal for Android system
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program
CN103677947A (en) * 2014-01-03 2014-03-26 深圳英飞拓科技股份有限公司 Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN105573864A (en) * 2015-12-15 2016-05-11 广州视源电子科技股份有限公司 Terminal system recovery method and system thereof
CN107315656A (en) * 2017-06-12 2017-11-03 杭州电子科技大学 The Embedded PLC software rejuvenation method and PLC of many kernels

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859162A (en) * 2005-06-15 2006-11-08 华为技术有限公司 Realizing method and system for automatic restoring equipment fault
US20080184063A1 (en) * 2007-01-31 2008-07-31 Ibm Corporation System and Method of Error Recovery for Backup Applications
US20100223498A1 (en) * 2009-03-02 2010-09-02 Microsoft Corporation Operating system-based application recovery
CN102662798A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Data recovery method and terminal for Android system
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program
CN103677947A (en) * 2014-01-03 2014-03-26 深圳英飞拓科技股份有限公司 Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN105573864A (en) * 2015-12-15 2016-05-11 广州视源电子科技股份有限公司 Terminal system recovery method and system thereof
CN107315656A (en) * 2017-06-12 2017-11-03 杭州电子科技大学 The Embedded PLC software rejuvenation method and PLC of many kernels

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874289A (en) * 2019-09-23 2020-03-10 深圳市元征科技股份有限公司 System program backup method, device, information processor and storage medium
CN111367720A (en) * 2020-03-04 2020-07-03 北京字节跳动网络技术有限公司 Data protection method and device, electronic equipment and computer readable storage medium
CN116048872A (en) * 2022-06-16 2023-05-02 荣耀终端有限公司 Management and control method for data cloning process, electronic equipment and storage medium
CN116048872B (en) * 2022-06-16 2023-10-20 荣耀终端有限公司 Management and control method for data cloning process, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107506291B (en) Analysis method and device based on data acquisition
CN108804299A (en) Application exception processing method and processing device
US11144308B2 (en) System and method for predicting defects in a computer program
CN110659256B (en) Multi-computer room synchronization method, computing device and computer storage medium
CN110083493A (en) A kind of embedded system failure self-recovery method, terminal device and storage medium
CN107360265B (en) A kind of equipment exclusive identification code acquisition methods, device and mobile terminal
CN113448862B (en) Software version testing method and device and computer equipment
CN107908340A (en) Method, mobile terminal and the device with store function of factory reset
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN110597490A (en) Software development demand distribution method and device
CN111309586A (en) Command testing method, device and storage medium thereof
CN109710596B (en) Data cleaning method, device, equipment and computer readable storage medium
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN116185853A (en) Code verification method and device
CN110221952B (en) Service data processing method and device and service data processing system
CN109359093A (en) A kind of rule file update method and system
CN109597706A (en) It is a kind of to check the detection method of variance data, apparatus and system
CN109992476A (en) A kind of analysis method of log, server and storage medium
CN114356781A (en) Software function testing method and device
CN105791514A (en) Application starting monitoring method and device
CN106294115A (en) The method of testing of a kind of application system animal migration and device
CN115098362A (en) Page testing method and device, electronic equipment and storage medium
CN114511314A (en) Payment account management method and device, computer equipment and storage medium
CN111142735B (en) Software page creating method and device, terminal equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802