Electric quantity updating method and device, terminal equipment and storage medium

By synchronizing real FCC and smooth FCC in the battery meter, the problem of inaccurate calculation of smooth full charge capacity in low-temperature environments is solved, and the accuracy of the battery meter is improved.

CN119847308APending Publication Date: 2025-04-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411918957.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the existing charge meter calculates the smooth full-charge capacity in a low-temperature environment, the impedance is abnormally large, resulting in inaccurate calculation results.

Method used

By obtaining the full charge capacity (real FCC) that the charge meter has not been smoothed, synchronized with the full charge capacity (smooth FCC) after smoothing, the smooth FCC is updated to improve its accuracy.

Benefits of technology

Improves the accuracy of the battery meter to obtain smooth FCC and reduces the power calculation errors caused by temperature changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847308A_ABST
    Figure CN119847308A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an electric quantity updating method and device, terminal equipment and a storage medium. Relates to the technical field of batteries. The method is applied to terminal equipment, and comprises the following steps: obtaining a first full charge capacity which is the full charge capacity of a battery obtained after smoothing processing of a voltameter; and if the first full-charge capacity is abnormal, synchronizing the first full-charge capacity by using a second full-charge capacity, the second full-charge capacity being the full-charge capacity of the battery of which the voltameter is not smoothed. According to the method and the device, after the voltameter obtains the smoothed full charge capacity, if the smoothed full charge capacity is found to be abnormal, the full charge capacity which is not smoothed is used to synchronize the smoothed full charge capacity, so that the smoothed full charge capacity is updated; the full charge capacity after smoothing processing is more accurate, and the accuracy of obtaining the smooth FCC by the voltameter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of battery technology, and in particular to a power updating method, apparatus, terminal device and storage medium. Background Art

[0002] With the development of science and technology, various terminal devices have appeared in people's daily lives. Batteries are a common power supply device in terminal devices, and their related working parameters are used in many scenarios.

[0003] For example, the power level is used as a measure of the battery's power supply capacity. Accurately obtaining the battery's power level is the basis for accurate battery control in terminal devices. Among them, according to the classification of different conditions, the physical quantities related to power level include: Full Charge Capacity (FCC), Remaining Capacity (RM), maximum battery capacity, etc. Among them, the full charge capacity FCC is defined as the capacity of the battery fully discharged from full charge to discharge to the cut-off voltage. In existing fuel meters, it is usually necessary to calculate the smoothed FCC (also called smoothed FCC), but sometimes due to external temperature reasons, the impedance obtained by the fuel meter simulation is very large, and the calculated smoothed FCC has a large error, resulting in inaccurate calculated smoothed FCC. Summary of the invention

[0004] In order to solve the problems of the related art and improve the accuracy of the power meter in obtaining the smoothed FCC, the embodiments of the present application provide a power update method, apparatus, terminal device and storage medium. The technical solution is as follows:

[0005] In one aspect, an embodiment of the present application provides a power update method, which is applied to a battery module, wherein the battery module includes at least a battery and a power meter, and the method includes:

[0006] Acquire a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the fuel gauge performs smoothing processing;

[0007] If the first full charge capacity is abnormal, the first full charge capacity is synchronized with a second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel gauge.

[0008] In another aspect, an embodiment of the present application provides a power updating device, which is applied to a battery module, wherein the battery module includes at least a battery and a power meter, and the device includes:

[0009] A first acquisition module, used to acquire a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing;

[0010] The first synchronization module is used to synchronize the first full charge capacity with a second full charge capacity if the first full charge capacity is abnormal, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the power meter.

[0011] In another aspect, the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the power update method as described in one aspect above is implemented.

[0012] In another aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the power updating method as described in one aspect above is implemented.

[0013] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute to implement the power update method as described in one aspect above.

[0014] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer is enabled to execute to implement the power update method as described in one aspect above.

[0015] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0016] The battery module of this solution includes at least a battery and a fuel gauge. After obtaining the first full charge capacity, the first full charge capacity is the full charge capacity of the battery obtained after the fuel gauge performs smoothing. If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel gauge. In this application, after the fuel gauge obtains the smoothed full charge capacity, if it is found that the smoothed full charge capacity is abnormal, the smoothed full charge capacity will be synchronized with the unsmoothed full charge capacity, so that the smoothed full charge capacity is updated, the smoothed full charge capacity is more accurate, and the accuracy of the fuel gauge in obtaining the smoothed FCC is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A schematic diagram of an exemplary structure of a terminal device provided by an exemplary embodiment of the present application;

[0019] Figure 2 A schematic diagram of the structure of a common battery pack involved in an exemplary embodiment of the present application;

[0020] Figure 3 A method flow chart of a power updating method provided by an exemplary embodiment of the present application;

[0021] Figure 4 A method flow chart of a power updating method provided by an exemplary embodiment of the present application;

[0022] Figure 5 A method flow chart of a power updating method provided by an exemplary embodiment of the present application;

[0023] Figure 6 A method flow chart of a power updating method provided by an exemplary embodiment of the present application;

[0024] Figure 7 A method flow chart of a power updating method provided by an exemplary embodiment of the present application;

[0025] Figure 8 A structural block diagram of a power updating device provided by an exemplary embodiment of the present application;

