Battery power processing method and device, electronic equipment, storage medium and computer program product

By compensating for the real-time remaining capacity during the constant voltage charging phase, the target remaining capacity is determined, solving the problem of continuously increasing remaining charging time prediction in electronic devices, improving user experience, and being applicable to multiple operating systems.

CN121749462APending Publication Date: 2026-03-27MOORE THREAD INTELLIGENT TECHNOLOGY (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the prediction of the remaining charging time of electronic devices during the constant voltage charging stage is continuously increasing due to linear reasoning, which violates common sense and affects user experience.

Method used

During the constant voltage charging phase, the real-time remaining capacity is compensated, and a target remaining capacity greater than the real-time remaining capacity is determined to predict the remaining charging time. This compensation is achieved through a preset gain coefficient or other methods.

Benefits of technology

This makes the prediction of remaining charging time closer to linear calculation, avoids continuous growth, improves the user experience, and is applicable to multiple operating systems without adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121749462A_ABST
    Figure CN121749462A_ABST
Patent Text Reader

Abstract

The invention relates to a battery electric quantity processing method and device, electronic equipment, a storage medium and a computer program product. The method comprises the following steps: determining real-time residual capacity corresponding to a target battery; when it is determined that the target battery enters the constant-voltage charging stage, the real-time residual capacity is compensated, the target residual capacity larger than the real-time residual capacity is determined, and the target residual capacity is used for predicting the residual charging time after the target battery enters the constant-voltage charging stage. According to the embodiment of the invention, after the target battery enters the constant-voltage charging stage, the target residual capacity used for predicting the residual charging time can be determined by compensating the real-time residual capacity with the nonlinear change characteristic, so that the prediction process of the residual charging time is closer to linear operation processing; and a continuously increasing anti-common sense phenomenon occurs in the residual charging time, so that the use experience of the electronic equipment of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer power management, and particularly relates to a battery power processing method and device, electronic equipment, storage medium and computer program product. BACKGROUND

[0002] In the prior art, an electronic device (for example, a device based on Ubuntu TM , etc.) that predicts the remaining charging time based on an operating system needs to read data such as the full charge capacity, the real-time remaining capacity and the real-time charging power of a battery or its corresponding embedded controller (EC) through an advanced configuration and power interface (ACPI) to realize the prediction of the estimated time to full. However, in the constant voltage (CV) stage of the battery, the real-time charging power decreases with the decrease of the real-time charging current, and the prediction of the remaining charging time is still based on the linear inference of the real-time charging power, so that the predicted remaining charging time becomes longer or even continuously increases with the charging, which violates the user's common sense and affects the user's experience. SUMMARY

[0003] Therefore, the present disclosure provides a battery power processing method and device, electronic equipment, storage medium and computer program product.

[0004] According to an aspect of the present disclosure, a battery power processing method is provided, including: determining a real-time remaining capacity corresponding to a target battery; in a case where it is determined that the target battery enters a constant voltage charging stage, compensating the real-time remaining capacity to determine a target remaining capacity greater than the real-time remaining capacity, wherein the target remaining capacity is used to predict a remaining charging time of the target battery after entering the constant voltage charging stage.

[0005] In a possible implementation, the compensating the real-time remaining capacity to determine the target remaining capacity greater than the real-time remaining capacity in the case where it is determined that the target battery enters the constant voltage charging stage includes: in the case where it is determined that the target battery enters the constant voltage charging stage, compensating the real-time remaining capacity according to a preset gain coefficient to determine the target remaining capacity, wherein the preset gain coefficient is greater than 1.

[0006] In a possible implementation, the compensating, according to the preset gain coefficient, the real-time remaining capacity to determine the target remaining capacity in the case that it is determined that the target battery enters the constant-voltage charging phase includes: compensating, according to the preset gain coefficient, the real-time remaining capacity to determine a compensated remaining capacity in the case that it is determined that the target battery enters the constant-voltage charging phase; determining the compensated remaining capacity as the target remaining capacity in the case that the compensated remaining capacity is less than the full-charge capacity corresponding to the target battery; or determining the full-charge capacity as the target remaining capacity in the case that the compensated remaining capacity is greater than or equal to the full-charge capacity.

[0007] In a possible implementation, the method further includes: determining the preset gain coefficient according to battery parameters and / or configuration information corresponding to the target battery.

[0008] In a possible implementation, the method further includes: determining that the target battery enters the constant-voltage charging phase in the case that the real-time remaining capacity meets a preset capacity threshold.

[0009] In a possible implementation, the method further includes: determining a real-time charging parameter corresponding to the target battery; and determining a remaining charging time prediction result of the target battery according to the target remaining capacity and the real-time charging parameter in the case that it is determined that the target battery enters the constant-voltage charging phase.

[0010] In a possible implementation, the method further includes: determining a real-time charging parameter corresponding to the target battery; and determining a remaining charging time prediction result of the target battery according to the target remaining capacity and the real-time charging parameter in the case that it is determined that the target battery enters the constant-voltage charging phase.

[0011] In a possible implementation, the method further includes: determining full-charge prompt information of the target battery and keeping charging the target battery until the real-time remaining capacity is equal to the full-charge capacity corresponding to the target battery in the case that the remaining charging time prediction result is equal to 0.

[0012] According to another aspect of the present disclosure, a battery power processing apparatus is provided, including: a data determination module configured to determine a real-time remaining capacity corresponding to a target battery; and a remaining capacity compensation module configured to compensate the real-time remaining capacity to determine a target remaining capacity greater than the real-time remaining capacity in the case that it is determined that the target battery enters a constant-voltage charging phase, wherein the target remaining capacity is used to predict a remaining charging time of the target battery after the target battery enters the constant-voltage charging phase.

[0013] According to another aspect of the present disclosure, there is provided an electronic device comprising a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the steps of the above method.

[0014] According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above method.

[0015] According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program, or a non-transitory computer readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the above method.

[0016] In the embodiments of the present disclosure, after determining the real-time residual capacity corresponding to the target battery, the real-time residual capacity is compensated in the case that the target battery enters the constant voltage charging phase, to determine a target residual capacity greater than the real-time residual capacity, so as to realize "advance reporting" of the battery residual capacity in the subsequent process; and the target residual capacity is used to predict the residual charging time of the target battery after entering the constant voltage charging phase, so that, at the level of underlying data, the process of predicting the residual charging time in the constant voltage charging phase by the operating system is intervened, so that the prediction process of the residual charging time in the constant voltage charging phase is closer to linear operation, avoiding continuous growth of the residual charging time, and even leading to the user's misconception that the target battery can never be fully charged, and other counterintuitive phenomena, thereby improving the user experience. Moreover, the battery power processing method of the present disclosure does not need to adjust the operating system or the specific method of predicting the residual charging time by the operating system, and has high universality and reliability.

[0017] Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present disclosure and serve to explain the principles of the present disclosure.

[0019] Figure 1 A flowchart of a battery power processing method according to an embodiment of the present disclosure is shown;

[0020] Figure 2 A schematic diagram of a battery power processing method according to an embodiment of the present disclosure applied to an embedded controller is shown;

[0021] Figure 3 A block diagram of a battery power processing device according to an embodiment of the present disclosure is shown;

[0022] Figure 4 A block diagram of an electronic device according to an embodiment of the disclosure is shown. DETAILED DESCRIPTION

[0023] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the drawings represent the same elements or features having the same functions. Although various aspects of embodiments are illustrated in the drawings, the drawings are not necessarily drawn to scale unless specifically noted.

[0024] As used herein, the terms "include," "comprise," "have," or variants thereof do not necessarily exclude the presence of one or more other features, integers, elements, steps, components or functions, but these terms simply identify the presence of any stated features, integers, elements, steps, components or functions.

[0025] When an element is referred to as being "connected," "coupled," "responsive," or variants thereof to another element, it can be directly connected, coupled, or responsive to the other element, or intervening elements can be present.

[0026] Although the terms first, second, third, etc. can be used herein to describe various elements / operations, these elements / operations should not be limited by these terms. These terms are only used to distinguish one element / operation from another element / operation. Thus, a first element / operation in some embodiments could be termed a second element / operation in other embodiments without departing from the teachings of the present inventive concept.

[0027] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations.

[0028] In addition, for the purpose of convenience and brevity, detailed descriptions of well-known functions and structures incorporated in the present disclosure can be omitted. It will be appreciated that those skilled in the art, with the benefit of this disclosure, can practice the present disclosure without one or more of the specific details.

[0029] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data need to comply with relevant laws, regulations, and standards in the relevant region.

[0030] In the prior art, an electronic device (for example, an electronic device based on Ubuntu TMIn order to obtain the battery full capacity, the real-time remaining capacity and the real-time charging power and the like of the battery or the embedded controller corresponding to the battery through ACPI, the remaining charging time is predicted at the operating system level.

[0031] For the lithium-ion battery (including lithium-containing polymer battery, ternary lithium battery, and lithium iron phosphate battery, etc.), lead-acid battery and the like, there is a constant voltage charging stage in the charging process. After the battery enters the constant voltage charging stage, the corresponding real-time charging power will decrease with the decrease of the real-time charging current (Charging Current), resulting in the non-linear change of the real-time remaining capacity of the battery.

[0032] However, when the operating system predicts the remaining charging time in the constant voltage charging stage of the battery, it still makes linear reasoning based on the real-time remaining capacity and the real-time charging power, resulting in the continuously increasing of the predicted remaining charging time. For example, when the user first checks the remaining charging time, the electronic device displays the remaining charging time of 10 minutes. After 10 minutes, the user checks the remaining charging time for the second time, and the electronic device displays the remaining charging time of 15 minutes. This phenomenon obviously violates the user's common sense.

[0033] Moreover, as the real-time remaining capacity of the battery gradually approaches the corresponding full capacity, the user may have the illusion that the electronic device can never be fully charged due to the continuous growth of the predicted remaining charging time. This anti-common sense phenomenon in the prediction and display of the remaining charging time of the electronic device will lead the user to incorrectly judge that the electronic device has charging abnormalities, operating system running abnormalities and the like, affecting the user's experience of using the electronic device.

[0034] Therefore, the present disclosure provides a battery power processing method, which can compensate the real-time remaining capacity after the target battery enters the constant voltage charging stage, determine a target remaining capacity greater than the real-time remaining capacity, and predict the remaining charging time, thereby reducing the influence of the non-linear change of the real-time remaining capacity on the prediction of the remaining charging time, making the prediction process of the remaining charging time closer to linear operation processing, avoiding the anti-common sense phenomenon of the continuously increasing of the predicted remaining charging time, and improving the user's experience of using the electronic device. The battery power processing method provided by the present disclosure is described in detail below.

[0035] Figure 1 A flowchart of a battery power processing method according to an embodiment of the present disclosure is shown. As shown in FIG. 1, the battery power processing method includes the following steps. Figure 1As shown, the battery power processing method can be executed by an electronic device such as a terminal device or a server, and the terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The battery power processing method can be implemented by a processor calling computer-readable instructions stored in a memory. Alternatively, the battery power processing method can be executed by a server. For example, Figure 1 As shown, the battery power processing method includes:

[0036] In step S101, the real-time remaining capacity corresponding to the target battery is determined.

[0037] The target battery can represent any type of storage battery that has a constant voltage charging phase during charging. The specific form can be flexibly set according to actual use requirements. For example, the target battery can include lithium polymer batteries, ternary lithium batteries, and iron lithium phosphate batteries, and lead-acid storage batteries, etc. The present disclosure does not make specific limitations on this.

[0038] During the charging process of the target battery, the real-time remaining capacity corresponding to the target battery can be determined to facilitate data processing at the level of underlying data and avoid affecting the operating system of the electronic device. The specific method for determining the real-time remaining capacity can refer to the implementation in the related art, for example, the real-time remaining capacity can be read by the battery management system (BMS) of the target battery, etc. The present disclosure does not make specific limitations on this.

[0039] In step S102, in the case where it is determined that the target battery enters the constant voltage charging phase, the real-time remaining capacity is compensated, and a target remaining capacity greater than the real-time remaining capacity is determined, wherein the target remaining capacity is used to predict the remaining charging time of the target battery after entering the constant voltage charging phase.

[0040] In a case where it is determined that the target battery enters the constant-voltage charging phase, in order to optimize the remaining charging time prediction process of the operating system of the electronic device corresponding to the target battery, the real-time remaining capacity of the target battery can be compensated before reporting the relevant data of the target battery to the operating system, a target remaining capacity greater than the real-time remaining capacity is determined, and the target remaining capacity is reported to the operating system for the operating system to predict the remaining charging time of the target battery after entering the constant-voltage charging phase, thereby reducing the influence of the nonlinear change characteristics of the real-time remaining capacity on the prediction of the remaining charging time, making the prediction process of the remaining charging time closer to linear operation processing, thereby ensuring that the predicted remaining charging time will not have the abnormal phenomenon of continuous increase, and improving the user experience. On the other hand, since the target remaining capacity is greater than the real-time remaining capacity, the remaining charging time predicted based on the target remaining capacity will indicate that the target battery is full of power in advance relative to the remaining charging time predicted based on the real-time remaining capacity, thereby avoiding the situation that as the real-time remaining capacity gradually approaches the full charging capacity, the user will have the illusion that the electronic device can never be fully charged due to the continuous increase of the remaining charging time, thereby further improving the user experience of the electronic device.

[0041] The specific method for determining whether the target battery enters the constant-voltage charging phase can be flexibly set according to actual use requirements, for example, the BMS of the target battery can be used to read the real-time charging voltage of the target battery, and in a case where the time during which the real-time charging voltage remains unchanged satisfies a preset time length, it is determined that the target battery enters the constant-voltage charging phase, and the present disclosure does not make a specific limitation in this regard. The specific value of the preset time length can be flexibly set according to actual use requirements, and the present disclosure does not make a specific limitation in this regard.

[0042] The specific method for compensating the real-time remaining capacity to determine the target remaining capacity can be flexibly set according to actual use requirements, and the present disclosure does not make a specific limitation in this regard.

[0043] In an example, in a case where it is determined that the target battery enters the constant-voltage charging phase, the real-time remaining capacity is compensated to determine a target remaining capacity greater than the real-time remaining capacity, which can include: summing the real-time remaining capacity and a target compensation increment to determine the target remaining capacity.

[0044] The specific value of the target compensation increment can be flexibly set according to actual use requirements, for example, the target compensation increment can be set as a fixed value, or the target compensation increment can be determined as a preset proportion of the real-time remaining capacity, and the present disclosure does not make a specific limitation in this regard. The specific value of the preset proportion can also be flexibly set according to actual use requirements, and the present disclosure does not make a specific limitation in this regard.

[0045] In this case, the target remaining capacity can be represented by formula (1):

[0046] CompensationCapacity = RemainingCapacity + Increment (1)

[0047] wherein, CompensationCapacity represents the target remaining capacity; RemainingCapacity represents the real-time remaining capacity; and Increment represents the target compensation increment.

[0048] In a possible implementation, in a case where it is determined that the target battery enters the constant-voltage charging phase, the real-time remaining capacity is compensated, and the target remaining capacity greater than the real-time remaining capacity is determined, including: in a case where it is determined that the target battery enters the constant-voltage charging phase, the real-time remaining capacity is compensated according to a preset gain coefficient, and the target remaining capacity is determined, wherein the preset gain coefficient is greater than 1.

[0049] wherein, the specific value of the preset gain coefficient can be flexibly set according to actual use requirements, for example, the preset gain coefficient can be set to any one value in 103% to 110%, and the present disclosure does not make specific limitations thereto.

[0050] In an example, in a case where the target battery is a lithium ion battery of a notebook computer based on Ubuntu TM , the preset gain coefficient can be set to 105%.

[0051] In this case, the target remaining capacity can be represented as formula (2):

[0052] CompensationCapacity = RemainingCapacity x GainCoefficient (2)

[0053] wherein, CompensationCapacity represents the target remaining capacity; RemainingCapacity represents the real-time remaining capacity; and GainCoefficient represents the preset gain coefficient.

[0054] By compensating the real-time remaining capacity, the "advance reporting" of the battery remaining capacity can be realized subsequently. At the level of the underlying data, the intervention system predicts the remaining charging time in the constant voltage charging phase, so that the prediction process of the remaining charging time in the constant voltage charging phase is closer to linear operation, without the need to adjust the operating system or the specific method of the operating system for predicting the remaining charging time, thereby ensuring that the battery power processing method provided by the present disclosure has high universality and can adapt to any operating system that can read battery full charging capacity, real-time remaining capacity and real-time charging parameters and other data to realize the prediction of the remaining charging time, such as Windows Server TM , Linux TM , ChromeOS TM , etc.

[0055] In one possible implementation, the battery power processing method provided by the present disclosure can be applied to the embedded controller corresponding to the target battery.

[0056] Figure 2 A schematic diagram showing that the battery power processing method according to an embodiment of the present disclosure is applied to an embedded controller is shown. As Figure 2 shown, after the embedded controller firmware reads the full charging capacity, real-time remaining capacity, and real-time charging current and real-time charging voltage and other real-time charging parameters of the target battery from the battery management system of the target battery, the embedded controller firmware first determines the target remaining capacity using the real-time remaining capacity and a preset gain coefficient at the embedded controller firmware level, and reports the full charging capacity, real-time charging current and real-time charging voltage to the operating system kernel (such as the kernel of Ubuntu TM , etc.) together. The operating system kernel will perform preliminary data processing based on the received target remaining capacity, full charging capacity, real-time charging current and real-time charging voltage to obtain the real-time charging power, remaining power and full charging capacity of the target battery for the operating system to predict the remaining charging time.

[0057] Therefore, by applying the battery power processing method provided by the present disclosure to the embedded controller corresponding to the target battery, without any adjustment to the operating system of the electronic device and the method of predicting the remaining charging time itself, the stability and reliability of the operating system of the electronic device itself can be ensured, and the applicability of the present disclosure can be further improved. Moreover, the battery power processing method provided by the present disclosure only needs to perform relatively simple data processing on the real-time remaining capacity underlying data in the EC firmware, without the need to increase additional hardware costs, while reducing the impact on the operating power consumption of the entire electronic device.

[0058] In the embodiments of the present disclosure, after determining the real-time remaining capacity corresponding to the target battery, the real-time remaining capacity can be compensated in the case that the target battery enters the constant voltage charging stage, and a target remaining capacity greater than the real-time remaining capacity is determined to realize the "advance reporting" of the remaining capacity of the battery in the subsequent stage. The target remaining capacity is used to predict the remaining charging time of the target battery after entering the constant voltage charging stage, so that at the level of underlying data, the process of predicting the remaining charging time in the constant voltage charging stage is intervened, so that the prediction process of the remaining charging time in the constant voltage charging stage is closer to linear operation, avoiding the continuous growth of the remaining charging time, and even leading to the user's illusion that the target battery can never be fully charged and other counterintuitive phenomena, and improving the user experience. Moreover, the battery power processing method of the present disclosure does not need to adjust the operating system or the specific method of the operating system for predicting the remaining charging time, and has high universality and reliability.

[0059] In a possible implementation, in the case that the target battery enters the constant voltage charging stage, the real-time remaining capacity is compensated according to the preset gain coefficient to determine the target remaining capacity, including: in the case that the target battery enters the constant voltage charging stage, the real-time remaining capacity is compensated according to the preset gain coefficient to determine the compensated remaining capacity; in the case that the compensated remaining capacity is less than the full charging capacity corresponding to the target battery, the compensated remaining capacity is determined as the target remaining capacity; in the case that the compensated remaining capacity is greater than or equal to the full charging capacity, the full charging capacity is determined as the target remaining capacity.

[0060] In order to avoid the target remaining capacity obtained after compensating the real-time remaining capacity being greater than the full charging capacity corresponding to the target battery, resulting in data abnormality when the target remaining capacity is reported to the operating system for predicting the remaining charging time, the value of the target remaining capacity can be limited by taking the full charging capacity as a threshold.

[0061] Specifically, in the case that the target battery enters the constant voltage charging stage, the real-time remaining capacity can be compensated according to the preset gain coefficient to determine the compensated remaining capacity. In the case that the compensated remaining capacity is less than the full charging capacity corresponding to the target battery, the compensated remaining capacity can be determined as the target remaining capacity; in the case that the compensated remaining capacity is greater than or equal to the full charging capacity, the full charging capacity is determined as the target remaining capacity to limit the value of the target remaining capacity. The specific way of determining the full charging capacity corresponding to the target battery can refer to the implementation in the related art, for example, directly reading the full charging capacity from the target battery by the BMS of the target battery, and the present disclosure does not make specific limitation thereto.

[0062] In a possible implementation, the method further includes: determining the preset gain coefficient according to the battery parameters and / or configuration information corresponding to the target battery.

[0063] The specific content of the battery parameter corresponding to the target battery can be flexibly set according to actual use requirements, for example, can include battery type, rated voltage, charge cutoff voltage, rated capacity, mass energy density, volume energy density, charge rate, charge temperature, self-discharge rate, etc., and the present disclosure does not make specific limitations thereto. The specific content of the configuration information can be flexibly set according to actual use requirements, for example, can include factory information set by the target battery manufacturer, device information of the electronic device corresponding to the target battery, etc., and the present disclosure does not make specific limitations thereto.

[0064] By using the battery parameter and / or the configuration information, the specific value of the preset gain coefficient can be flexibly set according to the actual situation of the target battery, so as to ensure that the compensation of the real-time remaining capacity has high rationality and reliability, avoid that the credibility of the remaining charging time predicted based on the target remaining capacity is too low, and reduce the probability of negatively optimizing the user experience. The specific method of determining the preset gain coefficient according to the battery parameter and / or the configuration information can be flexibly set according to actual use requirements, and the present disclosure does not make specific limitations thereto.

[0065] Through the above process, the universality of the battery power processing method provided by the present disclosure can be further increased by flexibly setting the preset gain coefficient, and the adaptability to different types of batteries and different electronic devices can be good.

[0066] In a possible implementation manner, the method further includes: in a case where the real-time remaining capacity meets a preset capacity threshold, determining that the target battery enters a constant voltage charging phase.

[0067] In the prior art, when predicting the remaining charging time at the operating system level of the electronic device, different charging phases of the battery are usually not actively distinguished, and the nonlinear charging characteristics of the battery in the constant voltage charging phase cannot be predicted. Therefore, in order to more accurately and conveniently predict the change of the charging phase and avoid adjusting the method of predicting the remaining charging time at the operating system level, it can be determined at the underlying data level whether the target battery enters the constant voltage charging phase by judging the real-time remaining capacity.

[0068] Specifically, for any battery that has a constant voltage charging phase in the charging process, when the real-time remaining capacity corresponding thereto enters a specific capacity interval, the real-time charging current will start to decrease, and the battery enters the constant voltage charging phase. Therefore, for the target battery, a preset capacity threshold corresponding to the target battery can be set, and in a case where the real-time remaining capacity meets the preset capacity threshold, it can be determined that the target battery enters the constant voltage charging phase.

[0069] The specific value of the preset capacity threshold can be flexibly set according to actual use requirements, and depends on the specific type of the target battery, and the present disclosure does not make specific limitations.

[0070] In an example, in the case of the target battery being a lithium ion battery, the real-time charging current begins to decrease when the corresponding real-time remaining capacity meets 70% to 80% of the full capacity, and therefore, the preset capacity threshold can be set to 80% of the full capacity.

[0071] On this basis, the specific timing of using the battery power processing method provided by the present disclosure can be further adjusted. For example, after the target battery enters the constant voltage charging phase, the real-time remaining capacity is not immediately compensated, but the real-time remaining capacity is compensated to determine the target remaining capacity after the real-time remaining capacity meets 95% of the full capacity.

[0072] In a possible implementation, the method further includes determining the charged time corresponding to the target battery; and determining that the target battery enters the constant voltage charging phase when the charged time meets a preset time threshold.

[0073] For any battery that has a constant voltage charging phase in the charging process, the duration of the constant current charging phase of the battery is usually fixed when the charging rate is fixed. Therefore, the change of the charging phase can be determined by setting a time window and combining the charged time of the battery.

[0074] Specifically, for the target battery, the BMS of the target battery can be used to read the charged time of the target battery during the charging process; and then by setting a preset time threshold corresponding to the target battery, it can be determined that the target battery enters the constant voltage charging phase when the charged time meets the preset time threshold. The specific value of the preset time threshold can be flexibly set according to actual use requirements, and depends on the specific type of the target battery, and the present disclosure does not make specific limitations.

[0075] Through the above process, by adding relatively simple logical judgment at the bottom data layer, the real-time remaining capacity or the charged time can be used to predict whether the target battery enters the constant voltage charging phase, without the need for complex data processing, without the need for operating system level adjustment of the electronic device corresponding to the target battery, and without the need for additional hardware costs.

[0076] In a possible implementation, the method further includes determining the real-time charging parameter corresponding to the target battery; and determining the remaining charging time prediction result of the target battery according to the target remaining capacity and the real-time charging parameter when it is determined that the target battery enters the constant voltage charging phase.

[0077] Further, during the charging process of the target battery, real-time charging parameters of the target battery can also be determined and reported to the operating system of the electronic device corresponding to the target battery. The specific method for determining the real-time charging parameters can refer to the implementation manner in the related art, for example, the BMS of the target battery can be used to read the real-time charging parameters of the target battery, and the present disclosure does not make a specific limitation in this regard.

[0078] The specific content of the real-time charging parameters corresponding to the target battery can be flexibly set according to actual use requirements, and depends on the actual type of the target battery. Generally, the real-time charging parameters can include real-time charging voltage and real-time charging current, and can also include real-time charging power, real-time battery temperature, etc., and the present disclosure does not make a specific limitation in this regard.

[0079] In the case where it is determined that the target battery enters the constant-voltage charging phase, the target remaining capacity is reported to the operating system; and then the operating system is used to determine the remaining charging time prediction result of the target battery according to the target remaining capacity and the real-time charging parameters, so as to reduce the influence of the nonlinear change characteristic of the real-time remaining capacity on the remaining charging time prediction, and make the prediction process of the remaining charging time closer to the linear operation process. Moreover, since the target remaining capacity grows faster than the real-time remaining capacity, the remaining charging time (i.e., the remaining charging time prediction result) queried by the user will not have the abnormal phenomenon of continuous increase, thereby improving the user experience.

[0080] In a possible implementation manner, the method further includes: in the case where the remaining charging time prediction result is equal to 0, determining full-charge prompt information of the target battery, and keeping charging the target battery until the real-time remaining capacity is equal to the full-charge capacity corresponding to the target battery.

[0081] In the case where the remaining charging time prediction result is equal to 0, the operating system of the electronic device corresponding to the target battery can determine the full-charge prompt information of the target battery in advance, i.e., determine that the target battery has been fully charged in advance, so as to achieve the effect of “soft full charging”, thereby avoiding the illusion that the user has that the electronic device can never be fully charged as the real-time remaining capacity gradually approaches the full-charge capacity, and improving the user experience of the electronic device.

[0082] After the operating system determines the full-charge prompt information, the charging of the target battery can still be kept until the real-time remaining capacity is equal to the full-charge capacity corresponding to the target battery, so as to achieve true full charging of the battery. On the other hand, even if the user manually stops the charging process of the target battery after receiving the full-charge prompt information, since the numerical difference between the target remaining capacity and the real-time remaining capacity is small, the use of the target battery will not be significantly affected in general, so as to achieve the coordination between the user experience and the charging control of the target battery.

[0083] In the embodiments of the present disclosure, after determining the real-time residual capacity corresponding to the target battery, the real-time residual capacity is compensated in the case that the target battery enters the constant voltage charging stage, to determine a target residual capacity greater than the real-time residual capacity, so as to realize "advance reporting" of the battery residual capacity in the subsequent stage; and the target residual capacity is used to predict the residual charging time after the target battery enters the constant voltage charging stage, so that, at the level of underlying data, the process of predicting the residual charging time in the constant voltage charging stage by the operating system is intervened, so that the prediction process of the residual charging time in the constant voltage charging stage is closer to linear operation, avoiding continuous growth of the residual charging time, and even causing the user to have the illusion that the target battery can never be fully charged, and other counterintuitive phenomena, thereby improving the user experience. Moreover, the battery power processing method of the present disclosure does not need to adjust the operating system or the specific method of predicting the residual charging time by the operating system, and has high universality and reliability.

[0084] It can be understood that the above-mentioned various method embodiments of the present disclosure can be combined with each other to form combined embodiments without deviating from the principle logic. Limited by the length of the present disclosure, the present disclosure will not be described again. Those skilled in the art can understand that in the above-mentioned method of the specific embodiment, the specific execution order of each step should be determined according to its function and possible internal logic.

[0085] In addition, the present disclosure also provides a battery power processing device, which can be used to implement any one of the battery power processing methods provided by the present disclosure. The corresponding technical solutions and descriptions can be referred to the corresponding description in the method part, and will not be described again.

[0086] Figure 3 A block diagram of a battery power processing device according to an embodiment of the present disclosure is shown. As shown in Figure 3 The device 300 includes:

[0087] The data determination module 301 is configured to determine the real-time residual capacity corresponding to the target battery.

[0088] The residual capacity compensation module 302 is configured to compensate the real-time residual capacity in the case that the target battery enters the constant voltage charging stage, to determine a target residual capacity greater than the real-time residual capacity, wherein the target residual capacity is used to predict the residual charging time after the target battery enters the constant voltage charging stage.

[0089] In a possible implementation, the residual capacity compensation module 302 is configured to compensate the real-time residual capacity according to a preset gain coefficient in the case that the target battery enters the constant voltage charging stage, to determine the target residual capacity, wherein the preset gain coefficient is greater than 1.

[0090] In a possible implementation, the remaining capacity compensation module 302 is configured to: in a case where it is determined that the target battery enters the constant-voltage charging phase, compensate the real-time remaining capacity according to a preset gain coefficient, to obtain a compensated remaining capacity; in a case where the compensated remaining capacity is less than the full-charge capacity corresponding to the target battery, determining the compensated remaining capacity as the target remaining capacity; and in a case where the compensated remaining capacity is greater than or equal to the full-charge capacity, determining the full-charge capacity as the target remaining capacity.

[0091] In a possible implementation, the apparatus 300 further includes a preset gain coefficient determination module configured to: determine the preset gain coefficient according to the battery parameter and / or the configuration information corresponding to the target battery.

[0092] In a possible implementation, the apparatus 300 further includes a charging phase prediction module configured to: in a case where the real-time remaining capacity meets a preset capacity threshold, determine that the target battery enters the constant-voltage charging phase.

[0093] In a possible implementation, the apparatus 300 further includes a charging phase prediction module configured to: determine the charged time corresponding to the target battery; and in a case where the charged time meets a preset time threshold, determine that the target battery enters the constant-voltage charging phase.

[0094] In a possible implementation, the apparatus 300 further includes a remaining charging time prediction module configured to: determine the real-time charging parameter corresponding to the target battery; and in a case where it is determined that the target battery enters the constant-voltage charging phase, determine a remaining charging time prediction result of the target battery according to the target remaining capacity and the real-time charging parameter.

[0095] In a possible implementation, the remaining charging time prediction module is further configured to: in a case where the remaining charging time prediction result is equal to 0, determine full-charge prompt information of the target battery, and keep charging the target battery until the real-time remaining capacity is equal to the full-charge capacity corresponding to the target battery.

[0096] In some embodiments, the apparatus provided by the embodiments of the present disclosure has functions or includes modules that can be used to execute the methods described in the above method embodiments, and the specific implementation can refer to the description of the above method embodiments. For brevity, details are not repeated here.

[0097] The embodiments of the present disclosure also provide an electronic device, including a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the above method.

[0098] The embodiments of the present disclosure also provide a non-volatile computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the above method.

[0099] The embodiments of the present disclosure further provide a computer program product, comprising a computer program or a nonvolatile computer readable storage medium carrying the computer program, which, when executed by a processor, implements the steps of the above method.

[0100] Figure 4 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. For example, the electronic device 1900 can be provided as a server or a terminal device. Referring to Figure 4 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions executable by the processing component 1922, such as an application program. The application program stored in the memory 1932 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to perform the above method.

[0101] The electronic device 1900 can also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.

[0102] In an exemplary embodiment, a non-volatile computer readable storage medium, such as the memory 1932 including computer program instructions, is also provided, which can be executed by the processing component 1922 of the electronic device 1900 to complete the above method.

[0103] Computer readable storage media can be any media that can be read by a machine. Such media can include, but is not limited to, optical discs, magnetic discs, magnetic tapes, electronic memories, and / or any combination thereof. Computer readable storage media can be non-transitory, in that it can be a tangible medium. In some embodiments, computer readable storage media can be non-transitory, in that it can not be a signal per se. In other embodiments, computer readable storage media can be a transitory medium, in that it can be a signal. In some embodiments, computer readable storage media can be non-transitory, in that it can not be a signal per se, but can be a tangible medium. In other embodiments, computer readable storage media can be a transitory medium, in that it can be a signal. In some embodiments, computer readable storage media can be non-transitory, in that it can not be a signal per se, but can be a tangible medium. In other embodiments, computer readable storage media can be a transitory medium, in that it can be a signal.

[0104] The computer programs (or computer readable program instructions) described herein can be downloaded from a computer readable storage medium to respective computing / processing devices or to external computers or external storage devices via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.

[0105] Computer readable program instructions for carrying out operations of the present disclosure can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.

[0106] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0107] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other data storage device. When the computer readable program instructions are loaded into the computer and other programmable data processing apparatus, a series of operational steps are implemented that provide processes such that the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0108] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0109] The flow diagrams and the block diagrams in the drawings are presented to illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams and the block diagrams can represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logic functions. In some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and

