Battery detection method and device
Technical field
The invention belongs to battery protection technical field more particularly to battery detection methods and device.
Background technique
Battery is the essential component part of uninterruptible power system, and cost proportion is quite big, so
To the protection of battery with regard to most important in uninterruptible power system.With the development of uninterruptible power supply technology, the configuration of battery is got over
Come it is more flexible, many uninterruptible power systems can be compatible with simultaneously multiple battery joint number configuration, this be just client select difference match
It sets and brings convenience, for example, Modular UPS currently used in the market (Uninterruptible Power System, uninterruptedly
Power supply) system, battery number can be configured from 16 sections to 20 sections or even range is wider, and many high-power high-frequency UPS even have more
More battery numbers configures selection;And battery number configuration is usually battery number to be arranged by man-machine interface, and setting is equal
It fills, floating charge, over-voltage, the parameter points information such as under-voltage, system adjusts relevant system parameter point, such as even charging voltage according to battery number
Point, floating charging pressure point etc., match different customer demands, bring more selections for client.
But such wide scope cell voltage work, although bringing many conveniences, there are also problems, for example actually matches
When the battery number for battery number and the man-machine interface setting set mismatches, so that the control parameter point of charge and discharge process occurs as soon as
Deviate, it is easy to the problem of leading to over-charging of battery or battery over-discharge;And in the prior art it is usually total electricity according to battery pack
Pressure detection battery pack is easy to cause cell damage with the presence or absence of exception, testing result inaccuracy.
Summary of the invention
In view of this, the embodiment of the invention provides battery detection method and device, to solve to pass through electricity in the prior art
The problem of total voltage of pond group determines battery pack with the presence or absence of exception, and testing result is inaccurate, leads to cell damage.
The first aspect of the embodiment of the present invention provides battery detection method, comprising:
Determine the practical single battery information of battery pack;
The actual battery information and the first default battery number of battery pack are obtained, the first default battery number is man-machine
The battery number of interface setting;
Institute is determined according to the actual battery information, the first default battery number and the practical single battery information
Battery pack is stated with the presence or absence of abnormal.
Optionally, the practical single battery information of the determining battery pack includes:
The battery data for obtaining the second default battery number in battery pack is preset according to the battery data and described second
The practical single battery information is calculated in battery number;
Wherein, the described second default battery number is less than or equal to the actual battery joint number of the battery pack.
Optionally, described according to the actual battery information, the first default battery number and the practical single-unit electricity
Pond information determines that the battery pack includes: with the presence or absence of abnormal
The theoretical single-unit electricity of the battery pack is determined according to the actual battery information and the first default battery number
Pond information;
Judge whether the theoretical single battery information and the practical single battery information meet the first preset condition;
Determine the battery pack with the presence or absence of abnormal according to judging result.
Optionally, described that the battery pack is determined according to the actual battery information and the first default battery number
Theoretical single battery information specifically includes:
Wherein,For the theoretical single battery information, Vbat1 is the actual battery information, and N is described first pre-
If battery number.
Optionally, described according to the actual battery information, the first default battery number and the practical single-unit electricity
Pond information determines the battery pack with the presence or absence of abnormal further include:
The theory electricity of the battery pack is determined according to the practical single battery information and the first default battery number
Pond information;
Judge whether the theoretical cell information and the actual battery information meet the second preset condition;
Determine the battery pack with the presence or absence of abnormal according to judging result.
Optionally, described that the battery is determined according to the practical single battery information and the first default battery number
The theoretical cell information of group specifically includes:
Wherein, V is the theoretical cell information,For the practical single battery information, N is the described first default battery
Joint number.
The second aspect of the embodiment of the present invention provides battery check device, comprising:
Information determination module, for determining the practical single battery information of battery pack;
Data obtaining module, for obtaining the actual battery information and the first default battery number of battery pack, described first
Default battery number is the battery number of man-machine interface setting;
Battery exception judgment module, for according to the actual battery information, the first default battery number and described
Practical single battery information determines the battery pack with the presence or absence of abnormal.
Optionally, the information determination module is specifically used for:
The battery data for obtaining the second default battery number in battery pack is preset according to the battery data and described second
The practical single battery information is calculated in battery number;
Wherein, the described second default battery number is less than or equal to the actual battery joint number of the battery pack.
The third aspect of the embodiment of the present invention provides terminal device, including memory, processor and is stored in described
In memory and the computer program that can run on the processor, the processor are realized when executing the computer program
As described in any of the above-described the step of battery detection method.
The fourth aspect of the embodiment of the present invention provides computer readable storage medium, the computer readable storage medium
Computer program is stored, realizing the battery detection method as described in any of the above-described when the computer program is executed by processor
Step.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the practical single-unit electricity by determining battery pack
Pond information carries out the calculating of virtual condition to every batteries of battery pack, in conjunction with the actual battery information, first default of acquisition
Battery number determines the battery pack with the presence or absence of exception, and battery pack can not accurately be detected by the total voltage of battery pack by solving
With the presence or absence of exception, realize the accurate detection to battery pack exception, and avoid in time battery in battery pack overcharge or over-discharge,
Preferably protect every batteries.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of battery detection method provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow schematic diagram of Fig. 1 step S103;
Fig. 3 is another specific implementation flow schematic diagram of Fig. 1 step S103;
Fig. 4 is the structural schematic diagram of battery check device provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
Referring to Fig. 1, one embodiment implementation process schematic diagram of battery detection method is provided, details are as follows:
Step S101 determines the practical single battery information of battery pack.
Wherein, the practical single battery information refers to the reality of every batteries in the battery pack including actual battery joint number
The actual voltage value of single battery, actual current value, actual electricity etc. are believed in battery information, such as battery pack
Breath.
Actual battery joint number refers to that the practical battery number having of battery pack, the first default battery number refer to by man-machine
The battery number that the battery pack of interface setting theoretically has.
Modular UPS currently used in the market brings more choosings to match different customer demands for client
It selects, the battery number of configuration can be wider from 16 sections to 20 sections or even range.But wide scope cell voltage works, although band
It much facilitates, but if the battery number of actual disposition and the battery number of man-machine interface setting mismatch, so that charge and discharge
The control parameter point of process occurs as soon as deviation, it is easy to the problem of leading to over-charging of battery or battery over-discharge.For example, actual battery
16 sections are configured in group, but because operating reason man-machine interface is arranged to 18 sections, that is easy for will lead to over-charging of battery, causes
Cell damage, if configuring 20 sections in actual battery group, man-machine interface is arranged to 18 sections, that battery is not fully filled certainly, standby electricity
Time is insufficient, while when battery discharge, and battery low-voltage protection point deviates, the problem of leading to over-discharge, lead to cell damage.And it is existing
In technology, the total voltage by battery pack is cannot accurately to detect above-mentioned battery pack abnormal phenomenon.
So the present embodiment determines that battery pack with the presence or absence of exception, may further judge by practical single battery information
Battery protects every batteries in battery pack either with or without overcharging state or over-discharge state is in out, improves battery life.
In another embodiment, the specific implementation flow packet of the practical single battery information for obtaining the battery pack
It includes:
The battery data for obtaining the second default battery number in battery pack is preset according to the battery data and described second
The practical single battery information is calculated in battery number.
Wherein, the described second default battery number is less than or equal to the actual battery joint number of the battery pack.
The practical single battery information refers to every actual battery information of batteries in the battery pack.For example, electric
20 batteries of Chi Zuyou, practical single battery information can be practical single-unit voltage value, and practical single-unit voltage value is 14V, i.e., electric
The voltage value of the actually every batteries of 20 batteries of Chi Zuzhong is 14V.
Specifically, the battery data is to acquire total battery information of the second default battery number or single-unit electricity in battery pack
Pond information obtains.It illustratively, include 20 batteries in battery pack, the second default battery number can be 10 sections, then obtain
Total battery information (battery data) of 10 batteries then obtains the practical single-unit by total battery information divided by 10 in battery pack
Battery information;Alternatively, obtaining the battery information (battery data) of each batteries of 10 batteries in battery pack, this 10 is economized on electricity
The battery information of each batteries is added to obtain total battery information of 10 batteries in pond, then by total electricity of 10 batteries
Pond information then obtains the practical single battery information divided by 10.
Optionally, the practical single battery information can be practical single-unit voltage value, practical single-unit current value and reality
Single-unit electricity.
Illustratively, the practical single battery information can be practical single-unit voltage value.Specifically, can be in battery pack
Including 20 batteries, the second default battery number can be 5 sections, then obtain the battery information of 5 batteries in battery pack, 5 economize on electricitys
The total voltage value in pond is 67.5V, and by the total voltage value of 5 batteries divided by 5, then the average voltage for obtaining every batteries is
13.5V, i.e., the described practical single-unit voltage value are 13.5V.
It should be understood that the second default battery number can be 1 section, it is also possible to more piece, it can also be with the electricity of battery pack
Pond joint number is equal.It is at least two sections that the embodiment of the present invention second, which presets battery number, to guarantee practical single battery information
Accuracy.
Step S102 obtains the actual battery information and the first default battery number of battery pack, the first default battery
Joint number is the battery number of man-machine interface setting.
Wherein, the actual battery information of battery pack is the practical whole battery information of battery pack, such as the reality of battery pack
The practical total current etc. that total voltage, the practical total electricity of battery pack, battery pack can export.
The first default battery number refers to that ups system passes through the battery section that man-machine interface configures the battery pack
Number.
Step S103, according to the actual battery information, the first default battery number and the practical single battery
Information determines the battery pack with the presence or absence of abnormal.
Illustratively, true according to the practical total voltage, the first default battery number and the practical single-unit voltage
The fixed battery pack is with the presence or absence of abnormal;It can also be according to the practical total current, the first default battery number and described
Practical single-unit electric current determines the battery pack with the presence or absence of abnormal;Or according to the practical total electricity, the first default battery
Joint number and the practical single-unit electricity determine the battery pack with the presence or absence of abnormal etc..
In another embodiment, referring to fig. 2, described in step S103 in advance according to the actual battery information, described first
If battery number and the practical single battery information determine the battery pack and include: with the presence or absence of abnormal specific implementation flow
Step S201 determines the reason of the battery pack according to the actual battery information and the first default battery number
By single battery information.
Optionally, the theoretical single battery information refers to every batteries in the battery pack including the first default battery number
Theoretical cell information, can be theoretical single-unit voltage, theoretical single-unit electric current and theoretical single-unit electricity etc..
Specifically, can determine the reason of the battery pack according to the practical total voltage and the first default battery number
By single-unit voltage;The theory of the battery pack can also be determined according to the practical total current and the first default battery number
Single-unit electric current;The practical total electricity and the first default battery number theory of the battery pack can be determined according to
Single-unit electricity etc..
In another embodiment, according to the actual battery information and the first default battery described in step S201
Joint number determines that the specific implementation flow of the theoretical single battery information of the battery pack includes:
Wherein,For the theoretical single battery information, Vbat1 is the actual battery information, and N is described first default
Battery number.
Optionally, determine that the theory of the battery pack is single according to the practical total voltage and the first default battery number
Voltage is saved, i.e., the theoretical single-unit voltage of the battery pack can be obtained according to above-mentioned formula.Illustratively, the reality of battery pack
Total voltage value is 270V, and the described first default battery number of man-machine interface setting is 20 sections, then the theory of the battery pack is single
Section voltage value is 13.5V.
It is pre- to judge whether the theoretical single battery information and the practical single battery information meet first by step S202
If condition.
Specifically, the relationship by judge theory the single battery information and the practical single battery information, it can be with
It determines whether battery pack actual battery joint number is consistent with the first default battery number, further determined battery pack with the presence or absence of different
Often.
The judgement theoretical single battery information and the practical single battery in another embodiment, in step S202
The specific implementation flow whether information meets the first preset condition includes:
In Vbat0-Vbat3 > V1 or Vbat3-Vbat0 > V1, it is determined that the actual battery joint number and first of battery pack
Default battery number is not consistent, and it is abnormal to determine that the battery pack exists.
Wherein, Vbat0 is the theoretical single battery information, and Vbat3 is the practical single battery information, and V1 is described
First preset condition.
First preset condition refers to the error in order to avoid practical single battery information and the return difference value that introduces, that is, sentences
Whether the difference between disconnected theory single battery information and practical single battery information is within the scope of allowable error, the first default item
Part is specifically as follows error range (- V1, V1), Vbat0-Vbat3 is judged whether in error range (- V1, V1), if in error
In range (- V1, V1), then there is no exceptions for battery pack, if not in error range (- V1, V1), it is determined that there are different for battery pack
Often.
Step S203 determines the battery pack with the presence or absence of abnormal according to judging result.
It is described to determine the battery pack with the presence or absence of abnormal according to judging result in one embodiment, comprising:
According to judging result determine the battery pack actual battery joint number and the first default battery number whether phase
Deng.
If the actual battery joint number of the battery pack and the first default battery number are equal, the battery pack is determined not
There are exceptions.
If the actual battery joint number of the battery pack and the first default battery number are unequal, the battery pack is determined
There are exceptions.
Illustratively, if Vbat0-Vbat3 > V1, it is pre- to illustrate that the actual battery joint number of the battery pack is greater than described first
If battery number, it is abnormal to determine that the battery pack exists;If Vbat3-Vbat0 > V1, it is determined that the actual battery of the battery pack
Joint number is less than the described first default battery number, and it is abnormal to determine that the battery pack exists.Wherein, Vbat0 is the theoretical single-unit
Battery information, Vbat3 are the practical single battery information, and V1 is first preset condition.
Specifically, Vbat0-Vbat3 > V1, then illustrate the first default battery number ratio of the man-machine interface setting of ups system
The battery number of actual battery group configuration is few, and the battery of battery pack is likely to be at over-discharge state, that is, it is abnormal to determine that battery pack exists,
It sounds an alarm, administrative staff is notified to increase the first default battery number of the man-machine interface setting of ups system;If Vbat3-
Vbat0 > V1 then illustrates the first default battery number of man-machine interface setting of ups system than battery that actual battery group configures
Joint number is more, and the battery of battery pack is likely to be at overcharging state, that is, it is abnormal to determine that battery pack exists, sounds an alarm, notifies administrator
Member reduces the first default battery number of the man-machine interface setting of ups system.
Optionally, the present embodiment is to judge that the battery number of battery pack and man-machine interface are arranged first is pre- by voltage
If whether battery number is equal, i.e., the battery number of battery pack is judged by the relationship of practical single-unit voltage and theoretical single-unit voltage
It is whether equal with the first default battery number of man-machine interface setting, it is abnormal to determine that battery pack whether there is, and then can determine
Whether the battery of battery pack, which is in, overcharges or the state of over-discharge, if the first of the battery number of battery pack and man-machine interface setting
Default battery number is unequal, it is determined that the battery pack of detection has exception, notifies the electricity of administrative staff's verification check battery pack
Pond quantity or the battery number of man-machine interface setting, achieve the purpose that protect battery in time.
Illustratively, judge whether the theoretical single-unit voltage and the practical single-unit voltage meet the first preset condition,
Determine the battery pack with the presence or absence of abnormal according to judging result.Such as theoretical single-unit voltage is 13.5V, practical single-unit voltage is
15V, the first preset condition are 1V, then Vbat0-Vbat3 > V1, then illustrate the first default electricity of the man-machine interface setting of ups system
Pond joint number is fewer than the battery number that actual battery group configures, and the battery of battery pack is likely to be at over-discharge state, that is, determines battery pack
There are exceptions.
Illustratively, theoretical single-unit voltage is 12.8V, and practical single-unit voltage is 13.5V, and the first preset condition is 0.5V,
Then Vbat3-Vbat0 > V1 then illustrates that the first default battery number of the man-machine interface setting of ups system is assembled than actual battery
The battery number set is more, and the battery of battery pack is likely to be at overcharging state, that is, it is abnormal to determine that battery pack exists.
Illustratively, theoretical single-unit voltage is 13.5V, and practical single-unit voltage is 13.7V, and the first preset condition is 0.5V,
The difference of theoretical single-unit voltage and practical single-unit voltage then illustrates in the error range (- 0.5,0.5) that the first preset condition is formed
First default battery number of the man-machine interface setting of ups system is equal with the battery that actual battery group configures, that is, determines battery
There is no abnormal for group.
The present embodiment to the battery number of battery pack without limitation, i.e., to actual battery information, practical single battery information,
The specific value of theoretical single battery information and the first preset condition has different electricity without limitation, according to different battery packs
Pond information.
It should be understood that the present embodiment can also judge battery pack by the relationship of practical single-unit electric current and theoretical single-unit electric current
Whether battery number and the first default battery number of man-machine interface setting are equal, can also pass through practical single-unit electricity and theory
Whether the first default battery number that the relationship of single-unit electricity judges that the battery number of battery pack and man-machine interface are arranged is equal.
Optionally, the present embodiment is also possible that for the theoretical single battery information and the practical single battery information
The different judging results for whether meeting the first preset condition issue different alarms, and then staff is prompted to check relevant parameter.
In another embodiment, the method also includes:
When the actual battery joint number for judging the battery pack is greater than the first default battery number, increase the electricity
The default single-unit bulk charge pressure point of pond group, default single-unit floating charging pressure point, default single-unit over-voltage protection point and default single-unit are under-voltage
Protection point.
When the actual battery joint number for judging the battery pack is less than the first default battery number, reduce the electricity
The default single-unit bulk charge pressure point of pond group, default single-unit floating charging pressure point, default single-unit over-voltage protection point and default single-unit are under-voltage
Protection point.
Above-mentioned battery detection method, it is true by the actual battery information and the first default battery number that obtain battery pack
The theoretical single battery information of the fixed battery pack;It is determined further according to theoretical single battery information and practical single battery information real
Whether border battery number is consistent with the first default battery number that the man-machine interface of ups system is arranged, that is, passes through the practical electricity of judgement
Whether pond joint number and the first default battery number of the man-machine interface of ups system setting are equal, can be accurately detected battery pack
With the presence or absence of exception, it can also determine that whether the battery in battery pack overcharges or over-discharge phenomenon, avoids overcharging for battery in time
Or over-discharge, preferably protect every batteries.
It will be understood by those skilled in the art that in above-described embodiment the size of the serial number of each step be not meant to execute it is suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Embodiment two
Referring to Fig. 3, another specific implementation flow schematic diagram of step S103 in Fig. 1 is provided, details are as follows:
Step S301 determines the battery pack according to the practical single battery information and the first default battery number
Theoretical cell information.
Wherein, theoretical cell information refers to the total battery information of the battery pack including the first default battery number.
Optionally, the theoretical cell information can be the theoretical total voltage value, theoretical total current value and theory of battery pack
Total electricity etc..
In another embodiment, according to the practical single battery information and the first default electricity described in step S301
Pond joint number determines that the theoretical cell information of the battery pack specifically includes:
Wherein, V is the theoretical cell information,For the practical single battery information, N is the described first default battery
Joint number.
Optionally, the theory of the battery pack is determined according to the practical single-unit voltage and the first default battery number
The theoretical total voltage of the battery pack can be obtained in total voltage according to above-mentioned formula.Illustratively, the practical single-unit electricity of battery pack
Pressure value is 13.7V, and the described first default battery number of man-machine interface setting is 20 sections, then the theoretical total voltage of the battery pack
Value is 274V.
Step S302, judges whether the theoretical cell information and the actual battery information meet the second preset condition.
Specifically, the relationship by judging the theoretical cell information and the actual battery information, can determine battery
Whether the battery number in group is consistent with the first default battery number, further determined battery pack with the presence or absence of abnormal.
In another embodiment, judge whether the theoretical cell information and the actual battery information are full in step S302
The specific implementation flow of the second preset condition includes: enough
In Vbat2-Vbat1 > V2 or Vbat1-Vbat2 > V2, it is determined that the battery number of the battery pack with it is described
First default battery number is not consistent, it is determined that the battery pack exists abnormal.
Wherein, Vbat2 is the theoretical cell information, and Vbat1 is the actual battery information, and V2 is described second default
Condition.
Second preset condition refers to the error in order to avoid actual battery information and the return difference value that introduces, i.e. judgement reason
Whether by the difference between battery information and actual battery information within the scope of allowable error, the second preset condition is specifically as follows
Error range (- V2, V2) judges Vbat2-Vbat1 whether in error range (- V2, V2), if at error range (- V2, V2)
Interior, then there is no exceptions for the battery pack, if then the battery pack exists abnormal not in error range (- V2, V2).
Step S303 determines the battery pack with the presence or absence of abnormal according to judging result.
In another embodiment, determine the battery pack with the presence or absence of abnormal according to judging result described in step S303
Specific implementation flow include:
Determine whether the battery number of the battery pack and the first default battery number are equal according to judging result.
If the battery number of the battery pack and the first default battery number are equal, determine that the battery pack is not present
It is abnormal.
If the battery number of the battery pack and the first default battery number are unequal, determine that the battery pack exists
It is abnormal.
Illustratively, if Vbat2-Vbat1 > V2, it is pre- to illustrate that the actual battery joint number of the battery pack is less than described first
If battery number, it is abnormal to determine that the battery pack exists;If Vbat1-Vbat2 > V2, it is determined that the actual battery of the battery pack
Joint number is greater than the described first default battery number, and it is abnormal to determine that the battery pack exists.Wherein, Vbat2 is the theoretical cell
Information, Vbat1 are the actual battery information, and V2 is second preset condition.
Specifically, Vbat2-Vbat1 > V2, then illustrate the first default battery number ratio of the man-machine interface setting of ups system
The battery number of actual battery group configuration is more, and the battery of battery pack is likely to be at overcharging state, that is, it is abnormal to determine that battery pack exists,
It sounds an alarm, administrative staff is notified to reduce the first default battery number of man-machine interface setting of ups system;If Vbat1-
Vbat2 > V2 then illustrates the first default battery number of man-machine interface setting of ups system than battery that actual battery group configures
Joint number is few, and the battery of battery pack is likely to be at over-discharge state, that is, it is abnormal to determine that battery pack exists, sounds an alarm, notifies administrator
Member increases the first default battery number of the man-machine interface setting of ups system.
Optionally, the present embodiment is first for judging the battery number of battery pack and man-machine interface by voltage value and being arranged
Whether default battery number is equal, i.e., the battery section of battery pack is judged by the relationship of practical total voltage value and theoretical total voltage value
Whether the first default battery number of several and man-machine interface setting is equal, determines that battery pack with the presence or absence of exception, can also determine
Whether the battery of battery pack, which is in, overcharges or the state of over-discharge, if the first of the battery number of battery pack and man-machine interface setting
Default battery number is unequal, it is determined that the battery pack of detection has exception, notifies the electricity of administrative staff's verification check battery pack
Pond quantity or the battery number of man-machine interface setting, achieve the purpose that protect battery in time.
Illustratively, judge whether the theoretical total voltage and the practical total voltage meet the second preset condition, according to
Judging result determines the battery pack with the presence or absence of abnormal.Such as theoretical total voltage is 300V, and practical total voltage is 274V, second
Preset condition is 15V, then Vbat2-Vbat1 > V2, then illustrates the first default battery number of the man-machine interface setting of ups system
Battery number than the configuration of actual battery group is more, and the battery of battery pack is likely to be at overcharging state, that is, determining battery pack, there are different
Often.
Illustratively, theoretical total voltage is 245V, and practical total voltage is 274V, and the second preset condition is 10V, then Vbat1-
Vbat2 > V2 then illustrates the first default battery number of man-machine interface setting of ups system than battery that actual battery group configures
Joint number is few, and the battery of battery pack is likely to be at over-discharge state, that is, it is abnormal to determine that battery pack exists.
Illustratively, theoretical total voltage is 270V, and practical total voltage is 274V, and the second preset condition is 5V, theoretical total electricity
The error range (- 5,5) that the difference of pressure and practical total voltage is formed in the second preset condition is interior, then illustrates the man-machine boundary of ups system
First default battery number of face setting is equal with the battery that actual battery group configures, that is, determining battery pack, there is no abnormal.
The present embodiment to the battery number of battery pack without limitation, i.e., to actual battery information, theoretical cell information, theory
The specific value of single battery information and the second preset condition without limitation, according to different battery packs there is different batteries to believe
Breath.
Above-mentioned battery detection method, it is true by the practical single battery information and the first default battery number of battery pack
The theoretical cell information of the fixed battery pack;Further according to theoretical cell information and actual battery information determine actual battery joint number and
Whether the first default battery number of the man-machine interface setting of ups system is consistent, i.e., by judging actual battery joint number and UPS system
Whether the first default battery number of the man-machine interface setting of system is equal, and can be accurately detected battery pack whether there is exception,
Can also determine whether the battery in battery pack overcharges or over-discharge phenomenon, avoid in time battery overcharge or over-discharge, preferably
Protect every batteries.
It will be understood by those skilled in the art that in above-described embodiment the size of the serial number of each step be not meant to execute it is suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Embodiment three
Corresponding to battery detection method described in above-described embodiment one or embodiment two, implementation of the present invention is shown in Fig. 4
The structural block diagram of battery check device in example three.For ease of description, only the parts related to this embodiment are shown.
The device includes: information determination module 110, data obtaining module 120 and battery exception judgment module 130.
Wherein, information determination module 110 is used to determine the practical single battery information of battery pack.
Data obtaining module 120 is used to obtain the actual battery information and the first default battery number of battery pack, and described the
One default battery number is the battery number of man-machine interface setting.
Battery exception judgment module 130 is used for according to the actual battery information, the first default battery number and institute
Stating practical single battery information determines the battery pack with the presence or absence of abnormal.
In one embodiment, information determination module is specifically used for:
The battery data for obtaining the second default battery number in battery pack is preset according to the battery data and described second
The practical single battery information is calculated in battery number.
Wherein, the described second default battery number is less than or equal to the actual battery joint number of the battery pack.
Above-mentioned battery check device, information determination module 110 pass through the practical single battery information for determining battery pack, battery
Abnormal judgment module 130 determines whether the battery pack deposits in conjunction with the actual battery information of acquisition, the first default battery number
In exception, realize that accurate detection battery pack is abnormal, and avoid in time battery in battery pack overcharge or over-discharge, preferably protect
Protect every batteries.
Example IV
Fig. 5 is the schematic diagram for the terminal device 100 that the embodiment of the present invention four provides.As shown in figure 5, described in the embodiment
Terminal device 100 includes: processor 140, memory 150 and is stored in the memory 150 and can be in the processor
The computer program 151 run on 140, such as the program of battery detection method.The processor 140 is executing the computer
The step in above-mentioned each battery detection method embodiment, such as step S101 to S103 shown in FIG. 1 are realized when program 151,
Alternatively, the processor 140 realizes each module/unit in above-mentioned each Installation practice when executing the computer program 151
Function, such as the function of module 110 to 130 shown in Fig. 4.
Illustratively, the computer program 151 can be divided into one or more module/units, it is one or
Multiple module/the units of person are stored in the memory 150, and are executed by the processor 140, to complete the present invention.Institute
Stating one or more module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment
For describing implementation procedure of the computer program 151 in the terminal device 100.For example, the computer program 151
Information determination module, data obtaining module and battery exception judgment module can be divided into, each module concrete function is as follows:
Information determination module is used to determine the practical single battery information of battery pack.
Data obtaining module is used to obtain the actual battery information and the first default battery number of battery pack, and described first is pre-
If battery number is the battery number of man-machine interface setting.
Battery exception judgment module is used for according to the actual battery information, the first default battery number and the reality
Border single battery information determines the battery pack with the presence or absence of abnormal.
In one embodiment, information determination module is specifically used for:
The battery data for obtaining the second default battery number in battery pack is preset according to the battery data and described second
The practical single battery information is calculated in battery number.
Wherein, the described second default battery number is less than or equal to the actual battery joint number of the battery pack.
The terminal device 100 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device 100 may include, but be not limited only to processor 140, memory 150.Those skilled in the art can manage
Solution, Fig. 5 is only the example of terminal device 100, does not constitute the restriction to terminal device 100, may include more than illustrating
Or less component, certain components or different components are perhaps combined, such as terminal device 100 can also include that input is defeated
Equipment, network access equipment, bus etc. out.
Alleged processor 140 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 150 can be the internal storage unit of terminal device 100, for example, terminal device 100 hard disk or
Memory.What the memory 150 was also possible to be equipped on the External memory equipment of terminal device 100, such as terminal device 100 inserts
Connect formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory
Block (Flash Card) etc..Further, the memory 150 can also both include the internal storage unit of terminal device 100
It also include External memory equipment.The memory 150 is for storing needed for the computer program and terminal device 100 it
His program and data.The memory 150 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or system, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
Including within protection scope of the present invention.