[0026] Fig. 9 A schematic diagram of the structure of another example of a power updating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0029] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0030] The solution provided by the present application can be used in real-life scenarios where the power meter contained in the battery module inside the terminal device measures the full charge capacity when people use the terminal device in daily life. To facilitate understanding, some terms and application scenarios involved in the embodiments of the present application are first briefly introduced below.

[0031] Remaining capacity RM: refers to the amount of electricity that the battery will continue to discharge from the current moment to the cut-off voltage. It is an important physical quantity for calculating the full charge capacity FCC.

[0032] Maximum battery capacity: refers to the total capacity of the battery, a physical quantity that describes how much power a battery can store in total. Ideally, FCC is equal to the total battery capacity.

[0033] Depth of Discharge (DOD): refers to the ratio of the amount of electricity discharged by the battery to the total capacity.

[0034] State Of Charge (SOC): It is the ratio of the remaining capacity of the battery to the total capacity. It is expressed as: SOC = (RM / FCC) * 100%.

[0035] With the development of science and technology, various terminal devices appear in people's daily lives. People can use terminal devices for work, entertainment, study, etc. Most terminal devices are battery-powered. When the terminal device is low on power, it needs to be charged.

[0036] Please refer to Figure 1 , which shows a schematic diagram of an example structure of a terminal device provided by an exemplary embodiment of the present application. Figure 1The terminal device shown includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a battery module 180.

[0037] The processor 110 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, the processor 110 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0038] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0039] The transceiver 130 can provide wireless communication solutions for terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 130 can be one or more devices that integrate at least one communication processing module, for example, the antenna and the baseband processor are integrated into the transceiver 130, or the antenna and the modem processor are integrated into the transceiver 130, etc., which are not limited here. Optionally, the terminal device can communicate with the above-mentioned devices through its own transceiver 130. Figure 1 Establish a wireless communication connection with the base station in the network.

[0040] The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 140 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0041] The input unit 150 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 150 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 150 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0042] The terminal device may also include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.

[0043] The audio circuit 170 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 170 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to another terminal device through the video circuit, or the audio data is output to the memory 120 for further processing.

[0044] The terminal device also includes a battery module 180 for supplying power to various components. Optionally, the battery module 180 can be logically connected to the processor 110 through a power management device, so that the power management device can manage functions such as charging, discharging, and power consumption.

[0045] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.

[0046] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0047] The battery module 180 can be integrated into a battery pack to power the terminal device. In a typical battery pack, common components include battery cells, fuel gauge IC, protection IC, charging and discharging metal-oxide semiconductor field-effect transistor (MOSFET), fuse, negative temperature coefficient thermistor (NTCthermistor) and other components.

[0048] Please refer to Figure 2 , which shows a schematic diagram of the architecture of a common battery pack involved in an exemplary embodiment of the present application. Figure 2 As shown, it includes battery cells 201, a fuel gauge 202, various protection circuits 203, a charge and discharge switch 204, an NTC 205, a resistor 206 and other components. Figure 2 In the embodiment, the fuel gauge 202 manages the battery cells. Its main tasks include collecting the battery voltage, battery current, battery temperature information, outputting the battery power, etc., realizing high-precision sampling, low-power operation, communication and data processing functions on the hardware side, realizing accurate modeling of the battery in the algorithm, and realizing algorithm programming, data processing and calculation of effective information in a fixed form.

[0049] Therefore, the stable operation of the fuel meter is the guarantee of the entire power management. In the process of calculating related physical quantities, due to the inherent defects of the firmware algorithm, when the fuel meter is in a low-temperature environment and calculates the smoothed FCC, the impedance obtained by the fuel meter simulation is abnormally large, resulting in the calculated smoothed FCC value being 0, and RM is also equal to 0. Using the SOC calculation formula, 0 is divided by 0 to obtain the situation where SOC = 100%. However, with the change of temperature, the real FCC (that is, the unsmoothed FCC) will change dynamically, while the smoothed FCC used for SOC calculation will not change synchronously, resulting in the power remaining unchanged at 100%, and the real FCC will only be synchronized to the smoothed FCC when reporting zero / full. In this process, it is equivalent to that the smoothed FCC obtained by the fuel meter is wrong, and there is a problem of inaccurate calculation of the smoothed FCC by the fuel meter.

[0050] In order to solve the above problems existing in the related art, a power update method is provided in an embodiment of the present application, which can detect the acquired smoothed FCC. If the smoothed FCC is found to be abnormal, the smoothed FCC is updated in time to ensure the accuracy of the data acquired by the power meter.

[0051] Please refer to Figure 3 , which shows a method flow chart of a power update method provided by an exemplary embodiment of the present application, the power update method can be applied to a battery module, the battery module at least includes a battery and a power meter. Figure 3 As shown, the power updating method may include the following steps:

[0052] Step 301, obtaining a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing.

[0053] The solution may be executed by a power meter, and the full charge capacity of the battery obtained by the power meter after smoothing may be called a smoothed FCC. The power meter may obtain the smoothed FCC based on current demand. For example, in the power meter, the current smoothed FCC may be calculated according to a preset period.

