Embedded operating system watchdog realizing method

A technology of operating system and implementation method, applied in the fields of instruments, electrical digital data processing, computing, etc., can solve problems such as failure to detect thread exceptions, failure of hardware watchdogs to detect abnormal execution, and abnormal system operation.

Inactive Publication Date: 2015-05-20
ZHANGZHOU CANNET ELECTRICAL APPLIANCE
View PDF8 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. During the running of the system, when a certain thread is abnormal, at this time, because there are other threads feeding the hardware watchdog, it is impossible to detect the thread abnormality, causing the system to run abnormally
[0004] 2.

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
  • Embedded operating system watchdog realizing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention will be further described below through specific embodiments.

[0017] refer to figure 1 A watchdog implementation method for an embedded operating system is provided with a software watchdog thread and a hardware watchdog. When the system starts, start the software watchdog thread and set it as the highest priority, and when it is in an active state regularly, feed the dog to the dog feeding end of the hardware watchdog. The working thread of the system is isolated from the hardware watchdog and does not interact with the hardware watchdog. And each working thread of the setting system must feed the dog to the software watchdog thread within a specified time to make it active, that is, the software watchdog thread monitors whether all working threads are running normally. If any of the working threads times out and there is no dog feeding, the working thread has an exception, and it is determined that a software exception has occurred in the sys...

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

Provided is an embedded operating system watchdog realizing method. When an embedded operating system is started, a software watchdog thread is started and set at the highest priority, and the software watchdog thread feeds a watchdog at the watchdog feeding end of the hardware watchdog in a timed mode under an active state; all working threads of the system are set to must feed the watchdog for the software watchdog threads within the set period so as to enable the software watchdog threads to be at the active state, and if any working thread is overtime and does not feed the watchdog, it is determined that software abnormality of the system happens, the software watchdog thread is at a non-active state and stops feeding the hardware watchdog, and the hardware watchdog triggers the system for resetting. The software watchdog thread is matched with the hardware watchdog, and it can be guaranteed that in the operation process of the embedded operating system, software operates reliably, operation problems of the system are found in time, and various problems in software and hardware can be conveniently and efficiently checked and solved.

Description

technical field [0001] The invention relates to the field of embedded operating systems, in particular to a method for realizing a watchdog of an embedded operating system. Background technique [0002] For the current mainstream embedded systems, external hardware watchdog circuits are used to ensure the stable operation of the system. In embedded software, there are generally two processing methods for multithreading: one is that each execution thread feeds the hardware watchdog; the other is that one thread feeds the watchdog, and other threads do not interact with the thread. interact. These two processing methods have certain risks, such as: [0003] 1. When the system is running, when a certain thread is abnormal, at this time, because there are other threads feeding the hardware watchdog, the thread abnormality cannot be detected, causing the system to run abnormally. [0004] 2. A thread feeds the hardware watchdog. Only when the thread executes abnormally, the ha...

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
IPC IPC(8): G06F11/00
Inventor 何树生许良刚林冬武
Owner ZHANGZHOU CANNET ELECTRICAL APPLIANCE
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