CN104679606B - Watchdog circuit detection method and device - Google Patents
Watchdog circuit detection method and device Download PDFInfo
- Publication number
- CN104679606B CN104679606B CN201510119464.9A CN201510119464A CN104679606B CN 104679606 B CN104679606 B CN 104679606B CN 201510119464 A CN201510119464 A CN 201510119464A CN 104679606 B CN104679606 B CN 104679606B
- Authority
- CN
- China
- Prior art keywords
- dog
- signal
- feedback signal
- prefabricated
- watchdog circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 15
- 230000002159 abnormal effect Effects 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Abstract
The application discloses a watchdog circuit detection method and device. The method judges whether the watchdog circuit has faults by sending a prefabricated watchdog feeding signal to the watchdog and judging whether a feedback signal of the watchdog is matched with an expected feedback signal of the prefabricated watchdog feeding signal. Compared with the prior art, the watchdog circuit can realize the feedback of the prefabricated watchdog feeding signal, so that the CPU can judge whether the watchdog is in fault according to the feedback signal, thereby realizing the fault detection of the watchdog and avoiding the dangerous operation caused by double faults of the CPU and the watchdog circuit.
Description
Technical field
The application is related to microelectronic, more specifically to a kind of watchdog circuit detection method and device.
Background technology
Modern central processing unit generally carries watchdog circuit, can be heavy when central processing unit occurs unpredictable wrong
It is new to start central processing unit.Its process is that cpu chip detects feeding-dog signal to watchdog circuit timing dog-feeding, watchdog circuit
Drive cycle, to judge whether the scheduling mechanism of CPU timing mechanism and CPU correctly runs.When CPU feed dog cycle mistake or
Stop after feeding dog, watchdog circuit can find mistake in time and by circuit failure to the safe side side, and directly CPU is resetted.When
Preceding CPU can not realize the fault detect to watchdog circuit, even if so causing watchdog circuit failure, CPU can not still know
The information, and the twin failure of CPU and watchdog circuit is caused, cause dangerous operation.
The content of the invention
In view of this, the application provides a kind of watchdog circuit detection method and device, to realize the event of watchdog circuit
The detection of barrier, avoid the dangerous operations of CPU.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of watchdog circuit detection method, it is characterised in that including:
Prefabricated feeding-dog signal is sent to watchdog circuit;
The feedback signal of watchdog circuit is received, and judges whether the feedback signal is pre- with the prefabricated feeding-dog signal
Phase feedback signal matches;
If not, it is determined that the watchdog circuit failure;
Wherein, it is described to send prefabricated feeding-dog signal to watchdog circuit, including:Prefabricated exception is sent to watchdog circuit
Feeding-dog signal;
It is described to judge whether the feedback signal matches with the expection feedback signal of the prefabricated feeding-dog signal, including:
Judge the feedback signal whether be it is abnormal feed dog feedback signal, if, it is determined that the feedback signal with it is described
The expection feedback signal of prefabricated feeding-dog signal matches.
Preferably, it is described to send prefabricated feeding-dog signal to watchdog circuit, including:
Prefabricated normal feeding-dog signal is sent to watchdog circuit.
Preferably, it is described judge the feedback signal whether the expection feedback signal phase with the prefabricated feeding-dog signal
Match somebody with somebody, including:
Judge whether the feedback signal is that the expected of normal feeding-dog signal feeds back, if, it is determined that the feedback signal
Match with the expection feedback signal of the prefabricated feeding-dog signal.
Preferably, the abnormal feeding-dog signal prefabricated to watchdog circuit transmission, including:
The exception that the time drift prefabricated to watchdog circuit transmission is spaced between 7ms~9ms and 11ms~14ms is fed
Dog signal.
Preferably, the abnormal feeding-dog signal prefabricated to watchdog circuit transmission, including:
The feeding-dog signal that prefabricated time interval is 5ms and 10ms is sent to watchdog circuit.
Preferably, it is described to send prefabricated feeding-dog signal to watchdog circuit, including:
Prefabricated empty feeding-dog signal is sent to watchdog circuit.
Preferably, it is described judge the feedback signal whether the expection feedback signal phase with the prefabricated feeding-dog signal
Match somebody with somebody, including:
Judge the feedback signal whether be sky feeding-dog signal expected feedback, if, it is determined that the feedback signal with
The expection feedback signal of the prefabricated feeding-dog signal matches.
A kind of watchdog circuit detection means, including:
Signal transmitting unit, for sending prefabricated feeding-dog signal to watchdog circuit;
Judging unit, for receiving the feedback signal of watchdog circuit, and judge the feedback signal whether with it is described pre-
The expection feedback signal of feeding-dog signal processed matches, if not, it is determined that the watchdog circuit failure;
Wherein, when signal transmitting unit sends prefabricated abnormal feeding-dog signal to watchdog circuit, judging unit judges
Whether the feedback signal is abnormal hello dog feedback signal, if, it is determined that the feedback signal and the prefabricated feeding-dog signal
Expection feedback signal match.
Through as shown from the above technical solution, this application discloses a kind of watchdog circuit detection method and device.This method
By sending prefabricated feeding-dog signal to house dog, and judge whether the feedback signal of house dog is anti-with the expection of prefabricated feeding-dog signal
Feedback signal match judge watchdog circuit whether failure.Compared with prior art, the watchdog circuit can in the present invention
Realize to the feedback of prefabricated feeding-dog signal, thus CPU can be judged according to the feedback signal house dog whether failure, so as to realize pair
The detection of house dog failure, avoid causing the twin failure of CPU and watchdog circuit, cause dangerous situation about running.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 shows a kind of flow signal of one embodiment of watchdog circuit detection method of the present invention;
Fig. 2 shows a kind of schematic flow sheet of another embodiment of watchdog circuit detection method of the present invention;
Fig. 3 shows a kind of structural representation of one embodiment of watchdog circuit detection means of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Show that a kind of flow of one embodiment of watchdog circuit detection method of the present invention is illustrated referring to Fig. 1.
101:Prefabricated feeding-dog signal is sent to watchdog circuit.
It should be noted that the prefabricated feeding-dog signal can be prefabricated normal feeding-dog signal, prefabricated in the present embodiment
Abnormal feeding-dog signal or prefabricated empty feeding-dog signal, that is, suspend to watchdog circuit and send feeding-dog signal.
102:Receive watchdog circuit feedback signal, and judge the feedback signal whether with the prefabricated feeding-dog signal
Expection feedback signal match, if, it is determined that the watchdog circuit is normal.
In the present invention the watchdog circuit when receiving the prefabricated feeding-dog signal of CPU transmissions, it is necessary to be sent to CPU anti-
Feedback signal, and then CPU judges whether the feedback signal matches with the prefabricated feeding-dog signal sent to watchdog circuit.
Such as, when the prefabricated feeding-dog signal is normal feeding-dog signal, the feedback signal that CPU is received is fed back normally to feed dog
During signal, illustrate that the feedback signal matches with prefabricated feeding-dog signal.
When CPU normally feeds dog, and watchdog circuit is normal, watchdog circuit can send to CPU and normally feed dog feedback letter
Number, while CPU reset is not triggered.
Compared with prior art, the watchdog circuit can realize the feedback to prefabricated feeding-dog signal in the present invention, thus
CPU can be judged according to the feedback signal house dog whether failure, so as to realize the detection to house dog failure, avoid causing CPU
With the twin failure of watchdog circuit, cause dangerous situation about running.
A kind of schematic flow sheet of another embodiment of watchdog circuit detection method of the present invention is shown referring to Fig. 2.
It should be noted that the present embodiment CPU by watchdog circuit send different-format prefabricated feeding-dog signal.
By feedback of the watchdog circuit under CPU different faults patterns, judge whether watchdog circuit is in malfunction.
It is comprised the following steps that:
201:Using the prefabricated normal feeding-dog signal of every 10ms upsets once, dog is normally fed, judges house dog feedback letter
Number whether be normally feed dog feedback signal.
If the feedback signal is normally hello dog feedback signal, it is determined that the feedback signal and the prefabricated feeding-dog signal
It is expected that feedback signal matches, watchdog circuit is normal.
202:Suspend feeding-dog signal, whether the feedback signal for judging house dog is abnormal hello dog feedback signal.
When watchdog circuit is normal, if CPU, which suspends to watchdog circuit, sends feeding-dog signal, watchdog circuit can be to
CPU sends abnormal normally hello dog feedback signal.If conversely, the feedback signal of watchdog circuit for normally feed dog feedback signal when,
Then illustrate watchdog circuit failure.
203:Recover feeding-dog signal after restarting, being spaced between 7ms-9ms and 11ms-14ms for feeding-dog signal is drifted about,
Judge whether the feedback signal is abnormal hello dog feedback signal.
The feeding-dog signal is abnormal feeding-dog signal, if watchdog circuit is normal, watchdog circuit identification feeding-dog signal is determined
When forbidden, and to CPU send it is abnormal feed dog feedback signal, if otherwise the feedback signal normally to feed dog feedback signal when, really
Determine watchdog circuit failure.
204:Dog is fed using the feeding-dog signal alternated as 5ms and 10ms, judges whether the feedback signal is abnormal
Feed dog feedback signal.
The step is identical with step S104 principles, because the feeding-dog signal is abnormal feeding-dog signal, if house dog is normal,
Watchdog circuit identifies feeding-dog signal bad timing, and sends abnormal hello dog feedback signal to CPU, if the feedback signal on the contrary is
When normally feeding dog feedback signal, it is determined that watchdog circuit failure.
It should be noted that between step 201, step 202, step 203 and step 204 independently of each other, operating personnel
Fault detect can be carried out to watchdog circuit by any one above-mentioned mode.
A kind of structural representation of one embodiment of watchdog circuit detection means of the present invention is shown referring to Fig. 3.
The device includes:
Signal transmitting unit 1, for sending prefabricated feeding-dog signal to watchdog circuit;
Judging unit 2, for receiving the feedback signal of watchdog circuit, and judge the feedback signal whether with it is described pre-
The expection feedback signal of feeding-dog signal processed matches, if, it is determined that the watchdog circuit is normal.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (8)
- A kind of 1. watchdog circuit detection method, it is characterised in that including:Prefabricated feeding-dog signal is sent to watchdog circuit;The feedback signal of watchdog circuit is received, and judges whether the feedback signal is anti-with the expection of the prefabricated feeding-dog signal Feedback signal matches;If, it is determined that the watchdog circuit is normal;Wherein, it is described to send prefabricated feeding-dog signal to watchdog circuit, including:Prefabricated exception, which is sent, to watchdog circuit feeds dog Signal;It is described to judge whether the feedback signal matches with the expection feedback signal of the prefabricated feeding-dog signal, including:Judge the feedback signal whether be it is abnormal feed dog feedback signal, if, it is determined that the feedback signal with it is described prefabricated The expection feedback signal of feeding-dog signal matches.
- 2. according to the method for claim 1, it is characterised in that described to send prefabricated feeding-dog signal, bag to watchdog circuit Include:Prefabricated normal feeding-dog signal is sent to watchdog circuit.
- 3. according to the method for claim 2, it is characterised in that it is described judge the feedback signal whether with it is described it is prefabricated hello The expection feedback signal of dog signal matches, including:Judge the feedback signal whether be normally feed dog feedback signal, if, it is determined that the feedback signal with it is described prefabricated The expection feedback signal of feeding-dog signal matches.
- 4. according to the method for claim 1, it is characterised in that described to send prefabricated exception hello dog letter to watchdog circuit Number, including:The exception that the time drift prefabricated to watchdog circuit transmission is spaced between 7ms~9ms and 11ms~14ms feeds dog letter Number.
- 5. according to the method for claim 1, it is characterised in that described to send prefabricated exception hello dog letter to watchdog circuit Number, including:The feeding-dog signal that prefabricated time interval is 5ms and 10ms is sent to watchdog circuit.
- 6. according to the method for claim 1, it is characterised in that described to send prefabricated feeding-dog signal, bag to watchdog circuit Include:Prefabricated empty feeding-dog signal is sent to watchdog circuit.
- 7. according to the method for claim 6, it is characterised in that it is described judge the feedback signal whether with it is described it is prefabricated hello The expection feedback signal of dog signal matches, including:Judge the feedback signal whether be it is abnormal feed dog feedback signal, if, it is determined that the feedback signal with it is described prefabricated The expection feedback signal of feeding-dog signal matches.
- A kind of 8. watchdog circuit detection means, it is characterised in that including:Signal transmitting unit, for sending prefabricated feeding-dog signal to watchdog circuit;Judging unit, for receiving the feedback signal of watchdog circuit, and judge the feedback signal whether with it is described it is prefabricated feed The expection feedback signal of dog signal matches, if, it is determined that the watchdog circuit is normal;Wherein, when signal transmitting unit sends prefabricated abnormal feeding-dog signal to watchdog circuit, described in judging unit judgement Whether feedback signal is abnormal hello dog feedback signal, if, it is determined that the feedback signal is pre- with the prefabricated feeding-dog signal Phase feedback signal matches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510119464.9A CN104679606B (en) | 2015-03-18 | Watchdog circuit detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510119464.9A CN104679606B (en) | 2015-03-18 | Watchdog circuit detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104679606A CN104679606A (en) | 2015-06-03 |
CN104679606B true CN104679606B (en) | 2018-02-09 |
Family
ID=
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5513319A (en) * | 1993-07-02 | 1996-04-30 | Dell Usa, L.P. | Watchdog timer for computer system reset |
CN101221518A (en) * | 2008-01-29 | 2008-07-16 | 福建星网锐捷网络有限公司 | Method, device and system for preventing timing device overflow of hardware watchdog |
CN101751303A (en) * | 2008-12-17 | 2010-06-23 | Tcl集团股份有限公司 | Watchdog system in embedded device and control method thereof |
CN102637139A (en) * | 2012-04-13 | 2012-08-15 | 华为技术有限公司 | Method, device and single panel for feeding watchdog by embedded system |
CN104102572A (en) * | 2013-04-01 | 2014-10-15 | 中兴通讯股份有限公司 | Method and device for detecting and processing system faults |
CN203909782U (en) * | 2014-06-13 | 2014-10-29 | 中国航天科技集团公司第九研究院第七七一研究所 | Watchdog circuit control module for state of self-adaption processor |
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5513319A (en) * | 1993-07-02 | 1996-04-30 | Dell Usa, L.P. | Watchdog timer for computer system reset |
CN101221518A (en) * | 2008-01-29 | 2008-07-16 | 福建星网锐捷网络有限公司 | Method, device and system for preventing timing device overflow of hardware watchdog |
CN101751303A (en) * | 2008-12-17 | 2010-06-23 | Tcl集团股份有限公司 | Watchdog system in embedded device and control method thereof |
CN102637139A (en) * | 2012-04-13 | 2012-08-15 | 华为技术有限公司 | Method, device and single panel for feeding watchdog by embedded system |
CN104102572A (en) * | 2013-04-01 | 2014-10-15 | 中兴通讯股份有限公司 | Method and device for detecting and processing system faults |
CN203909782U (en) * | 2014-06-13 | 2014-10-29 | 中国航天科技集团公司第九研究院第七七一研究所 | Watchdog circuit control module for state of self-adaption processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103516571B (en) | A kind of dual CAN bus ensures system architecture and the method thereof of data communication reliability | |
CN104320295B (en) | CAN message method for detecting abnormality and system | |
CN104135398B (en) | Bus based on intelligent RS485 hubs locks detection method | |
CN101661417B (en) | Interface system ensuring connection reliability between sub-card and backing plate, backing plate and method | |
WO2002097624A3 (en) | Recovery computer for a plurality of networked computers | |
CN104796329B (en) | A kind of link automatic switching method and device | |
CN103425542B (en) | There is the safety detecting system of integrated diagnosis function | |
CN101068169A (en) | Loop fault detecting method, subring main node and subring | |
CN101819615A (en) | Method for protecting multimedia product through gravity acceleration | |
CN110213136A (en) | A kind of communicating control method and system | |
CN106301986A (en) | Chain circuit detecting method and device | |
CN104849612B (en) | Electrical power distribution network fault location method and device | |
CN104679606B (en) | Watchdog circuit detection method and device | |
CN104778104B (en) | Error detection method of serial data communication bus and serial data communication bus | |
CN101163059B (en) | Network node detection method and apparatus | |
CN106874126A (en) | Host process method for detecting abnormality in a kind of software development | |
CN106656575A (en) | Fault diagnosis method suitable for longitudinal protection multiplex channel | |
CN102853546B (en) | Water heater and control method thereof | |
CN103163863B (en) | Transmission control method and system of CAN information | |
JP2013115603A5 (en) | ||
CN104038387B (en) | Line detecting method on frame-type switch business board | |
CN103684404B (en) | High-speed data transmission method and system when error detection | |
CN205802934U (en) | A kind of oil product automatic filling machine | |
CN104679606A (en) | Method and device for detecting watchdog circuit | |
JP2003244156A (en) | Railway signal transmitting system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100073, Huayuan 18, Fengtai District, Beijing Applicant after: CRSC RESEARCH & DESIGN INSTITUTE GROUP Co.,Ltd. Address before: 100073, Huayuan 18, Fengtai District, Beijing Applicant before: BEIJING NATIONAL RAILWAY RESEARCH & DESIGN INSTITUTE OF SIGNAL & COMMUNICATION Co.,Ltd. |
|
GR01 | Patent grant |