[0054] Optionally, when the power meter needs to calculate the smoothed FCC, it can calculate the smoothed FCC based on its own preset algorithm. The preset algorithm can be flexibly designed in advance by the developer, and this solution does not limit the specific process of calculating the smoothed FCC.

[0055] Step 302: If the first full charge capacity is abnormal, synchronize the first full charge capacity with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel gauge.

[0056] Optionally, after obtaining the first full charge capacity, the fuel gauge may detect the first full charge capacity. If the first full charge capacity is found to be abnormal, the second full charge capacity may be used to synchronously update the first full charge capacity so that the first full charge capacity is equal to the second full charge capacity. The second full charge capacity is the full charge capacity of the battery that is not smoothed by the fuel gauge, and is usually called the real FCC.

[0057] Among them, since the FCC of the battery will change with temperature changes or load current changes, in order to achieve a better user experience, the fuel meter or host is often required to perform smoothing. In the fuel meter, the smoothed data is called Filtered or Smoothed, and the corresponding data before smoothing is called True or Unfiltered. Regardless of whether the smoothing function is set to be turned on, the fuel meter will calculate the Filtered and True data at the same time. For the above-mentioned full charge capacity, the unsmoothed FCC and the smoothed FCC can be called smoothed FCC and true FCC, respectively. Through the solution of the present application, after the fuel meter obtains the smoothed FCC, the smoothed FCC can be detected. If the smoothed FCC is found to be abnormal, the smoothed FCC will be synchronized with the real FCC, thereby achieving the effect of updating the smoothed FCC, so that the smoothed FCC currently obtained by the fuel meter is more accurate.

[0058] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After obtaining the first full charge capacity, the first full charge capacity is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel meter. In the present application, after the fuel meter obtains the smoothed full charge capacity, if it is found that the smoothed full charge capacity is abnormal, the unsmoothed full charge capacity will be used to synchronize the smoothed full charge capacity, so that the smoothed full charge capacity is updated, the smoothed full charge capacity is made more accurate, and the accuracy of the fuel meter in obtaining the smoothed FCC is improved.

[0059] In one possible implementation, the power meter detects whether the first full charge capacity is abnormal based on the first full charge capacity being equal to the target value, and detects the first full charge capacity based on the second full charge capacity to determine whether the first full charge capacity is abnormal, and in the case of abnormality, the first full charge capacity is synchronously updated to improve the accuracy of smooth FCC acquisition.

[0060] Please refer to Figure 4 , which shows a method flow chart of a power update method provided by an exemplary embodiment of the present application, the power update method can be applied to a battery module, the battery module at least includes a battery and a power meter. Figure 4 As shown, the power updating method may include the following steps:

[0061] Step 401, obtaining a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing.

[0062] Optionally, during the normal operation of the power meter, the power meter may obtain the first full charge capacity in the following manner: the power meter obtains a smoothed FCC according to a preset period. In a fast charging scenario, the power meter obtains a smoothed FCC once according to a preset period of 1 second, in a normal charging scenario, the power meter obtains a smoothed FCC once according to a preset period of 5 seconds, and in a non-charging scenario, the power meter obtains a smoothed FCC once according to a preset period of 10 seconds.

[0063] Step 402, detecting whether the first full charge capacity is a target value.

[0064] That is, after obtaining the first full charge capacity, the fuel gauge can detect whether the obtained smoothed FCC is equal to the target value. Optionally, the target value is 0.

[0065] In a possible implementation, before executing this step, a configuration file may be obtained, and when the configuration file indicates that the current battery module supports zero-point detection of the first full charge capacity, a step of detecting whether the first full charge capacity is abnormal is executed, that is, step 402 is started.

[0066] Optionally, the configuration file can be pre-set in the battery module by the developer. When the fuel meter starts running or is running, the fuel meter can obtain the configuration file set by the developer, and indicate whether the battery module supports zero-point detection of the first full charge capacity through the configuration file. For example, the configuration file contains an indication parameter, which indicates whether the battery module supports zero-point detection of the first full charge capacity. The indication parameter is represented by support_smooth_fcc_zero_check. When the fuel meter executes the above configuration file, if support_smooth_fcc_zero_check=true is obtained, it means that the battery module / fuel meter supports the zero-point detection function of the smooth FCC. Then, after each time the first full charge capacity is obtained according to the preset period, the obtained first full charge capacity can be detected.

[0067] In one possible implementation, before detecting whether the first full charge capacity is abnormal, the power meter can also obtain its own device type, and if the device type is the target type, detect whether the first full charge capacity is abnormal. The target type can be set independently by the developer of the power meter. For example, different power meters are pre-set with different device type numbers to indicate the device type. The power meter determines whether it is of the target type by obtaining its own device type number. If it is of the target type, the step of detecting whether the first full charge capacity is abnormal can be performed.

[0068] Optionally, the above determination of the target type is actually equivalent to determining whether the zero-point detection function for the first full charge capacity is supported. In this solution, the target type is a type that supports the zero-point detection function for the first full charge capacity. Therefore, by determining the device type, it is indirectly detected whether the function is supported, and then the step of detecting whether the first full charge capacity is abnormal is executed.

[0069] Step 403 , when the first full charge capacity is the target value, the first full charge capacity is detected according to the second full charge capacity to determine whether the first full charge capacity is abnormal.

[0070] Optionally, when it is detected that the first full charge capacity is the target value, the second full charge capacity is obtained, and the first full charge capacity is detected according to the second full charge capacity to determine whether the first full charge capacity is abnormal. The process of the power meter detecting the first full charge capacity according to the second full charge capacity to determine whether the first full charge capacity is abnormal can be as follows: if the second full charge capacity is not equal to the target value, it is determined that the first full charge capacity is abnormal.

[0071] Still taking the target value of 0 as an example, if it is detected that the above-mentioned smoothed FCC = 0, the fuel meter can obtain the second full charge capacity (i.e., the real FCC) and detect whether the real FCC is equal to the target value 0. If the real FCC = 0, it means that the smoothed FCC is accurate (not abnormal). If the real FCC is not equal to = 0, it means that the smoothed FCC is wrong (abnormal).

[0072] In one possible implementation, the battery module is used in a terminal device, and the process of detecting whether the first full charge capacity is abnormal can be performed by a target synchronization thread. For example, in a battery module used in a terminal device, when it is determined that the first full charge capacity is the target value, the target synchronization thread can be started; the target synchronization thread is used to detect whether the first full charge capacity is abnormal.

[0073] Optionally, the running of the target synchronization thread may execute all steps of step 403 and step 404 of the present solution, and the first full charge capacity is finally synchronized through the target synchronization thread.

[0074] Optionally, since the smooth FCC obtained above is periodic, after each smooth FCC is obtained, if the smooth FCC is found to be the target value, before starting the target synchronization thread, the thread indicator can be detected. The thread indicator is used to indicate whether the target synchronization thread is currently running. If the thread indicator indicates that the target synchronization thread is currently running, it means that the process of executing the target synchronization thread last time has not yet ended, and the target synchronization thread is already running in the system. The smooth FCC obtained this time can be ignored, and the next step of obtaining the smooth FCC can be re-entered. If the thread indicator indicates that the target synchronization thread is not currently running, the target synchronization thread can be called and the thread indicator can be set to a value indicating that the target synchronization thread is currently running.

[0075] Smooth_Fcc_zero_checking represents the thread indicator. When the power meter determines that the smooth FCC obtained above is 0, before starting the target thread, it detects whether Smooth_Fcc_zero_checking is equal to true. If Smooth_Fcc_zero_checking=true, it means that the smooth FCC synchronization process is already being executed, which can be ignored this time, and wait for the next step of obtaining the smooth FCC. If Smooth_Fcc_zero_checking=false (not equal to true), it means that the target synchronization thread is not currently running, and the target synchronization thread can be started to execute all steps of step 403 and step 404, and set Smooth_Fcc_zero_checking=true.

[0076] Step 404: If the first full charge capacity is abnormal, synchronize the first full charge capacity with the second full charge capacity.

[0077] Optionally, if the first full charge capacity is determined to be abnormal through the above detection, the first full charge capacity is synchronized with the second full charge capacity so that the first full charge capacity is equal to the second full charge capacity. That is, if the smoothed FCC is 0 and the smoothed FCC is abnormal, the smoothed FCC needs to be synchronized and updated according to the real FCC so that the smoothed FCC is equal to the real FCC, thereby preventing the smoothed FCC calculated by the power meter from being wrong.

[0078] Optionally, in a battery module applied to a terminal device, the operating system or the processor may send a synchronization instruction to the register of the fuel meter so that the fuel meter uses the real FCC to synchronize the smoothed FCC. And for the implementation method in which there is a target synchronization thread, after this step is completed or after the synchronization instruction is sent, the thread indicator may be reset to false so that the target synchronization thread can be started the next time the smoothed FCC is equal to 0.

[0079] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After obtaining the first full charge capacity, the first full charge capacity is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel meter. In the present application, after the fuel meter obtains the smoothed full charge capacity, if it is found that the smoothed full charge capacity is abnormal, the unsmoothed full charge capacity will be used to synchronize the smoothed full charge capacity, so that the smoothed full charge capacity is updated, the smoothed full charge capacity is made more accurate, and the accuracy of the fuel meter in obtaining the smoothed FCC is improved.

[0080] In a possible implementation, the above detection of whether the first full charge capacity is abnormal may also be based on whether the first full charge capacity obtained multiple times is continuously equal to the target value. Figure 5 , which shows a method flow chart of a power update method provided by an exemplary embodiment of the present application, the power update method can be applied to a battery module, the battery module at least includes a battery and a power meter. Figure 5 As shown, the power updating method may include the following steps:

[0081] Step 501, obtaining a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing.

[0082] Step 502, detecting whether the first full charge capacity is a target value.

[0083] Optionally, the implementation details of step 501 to step 502 in this solution can refer to the above Figure 4 The execution process from step 401 to step 402 in the illustrated embodiment will not be described in detail here.

[0084] Step 503, when the first full charge capacity is the target value, reacquire the first full charge capacity after a preset time period.

[0085] Optionally, in this solution, when it is determined that the first full charge capacity is the target value, a preset time is delayed and the first full charge capacity is re-acquired. The preset time can be pre-set in the power meter by the developer. For example, if the preset time is 1ms, when smooth FCC=0 is detected, smooth FCC is re-acquired after a delay of 1ms.

