Implementation method for software watchdog based on message monitoring

A technology of software watchdog and implementation method, which is applied in the direction of response error generation, instrumentation, electrical digital data processing, etc. It can solve the problems of monitoring misjudgment, recovery, and user-level monitoring without detailed instructions, so as to improve efficiency Effect

Inactive Publication Date: 2017-02-22
SHANGHAI OTEC TECH
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For a software system running an embedded operating system, in order to ensure the normal operation of the software system and the safety and stability of the system, in addition to implementing the watchdog in the hardware circuit, the software watchdog is extremely important. Currently, the Linux kernel has There is a preliminary software watchdog implementation method, but there is no detailed description for the monitoring of user-level processes.
[0003] Most of the implementation methods of user-

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
  • Implementation method for software watchdog based on message monitoring
  • Implementation method for software watchdog based on message monitoring

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 The realization method of the system watchdog system that shows a kind of realization method of the software watchdog system based on message monitoring of the present invention, comprises the following steps:

[0026] There will be a timer in the driver module, waiting for the message sent by the monitoring process, if the timer does not receive the message of the monitoring process after the timer expires, the watchdog will send the message to the monitoring process in reverse;

[0027] If there is still no response from the monitoring process at this time, it means that the system is deadlocked or the main process is suspended. At this time, the watchdog will perform a soft restart of the system.

[0028] figure 2 In order to illustrate an implementation method of a system watchdog system based on a message monitoring software watchdog system of the present invention,

[0029] The software watchdog of the application layer lies in the realization of the m...

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 invention discloses an implementation method for a software watchdog based on message monitoring. The method mainly covers two parts, namely a software watchdog of an application process and a system watchdog, wherein the main core of the two parts is message monitoring, namely a method based on message interaction. The system watchdog starts with the system and is loaded in a way of a drive module, an interface which can be read and written by a monitoring process is created and is used for receiving a message of the monitoring process. The software watchdog of an application layer is used for implementation of a daemon process, the effects of the daemon process in the system are process monitoring and message distribution, all processes in the system register one watchdog message and establish a message connection channel with the daemon process, and the daemon process records status information of each process. According to the implementation method for the software watchdog based on message monitoring, the system state and the process state can be simultaneously monitored, so that the software system is more stable, compatible and reliable.

Description

technical field [0001] The invention relates to an embedded system, in particular to a method for monitoring the real-time status of the system and the running status of working processes in the system by using software to implement a watchdog in the embedded system. Background technique [0002] For software systems running embedded operating systems, in order to ensure the normal operation of the software system and the safety and stability of the system, in addition to implementing the watchdog in the hardware circuit, the software watchdog is extremely important. At present, the Linux kernel has There is a preliminary software watchdog implementation method, but there is no detailed description for the monitoring of user-level processes. [0003] Most of the implementation methods of user-level process monitoring use timers to actively send specific heartbeat messages to the monitoring process to tell the status of the main monitoring process itself. The disadvantage of ...

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/07
CPCG06F11/0757
Inventor 方建江王丽坤张介夫
Owner SHANGHAI OTEC TECH
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