Summary of the invention
The purpose of the application is to provide a kind of BBU capacity method of calibration, which can effectively reduce BBULife consumption, avoid extra cost waste;The another object of the application is to provide a kind of BBU capacity calibration equipment, setsStandby and computer readable storage medium, it may have above-mentioned beneficial effect.
In order to solve the above technical problems, this application provides a kind of BBU capacity method of calibration, BBU capacity verification sideMethod includes:
When receiving power on signal, EEPROM is read out, obtains BBU information;
History checking time information is extracted in the BBU information;
Judge whether the corresponding history checking time of the history checking time information reaches preset time;
If having reached the preset time, the verification of BBU capacity is opened;
If the not up to described preset time, enter standby mode, until the history checking time reaches described defaultTime opens the verification of BBU capacity.
Preferably, it is described in the BBU information extract history checking time information before, further includes:
The historic state information of BBU is extracted in the BBU information;
The historic state of the BBU is determined according to the historic state information;
If the historic state is abnormality, the verification of BBU capacity is opened;
If the historic state is normal condition, executes the history checking time of extracting in the BBU information and believeThe step of breath.
Preferably, the BBU capacity method of calibration further include:
BBU capacity check results are obtained, and the BBU capacity check results are saved to the EEPROM.
Preferably, the BBU capacity method of calibration further include:
The current state of the BBU is determined according to the BBU capacity check results;
If the current state is abnormality, alarm command is issued to warning device.
In order to solve the above technical problems, present invention also provides a kind of BBU capacity calibration equipment, the BBU capacity verificationDevice includes:
Information extraction modules, for extracting history checking time information in the BBU information;
Time judgment module, for judging whether the corresponding history checking time of the history checking time information reaches pre-If the time;If the history checking time has reached the preset time, enter BBU correction verification module, if the history verifiesTime is not up to the preset time, then entry time waits module;
The BBU correction verification module, for opening the verification of BBU capacity;
The time waits module, for entering standby mode, until when the history checking time reaches described defaultBetween, and enter the BBU correction verification module.
Preferably, the BBU capacity calibration equipment further include:
State extraction module, for extracting the historic state information of BBU in the BBU information;
State determining module, for determining the historic state of the BBU according to the historic state information;If the historyState is abnormality, then enters third correction verification module;If the historic state is normal condition, enter the information extractionModule;
The third correction verification module, for opening the verification of BBU capacity.
Preferably, the BBU capacity calibration equipment further include:
Information preservation module is saved for obtaining BBU capacity check results, and by the BBU capacity check results to instituteState EEPROM.
Preferably, the BBU capacity calibration equipment further include:
Alarm module, for determining the current state of the BBU according to the BBU capacity check results;If described currentState is abnormality, then issues alarm command to warning device.
In order to solve the above technical problems, present invention also provides a kind of BBU capacity calibration equipment, the equipment includes:
Memory, for storing computer program;
Processor, the step of any one of the above BBU capacity method of calibration is realized when for executing the computer program.
In order to solve the above technical problems, the computer can present invention also provides a kind of computer readable storage mediumIt reads to be stored with computer program on storage medium, the computer program realizes any one of the above BBU when being executed by processorThe step of capacity method of calibration.
A kind of BBU capacity method of calibration provided herein, including when receiving power on signal, EEPROM is carried outIt reads, obtains BBU information;History checking time information is extracted in the BBU information;Judge the history checking time informationWhether corresponding history checking time reaches preset time;If having reached the preset time, the verification of BBU capacity is opened;IfThe not up to described preset time then enters standby mode, until the history checking time reaches the preset time, opensThe verification of BBU capacity.
As it can be seen that BBU capacity method of calibration provided herein, is based on EEPROM (Electrically ErasableProgrammable Read-Only Memory, with Electrically Erasable Programmable Read-Only Memory) the non-volatile characteristic reality of storage informationShow the storage to BBU capacity check results, as a result, upon power-up of the system, the history of the BBU stored in acquisition EEPROM firstChecking time information, to determine the need for directly carrying out BBU capacity verification according to the history checking time information, only whenThe verification of BBU capacity just carries out the verification of BBU capacity when reaching preset time, considerably reduces system boot as a result, to the appearance of BBUAmount verification number, effectively further reduces the life consumption of BBU, avoids additional cost waste.Meanwhile the BBU holdsAmount method of calibration has also been effectively ensured when BBU is used different equipment, equally can reasonably control time of BBU capacity verificationNumber, the scope of application are relatively broad.
A kind of BBU capacity calibration equipment, equipment and computer readable storage medium provided herein, all hasBeneficial effect is stated, details are not described herein.
Specific embodiment
The core of the application is to provide a kind of BBU capacity method of calibration, which can effectively reduce BBULife consumption, avoid extra cost waste;Another core of the application is to provide a kind of BBU capacity calibration equipment, setsStandby and computer readable storage medium, it may have above-mentioned beneficial effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationIn attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment isSome embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the artAll other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the BBU capacity checking procedure of prior art, the mode that sufficient charge and discharge are carried out to BBU is generallyd use.OneAs in the case of, capacity verification is carried out to BBU when system boot, is verified later with period regular time.However, such asFruit causes system needs frequently to restart because of certain reasons, then will lead to the frequent capacity verification of BBU progress accordingly, and BBUCharge and discharge number be limited, frequent charge and discharge will affect battery life, will increase as a result, system battery altering frequencyRate causes additional waste.Therefore, to solve the above problems, this application provides a kind of verification of BBU capacity, BBU capacity verificationMethod cocoa effectively reduces the life consumption of BBU, avoids extra cost waste.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of BBU capacity method of calibration provided herein, which holdsMeasuring method of calibration may include:
S101: when receiving power on signal, being read out EEPROM, obtains BBU information;
Specifically, EEPROM is nonvolatile memory, it also can guarantee that data are not lost in the case where no external power supply, andExternally provide the interface of read-write operation.Therefore, the characteristic non-volatile based on EEPROM storage information, in system operationIn, can the relevant information of BBU, i.e., above-mentioned BBU information be sent to EEPROM and be saved, guarantee BBU information system is powered downIn the case of do not lose.As a result, when receiving power on signal, system starting is read out EEPROM, can be obtained correspondenceBBU information.
It wherein, include the history checking time information of BBU in above-mentioned BBU information, i.e. last time carries out capacity verification to the BBUTemporal information can also include certainly one of all operation informations of other BBU or a variety of in BBU information, so as to for afterThe verification of continuous BBU capacity, maintenance process provide reference, and therefore, the application does not limit this.
S102: history checking time information is extracted in BBU information;
On the basis of S101, this step is intended to the extraction based on BBU information realization history checking time information, according to thisHistory checking time information is that can determine that last time carries out the time of capacity verification to BBU.Certainly, it for its extracting method, can adoptWith any one in prior art, the implementation of the technical program is not influenced.
S103: judge whether the corresponding history checking time of history checking time information reaches preset time;If history schoolTesting the time has reached preset time, then executes S104, if history checking time is not up to preset time, execute S105;
S104: the verification of BBU capacity is opened;
S105: entering standby mode, until history checking time reaches preset time.
Specifically, judging whether its corresponding history checking time reaches default after obtaining history checking time informationTime, the preset time are the time cycle of BBU capacity verification, can be by technical staff according to practical for its specific valueSituation carries out otherness setting, and the application does not limit this.If history checking time has reached preset time, illustrateThe verification of BBU capacity has reached check-verifying period, directly opens the verification of BBU capacity at this time.If history checking time does not reach alsoTo preset time, then illustrate BBU capacity verification also be not up to check-verifying period, at this point, be then not turned on BBU capacity verification, directly intoRow normal use, and BBU capacity verification process then enters wait state, until history checking time reaches preset time,It is then turned on the verification of BBU capacity.Certainly, for the detailed process of BBU capacity verification, referring to prior art, the application is hereinIt repeats no more.
Above situation is illustrated below by way of citing, in this application, presetting above-mentioned preset time is 90 days,If to EEPROM carry out BBU information reading after, determine history checking time be 50 days, that is to say, that current time away fromTime from above-mentioned verification has 50 days, also not up to 90 days, at this point, BBU capacity verification process enters wait state, with it is current whenBetween for starting point carry out time statistics, be then turned on after 40 days BBU capacity verification.If in addition, carrying out BBU to EEPROMAfter the reading of information, determine that history checking time is 100 days, that is to say, that time of the current time apart from above-mentioned verification isMore than 90 days, at this point, then directly opening the verification of BBU capacity.
BBU capacity method of calibration provided herein is realized pair based on the non-volatile characteristic of EEPROM storage informationThe storage of BBU capacity check results, as a result, upon power-up of the system, when the history of the BBU stored in acquisition EEPROM first verifiesBetween information, to determine the need for directly carrying out BBU capacity verification according to the history checking time information, only when BBU holdsAmount verification just carries out the verification of BBU capacity when reaching preset time, considerably reduces system boot as a result, to the capacity school of BBUNumber is tested, the life consumption of BBU is effectively further reduced, avoids additional cost waste.Meanwhile the BBU capacity schoolProved recipe method has also been effectively ensured when BBU is used different equipment, equally can reasonably control the number of BBU capacity verification, fitsIt is relatively broad with range.
On the basis of above-mentioned each embodiment, referring to FIG. 2, Fig. 2 is another BBU capacity school provided hereinThe flow diagram of proved recipe method.The BBU capacity method of calibration includes:
S201: when receiving power on signal, being read out EEPROM, obtains BBU information;
S202: the historic state information of BBU is extracted in BBU information;
S203: the historic state of BBU is determined according to historic state information;If current state is abnormality, executeS206;If normal condition, then S204 is executed;
S204: history checking time information is extracted in BBU information;
S205: judge whether the corresponding history checking time of history checking time information reaches preset time;If history schoolTesting the time has reached preset time, then executes S206, if history checking time is not up to preset time, execute S207;
S206: the verification of BBU capacity is opened;
S207: entering standby mode, until history checking time reaches preset time.
It should be noted that other steps in the present embodiment except S202 and S203 are with reference to the S101 of first embodimentTo S105, particular content refers to a upper embodiment, and mainly the content of S202 and S203 are specifically described below.
Specifically, can first judge the historic state of BBU before extracting to history checking time information, correspond toHistoric state information equally can based on BBU information extraction obtain, wherein above-mentioned historic state information be a upper check-verifying periodIn result information that the BBU capacity is verified.Further, after the historic state information for obtaining BBU, that is, it can determine whether that it is gone throughWhether history state is abnormal, if last time check results show that the BBU is in abnormality, directly unlatching BBU capacity verification, with trueDetermine whether BBU is still within abnormality, be repaired or replaced in time convenient for technical staff, guarantees the normal operation of system.Certainly, if last time check results show that the BBU is in normal condition, enter S204 according to normal verification process and carry out BBU appearanceAmount verification.
BBU capacity method of calibration provided by the embodiment of the present application increases before carrying out the judgement of history checking timeThe historic state of BBU judges, can effectively determine the operating status of BBU, and it is different to guarantee whether technical staff's timely learning BBU occursOften, and in time the technical supports such as maintenance or replacement are provided, to ensure that the normal operation of system.
On the basis of above-mentioned each embodiment, as a kind of preferred embodiment, which can also be wrappedIt includes and obtains BBU capacity check results, and the BBU capacity check results are saved to EEPROM.
This step aims at the subsequent processing of BBU check results.Specifically, after completing the verification of BBU capacity, i.e.,It can get corresponding check results information, i.e., above-mentioned BBU capacity check results, at this point, can further it store to EEPROM, withJust the reference of BBU capacity verification is provided for system reboot next time.For actual angle, the BBU capacity check results be onBBU information is stated, equally may include the temporal information and status information etc. of this time verification.
Preferably, which can also include: the current shape that BBU is determined according to BBU capacity check resultsState;If current state is abnormality, alarm command is issued to warning device.
This step aims at the early warning under BBU abnormality.Specifically, after obtaining BBU capacity check results,The current state that BBU can be determined according to the BBU capacity check results, so that it is determined that whether it is in abnormality, if being inAbnormality can then issue alarm command to corresponding warning device and alarm, immediately with notification technique personnel to the exceptionProcessing is repaired or replaced in BBU in time.Certainly, if it is determined that the BBU is in normal condition, then is saved to EEPROM,Continue normal use.
BBU capacity method of calibration provided by the embodiment of the present application, further ensuring technical staff can timely learning BBUWhether there is exception, and the technical supports such as maintenance or replacement are provided in time, ensure that the normal operation of system.
On the basis of above-mentioned each embodiment, this application provides a kind of more specifically BBU capacity methods of calibration.
Firstly, in response to the power on signal received, system starting reads BBU information, and therefrom obtain in EEPROMHistory checking time: last_Recalibration_Time and historic state: last_Recalibration_Status;
Then, it determines when to trigger next BBU capacity verification by history checking time and historic state, if last_Recalibration_Status is shown as the value of non-OK, i.e. historic state is abnormality, then immediately begins to BBU capacity schoolIt tests;Otherwise, judge whether last_Recalibration_Time apart from current time is more than preset time 90 days, ifIt is more than then to get started the verification of BBU capacity, otherwise enters wait state, until reaching 90 days.
Finally, the temporal information and status information for obtaining this verification are as last_ after completing this verificationRecalibration_Time and last_Recalibration_Status, and write back EEPROM.
BBU capacity method of calibration provided by the embodiment of the present application, it is real based on the non-volatile characteristic of EEPROM storage informationShow the storage to BBU capacity check results, as a result, upon power-up of the system, the history of the BBU stored in acquisition EEPROM firstChecking time information, to determine the need for directly carrying out BBU capacity verification according to the history checking time information, only whenThe verification of BBU capacity just carries out the verification of BBU capacity when reaching preset time, considerably reduces system boot as a result, to the appearance of BBUAmount verification number, effectively further reduces the life consumption of BBU, avoids additional cost waste.Meanwhile the BBU holdsAmount method of calibration has also been effectively ensured when BBU is used different equipment, equally can reasonably control time of BBU capacity verificationNumber, the scope of application are relatively broad.
To solve the above problems, referring to FIG. 3, Fig. 3 is a kind of structure of BBU capacity calibration equipment provided hereinSchematic diagram, the BBU capacity calibration equipment can include:
Information reading module 10 obtains BBU information for being read out to EEPROM when receiving power on signal;
Information extraction modules 20, for extracting history checking time information in BBU information;
Time judgment module 30, for judging whether the corresponding history checking time of history checking time information reaches defaultTime;If history checking time has reached preset time, enter BBU correction verification module 40, if history checking time is not up to pre-If the time, then entry time waits module 50;
BBU correction verification module 40, for opening the verification of BBU capacity;
Time waits module 50, for entering standby mode, until history checking time reaches preset time, and entersBBU correction verification module 40.
As a kind of preferred embodiment, which may also include that
State extraction module, for extracting the current state information of BBU in BBU information;
State determining module, for determining the current state of BBU according to current state information;If current state is abnormal shapeState then enters third correction verification module;If current state is normal condition, enter information extraction modules;
Third correction verification module, for opening the verification of BBU capacity.
As a kind of preferred embodiment, which may also include that
Information preservation module is saved for obtaining BBU capacity check results, and by BBU capacity check results to EEPROM.
As a kind of preferred embodiment, which may also include that
Alarm module, for determining the current state of BBU according to BBU capacity check results;If current state is abnormal shapeState then issues alarm command to warning device.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
To solve the above problems, referring to FIG. 4, Fig. 4 is a kind of structure of BBU capacity calibration equipment provided hereinSchematic diagram, the BBU capacity calibration equipment can include:
Memory 1, for storing computer program;
Processor 2, realizes following steps when for executing computer program:
When receiving power on signal, EEPROM is read out, obtains BBU information;History school is extracted in BBU informationTest temporal information;Judge whether the corresponding history checking time of history checking time information reaches preset time;If having reached pre-If the time, then the verification of BBU capacity is opened;If not up to preset time, enter standby mode, until history checking time reachesPreset time opens the verification of BBU capacity.
Above method embodiment is please referred to for the introduction of equipment provided by the present application, this will not be repeated here by the application.
To solve the above problems, present invention also provides a kind of computer readable storage medium, the computer-readable storageIt is stored with computer program on medium, can be realized when computer program is executed by processor following rapid:
When receiving power on signal, EEPROM is read out, obtains BBU information;History school is extracted in BBU informationTest temporal information;Judge whether the corresponding history checking time of history checking time information reaches preset time;If having reached pre-If the time, then the verification of BBU capacity is opened;If not up to preset time, enter standby mode, until history checking time reachesPreset time opens the verification of BBU capacity.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-OnlyMemory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to depositStore up the medium of program code.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the present application, the application existsThis is not repeated them here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realitiesThe difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodimentSpeech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosureAnd algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware andThe interchangeability of software generally describes each exemplary composition and step according to function in the above description.TheseFunction is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.ProfessionTechnical staff can use different methods to achieve the described function each specific application, but this realization is not answeredThink beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processorThe combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only depositReservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technologyIn any other form of storage medium well known in field.
Above to BBU capacity method of calibration, device, equipment and computer readable storage medium provided herein intoIt has gone and has been discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementationThe explanation of example is merely used to help understand the present processes and its core concept.It should be pointed out that for the general of the artFor logical technical staff, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, thisA little improvement and modification also fall into the protection scope element of the claim of this application.