[0086] In one possible implementation, a preset number of attempts is set in the power meter, and the preset number of attempts can be initialized when the power meter is restarted or just turned on. The preset number of attempts is used to indicate the number of times the first full charge capacity needs to be re-acquired. For example, in the above configuration file, it is found that the zero-point detection of the smooth FCC is supported, and the preset number of attempts can be initialized to 1. If the smooth FCC is found to be equal to 0, check whether the preset number of attempts is zero. If the preset number of attempts is not zero, after waiting for a preset period of time, the first full charge capacity is re-acquired, and the preset number of attempts is reduced by one.

[0087] Of course, the preset number of attempts can also be set to other integers greater than 1. Use try_count to represent the preset number of attempts, and initialize try_count=3. Then, if it is found that the smoothed FCC is equal to 0 and try_count is not 0, after waiting for 1ms, the first full charge capacity is obtained again, and the preset number of attempts is reduced by one, try_count=try_count-1=3-1=2. After waiting for 1ms again, the first full charge capacity is obtained again, and the preset number of attempts is reduced by one, try_count=try_count-1=2-1=1. And so on, until try_count=0, the first full charge capacity can be obtained again three times in the whole process.

[0088] Step 504: Determine whether the first full charge capacity is abnormal based on the re-acquired first full charge capacity.

[0089] Optionally, the fuel meter can detect the first full charge capacity that has been reacquired, and determine whether the first full charge capacity is abnormal based on the detection result. For example, if the first full charge capacity that has been reacquired is equal to the target value, it is determined that the first full charge capacity is abnormal. If the first full charge capacity that has been reacquired is not equal to the target value, it is determined that the first full charge capacity is not abnormal. That is, when smoothed FCC=0 is acquired, the smoothed FCC is acquired again after a preset delay. If the reacquired smoothed FCC is still equal to 0, it means that the first full charge capacity is abnormal.

[0090] In a possible implementation, for other integers where the preset number of attempts is greater than 1, it is also possible to detect whether the first full charge capacity is abnormal in the following manner: for each re-acquired first full charge capacity, a judgment is made, and if each re-acquired first full charge capacity is equal to the target value, it is determined that the first full charge capacity is abnormal. For example, for the above initialization try_count=3, there are 3 re-acquired times, and if the smoothed FCC obtained each time is 0, it is determined that the currently calculated smoothed FCC is abnormal.

[0091] Optionally, for the above initialization try_count=3, the fuel meter can perform a test each time the first full charge capacity is re-acquired, or it can perform a test again after a total of each first full charge capacity of a preset number of attempts is acquired. This solution is not limited to this. Among them, in the case of performing a test each time the first full charge capacity is re-acquired, the step of re-acquiring the first full charge capacity next time can be executed based on the result of the current test. For example, if the re-acquired first full charge capacity is the target value, the re-acquisition step is continued. Otherwise, it means that the currently calculated smoothed FCC is normal. Still taking try_count=3 as an example, if it is found that the smoothed FCC is equal to 0, and try_count is detected to be not 0, after waiting for 1ms, the first full charge capacity is re-acquired, and the first full charge capacity re-acquired here is detected. If the first full charge capacity re-acquired here is equal to 0, the preset number of attempts is reduced by one, try_count=try_count-1=3-1=2, and the step of re-acquiring the first full charge capacity again is executed. If the first full charge capacity re-acquired here is not equal to 0, try_count=0 can be directly set, and the smoothed FCC is fed back as a normal result.

[0092] Step 505: If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity.

[0093] Optionally, the method of synchronizing the first full charge capacity with the second full charge capacity in step 505 is the same as that in the above step 404, which will not be repeated here.

[0094] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After obtaining the first full charge capacity, the first full charge capacity is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel meter. In the present application, after the fuel meter obtains the smoothed full charge capacity, if it is found that the smoothed full charge capacity is abnormal, the unsmoothed full charge capacity will be used to synchronize the smoothed full charge capacity, so that the smoothed full charge capacity is updated, the smoothed full charge capacity is made more accurate, and the accuracy of the fuel meter in obtaining the smoothed FCC is improved.

[0095] Next, the battery module is applied in a terminal device, which includes a processor, and the power meter can exchange data with the processor to complete the above detection process. For example, the above detection process can also be executed by the processor. Figure 5 The method embodiment shown in the figure performs smooth FCC detection. During the normal operation of the terminal device, according to the above Figure 4 The illustrated method embodiment performs smooth FCC detection.

[0096] Please refer to Figure 6 , which shows a method flow chart of a power update method provided by an exemplary embodiment of the present application, the power update method can be applied to a terminal device including a battery module, the battery module including at least a battery and a power meter. Figure 6 As shown, the power updating method may include the following steps:

[0097] Step 601: During the startup phase of the terminal device, the serial communication protocol interface I2C of the electricity meter is registered.

[0098] Optionally, the terminal device is an electronic device that may have a battery module consisting of a battery and a fuel meter. For example, the terminal device may include but is not limited to wearable devices (such as bracelets, smart watches, smart glasses, etc.), mobile phones, tablet computers, laptops, smart glasses, smart watches, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, desktop computers, laptops, etc.

