CN102231124A - Method for guarding tasks of embedded system - Google Patents

Method for guarding tasks of embedded system Download PDF

Info

Publication number
CN102231124A
CN102231124A CN2011102020538A CN201110202053A CN102231124A CN 102231124 A CN102231124 A CN 102231124A CN 2011102020538 A CN2011102020538 A CN 2011102020538A CN 201110202053 A CN201110202053 A CN 201110202053A CN 102231124 A CN102231124 A CN 102231124A
Authority
CN
China
Prior art keywords
task
tasks
guarding
guarded
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102020538A
Other languages
Chinese (zh)
Other versions
CN102231124B (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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics 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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN201110202053.8A priority Critical patent/CN102231124B/en
Publication of CN102231124A publication Critical patent/CN102231124A/en
Application granted granted Critical
Publication of CN102231124B publication Critical patent/CN102231124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for guarding tasks of an embedded system, comprising the following steps of: when equipment is started, starting guarding tasks, wherein the guarding tasks are used for scanning a system task list in real time; in the event of monitoring that other tasks do not send signals to the guarding tasks in a timed way, judging that the tasks are operated abnormally or quitted; at this time, according to configuration parameters of the tasks, restarting the tasks or the equipment; meanwhile, when guarded tasks to be monitored are started, needing to register to the guarding tasks; and informing time periods for sending signals in a timed way and response policies after the tasks are abnormal or quit to the guarding tasks, wherein the guarding tasks can return a globally unique management ID (Identification) to the tasks; and the guarded tasks need to send signals to the guarding tasks in a timed way. According to the method disclosed by the invention, a plurality of tasks of the embedded system can be monitored in real time; when the tasks are operated abnormally or quitted, the method can be used for monitoring and responding in time so that the system can return to normal more rapidly; the reliability of the equipment and the flexible abnormal response policies can be provided; and the tasks or the equipment can be restarted selectively according to the characteristics of the tasks.

Description

A kind of guard method of embedded system task
Technical field
The present invention relates to embedded system, especially the method for guardian system task.
Background technology
Along with the function of embedded device becomes increasingly complex, running in it of task is more and more.Can't monitor each concrete task after the device power operation; unusual or when withdrawing from when task run; thereby equipment can't get access to its relevant information and can't make relevant response and cause equipment operation in malfunction, and if this situation is for causing great accident on the embedded device that runs on some important events.
At present guarding of embedded system task just utilizes hardware watchdog that main task is guarded, and when the main task operation exception or when withdrawing from, equipment is restarted.The method can't monitor other task of system.Unusual or when withdrawing from when other task run, monitoring of equipment less than, also just can't restarting equipment or restart task, thus equipment work causes accident in abnormality.
Summary of the invention
Technical matters to be solved by this invention provides a kind of guard method of embedded system task; in the multitask running environment of embedded system; the task of running on system is monitored; unusual or when withdrawing from when the task run that monitors; can select to restart this task or restarting equipment according to user configuration, thereby make equipment work in just.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of guard method of embedded system task may further comprise the steps:
(1) when device start, starts the task of guarding;
(2) detect whether guard task list be empty, when task list is sky, wait for that other quilts that need monitor guard task start, at first needed to register by the task of guarding to the task of guarding, inform its time cycle of regularly signaling of the task of guarding and task abnormity or withdraw from after response policy, the task of guarding returns to the unique management ID of one the overall situation according to the log-on message of being guarded task;
(3) when task list is not sky, the scan task tabulation according to each log-on message of being guarded task, judges that it is received denys the overtime signal that do not send;
(4) when having monitored by the task of guarding is overtime when not sending signal, judge that this is guarded task unusually or withdraw from, guarded the log-on message of task according to this, this task or equipment are restarted in selection;
(5) when not monitored by the task of guarding is overtime when not sending signal, the instruction hardware watchdog rescans task list; Continue execution in step (2)~(4) then.
As improvement, guarded the response policy of task for restarting task or equipment in the described step (2).
As improvement, to be guarded task use and management ID regularly and sent signal to the task of guarding, it is normal that notice is guarded this task run of task.
The beneficial effect that the present invention is compared with prior art brought is:
1) can real time monitoring the multitask of embedded system, unusual or withdraw from and can in time monitor and can make response when task run, allow system recover faster normally to provide the reliability of equipment;
2) exception response strategy flexibly can select to restart task or restarting equipment according to the characteristics of task.
Description of drawings
Fig. 1 guards the program flow diagram of task for the present invention.
Fig. 2 is for being guarded the program flow diagram of task.
Embodiment
The present invention will be further described below in conjunction with Figure of description.
A kind of guard method of embedded system task as shown in Figure 1, may further comprise the steps:
(1) when device start, starts the task of guarding;
(2) as shown in Figure 2, whether task list is guarded in detection is empty, when task list is sky, wait for that other quilts that need monitor guard task start, at first needed to register by the task of guarding to the task of guarding, inform its time cycle of regularly signaling of the task of guarding and task abnormity or withdraw from after response policy promptly restart task or equipment, the task of guarding returns to the unique management ID of one the overall situation according to the log-on message of being guarded task; Guarded task use and management ID regularly and send signal to the task of guarding, it is normal that notice is guarded this task run of task;
(3) when task list is not sky, the scan task tabulation according to each log-on message of being guarded task, judges that it is received denys the overtime signal that do not send;
(4) when having monitored by the task of guarding is overtime when not sending signal, judge that this is guarded task unusually or withdraw from, guarded the log-on message of task according to this, this task or equipment are restarted in selection;
(5) when not monitored by the task of guarding is overtime when not sending signal, the instruction hardware watchdog rescans task list; Continue execution in step (2)~(4) then.
A kind of function of utilizing the embedded device hardware watchdog that proposes this patent realizes controlling the function of supervision to running on task on the equipment; unusual or when withdrawing from when monitoring task run; can select to restart this task or restarting equipment according to user's configuration, thereby make equipment work in normal condition.

