CN102880520B - A kind of method that system is automatically recovered from malfunction - Google Patents
A kind of method that system is automatically recovered from malfunction Download PDFInfo
- Publication number
- CN102880520B CN102880520B CN201210317707.6A CN201210317707A CN102880520B CN 102880520 B CN102880520 B CN 102880520B CN 201210317707 A CN201210317707 A CN 201210317707A CN 102880520 B CN102880520 B CN 102880520B
- Authority
- CN
- China
- Prior art keywords
- character
- house dog
- time
- bootloader
- malfunction
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000007257 malfunction Effects 0.000 title claims abstract description 12
- 238000001514 detection method Methods 0.000 claims abstract description 4
- 238000011084 recovery Methods 0.000 claims 2
- 230000015556 catabolic process Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000009885 systemic effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a kind of method that system is automatically recovered from malfunction, the method is according to the actual conditions of system hardware, by the relevant treatment function of the initialized place definition house dog at bootloader, then according to the event handling of system serial port failure may be caused to add the process of house dog counter; By the time counter values is to automatic dog feeding when 10 minutes, final system autoboot.Whether the present invention breaks down by adopting the mode detection system software arranging house dog, and when having detected that fault occurs, autoboot system, makes system software recover normal.
Description
Technical field
The invention belongs to software fault process field, particularly the method automatically recovered of the software of the industrial control system such as a kind of focus AP, server, telephone system and production line.
Background technology
At present, occur causing the software error of systemic breakdown not fearful there being people in the desktop computer operated, because user only needs restarting systems, it only can cause the loss of low volume data.But for the software operating in industrial control system, system then must recover fault under the condition not having human intervention.This characteristic is very crucial in both cases: one is high-efficiency system, as server, telephone system and production line etc.; Another kind is highly-reliable system, because this system is once occur that mistake will damage, as automobile, Medical Devices, Industry Control, automatically-controlled door etc.These industrial control systems generally all use two cover hardware, often overlap on hardware and run identical software, and one primary, and another is for subsequent use, when host apparatus software failure, host apparatus exits, and stand-by equipment pushes up up immediately, now, main equipment only needs to carry out reset and just can recover.In addition, ap can be caused to hang when focus AP does not carry out any operation in 10 minutes after start enters bootloader, now can not perform any operation to ap.Need manually to restart ap and enter the relevant operative technique problem of u-boot execution again, use inconvenience.
Summary of the invention
Ap can be caused to hang for solving when current focus AP does not carry out any operation in 10 minutes after start enters bootloader, now can not perform any operation to ap.Need manually to restart ap and enter the relevant operative technique problem of u-boot execution again, use inconvenient deficiency, the invention provides a kind of method that system is automatically recovered from malfunction.
The present invention in order to the technical scheme completing its technical purpose and adopt is: a kind of method that system is automatically recovered from malfunction, the method is according to the actual conditions of system hardware, by the relevant treatment function of the initialized place definition house dog at bootloader, then according to the event handling of system serial port failure may be caused to add the process of house dog counter; By the time counter values is to automatic dog feeding when 10 minutes, final system autoboot.
Further, in the method that above-mentioned system is automatically recovered from malfunction: described system is work is focus AP or server, telephone system and production line.
Further, in the method that above-mentioned system is automatically recovered from malfunction: comprise the following steps:
Step M1, the initialized entrance function of use bootloader;
Step M2, under u-boot pattern, check whether serial ports has character to input, if there is character to input, receives character, does respective handling according to the definition of character, otherwise enter step M3 process;
The time that step M3, detection do not have character to input, if reach setting-up time, enter step M4 process, otherwise execution detects judgement next time;
Step M4, execution reset order make system autoboot.
Further, in the method that above-mentioned system is automatically recovered from malfunction: in described step M3, the time that detecting does not have character to input judges whether to arrive setting-up time by count counting.
Further, in the method that above-mentioned system is automatically recovered from malfunction: setting-up time is 10 minutes.
Whether the present invention breaks down by adopting the mode detection system software arranging house dog, and when having detected that fault occurs, autoboot system, makes system software recover normal.
Below by with specific embodiments and the drawings, the present invention is further detailed.
Accompanying drawing explanation
Accompanying drawing 1 is the embodiment of the present invention 1 process flow diagram.
Embodiment
As shown in Figure 1, the present embodiment is that a kind of focus AP causes ap to hang, when can not perform any operation to ap, to the method that focus AP software fault recovers automatically when within 10 minutes after start enters bootloader, not carrying out any operation.
According to the actual conditions of hardware, by the relevant treatment function of the initialized place definition house dog at bootloader,
In the present embodiment, have following code in the place entering bootloader, carry out initialization to house dog and related function, specific code is as follows:
watchdog_open();
mem_malloc_init();
serial_init();
eth_initialize(gd->bd);
watchdog_close();
Wherein the first row opens house dog process function, is then the initialization function carrying out the hardware such as internal memory, serial ports, Ethernet interface, is finally to close house dog process function
Then according to the event handling of ap serial port failure may be caused to add the process of house dog counter.By the time counter values is to automatic dog feeding, then ap autoboot when 10 minutes.Here, house dog is by counter process, when counter calculates 10 minutes values of setting, calls corresponding command process as after reset order.Original calculate 10 minutes values clear 0. and then circulation counting process above.
Committed step, as Fig. 1, realizes being described as follows:
The initialized entrance function of step M1:bootloader, comprises the initialization that house dog opens and closes, the process of the network interface card initialization failure function causing program to be hung in addition.
Step M2: check under boot pattern whether serial ports has character to input, and receives character, does respective handling according to the definition of character.Otherwise enter step M3 process.
Step M3: if serial ports never receives the arrival of character, just does count counting and judges whether arrival 10 minutes.If reach 10 minutes to enter step M4 process, otherwise perform cycle criterion next time.
Step M4: if count counting was more than 10 minutes.Just perform reset order and make ap autoboot.Attention: use reset order, because also need to judge that with which kernel and other judgement be with which kernel and other judgement when startup kernel.
Claims (3)
1. the method automatically recovered from malfunction of system, causes ap to hang when the method does not carry out any operation for 10 minutes after start enters bootloader for focus AP, situation when can not perform any operation to ap; It is characterized in that: the method, according to the actual conditions of system hardware, by the relevant treatment function of the initialized place definition house dog at bootloader, then processes according to the utilization of system serial port failure event may be caused to add house dog counter; By the time counter values is to automatic dog feeding when 10 minutes, final system autoboot;
The relevant treatment function of the described initialized place definition house dog at bootloader comprises: opening house dog process function, is then the initialized function carrying out internal memory, serial ports, Ethernet interface, is finally to close house dog process function; Described system is focus AP, server, telephone system or production line;
Said method comprises the following steps:
Step M1, the initialized entrance function of operation bootloader;
Step M2, under boot pattern, check whether serial ports has character to input, if there is character to input, receives character, does respective handling according to the definition of character, otherwise enter step M3 process;
The time that step M3, detection do not have character to input, if reach setting-up time, enter step M4 process, otherwise execution detects judgement next time;
Step M4, execution reset order make system autoboot.
2. the method for system according to claim 1 recovery automatically from malfunction, is characterized in that: in described step M3, and the time that detecting does not have character to input judges whether to arrive setting-up time by count counting.
3. the method for system according to claim 1 and 2 recovery automatically from malfunction, is characterized in that: setting-up time is 10 minutes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210317707.6A CN102880520B (en) | 2012-08-31 | 2012-08-31 | A kind of method that system is automatically recovered from malfunction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210317707.6A CN102880520B (en) | 2012-08-31 | 2012-08-31 | A kind of method that system is automatically recovered from malfunction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102880520A CN102880520A (en) | 2013-01-16 |
CN102880520B true CN102880520B (en) | 2015-07-29 |
Family
ID=47481857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210317707.6A Expired - Fee Related CN102880520B (en) | 2012-08-31 | 2012-08-31 | A kind of method that system is automatically recovered from malfunction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102880520B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106792848A (en) * | 2016-12-13 | 2017-05-31 | 惠州Tcl移动通信有限公司 | A kind of WIFI hot spot reset processing method and system based on mobile terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271414A (en) * | 2008-05-06 | 2008-09-24 | 江苏东大金智建筑智能化系统工程有限公司 | Full-range dog-feeding method of embedded system |
CN101739305A (en) * | 2010-02-09 | 2010-06-16 | 太仓市同维电子有限公司 | Operating system kernel level real-time dongle monitoring device and monitoring method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7689875B2 (en) * | 2002-04-25 | 2010-03-30 | Microsoft Corporation | Watchdog timer using a high precision event timer |
-
2012
- 2012-08-31 CN CN201210317707.6A patent/CN102880520B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271414A (en) * | 2008-05-06 | 2008-09-24 | 江苏东大金智建筑智能化系统工程有限公司 | Full-range dog-feeding method of embedded system |
CN101739305A (en) * | 2010-02-09 | 2010-06-16 | 太仓市同维电子有限公司 | Operating system kernel level real-time dongle monitoring device and monitoring method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102880520A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8468389B2 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
CN104461786B (en) | The restoration methods of android system and the recovery system of android system | |
CN101354677B (en) | Method for detecting and restoring application program running state and restoring device thereof | |
CN105843694A (en) | Methods and apparatus for controlled recovery of error information between independently operable processors | |
US9734015B2 (en) | Pre-boot self-healing and adaptive fault isolation | |
CN103955414A (en) | Self-restoration method and device of USB (universal serial bus) Host fault | |
WO2016145888A1 (en) | Display screen processing method and device | |
CN107111595B (en) | Method, device and system for detecting early boot errors | |
CN102880527B (en) | Data recovery method of baseboard management controller | |
CN104636221A (en) | Method and device for processing computer system fault | |
CN101430669A (en) | Exception recovery method and device for apparatus with network interface card and memory device | |
CN103345434B (en) | The data back up method of a kind of display device and device | |
CN104010077B (en) | A kind of information processing method and electronic equipment | |
CN102891762B (en) | The system and method for network data continuously | |
CN107193708A (en) | A kind of condition detection method and system | |
CN109582506A (en) | The restoration methods and device of touch screen failure, host equipment and touch-control system | |
CN103577284B (en) | The abnormality detection of non-transparent bridge chip and restoration methods | |
CN106874126A (en) | Host process method for detecting abnormality in a kind of software development | |
CN102880520B (en) | A kind of method that system is automatically recovered from malfunction | |
CN105760276B (en) | Reboot orders are improved to restart reliability and increase the method for the reset log | |
CN101369238A (en) | Exception monitoring and reset processing method for USB equipment | |
CN111090537B (en) | Cluster starting method and device, electronic equipment and readable storage medium | |
US20180336086A1 (en) | System state information monitoring | |
CN104268026A (en) | Monitoring and management method and device for embedded system | |
CN113238893B (en) | Disaster recovery system, method, computer equipment and medium for multiple data centers |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150729 |
|
CF01 | Termination of patent right due to non-payment of annual fee |