WO2015154381A1 - Method and system for detecting charge level of battery, and battery - Google Patents

Method and system for detecting charge level of battery, and battery Download PDF

Info

Publication number
WO2015154381A1
WO2015154381A1 PCT/CN2014/086661 CN2014086661W WO2015154381A1 WO 2015154381 A1 WO2015154381 A1 WO 2015154381A1 CN 2014086661 W CN2014086661 W CN 2014086661W WO 2015154381 A1 WO2015154381 A1 WO 2015154381A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
battery
power
circuit voltage
current
Prior art date
Application number
PCT/CN2014/086661
Other languages
French (fr)
Chinese (zh)
Inventor
张健
王蕾
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015154381A1 publication Critical patent/WO2015154381A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of battery technologies, and in particular, to a battery capacity detecting method, system, and battery.
  • the terminal battery capacity detection generally adopts the following method: detecting the current flowing in and out of the battery, and using the battery voltage and temperature as auxiliary conditions, and completing the power conversion through the terminal.
  • the method needs to obtain the capacity of the battery to be tested in advance, and the percentage of the current battery power can be obtained according to the ratio between the power detected by the mobile phone conversion and the capacity of the battery to be tested.
  • the prior art has the following deficiencies: First, the power of the battery is generally judged by the voltage at the time of starting up, and the error is large, especially when the low voltage is charged, the virtual power is more, and the error is larger; the second is that only the battery of the specified capacity can be detected. Unable to detect batteries of unknown capacity, the versatility of existing battery capacity detection methods is poor.
  • the main object of the present invention is to solve the technical problem that the existing battery power detecting method has large error and poor versatility.
  • the present invention provides a battery power detecting method, the battery power detecting method comprising the steps of: acquiring a first power value of a battery, and determining a battery current value and a second power value according to the first power value; After the preset time interval, recalculating the first power value according to the preset time interval, and the determined battery current value and the second power value; re-determining the first power value according to the current calculation a battery current value and a second power value; determining a battery power indicator value according to the currently calculated second power value.
  • the step of determining the power indicator value of the battery according to the currently calculated second power value further comprises: determining whether a termination instruction is received, and if not, continuing to sequentially perform the step of recalculating the first power value And subsequent steps until a termination command is received.
  • the step of re-determining the battery current value and the second power value according to the currently calculated first power value comprises: mapping according to a preset battery power value, an open circuit voltage value, and an internal resistance value Determining a first open circuit voltage value and an internal resistance value corresponding to the currently calculated first power value; acquiring a closed circuit voltage value of the battery, according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and internal resistance Recalculating the battery current value and calculating a second open circuit voltage value; determining a second corresponding to the second open circuit voltage value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value Electricity value.
  • the step of recalculating the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value, and calculating the second open circuit voltage value comprises: according to the closed circuit voltage And recalculating the battery current value according to the currently calculated first open circuit voltage value and the internal resistance value; and using the closed circuit voltage based on a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value The value is used as the open circuit voltage value to determine a corresponding internal resistance value in the mapping relationship, to re-determine the current internal resistance value of the battery, and calculate the second according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value. Open circuit voltage value.
  • the step of determining the power indicator value of the battery according to the currently calculated second power value comprises: determining that the battery is in a charging state or a discharging state; when the battery is in a charging state, and when the recalculating second power value
  • the current power indicator value of the battery is greater than the current power indicator value
  • the first preset value is increased
  • the battery is in the discharging state
  • the recalculated second power value is less than the battery current indicator
  • the current preset value is decreased by a second preset value.
  • the battery power detecting method further includes the following steps: when the battery is in a charging state, and the current second power value is less than the preset power value, calculating the battery according to the preset time interval and the battery current value corresponding to the time interval. The battery charge value is charged in the time interval, and the battery charge value is charged in each time interval until the battery is full, and the battery capacity value is updated according to the accumulated charge battery charge value.
  • the present invention further provides a battery power detecting system, the battery power detecting system comprising: a first calculating module, configured to acquire a first power value of the battery, and determine according to the first power value a battery current value and a second power value; the second calculating module is configured to recalculate the first time according to the preset time interval, and the determined battery current value and the second power value after a preset time interval The first calculation module is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value; and the determining module is configured to determine the battery according to the currently calculated second power value. Battery indicator value.
  • the battery power detecting system further comprises: a loop control module configured to determine whether a termination command is received, and if not, controlling the first computing module, the second computing module, and the determining module to operate.
  • a loop control module configured to determine whether a termination command is received, and if not, controlling the first computing module, the second computing module, and the determining module to operate.
  • the first calculating module includes: a first calculating unit configured to determine, according to a preset mapping relationship between a battery power value, an open circuit voltage value, and an internal resistance value, a current calculated first power value a first open circuit voltage value and an internal resistance value; the second calculating unit is configured to obtain a closed circuit voltage value of the battery, and recalculate the method according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value a battery current value, and calculating a second open circuit voltage value; the third calculating unit is configured to determine, according to a preset mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, the second open circuit voltage value The second amount of electricity.
  • the determining module includes: a determining unit configured to determine that the battery is in a charging state or a discharging state; the first adjusting unit is configured to when the battery is in a charging state, and when the recalculated second power value is greater than When the current power indicator value of the battery is described, the current power indicator value is increased by a first preset value; the second adjusting unit is set to when the battery is in a discharging state, and when the recalculated second power value is less than the When the current battery indicator value is used, the current battery indicator value is decreased by a second preset value.
  • the battery power detecting system further includes a capacity update module, the capacity update module is configured to: when the battery is in a charging state, and the current second power value is less than the preset power value, according to the preset time interval and the time
  • the battery current value corresponding to the interval calculates the power value charged in the battery during the time interval, and accumulates the power value of the battery in each time interval after the accumulation, until the battery is full, and is updated according to the accumulated charge value of the battery The capacity value of the battery.
  • the present invention further provides a battery
  • the battery includes a battery power detecting system
  • the battery power detecting system includes: a first calculating module, configured to acquire a first power value of the battery, according to the The first power value determines a battery current value and a second power value; the second calculating module is configured to, after the preset time interval, based on the preset time interval, and the determined battery current value and the second power value Recalculating the first power value; the first calculating module is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value; the determining module is set to be based on the current calculation The second battery value determines the battery power indicator value.
  • the battery power detecting method of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation.
  • the first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
  • FIG. 1 is a schematic flow chart of a first embodiment of a battery power detecting method according to the present invention
  • FIG. 2 is a schematic diagram showing the refinement process of an embodiment of step S10 in FIG. 1;
  • step S12 in FIG. 2 is a schematic diagram showing the refinement process of an embodiment of step S12 in FIG. 2;
  • step S30 in FIG. 1 is a schematic flow chart of an embodiment of step S30 in FIG. 1;
  • FIG. 5 is a schematic diagram showing the refinement process of an embodiment of step S32 in FIG. 4;
  • FIG. 6 is a schematic diagram of a refinement process of an embodiment of step S40 in FIG. 4;
  • FIG. 7 is a schematic flow chart of a second embodiment of a battery power detecting method according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a first embodiment of a battery power detecting system according to the present invention.
  • FIG. 9 is a schematic diagram of a refinement function module of an embodiment of the first computing module of FIG. 8;
  • FIG. 10 is a schematic diagram of a refinement function module of an embodiment of the second computing unit of FIG. 9;
  • FIG. 11 is a schematic diagram of a refinement function module of an embodiment of the determining module of FIG. 8;
  • FIG. 12 is a schematic diagram of functional modules of a second embodiment of a battery power detecting system according to the present invention.
  • FIG. 13 is a schematic diagram of functional modules of a third embodiment of a battery power detecting system according to the present invention.
  • the invention provides a battery power detecting method.
  • FIG. 1 is a schematic flow chart of a first embodiment of a battery power detecting method according to the present invention.
  • the battery power detecting method includes:
  • Step S10 obtaining a first power value of the battery, and determining a battery current value and a second power value according to the first power value;
  • the battery is generally pre-charged with a certain amount of power when leaving the factory, and the pre-stored power value may be pre-stored in the battery before leaving the factory, and the first power value may be a pre-stored power value.
  • the first power value may also be the current actual remaining power value of the battery, and the current battery remaining power value may be calculated according to the following embodiment.
  • step S10 includes:
  • Step S11 Obtain a first power value of the battery, and determine, according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the first open circuit voltage value corresponding to the obtained first power value and the internal value. Resistance value.
  • a mapping relationship between the battery power value, the open circuit voltage value and the internal resistance value such as a function or a correspondence table, may be established in advance. Since the temperature also has a certain influence on the mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, in this embodiment, first, a temperature, a battery power value, an open circuit voltage value, and an internal resistance value are established. Correspondence table. For example, a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at -10 degrees, 0 degrees, 25 degrees, and 50 degrees can be created separately.
  • the battery power value may be the remaining power value of the battery.
  • the battery power value in the correspondence table is a ratio between the battery remaining power value and the battery capacity, as described below.
  • the first power value, the second power value, and the remaining power value are all expressed as a percentage value.
  • a table corresponding to two similar temperatures is selected in the above correspondence table for linear interpolation, and a correspondence table between the battery power value, the open circuit voltage value and the internal resistance value at the current temperature is prepared.
  • the correspondence table corresponding to 0 degrees and 25 degrees is selected, and the two correspondence tables are linearly interpolated to obtain a correspondence table corresponding to 15 degrees.
  • the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1.
  • the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
  • Step S12 acquiring a closed circuit voltage value of the battery, calculating a battery current value according to the closed circuit voltage value, the determined first open circuit voltage value and the internal resistance value, and calculating a second open circuit voltage value;
  • step S12 includes:
  • Step S121 calculating a battery current value according to the closed circuit voltage value and the determined first open circuit voltage value and internal resistance value.
  • Step S122 determining a corresponding internal resistance value in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value to determine a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  • the current internal resistance value of the battery is calculated according to the closed circuit voltage value, and the currently calculated battery current value and internal resistance value.
  • the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage.
  • the difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage.
  • the re-determined battery internal resistance be R2
  • the second open circuit voltage OCV2 of the battery can be obtained as:
  • Step S13 Determine a second power value corresponding to the second open circuit voltage value based on a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  • the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
  • Step S20 after the preset time interval, recalculate the first power value according to the preset time interval, and the determined battery current value and the second power value;
  • the preset time interval may be set according to actual needs. In order to ensure the accuracy of the power detection, the preset time interval should not be too large. For example, in this embodiment, the preset time interval may be taken as 10 seconds. In other embodiments, the preset time interval may also be 5 seconds, 15 seconds, or 20 seconds, etc., and may be set according to actual needs.
  • the battery power value is the second power value
  • the input or output current of the battery is the battery current value
  • ⁇ t is a preset time interval.
  • the first electric quantity value and the second electric quantity value are both expressed as a percentage value, so the above I ⁇ t is actually a percentage value, that is, I ⁇ t and battery capacity. The ratio between the two. Therefore, it is necessary to pre-store a battery capacity value in the battery.
  • Step S30 re-determining the battery current value and the second power value according to the currently calculated first power value
  • the current calculated first power value is only a rough estimate of the current remaining battery value of the battery, in order to obtain a more accurate battery current remaining power value, a series of calculations are needed to finally obtain a more accurate current remaining power value, which is The second amount of electricity.
  • step S30 includes:
  • Step S31 determining a first open circuit voltage value and an internal resistance value corresponding to the currently calculated first power value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value;
  • a correspondence table between the temperature, the battery power value, the open circuit voltage value, and the internal resistance value may be established in advance.
  • two similar temperatures are selected in the correspondence table according to the current temperature.
  • the corresponding table is linearly interpolated, and a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at the current temperature is prepared.
  • the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1.
  • the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
  • Step S32 obtaining a closed circuit voltage value of the battery, recalculating the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculating a second open circuit voltage value;
  • FIG. 5 is a schematic diagram of the refinement process of an embodiment of step S32 in FIG. 4.
  • step S32 includes:
  • Step S321 recalculating the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value;
  • Step S322 determining a corresponding internal resistance value in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value based on a preset mapping relationship between a battery power value, an open circuit voltage value, and an internal resistance value, to determine The current internal resistance value of the battery is calculated according to the closed circuit voltage value, and the currently calculated battery current value and internal resistance value.
  • the closed circuit voltage can be used as the open circuit voltage in the above correspondence table to obtain the corresponding internal resistance value of the battery, and the closed circuit power
  • the voltage difference between the voltage and the open circuit is small, and the difference of the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery by the actually measured closed circuit voltage.
  • the re-determined battery internal resistance be R2
  • the second open circuit voltage OCV2 of the battery can be obtained as:
  • Step S33 determining a second power value corresponding to the second open circuit voltage value according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  • the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
  • Step S40 determining a battery power indicator value according to the currently calculated second power value.
  • the power indicator value can be directly modified to the currently calculated second power value.
  • the second power value may be directly sent to the terminal for display by the terminal, or the modified power indicator value may be sent to the terminal for display by the terminal.
  • step S40 is performed.
  • step S40 includes:
  • step S41 it is determined that the battery is in a charging state or a discharging state; in this embodiment, whether the battery is in a charging state or a discharging state can be determined according to the battery current value, and when the battery current value is greater than zero, the battery is in a charging state; When the current value is less than zero, the battery is in a discharged state.
  • Step S42 when the battery is in the charging state, and when the recalculated second power value is greater than the current power indicator value of the battery, adding a first preset value to the current power indicator value;
  • Step S43 when the battery is in a discharged state, and when the recalculated second power value is less than the current power indicator value of the battery, the current power indicator value is decreased by a second preset value.
  • the steps S41, S42, and S43 can be performed once every other preset time.
  • the first preset value and the second preset value are both set to one. It should be noted that, in other embodiments, it may also be set to Other values.
  • the battery power detecting method of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation.
  • the first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
  • FIG. 7 is a schematic flowchart of the second embodiment of the battery power detecting method according to the present invention.
  • the method further includes:
  • step S50 it is judged whether or not the termination instruction is received, and if not, the steps S20, S30 and S40 are continuously executed in sequence until the termination instruction is received.
  • steps S20, S30, S40, and S50 continue to be executed cyclically. That is to say, after every preset time interval, the first power value at the current time is calculated based on the preset time interval and the battery current value and the second power value determined at the previous time, and then according to the current time. The first electric quantity value determines the current battery current value and the second electric quantity value, and finally determines the battery electric quantity indication value according to the determined second electric quantity value of the current time, and when it is judged that the termination instruction is not received, continues to execute the above step.
  • the battery power detecting method further includes the following steps:
  • the battery charging value is calculated according to the preset time interval and the battery current value corresponding to the time interval, and is accumulated after each time.
  • the battery charge value is charged in the time interval until the battery is full, and the capacity value of the battery is updated according to the accumulated charge value of the battery.
  • the preset power amount is set to 10%. In other embodiments, the preset power value may also be 5% or 8%, etc., and may be set according to actual needs.
  • the battery will detect whether the current second power value is less than the preset power value. In this embodiment, if the current second power value is 6%, and thus the preset power value is less than 10%, the battery starts to accumulate. Calculate the value of the battery charge in each time interval after the time and before the battery is fully charged. Since the battery increases from 6% to 100% during this time period, that is, the battery power increases by 94%, so the battery capacity value The accumulated charge value of the battery is divided by 94%.
  • the updated battery capacity value can be used in the above step S20, that is, to calculate the current first power value.
  • the battery each time When charging is started, it is detected whether the current second power value is less than the preset power value, and the battery capacity value is updated when the current second power value is less than the preset power value.
  • the invention further provides a battery power detecting system.
  • FIG. 8 is a schematic diagram of functional modules of a first embodiment of a battery power detecting system according to the present invention.
  • the functional block diagram shown in FIG. 8 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art will surround the functional modules of the battery power detecting system shown in FIG.
  • the new function modules can be easily supplemented; the names of the function modules are custom names, which are only used to assist in understanding the various program function blocks of the battery power detecting system, and are not used to limit the technical solutions of the present invention.
  • the core is the function that each functional module of the defined name has to achieve.
  • the battery charge detection system comprises:
  • the first calculating module 10 is configured to acquire a first power value of the battery, and determine a battery current value and a second power value according to the first power value;
  • the battery is generally pre-charged with a certain amount of power when leaving the factory, and the pre-stored power value may be pre-stored in the battery before leaving the factory, and the first power value may be a pre-stored power value.
  • the first power value may also be the current actual remaining power value of the battery, and the current battery remaining power value may be calculated according to the following embodiment.
  • FIG. 9 is a schematic diagram of a refinement function module of an embodiment of the first computing module of FIG.
  • the first computing module 10 includes:
  • the first calculating unit 11 is configured to acquire a first power value of the battery, and determine, according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the first corresponding to the obtained first power value. Open circuit voltage value and internal resistance value.
  • a mapping relationship between the battery power value, the open circuit voltage value and the internal resistance value such as a function or a correspondence table, may be established in advance. Since the temperature also has a certain influence on the mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, in this embodiment, first, a temperature, a battery power value, an open circuit voltage value, and an internal resistance value are established. Correspondence table. For example, a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at -10 degrees, 0 degrees, 25 degrees, and 50 degrees can be created separately.
  • the battery power value may be the remaining power value of the battery, preferably, in this embodiment, The battery power value in the correspondence table is a ratio between the battery remaining power value and the battery capacity, and the first power value, the second power value, and the remaining power value are all expressed as percentage values.
  • a table corresponding to two similar temperatures is selected in the above correspondence table for linear interpolation, and a correspondence table between the battery power value, the open circuit voltage value and the internal resistance value at the current temperature is prepared.
  • the correspondence table corresponding to 0 degrees and 25 degrees is selected, and the two correspondence tables are linearly interpolated to obtain a correspondence table corresponding to 15 degrees.
  • the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1.
  • the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
  • the second calculating unit 12 is configured to acquire a closed circuit voltage value of the battery, calculate a battery current value according to the closed circuit voltage value, and the determined first open circuit voltage value and the internal resistance value, and calculate a second open circuit voltage value;
  • FIG. 10 is a schematic diagram of the refinement function module of the second computing unit in FIG. 9.
  • the second computing unit 12 includes:
  • the first calculating subunit 121 is configured to calculate a battery current value according to the closed circuit voltage value and the determined first open circuit voltage value and internal resistance value.
  • the second calculating sub-unit 122 is configured to determine, according to the mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the closed circuit voltage value as the open circuit voltage value in the mapping relationship
  • the resistance value is used to re-determine the current internal resistance value of the battery, and the second open circuit voltage value is calculated according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value.
  • the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage.
  • the difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage.
  • the re-determined battery internal resistance be R2
  • the second open circuit voltage OCV2 of the battery can be obtained as:
  • the third calculating unit 13 is configured to determine a second power value corresponding to the second open circuit voltage value based on a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  • the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
  • the second calculating module 20 is configured to, after a preset time interval, recalculate the first power value based on the preset time interval, and the determined battery current value and the second power value;
  • the preset time interval may be set according to actual needs. In order to ensure the accuracy of the power detection, the preset time interval should not be too large.
  • the preset time interval may be taken as 10 seconds. In other embodiments, the preset time interval may also be 5 seconds, 15 seconds, or 20, etc., and may be set according to actual needs.
  • the battery power value is the second power value
  • the input or output current of the battery is the battery current value
  • ⁇ t is a preset time interval.
  • the first electric quantity value and the second electric quantity value are both expressed as a percentage value, so the above I ⁇ t is actually a percentage value, that is, I ⁇ t and battery capacity. The ratio between the two. Therefore, it is necessary to pre-store a battery capacity value in the battery.
  • the first calculating module 10 is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value;
  • the current calculated first power value is only a rough estimate of the current remaining battery value of the battery, in order to obtain a more accurate battery current remaining power value, a series of calculations are needed to finally obtain a more accurate current remaining power value, which is The second amount of electricity.
  • the first calculating unit 11 is further configured to determine the currently calculated first power according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  • the first open circuit voltage value and the internal resistance value corresponding to the value;
  • a correspondence table between the temperature, the battery power value, the open circuit voltage value, and the internal resistance value may be established in advance.
  • two similar temperatures are selected in the correspondence table according to the current temperature.
  • the corresponding table is linearly interpolated, and a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at the current temperature is prepared.
  • the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1.
  • the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
  • the second calculating unit 12 is further configured to acquire a closed circuit voltage value of the battery, recalculate the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculate a second open circuit. Voltage value;
  • the first calculating sub-unit 121 is further configured to recalculate the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and internal resistance value. ;
  • the second calculating sub-unit 122 is further configured to determine a corresponding relationship in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value based on a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value.
  • the internal resistance value is used to re-determine the current internal resistance value of the battery, and the second open circuit voltage value is calculated according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value.
  • the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage.
  • the difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage.
  • the re-determined battery internal resistance be R2
  • the second open circuit voltage OCV2 of the battery can be obtained as:
  • the third calculating unit 13 is further configured to determine a second power value corresponding to the second open circuit voltage value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value.
  • the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
  • the determining module 30 is configured to determine a battery power indicator value according to the currently calculated second power value
  • the power indicator value can be directly modified to the currently calculated second power value.
  • the second power value may be directly sent to the terminal for display by the terminal, or the modified power indicator value may be sent to the terminal for display by the terminal.
  • FIG. 11 is a schematic diagram of the refinement function module of the determining module in FIG. 8 .
  • the determining module 30 includes:
  • the determining unit 31 is configured to determine that the battery is in a charging state or a discharging state; in this embodiment, whether the battery is in a charging state or a discharging state may be determined according to the battery current value, and when the battery current value is greater than zero, the battery is in a charging state. When the battery current value is less than zero, the battery is in a discharged state.
  • the first adjusting unit 32 is configured to increase the first preset value of the current power indicator value when the battery is in a charging state, and when the recalculated second power value is greater than a current power indicator value of the battery;
  • the second adjusting unit 33 is configured to reduce the current power indicator value by a second preset value when the battery is in a discharged state, and when the recalculated second power value is less than a current power indicator value of the battery
  • the electric quantity indication value is to be changed according to the current second electric quantity value every other minute, that is, the electric quantity indication value is updated every one minute.
  • the first preset value and the second preset value are both set to one. It should be noted that, in other embodiments, it may also be set to Other values.
  • the battery power detecting system of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation.
  • the first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
  • FIG. 12 is a schematic diagram of a functional module of a battery power detecting system according to a second embodiment of the present invention.
  • the battery power detecting system further includes a loop control module. 40. Set to determine whether a termination instruction is received, and if not, control the first calculation module, the second calculation module, and the determination module to work until a termination instruction is received.
  • the battery when the battery is exhausted, it can be regarded as receiving the termination command, or the terminal sends a termination signal to the battery, which can also be regarded as a termination instruction.
  • the first calculation module, the second calculation module, and the determination module are controlled to operate. That is to say, after every preset time interval, the first power value at the current time is calculated based on the preset time interval and the battery current value and the second power value determined at the previous time, and then according to the current time.
  • the first electric quantity value determines the current battery current value and the second electric quantity value, and finally determines the battery electric quantity indication value according to the determined second electric quantity value of the current time, and when it is judged that the termination instruction is not received, continues to execute the above step.
  • FIG. 13 is a schematic diagram of a functional module of a battery power detecting system according to a third embodiment of the present invention.
  • the battery power detecting system further includes a capacity updating module 50, and the capacity update is performed.
  • the module 50 is configured to calculate, when the battery is in a charging state, and the current second power value is less than the preset power value, calculate a power value of the battery charged in the time interval according to the preset time interval and the battery current value corresponding to the time interval. And accumulating the charge value of the battery after each time interval until the battery is full, and updating the capacity value of the battery according to the accumulated charge value of the battery.
  • the preset power amount is set to 10%. In other embodiments, the preset power value may also be 5% or 8%, etc., and may be set according to actual needs.
  • the battery will detect whether the current second power value is less than the preset power value. In this embodiment, if the current second power value is 6%, and thus the preset power value is less than 10%, the battery starts to accumulate. Calculate the value of the battery charge in each time interval after the time and before the battery is fully charged. Since the battery increases from 6% to 100% during this time period, that is, the battery power increases by 94%, so the battery capacity value The accumulated charge value of the battery is divided by 94%.
  • the updated battery capacity value can be used in the above step S20, that is, to calculate the current first power value.
  • each time the battery starts charging it detects whether the current second power value is less than the preset power value, and updates the battery capacity value when the current second power value is less than the preset power value.
  • the battery power detecting system in the above embodiment may be integrated in the battery, or may be set as a separate module in the terminal, and may be set according to actual needs.
  • the present invention further provides a battery, which includes a power detecting system.
  • the structure of the power detecting system can be referred to the above embodiment, and details are not described herein again.
  • the battery of the embodiment adopts the technical solution of the above-described electric quantity detecting system, the battery has all the advantageous effects of the above-described electric quantity detecting system.
  • the accuracy of the battery power detection is improved, and in the case where the battery capacity is unknown, the battery power detection can be performed, and the versatility is high.

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A method for detecting the charge level of a battery, comprising: after a pre-set time interval, re-calculating a first charge level value based on the pre-set time interval and a current value and a second charge level value of the battery at the previous moment, re-determining the current value and the second charge level value of the battery according to the first charge level value currently obtained by calculation, and finally determining an charge level indication value of the battery according to the currently calculated second charge level value, thereby increasing the accuracy of detection of the charge level of the battery, so that the charge level of the battery can also be detected in the case where the battery capacity is unknown, and the generality is relatively high. Also provided are a system for detecting charge level of a battery and a battery.

Description

电池电量检测方法、系统及电池Battery power detection method, system and battery 技术领域Technical field
本发明涉及电池技术领域,尤其涉及一种电池容量检测方法、系统及电池。The present invention relates to the field of battery technologies, and in particular, to a battery capacity detecting method, system, and battery.
背景技术Background technique
目前,终端电池容量检测一般采用以下方法:检测进出电池的电流,并将电池电压和温度作为辅助条件,通过终端来完成电量换算。该方法需要事先获得待测电池的容量,根据手机换算检测的电量与待测电池的容量之间的比值即可得到电池当前电量的百分比。现有技术存在以下不足:一是在开机时一般通过电压来判断电池的电量,误差较大,尤其在低电压充电时虚电较多,误差更大;二是只能检测指定容量的电池,无法检测未知容量的电池,现有电池容量检测方法的通用性较差。At present, the terminal battery capacity detection generally adopts the following method: detecting the current flowing in and out of the battery, and using the battery voltage and temperature as auxiliary conditions, and completing the power conversion through the terminal. The method needs to obtain the capacity of the battery to be tested in advance, and the percentage of the current battery power can be obtained according to the ratio between the power detected by the mobile phone conversion and the capacity of the battery to be tested. The prior art has the following deficiencies: First, the power of the battery is generally judged by the voltage at the time of starting up, and the error is large, especially when the low voltage is charged, the virtual power is more, and the error is larger; the second is that only the battery of the specified capacity can be detected. Unable to detect batteries of unknown capacity, the versatility of existing battery capacity detection methods is poor.
发明内容Summary of the invention
本发明的主要目的在于解决现有电池电量检测方法误差较大,且通用性较差的技术问题。The main object of the present invention is to solve the technical problem that the existing battery power detecting method has large error and poor versatility.
为了实现上述目的,本发明提供一种电池电量检测方法,所述电池电量检测方法包括以下步骤:获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;在预设的时间间隔之后,根据所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;根据当前计算的第二电量值确定电池的电量指示值。In order to achieve the above object, the present invention provides a battery power detecting method, the battery power detecting method comprising the steps of: acquiring a first power value of a battery, and determining a battery current value and a second power value according to the first power value; After the preset time interval, recalculating the first power value according to the preset time interval, and the determined battery current value and the second power value; re-determining the first power value according to the current calculation a battery current value and a second power value; determining a battery power indicator value according to the currently calculated second power value.
优选地,所述根据当前计算的第二电量值确定电池的电量指示值的步骤之后还包括:判断是否接收到终止指令,若否,则继续依次循环执行所述重新计算第一电量值的步骤及其之后的步骤,直至接收到终止指令。Preferably, the step of determining the power indicator value of the battery according to the currently calculated second power value further comprises: determining whether a termination instruction is received, and if not, continuing to sequentially perform the step of recalculating the first power value And subsequent steps until a termination command is received.
优选地,所述根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值的步骤包括:根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值;获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。 Preferably, the step of re-determining the battery current value and the second power value according to the currently calculated first power value comprises: mapping according to a preset battery power value, an open circuit voltage value, and an internal resistance value Determining a first open circuit voltage value and an internal resistance value corresponding to the currently calculated first power value; acquiring a closed circuit voltage value of the battery, according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and internal resistance Recalculating the battery current value and calculating a second open circuit voltage value; determining a second corresponding to the second open circuit voltage value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value Electricity value.
优选地,所述根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值的步骤包括:根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值;基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。Preferably, the step of recalculating the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value, and calculating the second open circuit voltage value comprises: according to the closed circuit voltage And recalculating the battery current value according to the currently calculated first open circuit voltage value and the internal resistance value; and using the closed circuit voltage based on a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value The value is used as the open circuit voltage value to determine a corresponding internal resistance value in the mapping relationship, to re-determine the current internal resistance value of the battery, and calculate the second according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value. Open circuit voltage value.
优选地,所述根据当前计算的第二电量值确定电池的电量指示值的步骤包括:判断电池处于充电状态或放电状态;当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值。Preferably, the step of determining the power indicator value of the battery according to the currently calculated second power value comprises: determining that the battery is in a charging state or a discharging state; when the battery is in a charging state, and when the recalculating second power value When the current power indicator value of the battery is greater than the current power indicator value, the first preset value is increased; when the battery is in the discharging state, and when the recalculated second power value is less than the battery current indicator When the value is used, the current preset value is decreased by a second preset value.
优选地,所述电池电量检测方法还包括以下步骤:当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。Preferably, the battery power detecting method further includes the following steps: when the battery is in a charging state, and the current second power value is less than the preset power value, calculating the battery according to the preset time interval and the battery current value corresponding to the time interval. The battery charge value is charged in the time interval, and the battery charge value is charged in each time interval until the battery is full, and the battery capacity value is updated according to the accumulated charge battery charge value.
此外,为了实现上述目的,本实用新型还提供一种电池电量检测系统,所述电池电量检测系统包括:第一计算模块,设置为获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;第二计算模块,设置为在预设的时间间隔之后,根据所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;所述第一计算模块还设置为根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;确定模块,设置为根据当前计算的第二电量值确定电池的电量指示值。In addition, in order to achieve the above object, the present invention further provides a battery power detecting system, the battery power detecting system comprising: a first calculating module, configured to acquire a first power value of the battery, and determine according to the first power value a battery current value and a second power value; the second calculating module is configured to recalculate the first time according to the preset time interval, and the determined battery current value and the second power value after a preset time interval The first calculation module is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value; and the determining module is configured to determine the battery according to the currently calculated second power value. Battery indicator value.
优选地,所述电池电量检测系统还包括:循环控制模块,设置为判断是否接收到终止指令,若否,则控制所述第一计算模块、第二计算模块和确定模块工作。Preferably, the battery power detecting system further comprises: a loop control module configured to determine whether a termination command is received, and if not, controlling the first computing module, the second computing module, and the determining module to operate.
优选地,所述第一计算模块包括:第一计算单元,设置为根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值;第二计算单元,设置为获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;第三计算单元,设置为根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。 Preferably, the first calculating module includes: a first calculating unit configured to determine, according to a preset mapping relationship between a battery power value, an open circuit voltage value, and an internal resistance value, a current calculated first power value a first open circuit voltage value and an internal resistance value; the second calculating unit is configured to obtain a closed circuit voltage value of the battery, and recalculate the method according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value a battery current value, and calculating a second open circuit voltage value; the third calculating unit is configured to determine, according to a preset mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, the second open circuit voltage value The second amount of electricity.
优选地,所述确定模块包括:判断单元,设置为判断电池处于充电状态或放电状态;第一调整单元,设置为当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;第二调整单元,设置为当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值。Preferably, the determining module includes: a determining unit configured to determine that the battery is in a charging state or a discharging state; the first adjusting unit is configured to when the battery is in a charging state, and when the recalculated second power value is greater than When the current power indicator value of the battery is described, the current power indicator value is increased by a first preset value; the second adjusting unit is set to when the battery is in a discharging state, and when the recalculated second power value is less than the When the current battery indicator value is used, the current battery indicator value is decreased by a second preset value.
优选地,所述电池电量检测系统还包括容量更新模块,所述容量更新模块设置为当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。Preferably, the battery power detecting system further includes a capacity update module, the capacity update module is configured to: when the battery is in a charging state, and the current second power value is less than the preset power value, according to the preset time interval and the time The battery current value corresponding to the interval calculates the power value charged in the battery during the time interval, and accumulates the power value of the battery in each time interval after the accumulation, until the battery is full, and is updated according to the accumulated charge value of the battery The capacity value of the battery.
此外,为了实现上述目的,本实用新型还提供一种电池,所述电池包括电池电量检测系统,所述电池电量检测系统包括:第一计算模块,设置为获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;第二计算模块,设置为在预设的时间间隔之后,基于所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;所述第一计算模块还设置为根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;确定模块,设置为根据当前计算的第二电量值确定电池的电量指示值。In addition, in order to achieve the above object, the present invention further provides a battery, the battery includes a battery power detecting system, and the battery power detecting system includes: a first calculating module, configured to acquire a first power value of the battery, according to the The first power value determines a battery current value and a second power value; the second calculating module is configured to, after the preset time interval, based on the preset time interval, and the determined battery current value and the second power value Recalculating the first power value; the first calculating module is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value; the determining module is set to be based on the current calculation The second battery value determines the battery power indicator value.
本实施例提出的电池电量检测方法,在预设的时间间隔之后,基于预设的时间间隔,以及上一时刻的电池电流值和第二电量值重新计算第一电量值,并根据当前计算得到的第一电量值重新确定电池电流值和第二电量值,最后根据当前计算的第二电量值确定电池的电量指示值,从而提高了电池电量检测的准确性,在电池容量未知的情况下,也能进行电池电量检测,通用性较高。The battery power detecting method of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation. The first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
附图说明DRAWINGS
图1为本发明电池电量检测方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a battery power detecting method according to the present invention;
图2为图1中步骤S10一实施例的细化流程示意图;2 is a schematic diagram showing the refinement process of an embodiment of step S10 in FIG. 1;
图3为图2中步骤S12一实施例的细化流程示意图;3 is a schematic diagram showing the refinement process of an embodiment of step S12 in FIG. 2;
图4为图1中步骤S30一实施例的细化流程示意图;4 is a schematic flow chart of an embodiment of step S30 in FIG. 1;
图5为图4中步骤S32一实施例的细化流程示意图; FIG. 5 is a schematic diagram showing the refinement process of an embodiment of step S32 in FIG. 4;
图6为图4中步骤S40一实施例的细化流程示意图;6 is a schematic diagram of a refinement process of an embodiment of step S40 in FIG. 4;
图7为本发明电池电量检测方法第二实施例的流程示意图;7 is a schematic flow chart of a second embodiment of a battery power detecting method according to the present invention;
图8为本发明电池电量检测系统第一实施例的功能模块示意图;8 is a schematic diagram of functional modules of a first embodiment of a battery power detecting system according to the present invention;
图9为图8中第一计算模块一实施例的细化功能模块示意图;9 is a schematic diagram of a refinement function module of an embodiment of the first computing module of FIG. 8;
图10为图9中第二计算单元一实施例的细化功能模块示意图;10 is a schematic diagram of a refinement function module of an embodiment of the second computing unit of FIG. 9;
图11为图8中确定模块一实施例的细化功能模块示意图;11 is a schematic diagram of a refinement function module of an embodiment of the determining module of FIG. 8;
图12为本发明电池电量检测系统第二实施例的功能模块示意图;12 is a schematic diagram of functional modules of a second embodiment of a battery power detecting system according to the present invention;
图13为本发明电池电量检测系统第三实施例的功能模块示意图。FIG. 13 is a schematic diagram of functional modules of a third embodiment of a battery power detecting system according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种电池电量检测方法。The invention provides a battery power detecting method.
参照图1,图1为本发明电池电量检测方法第一实施例的流程示意图。1 is a schematic flow chart of a first embodiment of a battery power detecting method according to the present invention.
在一实施例中,该电池电量检测方法包括:In an embodiment, the battery power detecting method includes:
步骤S10,获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;Step S10, obtaining a first power value of the battery, and determining a battery current value and a second power value according to the first power value;
在本实施例中,电池出厂时一般预充一定的电量,出厂前可以将预存的电量值预存在电池中,上述第一电量值可以为预存的电量值。此外,第一电量值也可以为电池当前实际的剩余电量值,电池当前剩余电量值可以根据下述实施方式计算。In this embodiment, the battery is generally pre-charged with a certain amount of power when leaving the factory, and the pre-stored power value may be pre-stored in the battery before leaving the factory, and the first power value may be a pre-stored power value. In addition, the first power value may also be the current actual remaining power value of the battery, and the current battery remaining power value may be calculated according to the following embodiment.
具体地,为了提高电池电量检测的准确性,参照图2,图2为图1中步骤S10一实施例的细化流程示意图,在本实施例中,步骤S10包括:Specifically, in order to improve the accuracy of the battery power detection, reference is made to FIG. 2, which is a schematic flowchart of the refinement of the embodiment of step S10 in FIG. 1. In this embodiment, step S10 includes:
步骤S11,获取电池的第一电量值,基于预设的电池电量值、开路电压值和内阻值之间的映射关系,确定获取到的第一电量值所对应的第一开路电压值和内阻值。 Step S11: Obtain a first power value of the battery, and determine, according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the first open circuit voltage value corresponding to the obtained first power value and the internal value. Resistance value.
电池电量值、开路电压值和内阻值之间具有一定的联系,可以预先建立关于电池电量值、开路电压值和内阻值之间的映射关系,例如函数或对应关系表格等。由于温度也对电池电量值、开路电压值和内阻值之间的映射关系具有一定影响,因此,本实施例中,首先建立一关于温度、电池电量值、开路电压值和内阻值之间的对应关系表。例如,可以分别创建-10度、0度、25度和50度时电池电量值、开路电压值和内阻值之间的对应关系表。通过在不同的温度下分别将电池充满后,按照一定的电流放电(如0.2C),每放2%的电量后将电池搁置一段时间(例如5分钟),然后记录电池当前的开路电压和内阻。上述映射关系(例如对应关系表)在电池出厂前预存至电池中即可。在上述对应关系表中,电池电量值可以为电池的剩余电量值,优选地,本实施例中,对应关系表中的电池电量值为电池剩余电量值与电池容量之间的比值,以下所述第一电量值、第二电量值以及剩余电量值均表示为百分比值。There is a certain relationship between the battery power value, the open circuit voltage value and the internal resistance value, and a mapping relationship between the battery power value, the open circuit voltage value and the internal resistance value, such as a function or a correspondence table, may be established in advance. Since the temperature also has a certain influence on the mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, in this embodiment, first, a temperature, a battery power value, an open circuit voltage value, and an internal resistance value are established. Correspondence table. For example, a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at -10 degrees, 0 degrees, 25 degrees, and 50 degrees can be created separately. After fully charging the battery at different temperatures, discharge according to a certain current (such as 0.2C), leave the battery for a period of time (for example, 5 minutes) after each 2% charge, and then record the current open circuit voltage and internal battery. Resistance. The above mapping relationship (for example, the correspondence table) may be stored in the battery before the battery is shipped from the factory. In the above correspondence table, the battery power value may be the remaining power value of the battery. Preferably, in this embodiment, the battery power value in the correspondence table is a ratio between the battery remaining power value and the battery capacity, as described below. The first power value, the second power value, and the remaining power value are all expressed as a percentage value.
当使用电池时,首先根据当前温度在上述对应关系表中选择两个相近的温度所对应的表格做线性插值,制作当前温度下电池电量值、开路电压值和内阻值之间的对应关系表。例如,若当前温度为15度,则选取0度和25度所对应的对应关系表,对这两个对应关系表进行线性插值计算,获得15度所对应的对应关系表。When the battery is used, firstly, according to the current temperature, a table corresponding to two similar temperatures is selected in the above correspondence table for linear interpolation, and a correspondence table between the battery power value, the open circuit voltage value and the internal resistance value at the current temperature is prepared. . For example, if the current temperature is 15 degrees, the correspondence table corresponding to 0 degrees and 25 degrees is selected, and the two correspondence tables are linearly interpolated to obtain a correspondence table corresponding to 15 degrees.
首先获取电池的闭路电压CV,第一电量值设为Q1,在上述对应关系表中,根据第一电量值Q1查表获得电池的第一开路电压值OCV1和内阻值R1。First, the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1. In the above correspondence table, the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
步骤S12,获取电池的闭路电压值,根据所述闭路电压值,以及所述确定的第一开路电压值和内阻值计算电池电流值,并计算第二开路电压值;Step S12, acquiring a closed circuit voltage value of the battery, calculating a battery current value according to the closed circuit voltage value, the determined first open circuit voltage value and the internal resistance value, and calculating a second open circuit voltage value;
具体地,为了提高电池电量检测的准确性,参照图3,图3为图2中步骤S12一实施例的细化流程示意图,在本实施例中,步骤S12包括:Specifically, in order to improve the accuracy of the battery power detection, reference is made to FIG. 3, which is a schematic flowchart of the refinement of the embodiment of step S12 in FIG. 2. In this embodiment, step S12 includes:
步骤S121,根据所述闭路电压值,以及所述确定的第一开路电压值和内阻值计算电池电流值。Step S121, calculating a battery current value according to the closed circuit voltage value and the determined first open circuit voltage value and internal resistance value.
根据以下公式计算电池电流值I:Calculate the battery current value I according to the following formula:
Figure PCTCN2014086661-appb-000001
Figure PCTCN2014086661-appb-000001
步骤S122,基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。 Step S122, determining a corresponding internal resistance value in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value to determine a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value. The current internal resistance value of the battery is calculated according to the closed circuit voltage value, and the currently calculated battery current value and internal resistance value.
由于在对于关系表中,电池开路电压的大小对电池内阻的影响较小,因此可以闭路电压作为开路电压在上述对应关系表中进行查询,获得对应的电池内阻值,闭路电压和开路电压差距较小,在对于关系表中所对应的内阻值的差距也较小,因此以实际测得的闭路电压查询电池的内阻值比较准确。设重新确定的电池内阻值为R2,因此可以得到电池的第二开路电压OCV2为:Since the influence of the open circuit voltage on the internal resistance of the battery is small in the relation table, the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage. The difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage. Let the re-determined battery internal resistance be R2, so the second open circuit voltage OCV2 of the battery can be obtained as:
OCV2=CV+I·R2OCV2=CV+I·R2
步骤S13,基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。Step S13: Determine a second power value corresponding to the second open circuit voltage value based on a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
本实施例中,基于上述对应关系表,确定第二开路电压OCV2对应的第二电量值Q2。In this embodiment, based on the correspondence table, the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
步骤S20,在预设的时间间隔之后,根据所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;Step S20, after the preset time interval, recalculate the first power value according to the preset time interval, and the determined battery current value and the second power value;
本实施例中,预设的时间间隔可以根据实际需要进行设置。为了保证电量检测的准确性,预设的时间间隔不宜过大,例如,本实施例中,预设的时间间隔可以取为10秒。在其他实施例中,预设的时间间隔也可以为5秒、15秒或20秒等,具体可以根据实际需要进行设置。In this embodiment, the preset time interval may be set according to actual needs. In order to ensure the accuracy of the power detection, the preset time interval should not be too large. For example, in this embodiment, the preset time interval may be taken as 10 seconds. In other embodiments, the preset time interval may also be 5 seconds, 15 seconds, or 20 seconds, etc., and may be set according to actual needs.
本实施例中,在预设的时间间隔的起始时刻,电池的电量值为上述第二电量值,且电池的输入或输出电流为上述电池电流值;在预设的时间间隔之后,由于电池处于充电或放电状态,电量发生变化,可以假设在预设的时间间隔内电池电流值不变,因此可以粗略的估计电池的当前电量(即为第一电量)为:In this embodiment, at the beginning of the preset time interval, the battery power value is the second power value, and the input or output current of the battery is the battery current value; after the preset time interval, due to the battery In the state of charging or discharging, the power changes, it can be assumed that the battery current value does not change within the preset time interval, so the current battery capacity (ie, the first power) can be roughly estimated as:
Q1=Q2+I·△tQ1=Q2+I·△t
其中,△t为预设的时间间隔。Where Δt is a preset time interval.
应当说明的是,由于在本实施例中,第一电量值和第二电量值均表示为百分比值,因此上述I·△t实际也为一百分比值,即为I·△t与电池容量之间的比值。因此,需要在电池中预存一电池容量值。It should be noted that, in the present embodiment, the first electric quantity value and the second electric quantity value are both expressed as a percentage value, so the above I·Δt is actually a percentage value, that is, I·Δt and battery capacity. The ratio between the two. Therefore, it is necessary to pre-store a battery capacity value in the battery.
步骤S30,根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值; Step S30, re-determining the battery current value and the second power value according to the currently calculated first power value;
由于当前计算得到的第一电量值只是电池当前剩余电量值的粗略估计,为了获得更准确的电池当前剩余电量值,需要通过一系列的计算,最终获得更加准确的当前剩余电量值,即为上述第二电量值。Since the current calculated first power value is only a rough estimate of the current remaining battery value of the battery, in order to obtain a more accurate battery current remaining power value, a series of calculations are needed to finally obtain a more accurate current remaining power value, which is The second amount of electricity.
具体地,为了提高电池电量检测的准确性,参照图4,图4为图1中步骤S30一实施例的细化流程示意图,在本实施例中,步骤S30包括:Specifically, in order to improve the accuracy of the battery power detection, reference is made to FIG. 4, which is a schematic flowchart of the refinement of the embodiment of step S30 in FIG. 1. In this embodiment, step S30 includes:
步骤S31,根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值;Step S31, determining a first open circuit voltage value and an internal resistance value corresponding to the currently calculated first power value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value;
根据上述实施例,可以预先建立关于温度、电池电量值、开路电压值和内阻值之间的对应关系表,当使用电池时,首先根据当前温度在上述对应关系表中选择两个相近的温度所对应的表格做线性插值,制作当前温度下电池电量值、开路电压值和内阻值之间的对应关系表。According to the above embodiment, a correspondence table between the temperature, the battery power value, the open circuit voltage value, and the internal resistance value may be established in advance. When the battery is used, firstly, two similar temperatures are selected in the correspondence table according to the current temperature. The corresponding table is linearly interpolated, and a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at the current temperature is prepared.
首先获取电池的闭路电压CV,第一电量值设为Q1,在上述对应关系表中,根据第一电量值Q1查表获得电池的第一开路电压值OCV1和内阻值R1。First, the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1. In the above correspondence table, the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
步骤S32,获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;Step S32, obtaining a closed circuit voltage value of the battery, recalculating the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculating a second open circuit voltage value;
具体地,为了提高电池电量检测的准确性,参照图5,图5为图4中步骤S32一实施例的细化流程示意图,在本实施例中,步骤S32包括:Specifically, in order to improve the accuracy of the battery power detection, referring to FIG. 5, FIG. 5 is a schematic diagram of the refinement process of an embodiment of step S32 in FIG. 4. In this embodiment, step S32 includes:
步骤S321,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值;Step S321, recalculating the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and the internal resistance value;
根据以下公式计算电池电流值I:Calculate the battery current value I according to the following formula:
Figure PCTCN2014086661-appb-000002
Figure PCTCN2014086661-appb-000002
步骤S322,基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。Step S322, determining a corresponding internal resistance value in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value based on a preset mapping relationship between a battery power value, an open circuit voltage value, and an internal resistance value, to determine The current internal resistance value of the battery is calculated according to the closed circuit voltage value, and the currently calculated battery current value and internal resistance value.
由于在对于关系表中,电池开路电压的大小对电池内阻的影响较小,因此可以闭路电压作为开路电压在上述对应关系表中进行查询,获得对应的电池内阻值,闭路电 压和开路电压差距较小,在对于关系表中所对应的内阻值的差距也较小,因此以实际测得的闭路电压查询电池的内阻值比较准确。设重新确定的电池内阻值为R2,因此可以得到电池的第二开路电压OCV2为:Since the influence of the open circuit voltage on the internal resistance of the battery is small in the relation table, the closed circuit voltage can be used as the open circuit voltage in the above correspondence table to obtain the corresponding internal resistance value of the battery, and the closed circuit power The voltage difference between the voltage and the open circuit is small, and the difference of the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery by the actually measured closed circuit voltage. Let the re-determined battery internal resistance be R2, so the second open circuit voltage OCV2 of the battery can be obtained as:
OCV2=CV+I·R2OCV2=CV+I·R2
步骤S33,根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。Step S33, determining a second power value corresponding to the second open circuit voltage value according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
本实施例中,基于上述对应关系表,确定第二开路电压OCV2对应的第二电量值Q2。In this embodiment, based on the correspondence table, the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
步骤S40,根据当前计算的第二电量值确定电池的电量指示值。Step S40, determining a battery power indicator value according to the currently calculated second power value.
本实施例中,可以直接将电量指示值修改为当前计算的第二电量值。电池应用于终端(如手机、平板等)时,可以直接将第二电量值发送至终端,以供终端显示,也可以将修改后的电量指示值发送至终端,以供终端显示。In this embodiment, the power indicator value can be directly modified to the currently calculated second power value. When the battery is applied to a terminal (such as a mobile phone or a tablet), the second power value may be directly sent to the terminal for display by the terminal, or the modified power indicator value may be sent to the terminal for display by the terminal.
具体地,为了提高用户体验度,以及为了提高电池的电量指示值的准确性,参照图6,图6为图4中步骤S40一实施例的细化流程示意图,在本实施例中,步骤S40包括:Specifically, in order to improve the user experience, and to improve the accuracy of the battery power indicator value, reference is made to FIG. 6 , which is a schematic flowchart of the refinement process of the step S40 in FIG. 4 . In this embodiment, step S40 is performed. include:
步骤S41,判断电池处于充电状态或放电状态;本实施例中,可以根据上述电池电流值来判断电池处于充电状态还是处于放电状态,当电池电流值大于零时,则电池处于充电状态;当电池电流值小于零时,则电池处于放电状态。In step S41, it is determined that the battery is in a charging state or a discharging state; in this embodiment, whether the battery is in a charging state or a discharging state can be determined according to the battery current value, and when the battery current value is greater than zero, the battery is in a charging state; When the current value is less than zero, the battery is in a discharged state.
步骤S42,当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;Step S42, when the battery is in the charging state, and when the recalculated second power value is greater than the current power indicator value of the battery, adding a first preset value to the current power indicator value;
步骤S43,当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值。Step S43, when the battery is in a discharged state, and when the recalculated second power value is less than the current power indicator value of the battery, the current power indicator value is decreased by a second preset value.
本实施例中,步骤S41、S42和S43可以每隔一预设时间执行一次,本实施例中,每隔一分钟判断一次电量指示值是否要根据当前第二电量值发生变化,也就是说,每隔一分钟更新一次电量指示值。由于在一分钟之内电池电量变化较小,因此在本实施例中,第一预设数值和第二预设数值均设置为一,应当说明的是,在其他实施例中,也可以设置为其他数值。 In this embodiment, the steps S41, S42, and S43 can be performed once every other preset time. In this embodiment, it is determined whether the power indicator value changes according to the current second power value every other minute, that is, The battery indicator value is updated every minute. In this embodiment, the first preset value and the second preset value are both set to one. It should be noted that, in other embodiments, it may also be set to Other values.
本实施例提出的电池电量检测方法,在预设的时间间隔之后,基于预设的时间间隔,以及上一时刻的电池电流值和第二电量值重新计算第一电量值,并根据当前计算得到的第一电量值重新确定电池电流值和第二电量值,最后根据当前计算的第二电量值确定电池的电量指示值,从而提高了电池电量检测的准确性,在电池容量未知的情况下,也能进行电池电量检测,通用性较高。The battery power detecting method of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation. The first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
进一步地,为了提高电池电量检测的准确性,参照图7,图7为本发明电池电量检测方法第二实施例的流程示意图,在本实施例中,所述步骤S40之后还包括:Further, in order to improve the accuracy of the battery power detection, referring to FIG. 7, FIG. 7 is a schematic flowchart of the second embodiment of the battery power detecting method according to the present invention. In this embodiment, after the step S40, the method further includes:
步骤S50,判断是否接收到终止指令,若否,则继续依次循环执行步骤S20,S30和S40,直至接收到终止指令。In step S50, it is judged whether or not the termination instruction is received, and if not, the steps S20, S30 and S40 are continuously executed in sequence until the termination instruction is received.
本实施例中,当电池电量耗尽时,可以视为收到终止指令,或者终端发送给电池一终止信号,也可以视为终止指令。当没有收到终止指令时,则步骤S20、S30、S40和S50持续循环执行。也就是说,每隔预设的时间间隔后,都要基于预设的时间间隔,以及上一时刻确定的电池电流值和第二电量值计算当前时刻的第一电量值,然后再根据当前时刻的第一电量值确定当前时刻的电池电流值和第二电量值,最后根据确定的当前时刻的第二电量值来确定电池的电量指示值,当判断没有收到终止指令时,则继续执行上述步骤。In this embodiment, when the battery is exhausted, it can be regarded as receiving the termination command, or the terminal sends a termination signal to the battery, which can also be regarded as a termination instruction. When the termination instruction is not received, steps S20, S30, S40, and S50 continue to be executed cyclically. That is to say, after every preset time interval, the first power value at the current time is calculated based on the preset time interval and the battery current value and the second power value determined at the previous time, and then according to the current time. The first electric quantity value determines the current battery current value and the second electric quantity value, and finally determines the battery electric quantity indication value according to the determined second electric quantity value of the current time, and when it is judged that the termination instruction is not received, continues to execute the above step.
进一步地,由于随着电池的长时间使用会逐渐老化,电池容量会衰减,为了提高电池电量检测的准确性,电池容量需要不断地进行校准,可以通过检测一次完整的充电过程所充入电池的电量来校准电池容量,在本实施例中,所述电池电量检测方法还包括以下步骤:Further, since the battery age is attenuated as the battery is aged for a long time, in order to improve the accuracy of the battery power detection, the battery capacity needs to be continuously calibrated, and the battery can be charged by detecting a complete charging process. In the embodiment, the battery power detecting method further includes the following steps:
当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。When the battery is in the charging state, and the current second power value is less than the preset power value, the battery charging value is calculated according to the preset time interval and the battery current value corresponding to the time interval, and is accumulated after each time. The battery charge value is charged in the time interval until the battery is full, and the capacity value of the battery is updated according to the accumulated charge value of the battery.
本实施例中,预设电量值设为10%。在其他实施例中,预设电量值也可以为5%或8%等,具体可以根据实际需要进行设置。当电池开始充电时,电池将检测当前第二电量值是否小于预设电量值,在本实施例中,设当前第二电量值为6%,因此小于预设电量值10%,则电池开始累计计算该时刻之后、电池充满之前的每个时间间隔内充入电池的电量值,由于电池在该时间段内,电量由6%增加至100%,即电池电量增加了94%,因此电池容量值为累计充入电池的电量值除以94%。更新后的电池容量值可用于上述步骤S20中,即用来计算当前第一电量值。优选地,在本实施例中,电池每次 开始充电时,都检测当前第二电量值是否小于预设电量值,并当当前第二电量值小于预设电量值时更新电池容量值。In this embodiment, the preset power amount is set to 10%. In other embodiments, the preset power value may also be 5% or 8%, etc., and may be set according to actual needs. When the battery starts to be charged, the battery will detect whether the current second power value is less than the preset power value. In this embodiment, if the current second power value is 6%, and thus the preset power value is less than 10%, the battery starts to accumulate. Calculate the value of the battery charge in each time interval after the time and before the battery is fully charged. Since the battery increases from 6% to 100% during this time period, that is, the battery power increases by 94%, so the battery capacity value The accumulated charge value of the battery is divided by 94%. The updated battery capacity value can be used in the above step S20, that is, to calculate the current first power value. Preferably, in this embodiment, the battery each time When charging is started, it is detected whether the current second power value is less than the preset power value, and the battery capacity value is updated when the current second power value is less than the preset power value.
本发明进一步提供一种电池电量检测系统。The invention further provides a battery power detecting system.
参照图8,图8为本发明电池电量检测系统第一实施例的功能模块示意图。Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a first embodiment of a battery power detecting system according to the present invention.
需要强调的是,对本领域的技术人员来说,图8所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图8所示的电池电量检测系统的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该电池电量检测系统的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。It should be emphasized that, for those skilled in the art, the functional block diagram shown in FIG. 8 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art will surround the functional modules of the battery power detecting system shown in FIG. The new function modules can be easily supplemented; the names of the function modules are custom names, which are only used to assist in understanding the various program function blocks of the battery power detecting system, and are not used to limit the technical solutions of the present invention. The core is the function that each functional module of the defined name has to achieve.
在一实施例中,该电池电量检测系统包括:In an embodiment, the battery charge detection system comprises:
第一计算模块10,设置为获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;The first calculating module 10 is configured to acquire a first power value of the battery, and determine a battery current value and a second power value according to the first power value;
在本实施例中,电池出厂时一般预充一定的电量,出厂前可以将预存的电量值预存在电池中,上述第一电量值可以为预存的电量值。此外,第一电量值也可以为电池当前实际的剩余电量值,电池当前剩余电量值可以根据下述实施方式计算。In this embodiment, the battery is generally pre-charged with a certain amount of power when leaving the factory, and the pre-stored power value may be pre-stored in the battery before leaving the factory, and the first power value may be a pre-stored power value. In addition, the first power value may also be the current actual remaining power value of the battery, and the current battery remaining power value may be calculated according to the following embodiment.
具体地,为了提高电池电量检测的准确性,参照图9,图9为图8中第一计算模块一实施例的细化功能模块示意图。在本实施例中,第一计算模块10包括:Specifically, in order to improve the accuracy of battery power detection, reference is made to FIG. 9, which is a schematic diagram of a refinement function module of an embodiment of the first computing module of FIG. In this embodiment, the first computing module 10 includes:
第一计算单元11,设置为获取电池的第一电量值,根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定获取到的第一电量值所对应的第一开路电压值和内阻值。The first calculating unit 11 is configured to acquire a first power value of the battery, and determine, according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the first corresponding to the obtained first power value. Open circuit voltage value and internal resistance value.
电池电量值、开路电压值和内阻值之间具有一定的联系,可以预先建立关于电池电量值、开路电压值和内阻值之间的映射关系,例如函数或对应关系表格等。由于温度也对电池电量值、开路电压值和内阻值之间的映射关系具有一定影响,因此,本实施例中,首先建立一关于温度、电池电量值、开路电压值和内阻值之间的对应关系表。例如,可以分别创建-10度、0度、25度和50度时电池电量值、开路电压值和内阻值之间的对应关系表。通过在不同的温度下分别将电池充满后,按照一定的电流放电(如0.2C),每放2%的电量后将电池搁置一段时间(例如5分钟),然后记录电池当前的开路电压和内阻。上述映射关系(例如对应关系表)在电池出厂前预存至电池中即可。在上述对应关系表中,电池电量值可以为电池的剩余电量值,优选地,本实施例中, 对应关系表中的电池电量值为电池剩余电量值与电池容量之间的比值,以下所述第一电量值、第二电量值以及剩余电量值均表示为百分比值。There is a certain relationship between the battery power value, the open circuit voltage value and the internal resistance value, and a mapping relationship between the battery power value, the open circuit voltage value and the internal resistance value, such as a function or a correspondence table, may be established in advance. Since the temperature also has a certain influence on the mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, in this embodiment, first, a temperature, a battery power value, an open circuit voltage value, and an internal resistance value are established. Correspondence table. For example, a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at -10 degrees, 0 degrees, 25 degrees, and 50 degrees can be created separately. After fully charging the battery at different temperatures, discharge according to a certain current (such as 0.2C), leave the battery for a period of time (for example, 5 minutes) after each 2% charge, and then record the current open circuit voltage and internal battery. Resistance. The above mapping relationship (for example, the correspondence table) may be stored in the battery before the battery is shipped from the factory. In the above correspondence table, the battery power value may be the remaining power value of the battery, preferably, in this embodiment, The battery power value in the correspondence table is a ratio between the battery remaining power value and the battery capacity, and the first power value, the second power value, and the remaining power value are all expressed as percentage values.
当使用电池时,首先根据当前温度在上述对应关系表中选择两个相近的温度所对应的表格做线性插值,制作当前温度下电池电量值、开路电压值和内阻值之间的对应关系表。例如,若当前温度为15度,则选取0度和25度所对应的对应关系表,对这两个对应关系表进行线性插值计算,获得15度所对应的对应关系表。When the battery is used, firstly, according to the current temperature, a table corresponding to two similar temperatures is selected in the above correspondence table for linear interpolation, and a correspondence table between the battery power value, the open circuit voltage value and the internal resistance value at the current temperature is prepared. . For example, if the current temperature is 15 degrees, the correspondence table corresponding to 0 degrees and 25 degrees is selected, and the two correspondence tables are linearly interpolated to obtain a correspondence table corresponding to 15 degrees.
首先获取电池的闭路电压CV,第一电量值设为Q1,在上述对应关系表中,根据第一电量值Q1查表获得电池的第一开路电压值OCV1和内阻值R1。First, the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1. In the above correspondence table, the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
第二计算单元12,设置为获取电池的闭路电压值,根据所述闭路电压值,以及所述确定的第一开路电压值和内阻值计算电池电流值,并计算第二开路电压值;The second calculating unit 12 is configured to acquire a closed circuit voltage value of the battery, calculate a battery current value according to the closed circuit voltage value, and the determined first open circuit voltage value and the internal resistance value, and calculate a second open circuit voltage value;
具体地,为了提高电池电量检测的准确性,参照图10,图10为图9中第二计算单元一实施例的细化功能模块示意图,在本实施例中,第二计算单元12包括:Specifically, in order to improve the accuracy of the battery power detection, reference is made to FIG. 10, which is a schematic diagram of the refinement function module of the second computing unit in FIG. 9. In this embodiment, the second computing unit 12 includes:
第一计算子单元121,设置为根据所述闭路电压值,以及所述确定的第一开路电压值和内阻值计算电池电流值。The first calculating subunit 121 is configured to calculate a battery current value according to the closed circuit voltage value and the determined first open circuit voltage value and internal resistance value.
根据以下公式计算电池电流值I:Calculate the battery current value I according to the following formula:
Figure PCTCN2014086661-appb-000003
Figure PCTCN2014086661-appb-000003
第二计算子单元122,设置为基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。The second calculating sub-unit 122 is configured to determine, according to the mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value, the closed circuit voltage value as the open circuit voltage value in the mapping relationship The resistance value is used to re-determine the current internal resistance value of the battery, and the second open circuit voltage value is calculated according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value.
由于在对于关系表中,电池开路电压的大小对电池内阻的影响较小,因此可以闭路电压作为开路电压在上述对应关系表中进行查询,获得对应的电池内阻值,闭路电压和开路电压差距较小,在对于关系表中所对应的内阻值的差距也较小,因此以实际测得的闭路电压查询电池的内阻值比较准确。设重新确定的电池内阻值为R2,因此可以得到电池的第二开路电压OCV2为:Since the influence of the open circuit voltage on the internal resistance of the battery is small in the relation table, the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage. The difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage. Let the re-determined battery internal resistance be R2, so the second open circuit voltage OCV2 of the battery can be obtained as:
OCV2=CV+I·R2 OCV2=CV+I·R2
第三计算单元13,设置为基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。The third calculating unit 13 is configured to determine a second power value corresponding to the second open circuit voltage value based on a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
本实施例中,基于上述对应关系表,确定第二开路电压OCV2对应的第二电量值Q2。In this embodiment, based on the correspondence table, the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
第二计算模块20,设置为在预设的时间间隔之后,基于所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;The second calculating module 20 is configured to, after a preset time interval, recalculate the first power value based on the preset time interval, and the determined battery current value and the second power value;
本实施例中,预设的时间间隔可以根据实际需要进行设置。为了保证电量检测的准确性,预设的时间间隔不宜过大,例如,本实施例中,预设的时间间隔可以取为10秒。在其他实施例中,预设的时间间隔也可以为5秒、15秒或20等,具体可以根据实际需要进行设置。In this embodiment, the preset time interval may be set according to actual needs. In order to ensure the accuracy of the power detection, the preset time interval should not be too large. For example, in this embodiment, the preset time interval may be taken as 10 seconds. In other embodiments, the preset time interval may also be 5 seconds, 15 seconds, or 20, etc., and may be set according to actual needs.
本实施例中,在预设的时间间隔的起始时刻,电池的电量值为上述第二电量值,且电池的输入或输出电流为上述电池电流值;在预设的时间间隔之后,由于电池处于充电或放电状态,电量发生变化,可以假设在预设的时间间隔内电池电流值不变,因此可以粗略的估计电池的当前电量(即为第一电量)为:In this embodiment, at the beginning of the preset time interval, the battery power value is the second power value, and the input or output current of the battery is the battery current value; after the preset time interval, due to the battery In the state of charging or discharging, the power changes, it can be assumed that the battery current value does not change within the preset time interval, so the current battery capacity (ie, the first power) can be roughly estimated as:
Q1=Q2+I·△tQ1=Q2+I·△t
其中,△t为预设的时间间隔。Where Δt is a preset time interval.
应当说明的是,由于在本实施例中,第一电量值和第二电量值均表示为百分比值,因此上述I·△t实际也为一百分比值,即为I·△t与电池容量之间的比值。因此,需要在电池中预存一电池容量值。It should be noted that, in the present embodiment, the first electric quantity value and the second electric quantity value are both expressed as a percentage value, so the above I·Δt is actually a percentage value, that is, I·Δt and battery capacity. The ratio between the two. Therefore, it is necessary to pre-store a battery capacity value in the battery.
所述第一计算模块10还设置为根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;The first calculating module 10 is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value;
由于当前计算得到的第一电量值只是电池当前剩余电量值的粗略估计,为了获得更准确的电池当前剩余电量值,需要通过一系列的计算,最终获得更加准确的当前剩余电量值,即为上述第二电量值。Since the current calculated first power value is only a rough estimate of the current remaining battery value of the battery, in order to obtain a more accurate battery current remaining power value, a series of calculations are needed to finally obtain a more accurate current remaining power value, which is The second amount of electricity.
具体地,为了提高电池电量检测的准确性,上述第一计算单元11还设置为根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值; Specifically, in order to improve the accuracy of the battery power detection, the first calculating unit 11 is further configured to determine the currently calculated first power according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value. The first open circuit voltage value and the internal resistance value corresponding to the value;
根据上述实施例,可以预先建立关于温度、电池电量值、开路电压值和内阻值之间的对应关系表,当使用电池时,首先根据当前温度在上述对应关系表中选择两个相近的温度所对应的表格做线性插值,制作当前温度下电池电量值、开路电压值和内阻值之间的对应关系表。According to the above embodiment, a correspondence table between the temperature, the battery power value, the open circuit voltage value, and the internal resistance value may be established in advance. When the battery is used, firstly, two similar temperatures are selected in the correspondence table according to the current temperature. The corresponding table is linearly interpolated, and a correspondence table between the battery power value, the open circuit voltage value, and the internal resistance value at the current temperature is prepared.
首先获取电池的闭路电压CV,第一电量值设为Q1,在上述对应关系表中,根据第一电量值Q1查表获得电池的第一开路电压值OCV1和内阻值R1。First, the closed circuit voltage CV of the battery is obtained, and the first electric quantity value is set to Q1. In the above correspondence table, the first open circuit voltage value OCV1 and the internal resistance value R1 of the battery are obtained according to the first electric quantity value Q1.
上述第二计算单元12还设置为获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;The second calculating unit 12 is further configured to acquire a closed circuit voltage value of the battery, recalculate the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculate a second open circuit. Voltage value;
具体地,为了提高电池电量检测的准确性,上述第一计算子单元121还设置为根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值;Specifically, in order to improve the accuracy of battery power detection, the first calculating sub-unit 121 is further configured to recalculate the battery current value according to the closed circuit voltage value and the currently calculated first open circuit voltage value and internal resistance value. ;
根据以下公式计算电池电流值I:Calculate the battery current value I according to the following formula:
Figure PCTCN2014086661-appb-000004
Figure PCTCN2014086661-appb-000004
上述第二计算子单元122还设置为基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。The second calculating sub-unit 122 is further configured to determine a corresponding relationship in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value based on a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value. The internal resistance value is used to re-determine the current internal resistance value of the battery, and the second open circuit voltage value is calculated according to the closed circuit voltage value and the currently calculated battery current value and internal resistance value.
由于在对于关系表中,电池开路电压的大小对电池内阻的影响较小,因此可以闭路电压作为开路电压在上述对应关系表中进行查询,获得对应的电池内阻值,闭路电压和开路电压差距较小,在对于关系表中所对应的内阻值的差距也较小,因此以实际测得的闭路电压查询电池的内阻值比较准确。设重新确定的电池内阻值为R2,因此可以得到电池的第二开路电压OCV2为:Since the influence of the open circuit voltage on the internal resistance of the battery is small in the relation table, the closed circuit voltage can be used as the open circuit voltage to query the corresponding relationship table to obtain the corresponding internal resistance value, closed circuit voltage and open circuit voltage. The difference is small, and the difference in the internal resistance value corresponding to the relation table is also small. Therefore, it is more accurate to query the internal resistance value of the battery with the actually measured closed circuit voltage. Let the re-determined battery internal resistance be R2, so the second open circuit voltage OCV2 of the battery can be obtained as:
OCV2=CV+I·R2OCV2=CV+I·R2
上述第三计算单元13还设置为根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。 The third calculating unit 13 is further configured to determine a second power value corresponding to the second open circuit voltage value according to a mapping relationship between a preset battery power value, an open circuit voltage value, and an internal resistance value.
本实施例中,基于上述对应关系表,确定第二开路电压OCV2对应的第二电量值Q2。In this embodiment, based on the correspondence table, the second power value Q2 corresponding to the second open circuit voltage OCV2 is determined.
确定模块30,设置为根据当前计算的第二电量值确定电池的电量指示值;The determining module 30 is configured to determine a battery power indicator value according to the currently calculated second power value;
本实施例中,可以直接将电量指示值修改为当前计算的第二电量值。电池应用于终端(如手机、平板等)时,可以直接将第二电量值发送至终端,以供终端显示,也可以将修改后的电量指示值发送至终端,以供终端显示。In this embodiment, the power indicator value can be directly modified to the currently calculated second power value. When the battery is applied to a terminal (such as a mobile phone or a tablet), the second power value may be directly sent to the terminal for display by the terminal, or the modified power indicator value may be sent to the terminal for display by the terminal.
具体地,为了提高用户体验度,以及为了提高电池的电量指示值的准确性,参照图11,图11为图8中确定模块一实施例的细化功能模块示意图,在本实施例中,所述确定模块30包括:Specifically, in order to improve the user experience, and to improve the accuracy of the battery power indicator value, reference is made to FIG. 11 , which is a schematic diagram of the refinement function module of the determining module in FIG. 8 . In this embodiment, The determining module 30 includes:
判断单元31,设置为判断电池处于充电状态或放电状态;本实施例中,可以根据上述电池电流值来判断电池处于充电状态还是处于放电状态,当电池电流值大于零时,则电池处于充电状态;当电池电流值小于零时,则电池处于放电状态。The determining unit 31 is configured to determine that the battery is in a charging state or a discharging state; in this embodiment, whether the battery is in a charging state or a discharging state may be determined according to the battery current value, and when the battery current value is greater than zero, the battery is in a charging state. When the battery current value is less than zero, the battery is in a discharged state.
第一调整单元32,设置为当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;The first adjusting unit 32 is configured to increase the first preset value of the current power indicator value when the battery is in a charging state, and when the recalculated second power value is greater than a current power indicator value of the battery;
第二调整单元33,设置为当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值The second adjusting unit 33 is configured to reduce the current power indicator value by a second preset value when the battery is in a discharged state, and when the recalculated second power value is less than a current power indicator value of the battery
本实施例中,每隔一分钟判断一次电量指示值是否要根据当前第二电量值发生变化,也就是说,每隔一分钟更新一次电量指示值。由于在一分钟之内电池电量变化较小,因此在本实施例中,第一预设数值和第二预设数值均设置为一,应当说明的是,在其他实施例中,也可以设置为其他数值。In this embodiment, it is determined whether the electric quantity indication value is to be changed according to the current second electric quantity value every other minute, that is, the electric quantity indication value is updated every one minute. In this embodiment, the first preset value and the second preset value are both set to one. It should be noted that, in other embodiments, it may also be set to Other values.
本实施例提出的电池电量检测系统,在预设的时间间隔之后,基于预设的时间间隔,以及上一时刻的电池电流值和第二电量值重新计算第一电量值,并根据当前计算得到的第一电量值重新确定电池电流值和第二电量值,最后根据当前计算的第二电量值确定电池的电量指示值,从而提高了电池电量检测的准确性,在电池容量未知的情况下,也能进行电池电量检测,通用性较高。The battery power detecting system of the present embodiment recalculates the first power value based on the preset time interval, the battery current value and the second power value at the previous time after the preset time interval, and obtains the current power value according to the current calculation. The first power value re-determines the battery current value and the second power value, and finally determines the battery power indication value according to the currently calculated second power value, thereby improving the accuracy of the battery power detection, in the case where the battery capacity is unknown, Battery power detection is also possible, and the versatility is high.
进一步地,为了提高电池电量检测的准确性,参照图12,图12为本发明电池电量检测系统第二实施例的功能模块示意图,在本实施例中,上述电池电量检测系统还包括循环控制模块40,设置为判断是否接收到终止指令,若否,则控制所述第一计算模块、第二计算模块和确定模块工作,直至接收到终止指令。 Further, in order to improve the accuracy of battery power detection, referring to FIG. 12, FIG. 12 is a schematic diagram of a functional module of a battery power detecting system according to a second embodiment of the present invention. In the embodiment, the battery power detecting system further includes a loop control module. 40. Set to determine whether a termination instruction is received, and if not, control the first calculation module, the second calculation module, and the determination module to work until a termination instruction is received.
本实施例中,当电池电量耗尽时,可以视为收到终止指令,或者终端发送给电池一终止信号,也可以视为终止指令。当没有收到终止指令时,则控制所述第一计算模块、第二计算模块和确定模块工作。也就是说,每隔预设的时间间隔后,都要基于预设的时间间隔,以及上一时刻确定的电池电流值和第二电量值计算当前时刻的第一电量值,然后再根据当前时刻的第一电量值确定当前时刻的电池电流值和第二电量值,最后根据确定的当前时刻的第二电量值来确定电池的电量指示值,当判断没有收到终止指令时,则继续执行上述步骤。In this embodiment, when the battery is exhausted, it can be regarded as receiving the termination command, or the terminal sends a termination signal to the battery, which can also be regarded as a termination instruction. When the termination instruction is not received, the first calculation module, the second calculation module, and the determination module are controlled to operate. That is to say, after every preset time interval, the first power value at the current time is calculated based on the preset time interval and the battery current value and the second power value determined at the previous time, and then according to the current time. The first electric quantity value determines the current battery current value and the second electric quantity value, and finally determines the battery electric quantity indication value according to the determined second electric quantity value of the current time, and when it is judged that the termination instruction is not received, continues to execute the above step.
进一步地,由于随着电池的长时间使用会逐渐老化,电池容量会衰减,为了提高电池电量检测的准确性,电池容量需要不断地进行校准,可以通过检测一次完整的充电过程所充入电池的电量来校准电池容量,参照图13,图13为本发明电池电量检测系统第三实施例的功能模块示意图,在本实施例中,上述电池电量检测系统还包括容量更新模块50,所述容量更新模块50设置为当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。Further, since the battery age is attenuated as the battery is aged for a long time, in order to improve the accuracy of the battery power detection, the battery capacity needs to be continuously calibrated, and the battery can be charged by detecting a complete charging process. Referring to FIG. 13 , FIG. 13 is a schematic diagram of a functional module of a battery power detecting system according to a third embodiment of the present invention. In the embodiment, the battery power detecting system further includes a capacity updating module 50, and the capacity update is performed. The module 50 is configured to calculate, when the battery is in a charging state, and the current second power value is less than the preset power value, calculate a power value of the battery charged in the time interval according to the preset time interval and the battery current value corresponding to the time interval. And accumulating the charge value of the battery after each time interval until the battery is full, and updating the capacity value of the battery according to the accumulated charge value of the battery.
本实施例中,预设电量值设为10%。在其他实施例中,预设电量值也可以为5%或8%等,具体可以根据实际需要进行设置。当电池开始充电时,电池将检测当前第二电量值是否小于预设电量值,在本实施例中,设当前第二电量值为6%,因此小于预设电量值10%,则电池开始累计计算该时刻之后、电池充满之前的每个时间间隔内充入电池的电量值,由于电池在该时间段内,电量由6%增加至100%,即电池电量增加了94%,因此电池容量值为累计充入电池的电量值除以94%。更新后的电池容量值可用于上述步骤S20中,即用来计算当前第一电量值。优选地,在本实施例中,电池每次开始充电时,都检测当前第二电量值是否小于预设电量值,并当当前第二电量值小于预设电量值时更新电池容量值。In this embodiment, the preset power amount is set to 10%. In other embodiments, the preset power value may also be 5% or 8%, etc., and may be set according to actual needs. When the battery starts to be charged, the battery will detect whether the current second power value is less than the preset power value. In this embodiment, if the current second power value is 6%, and thus the preset power value is less than 10%, the battery starts to accumulate. Calculate the value of the battery charge in each time interval after the time and before the battery is fully charged. Since the battery increases from 6% to 100% during this time period, that is, the battery power increases by 94%, so the battery capacity value The accumulated charge value of the battery is divided by 94%. The updated battery capacity value can be used in the above step S20, that is, to calculate the current first power value. Preferably, in this embodiment, each time the battery starts charging, it detects whether the current second power value is less than the preset power value, and updates the battery capacity value when the current second power value is less than the preset power value.
应当说明的是,上述实施例中的电池电量检测系统,可以集成在电池中,也可以设置为一独立的模块设于终端中,具体可以根据实际需要进行设置。It should be noted that the battery power detecting system in the above embodiment may be integrated in the battery, or may be set as a separate module in the terminal, and may be set according to actual needs.
本发明进一步提供一种电池,该电池包括电量检测系统,该电量检测系统的结构可参照上述实施例,在此不再赘述。理所应当地,由于本实施例的电池采用了上述电量检测系统的技术方案,因此该电池具有上述电量检测系统所有的有益效果。 The present invention further provides a battery, which includes a power detecting system. The structure of the power detecting system can be referred to the above embodiment, and details are not described herein again. As a matter of course, since the battery of the embodiment adopts the technical solution of the above-described electric quantity detecting system, the battery has all the advantageous effects of the above-described electric quantity detecting system.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,通过上述实施例及优选实施方式,提高了电池电量检测的准确性,在电池容量未知的情况下,也能进行电池电量检测,通用性较高。 As described above, with the above embodiments and preferred embodiments, the accuracy of the battery power detection is improved, and in the case where the battery capacity is unknown, the battery power detection can be performed, and the versatility is high.

Claims (12)

  1. 一种电池电量检测方法,所述电池电量检测方法包括以下步骤:A battery power detecting method, the battery power detecting method comprising the following steps:
    获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;Obtaining a first power value of the battery, and determining a battery current value and a second power value according to the first power value;
    在预设的时间间隔之后,根据所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;After the preset time interval, recalculating the first power value according to the preset time interval, and the determined battery current value and the second power value;
    根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;Re-determining the battery current value and the second power value according to the currently calculated first power value;
    根据当前计算的第二电量值确定电池的电量指示值。The battery power indication value is determined according to the currently calculated second power value.
  2. 如权利要求1所述的电池电量检测方法,其中,所述根据当前计算的第二电量值确定电池的电量指示值的步骤之后还包括:The battery power detecting method according to claim 1, wherein the step of determining the power indicator value of the battery according to the currently calculated second power value further comprises:
    判断是否接收到终止指令,若否,则继续依次循环执行所述重新计算第一电量值的步骤及其之后的步骤,直至接收到终止指令。It is judged whether the termination instruction is received, and if not, the step of recalculating the first electric quantity value and the subsequent steps are continuously performed in sequence until the termination instruction is received.
  3. 如权利要求1或2所述的电池电量检测方法,其中,所述根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值的步骤包括:The battery power detecting method according to claim 1 or 2, wherein the step of re-determining the battery current value and the second power value according to the currently calculated first power value comprises:
    根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值;Determining, according to a preset mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, the first open circuit voltage value and the internal resistance value corresponding to the currently calculated first power value;
    获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;Obtaining a closed circuit voltage value of the battery, recalculating the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculating a second open circuit voltage value;
    根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。And determining, according to a preset mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, the second power value corresponding to the second open circuit voltage value.
  4. 如权利要求3所述的电池电量检测方法,其中,所述根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值的步骤包括:The battery power detecting method according to claim 3, wherein said recalculating said battery current value based on said closed circuit voltage value and said currently calculated first open circuit voltage value and internal resistance value, and calculating a second open circuit The steps of the voltage value include:
    根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值;Recalculating the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and internal resistance value;
    基于预设的电池电量值、开路电压值以及内阻值之间的映射关系,以所述闭路电压值作为开路电压值在所述映射关系中确定对应的内阻值,以重新确定 电池当前的内阻值,根据所述闭路电压值,以及当前计算得到的电池电流值和内阻值计算第二开路电压值。Determining a corresponding internal resistance value in the mapping relationship by using the closed circuit voltage value as an open circuit voltage value to determine a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value The current internal resistance value of the battery is calculated according to the closed circuit voltage value, and the currently calculated battery current value and internal resistance value.
  5. 如权利要求1或2所述的电池电量检测方法,其中,所述根据当前计算的第二电量值确定电池的电量指示值的步骤包括:The battery power detecting method according to claim 1 or 2, wherein the determining the battery power indicating value according to the currently calculated second power value comprises:
    判断电池处于充电状态或放电状态;Determining that the battery is in a charged state or a discharged state;
    当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;When the battery is in a charging state, and when the recalculated second power value is greater than the current power indicator value of the battery, adding a first preset value to the current power indicator value;
    当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值。When the battery is in a discharged state, and when the recalculated second power value is less than the current power indicator value of the battery, the current power indicator value is decreased by a second preset value.
  6. 如权利要求2所述的电池电量检测方法,其中,所述电池电量检测方法还包括以下步骤:The battery power detecting method according to claim 2, wherein the battery power detecting method further comprises the following steps:
    当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。When the battery is in the charging state, and the current second power value is less than the preset power value, the battery charging value is calculated according to the preset time interval and the battery current value corresponding to the time interval, and is accumulated after each time. The battery charge value is charged in the time interval until the battery is full, and the capacity value of the battery is updated according to the accumulated charge value of the battery.
  7. 一种电池电量检测系统,所述电池电量检测系统包括:A battery power detecting system, the battery power detecting system comprising:
    第一计算模块,设置为获取电池的第一电量值,根据所述第一电量值确定电池电流值和第二电量值;a first calculating module, configured to acquire a first power value of the battery, and determine a battery current value and a second power value according to the first power value;
    第二计算模块,设置为在预设的时间间隔之后,根据所述预设的时间间隔,以及确定的电池电流值和第二电量值重新计算所述第一电量值;a second calculating module, configured to recalculate the first power value according to the preset time interval, and the determined battery current value and the second power value after a preset time interval;
    所述第一计算模块还设置为根据当前计算得到的第一电量值重新确定所述电池电流值和第二电量值;The first calculating module is further configured to re-determine the battery current value and the second power value according to the currently calculated first power value;
    确定模块,设置为根据当前计算的第二电量值确定电池的电量指示值。The determining module is configured to determine a battery power indicator value according to the currently calculated second power value.
  8. 如权利要求7所述的电池电量检测系统,其中,所述电池电量检测系统还包括循环控制模块,设置为判断是否接收到终止指令,若否,则控制所述第一计算模块、第二计算模块和确定模块工作。The battery power detecting system according to claim 7, wherein said battery power detecting system further comprises a loop control module configured to determine whether a termination command is received, and if not, controlling said first computing module, said second computing The module and the determination module work.
  9. 如权利要求7或8所述的电池电量检测系统,其中,所述第一计算模块包括: The battery power detecting system according to claim 7 or 8, wherein the first calculating module comprises:
    第一计算单元,设置为根据预设的电池电量值、开路电压值和内阻值之间的映射关系,确定当前计算得到的第一电量值所对应的第一开路电压值和内阻值;The first calculating unit is configured to determine, according to a preset mapping relationship between the battery power value, the open circuit voltage value, and the internal resistance value, the first open circuit voltage value and the internal resistance value corresponding to the currently calculated first power value;
    第二计算单元,设置为获取电池的闭路电压值,根据所述闭路电压值,以及当前计算得到的第一开路电压值和内阻值重新计算所述电池电流值,并计算第二开路电压值;a second calculating unit, configured to acquire a closed circuit voltage value of the battery, recalculate the battery current value according to the closed circuit voltage value, and the currently calculated first open circuit voltage value and the internal resistance value, and calculate a second open circuit voltage value ;
    第三计算单元,设置为根据预设的电池电量值、开路电压值以及内阻值之间的映射关系,确定所述第二开路电压值对应的第二电量值。The third calculating unit is configured to determine a second power value corresponding to the second open circuit voltage value according to a mapping relationship between the preset battery power value, the open circuit voltage value, and the internal resistance value.
  10. 如权利要求7或8所述的电池电量检测系统,其中,所述确定模块包括:The battery power detecting system according to claim 7 or 8, wherein the determining module comprises:
    判断单元,设置为判断电池处于充电状态或放电状态;a determining unit configured to determine that the battery is in a charged state or a discharged state;
    第一调整单元,设置为当电池处于充电状态时,且当所述重新计算的第二电量值大于所述电池的当前电量指示值时,则对当前电量指示值增加第一预设数值;a first adjusting unit, configured to: when the battery is in a charging state, and when the recalculated second power value is greater than a current power indicator value of the battery, adding a first preset value to the current power indicator value;
    第二调整单元,设置为当电池处于放电状态时,且当所述重新计算的第二电量值小于所述电池的当前电量指示值时,则对当前电量指示值减少第二预设数值。The second adjusting unit is configured to reduce the current power indicator value by a second preset value when the battery is in a discharged state, and when the recalculated second power value is less than the current power indicator value of the battery.
  11. 如权利要求8所述的电池电量检测系统,其中,所述电池电量检测系统还包括容量更新模块,所述容量更新模块设置为当电池处于充电状态,且当前第二电量值小于预设电量值时,根据预设的时间间隔以及该时间间隔对应的电池电流值计算该时间间隔内充入电池的电量值,并累计之后每个时间间隔内充入电池的电量值,直至电池充满为止,并根据所述累计充入电池的电量值更新电池的容量值。The battery power detecting system according to claim 8, wherein the battery power detecting system further comprises a capacity updating module, wherein the capacity updating module is configured to when the battery is in a charging state, and the current second power value is less than the preset power value. Calculating the amount of electricity charged in the battery during the time interval according to the preset time interval and the battery current value corresponding to the time interval, and accumulating the value of the battery in each time interval until the battery is full, and The capacity value of the battery is updated according to the accumulated charge value of the battery.
  12. 一种电池,所述电池包括如权利要求7至11任一项所述的电池电量检测系统。 A battery comprising the battery charge detecting system according to any one of claims 7 to 11.
PCT/CN2014/086661 2014-08-08 2014-09-16 Method and system for detecting charge level of battery, and battery WO2015154381A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410390108.6 2014-08-08
CN201410390108.6A CN105334463A (en) 2014-08-08 2014-08-08 Battery and electric quantity detection method and system thereof

Publications (1)

Publication Number Publication Date
WO2015154381A1 true WO2015154381A1 (en) 2015-10-15

Family

ID=54287162

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086661 WO2015154381A1 (en) 2014-08-08 2014-09-16 Method and system for detecting charge level of battery, and battery

Country Status (2)

Country Link
CN (1) CN105334463A (en)
WO (1) WO2015154381A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113960478A (en) * 2021-11-04 2022-01-21 艾体威尔电子技术(北京)有限公司 Asynchronous electric quantity obtaining method for Internet of things equipment
CN114355212A (en) * 2021-12-31 2022-04-15 珠海冠宇电池股份有限公司 Battery self-discharge detection method and device, computer equipment and storage medium
CN114938044A (en) * 2022-04-26 2022-08-23 阿尔特汽车技术股份有限公司 Method, apparatus, device and medium for determining SOC during trickle charge of vehicle battery

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105680521B (en) * 2016-03-23 2018-03-23 广东欧珀移动通信有限公司 Charge function detection method, device and the mobile terminal of mobile terminal
CN108957325A (en) * 2017-05-23 2018-12-07 北京握奇智能科技有限公司 A kind of battery electric quantity metering indicating means and system
CN108281720B (en) * 2018-01-10 2020-02-28 北京金山安全软件有限公司 Method, device and equipment for monitoring health state of battery of electronic equipment
CN110456281B (en) * 2019-06-28 2023-03-24 卧安科技(深圳)有限公司 Battery power detection method, electronic device and storage medium
CN114509684B (en) * 2022-04-19 2022-07-26 西安因联信息科技有限公司 Self-adaptive battery electric quantity monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0512711A2 (en) * 1991-05-07 1992-11-11 Matsushita Electric Industrial Co., Ltd. Device for measuring the quantity of electricity stored in a battery
CN102478636A (en) * 2010-11-26 2012-05-30 比亚迪股份有限公司 Electric quantity detection method and device for battery
CN102590756A (en) * 2012-02-14 2012-07-18 深圳市沛城电子科技有限公司 Method and device for battery capacity detection
CN102944847A (en) * 2012-11-20 2013-02-27 无锡中星微电子有限公司 Battery electric quantity detection method and system
CN103364735A (en) * 2013-07-17 2013-10-23 湖南九天科技股份有限公司 Method and device for accurately displaying battery electric quantity of portable power source

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0883628A (en) * 1994-09-09 1996-03-26 Mitsubishi Electric Corp Residual battery capacity detecting device
US5631540A (en) * 1994-11-23 1997-05-20 Lucent Technologies Inc. Method and apparatus for predicting the remaining capacity and reserve time of a battery on discharge
DE602006002896D1 (en) * 2005-02-14 2008-11-13 Denso Corp Method and device for detecting the charging status of a secondary battery based on neural network calculation
CN102147450A (en) * 2010-12-22 2011-08-10 航天恒星科技有限公司 Monitoring system for electric quantity of lithium battery
CN102866357B (en) * 2011-07-06 2014-12-31 珠海全志科技股份有限公司 System and method for measuring electric quantity of battery
CN103809125B (en) * 2014-02-13 2016-06-01 清华大学 The residue loading capacity method of estimation of lithium ion battery and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0512711A2 (en) * 1991-05-07 1992-11-11 Matsushita Electric Industrial Co., Ltd. Device for measuring the quantity of electricity stored in a battery
CN102478636A (en) * 2010-11-26 2012-05-30 比亚迪股份有限公司 Electric quantity detection method and device for battery
CN102590756A (en) * 2012-02-14 2012-07-18 深圳市沛城电子科技有限公司 Method and device for battery capacity detection
CN102944847A (en) * 2012-11-20 2013-02-27 无锡中星微电子有限公司 Battery electric quantity detection method and system
CN103364735A (en) * 2013-07-17 2013-10-23 湖南九天科技股份有限公司 Method and device for accurately displaying battery electric quantity of portable power source

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113960478A (en) * 2021-11-04 2022-01-21 艾体威尔电子技术(北京)有限公司 Asynchronous electric quantity obtaining method for Internet of things equipment
CN113960478B (en) * 2021-11-04 2023-06-23 艾体威尔电子技术(北京)有限公司 Asynchronous electric quantity acquisition method for Internet of things equipment
CN114355212A (en) * 2021-12-31 2022-04-15 珠海冠宇电池股份有限公司 Battery self-discharge detection method and device, computer equipment and storage medium
CN114355212B (en) * 2021-12-31 2023-10-31 珠海冠宇电池股份有限公司 Battery self-discharge detection method, device, computer equipment and storage medium
CN114938044A (en) * 2022-04-26 2022-08-23 阿尔特汽车技术股份有限公司 Method, apparatus, device and medium for determining SOC during trickle charge of vehicle battery

Also Published As

Publication number Publication date
CN105334463A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
WO2015154381A1 (en) Method and system for detecting charge level of battery, and battery
EP2851700B1 (en) Method and terminal for displaying capacity of battery
JP6240369B2 (en) System and method for determining the state of charge of a battery
WO2019144646A1 (en) Battery power-level status estimation method, apparatus, and electronic device
JP6153528B2 (en) System and method for battery monitoring
US10295605B2 (en) State detecting method and state detecting device of secondary battery
US20150355288A1 (en) Secondary battery degradation determination method and secondary battery degradation determination device
CN102449495B (en) Battery state of charge calculation device
CN106970334B (en) The method and device of cell health state detection
CN108303651B (en) Battery electric quantity measuring method and terminal
JP2015153750A (en) Method and apparatus for estimating battery internal resistance
JP5535968B2 (en) CHARGE RATE ESTIMATION DEVICE, CHARGE RATE ESTIMATION METHOD, AND PROGRAM
JP2012057998A (en) Charge rate calculation apparatus for secondary battery and charge rate calculation method
TWI628453B (en) Method for estimated battery capacity
TW201332189A (en) Power supply system and a calibration method for an initial discharging curve of a battery
WO2016145621A1 (en) Electrical power estimating method and terminal
US9891287B2 (en) Temperature-compensated state of charge estimation for rechargeable batteries
US10578675B2 (en) Estimation method for battery capacity
JP2011169831A (en) Device and method for detection of battery state
CN106970333A (en) The method and device of internal resistance of cell detection
JP2013108919A (en) Soc estimator
JPWO2016038873A1 (en) Control device, control method, and program
JP2016065828A (en) Estimation program, estimation method and estimation device
JP2023101509A (en) Semiconductor device and method for detecting remaining amount of battery
TW201814309A (en) State-of-charge indication method and related system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14888713

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14888713

Country of ref document: EP

Kind code of ref document: A1