Aspects of determining the charging capacity of a battery
By calculating battery capacity during transitions between sleep states with zero currents, the method allows for accurate battery calibration in non-fully charged states, enhancing user experience through precise battery percentage estimation.
Patent Information
- Application Number
- DE102016105832
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2015-12-11
- Filing Date
- 2016-03-30
- Publication Date
- 2025-11-06
- Estimated Expiration
- 2036-03-30
AI Technical Summary
The calibration of battery capacity in electronic devices can only be performed in a fully charged state, imposing severe requirements and limitations.
The battery capacity is calibrated by determining battery states and capacities during transitions between sleep states where charge and discharge currents are zero, allowing calculation of actual full charge capacity without requiring the battery to be fully charged.
Enables battery capacity calibration in a non-fully charged state, improving accuracy and user experience by providing precise remaining battery percentage estimates.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
AREA OF INVENTION
[0001] The present invention relates to the field of electronics technology, in particular an information processing method and an electronic device. BACKGROUND
[0002] The use of different types of electronic devices, such as mobile phones, tablet computers and notebook computers, has gained popularity with the ongoing development of science and technology.
[0003] The battery represents a critical part of the electronic device; however, the battery capacity gradually decreases under the influence of various factors such as temperature, discharge rate, or battery aging during the use of the electronic device, resulting in a lower accuracy of the battery capacity reported by the system.
[0004] In the prior art, when calibrating the battery capacity, the battery must first be fully charged and then discharged from 100% to 1% while the actual amount of discharged electricity is recorded in order to change the reported capacity. This calibration procedure requires the battery to be fully charged and then discharged, which imposes stricter requirements. A method for determining battery capacity is known from CN 1 03 513 187 B.
[0005] In implementing the technical solution in the embodiment of the present application, the inventors of the present application discovered that, according to the prior art, at least the following technical problem exists:
[0006] The technical problem that the calibration of the battery capacity can only be carried out when the battery is fully charged is inherent in state-of-the-art electronic devices. SUMMARY
[0007] Embodiments of the present invention provide information processing methods, electronic devices and computer program products to realize the calibration of the battery capacity for the battery in a not fully charged state of the electronic device and to solve the technical problem.
[0008] According to one aspect of the present invention, a computer-implemented information processing method comprises performing steps on a processor, which include the following: Determining at least one first battery state of a battery of an electronic device in a first resting state, wherein the charging current and the discharging current of the battery are zero; Determine at least one second battery state of the battery in a second quiescent state and at least one of a charge or discharge capacity of the battery in the first quiescent state and the second quiescent state, if it is found that the battery transitions from the first quiescent state to a non-quiescent state and from the non-quiescent state to a second quiescent state, where the charge current and the discharge current are each zero, and Determining an actual full charging capacity of the battery as a function of at least one first battery state, at least one second battery state, and at least one determined charging and discharging capacity of the battery in the first rest state and second rest state.
[0009] According to another aspect of the present invention, an electronic device comprises a housing, a battery arranged in the housing, and a processing unit arranged in the housing and connected to the battery. The processing unit determines at least one first battery state of the battery in an initial quiescent state, wherein the charging current and the discharging current of the battery are each zero. The processing unit determines at least one second battery state of the battery in a second quiescent state and at least one charging or discharging capacity of the battery during the initial quiescent state and the second quiescent state in response to the battery transitioning from the initial quiescent state to a non-quiescent state and from the non-quiescent state to a second quiescent state, wherein the charging current and the discharging current are each zero.The processing unit also determines an actual full charge capacity of the battery as a function of at least one first battery state, at least one second battery state, and at least one of the determined charging and discharging capacity of the battery during the first rest state and the second rest state.
[0010] According to another aspect of the present invention, a computer program product comprises a non-volatile computer storage medium containing program code instructions for execution by a processing unit communicating with a battery. The program code instructions cause the processing unit to: at least one initial battery state of the battery in an initial resting state, wherein the charging current and discharging current of the battery are each zero; at least one second battery state of the battery in a second quiescent state is determined, and at least one charging or discharging capacity of the battery during the first quiescent state and the second quiescent state is determined in response to the battery transitioning from the first quiescent state to a non-quiescent state and from the non-quiescent state to a second quiescent state, where the charging current and the discharging current are each zero; and an actual full charging capacity of the battery as a function of at least one first battery state, at least one second battery state and at least one of the determined charging and discharging capacity of the battery in the first rest state and second rest state. BRIEF DESCRIPTION OF THE DRAWINGS Fig. Figure 1 is a flowchart of a specific implementation of an information processing method according to embodiment 1 of the present application; Fig. Figure 2 is a flowchart of a specific implementation of an information processing method according to embodiment 1 of the present application, which includes further steps after step S102; Fig. Figure 3 is a flowchart of a specific implementation of an information processing method according to embodiment 1 of the present application, which, after step S102, further comprises a step S201; Fig. Figure 4 is a structural view of an electronic device in a second embodiment of the present application. DETAILED DESCRIPTION OF ASPECTS OF THE INVENTION
[0011] An information processing method and an electronic device according to the embodiment of the present application, which are used to solve the technical problem that the calibration of the battery capacity in the prior art can only be carried out in a fully charged state of the battery present in the electronic device, thus achieves the technical effect that the calibration of the battery capacity in the battery can be realized in a not fully charged state.
[0012] To solve the aforementioned technical problem, the technical solution in the embodiment of the present application proposes the following general idea: Receive at least one initial battery status message when the electronic device's battery is in its initial sleep state; Receiving at least one second battery status message of the battery in a second hibernation state and the charging or discharging capacity of the battery during the first hibernation state and the second hibernation state, if it has been determined that the battery transitions from the first hibernation state to non-hibernation state and from non-hibernation state to the second hibernation state, wherein, when the battery is in the first hibernation state and the second hibernation state, both the charging current and the discharging current of the battery are zero.
[0013] The actual full charging capacity of the battery can be calculated based on at least one first battery status message, at least one second battery status message, and the charging or discharging capacity.
[0014] In the aforementioned technical solution, wherein at least one initial battery status message is received when the battery of the electronic device is in an initial sleep state; at least one second battery status message is received in a second sleep state; and the charging or discharging capacity of the battery is determined during the initial sleep state and the second sleep state when it is determined that the battery transitions from the initial sleep state to the non-sleep state and from the non-sleep state to the second sleep state, wherein, when the battery is in the initial sleep state and the second sleep state, the charging and discharging currents of the battery are each zero; the actual full charge capacity of the battery can be determined based on the at least one initial battery status message.The battery's full charge capacity can be calculated from at least one second battery status message and the charging or discharging capacity. Unlike the prior art, where the battery must first be fully charged and then discharged from 100% to 1% to calibrate its capacity, recording the actual discharged capacity to correct the reported capacity, this technical solution allows the actual full charge capacity of the battery to be calculated based on the status messages received between the two resting states of the electronic device's battery, as well as the charging or discharging capacity between these states, without requiring the battery to be fully charged beforehand. This solves the prior art technical problem.that the calibration of the battery capacity can only be carried out when the battery in the electronic device is fully charged, thereby achieving the technical effect that the calibration of the battery capacity can even be realized in the battery when it is not fully charged.
[0015] For a better understanding of the above-mentioned technical solution, the technical solution of the present invention is subsequently described in detail with reference to the drawings and specific embodiments, whereby it is to be understood that the embodiments of the present application and the specific characteristics in the embodiments are intended to serve the detailed description of the technical solution of the present invention and are not to be regarded as restrictive, wherein the embodiments of the present application and the technical characteristics in the embodiments can be combined with each other in the event that there are no conflicts. First embodiment
[0016] An information processing method according to the first embodiment of the present application can be used for an electronic device, wherein the electronic device may be a smartphone, a tablet PC or a notebook as well as another electronic device; wherein no special limits are set in this regard in this embodiment of the present application.
[0017] See Fig. 1. The present application provides an information processing system comprising the following: S101: Receive / determine at least one initial battery status message when the electronic device's battery is in its initial sleep state; S102: Obtain at least one second battery state message of the battery in a second hibernation state and the charge or discharge capacity of the battery during the first hibernation state and the second hibernation state when it is determined that the battery transitions from the first hibernation state to non-hibernation and from non-hibernation to the second hibernation state, wherein the charge and discharge current of the battery are each zero when the battery is in the first hibernation state and the second hibernation state; and wherein, from the at least one first battery state message, the at least one second battery state message, and the charge or discharge capacity, the actual full charge capacity of the battery can be calculated.
[0018] In the embodiment of the present application, step S101 is performed first: Obtaining / determining at least one initial battery status message when the battery of the electronic device is in the initial sleep state.
[0019] The specific implementation of step S101 in the embodiment of the present application comprises: Obtaining the initial current remaining battery capacity when the electronic device's battery is in its initial sleep state, and obtaining the initial cell temperature of the battery cell.
[0020] The concrete implementation of step S102 therefore includes: Maintaining the second current remaining battery capacity of the electronic device's battery in the second resting state and maintaining the second cell temperature of the cell.
[0021] In the specific implementation, the historical power consumption data of the battery must also be preserved, since in the embodiment of the present application, the historical power consumption data is stored in the BMU (Battery Management Unit) of the electronic device, wherein the BMU is arranged on the circuit board inside the battery and is always and directly powered by the battery cell, and wherein the BMU is also always in an operating state, even when the electronic device is in switched-off mode, therefore the step of preserving the historical power consumption data of the battery can be determined both before step S101, after the execution of step S101, or during the execution of step S101.All three of the above implementation methods are applicable and can be selected by the person skilled in the art in this field according to the actual needs; no special restrictions are imposed in the embodiment of the present application.
[0022] In the embodiment of the present application, the historical full charge capacity of the battery is taken, in particular as a concrete example of the historical power consumption data, such as 38 Wh or 40 Wh, wherein in the embodiment of the present application the historical full charge capacity of the battery is, in particular, a full charge capacity updated via a recent calculation or a primary full charge capacity at the time of the first use of the battery, such asa full charge and discharge test, which is carried out for the battery of the electronic device in the factory before leaving the factory, calculating the primary full charge capacity of the battery, wherein both of the above situations are executable, wherein the historical full charge capacity is determined as appropriate to the situation as a full charge capacity updated via a last calculation or a primary full charge capacity, whereby in the embodiment of the present application no special restrictions are imposed in this respect.
[0023] In addition to the step of obtaining the historical full charge capacity of the battery, the concrete implementation also requires determining the first current remaining battery capacity in the initial resting state and the first cell temperature of the battery cell, in particular, for example: the determined first current remaining battery capacity is 30 Wh and represents 80% of the historical full charge capacity, with the first cell temperature being 20 degrees.
[0024] Accordingly, in the embodiment of the present application, at least one second battery status message of the electronic device must also be obtained in a second sleep state, wherein in the specific implementation the method before obtaining the at least one second battery status message of the electronic device in the second sleep state further comprises the following: Obtain / determine the current remaining battery capacity.
[0025] Perform the following step if the difference between the current remaining battery capacity and the first remaining battery capacity is within a preset range: Obtain the second current remaining battery capacity of the battery in the second resting state and the second cell temperature of the cell.
[0026] To ensure the calibration accuracy of the battery capacity in the specific implementation, it should be ensured that the change in the percentage of the remaining battery capacity between the two resting states lies within the preset range, wherein the preset range in the embodiment of the present application is, in particular, 30%-50%; the reason for limiting the preset range to 30%-50% in the embodiment of the present application is that if the change in the percentage of the remaining battery capacity is less than 30%, as is the case, for example,2%, the battery capacity must be calibrated after a moment of use of the electronic device, thus increasing the frequency of calibration and causing inconvenience to the user; if the change in the percentage of remaining battery capacity is higher than 50%, such as 80%, the battery capacity will only be calibrated when there is a larger change in the percentage of remaining battery capacity, thus reducing the number of automatic battery capacity calibrations and affecting the accuracy of the battery capacity calibration.
[0027] In the specific implementation, the preset range is 11 Wh-30 Wh, where the received current remaining battery capacity is 11 Wh and represents 30% of the historical full charge capacity, and where the first current remaining battery capacity is 30 Wh, namely, the difference of 19 Wh between the current remaining battery capacity and the first current remaining battery capacity lies within the preset range of 11 Wh-30 Wh, and at least one second battery status message is received from the battery in the second sleep state.
[0028] In the embodiment of the present application, the at least one specific second battery status message is the second current remaining battery capacity, the second cell temperature of the cell and the charging or discharging capacity between the first rest state and the second rest state, such as, for example, the second current remaining battery capacity is 11 Wh, the second cell temperature is 25 degrees and the discharge capacity is 20 Wh.
[0029] In the embodiment of the present application, the charging current and the discharging current of the battery are each zero when the battery is in the first resting state and the second resting state.
[0030] See Fig. 2, in the embodiment of the present application, the procedure after performing step S102 further comprises the following: S201: Obtaining the current calculated full charge capacity of the battery based on the first current remaining battery capacity, the second current remaining battery capacity and the charging or discharging capacity, where the current calculated full charge capacity is a current full charge capacity of the battery determined by calculation; S202: Maintaining the actual full charge capacity of the battery based on historical power consumption data, the current calculated full charge capacity, the first cell temperature, and the second cell temperature.
[0031] In the concrete implementation, step S201 is executed first: Obtaining the current calculated full charge capacity of the battery based on the first current remaining battery capacity, the second current remaining battery capacity and the charging or discharging capacity, where the current calculated full charge capacity is a full charge capacity of the battery currently determined by calculation.
[0032] In the embodiment of the present application, after obtaining the first current remaining battery capacity, the second current remaining battery capacity, and the charging or discharging capacity between the first hibernation state and the second hibernation state, the current calculated full charge capacity of the battery is calculated using the formula FCC1=PC / (RSOC1-RSOC2), where FCC1 is the current calculated full charge capacity of the battery and PC is the charging or discharging capacity, and where RSOC1 and RSOC2 are the percentage of the first remaining battery capacity and the percentage of the second remaining battery capacity, respectively, calculated from the first current remaining battery capacity and the second current remaining battery capacity.
[0033] Given the conditions PC=20 wh, RSOC1=80 % and RSOC2=30 %, the current calculated full charge capacity of the battery, which is 40 wh, can be calculated in the concrete implementation by inserting these values into the above-mentioned formula.
[0034] After performing step S201, in the embodiment of the present application, step S202 must be performed: Obtaining the actual full charge capacity of the battery based on the historical power consumption data, the current calculated full charge capacity, the first cell temperature and the second cell temperature.
[0035] See Fig. 3, the concrete implementation of step S201 in the concrete implementation includes in particular the following steps: S301: Obtaining a rate of change of the full charge capacity based on the historical full charge capacity, the current calculated full charge capacity, the first cell temperature and the second cell temperature, where the rate of change is a ratio of the difference between the historical full charge capacity and the current calculated full charge capacity to the difference between the first cell temperature and the second cell temperature; S302: Use the historical full charging capacity as the actual full charging capacity if the rate of change is higher than a preset value; S303: Use the current calculated full charging capacity as the actual full charging capacity if the rate of change is lower than the preset value.
[0036] In the embodiment of the present application, the historical full charge capacity of the battery is taken as an example of the historical power consumption data.
[0037] Due to cumulative errors during the calculation, in the concrete implementation, after calculating the current calculated full charge capacity of the battery, it is possible that the calculated current full charge capacity is not the actual full charge capacity of the battery. Therefore, the rate of change of the full charge capacity must also be calculated based on the obtained current calculated full charge capacity, the historical full charge capacity, the first cell temperature and the second cell temperature, and with the corresponding formula (FCC1-FCC0) / (T2-T1), where FCC0 is the historical full charge capacity, T1 is the first cell temperature and T2 is the second cell temperature.
[0038] After calculating the rate of change, the rate of change and a preset value are compared, with the historical full load capacity being used as the actual full load capacity if the rate of change is higher than a preset value, and with the current calculated full load capacity being used as the actual full load capacity if the rate of change is lower than a preset value.
[0039] If, during the actual implementation, under the conditions of FCC1=40wh, FCC0=38wh, T1=25 degrees and T2=20 degrees, the calculated rate of change is 0.4 and the preset value is 1, the rate of change is lower than the preset value and the currently calculated full charging capacity is used as the actual full charging capacity, namely 40 wh.
[0040] In the embodiment of the present application, the method, after the step of obtaining the actual full charging capacity based on the at least one first battery status message, the at least one second battery status message and the charging or discharging capacity, further comprises the following: Obtaining an initial discharge capacity of the battery, where the initial discharge capacity is a capacity discharged by the battery from a fully charged state to the current time; Obtaining the current actual remaining battery capacity and the percentage of the current actual remaining battery capacity of the battery at the current time based on the actual full charge capacity and the first discharge capacity.
[0041] In the concrete implementation, after obtaining the actual full charge capacity, the first discharge capacity of the battery must also be obtained in order to adjust the percentage of the remaining battery capacity. In the embodiment of the present application, the first discharge capacity is the capacity discharged by the battery from the fully charged state to the current time, such as a capacity discharged by the battery from 100% to 65%. In particular, the first discharge capacity is DC=26.6 Wh. If a calculation is now performed using the historical full charge capacity of FCC0=38 Wh, the percentage of the remaining battery capacity is 30%.
[0042] Since in the embodiment of the present application a calibration for the full charge capacity is completed and the actual full charge capacity updated after calibration is 40 Wh, the percentage of the current actual remaining battery capacity of the battery is (40 Wh-26.6 Wh) / 40 Wh = 34%, therefore the percentage of the remaining battery capacity of the battery should be adjusted to 34%.
[0043] Since, in the embodiment of the present application, the full charging capacity of the battery is calibrated and subsequently the percentage of the remaining battery capacity is calibrated and adjusted, the user can be provided with a percentage of the remaining battery capacity with high accuracy, so that the user can operate the electronic device appropriately based on the percentage of the actual remaining battery capacity, in order to avoid the electronic device suddenly switching off during the usage process due to inaccuracies in the displayed percentage of the remaining battery capacity, thus preventing inconvenience to the user; therefore, the technical solution in the embodiment of the present application can improve the user experience in comparison. Second embodiment
[0044] See Fig. 4, the embodiment of the present application further provides an electronic device comprising the following: Housing 40; Battery 41, which is arranged in housing 40; Processing unit 42, which is arranged in the housing 40 and connected to the battery 41, and serves to obtain at least one initial battery status message when the battery of the electronic device is in an initial sleep state, to obtain at least one second battery status message of the battery in a second sleep state, and a charging or discharging capacity of the battery in the initial sleep state and the second sleep state when it is determined that the battery transitions from the initial sleep state to a non-sleep state and from the non-sleep state to the second sleep state, wherein the charging current and the discharging current of the battery are each zero when the battery is in the initial sleep state and the second sleep state, and wherein, based on the at least one initial battery status message,The actual full charging capacity of the battery can be calculated using at least one second battery status message and the charging or discharging capacity.
[0045] Optionally, processing unit 42 can be used for: to obtain historical battery power consumption data; to obtain the first current remaining battery capacity when the battery of the electronic device is in the initial sleep state, and to obtain the first cell temperature of the battery cell.
[0046] Optionally, processing unit 42 can be used for: to obtain the second current remaining battery capacity when the battery is in the second resting state and to obtain the second cell temperature of the cell.
[0047] Optionally, processing unit 42 can be used for: to obtain the current remaining battery capacity of the battery before the step of obtaining the second current remaining battery capacity of the battery in the second resting state and the step of obtaining the second cell temperature of the cell; To perform the following step if the current remaining battery capacity is within the preset range: Obtain the second current remaining battery capacity and the second cell temperature of the battery cell in the second resting state.
[0048] Optionally, processing unit 42 can be used for: to obtain the current calculated full charge capacity of the battery based on the first current remaining battery capacity, the second current remaining battery capacity and the charging or discharging capacity, where the current calculated full charge capacity is the currently calculated full charge capacity of the battery; to obtain the actual full charging capacity of the battery based on historical power consumption data, the current calculated full charging capacity, the first cell temperature and the second cell temperature.
[0049] Optionally, processing unit 42 can be used for: to obtain the rate of change of the full charge capacity based on the historical full charge capacity, the current calculated full charge capacity, the first cell temperature and the second cell temperature, where the rate of change is a ratio of the difference between the historical full charge capacity and the current calculated full charge capacity to the difference between the first cell temperature and the second cell temperature; then to use the historical full charging capacity as the actual full charging capacity if the rate of change is higher than a preset value; then to use the currently calculated full charging capacity as the actual full charging capacity if the rate of change is lower than the preset value.
[0050] Optionally, processing unit 42 can be used for: After the step of obtaining the actual full charge capacity of the battery based on the at least one first battery status message, the at least one second battery status message and the charging or discharging capacity, to obtain the first discharge capacity of the battery, wherein the first discharge capacity is a capacity discharged by the battery from the fully charged state to the current time; to obtain the current actual remaining battery capacity and the percentage of the current actual remaining battery capacity at the current time based on the actual full charge capacity and the first discharge capacity.
[0051] The following one or more technical effects can be achieved through one or more technical solutions in the embodiment of the present application: Since, in the embodiment of the present application, the technical solution is to obtain at least one first battery status message of the battery of an electronic device in an initial sleep state, at least one second battery status message of the battery in a second sleep state, and the charging or discharging capacity of the battery in the initial sleep state and the second sleep state when it is determined that the battery transitions from the initial sleep state to a non-sleep state and from the non-sleep state to the second sleep state, wherein the charging current and the discharging current of the battery are each zero when the battery is in the initial sleep state and the second sleep state, it is possible to determine, based on the at least one first battery status message,The actual full charge capacity of the battery can be calculated using at least one second battery status message and the charging or discharging capacity. Unlike the prior art, where the battery must first be fully charged and then discharged from 100% to 1% to calibrate the battery capacity, while the actually discharged capacity is recorded to correct the reported capacity, this technical solution allows the actual full charge capacity of the battery to be calculated based on the status messages received between the two resting states of the battery in the electronic device, as well as the charging or discharging capacity between the two resting states, without the need to fully charge the battery beforehand. This solves the prior art technical problem.that the calibration of the battery capacity can only be carried out when the battery in the electronic device is fully charged, thereby achieving the technical effect that the calibration of the battery capacity can even be realized in the battery when it is not fully charged.
[0052] In the embodiment of the present application, a technical solution is to obtain the current remaining battery capacity of the battery and to perform the following step if the current remaining battery capacity is within a preset range: obtaining the second current remaining battery capacity of the battery in the second resting state and obtaining the second cell temperature of the cell. In this technical solution, before obtaining the second current remaining battery capacity in the second resting state, it must be assessed whether the determined value of the current remaining battery capacity is within a preset range, and only if the value is within the preset range is the second current remaining battery capacity determined in order to ensure the accuracy of the battery capacity calibration, thus achieving a technical benefit in terms of the accuracy of the battery capacity calibration.
[0053] In the embodiment of the present application, a technical solution is to obtain the first discharge capacity of the battery, wherein the first discharge capacity is a capacity discharged by the battery from the fully charged state to the current time; the current actual remaining battery capacity of the battery and the percentage of the current actual remaining battery capacity of the battery at the current time based on the actual full charge capacity and the first discharge capacity.In the present technical solution, after obtaining the actual full charge capacity, the percentage of the actual remaining battery capacity is to be determined based on the determined actual full charge capacity and the first discharge capacity, so that users of the electronic device can be offered an accurate percentage of the remaining battery capacity, thereby achieving the technical effect of an improved user experience.
[0054] The technical solution provided in the embodiment of the present application is to obtain at least one first battery status message of the battery of an electronic device in an initial sleep state, at least one second battery status message of the battery in a second sleep state, and the charging or discharging capacity of the battery in the initial sleep state and the second sleep state when it is determined that the battery transitions from the initial sleep state to a non-sleep state and from the non-sleep state to the second sleep state, wherein the charging current and the discharging current of the battery are each zero when the battery is in the initial sleep state and the second sleep state, and wherein, based on the at least one first battery status message,The actual full charge capacity of the battery can be calculated using at least one second battery status message and the charging or discharging capacity. Unlike the prior art, where the user must manually calibrate the battery capacity, in the present technical solution the battery management unit automatically calibrates the battery capacity based on the determined battery status parameters in two resting states and the battery's charging or discharging capacity. During battery capacity calibration, the user's operation of the electronic device is not affected, thus achieving a technical improvement in usability.
[0055] Experts in this field will understand that embodiments of the present invention can be provided in the form of methods, systems, or computer program products. Therefore, the present invention can employ a full-hardware embodiment, a full-software embodiment, or a combination of both. Furthermore, the present invention can take the form of a computer program product that can be implemented on usable storage media (including, but not limited to, hard disk storage, CD-ROM, optical storage media, etc.) containing one or more computer program codes.
[0056] The present invention is described by reference to flowcharts and / or block diagrams of the processes, devices (systems), and computer program products, based on the embodiment of the present invention. It should be understood that the combination of each process can be implemented in flowcharts and / or block diagrams, and / or the process of flowcharts and / or block diagrams, and / or the block of computer program instructions.These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other processors of the programmable data processing device to create a machine to produce, by means of instructions executed by a processor of a computer or other programmable data processing device, a device that performs the function specified in one or more processes in the flowcharts and / or in one or more of the block diagrams.
[0057] These computer program instructions can also be stored in a computer-readable memory that can control a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce finished product comprising an instruction set, the instruction set implementing the function specified in one or more processes in the flowchart and / or in one or more blocks of the block diagram.
[0058] These computer program instructions can also be loaded onto a computer or other programmable data processing devices, so that a series of operational steps are carried out on the computer or other programmable devices to generate the process realized by the computer. This makes the instructions executed on the computer or other programmable devices available to a step that serves to realize a function specified in one or more processes in the flowcharts and / or in one or more blocks of the block diagrams.
[0059] More precisely, a computer program instruction corresponding to the information processing method in the embodiment of the present application can be stored on a storage medium, such as a CD, a hard disk and a USB disk, wherein, when computer program instructions corresponding to the information processing method are read or executed in a storage medium by an electronic device, it comprises the following steps: Receive at least one initial battery status message when the electronic device's battery is in its initial sleep state; Receiving at least one second battery status message from the battery in a second hibernation state and a charge or discharge capacity of the battery in the first hibernation state and the second hibernation state, when it is determined that the battery transitions from the first hibernation state to a non-hibernation state and from the non-hibernation state to the second hibernation state, wherein the charge current and the discharge current of the battery are each zero when the battery is in the first hibernation state and the second hibernation state, and wherein the actual full charge capacity of the battery can be calculated from the at least one first battery status message, the at least one second battery status message and the charge or discharge capacity.
[0060] Optional that historical battery power consumption data can be obtained; The computer instruction stored in the storage medium, corresponding to the step - receiving at least one initial battery status message of the battery of the electronic device in its initial sleep state - during a specific execution of the corresponding computer instructions, comprises the following steps: to obtain the first current remaining battery capacity when the battery of the electronic device is in its initial sleep state, and to obtain the first cell temperature of the battery cell; The computer instruction stored in the storage medium, corresponding to the step - receiving at least one second battery status message from the battery in the second sleep state - during the actual execution of the corresponding computer instructions, comprises the following steps: to obtain the second current remaining battery capacity when the battery is in the second resting state and to obtain the second cell temperature of the cell.
[0061] Optionally, other computer instructions are also stored in the storage medium, whereby the other computer instructions are executed before the execution of the computer instruction corresponding to the step - obtaining the second current remaining battery capacity of the battery in the second hibernation state and the step of obtaining the second cell temperature of the cell - wherein the execution process comprises the following steps: to obtain the current remaining battery capacity of the battery. To perform the following step if the current remaining battery capacity is within the preset range: Obtain the second current remaining battery capacity and the second cell temperature of the battery cell in the second resting state.
[0062] Optionally, other computer instructions are also stored in the storage medium, the other computer instructions being executed after the execution of the corresponding computer instructions for the steps: the step - Obtaining a second battery status message of the battery in at least the second hibernation state and the charge or discharge capacity of the battery in the first hibernation state and the second hibernation state - wherein the execution processes comprise the following steps: to obtain the current calculated full charge capacity of the battery based on the first current remaining battery capacity, the second current remaining battery capacity and the charging or discharging capacity, where the current calculated full charge capacity is the currently calculated full charge capacity of the battery; to obtain the current calculated full charging capacity based on historical power consumption data, the current calculated full charging capacity, the first cell temperature and the second cell temperature.
[0063] Optionally, other computer instructions are also stored in the storage medium, whereby, if the historical power consumption data is the historical full charge capacity, the step of obtaining the actual full charge capacity based on the historical power consumption data, the current calculated full charge capacity, the first cell temperature and the second cell temperature during the execution of the corresponding computer instructions includes: to obtain the rate of change of the full charge capacity based on the historical full charge capacity, the current calculated full charge capacity, the first cell temperature and the second cell temperature, where the rate of change is the ratio of the difference between the historical full charge capacity and the current calculated full charge capacity to the difference between the first cell temperature and the second cell temperature; then to use the historical full charging capacity as the actual full charging capacity if the rate of change is higher than a preset value; then to use the currently calculated full charging capacity as the actual full charging capacity if the rate of change is lower than the preset value.
[0064] Optionally, other computer instructions are also stored in the storage medium, whereby the other computer instructions are executed after the execution of the corresponding computer instructions for the step - Obtaining the actual full charge capacity based on the historical power consumption data, the currently calculated full charge capacity, the first cell temperature and the second cell temperature - wherein the execution processes comprise the following steps: to obtain the first discharge capacity of the battery, where the first discharge capacity is a capacity discharged by the battery from a fully charged state to the current time; to obtain the current actual remaining battery capacity and the percentage of the current actual remaining battery capacity of the battery at the current time, based on the actual full charge capacity and the first discharge capacity.
[0065] Although the preferred embodiment of the present invention has been explained, a person skilled in the art may make further changes and modifications to the embodiments once they understand the essential creative idea. Therefore, the claims should be understood to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
[0066] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the concept and scope of the present invention. If the modifications and variations of the present invention are covered by the scope of the claims of the present invention and the equivalent technology, then the present invention also includes the modifications and variations.
Claims
[1] Computer-implemented method comprising performing the following steps on a processor: Determine (S101) at least one first battery state of a battery (41) of an electronic device while the battery (41) is in a first rest state, wherein a charging current and a discharging current of the battery (41) are zero; Determine (S102) at least one second battery state of the battery (41) in a second quiescent state and at least one of a charging or discharging capacity of the battery (41) in the first quiescent state and the second quiescent state in response to the battery (41) transitioning from the first quiescent state to a non-quiescent state and from the non-quiescent state to a second quiescent state, wherein the charging current and the discharging current of the battery (41) are each zero, Determining an actual full charge capacity of the battery (41) as a function of the at least one first battery state, the at least one second battery state and the determined at least one charge and discharge capacity of the battery (41) in the first rest state and second rest state. [2] The method of claim 1, further comprising: Determining historical battery power consumption data (41) and wherein the step of determining the at least one first battery state comprises determining a first current remaining battery capacity and a first cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in its initial sleep state; and wherein the step of determining the at least one second battery state comprises determining a second current remaining battery capacity and a second cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in the second sleep state. [3] The method of claim 2, further comprising: Determining the current remaining battery capacity of the battery (41) prior to the step of determining the second current remaining battery capacity and the second cell temperature; and wherein the step of determining the second current remaining battery capacity and the second cell temperature of the battery cell while the battery (41) of the electronic device is in the second hibernation state is carried out by determining that the current remaining battery capacity is within a preset range. [4] The method of claim 3, further comprising: Determine (S201) a current calculated full charge capacity of the battery (41) as a function of the first current remaining battery capacity, the second current remaining battery capacity and the at least one charge and discharge capacity of the battery (41) in the first rest state and second rest state after determining the at least one second battery state when the battery (41) is in the second rest state, and the at least one charge and discharge capacity of the battery (41) in the first rest state and second rest state. [5] The method of claim 4, further comprising: Determine (S202) an actual full charge capacity of the battery (41) as a function of the historical power consumption data, the currently calculated full charge capacity, the first cell temperature and the second cell temperature. [6] Method according to claim 5, wherein the historical power consumption data is a historical full charge capacity, the method further comprising the following steps: Determine (S301) a rate of change of the full charge capacity as the ratio of a difference value between the historical full charge capacity and the currently calculated full charge capacity to a difference value between the first cell temperature and the second cell temperature; Use (S302) the historical full load capacity as the actual full load capacity when the rate of change is determined to be greater than a preset value; and Use (S303) the currently calculated full load capacity as the actual full load capacity if it is determined that the rate of change is less than the preset value. [7] Method according to claim 1, further comprising: Determining the discharge capacity of a battery (41) in a state of first and second quiescence as the amount of capacity that has been discharged by the battery (41) from a full state of charge to a state of charge at the current time; and Determining an amount of actual remaining battery capacity of battery (41) at the current time and a percentage of the current actual remaining battery capacity of battery (41) as a function of the actual full charge capacity and the first discharge capacity. [8] Electronic device comprising: a case (40); a battery (41) arranged in the housing (40), and a processing unit (42) which is arranged in the housing (40) and connected to the battery (41); wherein the processing unit (42): at least one initial battery state of the battery (41) in an initial resting state, wherein a charging current and a discharging current of the battery (41) are each zero; at least one second battery state of the battery (41) in the second rest state and at least one charging or discharging capacity of the battery (41) in the first rest state and second rest state are determined in response to the battery (41) transitioning from the first rest state to a non-rest state and from the non-rest state to a second rest state, where the charging current and the discharging current are each zero; and an actual full charge capacity of the battery (41) as a function of the at least one initial battery state, the at least one second battery state and the determined at least one of the charge and discharge capacity of the battery (41) in the initial rest state and second rest state. [9] Electronic device according to claim 8, wherein the processing unit (42): historical power consumption data of the battery (41) determined; at least one initial battery state is determined by determining an initial current remaining battery capacity and an initial cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in its initial resting state; and at least one second battery state is determined by determining a second current remaining battery capacity and a second cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in the second hibernation state. [10] Electronic device according to claim 9, wherein the processing unit (42): a currently remaining battery capacity of the battery (41) is determined before the second currently remaining battery capacity and the second cell temperature are determined; and the second current remaining battery capacity and the second cell temperature of the battery cell, while the battery (41) of the electronic device is in the second resting state, in response to the determination that the current remaining battery capacity is within a preset range. [11] Electronic device according to claim 10, wherein the processing unit (42): a current calculated full charge capacity of the battery (41) as a function of the first current remaining battery capacity, the second current remaining battery capacity and at least one of the charge and discharge capacity of the battery (41) determined in the first rest state and second rest state after the at least one second battery state when the battery (41) is in the second rest state, and at least one of the charge and discharge capacity of the battery (41) determined in the first rest state and second rest state. [12] Electronic device according to claim 11, wherein the processing unit (42): an actual full charge capacity of the battery (41) as a function of the historical power consumption data, the currently calculated full charge capacity, the first cell temperature and the second cell temperature. [13] Electronic device according to claim 12, wherein the historical power consumption data is a historical full charge capacity, and wherein the processing unit (42): a rate of change of the full charging capacity is determined as the ratio of a difference value between the historical full charging capacity and the currently calculated full charging capacity to a difference value between the first cell temperature and the second cell temperature; The historical full load capacity is used as the actual full load capacity if the rate of change is determined to be greater than a preset value; and The currently calculated full charging capacity is assumed to be the actual full charging capacity if it is determined that the rate of change is smaller than the preset value. [14] Electronic device according to claim 8, wherein the processing unit (42): the discharge capacity of the battery (41) in a first and second rest state is determined as the amount of capacity that has been discharged by the battery (41) from a full state of charge to a state of charge at the current time; and a quantity of actual remaining battery capacity of the battery (41) at the current time and a percentage of the current actual remaining battery capacity of the battery (41) as a function of the actual full charge capacity and the first discharge capacity. [15] Computer program product, comprising: a non-volatile computer storage medium comprising program code instructions for execution by a processing unit (42) which is in communication with a battery (41), thereby causing the processing unit (42): at least one initial battery state of the battery (41) in an initial resting state, wherein the charging current and discharging current of the battery (41) are each zero; at least one second battery state of the battery (41) in a second quiescent state is determined, and at least one charging or discharging capacity of the battery (41) in the first quiescent state and the second quiescent state is determined in response to the battery (41) transitioning from the first quiescent state to a non-quiescent state and from the non-quiescent state to a second quiescent state, wherein the charging current and the discharging current are each zero; and an actual full charge capacity of the battery (41) as a function of the at least one first battery state, the at least one second battery state and the determined at least one of the charge and discharge capacity of the battery (41) in the first rest state and second rest state. [16] Computer program product according to claim 15, wherein the program code instructions for execution by the processing unit (42) further cause the processing unit (42) to: historical power consumption data of the battery (41) determined; at least one initial battery state is determined by determining an initial current remaining battery capacity and an initial cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in its initial resting state; and at least one second battery state is determined by determining a second current remaining battery capacity and a second cell temperature of a cell of the battery (41) while the battery (41) of the electronic device is in the second resting state. [17] Computer program product according to claim 16, wherein the program code instructions for execution by the processing unit (42) further cause the processing unit (42) to: a current remaining battery capacity of the battery (41) is determined before the second current remaining battery capacity and the second cell temperature are determined; and the second current remaining battery capacity and the second cell temperature of the battery cell, while the battery (41) of the electronic device is in the second resting state, in response to the determination that the current remaining battery capacity is within a preset range. [18] Computer program product according to claim 17, wherein the program code instructions for execution by the processing unit (42) further cause the processing unit (42) to: a current calculated full charge capacity of the battery (41) as a function of the first current remaining battery capacity, the second current remaining battery capacity and the at least one charge and discharge capacity of the battery (41) determined in the first and second rest states after the at least one second battery state in the second rest state and the at least one charge and discharge capacity of the battery (41) in the first and second rest states have been determined; and an actual full charge capacity of the battery (41) as a function of the historical power consumption data, the currently calculated full charge capacity, the first cell temperature and the second cell temperature. [19] Computer program product according to claim 18, wherein the historical power consumption data is a historical full charge capacity, and wherein the program code instructions for execution by the processing unit (42) further cause the processing unit (42): a rate of change of the full charging capacity is determined as the ratio of a difference value between the historical full charging capacity and the currently calculated full charging capacity to a difference value between the first cell temperature and the second cell temperature; The historical full load capacity is used as the actual full load capacity if the rate of change is determined to be greater than a preset value; and The currently calculated full charging capacity is used as the actual full charging capacity if it is determined that the rate of change is less than the preset value. [20] Computer program product according to claim 16, wherein the program code instructions for execution by the processing unit (42) further cause the processing unit (42) to: the discharge capacity of the battery (41) in a first and second rest state is determined as the amount of capacity that has been discharged by the battery (41) from a full state of charge to a state of charge at the current time; and a quantity of actual remaining battery capacity of the battery (41) at the current time and a percentage of the current actual remaining battery capacity of the battery (41) as a function of the actual full charge capacity and the first discharge capacity.
Citation Information
Patent Citations
CN000103513187B