Claims (3)

1. the guard method of an embedded system task is characterized in that: may further comprise the steps:
(1) when device start, starts the task of guarding;
(2) detect whether guard task list be empty, when task list is sky, wait for that other quilts that need monitor guard task start, at first needed to register by the task of guarding to the task of guarding, inform its time cycle of regularly signaling of the task of guarding and task abnormity or withdraw from after response policy, the task of guarding returns to the unique management ID of one the overall situation according to the log-on message of being guarded task;
(3) when task list is not sky, the scan task tabulation according to each log-on message of being guarded task, judges that it is received denys the overtime signal that do not send;
(4) when having monitored by the task of guarding is overtime when not sending signal, judge that this is guarded task unusually or withdraw from, guarded the log-on message of task according to this, this task or equipment are restarted in selection;
(5) when not monitored by the task of guarding is overtime when not sending signal, the instruction hardware watchdog rescans task list; Continue execution in step (2)~(4) then.
2. the guard method of a kind of embedded system task according to claim 1 is characterized in that:
Guarded the response policy of task for restarting task or equipment in the described step (2).
3. the guard method of a kind of embedded system task according to claim 1 is characterized in that:
Guarded task use and management ID regularly and send signal to the task of guarding, it is normal that notice is guarded this task run of task.
CN201110202053.8A 2011-07-18 2011-07-18 A kind of guard method of tasks of embedded system Active CN102231124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110202053.8A CN102231124B (en) 2011-07-18 2011-07-18 A kind of guard method of tasks of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110202053.8A CN102231124B (en) 2011-07-18 2011-07-18 A kind of guard method of tasks of embedded system

Publications (2)

Publication Number Publication Date
CN102231124A true CN102231124A (en) 2011-11-02
CN102231124B CN102231124B (en) 2017-08-29

Family

ID=44843691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110202053.8A Active CN102231124B (en) 2011-07-18 2011-07-18 A kind of guard method of tasks of embedded system

Country Status (1)

