CN106354596A - Method for checking whether external watchdog chip works normally - Google Patents
Method for checking whether external watchdog chip works normally Download PDFInfo
- Publication number
- CN106354596A CN106354596A CN201610850973.3A CN201610850973A CN106354596A CN 106354596 A CN106354596 A CN 106354596A CN 201610850973 A CN201610850973 A CN 201610850973A CN 106354596 A CN106354596 A CN 106354596A
- Authority
- CN
- China
- Prior art keywords
- self
- inspection
- data content
- memory element
- character string
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
- Debugging And Monitoring (AREA)
Abstract
A method for checking whether an external watchdog chip works normally comprises initiation of a self-check instruction, system resetting, entering of a self-check state, result output and normal operation of the system. Through detection of the watchdog chip, a collector terminal, which cannot work normally, of the chip can be found timely, a fault terminal is prevented from coming into the market, and the potential operation risk of an on-site terminal is eliminated timely.
Description
Technical field
The present invention relates to power information acquisition system technical field, detect outside in more particularly, to a kind of data collection station
The method of watchdog chip whether normal work.
Background technology
With the continuous propulsion of electric power information transformation, usage amount in centralized meter-reading system for each collecting device constantly increases
Long.Working environment makes each data acquisition equipment inevitably be disturbed by external electromagnetic field, once encountering serious electromagnetic field
Interference, machine situation of delaying in the microprocessor that will result in collecting device.Watchdog chip is monitored as system running state
Chip, timely wake-up during machine of delaying for system plays vital effect.
Due to by chip quality itself, producing and the factor such as welding and affected, watchdog chip can produce inefficacy it is impossible in time
Realize the functions such as wake-up that reset.Therefore when collecting device is produced in batches, answer in time detection watchdog chip normal
The acquisition terminal of work, it is to avoid it comes into the market.At present in industry general acquiescence chip can normal work, not to chip functions
Detected, this hides some dangers for later stage normal operation of product.
Content of the invention
For the problems referred to above, the invention provides a kind of method of detection outer watchdog chip whether normal work.
For solving the above problems, the technical scheme that the present invention takes is: whether a kind of detection outer watchdog chip is normal
The method of work, comprises the following steps:
Step one, initiation self-inspection order
Open up one piece and can be used for writing the memory element of character string s1, s2 and s3, character string s1, s2 and s3 represent certainly respectively
Inspection request flag, self-inspection Success Flag and self-inspection invalid flag;
Self-inspection order is initiated by the outside interactive interface such as port or button, and writes character string in the memory unit
S1, shows to receive self-inspection request flag, enters step 3;
Step 2, system reset
System reset, reads the data content in memory element, judges whether this segment data content is consistent with character string s1,
If consistent, the data content in memory element be changed to s2, and enter step 3, show that house dog can be with normal work, core
Piece is normal, otherwise enters step 5, shows that house dog self-inspection completes, system is normally run;
Step 3, entrance self-inspection state
T1, the data content reading in memory element, judge whether this data content is consistent with character string s1, if consistent,
Execution t2, first enters into self-inspection state;Otherwise judge whether this data content is consistent with character string s2, if consistent, execute t3,
Self-inspection success, otherwise executes t5;
T2, program enter empty waiting state, and start-up study waits reset intervalometer, and according to watchdog chip featured configuration
High latency, stops dog feeding operation in the waiting time, observes whether house dog can produce reset, if produce resetting, enters
Enter step 2, if system does not produce reset in the waiting time, execute t4;
T3, self-inspection success, the data content in memory element are changed to s2, chip is normal, enter step 4;
T4, fail self-test, the data content in memory element is changed to non-s1 and non-s2, shows that process of self-test malfunctions,
Chip is abnormal, enters step 4;
T5, self-inspection are invalid, and the data content in memory element is changed to s3, and detection is invalid, enters step 4;
Step 4, result output
According to the self-detection result mark in step 3, self-inspection knot is externally exported by outut devices such as port or liquid crystal
Really: chip is normal, chip is abnormal, detection is invalid, enter step 5;
Step 5, system are normally run
Self-inspection completes, system recovery normal operating condition, executes normal operation code.
Preferably, described memory element is arranged in the data storage area that power failure data will not be lost.
By the detection to watchdog chip, the harvester terminal of chip cisco unity malfunction can be found in time, it is to avoid
" problem terminal " comes into the market, and eliminates the operation hidden danger of on-site terminal in time.
Brief description
Fig. 1 is the workflow diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the specific implementation step of the present invention is described in detail: a kind of detection outer watchdog chip
The whether method of normal work, comprises the following steps:
Step one, initiation self-inspection order
Open up one piece to can be used for writing depositing of character string s1, s2 and s3 in the data storage area that power failure data will not be lost
Storage unit, character string s1, s2 and s3 represent self-inspection request flag, self-inspection Success Flag and self-inspection invalid flag respectively;
Self-inspection order is initiated by the outside interactive interface such as port or button, and writes character string in the memory unit
S1, enters step 3;
Step 2, system reset
System reset, reads the data content in memory element, judges whether this segment data content is consistent with character string s1,
If consistent, the data content in memory element be changed to s2, and enter step 3, otherwise enter step 5;
Step 3, entrance self-inspection state
T1, the data content reading in memory element, judge whether this data content is consistent with character string s1, if consistent,
Execution t2, first enters into self-inspection state;Otherwise judge whether this data content is consistent with character string s2, if consistent, execute t3,
Otherwise execute t5;
T2, program enter empty waiting state, and start-up study waits reset intervalometer, and according to watchdog chip featured configuration
High latency, stops dog feeding operation in the waiting time, observes whether house dog can produce reset, if produce resetting,
Enter step 2, if system does not produce reset in the waiting time, execute t4;
T3, self-inspection success, the data content in memory element are changed to s2, enter step 4;
T4, fail self-test, the data content in memory element is changed to non-s1 and non-s2, enters step 4;
T5, self-inspection are invalid, and the data content in memory element is changed to s3, enter step 4;
Step 4, result output
According to the self-detection result mark in step 3, self-inspection knot is externally exported by outut devices such as port or liquid crystal
Really, enter step 5;
Step 5, system are normally run
Self-inspection completes, system recovery normal operating condition, executes normal operation code.
Claims (4)
1. a kind of method of inspection outer watchdog chip whether normal work is it is characterised in that comprise the following steps:
Step one, initiation self-inspection order
Open up one piece and can be used for writing the memory element of character string s1, s2 and s3, character string s1, s2 and s3 represent that self-inspection please respectively
Ask mark, self-inspection Success Flag and self-inspection invalid flag;
Self-inspection order is initiated by outside interactive interface, and writes character string s1 in the memory unit, enter step 3;
Step 2, system reset
System reset, reads the data content in memory element, judges whether this segment data content is consistent with character string s1, if one
Cause then the data content in memory element to be changed to s2, and enter step 3, otherwise enter step 5;
Step 3, entrance self-inspection state
T1, the data content reading in memory element, judge whether this data content is consistent with character string s1, if consistent, execute
T2, first enters into self-inspection state;Otherwise judge whether this data content is consistent with character string s2, if consistent, execute t3, otherwise
Execution t5;
T2, program enter empty waiting state, and start-up study waits reset intervalometer, and the longest according to watchdog chip featured configuration
Waiting time, in the waiting time, stopping dog feeding operation, observe whether house dog can produce reset, if produce resetting, entering step
Rapid two, if system does not produce reset in the waiting time, execute t4;
T3, self-inspection success, the data content in memory element are changed to s2, enter step 4;
T4, fail self-test, the data content in memory element is changed to non-s1 and non-s2, enters step 4;
T5, self-inspection are invalid, and the data content in memory element is changed to s3, enter step 4;
Step 4, result output
According to the self-detection result mark in step 3, self-detection result is externally exported by outut device, enter step 5;
Step 5, system are normally run
Self-inspection completes, system recovery normal operating condition, executes normal operation code.
2. inspection outer watchdog chip according to claim 1 whether normal work method it is characterised in that: described
Memory element be arranged in the data storage area that power failure data will not be lost.
3. inspection outer watchdog chip according to claim 1 whether normal work method it is characterised in that: described
Outside interactive interface be port or button.
4. inspection outer watchdog chip according to claim 1 whether normal work method it is characterised in that: described
Outut device be port or liquid crystal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610850973.3A CN106354596A (en) | 2016-09-26 | 2016-09-26 | Method for checking whether external watchdog chip works normally |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610850973.3A CN106354596A (en) | 2016-09-26 | 2016-09-26 | Method for checking whether external watchdog chip works normally |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106354596A true CN106354596A (en) | 2017-01-25 |
Family
ID=57859909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610850973.3A Pending CN106354596A (en) | 2016-09-26 | 2016-09-26 | Method for checking whether external watchdog chip works normally |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106354596A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960599A (en) * | 2017-12-14 | 2019-07-02 | 佛山市顺德区美的电热电器制造有限公司 | Chip system and its house dog self checking method, electrical equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295271A (en) * | 2007-04-29 | 2008-10-29 | 迈普(四川)通信技术有限公司 | Software watchdog self-restoring method |
CN102681907A (en) * | 2012-02-06 | 2012-09-19 | 北京广利核系统工程有限公司 | Multifunctional watchdog circuit |
CN203858624U (en) * | 2014-05-30 | 2014-10-01 | 无锡市同飞科技有限公司 | Dual-backup type bus watchdog circuit |
US20150169424A1 (en) * | 2013-12-16 | 2015-06-18 | Emerson Network Power - Embedded Computing, Inc. | Operation Of I/O In A Safe System |
-
2016
- 2016-09-26 CN CN201610850973.3A patent/CN106354596A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101295271A (en) * | 2007-04-29 | 2008-10-29 | 迈普(四川)通信技术有限公司 | Software watchdog self-restoring method |
CN102681907A (en) * | 2012-02-06 | 2012-09-19 | 北京广利核系统工程有限公司 | Multifunctional watchdog circuit |
US20150169424A1 (en) * | 2013-12-16 | 2015-06-18 | Emerson Network Power - Embedded Computing, Inc. | Operation Of I/O In A Safe System |
CN203858624U (en) * | 2014-05-30 | 2014-10-01 | 无锡市同飞科技有限公司 | Dual-backup type bus watchdog circuit |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960599A (en) * | 2017-12-14 | 2019-07-02 | 佛山市顺德区美的电热电器制造有限公司 | Chip system and its house dog self checking method, electrical equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105843694B (en) | The controlled restoration methods and device of error message between independently operable processor | |
KR102119585B1 (en) | Debugging method, multi-core processor, and debugging device | |
CN104320308B (en) | A kind of method and device of server exception detection | |
CN102722431B (en) | process monitoring method and device | |
CN103500133A (en) | Fault locating method and device | |
CN104731566B (en) | Integrated Development Environment test device, method and system | |
CN101556551B (en) | Hardware acquisition system and method for equipment failure log | |
CN106201755B (en) | The repositioning method and device of the network equipment | |
CN103279846A (en) | Project acceptance method and system based on BIM model | |
CN104360918B (en) | A kind of intelligent Substation System self diagnosis and self-recovery method | |
CN104216811A (en) | Log collecting method and system of application program | |
CN104125504B (en) | Deployment method, device and system based on continuous integration | |
CN109840199A (en) | A kind of automated testing method and terminal | |
CN105760241A (en) | Exporting method and system for memory data | |
CN106909468A (en) | A kind of computer fault diagnosis method based on UEFI firmwares | |
CN107193680A (en) | A kind of heartbeat detecting method, equipment and system | |
CN105260275A (en) | Startup and shutdown testing method suitable for automatic configuration partition of high-end host | |
CN101882087A (en) | Multimedia terminal equipment and maintaining method thereof | |
CN110704228B (en) | Solid state disk exception handling method and system | |
JP2007199845A (en) | Method and device for detecting memory c0rruption | |
CN103699485B (en) | Application program adjustment method and device | |
CN106354596A (en) | Method for checking whether external watchdog chip works normally | |
CN105654003B (en) | A kind of IC card detection method and device in place | |
CN103577273A (en) | Second failure data capture in co-operating multi-image systems | |
CN105550103B (en) | A kind of automated testing method based on self-defined test script |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |