CN101430658A - Exceptional reset information saving method and device - Google Patents

Exceptional reset information saving method and device Download PDF

Info

Publication number
CN101430658A
CN101430658A CNA2008102183800A CN200810218380A CN101430658A CN 101430658 A CN101430658 A CN 101430658A CN A2008102183800 A CNA2008102183800 A CN A2008102183800A CN 200810218380 A CN200810218380 A CN 200810218380A CN 101430658 A CN101430658 A CN 101430658A
Authority
CN
China
Prior art keywords
reset
relevant information
information
veneer
register
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
Application number
CNA2008102183800A
Other languages
Chinese (zh)
Inventor
李根柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2008102183800A priority Critical patent/CN101430658A/en
Publication of CN101430658A publication Critical patent/CN101430658A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method for storing abnormal reset information, and a device thereof. The method comprises the following steps: receiving a single board abnormal reset notification; and sending hardware related information to a shadow register when the single board is abnormally reset. By adopting the method and the device provided by the embodiment of the invention, when the single board is abnormally reset, the current hardware related information is stored in the shadow register, which overcomes the finiteness of protection operation that a CPU processes the stored reset information, and solves the problem that the hardware information at the reset moment can not be obtained when the CPU causes the reset, thus facilitating data acquisition of reset problem and rapid fault positioning during equipment debugging or accessing to the internet.

Description