Country Link
CN (1) CN102231124B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645962A (en) * 2013-12-18 2014-03-19 北京华环电子股份有限公司 Watch-dog implementation method and device based on Nios II system
CN104484167A (en) * 2014-12-05 2015-04-01 广州华多网络科技有限公司 Task processing method and device
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106776202A (en) * 2016-11-25 2017-05-31 广州日滨科技发展有限公司 The monitoring method and system of embedded OS task

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855066A (en) * 2005-04-21 2006-11-01 华为技术有限公司 Single-board task exception inspecting and processing method
CN101140550A (en) * 2007-08-22 2008-03-12 中兴通讯股份有限公司 Built-in real-time system interrupt handling device and method thereof
CN101216792A (en) * 2008-01-14 2008-07-09 中兴通讯股份有限公司 Real-time operating system tasks management process, device and real-time operating system
CN101452420A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Embedded software abnormal monitoring and handling arrangement and method thereof
US20100287360A1 (en) * 2006-08-24 2010-11-11 Naotaka Maruyama Task Processing Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855066A (en) * 2005-04-21 2006-11-01 华为技术有限公司 Single-board task exception inspecting and processing method
US20100287360A1 (en) * 2006-08-24 2010-11-11 Naotaka Maruyama Task Processing Device
CN101140550A (en) * 2007-08-22 2008-03-12 中兴通讯股份有限公司 Built-in real-time system interrupt handling device and method thereof
CN101216792A (en) * 2008-01-14 2008-07-09 中兴通讯股份有限公司 Real-time operating system tasks management process, device and real-time operating system
CN101452420A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Embedded software abnormal monitoring and handling arrangement and method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645962A (en) * 2013-12-18 2014-03-19 北京华环电子股份有限公司 Watch-dog implementation method and device based on Nios II system
CN104484167A (en) * 2014-12-05 2015-04-01 广州华多网络科技有限公司 Task processing method and device
CN104484167B (en) * 2014-12-05 2018-03-09 广州华多网络科技有限公司 Task processing method and device
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106484555B (en) * 2016-09-29 2019-05-17 Oppo广东移动通信有限公司 The method and mobile terminal of abnormality detection and recovery
CN106776202A (en) * 2016-11-25 2017-05-31 广州日滨科技发展有限公司 The monitoring method and system of embedded OS task
CN106776202B (en) * 2016-11-25 2020-06-26 日立楼宇技术(广州)有限公司 Method and system for monitoring tasks of embedded operating system

Also Published As

Publication number Publication date
CN102231124B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
US9720761B2 (en) System fault detection and processing method, device, and computer readable storage medium
CN103685459B (en) Distributed system, server computer, distributed management server and failure prevention method
US10545807B2 (en) Method and system for acquiring parameter sets at a preset time interval and matching parameters to obtain a fault scenario type
EP2733611A1 (en) Internal fault handling method, device and system for virtual machine
CN106201844B (en) A kind of log collecting method and device
CN104199753B (en) A kind of virtual machine application service fault recovery system and its fault recovery method
CN105550057B (en) Embedded software system fault detection recovery method and system
CN101556679A (en) Method for processing failures in integrated front-end system and computer equipment
CN102231124A (en) Method for guarding tasks of embedded system
CN105426263B (en) A kind of method and system for realizing national treasury system safety operation
CN104216795A (en) Multiprocess protection system and implementation method thereof
CN111796954A (en) Watchdog control method, device, equipment and storage medium based on JVM
CN101221518B (en) Method, device and system for preventing timing device overflow of hardware watchdog
CN107528705B (en) Fault processing method and device
CN102571465A (en) Abnormality warning system and method for server
WO2015188619A1 (en) Physical host fault detection method and apparatus, and virtual machine management method and system
CN104486122A (en) Router abnormality recovery system and method based on watchdog
CN105391575B (en) A kind of national treasury control method and system
CN202153352U (en) Watchdog device capable of preventing computer control system from failure
CN104408059A (en) Fault processing method and device
JP2008040750A (en) Remote monitoring control device and system
JP2004086520A (en) Monitoring control device and its method
JP6984119B2 (en) Monitoring equipment, monitoring programs, and monitoring methods
CN104252538A (en) Web page processing method and web page processing device
CN111221680A (en) Automatic management method and device for data center switch system

Legal Events

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