Power estimation method and device, electronic equipment, storage medium and program product
Patent Information
- Application Number
- CN202510353273.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2026-09-25
AI Technical Summary
[0003]相关技术中,通过精密电阻和库仑计相结合的方式来估计电池电量,但该方式存在硬件成本过高且占用电子设备内部空间过大的问题
[0021]在本公开实施例中,通过电池在第一采样时刻的第一电量值,可以获得电池在第一采样时刻的第一电流值;再根据第一电量值和第一电流值,确定电池在第一采样时刻之后的第二采样时刻的第二电量值。这一过程中,只需要通过第一采样时刻的第一电流值来确定第二采样时刻的第二电量值,而无需通过精密电阻和库仑计组合使用的方式来获得第二电量值,从而一方面可以降低硬件成本,另一方面可以释放电子设备的内部空间,尤其是对于小型电子设备,如手表、手环等电子设备,可以实现缩小器件在电路板上的占用面积。
Smart Images

Figure CN122815225A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of battery technology, and in particular to a power estimation method, apparatus, electronic device, storage medium, and program product. Background Technology
[0002] Real-time battery power estimation is one of the key factors in ensuring battery safety. By accurately estimating the battery power, users' needs for electronic devices can be met.
[0003] In related technologies, battery capacity is estimated by combining precision resistors and coulomb counters, but this method suffers from problems such as high hardware costs and excessive space occupation in electronic devices. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a power estimation method, apparatus, electronic device, storage medium, and program product.
[0005] According to a first aspect of the present disclosure, a battery power estimation method is provided, the method comprising: obtaining a first battery power value at a first sampling time; determining a first current value of the battery at the first sampling time based on the first battery power value; and determining a second battery power value at a second sampling time based on the first battery power value and the first current value, wherein the second sampling time is after the first sampling time.
[0006] Optionally, determining the first current value of the battery at the first sampling time based on the first charge value includes: determining the no-load voltage value of the battery at the first sampling time based on the first charge value and a preset charge-discharge curve, wherein the preset charge-discharge curve is used to represent the relationship between the battery charge value and the no-load voltage value; detecting the load voltage value of the battery at the first sampling time; and determining the first current value based on the no-load voltage value, the load voltage value, and the circuit resistance value at the first sampling time, wherein the circuit resistance value includes the resistance value of the battery's internal circuit and the resistance value of the battery's external circuit.
[0007] Optionally, determining the second charge value of the battery at the second sampling time based on the first charge value and the first current value includes: obtaining a first charge change value based on the first current value and the time difference between the first sampling time and the second sampling time, wherein the first charge change value represents the change in the charge of the battery at the first sampling time and the charge at the second sampling time; and determining the second charge value based on the first charge value and the first charge change value.
[0008] Optionally, the first charge change value is obtained based on the first current value and the time difference between the first sampling time and the second sampling time, including: determining the product of the first current value and the time difference as the first charge change value.
[0009] Optionally, the first charge value is the charge value of the battery first obtained after the battery-powered device is powered on; wherein, obtaining the first charge value of the battery at the first sampling time includes: determining the charge value of the battery when the device is powered off as the first charge value.
[0010] Optionally, after determining the second charge value of the battery at the second sampling time, the method further includes: taking the second sampling time as the new first sampling time, and returning to execute the steps of obtaining the first charge value, determining the first current value, and determining the second charge value, so as to determine the third charge value of the battery at the third sampling time, wherein the third sampling time is after the second sampling time.
[0011] According to a second aspect of the present disclosure, a power estimation device is provided, comprising: a first obtaining unit configured to obtain a first power value of a battery at a first sampling time; a first determining unit configured to determine a first current value of the battery at the first sampling time based on the first power value; and a second determining unit configured to determine a second power value of the battery at a second sampling time based on the first power value and the first current value, wherein the second sampling time is after the first sampling time.
[0012] Optionally, the first determining unit is further configured to: determine the no-load voltage value of the battery at the first sampling time based on the first charge value and a preset charge-discharge curve, wherein the preset charge-discharge curve is used to represent the relationship between the battery charge value and the no-load voltage value; detect the load voltage value of the battery at the first sampling time; and determine the first current value based on the no-load voltage value at the first sampling time, the load voltage value at the first sampling time, and the circuit resistance value, wherein the circuit resistance value includes the resistance value of the battery's internal circuit and the resistance value of the battery's external circuit.
[0013] Optionally, the second determining unit is further configured to obtain a first charge change value based on the first current value and the time difference between the first sampling time and the second sampling time, wherein the first charge change value represents the change in the charge of the battery at the first sampling time and the charge at the second sampling time; and to determine a second charge value based on the first charge value and the first charge change value.
[0014] Optionally, the second determining unit is further configured to determine the product of the first current value and the time difference as the first electrical quantity change value.
[0015] Optionally, the first power value is the power value of the battery first obtained after the battery-powered device is powered on; wherein, the first obtaining unit is further configured to determine the power value of the battery when the device is powered off as the first power value.
[0016] Optionally, the power estimation device includes: a third determining unit, configured to, after determining a second power value of the battery at a second sampling time, take the second sampling time as a new first sampling time, and return to perform the steps of obtaining the first power value, determining the first current value, and determining the second power value, so as to determine a third power value of the battery at a third sampling time, wherein the third sampling time is after the second sampling time.
[0017] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing computer programs or instructions; wherein the processor executes the computer programs or instructions to implement the steps of the method as described in any of the first aspects of the present disclosure.
[0018] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the storage medium storing a computer program or instructions that, when executed by a processor, implement the steps of the method as described in any of the first aspects of the present disclosure.
[0019] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the method as described in any of the first aspects of the present disclosure.
[0020] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0021] In this embodiment, the first current value of the battery at the first sampling time can be obtained from the first charge value of the battery at the first sampling time; then, based on the first charge value and the first current value, the second charge value of the battery at the second sampling time after the first sampling time is determined. This process only requires the first current value at the first sampling time to determine the second charge value at the second sampling time, eliminating the need for a combination of precision resistors and coulomb counters. This reduces hardware costs and frees up internal space in electronic devices, especially for small electronic devices such as watches and wristbands, allowing for a reduction in the area occupied by components on the circuit board.
[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0023] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0024] Figure 1This is a schematic diagram of a charge-discharge curve according to an exemplary embodiment of the present disclosure.
[0025] Figure 2 This is a schematic diagram of a battery circuit structure according to an exemplary embodiment of the present disclosure. Figure 1 .
[0026] Figure 3 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 1 .
[0027] Figure 4 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 2 .
[0028] Figure 5 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 3 .
[0029] Figure 6 This is a schematic diagram of a battery circuit structure according to an exemplary embodiment of the present disclosure. Figure 2 .
[0030] Figure 7 This is a schematic diagram illustrating the detection of circuit resistance according to an exemplary embodiment of the present disclosure.
[0031] Figure 8 This is a schematic diagram illustrating the principle of a power estimation method according to an exemplary embodiment of the present disclosure.
[0032] Figure 9 This is a schematic diagram of the structure of a power estimation device according to an exemplary embodiment of the present disclosure.
[0033] Figure 10 This is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of this disclosure as detailed in the appended claims.
[0035] In related technologies, the battery's capacity can be calculated using a combination of precision resistance and a coulomb counter. The principle behind this method is as follows:
[0036] First, electronic devices can obtain the charge / discharge curves of batteries provided by the battery manufacturer. Charge / discharge curves represent the relationship between charge and voltage values. For example, a charge / discharge curve can be an open circuit voltage (OCV) and depth of discharge (DOD) curve (i.e., an OCV-DOD curve). Here, the depth of discharge refers to the percentage of the battery's total capacity that is released during the transition from a fully charged state to a discharged state.
[0037] Figure 1 This is a schematic diagram of a charge-discharge curve according to an exemplary embodiment of the present disclosure, such as... Figure 1 As shown, the vertical axis represents the open-circuit voltage (OCV), in volts (V). The horizontal axis represents the depth of discharge (DOD), in percentage (%), where DOD = Q1 / Q * 100%, where DOD represents the depth of discharge, Q1 represents the amount of charge released by the battery, and Q represents the amount of charge when the battery is fully charged. At a depth of discharge of 0%, corresponding to a fully charged battery, the voltage is 4.48V. At a depth of discharge of 100%, corresponding to a depleted battery, the voltage is 3V.
[0038] Secondly, Figure 2 This is a schematic diagram of a battery circuit structure according to an exemplary embodiment of the present disclosure. Figure 1 ,like Figure 2 As shown, the battery circuit in the electronic device includes a precision resistor (denoted as R) and a coulomb counter (denoted as C). The battery consists of a cell (denoted as CELL) connected in series and a battery resistor (denoted as R0). The cell CELL is grounded (denoted as GND) through a first resistor (denoted as R1). The battery resistor R0 is connected to the first terminal of the precision resistor (denoted as R) through a second resistor (denoted as R2). The second terminal of the precision resistor R is used to connect to an interface (denoted as VBAT). The first terminal of the coulomb counter C is connected to the first terminal of the precision resistor R, and the second terminal of the coulomb counter C is connected to the second terminal of the precision resistor R. The coulomb counter C can calculate the battery's load voltage and the current flowing through the precision resistor R. V = V cell -Ir*(r0+r1+r2). Where V represents the battery load voltage, V cell The value represents the cell voltage, Ir represents the current flowing through the precision resistor R, r0 represents the resistance of the battery resistor R0, r1 represents the resistance of the first resistor R1, and r2 represents the resistance of the second resistor R2.
[0039] Thirdly, electronic devices can use the following steps to calculate the depth of discharge of the battery in order to obtain the battery's charge level.
[0040] The first step involves the coulomb counter detecting the open-circuit voltage value before the electronic device is powered on, under conditions of no significant load removal (almost equivalent to no load). The second step involves determining the depth of discharge before power-on based on the open-circuit voltage value and the OCV-DOD curve, and then deducing the initial battery charge value from this depth of discharge. For example, DOD0 = (1-Q0) / Q, where DOD0 represents the depth of discharge before power-on, and Q0 represents the initial battery charge. The third step involves the current flowing through the precision resistor R after the electronic device is powered on, and the coulomb counter begins integration to obtain the change in charge. For example, Q2 = ∫I R *dt, where Q2 represents the amount of charge consumed, and dt is the integration time. The fourth step is to calculate the battery charge value. For example, Q3 = Q0 - Q2, (1-Q3) / Q = DOD1, where Q3 represents the charge value at the current moment, and DOD1 represents the depth of discharge at the current moment, thus obtaining the battery charge value at the current moment.
[0041] It is evident that the relevant technology requires the combined use of a precision resistor and a coulomb meter to estimate the battery's charge level. This involves hardware costs, and the precision resistor and coulomb meter also occupy internal space in the electronic device. Therefore, there is still room for optimization in the relevant technology.
[0042] This disclosure provides a power estimation method, apparatus, electronic device, storage medium, and program product to achieve accurate power measurement without the need for a combination of precision resistors and coulomb counters. This reduces hardware costs and frees up internal space in electronic devices, especially for small electronic devices such as watches and wristbands, by reducing the area occupied by components on the circuit board.
[0043] Firstly, this disclosure provides a method for estimating electricity consumption. Figure 3 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 1 ,like Figure 3 As shown, the method includes:
[0044] Step S301: Obtain the first charge value of the battery at the first sampling time;
[0045] Step S302: Determine the first current value of the battery at the first sampling time based on the first charge value;
[0046] Step S303: Determine the second charge value of the battery at the second sampling time based on the first charge value and the first current value, wherein the second sampling time is after the first sampling time.
[0047] In this embodiment, the power estimation method can be applied to electronic devices. The electronic device can be a battery-equipped device, such as a smartwatch, tablet, smartphone, or smart bracelet. Here, the battery type can be a lithium-ion battery (Li-ion), a lithium polymer battery (LiPo), a nickel-metal hydride battery (NiMH), etc., and this embodiment does not limit the specific type.
[0048] In step S301, the electronic device can obtain the first charge value of the battery at the first sampling time, so that the second charge value of the battery at the second sampling time can be obtained based on the first charge value.
[0049] In some embodiments, the electronic device can obtain the no-load voltage value of the battery at the first sampling time, and obtain the first charge value of the battery at the first sampling time based on the relationship between the no-load voltage value and the charge value.
[0050] Understandably, when an electronic device is powered off, the battery current is very small, which is equivalent to the battery being in an unloaded state. The battery is not connected to any load, and no current loop is formed between the positive and negative terminals. In this state, the battery voltage is the unloaded voltage value.
[0051] In some embodiments, the electronic device may store the charge-discharge curve of the battery under no-load conditions provided by the battery manufacturer. After obtaining the no-load voltage value, the electronic device can determine the first charge value of the battery at the first sampling time based on the charge-discharge curve.
[0052] In one embodiment, the charge-discharge curve can be Figure 1 The OCV-DOD curve is shown. It is understandable that electronic devices can obtain the depth of discharge corresponding to the open-circuit voltage value from the OCV-DOD curve, and then determine the battery's initial charge level based on that depth of discharge.
[0053] Understandably, when an electronic device is powered on, the battery is connected to a load, and in this state, the battery voltage is the load voltage. The load voltage is easily affected by the battery's internal resistance and the load current, causing it to decrease. The no-load voltage, compared to the load voltage, more accurately reflects the potential difference generated by the battery's internal chemical reactions; in other words, the no-load voltage corresponds to a more accurate amount of charge.
[0054] In some embodiments, the first sampling time can be any sampling time when the electronic device is powered on. In this state, the battery voltage value is the load voltage value rather than the no-load voltage value. Therefore, it is necessary to obtain the battery level value at the first sampling time based on the battery level value at the previous sampling time and the battery consumption between the previous sampling time and the first sampling time. The battery level value at the previous sampling time can be obtained from the no-load voltage value corresponding to the previous sampling time.
[0055] It is understandable that when a battery is powered on, it can be in a discharging or charging process. This disclosure uses the battery discharging process as an example to illustrate the power estimation method; however, those skilled in the art should understand that this power estimation method can also be applied to the battery charging process.
[0056] In some embodiments, the battery capacity can be expressed in ampere-hours (Ah) or kilowatt-hours (kWh). For example, the battery capacity at the first sampling time could be 1000 mAh (milliampere-hours), or 1 Ah (ampere-hours). Understandably, as the battery discharges, its capacity can gradually decrease until it reaches zero.
[0057] In step S302, a first preset relationship exists between the first charge value and the battery voltage value, and a second preset relationship exists between the battery voltage value and the battery current value. The electronic device can obtain the battery voltage value based on the first charge value and the first preset relationship; subsequently, it can obtain the first current value based on the battery voltage value and the second preset relationship.
[0058] In some embodiments, the first preset relationship is used to represent the relationship between the charge value and the voltage value. In one example, the first preset relationship may be represented in the form of a preset charge-discharge curve.
[0059] In some embodiments, the second preset relationship is used to represent the relationship between voltage and current values. In one example, the second preset relationship is related to the circuit structure corresponding to the battery. Here, different circuit structures correspond to different charge transfer capabilities within the battery, resulting in different voltage values corresponding to different current values.
[0060] In some embodiments, the circuit structure corresponding to the battery includes an internal circuit and an external circuit. The internal circuit of the battery has a resistance value, also known as internal resistance; the external circuit of the battery has a resistance value, also known as external resistance. Both internal and external resistance can change the charge transfer capability in the battery, thereby forming different current values.
[0061] In step S303, the electronic device can obtain the battery power consumption value from the first sampling time to the second sampling time based on the first current value of the battery at the first sampling time and the time difference between the first sampling time and the second sampling time; subsequently, the electronic device can determine the second power value of the battery at the second sampling time based on the first power value and the power consumption value.
[0062] For example, the first current value can be I1, the time difference between the first sampling time and the second sampling time can be T1, and the power consumption value can be I1*T1.
[0063] In some embodiments, the electronic device can obtain the battery power consumption value from the first sampling time to the second sampling time based on the first current value of the battery at the first sampling time, the second current value of the battery at the second sampling time, and the time difference between the first sampling time and the second sampling time.
[0064] For example, the first current value can be I1, the second current value can be I2, and the time difference between the first sampling time and the second sampling time can be T1. Then, the power consumption value can be 1 / 2*(I1+I2)*T1.
[0065] Understandably, when the battery is discharging, the first charge value minus the charge consumption value can be used to obtain the second charge value at the second sampling time.
[0066] In this embodiment, the first current value of the battery at the first sampling time can be obtained from the first charge value of the battery at the first sampling time; then, based on the first charge value and the first current value, the second charge value of the battery at the second sampling time after the first sampling time is determined. This process only requires the first current value at the first sampling time to determine the second charge value at the second sampling time, eliminating the need for a combination of precision resistors and coulomb counters. This reduces hardware costs and frees up internal space in electronic devices, especially for small electronic devices such as watches and wristbands, allowing for a reduction in the area occupied by components on the circuit board.
[0067] Optional, Figure 4 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 2 ,like Figure 4 As shown, step S302 may include:
[0068] Step S401: Determine the open-circuit voltage value of the battery at the first sampling time based on the first charge value and the preset charge-discharge curve, wherein the preset charge-discharge curve is used to represent the relationship between the battery charge value and the open-circuit voltage value.
[0069] Step S402: Detect the load voltage value of the battery at the first sampling time;
[0070] Step S403: Determine the first current value based on the no-load voltage value, the load voltage value, and the circuit resistance value at the first sampling time, wherein the circuit resistance value includes the resistance value of the internal circuit of the battery and the resistance value of the external circuit of the battery.
[0071] In step S401, the electronic device can determine the no-load voltage value of the battery at the first sampling time based on the first charge value and the preset charge-discharge curve.
[0072] Understandably, when the first sampling time is when the electronic device is powered on, the battery is connected to a load, and the no-load voltage at the first sampling time cannot be directly obtained. Therefore, the no-load voltage value of the battery at the first sampling time can be determined by the first charge value and the preset charge-discharge curve.
[0073] In one embodiment, the preset charge-discharge curve can be Figure 1 The OCV-DOD curve is shown. It can be understood that the electronic device can obtain the corresponding depth of discharge from the OCV-DOD curve based on the first charge value at the first sampling time, and then determine the battery's open-circuit voltage value at the first sampling time based on this depth of discharge.
[0074] In step S402, the electronic device can detect the battery voltage at the first sampling time. Since the first sampling time is when the electronic device is powered on and the battery is connected to a load, the load voltage value of the battery at the first sampling time can be obtained by detecting its terminal voltage.
[0075] In some embodiments, an electronic device can detect the load voltage value of the battery at a first sampling time using a detection module. In one embodiment, the detection module can be implemented in hardware or software, and this disclosure does not limit this. In one example, the detection module can be an analog-to-digital converter (ADC).
[0076] In step S403, the electronic device can calculate the first current value of the battery at the first sampling time based on the battery's no-load voltage value, the battery's load voltage value, and the circuit resistance value at the first sampling time, according to Ohm's law and the voltage difference formula.
[0077] In some embodiments, a voltage difference can be obtained based on the no-load voltage value at the first sampling time and the detected load voltage value at the first sampling time, and a first current value of the battery at the first sampling time can be obtained based on the voltage difference and the circuit resistance value.
[0078] Understandably, circuit resistance includes the resistance of the battery's internal circuitry (internal resistance, for example...). Figure 2 The resistance of the battery (as shown) and the resistance of the external circuit of the battery (external resistance, for example, as shown) Figure 2 The first and second resistors are shown.
[0079] In some embodiments, the electronic device stores the circuit resistance value of the battery. In one embodiment, the circuit resistance value of the battery may be obtained by the battery manufacturer before the battery leaves the factory.
[0080] In this embodiment, the first current value at the first sampling time can be obtained based on the no-load voltage value, the load voltage value, and the circuit resistance value at the first sampling time. Therefore, the current value in this embodiment is calculated, eliminating the need to use a combination of precision resistors and coulomb counters to obtain the power consumption value, thus significantly reducing hardware costs.
[0081] Optional, Figure 5 This is a flowchart illustrating a power estimation method according to an exemplary embodiment of the present disclosure. Figure 3 ,like Figure 5 As shown, step S303 may include:
[0082] Step S501: Based on the first current value and the time difference between the first sampling time and the second sampling time, obtain the first charge change value, wherein the first charge change value represents the change in the charge of the battery between the first sampling time and the charge at the second sampling time.
[0083] Step S502: Determine the second power value based on the first power value and the first power change value.
[0084] In step S501, there is a time difference between the first sampling time and the second sampling time. It can be assumed that the battery current value changes according to a preset rule within this time difference. Therefore, the electronic device can obtain a first charge change value based on the battery's first current value at the first sampling time, the preset rule change, and the time difference between the first and second sampling times. The first charge change value can represent the change in battery charge between the first sampling time and the second sampling time.
[0085] It is understandable that preset rules can be set according to actual needs, and this disclosure does not limit this.
[0086] In one embodiment, the preset rule may be that the current value decreases over time. In another embodiment, the preset rule may be that the current value decreases over time and the degree of decrease is related to the magnitude of the time difference. In yet another embodiment, the preset rule may be that the current value remains constant when the time difference is less than a preset threshold, and decreases when the time difference is greater than or equal to the preset threshold.
[0087] In some embodiments, the electronic device can periodically sample to obtain battery levels at multiple sampling times. The time difference between the first and second sampling times can be a preset threshold. This preset threshold can be set according to actual needs. Generally, the smaller the preset threshold, the smaller the time difference between the first and second sampling times, the higher the sampling frequency, and the more accurate the obtained battery level value.
[0088] In some embodiments, a first charge change value is obtained based on a first current value, a second current value of the battery at a second sampling time, and the time difference between the first sampling time and the second sampling time.
[0089] In one embodiment, the second current value of the battery at the second sampling time can be obtained based on the voltage value of the battery at the second sampling time.
[0090] In step S502, the electronic device can determine the second charge value of the battery at the second sampling time based on the first charge value obtained in step S301 and the first charge change value obtained in step S502.
[0091] In this embodiment of the disclosure, the first charge change value can be obtained by using the time difference between the first sampling time and the second sampling time and the first current value at the first sampling time, thereby achieving rapid and accurate acquisition of the second charge value at the second sampling time.
[0092] Optionally, step S501 may include: determining the product of the first current value and the time difference as the first change in electrical quantity.
[0093] Understandably, we assume that the battery current remains constant between the first and second sampling times. Therefore, the electronic device can determine the first change in battery charge from the first sampling time to the second sampling time by multiplying the first current value by the time difference.
[0094] Optionally, the first battery charge value is the battery charge value obtained for the first time after the battery-powered device is powered on. Therefore, step S301 may include: determining the battery charge value when the device is powered off as the first battery charge value.
[0095] Understandably, after an electronic device is powered on, it can sample the battery level at a preset sampling frequency. Typically, the first sampling moment can be the power-on sampling moment. When the first battery level value is the battery level value obtained for the first time after the battery-powered electronic device is powered on, that is, when the first sampling moment is the power-on sampling moment, the battery level in the device's off state can be obtained and determined as the first battery level value.
[0096] It is evident that the battery level at the first sampling moment is not determined by the battery level at the previous sampling moment, nor by the battery consumption between the previous and first sampling moments, but rather by the battery level when the device is powered off. Typically, the battery level when the device is powered off can be obtained by acquiring the battery's open-circuit voltage and using this open-circuit voltage along with a preset charge / discharge curve.
[0097] In some embodiments, obtaining the battery's open-circuit voltage value includes detecting the battery's open-circuit voltage value.
[0098] Understandably, an ADC can detect the battery's open-circuit voltage, and the battery charge value obtained from the open-circuit voltage is more accurate when the device is off.
[0099] In this embodiment of the disclosure, by determining the battery charge value when the device is powered off as the first charge value, the first charge value can be obtained accurately and quickly.
[0100] Optionally, after step S303, the process may include: taking the second sampling time as the new first sampling time, and returning to execute the steps of obtaining the first charge value, determining the first current value, and determining the second charge value, so as to determine the third charge value of the battery at the third sampling time, wherein the third sampling time is after the second sampling time.
[0101] Understandably, by using the second sampling time as the new first sampling time and executing steps S301 to S301, a second battery level value at the new second sampling time can be obtained, which in turn yields a third battery level value at the third sampling time following the second sampling time. Therefore, for any given sampling time, the battery level value at that sampling time can be obtained based on the battery level values at previous sampling times. Thus, by repeatedly executing steps S301 to S301, this embodiment of the application can obtain the battery level value at each sampling time, thereby completing the battery level estimation.
[0102] For example, a first current value can be obtained based on a first power value at a first sampling time, a second power value can be obtained based on the first power value and the first current value, a second current value can be obtained based on the second power value at the second sampling time, a third power value can be obtained based on the second power value and the second current value, and so on.
[0103] In this embodiment of the disclosure, the electronic device can obtain the power value at any sampling time, thereby meeting the user's usage needs.
[0104] Optionally, before step S302, the method may further include: obtaining a first voltage value of the battery in a first operating state; obtaining a second voltage value of the battery in a second operating state, wherein the current value of the battery in the second operating state is greater than the current value of the battery in the first operating state; and obtaining a circuit resistance value based on the first voltage, the second voltage, and the current value of the battery in the second operating state.
[0105] In some embodiments, the current value of the battery in the first operating state is infinitely close to zero. In this case, the first voltage value of the battery in the first operating state can also be understood as the battery's no-load voltage value. In some embodiments, the current value of the battery in the second operating state is much greater than zero. In this case, the second voltage value of the battery in the second operating state can also be understood as the battery's load voltage value.
[0106] Understandably, after obtaining the battery's second voltage value (i.e., the battery's load voltage value), the battery's first voltage value (i.e., the battery's open-circuit voltage value), and the battery's current value (i.e., the battery's load current) in the second operating state, the electronic device can obtain the battery's circuit resistance value according to Ohm's law.
[0107] In this embodiment of the disclosure, the circuit resistance value can be obtained based on the battery voltage under different operating conditions, thereby enabling the evaluation of the battery status.
[0108] Secondly, embodiments of this disclosure provide a battery circuit for implementing the power estimation method in any of the embodiments of the first aspect described above. Figure 6 This is a schematic diagram of a battery circuit structure according to an exemplary embodiment of the present disclosure. Figure 2 ,like Figure 6 As shown, the battery circuit may include: a first resistor R1 connected in series, a battery, and a second resistor R2;
[0109] The battery includes: a cell CELL connected in series and a battery resistor R0; the first end of the first resistor R1 is grounded, and the second end of the first resistor R1 is connected to the cell CELL; the first end of the second resistor R2 is connected to the battery resistor R, and the second end of the second resistor R2 is connected to the detection module through the interface VBAT; here, the detection module can be arranged on a circuit board (denoted as PCB).
[0110] The battery is used to generate voltage at the second terminal of the second resistor R2 (or at the interface VBAT) so that the detection module can determine the battery's charge level based on the voltage.
[0111] Understandably, when the electronic device is powered off, the voltage generated at the second terminal of the second resistor R2 can be a first value, and the detection module can detect this voltage with the first value to obtain the battery's open-circuit voltage value. When the electronic device is powered on, the voltage generated at the second terminal of the second resistor R2 can be a second value, and the detection module can detect this voltage with the second value to obtain the battery's load voltage value.
[0112] In one embodiment, the detection module may be an ADC.
[0113] Understandably, after obtaining the battery's open-circuit voltage and load voltage values through the detection module, the electronic device can obtain the battery's charge level at sampling times such as the first sampling time and the second sampling time, according to the method in any embodiment of the first aspect. Specific implementation processes can be found in the description of any embodiment of the first aspect, and will not be repeated here for the sake of brevity.
[0114] Below, in conjunction with Figures 3 to 5 The method shown and Figure 6 The battery circuit shown illustrates, with a specific embodiment, the power estimation method provided by this disclosure.
[0115] First, obtain the charge / discharge curve of the battery provided by the battery manufacturer. For example, the charge / discharge curve could be... Figure 1 The OCV-DOD curve shown.
[0116] Secondly, after the battery is assembled into the electronic device, immediately measure the resistance of the battery path from the positive terminal to the negative terminal (or the internal resistance of the battery's internal circuit and the external resistance of the battery's external circuit), i.e., the circuit resistance.
[0117] The first step is to record the battery's first voltage value when the electronic device is in standby mode (the standby current is very small, almost unloaded). This first voltage value is the cell voltage, which is the battery's unloaded voltage value.
[0118] The second step is to connect a constant current source between the positive and negative terminals, set a constant current, and record the second voltage value of the battery. Then, the circuit resistance is equal to the sum of the path resistance and the battery resistance, i.e., R. road =(V1-V2) / I set , where R road Indicates the circuit resistance value, V1 represents the first voltage value, V2 represents the second voltage value, I set This represents a constant current value. After obtaining the circuit resistance value, it can be recorded in the electronic device's system software for easy retrieval later.
[0119] For example, Figure 7This is a schematic diagram illustrating the detection of circuit resistance according to an exemplary embodiment of the present disclosure, such as... Figure 7 As shown, a constant current source (denoted as D) is connected to connection points A and B of the battery circuit. The constant current generated by the constant current source D flows through connection point B to the first resistor R1, then through the battery cell CELL and the battery resistor R0 to the second resistor R2, and finally flows back to the constant current source D through connection point A. When the constant current flows through the battery circuit, the VBAT interface can record the battery's load voltage value, i.e., the second voltage value.
[0120] Thirdly, electronic devices can use the following steps to calculate the battery's charge level.
[0121] The first step involves the coulomb meter detecting the no-load voltage value of the electronic device before powering on, under conditions of no significant load removal (almost equivalent to no load).
[0122] The second step is to obtain the depth of discharge before power-on based on the open-circuit voltage value and the OCV-DOD curve, and calculate the initial charge value of the battery. Specifically, DOD0 = (1-Q0) / Q, where OCV0 represents the open-circuit voltage value before power-on, DOD0 represents the depth of discharge before power-on, Q0 represents the initial charge value of the battery, and Q represents the charge amount when the battery is fully charged.
[0123] The third step is to record the on-load voltage value at the moment of power-on when the electronic device is first powered on. This moment is recorded as T0.
[0124] The fourth step is to arrive at time T1 after a time interval t0 (e.g., 1 ms) from time T0. Since this time is very short, the current can be considered constant during this period, thus obtaining the current during time t0. Specifically, I0 = (OCV0 - vbat0) / R road Where I0 represents the current value during time t0, and vbat0 represents the on-load voltage value at the moment of power-on.
[0125] The fifth step is to calculate the change in charge during time t0. Specifically, Q... T0 =I0*t0, where Q T0 This represents the change in electrical charge within time t0.
[0126] Step 6: After time t0, the time is T1. At this point, the charge value and depth of discharge at time T1 are obtained. Specifically, Q... 01 =Q0-Q T0 , where Q 01 This represents the charge value at time T1. DOD1 = Q 01 / Q, where DOD1 represents the depth of discharge at time T1.
[0127] Step 7: Obtain the open-circuit voltage value at time T1 based on the OCV-DOD curve and the depth of discharge at time T1.
[0128] Step 8: Repeat steps 3 through 7. At time T1, the on-load voltage is detected. Time t1 elapses after time T1, which is time T2. During the period from time T2 to time T1, the current remains constant. Thus, parameters such as the current value during time t1, the change in charge during time t1, the charge value at time T2, the depth of discharge at time T2, and the no-load voltage value at time T2 are obtained to determine the charge value. Specifically, I1 = (OCV1 - vbat1) / R road Where I1 represents the current value during time t1, OCV1 represents the no-load voltage value at time T1, and vbat1 represents the detected on-load voltage value at time T1. Q T1 =I1*t1, where Q T1 This represents the change in charge over time t1. Q 02 =Q1-Q T1 , where Q 02 This represents the charge value at time T2. DOD2 = Q 02 / Q, where DOD2 represents the depth of discharge at time T2. When the depth of discharge at time T2 is DOD2, the corresponding open-circuit voltage value at time T2 can be OCV2.
[0129] Understandably, by repeating steps three through seven above, as long as the time intervals t0 and t1 are short enough, values such as DOD0, DOD1, and DOD2 can be obtained, thereby accurately measuring the battery level.
[0130] For example, Figure 8 This is a schematic diagram illustrating the principle of a power estimation method according to an exemplary embodiment of the present disclosure, such as... Figure 8 As shown, when the interval between two sampling times is small, the current between the two sampling times can be considered constant. Therefore, the above steps can be used to calculate the change in charge in segments to obtain the charge values at times T0, T1 and T2.
[0131] In this embodiment, it is not necessary to obtain the battery charge value by using a combination of precision resistors and coulomb counters. This reduces hardware costs and frees up internal space in electronic devices, especially for small electronic devices such as watches and wristbands, allowing for a reduction in the area occupied by components on the circuit board.
[0132] Thirdly, embodiments of this disclosure provide a power estimation device. Figure 9 This is a schematic diagram of the structure of a power estimation device according to an exemplary embodiment of the present disclosure, such as... Figure 9As shown, the power estimation device 900 may include: a first obtaining unit 901 configured to obtain a first power value of the battery at a first sampling time; a first determining unit 902 configured to determine a first current value of the battery at the first sampling time based on the first power value; and a second determining unit 903 configured to determine a second power value of the battery at a second sampling time based on the first power value and the first current value, wherein the second sampling time is after the first sampling time.
[0133] Optionally, the first determining unit 902 is further configured to: determine the no-load voltage value of the battery at the first sampling time based on the first charge value and a preset charge-discharge curve, wherein the preset charge-discharge curve is used to represent the relationship between the battery charge value and the no-load voltage value; detect the load voltage value of the battery at the first sampling time; and determine the first current value based on the no-load voltage value at the first sampling time, the load voltage value at the first sampling time, and the circuit resistance value, wherein the circuit resistance value includes the resistance value of the battery's internal circuit and the resistance value of the battery's external circuit.
[0134] Optionally, the second determining unit 903 is further configured to obtain a first charge change value based on the first current value and the time difference between the first sampling time and the second sampling time, wherein the first charge change value represents the change in the charge of the battery at the first sampling time and the charge at the second sampling time; and to determine a second charge value based on the first charge value and the first charge change value.
[0135] Optionally, the second determining unit 903 is further configured to determine the product of the first current value and the time difference as the first electrical quantity change value.
[0136] Optionally, the first power value is the power value of the battery first obtained after the battery-powered device is powered on; wherein, the first obtaining unit is further configured to determine the power value of the battery when the device is powered off as the first power value.
[0137] Optionally, the power estimation device 900 includes: a third determining unit, configured to, after determining a second power value of the battery at a second sampling time, take the second sampling time as a new first sampling time, and return to perform the steps of obtaining the first power value, determining the first current value, and determining the second power value, so as to determine a third power value of the battery at a third sampling time, wherein the third sampling time is after the second sampling time.
[0138] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here. It should be noted that the second determining unit may include the detection module described above in the multiple embodiments. The detection module may be implemented in hardware or software.
[0139] Fourthly, embodiments of this disclosure provide an electronic device. Figure 10 This is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure. For example, the electronic device 1000 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0140] Reference Figure 10 The electronic device 1000 may include one or more of the following components: processing component 1002, memory 1004, power supply component 1006, multimedia component 1008, audio component 1010, input / output (I / O) interface 1012, sensor component 1014, and communication component 1016.
[0141] Processing component 1002 typically controls the overall operation of electronic device 1000, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 1002 may include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1002 may include one or more modules to facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002.
[0142] Memory 1204 is configured to store various types of data to support the operation of electronic device 1000. Examples of such data include at least one of the following: instructions for any application or method operating on electronic device 1000, contact data, phonebook data, messages, pictures, and videos. Memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0143] Power supply component 1006 provides power to various components of electronic device 1000. Power supply component 1006 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1000.
[0144] Multimedia component 1008 includes a screen that provides an output interface between electronic device 1000 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1008 includes a front-facing camera and / or a rear-facing camera. When electronic device 1000 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0145] Audio component 1010 is configured to output and / or input audio signals. For example, audio component 1010 includes a microphone (MIC) configured to receive external audio signals when electronic device 1000 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
[0146] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0147] Sensor assembly 1014 includes one or more sensors for providing state assessments of various aspects of electronic device 1000. For example, sensor assembly 1014 may detect the on / off state of electronic device 1000, the relative positioning of components, such as the display and keypad of electronic device 1000, changes in position of electronic device 1000 or a component of electronic device 1000, the presence or absence of user contact with electronic device 1000, the orientation or acceleration / deceleration of electronic device 1000, and temperature changes of electronic device 1000. Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1014 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 1014 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0148] Communication component 1016 is configured to facilitate wired or wireless communication between electronic device 1000 and other devices. Electronic device 1000 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1016 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.
[0149] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0150] Fifthly, embodiments of this disclosure also provide a non-transitory computer-readable storage medium including instructions, such as a memory 1004 including executable instructions or a computer program, which can be executed by a processor 1020 of an electronic device 1000 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0151] In a sixth aspect, embodiments of this disclosure also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in any of the first aspects of this disclosure.
[0152] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0153] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for estimating energy consumption, characterized in that, include: Obtain the first charge value of the battery at the first sampling time; Based on the first charge value, determine the first current value of the battery at the first sampling time; Based on the first charge value and the first current value, a second charge value of the battery is determined at a second sampling time, wherein the second sampling time is after the first sampling time.
2. The method according to claim 1, characterized in that, Determining the first current value of the battery at the first sampling time based on the first charge value includes: Based on the first charge value and the preset charge-discharge curve, the no-load voltage value of the battery at the first sampling time is determined, wherein the preset charge-discharge curve is used to represent the relationship between the charge value and the no-load voltage value of the battery. The load voltage value of the battery at the first sampling time is detected; The first current value is determined based on the no-load voltage value, the load voltage value, and the circuit resistance value at the first sampling time, wherein the circuit resistance value includes the resistance value of the internal circuit of the battery and the resistance value of the external circuit of the battery.
3. The method according to claim 1, characterized in that, Determining the second charge value of the battery at the second sampling time based on the first charge value and the first current value includes: A first charge change value is obtained based on the first current value and the time difference between the first sampling time and the second sampling time, wherein the first charge change value represents the change in the charge of the battery at the first sampling time and the charge at the second sampling time; The second power value is determined based on the first power value and the first power change value.
4. The method according to claim 3, characterized in that, The step of obtaining the first charge change value based on the first current value and the time difference between the first sampling time and the second sampling time includes: The product of the first current value and the time difference is determined as the first change in electrical charge.
5. The method according to claim 1, characterized in that, The first charge value is the charge value of the battery first obtained after the battery-powered device is powered on; Wherein, obtaining the first charge value of the battery at the first sampling time includes: The battery charge level when the device is powered off is determined as the first charge level.
6. The method according to claim 1, characterized in that, After determining the second charge value of the battery at the second sampling time, the method further includes: The second sampling time is taken as the new first sampling time, and the steps of obtaining the first charge value, determining the first current value, and determining the second charge value are returned to determine the third charge value of the battery at the third sampling time, wherein the third sampling time is after the second sampling time.
7. A power estimation device, characterized in that, include: The first acquisition unit is configured to acquire the first charge value of the battery at the first sampling time; The first determining unit is configured to determine the first current value of the battery at the first sampling time based on the first charge value; The second determining unit is configured to determine the second charge value of the battery at a second sampling time based on the first charge value and the first current value, wherein the second sampling time is after the first sampling time.
8. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 6.