CN1318964C - Reset information saving method for communication equipment - Google Patents
Reset information saving method for communication equipment Download PDFInfo
- Publication number
- CN1318964C CN1318964C CNB2004100889021A CN200410088902A CN1318964C CN 1318964 C CN1318964 C CN 1318964C CN B2004100889021 A CNB2004100889021 A CN B2004100889021A CN 200410088902 A CN200410088902 A CN 200410088902A CN 1318964 C CN1318964 C CN 1318964C
- Authority
- CN
- China
- Prior art keywords
- reset
- information
- software
- memory block
- bios
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The present invention discloses a reset information storage method of communication equipment, which comprises the steps: a reset information sharing storage region is arranged in a memory of the equipment; software reset information is recorded in the corresponding position in the sharing storage region when a software resets; the reset type of the equipment is judged by BIOS when the equipment starts; the software reset information is modified according to the reset type of the equipment; the modified software reset information is stored on powering off keeping medium when the software of the equipment operates. The present invention accurately positions the reset information of the equipment, and thereby, the failure reason of the equipment is convenient to determine, and the equipment is convenient to maintain.
Description
Technical field
The present invention relates to network, communication facilities technical field, be specifically related to a kind of reset information saving method for communication equipment.
Background technology
Along with Internet technology is used and to be popularized day by day and the continuous development of the information processing technology, communication system from before unit or little local system development to big LAN system, wide area network system, communication facilities is also more complicated thereupon various.In order to ensure the unimpeded of communication system, at first to guarantee the reliability service of communication facilities, therefore the maintenance to communication facilities is even more important, such as the various operational factors and the state of real-time monitoring equipment itself, warning function and fault diagnosis functions etc. are provided.When moving, communication facilities can cause the interior board resetting of equipment on the net because of multiple reason, such as, electrification reset, hardware dog reset, push-button reset, software positive return etc.Equipment need be preserved these repositioning informations, so that the maintainer positions reset circuit, and the stability of monitoring equipment operation, and accelerate the efficient that fault is got rid of.
The operation of communication facilities needs two kinds of softwares usually, is respectively the business software on BIOS (basic input/output) and the veneer.During device start, at first move BIOS, come the guide service running software by BIOS then.
In existing communication equipment, the repositioning information of common record traffic software, the repositioning information of BIOS does not have record.Business software reset flow process as shown in Figure 1: repositioning information (reset types, reset time etc.) can be write earlier in the internal memory during business software positive return, after the software reset restarts, again the data in the internal memory are saved in power down and keep in the medium.Produce by hardware if reset, then, therefore, when starting to business software, may inquire about less than repositioning information because BIOS than the first startup of business software, and can carry out initialization to hardware.
And, equipment is safeguarded, in the process such as test, often need come the reason of accurate fault location according to the repositioning information of equipment records, so that testing apparatus parameter better, the optimizing equipment performance, therefore, the reason that just needs right area subset at first to reset is to be produced by software, still produce by hardware, hardware reset is carried out record.The mode of this record traffic software reset information can not accurately obtain hardware reset information such as electrification reset, push-button reset, hardware dog reset at present, also just can't make the plant maintenance personnel accurately locate reset circuit.
Summary of the invention
The purpose of this invention is to provide a kind of reset information saving method for communication equipment, to solve in the prior art shortcoming of the various repositioning informations of recording unit comprehensively, with the repositioning information of accurate positioning equipment, and then definite easily equipment failure reason.
The objective of the invention is to be achieved through the following technical solutions:
A kind of reset information saving method for communication equipment, described method comprises:
A, the repositioning information shared memory is set in the internal memory of described equipment, and to set described shared memory be reserved memory;
B, when the software reset, software reset's information is recorded in the described shared memory corresponding position;
C, when described device start, by BIOS judgment device reset types;
D, revise described software reset's information according to described device reset type;
E, when the running software of described equipment, amended software reset's information is saved in power down keeps on the medium.
Described steps A comprises:
A2, described shared memory is divided into first memory block and second memory block.
Described software reset comprises: bios software resets and business software resets.
Described step B comprises:
The business software repositioning information is recorded described first memory block;
The bios software repositioning information is recorded described second memory block.
Described step C is specially: the reset mode register that described BIOS provides according to described device hardware judges it is hardware reset or software reset.
Described step D is specially:
When reset types is hardware reset, removes the content of described first memory block, and hardware reset information is saved in described first memory block;
Simultaneously, remove the content of described second memory block, and hardware reset information is saved in described second memory block.
Described step e is specially: respectively the repositioning information of described first memory block and the repositioning information of described second memory block are saved on the power down maintenance medium.
Described power down keeps medium to comprise: electricallyerasable ROM (EEROM), flash memory.
Described software reset's information comprises: reset types, software type, reset time, status information.
Described hardware reset information comprises: reset types, reset time, status information.
By above technical scheme provided by the invention as can be seen, the present invention is divided into different storage areas by the internal memory with veneer in the equipment, repositioning information under the different conditions is stored respectively, make when under BIOS, resetting and still can correctly preserve the repositioning information of business software, and to have distinguished be that business software resets or BIOS resets.Keep making the plant maintenance personnel that reset circuit can be located exactly in the medium positioning problems when helping veneer and returning maintenance by repositioning information being saved in power down.
Description of drawings
Fig. 1 is that the business software repositioning information is preserved process flow diagram in the prior art;
Fig. 2 is the realization flow figure of the inventive method;
When Fig. 3 is device start to the preservation process flow diagram of hardware reset information;
Fig. 4 is the preservation process flow diagram of repositioning information when producing bios software and resetting;
Fig. 5 is the preservation process flow diagram of repositioning information when producing business software and resetting.
Embodiment
Core of the present invention is the internal memory of veneer in the equipment is divided into different storage areas, the repositioning information under the different conditions is stored respectively, and repositioning information is saved in the power down maintenance medium.
The present technique field personnel know, resetting of equipment has following several types usually: electrification reset, cold reset (cry not only hard reset), hot reset (but also crying warm reset), push-button reset, hardware dog reset, dongle reset etc.Wherein,
Electrification reset: i.e. Board Power up software startup is meant resetting that veneer whenever powers on and once produce.
Cold reset: CPU and crucial business chip are such as DSP (digital signal processing) chip, FPGA (programmable logic array) chip reset.
Hot reset: cpu reset or software rerun, but the key business chip does not reset.It generally is the positive return of software.
Push-button reset:, generally be manual operation by resetting that the button on the veneer causes.
Hardware dog reset: the hardware watchdog circuit overflows resetting of the CPU that causes or business chip.
Dongle resets: find in the software running process that CPU usage is the software positive return that caused for a long time at 100% o'clock.
For these different reset types, electrification reset, cold reset, push-button reset, hardware dog reset wherein can be referred to as hardware reset; Wherein hot reset, dongle resetted be referred to as the software reset.
Because the startup of appliance services software needs the guiding of BIOS, therefore know that at first the software of current reset circuit is BIOS (basic input/output), so just need a mechanism that the repositioning information that inquires among the BIOS is passed to software, by software it being recorded power down again keeps in the medium, such as, be saved among the FLASH (flash memory).
The present invention just is based on above-mentioned thought, by BIOS different reset types is discerned when device start, the repositioning information of different conditions is carried out effective, complete record, for inquiry.
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
With reference to Fig. 2, Fig. 2 is the process flow diagram of the inventive method, may further comprise the steps:
Step 201: the repositioning information shared memory is set in the internal memory of equipment.
With this shared memory as reserved memory, be used for the temporary and transmission of repositioning information, for example, with internal memory foremost or one section space of rearmost end as shared memory, this section space is sightless for operating system and general procedure user, so this section storage space can not rewritten or remove.
The present technique field personnel know, BIOS also can be regarded as a kind of software, but it and general software have important difference again, because of it closely links to each other with device hardware, be responsible for responsibilities such as the most important basic input/output routine of preservation equipment, system's configuration information, startup power on self detection program and system start-up self-check program.After equipment was connected with the mains and started, BIOS just began to take over all self check work of device start.Usually, system is at first come inner each unit is checked by the power-on self-test program, comprises CPU, internal memory, ROM, serial paralled interface etc. are tested; BIOS just reads in the booting operating system record then, gives leader record with system's control at last, by the program run of leader record guide service.If equipment is carried out hardware reset, such as, electrification reset, push-button reset etc., then BIOS need rerun, and system is reset; If produce the software reset in the business software operational process, then BIOS does not need system is reset, and only needs to get final product by leader record guide service program run again; If in the BIOS operational process, produce the BIOS positive return, need this repositioning information of record equally, so that accurately distinguish the different classifications that resets.
Therefore, in order to distinguish the classification that resets better, also need this shared memory is divided into first memory block and second memory block.Wherein, first memory block is used to preserve the repositioning information of business software, and second memory block is used to preserve the repositioning information of bios software, so that accurately distinguish the classification that resets.
Step 202: when the software reset, software reset's information is recorded position corresponding in the shared memory.Wherein, described software reset comprises: bios software resets and business software resets.That is to say, if resetting of business software generation then stored its repositioning information into first memory block; If resetting of bios software generation then stored its repositioning information into second memory block.
Can preserve following software reset's information: reset types, software type, reset time, status information.
Like this, behind the software reset, can obtain the repositioning information of this region memory storage when reruning this software.
Step 203: when device start, by BIOS judgment device reset types.
The state of the reset mode register that BIOS can provide according to device hardware is judged hard reset or warm reset.Then can obtain the information such as type of software by the repositioning information that writes down in the internal memory for warm reset.For hard reset, then can read in the reset mode register that hardware provides specifically is reset types such as electrification reset, hardware dog reset or push-button reset.
Step 204: revise software reset's information according to the device reset type.
Because BIOS can identification equipment reset types, if the software reset then can directly record repositioning information in the corresponding memory block; If hardware reset, the information that then can only write down the moment of startup once more is as hardware reset information, and this hardware reset information comprises: reset types, reset time, status information.Reset types is set to hardware reset when record, and be the time constantly that starts once more reset time.
Therefore, when reset types is hardware reset, remove the content of described first memory block, and hardware reset information is saved in described first memory block; Simultaneously, remove the content of described second memory block, and hardware reset information is saved in described second memory block.
Like this, in first memory block and second memory block, stored identical hardware reset information respectively, behind running software, just this information can be saved in respectively on the power down medium, such as, the hardware reset information of first memory block is saved in the zone of storage service software reset information on the power down medium, the hardware reset information of second memory block is saved in the zone of storage bios software repositioning information on the power down medium.Because resetting of hardware not only can influence the operation of business software, equally also can influence the operation of bios software, therefore, no matter can both inquire this hardware reset information when inquiry business software reset information or bios software repositioning information.
Step 205: when the business software of equipment moves, amended software reset's information is saved in power down keeps on the medium.Respectively the repositioning information of first memory block and the repositioning information of second memory block are saved on the power down maintenance medium.Power down keeps medium can use electricallyerasable ROM (EEROM), flash memory etc., can be on equipment veneer the storage chip of design specialized, also can with other same chips of information sharing that need power down to preserve, with simplified design, and reduce design cost.
In order to make present technique field personnel understand the present invention better, below in conjunction with the startup and the dissimilar preservation processes of repositioning information down that reset of operational process detailed description of equipment.
With reference to Fig. 3, when being device start, Fig. 3, may further comprise the steps the preservation flow process of hardware reset information:
Step 301: hardware reset restarts equipment, such as push-button reset, can certainly be that device power starts.
At this moment, enter step 302:BIOS running software, finish its function with basic input/output routine, system's configuration information, startup power on self detection program and the system start-up self-check program preserved according to BIOS.
Enter step 303:BIOS and judge whether to be hardware reset.
If hardware reset then enters step 304: respectively hardware reset information is recorded first memory block and second memory block, certainly, information reset time of record is to start temporal information constantly, rather than real homing action produces temporal information constantly.
If not hardware reset, then directly enter step 305: the hardware reset information in second memory block is saved in power down keeps on the medium.
Then, enter step 306:BIOS guide service running software.
Enter step 307: the hardware reset information in first memory block is saved in power down keeps on the medium.
Enter step 308: continue the operation business software.
With reference to Fig. 4, Fig. 4 is the preservation flow process of repositioning information when producing bios software and resetting, and may further comprise the steps:
Step 401: hardware reset restarts equipment, such as push-button reset, can certainly be that device power starts.
Step 402:BIOS running software is finished its function with basic input/output routine, system's configuration information, startup power on self detection program and the system start-up self-check program preserved according to BIOS.
Step 403:BIOS judges whether to be hardware reset.
If hardware reset then enters step 404: remove the information in first memory block and second memory block.Because the data in the instant cut-off internal memory of equipment may also can exist or be unstable sometimes, and are therefore reliable in order to guarantee the information in first memory block and second memory block, when hardware reset, want earlier the data that may exist in this internal memory to be removed.
Then, enter step 405: respectively hardware reset information is recorded first memory block and second memory block.
Then, enter step 406:BIOS guide service running software.
If not hardware reset, then directly enter step 406:BIOS guide service running software.
Then, enter step 407: the repositioning information in first memory block is saved in power down keeps on the medium.
Step 408: during the business software operation exception, need positive return.
At this moment, need enter step 409 earlier: the repositioning information of business software is write first memory block.
Then, enter step 410: business software resets.
After business software resets, will return step 402:BIOS software and rerun, finish its function with basic input/output routine, system's configuration information, startup power on self detection program and the system start-up self-check program preserved according to BIOS.
With reference to Fig. 5, Fig. 5 is the preservation flow process of repositioning information when producing business software and resetting, and may further comprise the steps:
Step 501: hardware reset restarts equipment, such as push-button reset, can certainly be that device power starts.
Step 502:BIOS running software is finished its function with basic input/output routine, system's configuration information, startup power on self detection program and the system start-up self-check program preserved according to BIOS.
Step 503:BIOS judges whether to be hardware reset.
If hardware reset then enters step 504: remove the information in first memory block and second memory block.
Then, enter step 505: respectively hardware reset information is recorded first memory block and second memory block.
Then, enter step 506: the repositioning information in second memory block is saved in power down keeps on the medium.
If not hardware reset, then directly enter step 506: the repositioning information in second memory block is saved in power down keeps on the medium.
Then, enter step 507:BIOS guide service running software.
Enter step 508: judge whether guiding is successful.
If guide successfully, then enter step 509: the business software operation.
If guiding is success not, then enter correct business softwares to be loaded such as step 510:BIOS.
Then, entering step 511:BIOS operation occurs needing positive return when unusual.
At this moment, need enter step 512 earlier: the repositioning information of bios software is write second memory block.
Then, enter step 513:BIOS software reset.
After bios software resets, will return step 502:BIOS software and rerun, finish its function with basic input/output routine, system's configuration information, startup power on self detection program and the system start-up self-check program preserved according to BIOS.
In above-mentioned Fig. 4 and flow process shown in Figure 5, the preservation process of repositioning information when only having described business software and bios software respectively and resetting.But in system's actual moving process, various resetting all might be taken place, and therefore, the present invention is not limited to Fig. 4 and two states shown in Figure 5.The preserving type of other types repositioning information is similar to the above, does not repeat them here.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.
Claims (10)
1, a kind of reset information saving method for communication equipment is characterized in that, described method comprises:
A, the repositioning information shared memory is set in the internal memory of described equipment, and to set described shared memory be reserved memory;
B, when the software reset, software reset's information is recorded in the described shared memory corresponding position;
C, when described device start, by BIOS judgment device reset types;
D, revise described software reset's information according to described device reset type;
E, when the running software of described equipment, amended software reset's information is saved in power down keeps on the medium.
2, reset information saving method for communication equipment according to claim 1 is characterized in that, described steps A comprises:
A2, described shared memory is divided into first memory block and second memory block.
3, reset information saving method for communication equipment according to claim 2 is characterized in that, described software reset comprises: bios software resets and business software resets.
4, reset information saving method for communication equipment according to claim 3 is characterized in that, described step B comprises:
The business software repositioning information is recorded described first memory block;
The bios software repositioning information is recorded described second memory block.
5, reset information saving method for communication equipment according to claim 1 is characterized in that, described step C is specially: the reset mode register that described BIOS provides according to described device hardware judges it is hardware reset or software reset.
6, reset information saving method for communication equipment according to claim 2 is characterized in that, the step D in the described claim 1 is specially:
When reset types is hardware reset, removes the content of described first memory block, and hardware reset information is saved in described first memory block;
Simultaneously, remove the content of described second memory block, and hardware reset information is saved in described second memory block.
7, reset information saving method for communication equipment according to claim 2, it is characterized in that the step e in the described claim 1 is specially: respectively the repositioning information of described first memory block and the repositioning information of described second memory block are saved on the power down maintenance medium.
According to each described reset information saving method for communication equipment of claim 1 to 7, it is characterized in that 8, described power down keeps medium to comprise: electricallyerasable ROM (EEROM), flash memory.
9, reset information saving method for communication equipment according to claim 1 is characterized in that, described software reset's information comprises: reset types, software type, reset time, status information.
10, reset information saving method for communication equipment according to claim 6 is characterized in that, described hardware reset information comprises: reset types, reset time, status information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100889021A CN1318964C (en) | 2004-11-04 | 2004-11-04 | Reset information saving method for communication equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100889021A CN1318964C (en) | 2004-11-04 | 2004-11-04 | Reset information saving method for communication equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1770106A CN1770106A (en) | 2006-05-10 |
CN1318964C true CN1318964C (en) | 2007-05-30 |
Family
ID=36751428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100889021A Expired - Fee Related CN1318964C (en) | 2004-11-04 | 2004-11-04 | Reset information saving method for communication equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1318964C (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023693B (en) * | 2010-12-01 | 2014-09-10 | 中兴通讯股份有限公司 | Method and device for recording reset time |
CN103793032B (en) * | 2012-11-02 | 2017-09-29 | 华为技术有限公司 | Method and apparatus for determining electrification reset |
CN103186436B (en) * | 2013-03-28 | 2016-01-06 | 深圳市显控自动化技术有限公司 | A kind of Android system power-off protection method and device |
CN106843436A (en) * | 2017-01-20 | 2017-06-13 | 苏州国芯科技有限公司 | A kind of reset control module and repositioning method |
CN107480052B (en) * | 2017-07-21 | 2020-11-13 | 广东虹勤通讯技术有限公司 | Method and device for positioning BIOS (basic input output System) codes during downtime |
CN111459711A (en) * | 2020-03-31 | 2020-07-28 | 烽火通信科技股份有限公司 | Memory recovery method and system |
CN111857306B (en) * | 2020-07-30 | 2021-12-03 | 山东云海国创云计算装备产业创新中心有限公司 | SoC system universal reset method and system, universal reset unit and SoC reset circuit |
CN114048071A (en) * | 2021-11-10 | 2022-02-15 | 锐凌无线通讯科技(深圳)有限公司 | Fault recovery method, device and equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6161177A (en) * | 1996-10-28 | 2000-12-12 | Micron Electronics, Inc. | Method for selecting, detecting and/or reprogramming system BIOS in a computer system |
US20030233534A1 (en) * | 2002-06-12 | 2003-12-18 | Adrian Bernhard | Enhanced computer start-up methods |
US20040098578A1 (en) * | 2001-05-18 | 2004-05-20 | Fujitsu Limited | Apparatus with a standby mode, program and control method for an apparatus with a standby mode |
-
2004
- 2004-11-04 CN CNB2004100889021A patent/CN1318964C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6161177A (en) * | 1996-10-28 | 2000-12-12 | Micron Electronics, Inc. | Method for selecting, detecting and/or reprogramming system BIOS in a computer system |
US20040098578A1 (en) * | 2001-05-18 | 2004-05-20 | Fujitsu Limited | Apparatus with a standby mode, program and control method for an apparatus with a standby mode |
US20030233534A1 (en) * | 2002-06-12 | 2003-12-18 | Adrian Bernhard | Enhanced computer start-up methods |
Also Published As
Publication number | Publication date |
---|---|
CN1770106A (en) | 2006-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070234123A1 (en) | Method for detecting switching failure | |
EP3324295B1 (en) | Self-test capable integrated circuit apparatus and method of self-testing an integrated circuit | |
CN113409881B (en) | Flash memory erasure interrupt recovery test method and device, electronic equipment and storage medium | |
CN110704287B (en) | RAID card abnormal log collection method and system under Linux system and storage medium | |
CN1318964C (en) | Reset information saving method for communication equipment | |
CN102737724A (en) | System and method for testing nonvolatile random access memory (NVRAM) | |
CN106201804A (en) | The device of a kind of measuring and calculation mainboard, method and system | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
US20090287959A1 (en) | System and method for testing computer | |
CN101441589A (en) | Detection method of substrate management controller and server thereof | |
CN103164316B (en) | Hardware monitor | |
CN109614267A (en) | A kind of method, apparatus, storage medium and terminal for repairing booting abnormal problem | |
CN112256499A (en) | Power failure monitoring method and device, electronic equipment and computer readable storage medium | |
CN107516546B (en) | Online detection device and method for random access memory | |
CN104021058A (en) | Method for quickly starting test board card | |
CN111048138A (en) | Hard disk fault detection method and related device | |
CN102736957B (en) | Resetting method and device | |
EP3683682B1 (en) | Bus monitoring system, method and apparatus | |
CN110502386A (en) | The on-line fault diagnosis method and apparatus of hard disk | |
CN109634796A (en) | A kind of method for diagnosing faults of computer, apparatus and system | |
CN108873668A (en) | Time calibrating method, processor and time calibration system | |
CN115470056A (en) | Method, system, device and medium for troubleshooting power-on starting of server hardware | |
CN104503881A (en) | Handheld device power consumption detecting method and device and handheld device | |
US7415560B2 (en) | Method of automatically monitoring computer system debugging routine | |
CN114385379B (en) | Method, system, terminal and storage medium for detecting on-board information refreshing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070530 Termination date: 20161104 |