KR101469674B1 - Method for preventing malfunction of processor - Google Patents
Method for preventing malfunction of processor Download PDFInfo
- Publication number
- KR101469674B1 KR101469674B1 KR1020130125376A KR20130125376A KR101469674B1 KR 101469674 B1 KR101469674 B1 KR 101469674B1 KR 1020130125376 A KR1020130125376 A KR 1020130125376A KR 20130125376 A KR20130125376 A KR 20130125376A KR 101469674 B1 KR101469674 B1 KR 101469674B1
- Authority
- KR
- South Korea
- Prior art keywords
- processor
- error count
- watchdog
- malfunction
- time
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/14—Time supervision arrangements, e.g. real time clock
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/004—Error avoidance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
The present invention relates to a method of preventing a malfunction of a processor, and more particularly, to a method of preventing malfunction of a processor by variably changing a watch-dog time of a watch-dog timer.
A watch-dog device performs a function of monitoring each processor that processes an assigned task and returning normally using a reset signal when the processor is in an erroneous or infinite loop state.
Figure 1 shows the construction of a watchdog system according to the prior art. As shown in FIG. 1, the conventional watch-and-dock system is implemented using a counter, and includes a
The
The
That is, when the
On the other hand, when the
On the other hand, according to the above-described conventional technique, by resetting the watch-dog timer within a fixed time, the reset of the processor is prevented. In this case, as an exceptional case, when a specific task having a high priority is allocated to the processor, the watch-dog timer is reset within a predetermined time (response waiting time for resetting the watch-dog timer, hereinafter referred to as " Can not be prevented. Also, if the watchdog time is set to the maximum value for such an exception, a quick processor error may cause the system to fail due to a failure to reset at the appropriate time.
SUMMARY OF THE INVENTION The present invention has been made in order to solve the problems of the related art described above, and it is an object of the present invention to variably change a watch-dog time based on attribute information of a task assigned to a processor, and error count information received from a watch- And to provide a method for preventing a malfunction of the apparatus.
The objects of the present invention are not limited to the above-mentioned objects, and other objects not mentioned can be clearly understood by those skilled in the art from the following description.
According to another aspect of the present invention, there is provided a method for preventing a malfunction of a processor, the method comprising: detecting a malfunction of the processor and a watchdog timer; Receiving and monitoring an error count signal from the error counter; And variably changing a watchdog time (WDT) of the watchdog timer according to whether the processor increases or decreases the error count signal.
In a preferred embodiment, the error count signal is incremented by the number of times that the watchdog timer does not receive a watchdog signal for timer reset from the processor within the watchdog time set for a particular execution period, and the watchdog timer The number of times of receiving the watchdog signal for resetting the timer from the processor within the watchdog time set in the specific execution cycle can be reduced by the number of times.
In one embodiment, the step of varying the watchdog time may include increasing the watchdog time in proportion to the increment of the error count included in the error count signal.
In another embodiment, the step of varying the watchdog time may include decreasing the watchdog time in proportion to the decrease in the error count included in the error count signal.
In still another embodiment, the step of variably changing the watchdog time may include increasing or decreasing the watchdog time according to whether the error count is included in the error count signal, May be determined to be a predetermined value according to attribute information of a task assigned to the processor which causes the error count increase / decrease.
According to another aspect of the present invention, there is provided a method for preventing a malfunction of a processor, the method comprising the steps of: detecting a malfunction of the processor and a watchdog timer; Receiving an error count signal from the watchdog timer to determine whether the error count has increased; And increasing the watchdog time (WDT) of the watchdog timer in proportion to the increment of the error count if the error count is increased as a result of the determination.
On the other hand, a method for preventing a malfunction of a processor according to the present invention includes: in the second execution period after the first execution period, the processor receives an error count signal from the watchdog timer to determine whether the error count has decreased; And determining if the error count is greater than zero if the error count is less than zero, if the error count is greater than zero, and if the error count is greater than zero, comparing the watchdog time of the watchdog timer with the decrease in the error count The method further comprising:
As described above, according to the present invention, it is possible to improve the error detection capability of the watch-dog timer and to cope with an exceptional situation that may occur in the processor, so that the processor can stably operate System environment can be implemented.
1 is an exemplary view showing a configuration of a watch-dog system according to the prior art;
FIG. 2 is a timing chart showing the flow of each signal in FIG. 1; FIG.
3 is a block diagram showing a general configuration of a watch-dog system to which a malfunction prevention method of a processor according to an embodiment of the present invention is applied.
4 is a flowchart showing a method of preventing malfunction of a processor according to an embodiment of the present invention.
5 is an exemplary diagram illustrating a correlation between a watch-dog error count and an increased or decreased watch-dog time (response latency) in an embodiment of the present invention;
BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention, and the manner of achieving them, will be apparent from and elucidated with reference to the embodiments described hereinafter in conjunction with the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Is provided to fully convey the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims. It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. In the present specification, the singular form includes plural forms unless otherwise specified in the specification.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to designate the same or similar components throughout the drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.
3 is a block diagram illustrating a general configuration of a watch-dog system to which a method for preventing malfunction of a processor according to an embodiment of the present invention is applied.
Referring to FIG. 3, the watch-dog system includes a
The watch-
The present invention relates to an improved method for preventing a malfunction of a processor in a watch-to-talk system as described above, wherein not only when a watch-and-dog timer is embedded in the processor but also when a separate circuit is configured, .
For the sake of convenience of explanation, the following description will be made on the assumption that the watch-
Hereinafter, a method for preventing malfunction of the processor according to the embodiment of the present invention will be described in detail with reference to FIGS. 4 and 5. FIG.
FIG. 4 is a flowchart showing a method of preventing a malfunction of a processor according to an embodiment of the present invention, and FIG. 5 is a flowchart showing a correlation between a watch-poison error count and an increased or decreased watch- Fig.
As shown in FIG. 4, the
For example, the
If the
As a result, the error count increases in the
On the other hand, when the
The
If it is determined that the error count has increased, the
In one embodiment, the
The increment of the watchdog time may be variably determined to a predetermined value according to the attribute information of the task assigned to the
For example, it is assumed that the task (Task 1) currently being processed by the
If it is confirmed that the error count of the
By variably increasing the watchdog time through the above-described process, it is possible to prevent the processor from being reset in the course of processing a specific task in the processor. Accordingly, when the task processing in an exceptional situation is terminated, the
In this case, the error count in the
On the other hand, if the increased watchdog time is continuously maintained even in a normal operating environment, the processing time for a malfunction of the processor may be delayed. To prevent this, the
As a result of checking, if the error count is decreased, it is checked whether the current error count has a value exceeding 0 (S50). If the current error count exceeds 0, the
The determination of the watchdog time reduction can be applied in the same way as determining the increment described above. Therefore, a detailed description thereof will be omitted.
Thereafter, the
It will be understood by those skilled in the art that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive. The scope of the present invention is defined by the appended claims rather than the detailed description, and all changes or modifications derived from the scope of the claims and their equivalents should be construed as being included within the scope of the present invention.
Claims (7)
The processor receiving and monitoring an error count signal from the watchdog timer; And
And varying a watchdog time (WDT) of the watchdog timer according to whether the processor increases or decreases the error count signal,
Wherein the error count signal comprises:
When the watchdog timer does not receive a watchdog signal for timer reset from the processor within a watchdog time set in a specific execution cycle,
When the watchdog timer receives a watchdog signal for timer reset from the processor within a watchdog time set in a specific execution cycle,
A method for preventing a malfunction of a processor.
And increasing the watchdog time in proportion to the increment when the error count included in the error count signal is increased
A method for preventing a malfunction of a processor.
And decreasing the watchdog time in proportion to the decrease when the error count included in the error count signal is decreased
A method for preventing a malfunction of a processor.
And increasing or decreasing the watchdog time according to whether the error count is included in the error count signal,
The increment / decrement of the watch dog time is determined to be a predetermined value according to attribute information of a task allocated to the processor which causes the error count increase / decrease
A method for preventing a malfunction of a processor.
The processor receiving an error count signal from the watchdog timer in a first execution period to determine whether the error count has increased; And
As a result of the determination, if the error count is increased, increasing the WatchDog Time (WDT) of the watchdog timer in proportion to the increment of the error count
Wherein the processor is operable to detect a malfunction of the processor.
Receiving, in a second execution period after the first execution period, the processor an error count signal from the watchdog timer to determine whether the error count has decreased; And
If it is determined that the error count is less than 0, if the error count is less than 0, the watchdog timer of the watchdog timer is decreased in proportion to the decrease of the error count, Step
Further comprising the steps of:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130125376A KR101469674B1 (en) | 2013-10-21 | 2013-10-21 | Method for preventing malfunction of processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130125376A KR101469674B1 (en) | 2013-10-21 | 2013-10-21 | Method for preventing malfunction of processor |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101469674B1 true KR101469674B1 (en) | 2014-12-05 |
Family
ID=52677829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020130125376A KR101469674B1 (en) | 2013-10-21 | 2013-10-21 | Method for preventing malfunction of processor |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101469674B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190014387A (en) * | 2017-08-02 | 2019-02-12 | 현대오트론 주식회사 | Mcu operation monitoring system and controlling method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244923A (en) * | 1996-03-11 | 1997-09-19 | Hitachi Ltd | Abnormality monitoring device using watchdog timer |
KR100664842B1 (en) * | 2005-11-28 | 2007-01-04 | 엘지노텔 주식회사 | Watchdog reset control circuit for programmable logic array |
KR20070040186A (en) * | 2005-10-11 | 2007-04-16 | 엘지노텔 주식회사 | An apparatus for generating a watch dog signal in a communication system |
KR20100007608A (en) * | 2008-07-14 | 2010-01-22 | 콘티넨탈 오토모티브 시스템 주식회사 | System and method for preventing malfunction of electronic control unit |
-
2013
- 2013-10-21 KR KR1020130125376A patent/KR101469674B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244923A (en) * | 1996-03-11 | 1997-09-19 | Hitachi Ltd | Abnormality monitoring device using watchdog timer |
KR20070040186A (en) * | 2005-10-11 | 2007-04-16 | 엘지노텔 주식회사 | An apparatus for generating a watch dog signal in a communication system |
KR100664842B1 (en) * | 2005-11-28 | 2007-01-04 | 엘지노텔 주식회사 | Watchdog reset control circuit for programmable logic array |
KR20100007608A (en) * | 2008-07-14 | 2010-01-22 | 콘티넨탈 오토모티브 시스템 주식회사 | System and method for preventing malfunction of electronic control unit |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190014387A (en) * | 2017-08-02 | 2019-02-12 | 현대오트론 주식회사 | Mcu operation monitoring system and controlling method thereof |
KR101988723B1 (en) * | 2017-08-02 | 2019-06-12 | 현대오트론 주식회사 | Mcu operation monitoring system and controlling method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9677930B2 (en) | Method of interrupt control and electronic system using the same | |
JP6380875B2 (en) | Detection distance calibration method, apparatus, and device | |
US9645898B2 (en) | Storage control device and control device for detecting abnormality of signal line | |
RU2016134773A (en) | METHOD, DEVICE AND SYSTEM FOR DETERMINING SLEEP STATE | |
US10496128B2 (en) | Method for obtaining timestamp and computer device using the same | |
US20160253285A1 (en) | Method And System of Synchronizing Processors To The Same Computational Point | |
US8762792B2 (en) | Event monitor having switch matrix, separate counter, and compare circuitry | |
KR101469674B1 (en) | Method for preventing malfunction of processor | |
EP2247992B1 (en) | Clock switching circuits and methods | |
CN114817110A (en) | Data transmission method and device | |
KR20150004232A (en) | Watchdog apparatus and the controlling method thereof | |
US10838795B2 (en) | Monitoring circuit with a signature watchdog | |
JP2007526670A (en) | Lossless transfer of events between clock domains | |
KR102438148B1 (en) | Abnormality detection apparatus, system and method for detecting abnormality of embedded computing module | |
CN109753404B (en) | Control system state monitoring circuit and method and control system central processing unit | |
US8099637B2 (en) | Software fault detection using progress tracker | |
KR20220074993A (en) | controller | |
CN114896110A (en) | Link detection method, device, equipment and storage medium | |
KR102219432B1 (en) | Watchdog apparatus and control method thereof | |
US8379643B2 (en) | Method for controlling transmission speed of multi-cast packets | |
US20200314221A1 (en) | Devices with networking functionality | |
CN101944056A (en) | Method and device for monitoring multitask system | |
US20190286513A1 (en) | Preemptive signal integrity control | |
JP2019191942A (en) | Control device and function inspection method | |
CN113630282B (en) | Method and device for detecting server state |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |