A method, device and terminal equipment for updating battery full charge capacity

By obtaining and calculating the voltage and state of charge before and after the battery is charged and discharged, the battery's charging capacity is updated, and the problem of inaccurate calculation of the power in the local charging and discharged state is solved, more accurate battery capacity information is provided, and user experience is improved.

CN118465562BActive Publication Date: 2024-11-19ZHEJIANG SUNWODA ELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935642.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-19
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In the local charging and discharging state, the complete charging capacity of the battery cannot be accurately predicted, resulting in inaccurate calculation of the battery percentage and the inability to update the charging capacity of the battery in time.

Method used

By obtaining the first voltage before the battery charge and discharge, calculating the charge and discharge cumulative capacity after the charge and discharge is completed, and predicting the state of charge based on the first voltage and the second voltage, the full charge capacity of the battery is updated.

Benefits of technology

It improves the accuracy of battery charging capacity calculation, provides users with more accurate and reliable battery capacity information, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118465562B_ABST
    Figure CN118465562B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of battery power update, and discloses a method, device and terminal equipment for updating the full charge capacity of a battery, the method comprising: obtaining a first voltage of the battery before the battery is charged and discharged; calculating the cumulative charge and discharge capacity before the battery is charged and discharged, and predicting a second voltage after the charge and discharge is completed based on the current voltage; determining a first state of charge according to the first voltage, and determining a second state of charge according to the second voltage; and updating the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge and the second state of charge. The present invention can estimate the current full charge capacity of the battery under partial charge and discharge conditions, and provide users with more accurate and reliable battery power information based on the updated full charge capacity, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery power updating, and in particular to a method, device and terminal equipment for updating the full charging capacity of a battery. Background Art

[0002] When using the battery of a terminal device such as a mobile phone or laptop, the fully charged capacity (FCC) of the battery is generally updated when it is fully charged or fully discharged, thereby providing the user with an accurate battery percentage prompt. However, in actual use, the user cannot guarantee that the battery will be charged to 100% and discharged to 0% every time, and the full charge and discharge conditions cannot be met. Therefore, in the partial charge and discharge state, the full charge capacity of the battery cannot be accurately estimated using the full charge and discharge conditions, and the full charge capacity of the battery cannot be updated in time, resulting in inaccurate calculation of the battery percentage. Summary of the invention

[0003] In view of this, the present invention provides a method, device and terminal equipment for updating the full charge capacity of a battery to solve the problem that the full charge capacity of the battery cannot be accurately predicted under partial charge and discharge conditions.

[0004] In a first aspect, the present invention provides a method for updating the full charge capacity of a battery, the method comprising:

[0005] Before the battery is charged or discharged, obtaining a first voltage of the battery;

[0006] Before the battery is charged and discharged, the cumulative charge and discharge capacity is calculated, and the second voltage after the charge and discharge is completed is predicted based on the current voltage;

[0007] Determine a first state of charge according to the first voltage, and determine a second state of charge according to the second voltage;

[0008] The full charge capacity of the battery is updated according to the charge and discharge cumulative capacity, the first state of charge, and the second state of charge.

[0009] The present invention provides a method for updating the full charge capacity of a battery, by obtaining a first voltage before the battery is charged or discharged, calculating the cumulative charge and discharge capacity after the charge and discharge are completed, and predicting a second voltage, the full charge capacity of the battery is determined according to a first state of charge corresponding to the first voltage, a second state of charge corresponding to the second voltage, and the cumulative charge and discharge capacity, the current full charge capacity of the battery can be estimated under a partial charge and discharge state, and more accurate and reliable battery power information is provided to the user based on the updated full charge capacity, thereby improving the user experience.

[0010] In an optional implementation, the current full charge capacity and the ideal full charge capacity are obtained; the absolute value of the difference between the first state of charge and the second state of charge is calculated to obtain the capacity difference; the ratio of the difference between the ideal full charge capacity and the capacity difference to the ideal full charge capacity is multiplied by the current full charge capacity and the preset battery configuration parameters to obtain the current true capacity; the cumulative charge and discharge capacity is added to the current true capacity to obtain the full charge capacity of the battery.

[0011] The present invention updates the full charge capacity of the battery according to the charge state before and after charging and discharging and the cumulative charge and discharge capacity during the charging and discharging process, which can improve the calculation accuracy of the full charge capacity and provide users with more reliable battery power information.

[0012] In an optional embodiment, before the battery is charged and discharged, a first voltage of the battery is obtained, including: determining whether the battery meets a voltage measurement condition, wherein the voltage measurement condition is whether the standing time after the charge and discharge is completed is greater than a preset time threshold; if so, obtaining the first voltage of the battery.

[0013] The present invention can improve the stability and accuracy of the measured voltage by measuring the battery voltage under the premise of satisfying the voltage measurement conditions, thereby ensuring the reliability of the final update of the battery's full charging capacity.

[0014] In an optional embodiment, before the battery charge and discharge are completed, the cumulative charge and discharge capacity is calculated, including: before the battery charge and discharge are completed, obtaining the current charge and discharge current and charge and discharge time of the battery; integrating and accumulating the charge and discharge current according to the charge and discharge time to obtain the cumulative charge and discharge capacity.

[0015] The present invention can truly reflect the change of the battery power during the charging and discharging process by calculating the cumulative capacity during the charging and discharging process, thereby updating the fully charged capacity according to the actual change of the power, avoiding the error caused by still using standard parameters for calculation after the battery has been worn out.

[0016] In an optional embodiment, predicting a second voltage after the charge and discharge is completed based on the current voltage includes: determining whether the cumulative charge and discharge capacity is greater than a preset capacity threshold; if greater, determining whether the battery meets the voltage measurement condition; if satisfied, obtaining the current voltage and current impedance of the battery; based on the current voltage, adding the product of the charge and discharge current and the current impedance, obtaining the second voltage after the charge and discharge is completed.

[0017] The present invention can truly reflect the voltage condition of the battery by calculating the voltage of the battery after the charging and discharging is completed according to the battery impedance and the charging and discharging current, thereby ensuring the accuracy of updating the full charging capacity of the battery.

[0018] In an optional embodiment, it is characterized in that the first state of charge is determined according to the first voltage, and the second state of charge is determined according to the second voltage, including: based on the correspondence between the state of charge and the voltage, determining the first state of charge corresponding to the first voltage and the second state of charge corresponding to the second voltage; wherein the correspondence between the state of charge and the voltage is determined by controlling the battery to discharge according to a preset discharge current under preset reference working conditions, and measuring the state of charge and voltage of the battery cells in the discharge process, and determining the correspondence according to the state of charge and the voltage.

[0019] According to the correspondence between the measured state of charge and voltage, the present invention can accurately obtain the real state of charge at different voltages before and after charging and discharging, and further can update the full charge capacity of the battery according to the real state of charge.

[0020] In a second aspect, the present invention provides a device for updating the full charge capacity of a battery, the device comprising:

[0021] A first acquisition module, used for acquiring a first voltage of the battery before the battery is charged or discharged;

[0022] A second acquisition module is used to calculate the cumulative charge and discharge capacity of the battery before the charge and discharge is completed, and predict the second voltage after the charge and discharge is completed based on the current voltage;

[0023] a relationship determination module, configured to determine a first state of charge according to the first voltage, and to determine a second state of charge according to the second voltage;

[0024] The capacity update module is used to update the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge and the second state of charge.

[0025] The present invention provides a device for updating the full charge capacity of a battery. The device obtains a first voltage before the battery is charged or discharged, calculates the cumulative charge and discharge capacity after the charge and discharge are completed, and predicts a second voltage. The full charge capacity of the battery is determined according to a first state of charge corresponding to the first voltage, a second state of charge corresponding to the second voltage, and the cumulative charge and discharge capacity. The device can estimate the current full charge capacity of the battery under a partial charge and discharge state, and provide users with more accurate and reliable battery power information based on the updated full charge capacity, thereby improving user experience.

[0026] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for updating the full charge capacity of a battery according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0027] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for updating the full charge capacity of a battery according to the first aspect or any corresponding embodiment thereof.

[0028] In a fifth aspect, the present invention provides a terminal device, comprising a battery and the computer device of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a schematic flow chart of a method for updating a battery full charge capacity according to an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of corresponding relationships of a method for updating a fully charged capacity of a battery according to an embodiment of the present invention;

[0032] Figure 3 is a flow chart of another method for updating the full charge capacity of a battery according to an embodiment of the present invention;

[0033] Figure 4 is a specific flow chart of another method for updating the full charge capacity of a battery according to an embodiment of the present invention;

[0034] Figure 5 is a flow chart of another method for updating the full charge capacity of a battery according to an embodiment of the present invention;

[0035] Figure 6 is a structural block diagram of a device for updating the full charge capacity of a battery according to an embodiment of the present invention;

[0036] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0038] The embodiment of the present invention is applicable to the scenario where the terminal device updates and displays the fully charged capacity of the deployed battery. According to the embodiment of the present invention, a method for updating the fully charged capacity of a battery is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0039] In this embodiment, a method for updating the fully charged capacity of a battery is provided, which can be used in the above-mentioned terminal devices, such as mobile phones, notebooks, etc. Figure 1 is a flow chart of a method for updating a battery full charge capacity according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0040] Step S101, before the battery is charged or discharged, obtaining a first voltage of the battery.

[0041] Specifically, in the embodiment of the present invention, taking a mobile phone battery as an example, the user usually charges the battery when the battery level is low (the battery level has not reached 0%, for example, 30%) during use, or terminates charging early due to external factors during the charging process (the battery level has not reached 100%, for example, 90%). In general, the full charge capacity FCC of the battery is estimated by the cut-off voltage at full charge or full discharge, but if the full charge or full discharge conditions are not met for a long time, the FCC of the mobile phone cannot be updated. Therefore, in order to accurately estimate the FCC of the battery during part of the charging and discharging process, the embodiment of the present invention first measures the voltage of the current battery cell through a high-precision voltage acquisition ADC when the battery cell is in a static state before the battery is charged and discharged. At this time, the voltage information can reflect the battery's state of charge.

[0042] Step S102, before the battery is charged and discharged, the cumulative charge and discharge capacity is calculated, and a second voltage after the charge and discharge is completed is predicted based on the current voltage.

[0043] Specifically, in the embodiment of the present invention, when the user stops discharging and starts charging when the battery power does not reach 0% during the use of the mobile phone, or stops charging and starts discharging when the battery power does not reach 100% during the charging of the mobile phone, the cumulative charge and discharge capacity of the battery is calculated in real time through the current integration of the internal power meter (IC, Integrated Circuit) , such as a coulomb meter, can accurately obtain the cumulative charge capacity of the battery during the charging process, or the cumulative discharge capacity of the battery during the discharging process. The cumulative charge and discharge capacity obtained by the embodiment of the present invention represents the actual charge change inside the battery and will not be affected by partial charging or partial discharging.

[0044] In some optional implementations, the present invention measures the current voltage of the battery. Based on this, the voltage after charging and discharging is estimated according to the current charging and discharging current and the current impedance of the battery. , for example: with the current voltage The base voltage before the end of charge and discharge, the product of charge and discharge current and current impedance is the voltage change after the end of charge and discharge, and the sum of the base voltage and voltage change is the voltage after the end of charge and discharge. ,Right now , which can avoid the impact of charging and discharging on the battery voltage, eliminate the impact of the voltage on the full charge capacity estimation when the battery cell is in a flat area, and make the estimated voltage closer to the actual state of the battery.

[0045] Step S103: determining a first state of charge according to the first voltage, and determining a second state of charge according to the second voltage.

[0046] Specifically, in the embodiment of the present invention, based on the relationship between the standard battery voltage and the state of charge, according to the voltage before charging and discharging Determine the state of charge before charging or discharging , and according to the voltage after the charge and discharge are completed Determine the state of charge after charging and discharging , where the state of charge (SOC) refers to the ratio of the remaining power of the battery to the rated capacity under the same conditions. It can directly reflect the internal power status of the battery when the rated capacity remains unchanged. For example, for a battery with a rated capacity of 5000mAh, when the SOC is 50%, it means that the power in the battery is 2500mAh. The rated capacity is the standard full charge capacity when the battery is not aged, and the actual full charge capacity of the battery will change as the battery is used. The embodiment of the present invention determines the state of charge based on the battery voltage, which can improve the accuracy of the state of charge.

[0047] In some optional embodiments, the corresponding relationship between the state of charge and the voltage of the embodiment of the present invention is measured in advance under preset reference working conditions, such as under working conditions of 25°C and 0.2C, controlling the battery to discharge according to a preset discharge current, and measuring the state of charge and voltage of the battery cell in the battery during the discharge process, and determining the corresponding relationship according to the state of charge and the voltage, as shown in the following table and Figure 2 As shown, but not limited to.

[0048]

[0049] Step S104, updating the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge and the second state of charge.

[0050] Specifically, in the embodiment of the present invention, according to the cumulative capacity of charge and discharge , State of charge before charging and discharging And the state of charge after charging and discharging The logical relationship between the full charge capacity FCC and the full charge capacity FCC is determined to determine the full charge capacity update formula, and the full charge capacity FCC of the current battery is calculated based on the update formula. The present invention updates the full charge capacity of the battery through the calculated full charge capacity, and can provide users with more accurate and reliable battery information.

[0051] The present invention provides a method for updating the full charge capacity of a battery, by obtaining a first voltage before the battery is charged or discharged, calculating the cumulative charge and discharge capacity after the charge and discharge are completed, and predicting a second voltage, the full charge capacity of the battery is determined according to a first state of charge corresponding to the first voltage, a second state of charge corresponding to the second voltage, and the cumulative charge and discharge capacity, the current full charge capacity of the battery can be estimated under a partial charge and discharge state, and more accurate and reliable battery power information is provided to the user based on the updated full charge capacity, thereby improving the user experience.

[0052] In this embodiment, a method for updating the fully charged capacity of a battery is provided, which can be used in the above-mentioned terminal devices, such as mobile phones, notebooks, etc. Figure 3 is a flow chart of a method for updating a battery full charge capacity according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0053] Step S301, before the battery is charged or discharged, obtaining a first voltage of the battery.

[0054] Specifically, the above step S301 includes:

[0055] Step S3011, determining whether the battery meets a voltage measurement condition, wherein the voltage measurement condition is whether the standing time after charge and discharge is completed is greater than a preset time threshold.

[0056] Specifically, in the embodiment of the present invention, Figure 4 As shown, in order to ensure the accuracy of the voltage measurement of the battery before charging and discharging, it is necessary to ensure that the static time after charging and discharging is greater than the preset time threshold. The preset time threshold can be set to 2 hours after charging is completed, or 5 hours after discharging is completed. This is only for example and is not limited to this. Taking a mobile phone as an example, the embodiment of the present invention needs to ensure that the mobile phone is in a static state within 2 hours after charging is completed, or within 5 hours after the user finishes using the mobile phone, that is, the mobile phone is not charged or used, to meet the voltage measurement conditions. Therefore, before updating the full charge capacity of the battery, first determine whether the battery has been static for more than 2 hours after charging, or whether the battery has been static for more than 5 hours after discharging.

[0057] Step S3012: If the conditions are met, obtain the first voltage of the battery.

[0058] Specifically, in the embodiment of the present invention, when it is determined that the voltage measurement condition is met before discharging or charging, the battery voltage is in a stable state, so the battery voltage is obtained at this time. More accurate and reliable. If the voltage measurement conditions are not met, for example, the rest time after charging is less than 2 hours, or the rest time after discharging is less than 5 hours, it means that the battery is not yet in a stable state. If the voltage is measured at this time, the measured voltage will be biased. Therefore, the voltage measurement is not performed until the voltage measurement conditions are met.

[0059] Step S302, before the battery is charged and discharged, the cumulative charge and discharge capacity is calculated, and a second voltage after the charge and discharge is completed is predicted based on the current voltage.

[0060] Specifically, the above step S302 includes:

[0061] Step S3021, before the battery charge and discharge are completed, the current charge and discharge current and charge and discharge time of the battery are obtained; the charge and discharge current is integrated and accumulated according to the charge and discharge time to obtain the charge and discharge cumulative capacity.

[0062] Specifically, in the embodiment of the present invention, in order to accurately measure the change of the amount of electricity during the charging or discharging process, the charging and discharging time and the charging and discharging current of the battery are recorded in real time, and the charging and discharging cumulative capacity of the battery is obtained by integrating and accumulating the charging and discharging current during the charging and discharging time. , the cumulative capacity of this charge and discharge Represents the actual change in battery charge.

[0063] Step S3022, determine whether the cumulative charge and discharge capacity is greater than a preset capacity threshold; if greater, determine whether the battery meets the voltage measurement condition; if satisfied, obtain the current voltage and current impedance of the battery; based on the current voltage, add the product of the charge and discharge current and the current impedance to obtain the second voltage after the charge and discharge are completed.

[0064] Specifically, in the embodiment of the present invention, Figure 4 As shown, in order to ensure the stability of the full charge capacity update and avoid frequent updates, the full charge capacity is not estimated after a short charge or discharge, that is, it is necessary to judge the cumulative charge and discharge capacity of the charging or discharging process. Is it greater than the preset capacity threshold? If it is greater than the preset capacity threshold, the next step will be taken. The next step will be performed only when the battery power percentage is greater than 30%. At this time, the battery is charged or discharged for a long time, but it is not limited to this.

[0065] In some optional implementations, when it is determined that the battery has been discharged or charged for a long time, it is also necessary to determine the voltage measurement conditions to ensure that the battery has been standing for a preset time after long-term charging or discharging, that is, whether it has reached 2 hours after the charging is completed, or whether it has reached 5 hours after the discharge is completed. If the battery's standing time meets the requirements, the current battery voltage is obtained. and current impedance , at the current voltage Add the charge and discharge current to the base and current impedance The product of the product is used as the voltage in the stable state after the charge and discharge are completed. , the formula is as follows:

[0066]

[0067] In some optional implementations, if the voltage measurement condition is not met, for example, the standing time after charging is less than 2 hours, or the standing time after discharging is less than 5 hours, the voltage measurement is not performed until the voltage measurement condition is met. However, if the voltage measurement condition is not met, the user discharges or charges again, and the full charge capacity of the battery is not updated during this charge or discharge.

[0068] Step S303: Determine a first state of charge according to the first voltage, and determine a second state of charge according to the second voltage. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0069] Step S304: Update the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge and the second state of charge. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0070] The present invention provides a method for updating the full charge capacity of a battery, by obtaining a first voltage before the battery is charged or discharged, calculating the cumulative charge and discharge capacity after the charge and discharge are completed, and predicting a second voltage, the full charge capacity of the battery is determined according to a first state of charge corresponding to the first voltage, a second state of charge corresponding to the second voltage, and the cumulative charge and discharge capacity, the current full charge capacity of the battery can be estimated under a partial charge and discharge state, and more accurate and reliable battery power information is provided to the user based on the updated full charge capacity, thereby improving the user experience.

[0071] In this embodiment, a method for updating the fully charged capacity of a battery is provided, which can be used in the above-mentioned terminal devices, such as mobile phones, notebooks, etc. Figure 5 is a flow chart of a method for updating a battery full charge capacity according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0072] Step S501, before the battery is charged or discharged, obtain the first voltage of the battery. Figure 3 Step S301 of the illustrated embodiment will not be described in detail here.

[0073] Step S502, before the battery is charged and discharged, calculate the cumulative charge and discharge capacity, and predict the second voltage after the charge and discharge is completed based on the current voltage. Figure 3 Step S302 of the illustrated embodiment will not be described in detail here.

[0074] Step S503: Determine a first state of charge according to the first voltage, and determine a second state of charge according to the second voltage. Figure 3 Step S303 of the illustrated embodiment will not be described in detail here.

[0075] Step S504: updating the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge, and the second state of charge.

[0076] Specifically, the above step S504 includes:

[0077] Step S5041, obtaining the current full charge capacity and the ideal full charge capacity.

[0078] Specifically, in the embodiment of the present invention, the battery has no loss when it is just shipped from the factory, and has an ideal fully charged capacity. , is the maximum fully charged capacity of the battery in its entire service life, so the embodiment of the present invention obtains the ideal fully charged capacity of the battery As an ideal benchmark. As the battery usage time increases, the battery will gradually age and the battery's full charge capacity will gradually decrease. In actual situations, even if the battery is not fully charged for a long time, its full charge capacity will be updated at fixed intervals, but the update interval is relatively long. Therefore, the embodiment of the present invention obtains the most recently updated full charge capacity of the battery as the current full charge capacity , as the current baseline.

[0079] Step S5042, calculating the absolute value of the difference between the first state of charge and the second state of charge to obtain the capacity difference.

[0080] Specifically, in the embodiment of the present invention, the charge change of the battery is determined according to the charge state before charging and discharging, that is, the first charge state is calculated. and the second state of charge Difference , the absolute value of the difference As the actual battery power change, that is, the capacity difference before and after charging and discharging .

[0081] Step S5043, multiplying the ratio of the difference between the ideal full charge capacity and the capacity difference to the ideal full charge capacity by the current full charge capacity and the preset battery configuration parameter to obtain the current real capacity.

[0082] Specifically, in the embodiment of the present invention, in order to update the full charge capacity of the battery, the current influence coefficient of the battery is predetermined. and temperature influence coefficient , and the current influence coefficient and temperature influence coefficient As battery configuration parameters. The present invention is based on the capacity difference , Ideal full charge capacity , Current fully charged capacity The logical relationship between the battery configuration parameters determines the current actual capacity The calculation formula is as follows:

[0083]

[0084] Step S5044, adding the charge and discharge cumulative capacity to the current real capacity to obtain the full charge capacity of the battery.

[0085] Specifically, in the embodiment of the present invention, according to the capacity difference , Ideal full charge capacity , Current fully charged capacity The logical relationship between the battery configuration parameters can determine the current actual capacity of the battery , and then according to the cumulative charge and discharge capacity of the battery before standing still and the current real capacity The sum determines the full charge capacity of the battery, which is expressed as follows:

[0086]

[0087] The present invention provides a method for updating the full charge capacity of a battery, by obtaining a first voltage before the battery is charged or discharged, calculating the cumulative charge and discharge capacity after the charge and discharge are completed, and predicting a second voltage, the full charge capacity of the battery is determined according to a first state of charge corresponding to the first voltage, a second state of charge corresponding to the second voltage, and the cumulative charge and discharge capacity, the current full charge capacity of the battery can be estimated under a partial charge and discharge state, and more accurate and reliable battery power information is provided to the user based on the updated full charge capacity, thereby improving the user experience.

[0088] In this embodiment, a device for updating the full charge capacity of a battery is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0089] This embodiment provides a device for updating the full charge capacity of a battery. Figure 6 As shown, including:

[0090] The first acquisition module 601 is used to acquire a first voltage of the battery before the battery is charged or discharged.

[0091] The second acquisition module 602 is used to calculate the cumulative charge and discharge capacity before the battery is charged and discharged, and predict the second voltage after the charge and discharge is completed based on the current voltage.

[0092] The relationship determination module 603 is used to determine a first state of charge according to the first voltage, and to determine a second state of charge according to the second voltage.

[0093] The capacity updating module 604 is used to update the full charge capacity of the battery according to the cumulative charge and discharge capacity, the first state of charge and the second state of charge.

[0094] In some optional implementations, the capacity updating module 604 includes:

[0095] The full charge capacity acquisition unit is used to acquire the current full charge capacity and the ideal full charge capacity.

[0096] The capacity difference calculation unit is used to calculate the absolute value of the difference between the first state of charge and the second state of charge to obtain the capacity difference.

[0097] The current real capacity calculation unit is used to multiply the ratio of the difference between the ideal full charge capacity and the capacity difference to the ideal full charge capacity by the current full charge capacity and the preset battery configuration parameters to obtain the current real capacity.

[0098] The full charge capacity calculation unit is used to add the charge and discharge cumulative capacity to the current real capacity to obtain the full charge capacity of the battery.

[0099] In some optional implementations, the first acquisition module 601 includes:

[0100] The judging unit is used to judge whether the battery meets the voltage measurement condition, wherein the voltage measurement condition is whether the static time after the charge and discharge is completed is greater than a preset time threshold.

[0101] The first voltage acquisition unit is used to acquire a first voltage of the battery if the condition is met.

[0102] In some optional implementations, the second acquisition module 602 includes:

[0103] The charge and discharge cumulative capacity calculation unit is used to obtain the current charge and discharge current and charge and discharge time of the battery before the battery charge and discharge are completed; the charge and discharge current is integrated and accumulated according to the charge and discharge time to obtain the charge and discharge cumulative capacity.

[0104] The first voltage acquisition unit is used to determine whether the cumulative charge and discharge capacity is greater than a preset capacity threshold; if greater, determine whether the battery meets the voltage measurement condition; if satisfied, obtain the current voltage and current impedance of the battery; based on the current voltage, add the product of the charge and discharge current and the current impedance to obtain the second voltage after the charge and discharge are completed.

[0105] In some optional embodiments, the relationship determination module 603 includes: based on the correspondence between the state of charge and the voltage, determining a first state of charge corresponding to the first voltage and a second state of charge corresponding to the second voltage; wherein the correspondence between the state of charge and the voltage is determined by controlling the battery to discharge according to a preset discharge current under preset reference working conditions, and measuring the state of charge and voltage of the battery cells in the discharge process, and determining the correspondence according to the state of charge and the voltage.

[0106] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0107] The battery full charge capacity update device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0108] The embodiment of the present invention also provides a computer device having the above Figure 6 The fully charged capacity of the battery shown is updated by the device.

[0109] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0110] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0111] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0112] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0113] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0114] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0115] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0116] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0117] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0118] The embodiment of the present invention also provides a terminal device, including a battery and the above Figure 7 Computer equipment shown.

[0119] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for updating the full charge capacity of a battery, characterized in that: The method comprises: Before the battery is charged or discharged, obtaining a first voltage of the battery; Before the battery is charged and discharged, the current charge and discharge current and charge and discharge time of the battery are obtained, the charge and discharge current is integrated and accumulated according to the charge and discharge time to obtain the charge and discharge cumulative capacity, and a second voltage after the charge and discharge is completed is predicted based on the current voltage; Based on the correspondence between the state of charge and the voltage, a first state of charge corresponding to the first voltage and a second state of charge corresponding to the second voltage are determined; wherein the correspondence between the state of charge and the voltage is determined by controlling the battery to discharge according to a preset discharge current under preset reference working conditions, and measuring the state of charge and voltage of the battery cell in the battery during the discharge process, and determining the correspondence according to the state of charge and the voltage; Obtain the current full charge capacity and the ideal full charge capacity; calculate the absolute value of the difference between the first state of charge and the second state of charge to obtain the capacity difference; multiply the ratio of the difference between the ideal full charge capacity and the capacity difference to the ideal full charge capacity by the current full charge capacity, the current influence coefficient and the temperature influence coefficient to obtain the current real capacity; add the charge and discharge cumulative capacity to the current real capacity to obtain the full charge capacity of the battery.

2. The method according to claim 1, characterized in that The step of obtaining a first voltage of the battery before the battery is charged or discharged includes: Determine whether the battery meets a voltage measurement condition, wherein the voltage measurement condition is whether the standing time after the charge and discharge is completed is greater than a preset time threshold; If the conditions are met, the first voltage of the battery is obtained.

3. The method according to claim 1, characterized in that: The method of predicting a second voltage after the charge and discharge are completed based on the current voltage includes: Determining whether the charge-discharge cumulative capacity is greater than a preset capacity threshold; If the charge-discharge cumulative capacity is greater than the preset capacity threshold, determining whether the battery meets the voltage measurement condition; If the battery meets the voltage measurement condition, obtaining the current voltage and current impedance of the battery; Based on the current voltage, the product of the charge and discharge current and the current impedance is added to obtain a second voltage after the charge and discharge is completed.

4. A device for updating the full charge capacity of a battery, used to implement the method for updating the full charge capacity of a battery according to any one of claims 1 to 3, characterized in that: The device comprises: A first acquisition module, used for acquiring a first voltage of the battery before the battery is charged or discharged; A second acquisition module is used to acquire the current charge and discharge current and charge and discharge time of the battery before the charge and discharge of the battery is completed, integrate and accumulate the charge and discharge current according to the charge and discharge time to obtain the charge and discharge cumulative capacity, and predict the second voltage after the charge and discharge is completed based on the current voltage; a relationship determination module, configured to determine a first state of charge corresponding to the first voltage and a second state of charge corresponding to the second voltage based on a correspondence relationship between the state of charge and the voltage; wherein the correspondence relationship between the state of charge and the voltage is determined by controlling the battery to discharge according to a preset discharge current under a preset reference working condition, and measuring the state of charge and voltage of the battery cell in the battery during the discharge process, and determining the correspondence relationship according to the state of charge and the voltage; A capacity update module is used to obtain a current full charge capacity and an ideal full charge capacity; calculate the absolute value of the difference between the first state of charge and the second state of charge to obtain a capacity difference; multiply the ratio of the difference between the ideal full charge capacity and the capacity difference to the ideal full charge capacity by the current full charge capacity and the current influence coefficient and the temperature influence coefficient to obtain a current real capacity; add the charge and discharge cumulative capacity to the current real capacity to obtain the full charge capacity of the battery.

5. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for updating the full charge capacity of a battery according to any one of claims 1 to 3 by executing the computer instructions.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for updating the full charge capacity of a battery according to any one of claims 1 to 3.

7. A terminal device, characterized in that: A computer device comprising a battery and claim 5.