Supercharge Your Innovation With Domain-Expert AI Agents!

Setting and feeding method for watchdog

A watchdog and dog-feeding signal technology, applied in the field of watchdog programs, can solve the problems of program running away, poor dog feeding effect by feeding the dog, and the main program interrupting the program running away, etc., to achieve good results.

Inactive Publication Date: 2015-09-09
NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When feeding the dog, both the main program and the interrupt program are sending the dog feeding signal, but since it is impossible to judge who sends the dog feeding signal, the problem of the main program or the interrupt program running away will still occur, so that the prior art watchdog The dog feeding effect of the setting and feeding method is poor
And if only a watchdog is placed in the main program or each interrupt program, it will not be able to play a monitoring role, and the problem of program running away will also occur.

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
  • Setting and feeding method for watchdog

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0013] Such as figure 1 Shown, the setting of a kind of watchdog of the present invention and dog-feeding method, comprise a watchdog and k interrupt programs; The setting of described watchdog and dog-feeding method also comprise the following steps:

[0014] (1), place a watchdog in the main program, and place a data n1, n2, n3, ..., nk in each interrupt program at the same time, if there are 3 interrupt programs, then in each interrupt program Place a data, n1, n2, n3;

[0015] (2), take n1-1, n2-1, n3-1, ..., nk-1, if (n1-1)≠0, (n2-1)≠0, (n3-1)≠0, ... ..., (nk-1)≠0, then the main program sends a dog feeding signal once, and returns to step (1); otherwise, execute step (3); in this embodiment, it is judged that (n1-1)≠0, (n2 -1)≠0, (n3-1)≠0, it means that each interrupt program is running, and return to step (1) for re-execution; generall...

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 a setting and feeding method for a watchdog. A watchdog and k interrupt programs are included. The setting and feeding method for the watchdog further comprises the following steps: (1) putting the watchdog in a main program and putting data n1, n2, n3 to nk in each interrupt program at the same time; (2) subtracting 1 by n1, subtracting 1 by n2, subtracting 1 by n3 ... subtracting 1 by nk, and if (n1-1) is not equal to 0, (n2-1) is not equal to 0, (n2-1) is not equal to 0 ... and (nk-1) is not equal to 0, sending a dog-feeding signal once by the main program and returning back to the step (1); otherwise, executing the step (3); (3) if any one or more of (n1-1), (n2-1), (n3-1) ... and (nk-1) is equal to 0, judging that monitoring is interrupted, and not sending the dog-feeding signal by the main program; and (4) rebooting the main program. The dog-feeding effect of the method is good.

Description

technical field [0001] The invention relates to a watchdog program used in an electric energy meter, specifically a watchdog setting and dog feeding method. Background technique [0002] In the prior art watchdog control method, a watchdog is generally placed in a main program and a plurality of interrupt programs. When feeding the dog, both the main program and the interrupt program are sending the dog feeding signal, but since it is impossible to judge who sends the dog feeding signal, the problem of the main program or the interrupt program running away will still occur, so that the prior art watchdog The dog feeding effect of the setting and feeding method of the dog is relatively poor. And if only a watchdog is placed in the main program or each interrupt program, it will not be able to play a monitoring role, and the problem of program running away will also occur. Therefore, based on the above-mentioned reasons, there is an urgent need for a setting and a dog-feedin...

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/07
Inventor 郑坚江胡志刚
Owner NINGBO SANXING MEDICAL & ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More