Watchdog control method

A control method and watchdog technology, applied in instruments, digital data processing, computing, etc., can solve problems such as heavy CPU load, dog feeding task cannot guarantee timely dog ​​feeding, system reset, etc.

Active Publication Date: 2006-08-09
航天智讯新能源(山东)有限公司
View PDF0 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a task writes to FLASH, sometimes it will block other tasks (including the dog feeding task) for more than 10 seconds; 3) When the CPU load is heavy, the dog feeding task cannot be scheduled within 1.6 seconds
In the above three cases, because the maximum feeding interval of commonly used watchdog chips such as ADM706 is too short, sometimes the dog feeding task cannot be guaranteed to feed the dog in time, which will cause the system to reset when the program is running normally, losing the meaning of the watchdog

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Watchdog control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] see figure 1 , the watchdog control method of the present invention is used to monitor the application program, so that when the dog feeding task of the application program does not feed the dog within the set maximum dog feeding time interval, the watchdog module automatically sends a reset signal to enable System reset. The watchdog control method comprises the following processes: 1) the system is interrupted at a set interrupt time interval; the interrupt triggers the interrupt service routine; 2) the time variable is read, and the time variable value increases by an interrupt time interval every time the system is interrupted ;3) Compare the time variable value with the set maximum dog feeding time interval. When the time variable value is not greater than the maximum dog feeding time interval, the interrupt service routine will feed the dog by itself. When the time variable value is greater than the maximum dog feeding time interval, interrupt The service program...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The disclosed watchdog control method includes processes: (1) according to interruption time interval, the system generates interrupt, which triggers interrupt service routine; (2) reading out time variable; the time variable adds an interruption time interval when each interrupt takes place in the system; (3) comparing value of time variable with maximal time interval for feeding dog setup in system; when value of time variable is not larger than maximal time interval for feeding dog, the interrupt service routine feeds dog; when value of time variable is larger than maximal time interval, the interrupt service routine stops feeding dog, and the watchdog module resets system; (4) when application program feeds dog, the value of time variable is reset. Since maximal time interval for feeding dog can be set based on condition, longer time interval is allowed so as to prevent issue of resetting system caused by feeding dog not in time since application program for feeding dog is blocked.

Description

【Technical field】 [0001] The invention relates to a watchdog control method, in particular to a watchdog control method applied to a single-board system composed of a PCB printed circuit board, a CPU chip and other electronic devices. 【Background technique】 [0002] In single-board circuit design, it is often necessary to use a watchdog to monitor the operation of the application program and improve the reliability of the system. The maximum feeding interval T of commonly used watchdog chips is relatively short and cannot be fixed. Taking the commonly used watchdog chip ADM706 / MAX706 as an example, the maximum feeding interval T is about 1.6 seconds, so it is normal in the application program. When working, the dog feeding task of the application must ensure that the dog is fed once within 1.6 seconds, otherwise the CPU will be reset. For simple single-board systems, the dog feeding task ensures that the dog is fed in a very short time due to the simplicity of the applicati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/00
CPCG06F11/362G06F11/3632G06F11/0757
Inventor 严慧勇李熹毛福华
Owner 航天智讯新能源(山东)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products