[0099] Taking a mobile phone as an example, the mobile phone can run a bootloader (a software program that runs during the startup of a computer system) during the startup of its operating system. The startup phase of the terminal device can also be called the bootloader phase. During this phase, the mobile phone will load the bootloader and it will take about 8 to 10 seconds for the bootloader to run until the user can see the mobile phone desktop. The bootloader is the earliest bare-metal system that runs when the mobile phone is started. At this time, the user can only see a static logo (LOGO) and cannot see any power display. Therefore, it is necessary to determine whether there is a problem with the smoothing FCC at this stage so that it can be calibrated as soon as possible to minimize the impact on users.

[0100] Step 602: Obtain a configuration file, and detect whether the terminal device supports zero-point detection of the first full charge capacity based on the configuration file.

[0101] Optionally, after registering the I2C driver, the processor can access the fuel gauge. In this process, the configuration file can be obtained to check whether the function of zero check for smooth FCC is supported. Similar to the description in the above embodiment, this function can be represented by support_smooth_fcc_zero_check. In addition, the above Figure 5 In the embodiment, the preset number of attempts try_count may also be initialized and assigned a value during this process.

[0102] Step 603: Check whether support_smooth_fcc_zero_check = true.

[0103] If so, execute step 604 , otherwise execute step 609 .

[0104] Step 604, read the smoothed FCC via I2C.

[0105] Step 605, checking whether smoothed FCC=0.

[0106] If so, execute step 605, otherwise execute step 609.

[0107] Step 606, check whether try_count=0.

[0108] If so, execute step 608 , otherwise execute step 607 .

[0109] Step 607, set try_count-1, delay 1ms, return to step 604, and re-acquire the smoothed FCC.

[0110] Step 608: If the smoothed FCC read for multiple consecutive times is equal to 0, an instruction to synchronize the smoothed FCC with the real FCC is sent to the register of the power meter via I2C.

[0111] Optionally, taking try_count=1 in the above steps 603 to 605 as an example, when it is detected that support_smooth_fcc_zero_check is equal to true, the value of the smoothed FCC is read through I2C, and it is determined whether the smoothed FCC is 0. When the smoothed FCC is successfully read and it is determined that the smoothed FCC is equal to 0, it is determined whether try_count is greater than 0. If it is greater than 0, it means that it is necessary to continue to delay reading for 1ms. When the smoothed FCC read twice in a row is 0, it is necessary to send an instruction to synchronize the smoothed FCC with the real FCC to the specific register of the power meter through I2C, so that the smoothed FCC is synchronized with the real FCC.

[0112] Step 609, the startup action is performed normally.

[0113] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After the smoothed FCC is obtained, the smoothed FCC is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the smoothed FCC is abnormal, the smoothed FCC is synchronized with the real FCC, wherein the real FCC is the full charge capacity of the battery that has not been smoothed by the fuel meter, so that the full charge capacity after smoothing is updated, and the full charge capacity after smoothing is made more accurate, thereby improving the accuracy of the fuel meter in obtaining the smoothed FCC.

[0114] Please refer to Figure 7 , which shows a method flow chart of a power update method provided by an exemplary embodiment of the present application, the power update method can be applied to a terminal device including a battery module, the battery module including at least a battery and a power meter. Figure 7 As shown, the power updating method may include the following steps:

[0115] Step 701, loading the driver of the fuel meter.

[0116] Optional, in the above Figure 6 After the terminal device completes the boot phase, it will enter the normal operation phase (also called the kernel phase). During normal operation, Figure 7 Detection is performed in the manner shown.

[0117] Step 702: Obtain a configuration file, and detect whether the terminal device supports zero-point detection of smoothed FCC based on the configuration file.

[0118] Step 703: Check whether support_smooth_fcc_zero_check = true.

[0119] If yes, execute step 704, otherwise do not execute the process of this solution.

[0120] Step 704 , detecting whether the device type of the electricity meter is the target type.

[0121] If yes, then execute step 705, otherwise do not execute the process of this solution. Through the double detection of steps 703 and 704, the accuracy of the function determination of whether the terminal device supports the zero-point detection of the first full charge capacity can be improved.

[0122] Step 705: periodically obtain a smoothed FCC.

[0123] For example, it is acquired once every 1s for fast charging, once every 5s for normal charging, and once every 10s when not charging.

[0124] Step 706, checking whether smoothed FCC=0.

[0125] If yes, execute step 707, otherwise return to step 705.

[0126] Step 707, check whether the target synchronization thread is already running.

[0127] If yes, execute step 708, otherwise return to step 705. For example, the target synchronization thread can be represented by the thread indicator in the above embodiment, and here it can be implemented by detecting whether the thread indicator is equal to true.

[0128] Optionally, if the read Smooth_Fcc_zero_checking is equal to true, it means that there is work processing the process of smooth FCC synchronization with the real FCC, which is ignored this time. If it is not equal to true, reset Smooth_Fcc_zero_checking to true and start the target synchronization thread.

[0129] Step 708, start the target synchronization thread.

[0130] Step 709, obtaining the real FCC.

[0131] Step 710, detecting whether the real FCC=0.

[0132] If not, execute step 711. If the real FCC is also equal to 0, synchronization is not required, indicating that the currently calculated smoothed FCC is correct, and continue to execute the normal operation process.

[0133] Step 711: If the real FCC=0, send an instruction to synchronize the smoothed FCC with the real FCC to the register of the fuel meter via I2C.

[0134] Optionally, it is determined in the target synchronization thread whether to synchronize the smooth FCC. Starting from step 709, the real FCC of the fuel gauge IC is first obtained. When the real FCC is non-zero, it means that the smooth FCC is abnormal, and it is necessary to send a command for synchronizing the smooth FCC with the real FCC to a specific register of the fuel gauge through I2C. Then Smooth_Fcc_zero_checking is reset to false so that the next time the smooth FCC is equal to 0, it can be processed.

[0135] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After the smoothed FCC is obtained, the smoothed FCC is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the smoothed FCC is abnormal, the smoothed FCC is synchronized with the real FCC, wherein the real FCC is the full charge capacity of the battery that has not been smoothed by the fuel meter, so that the full charge capacity after smoothing is updated, and the full charge capacity after smoothing is made more accurate, thereby improving the accuracy of the fuel meter in obtaining the smoothed FCC.

[0136] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0137] Please refer to Figure 8 , which shows a structural block diagram of a power updating device provided by an exemplary embodiment of the present application. The power updating device 800 can be used in a battery module, which includes at least a battery and a power meter to perform all or part of the steps performed by the power meter in the methods provided by the above-mentioned various embodiments. The power updating device 800 includes:

[0138] A first acquisition module 801 is used to acquire a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing;

[0139] The first synchronization module 802 is used to synchronize the first full charge capacity with a second full charge capacity if the first full charge capacity is abnormal, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the power meter.

[0140] In summary, the battery module of the present solution includes at least a battery and a fuel meter. After obtaining the first full charge capacity, the first full charge capacity is the full charge capacity of the battery obtained after the fuel meter performs smoothing. If the first full charge capacity is abnormal, the first full charge capacity is synchronized with the second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel meter. In the present application, after the fuel meter obtains the smoothed full charge capacity, if it is found that the smoothed full charge capacity is abnormal, the unsmoothed full charge capacity will be used to synchronize the smoothed full charge capacity, so that the smoothed full charge capacity is updated, the smoothed full charge capacity is made more accurate, and the accuracy of the fuel meter in obtaining the smoothed FCC is improved.

[0141] Optionally, the device further comprises:

[0142] The first detection module is used to detect whether the first full charge capacity is abnormal before using the second full charge capacity to synchronize the first full charge capacity if the first full charge capacity is abnormal and when the first full charge capacity is a target value.

[0143] Optionally, the first detection module includes: a first determination unit;

[0144] The first determining unit is configured to detect the first full charge capacity according to the second full charge capacity to determine whether the first full charge capacity is abnormal.

[0145] Optionally, the first determining unit is configured to:

[0146] If the second full charge capacity is not equal to the target value, it is determined that the first full charge capacity is abnormal.

[0147] Optionally, the first detection module is further used to:

[0148] When the first full charge capacity is the target value, starting a target synchronization thread;

[0149] The target synchronization thread is used to detect whether the first full charge capacity is abnormal.

[0150] Optionally, the first detection module includes: a first acquisition unit and a second determination unit;

[0151] The first acquisition unit is used to re-acquire the first full charge capacity after a preset time period;

[0152] The second determining unit is configured to determine whether the first full charge capacity is abnormal according to the reacquired first full charge capacity.

[0153] Optionally, the second determining unit is further configured to:

[0154] If the re-acquired first full charge capacity is equal to the target value, it is determined that the first full charge capacity is abnormal.

[0155] Optionally, the first acquiring unit is further used to:

[0156] If the preset number of attempts is not zero, the first full charge capacity is reacquired and the preset number of attempts is reduced by one, where the preset number of attempts is used to indicate the number of times the first full charge capacity is reacquired.

[0157] Optionally, the device further comprises:

[0158] A second acquisition module, used for acquiring a configuration file before detecting whether the first full charge capacity is abnormal, wherein the configuration file is used to indicate whether the battery module supports zero-point detection of the first full charge capacity;

[0159] The first detection module is further configured to detect whether the first full charge capacity is abnormal when the configuration file indicates that the battery module supports zero-point detection of the first full charge capacity.

[0160] Optionally, the device further comprises:

[0161] A third acquisition module, configured to acquire a device type of the electricity meter before detecting whether the first full charge capacity is abnormal;

[0162] The first detection module is further configured to detect whether the first full charge capacity is abnormal when the device type is a target type.

[0163] Please refer to Fig. 9 , which is a structural diagram of another example of a power updating device provided in an embodiment of the present application. Among them, the power updating device 900 can be a terminal device, which can implement the functions in the method provided in an embodiment of the present application. Among them, the power updating device 900 can be a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0164] In terms of hardware implementation, the above-mentioned communication module may be a transceiver, and the transceiver is integrated in the power updating device 900 to form a communication interface 903 .