The store method of exceptional reset information and device
Technical field
The present invention relates to technical field of communication, specially refer to a kind of store method and device of exceptional reset information.
Background technology
Along with the development of communications industry, communication products function and performance are perfect day by day, and the complexity and the integrated level of communication system are also more and more higher, and simultaneously, people are more and more stricter to the requirement of communication products reliability.
And debug, test at veneer, perhaps in operational process, inevitably can run into and crash or phenomenon of the failure such as reset, at this moment need to obtain crash or when resetting the relevant information of veneer to carry out localization of fault and fault analysis.The modal measure of adopting at present is the core information that adopts before software is preserved fault, and we are referred to as the software black box.
But under many circumstances, we more need the hardware information before the fault, and this is because of the startup once more along with veneer, and variation has taken place a lot of hardware informations.A kind of method of preserving the preceding hardware information of fault comprises in the prior art: when veneer breaks down, intercept and capture single plate hardware automatically by the reset and protection system and reset, the reset and protection system utilizes this hardware reset to trigger interruption, carries out the system protection operation; Behind all system protection EOs, this reset and protection system discharges the hardware reset of intercepting and capturing, and triggers central processing unit and resets.
The inventor finds that there are the following problems at least in the prior art: the reset and protection system is by CPU (Central Processing Unit; CPU (central processing unit)) realizes; usually the reason that causes the CPU exceptional reset is that CPU itself has run in the dust; there is logical paradox in the abnormal information itself of oneself preserving oneself; therefore the protection operation is very limited; when central processing unit occurs when unusual; be difficult to come saved system information again; simultaneously; when utilizing the CPU of this reset and protection system to write down hardware information; the hardware information of this moment has not been that the information unusual the time has taken place; the cpu reset that fluctuation causes as power-supply fluctuation and clock; can't obtain the hardware information of the moment that resets this moment, and then can't carry out localization of fault and fault analysis.
Summary of the invention
Method and device that embodiment of the invention technical matters to be solved provides a kind of storing abnormal reset information have solved the finiteness that needs CPU to handle the operation of preserving repositioning information in the prior art.
The device of the storing abnormal reset information that the embodiment of the invention provides comprises: reset control unit, hardware relevant information register and shadow register;
The reset control unit is used to monitor veneer whether exceptional reset takes place, and when exceptional reset takes place when, notice hardware relevant information register veneer exceptional reset;
Hardware relevant information register is used to receive the notice of veneer exceptional reset, and the hardware relevant information during the transmitting single plate exceptional reset is given shadow register;
Shadow register, the hardware relevant information when being used to receive described hardware relevant information register sends described veneer exceptional reset.
The method of the storing abnormal reset information that the embodiment of the invention provides comprises:
Receive veneer exceptional reset notice;
Hardware relevant information during the transmitting single plate exceptional reset is given shadow register.
This shows; the embodiment of the invention is by when exceptional reset appears in veneer; the mode in the shadow register of being kept at current hardware relevant information; do not need the intervention of central processing unit just can to finish the preservation of repositioning information, thereby overcome the finiteness that CPU handles the protection operation of preserving repositioning information.
Description of drawings
The apparatus structure synoptic diagram of the storing abnormal reset information that Fig. 1 provides for the embodiment of the invention;
The method flow synoptic diagram of the storing abnormal reset information that Fig. 2 provides for the embodiment of the invention;
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The device that information is preserved during a kind of exceptional reset that the embodiment of the invention provides as shown in Figure 1, comprises reset control unit 101, hardware relevant information register 102 and shadow register 103,
Reset control unit 101 is used to monitor veneer whether exceptional reset takes place, and when exceptional reset takes place when, notice hardware relevant information register 102 veneer exceptional resets;
Hardware relevant information register 102 is used to receive the notice of the veneer exceptional reset that reset control unit 101 sends, and the hardware relevant information during the transmitting single plate exceptional reset is given shadow register;
Shadow register 103, the hardware relevant information when being used to receive hardware relevant information register sends described veneer exceptional reset.
In this device, whether reset control unit 101 monitoring veneers exceptional reset, the hardware relevant information when hardware relevant information register 102 is preserved the veneers operation; When reset control unit 101 monitored the veneer exceptional reset, the information of hardware relevant information register was to shadow register 103 when latching exceptional reset.
Above-mentioned reset control unit 101 monitors the veneer exceptional reset can be for receiving the exceptional reset signal, and this reset signal can be the watchdog reset signal.
Reset control unit 101, shadow register 102 and hardware relevant information register 103 can be present in the programmable logic device (PLD) jointly.
This device may further include: nonvolatile memory 104;
Hardware relevant information when storage shadow register 103 also is used for described veneer exceptional reset sends to nonvolatile memory 104;
Nonvolatile memory 104 is used for receiving the hardware relevant information of storage shadow register 103 and preserving.
This device can further include: central processing unit 105 is used for reading the hardware relevant information in shadow register 103 or the nonvolatile memory 104, and further carrying out fault analysis after veneer recovers normal or re-powers.
The device of the storing abnormal reset information that the embodiment of the invention provides does not need to control reset signal, and only needs monitoring to get final product; When monitoring veneer need reset the time, the relevant information of preserving hardware can be very easily preservation with current hardware relevant information occurs when unusual when veneer in shadow register; The veneer that the while embodiment of the invention provides is when preserving the hardware relevant information, do not need the participation of central processor CPU, therefore can be wider failure message is provided, simultaneously, this device solves by CPU cause reset the time, can't obtain the problem of the hardware information of the moment that resets, and then made things convenient for solved the debugging or the online, cause the problem of reseting data information gathering and the quick location when restarting fault repeatedly, so the device that this control system resets also is referred to as " hardware black box ".Further, after in the information transfer nonvolatile memory of shadow register, because the information that the nonvolatile memory power down is preserved later on can not lost, so after working as board resetting or re-powering, central processing unit can carry out fault analysis by the information that reads in the nonvolatile memory.
The method of a kind of storing abnormal reset information that the embodiment of the invention provides as shown in Figure 2, comprising:
Step 201: hardware relevant information register receives veneer exceptional reset notice;
In this step, when system monitoring arrives veneer generation exceptional reset, then notify hardware relevant information register;
Step 202: the hardware relevant information during hardware relevant information register transmitting single plate exceptional reset is given shadow register, so that the hardware relevant information during shadow register storage veneer exceptional reset;
The method that the embodiment of the invention provides is specifically as follows: the reset control unit gets access to veneer and begins exceptional reset information (as watchdog reset), notice hardware relevant information register; The information of hardware relevant information register is in corresponding shadow register when latching the veneer exceptional reset, and wherein shadow register is not subjected to the influence of reset signal.
Hardware relevant information when above-mentioned hardware relevant information register is used to preserve the veneer operation.
This method can further include:
Step 203: the hardware relevant information of the information of described shadow register during with the veneer exceptional reset sends to nonvolatile memory and preserves.
In this step, start the nonvolatile memory write operation, the information transfer of shadow register (promptly duplicating) in nonvolatile memory, this nonvolatile memory can be EEPROM (ElectricallyErasable Programmable Read-Only Memory, EEPROM (Electrically Erasable Programmable Read Only Memo)), nonvolatile memorys such as flash memory FLASH or serial EEPROM.
This method can further include:
Step 204: when system recovery normal or re-power after, the information that central processing unit reads in shadow register or the nonvolatile memory is carried out fault analysis.
The storing abnormal reset information that the embodiment of the invention provides method do not need to control reset signal, and only need the monitoring get final product; When the system of monitoring need reset, the relevant information of preserving hardware can be very easily occurs carrying out the preservation with current hardware relevant information when unusual when veneer in shadow register; The method that the while embodiment of the invention provides is when preserving the hardware relevant information, do not need the participation of central processor CPU, therefore can be wider failure message is provided, and then made things convenient for when having solved debugging or when resetting the data message problem of collecting and the quick location when restarting fault repeatedly, so the method that this control system resets also is referred to as " hardware black box ".Further, after in the information transfer nonvolatile memory of shadow register, because the information that the nonvolatile memory power down is preserved later on can not lost, so after system re-powered, central processing unit can carry out fault analysis by the information that reads in the nonvolatile memory.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize based on such understanding by the mode that software adds necessary general hardware platform, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than lift preferred embodiment; the purpose, technical solutions and advantages of the present invention have been carried out further detailed description; institute is understood that; more than be the preferred embodiments of the present invention; not in order to limit the present invention; within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1, a kind of device of storing abnormal reset information is characterized in that, comprising: reset control unit, hardware relevant information register and shadow register;
The reset control unit is used to monitor veneer whether exceptional reset takes place, and when exceptional reset takes place when, notice hardware relevant information register veneer exceptional reset;
Hardware relevant information register is used to receive the notice of veneer exceptional reset, and the hardware relevant information during the transmitting single plate exceptional reset is given shadow register;
Shadow register, the hardware relevant information when being used to receive described hardware relevant information register sends described veneer exceptional reset.
2, device as claimed in claim 1 is characterized in that, this device also comprises nonvolatile memory:
Shadow register, the hardware relevant information when also being used for described veneer exceptional reset sends to nonvolatile memory;
Nonvolatile memory is used to receive hardware relevant information and the preservation that described shadow register sends.
3, device as claimed in claim 2 is characterized in that, this device also comprises:
Central processing unit, the hardware relevant information that is used for reading described shadow register or described nonvolatile memory is carried out fault analysis.
4, a kind of storing abnormal reset information method, it is characterized in that, comprising:
Receive veneer exceptional reset notice;
Hardware relevant information during the transmitting single plate exceptional reset is given shadow register.
5, method as claimed in claim 4 is characterized in that, this method also further comprises:
The hardware relevant information of described shadow register during with the veneer exceptional reset sends to nonvolatile memory and preserves.
6, method as claimed in claim 5 is characterized in that, this method also further comprises:
The information that central processing unit reads in described shadow register or the described nonvolatile memory is carried out fault analysis.
CNA2008102183800A 2008-12-11 2008-12-11 Exceptional reset information saving method and device Pending CN101430658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102183800A CN101430658A (en) 2008-12-11 2008-12-11 Exceptional reset information saving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102183800A CN101430658A (en) 2008-12-11 2008-12-11 Exceptional reset information saving method and device

Publications (1)

Publication Number Publication Date
CN101430658A true CN101430658A (en) 2009-05-13

Family

ID=40646065

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102183800A Pending CN101430658A (en) 2008-12-11 2008-12-11 Exceptional reset information saving method and device

Country Status (1)

Country Link
CN (1) CN101430658A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736957A (en) * 2012-05-25 2012-10-17 华为技术有限公司 Resetting method and device
CN103268283A (en) * 2013-05-10 2013-08-28 华为技术有限公司 Reverse debugging method and system, host and single board
WO2016101614A1 (en) * 2014-12-23 2016-06-30 中兴通讯股份有限公司 Method and apparatus for controlling black box, black box device and computer storage medium
US9710321B2 (en) 2015-06-23 2017-07-18 Microsoft Technology Licensing, Llc Atypical reboot data collection and analysis
CN107924352A (en) * 2015-08-28 2018-04-17 法国大陆汽车公司 Not amendable wrong detection method in the nonvolatile memory of microcontroller
CN108304299A (en) * 2018-03-02 2018-07-20 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108304290A (en) * 2018-03-02 2018-07-20 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108363477A (en) * 2018-03-02 2018-08-03 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108399116A (en) * 2018-03-02 2018-08-14 郑州云海信息技术有限公司 A kind of server power-up state monitoring system and method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736957B (en) * 2012-05-25 2015-07-08 华为技术有限公司 Resetting method and device
CN102736957A (en) * 2012-05-25 2012-10-17 华为技术有限公司 Resetting method and device
CN103268283A (en) * 2013-05-10 2013-08-28 华为技术有限公司 Reverse debugging method and system, host and single board
CN103268283B (en) * 2013-05-10 2017-04-26 华为技术有限公司 Reverse debugging method and system, host and single board
CN105787388B (en) * 2014-12-23 2019-11-05 中兴通讯股份有限公司 The method and apparatus for controlling black box
WO2016101614A1 (en) * 2014-12-23 2016-06-30 中兴通讯股份有限公司 Method and apparatus for controlling black box, black box device and computer storage medium
CN105787388A (en) * 2014-12-23 2016-07-20 中兴通讯股份有限公司 Method and device for controlling black box
US9710321B2 (en) 2015-06-23 2017-07-18 Microsoft Technology Licensing, Llc Atypical reboot data collection and analysis
CN107924352A (en) * 2015-08-28 2018-04-17 法国大陆汽车公司 Not amendable wrong detection method in the nonvolatile memory of microcontroller
CN107924352B (en) * 2015-08-28 2022-03-01 法国大陆汽车公司 Method for detecting uncorrectable errors in a non-volatile memory of a microcontroller
CN108304299A (en) * 2018-03-02 2018-07-20 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108304290A (en) * 2018-03-02 2018-07-20 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108363477A (en) * 2018-03-02 2018-08-03 郑州云海信息技术有限公司 Server power-up state monitors system and method, computer storage and equipment
CN108399116A (en) * 2018-03-02 2018-08-14 郑州云海信息技术有限公司 A kind of server power-up state monitoring system and method

Similar Documents

Publication Publication Date Title
CN101430658A (en) Exceptional reset information saving method and device
CN100388231C (en) Method for analyzing data obtained from crash and data processing system
Schroeder et al. DRAM errors in the wild: a large-scale field study
CN100504795C (en) Computer RAID array early-warning system and method
CN105589776A (en) Fault location method and server
CN108536548B (en) Method and device for processing bad track of disk and computer storage medium
US20060010352A1 (en) System and method to detect errors and predict potential failures
CN104685474A (en) Notification of address range including non-correctable error
US20140188829A1 (en) Technologies for providing deferred error records to an error handler
CN110704287B (en) RAID card abnormal log collection method and system under Linux system and storage medium
CN106682162A (en) Log management method and device
CN110609778A (en) Method and system for storing server downtime log
CN106537351B (en) Method for the power failure in diagnostic wireless communication equipment
US9389942B2 (en) Determine when an error log was created
CN103778024A (en) Server system and message processing method thereof
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
CN107729199A (en) The hard disk detection method and system of a kind of storage device
CN102662787A (en) Method for protecting system disk RAID (redundant array of independent disks)
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
US8977892B2 (en) Disk control apparatus, method of detecting failure of disk apparatus, and recording medium for disk diagnosis program
CN106104492A (en) A kind of method of data backup, Apparatus and system
CN104020963A (en) Method and device for preventing misjudgment of hard disk read-write errors
CN106030544B (en) Method for detecting memory of computer equipment and computer equipment
CN116361111A (en) Data acquisition method and device and electronic equipment
CN106649011A (en) Detection method and detection device for server equipment

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

Open date: 20090513