CN101630278A - Method for recording crash abnormal information of electronic device and electronic device - Google Patents
Method for recording crash abnormal information of electronic device and electronic device Download PDFInfo
- Publication number
- CN101630278A CN101630278A CN200810302803A CN200810302803A CN101630278A CN 101630278 A CN101630278 A CN 101630278A CN 200810302803 A CN200810302803 A CN 200810302803A CN 200810302803 A CN200810302803 A CN 200810302803A CN 101630278 A CN101630278 A CN 101630278A
- Authority
- CN
- China
- Prior art keywords
- triggering command
- reset controller
- abnormal information
- watch dog
- electronic device
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a method for recording crash abnormal information of an electronic device, which comprises the following steps that: (a) a watchdog timer carries out timing; (b) if the timing does not reach an assigned value, the step (a) is repeated; and when the timing reaches the assigned value, the step (c) is carried out; (c) the watchdog timer generates a trigger instruction and sends the trigger instruction to a reset controller; (d) the reset controller receives the trigger instruction; (e) when the reset controller confirms that the trigger instruction is not from the watchdog timer, the step (f) is carried out directly; and when the reset controller confirms that the trigger instruction is from the watchdog timer, a GPIO chip records the crash abnormal information generated by operating the electronic device and saves the crash abnormal information to storage media; and (f) the reset controller generates a reset signal and sends the generated reset signal to a CPU so as to eliminate operating programs in the CPU and enable the electronic device to restart an operating system.
Description
Technical field
The present invention relates to method and the electronic installation thereof of a kind of recorded electronic device when the machine abnormal information.
Background technology
WatchDog Timer is a kind of based on the timer principle, be used to improve the device of electronic installation reliability, described electronic installation refer to computing machine or portable electric device (as, mobile phone), utilize a timer circuit, it regularly exports the reset terminal that is connected to circuit, program in the certain hour scope to timer reset (being commonly called as " feeding dog "), therefore during the program operate as normal, timer always can not overflow, and also just can not produce reset signal.If program breaks down, the house dog that do not reset in timing cycle just makes WatchDog Timer overflow to produce to return to the normal operation state by the reset signal starting system of laying equal stress on.
Most and the general WatchDog Timer that uses all places in the embedded system, WatchDog Timer also may trigger, touch control system, make control system change safe condition over to, for example close motor, close high-tension electricity output, and close other subsystem with potential danger (Subsystem), till system mistake, fault are solved eliminating.For example, a WatchDog Timer is made of the timer of an x bit (position) and the frequency signal of a y MHz (MHz).So, if timer is 2
x/ y is not eliminated (Clear) in second, WatchDog Timer will send replacement, start shooting (Reset) again or close (Shutdown) signal system.
At present, at electronic installation (as: PC, Personal Computer, Watch Dog Timer is installed personal computer) can make PC when abnormal conditions (as: when machine) occurring, replacement CPU that is: removes the program that needs all among the CPU are handled, and makes PC return to the normal operation state.Yet when abnormal conditions appearred in PC, the information that unusual condition will not take place preserved, and so, the user can't understand the reason that unusual condition takes place.
Summary of the invention
In view of above content, be necessary to provide electronic installation, it can be by this electronic device records electronic installation when the machine abnormal information, makes the user understand reason when the generation of machine.
In addition, also be necessary to provide the method for a kind of recorded electronic device when the machine abnormal information, it can write down the abnormal information of this electronic installation when machine, makes the user understand reason when the generation of machine.
A kind of electronic installation, this electronic installation comprises Watch Dog Timer, reset controller and GPIO chip, wherein: Watch Dog Timer, be used to judge whether timing arrives designated value, if timing arrives designated value, Watch Dog Timer produces a triggering command, and triggering command is sent to reset controller; Whether reset controller is used to receive described triggering command, judges the source of described triggering command, be from Watch Dog Timer to confirm, and produces reset signal, to remove the working procedure among the CPU; The GPIO chip, being used for confirming triggering command when reset controller is during from Watch Dog Timer, the abnormal information when machine takes place during the operation of GPIO chip recorded electronic device, and it is saved in the storage medium.
A kind of recorded electronic device is when the method for machine abnormal information, and this method comprises the steps: the timing of (a) Watch Dog Timer; (b) if timing does not arrive designated value, then repeating step (a) when timing arrives designated value, enters step (c); (c) Watch Dog Timer produces a triggering command, and triggering command is sent to reset controller; (d) reset controller receives triggering command; (e) confirming triggering command when reset controller is not during from Watch Dog Timer, directly enter step (f), confirming triggering command when reset controller is during from Watch Dog Timer, abnormal information when machine takes place during the operation of GPIO chip recorded electronic device, and it is saved in the storage medium; (f) reset controller produces reset signal, and the reset signal of described generation is sent to CPU, to remove the working procedure among the CPU, makes the electronic installation restarting operating systems.
Compared to prior art, described recorded electronic device is when the method and the electronic installation thereof of machine abnormal information, and it can write down the abnormal information of this electronic installation when machine, makes the user understand reason when the generation of machine.
Description of drawings
Fig. 1 is the hardware structure figure of electronic installation preferred embodiment of the present invention.
Fig. 2 is the process flow diagram of recorded electronic device of the present invention when the method preferred embodiment of machine abnormal information.
Embodiment
As shown in Figure 1, be the hardware structure figure of electronic installation preferred embodiment of the present invention.Described electronic installation 1 can be equipment such as personal computer (Personal Computer), HTTP or ftp server, mobile phone, PDA.Described electronic installation 1 mainly comprises Watch Dog Timer (Watchdog timer) 2, reset controller 3, general input and output (GPIO:GeneralPurpose Input Output) chip 4 and central processing unit (Central Processing Unit) 5.Described Watch Dog Timer 2 connects reset controller 3, and described reset controller 3 also connects GPIO chip 4, and described GPIO chip 4 links to each other with CPU5
Described Watch Dog Timer 2 is used to judge whether timing arrives designated value, if timing arrives designated value, Watch Dog Timer 2 produces a triggering command, and triggering command is sent to reset controller 3, makes reset controller 3 produce reset signal.Described reset signal is used for removing the working procedure of CPU5, and the working procedure among the CPU5 is finished immediately.Particularly, usually, Watch Dog Timer 2 with the mode timing of time inverse (for example is, at every turn from the 100th reciprocal sec to 0 second), suppose that the designated value that Watch Dog Timer 2 is provided with is to produce triggering command in the 0th second, then Watch Dog Timer 2 produces triggering command, and is designated value the 0th second when the time counted down toward for the 0th second.
Whether described reset controller 3 is used to receive described triggering command, judges the source of described triggering command, be from Watch Dog Timer 2 to confirm, and produces reset signal, to remove the working procedure among the CPU5.Described triggering command may be from house dog trigger 2, also may be from other equipment that is connected with reset controller 3, for example, when the user is restarted electronic installation 1, can restart button and (be commonly referred to: the Reset button) by pressing, just can directly trigger reset controller 3 and produce reset signal, to remove the working procedure among the CPU5, restarting operating systems afterwards.The mode in judgement triggering command source is judged by the frequency of triggering command, for example, the frequency that Watch Dog Timer 2 produces is the command signal that Watch Dog Timer 2 produces if the frequency of triggering command within this scope, then illustrates within some scopes.
It is during from Watch Dog Timer 2 that described GPIO chip is used for confirming triggering command when reset controller 3, the abnormal information when machine takes place during 1 operation of GPIO chip recorded electronic device, and it is saved in the storage medium.Described storage medium can be the medium that can store data of flash memory, micro harddisk and any appropriate.Described GPIO chip utilizes industrial standard (as: I2C, SMBus or SPI interface) to simplify the expansion of I/O mouth, when single-chip microcomputer, chipset do not have enough I/O ports, or when system need adopt far-end serial communication or control, the GPIO chip can provide extra control and function for monitoring.In this preferred embodiment, the abnormal information when machine takes place in described GPIO chip essential record electronic installation 1 when operation.Described abnormal information comprises the reason when machine, and the time when machine takes place.
As shown in Figure 2, be the process flow diagram of recorded electronic device of the present invention when the method preferred embodiment of machine abnormal information.
Step S10, at first, Watch Dog Timer 2 judges whether timing arrives designated value.If arrive designated value, Watch Dog Timer 2 produces a triggering command, and triggering command is sent to reset controller 3, makes reset controller 3 produce reset signal.Described reset signal is used for removing the working procedure of CPU5, and the working procedure among the CPU5 is finished immediately.If Watch Dog Timer 2 timing do not arrive designated value, then repeat the step of judging always.Particularly, usually, Watch Dog Timer 2 with the mode timing of time inverse (for example is, at every turn from the 100th reciprocal sec to 0 second), suppose that the designated value that Watch Dog Timer 2 is provided with is to produce triggering command in the 0th second, then Watch Dog Timer 2 produces triggering command, and is designated value the 0th second when the time counted down toward for the 0th second.
Step S11, when Watch Dog Timer 2 timing arrived designated value, reset controller 3 received triggering command.
Step S12, whether reset controller 3 is judged the source of described triggering command, be from Watch Dog Timer 2 to confirm.When described triggering command is during from Watch Dog Timer 2, then enter step S13, if triggering command is not during from Watch Dog Timer 2, then directly enter step S14.Described triggering command may be from house dog trigger 2, also may be from other equipment that is connected with reset controller 3, for example, when the user is restarted electronic installation 1, can restart button and (be commonly referred to: the Reset button) by pressing, just can directly trigger reset controller 3 and produce reset signal, to remove the working procedure among the CPU5, restarting operating systems afterwards.The mode in judgement triggering command source is judged by the frequency of triggering command, for example, the frequency that Watch Dog Timer 2 produces is the command signal that Watch Dog Timer 2 produces if the frequency of triggering command within this scope, then illustrates within some scopes.
Step S13, confirming triggering command when reset controller 3 is during from Watch Dog Timer 2, the abnormal information when machine takes place during 1 operation of GPIO chip 4 recorded electronic devices, and it is saved in the storage medium.Described storage medium can be the medium that can store data of flash memory, micro harddisk and any appropriate.Described GPIO chip 4 utilizes industrial standard (as: I2C, SMBus or SPI interface) to simplify the expansion of I/O mouth, when single-chip microcomputer, chipset do not have enough I/O ports, or when system need adopt far-end serial communication or control, the GPIO chip can provide extra control and function for monitoring.In this preferred embodiment, the abnormal information of unusual condition appears in described GPIO chip essential record electronic installation 1 when operation.Described abnormal information comprises the reason when machine, and the time when machine takes place.
Step S14, reset controller 3 produces reset signal, and described reset signal is sent to CPU5, to remove the working procedure among the CPU5, makes electronic installation 1 restarting operating systems.Particularly, suppose to occur working as the situation of machine, electronic installation 1 can not normally move, and at this moment, removes all working procedures among the CPU5, even working procedure finishes immediately, operating system restarts afterwards.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to above preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (6)
1. an electronic installation is characterized in that, this electronic installation comprises Watch Dog Timer, reset controller, GPIO chip and CPU, wherein:
Watch Dog Timer is used to judge whether timing arrives designated value, if timing arrives designated value, Watch Dog Timer produces a triggering command, and triggering command is sent to reset controller;
Whether reset controller is used to receive described triggering command, judges the source of described triggering command, be from Watch Dog Timer to confirm, and produces reset signal, to remove the working procedure among the CPU; And
The GPIO chip, being used for confirming triggering command when reset controller is during from Watch Dog Timer, the abnormal information when machine takes place during the operation of GPIO chip recorded electronic device, and it is saved in the storage medium.
2. electronic installation as claimed in claim 1 is characterized in that, described storage medium is flash memory or micro harddisk.
3. electronic installation as claimed in claim 1 is characterized in that, described abnormal information comprises the reason of working as machine and the time that machine takes place to work as.
4. a recorded electronic device is characterized in that when the method for machine abnormal information this method comprises the steps:
(a) Watch Dog Timer timing;
(b) if timing does not arrive designated value, then repeating step (a) when timing arrives designated value, enters step (c);
(c) Watch Dog Timer produces a triggering command, and triggering command is sent to reset controller;
(d) reset controller receives triggering command;
(e) confirming triggering command when reset controller is not during from Watch Dog Timer, directly enter step (f), confirming triggering command when reset controller is during from Watch Dog Timer, abnormal information when machine takes place during the operation of GPIO chip recorded electronic device, and it is saved in the storage medium; And
(f) reset controller produces reset signal, and the reset signal of described generation is sent to CPU, to remove the working procedure among the CPU, makes the electronic installation restarting operating systems.
5. recorded electronic device as claimed in claim 4 is characterized in that when the method for machine abnormal information described storage medium is flash memory or micro harddisk.
6. recorded electronic device as claimed in claim 4 is characterized in that when the method for machine abnormal information described abnormal information comprises the reason of working as machine and the time that machine takes place to work as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810302803A CN101630278A (en) | 2008-07-18 | 2008-07-18 | Method for recording crash abnormal information of electronic device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810302803A CN101630278A (en) | 2008-07-18 | 2008-07-18 | Method for recording crash abnormal information of electronic device and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101630278A true CN101630278A (en) | 2010-01-20 |
Family
ID=41575396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810302803A Pending CN101630278A (en) | 2008-07-18 | 2008-07-18 | Method for recording crash abnormal information of electronic device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101630278A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375775A (en) * | 2010-08-11 | 2012-03-14 | 英业达股份有限公司 | System unrecoverable error indication signal detection circuit |
CN107066508A (en) * | 2017-01-18 | 2017-08-18 | 新华三技术有限公司 | Information snap method, equipment and CPU |
CN107463459A (en) * | 2017-08-14 | 2017-12-12 | 青岛海信电器股份有限公司 | Store method, device, system and the terminal device of system exception internal storage data |
CN110895496A (en) * | 2018-12-26 | 2020-03-20 | 研祥智能科技股份有限公司 | Method for recording and reading restart information of hardware watchdog |
CN112395122B (en) * | 2019-08-16 | 2023-08-29 | 慧荣科技股份有限公司 | Flash memory controller and method thereof |
-
2008
- 2008-07-18 CN CN200810302803A patent/CN101630278A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375775A (en) * | 2010-08-11 | 2012-03-14 | 英业达股份有限公司 | System unrecoverable error indication signal detection circuit |
CN102375775B (en) * | 2010-08-11 | 2014-08-20 | 英业达股份有限公司 | Computer system unrecoverable error indication signal detection circuit |
CN107066508A (en) * | 2017-01-18 | 2017-08-18 | 新华三技术有限公司 | Information snap method, equipment and CPU |
CN107463459A (en) * | 2017-08-14 | 2017-12-12 | 青岛海信电器股份有限公司 | Store method, device, system and the terminal device of system exception internal storage data |
CN110895496A (en) * | 2018-12-26 | 2020-03-20 | 研祥智能科技股份有限公司 | Method for recording and reading restart information of hardware watchdog |
CN112395122B (en) * | 2019-08-16 | 2023-08-29 | 慧荣科技股份有限公司 | Flash memory controller and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102455950A (en) | Firmware recovery system and method of base board management controller | |
CN102880527B (en) | Data recovery method of baseboard management controller | |
CN104063305A (en) | Pressure testing method, device and system for intelligent terminal software | |
CN105204979A (en) | Recording method of Android logs and mobile terminal | |
CN110908841B (en) | I2C communication abnormity recovery method and device | |
EP2798428B1 (en) | Apparatus and method for managing operation of a mobile device | |
CN102567135B (en) | Refreshing/recovering method and electronic equipment | |
CN101630278A (en) | Method for recording crash abnormal information of electronic device and electronic device | |
JP6876113B2 (en) | Information processing device and control method | |
CN111176967A (en) | Query method and device for remote out-of-band SSD log information and BMC | |
JP2005519392A (en) | Monitoring and replacement method for peripheral data storage unit | |
CN112783721A (en) | Method, device and system for monitoring I2C bus and storage medium | |
CN103514086A (en) | Extraction method and device for software error report | |
CN109388511B (en) | Information processing method, electronic equipment and computer storage medium | |
CN109992437B (en) | Processing method, device and equipment for hard disk flash break and storage medium | |
CN107179911B (en) | Method and equipment for restarting management engine | |
CN115098342A (en) | System log collection method, system, terminal and storage medium | |
CN101739115A (en) | Simplified type host computer and method for wakening same | |
TW201007444A (en) | Electronic device and method for memorizing stop error | |
US9515907B2 (en) | Monitoring method of monitoring module | |
CN202748775U (en) | Computer system with external BIOS booting effect, bridging device and integrated chip set | |
CN116467705B (en) | Full-time monitoring system and server for preventing server from invading | |
CN112463446B (en) | PCIe device recovery method and system, electronic device and storage medium | |
JP5561790B2 (en) | Hardware failure suspect identification device, hardware failure suspect identification method, and program | |
CN111244881A (en) | Method and device for automatically restarting electronic equipment in case of power failure or jamming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100120 |