[0165] The power updating device 900 includes at least one processor 901, which is used to implement or support the power updating device 900 to implement the functions of the terminal device in the method provided in the embodiment of the present application. Exemplarily, the processor 901 can execute the steps of obtaining the first full charge capacity, and if the first full charge capacity is abnormal, synchronizing the first full charge capacity with the second full charge capacity. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0166] The power updating device 900 may also include at least one memory 902 for storing program instructions and / or data. The memory 902 is coupled to the processor 901. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, for information exchange between devices, units or modules. The processor 901 may operate in conjunction with the memory 902. The processor 901 may execute program instructions stored in the memory 902. At least one of the at least one memory may be included in the processor.

[0167] The power updating device 900 may also include a communication interface 903, which is used to communicate with other devices through a transmission medium, so that the device in the power updating device 900 can communicate with other devices. Exemplarily, the other device may be a network side device. The processor 901 may use the communication interface 903 to send and receive data. The communication interface 903 may specifically be a transceiver.

[0168] The specific connection medium between the communication interface 903, the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 In the embodiment, the memory 902, the processor 901 and the communication interface 903 are connected via a bus 904. Fig. 9 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0169] In the embodiment of the present application, the processor 901 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.

[0170] In an embodiment of the present application, the memory 902 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.

[0171] Optionally, the present application also provides a terminal device, which includes at least one battery module as shown in the above embodiments. Of course, the terminal device may also include a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the computer program to implement the above Figure 6 and Figure 7 In the power updating method of the illustrated embodiment, all or part of the steps are executed by the terminal device.

[0172] Optionally, an embodiment of the present application further provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements all or part of the steps performed by the battery module in the power update method of each of the above embodiments.

[0173] Optionally, an embodiment of the present application further provides a chip, which contains an executable computer program. When the chip executes the computer program, it implements all or part of the steps performed by the battery module in the power update method of each of the above embodiments.

[0174] Optionally, an embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the power updating method of each of the above embodiments, including all or part of the steps executed by the battery module.

[0175] Optionally, an embodiment of the present application further provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the power update method of the above embodiments, all or part of the steps executed by the battery module.

[0176] It should be noted that: when the device provided in the above embodiment performs the control of the battery module, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0177] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0178] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0179] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A power updating method, characterized in that: Applied to a battery module, the battery module includes at least a battery and a fuel gauge, and the method includes: Acquire a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the fuel gauge performs smoothing processing; If the first full charge capacity is abnormal, the first full charge capacity is synchronized with a second full charge capacity, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the fuel gauge.

2. The method according to claim 1, characterized in that Before synchronizing the first full charge capacity with the second full charge capacity if the first full charge capacity is abnormal, the method further includes: When the first full charge capacity is a target value, it is detected whether the first full charge capacity is abnormal.

3. The method according to claim 2, characterized in that The detecting whether the first full charge capacity is abnormal includes: The first full charge capacity is detected according to the second full charge capacity to determine whether the first full charge capacity is abnormal.

4. The method according to claim 3, characterized in that The detecting the first full charge capacity according to the second full charge capacity to determine whether the first full charge capacity is abnormal includes: If the second full charge capacity is not equal to the target value, it is determined that the first full charge capacity is abnormal.

5. The method according to claim 2, characterized in that: The detecting whether the first full charge capacity is abnormal includes: When the first full charge capacity is the target value, starting a target synchronization thread; The target synchronization thread is used to detect whether the first full charge capacity is abnormal.

6. The method according to claim 2, characterized in that The detecting whether the first full charge capacity is abnormal includes: After a preset time, reacquiring the first full charge capacity; According to the reacquired first full charge capacity, it is determined whether the first full charge capacity is abnormal.

7. The method according to claim 6, characterized in that The determining, according to the reacquired first full charge capacity, whether the first full charge capacity is abnormal includes: If the re-acquired first full charge capacity is equal to the target value, it is determined that the first full charge capacity is abnormal.

8. The method according to claim 6, characterized in that The re-obtaining the first full charge capacity includes: If the preset number of attempts is not zero, the first full charge capacity is reacquired and the preset number of attempts is reduced by one, where the preset number of attempts is used to indicate the number of times the first full charge capacity is reacquired.

9. The method according to any one of claims 2 to 8, characterized in that: Before detecting whether the first full charge capacity is abnormal, the method further includes: Obtaining a configuration file, where the configuration file is used to indicate whether the battery module supports zero-point detection of the first full charge capacity; In a case where the configuration file indicates that the battery module supports zero-point detection of the first full-charge capacity, detecting whether the first full-charge capacity is abnormal.

10. The method according to any one of claims 2 to 8, characterized in that: Before detecting whether the first full charge capacity is abnormal, the method further includes: Get the device type of the fuel gauge; When the device type is a target type, it is detected whether the first full charge capacity is abnormal.

11. A power updating device, characterized in that: Applied to a battery module, the battery module includes at least a battery and a fuel gauge, and the device includes: A first acquisition module, used to acquire a first full charge capacity, where the first full charge capacity is the full charge capacity of the battery obtained after the power meter performs smoothing processing; The first synchronization module is used to synchronize the first full charge capacity with a second full charge capacity if the first full charge capacity is abnormal, wherein the second full charge capacity is the full charge capacity of the battery that has not been smoothed by the power meter.

12. A terminal device, characterized in that: The terminal device comprises at least one battery module as described in any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the power updating method according to any one of claims 1 to 10 is implemented.