[0110] Embodiments of the present disclosure have been described above, and the description is intended to be illustrative of the embodiments and not restrictive. Many modifications and variations of the described embodiments are possible and are within the scope of the disclosure. The selection of terms is intended to best describe the principles of the embodiments, practical application, or technical improvements in the art, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A battery power processing method, characterized in that, include: Determine the real-time remaining capacity of the target battery; When it is determined that the target battery has entered the constant voltage charging stage, the real-time remaining capacity is compensated to determine a target remaining capacity that is greater than the real-time remaining capacity. The target remaining capacity is used to predict the remaining charging time after the target battery enters the constant voltage charging stage.

2. The method according to claim 1, characterized in that, The step of compensating for the real-time remaining capacity when it is determined that the target battery has entered the constant voltage charging stage, and determining a target remaining capacity greater than the real-time remaining capacity, includes: When it is determined that the target battery has entered the constant voltage charging stage, the real-time remaining capacity is compensated according to a preset gain coefficient to determine the target remaining capacity, wherein the preset gain coefficient is greater than 1.

3. The method according to claim 2, characterized in that, The step of determining the target remaining capacity by compensating the real-time remaining capacity according to a preset gain coefficient when the target battery is determined to have entered the constant voltage charging stage includes: When it is determined that the target battery has entered the constant voltage charging stage, the real-time remaining capacity is compensated according to the preset gain coefficient to determine the remaining capacity after compensation; If the remaining capacity after compensation is less than the full charge capacity of the target battery, the remaining capacity after compensation shall be determined as the target remaining capacity. If the remaining capacity after compensation is greater than or equal to the full charge capacity, the full charge capacity is determined as the target remaining capacity.

4. The method according to claim 2 or 3, characterized in that, The method further includes: The preset gain coefficient is determined based on the battery parameters and / or configuration information corresponding to the target battery.

5. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If the real-time remaining capacity meets the preset capacity threshold, the target battery is determined to enter the constant voltage charging stage.

6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Determine the charging time corresponding to the target battery; If the charging time meets a preset time threshold, the target battery is determined to enter the constant voltage charging stage.

7. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Determine the real-time charging parameters corresponding to the target battery; If it is determined that the target battery has entered the constant voltage charging stage, the remaining charging time prediction result of the target battery is determined based on the target remaining capacity and the real-time charging parameters.

8. The method according to claim 7, characterized in that, The method further includes: If the predicted remaining charging time is 0, a full charge reminder message for the target battery is determined, and the target battery is continuously charged until the real-time remaining capacity equals the full charge capacity corresponding to the target battery.

9. A battery power processing device, characterized in that, include: The data determination module is used to determine the real-time remaining capacity of the target battery. The remaining capacity compensation module is used to compensate the real-time remaining capacity when it is determined that the target battery has entered the constant voltage charging stage, and to determine a target remaining capacity that is greater than the real-time remaining capacity. The target remaining capacity is used to predict the remaining charging time after the target battery enters the constant voltage charging stage.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.

11. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

12. A computer program product comprising a computer program, or a non-volatile computer-readable storage medium carrying the computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.