Information calibration method, device, electronic device and storage medium

By detecting the battery's charge and discharge data and ambient temperature, and using the temperature calibration coefficient and charge and discharge data to calibrate the battery capacity, the problem of inaccurate battery capacity measurement is solved, and the accuracy of the charge status display and user experience are improved.

CN115825767BActive Publication Date: 2025-09-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111094875.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2025-09-12
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

During battery use, changes in ambient temperature and charge and discharge cycles lead to inaccurate battery capacity measurements, affecting the accuracy of the state of charge display and resulting in a poor user experience.

Method used

By detecting the battery's charge and discharge data and ambient temperature, the calibration coefficient is calculated using the pre-acquired temperature calibration coefficient and charge and discharge data, the battery capacity is calibrated, and the charge status display is updated.

Benefits of technology

Improves the accuracy of battery capacity measurement, ensures the accuracy of charge status display, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115825767B_ABST
    Figure CN115825767B_ABST
Patent Text Reader

Abstract

The present application discloses an information calibration method, device, electronic device and storage medium for calibrating the battery capacity of an electronic device, and relates to the field of capacity calibration. The charge and discharge data and current ambient temperature of the battery in the electronic device under use are detected. A first calibration coefficient is obtained, and a second calibration coefficient is obtained based on the charge and discharge data and the first standard data. The first standard data includes multiple charge states and the battery capacity corresponding to each charge state. If the charge and discharge data meets the preset conditions and the second calibration coefficient is greater than the preset threshold, the capacity calibration value is determined based on the first calibration coefficient, the second calibration coefficient and the first standard data. The battery capacity in the first standard data is calibrated based on the capacity calibration value. The current charge state is displayed based on the calibrated first standard data and the current battery capacity. The present application can make the battery capacity corresponding to each charge state more accurate, and when displaying the remaining battery capacity, a more accurate charge state can be displayed based on the current battery capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of battery capacity calibration, and more specifically, to an information calibration method, device, electronic device, and storage medium. Background Art

[0002] With the increasing popularity of mobile communication products such as smartphones and laptops, the development of electric vehicles, and the demand for solar cell applications, batteries have become increasingly familiar to users. In many applications, users need to know the remaining battery charge in real time to estimate the remaining battery life. However, due to the variations in battery current, voltage, and device temperature in real-world applications, these variations can affect battery capacity measurements, resulting in inaccurate remaining battery charge measurements. Summary of the Invention

[0003] This application proposes an information calibration method, device, electronic device and storage medium to improve the above-mentioned defects.

[0004] In a first aspect, an embodiment of the present application provides an information calibration method for calibrating the battery capacity of an electronic device, wherein the electronic device is equipped with a battery, and the method includes: in a use state, detecting the charge and discharge data and the current ambient temperature of the battery in the electronic device, wherein the number of charge and discharge times of the battery in the use state is greater than a preset number; obtaining a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient; obtaining a second calibration coefficient based on the charge and discharge data and first standard data, wherein the first standard data includes a plurality of charge states of the battery in the electronic device acquired in advance and a battery capacity corresponding to each charge state; if the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, determining a capacity calibration value corresponding to each charge state based on the first calibration coefficient, the second calibration coefficient and the first standard data, and calibrating the battery capacity corresponding to each charge state in the first standard data based on the capacity calibration value; and displaying the current charge state of the battery based on the calibrated first standard data and the current battery capacity of the battery.

[0005] In a second aspect, an embodiment of the present application provides an information calibration device for calibrating the battery capacity of an electronic device, wherein the electronic device is equipped with a battery. The device includes: a detection unit, a first determination unit, a second determination unit, a calibration unit, and a display unit. Among them, the detection unit is used to detect the charge and discharge data and the current ambient temperature of the battery in the electronic device in a use state, and the number of charge and discharge times of the battery in the use state is greater than a preset number; the first determination unit is used to obtain a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of temperature calibration coefficients obtained in advance as a first calibration coefficient; the second determination unit is used to obtain a second calibration coefficient based on the charge and discharge data and first standard data, and the first standard data includes a plurality of charge states of the battery in the electronic device obtained in advance and the battery capacity corresponding to each charge state; the calibration unit is used to determine the capacity calibration value corresponding to each charge state based on the first calibration coefficient, the second calibration coefficient and the first standard data if the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, and calibrate the battery capacity corresponding to each charge state in the first standard data based on the capacity calibration value; the display unit is used to display the current charge state of the battery based on the calibrated first standard data and the current battery capacity of the battery.

[0006] In a third aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above-mentioned information calibration method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the above-mentioned information calibration method.

[0008] In a fifth aspect, embodiments of the present application provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method.

[0009] The present application provides an information calibration method, apparatus, electronic device, and storage medium. The information calibration method is applied to calibrating the battery capacity of an electronic device equipped with a battery. First, the charge and discharge data and current ambient temperature of the battery in the electronic device are detected during use, where the battery has been charged and discharged more than a preset number of times. A temperature calibration coefficient corresponding to the current ambient temperature is then obtained from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient, and a second calibration coefficient is obtained based on the charge and discharge data and first standard data. The first standard data includes pre-acquired states of charge (SOCs) of the battery in the electronic device and the battery capacity corresponding to each SOC. If the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, a capacity calibration value corresponding to each SOC is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data. Next, the battery capacity corresponding to each SOC in the first standard data is calibrated based on the capacity calibration value. Finally, the current SOC of the battery is displayed based on the calibrated first standard data and the current battery capacity. The present application uses the first calibration coefficient, the second calibration coefficient, and the charge and discharge data measured in the actual usage scenario of the electronic device to calibrate the battery capacity, which can make the battery capacity corresponding to each state of charge more accurate, so that when displaying the remaining battery capacity, more accurate state of charge information can be displayed based on the current battery capacity of the battery. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A schematic diagram of a display interface of an electronic device provided in an embodiment of the present application is shown.

[0012] Figure 2 A schematic diagram of a display interface of an electric vehicle provided in another embodiment of the present application is shown.

[0013] Figure 3 A flow chart of an information calibration method provided in an embodiment of the present application is shown.

[0014] Figure 4 It shows the first standard data of the electronic device provided by another embodiment of the present application.

[0015] Figure 5A flow chart of an information calibration method provided in another embodiment of the present application is shown.

[0016] Figure 6 The first standard data of the electronic device provided by an embodiment of the present application is shown.

[0017] Figure 7 The battery capacity corresponding to the state of charge after each calibration provided by an embodiment of the present application is shown.

[0018] Figure 8 A schematic diagram of a fitted straight line between the state of charge and the battery capacity provided in another embodiment of the present application is shown.

[0019] Figure 9 A flowchart of an information calibration method provided in an embodiment of the present application is shown.

[0020] Figure 10 The figure shows a structural block diagram of an information calibration device provided in one embodiment of the present application.

[0021] Figure 11 A structural block diagram of an electronic device provided in one embodiment of the present application is shown.

[0022] Figure 12 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] With the increasing popularity of mobile communication products such as smartphones and laptops, the development of electric vehicles, and the demand for solar cell applications, batteries have become increasingly familiar to users. Taking the most widely used lithium-ion batteries as an example, due to their advantages such as high energy storage, long life, light weight, and lack of memory effect, lithium-ion batteries have been widely used in mobile devices such as smartphones, tablets, and multimedia players. In many applications, users need to know the remaining battery charge in real time to facilitate the estimation of the remaining battery life. To accurately calculate and display battery capacity, devices are embedded with integrated circuit (IC) chips that support battery voltage and temperature monitoring functions and coulomb counter calculations. In such applications, battery capacity is generally calculated using either the voltage method or the coulomb counter method. The voltage method primarily monitors the battery's open-circuit voltage to obtain the remaining capacity, while the coulomb counter method estimates the battery capacity by measuring the net charge flowing into and out of the battery. When using the voltage method for calculation, the inertia problem caused by the rapid change of battery voltage with current will cause the battery power display to be extremely unstable. In a short period of time, the battery power percentage fluctuates greatly, with a difference of more than 10%, and the calculated battery capacity is inaccurate. When using the coulomb counter method for calculation, the current temperature of the device will affect the sampling resistance of the coulomb counter, resulting in inaccurate measured battery capacity. In some application scenarios, the battery's state of charge (SOC) is usually used to indicate the current remaining battery capacity of the battery. However, due to factors such as ambient temperature and the loss of the battery caused by each charge and discharge, the battery capacity corresponding to each state of charge cannot usually be accurately obtained through measurement, which ultimately leads to inaccurate state of charge displayed on the display interface of the electronic device, affecting the user experience.

[0025] After extensive research, the inventors discovered that computer technology can be used to calibrate battery capacity using pre-acquired calibration coefficients and charge and discharge data measured in actual device usage scenarios, ultimately achieving more accurate battery capacity for each state of charge. Therefore, the inventors proposed an information calibration method, device, electronic device, and storage medium.

[0026] The following is an introduction to the battery capacity display interface of an electronic device involved in this application.

[0027] See also Figure 1 , which shows a schematic diagram of the display interface of an electronic device provided by an embodiment of the present application. In some embodiments, the battery described in the present application can be a lithium battery, which can be used in electronic devices such as mobile terminals and laptop computers. Figure 1As shown, in the battery capacity display interface of the electronic device, the available power and available time of the battery are displayed. Among them, the available power of the battery can be expressed not only by the remaining battery capacity of the battery, but also by the state of charge. The state of charge refers to the ratio of the current remaining capacity of the battery to the total capacity. When the battery is charged to the point where it can no longer absorb energy, the state of charge at this time can be defined as 100%. When the battery is discharged to the point where it can no longer release energy, the state of charge at this time can be defined as 0%. By displaying the state of charge, the battery's charge status can be reflected more intuitively. In addition, in the following examples: Figure 1 On the display interface shown, users can also select power saving mode or super power saving mode. In power saving mode and super power saving mode, electronic devices can save power by reducing screen brightness, etc., thereby extending battery life.

[0028] It should be noted that the electronic device may be a mobile phone, a smart phone (e.g., an iPhone™-based phone, an Android™-based phone), a portable gaming device (e.g., a Nintendo DS™, a PlayStation Portable™, a Gameboy Advance™, an iPhone™), a laptop computer, a PDA, a portable internet device, a music player, a data storage device, and an in-vehicle terminal, etc. As one aspect, the electronic device may be a handheld device or an in-vehicle device with a wireless connection function, etc. As another aspect, the electronic device may also be a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wired or wireless terminal used in industrial control, a wireless terminal used in unmanned driving, a wired or wireless terminal used in a smart home, etc., without limitation herein.

[0029] See also Figure 2 , which shows a schematic diagram of the display interface of an electric vehicle provided by another embodiment of the present application. In some embodiments, the battery described in the present application may also be a storage battery, which can be used in an electric vehicle. It should be noted that the electronic device in the embodiment of the present application may be a vehicle-mounted device. Figure 2 As shown, the available power of the vehicle battery can be displayed in the instrument panel of the electric vehicle. The available power can be displayed in the form of charge status. The instrument panel can also display the cruising range and the temperature inside the vehicle, etc.

[0030] In addition, the battery described in the embodiments of the present application can also be a solar cell. It is understood that the lithium battery, storage battery, and solar cell described in the embodiments of the present application are merely exemplary and do not limit the type of battery.

[0031] See also Figure 3 , Figure 3 The flowchart of the information calibration method provided in one embodiment of the present application is shown. The information calibration method can be applied to calibrate the battery capacity of an electronic device equipped with a battery. The method includes: S310 to S350.

[0032] Step S310: in a use state, detecting the charge and discharge data of the battery in the electronic device and the current ambient temperature, wherein the number of charge and discharge times of the battery in the use state is greater than a preset number.

[0033] In the embodiments of the present application, since batteries are usually used to power electronic devices, the battery capacity of the electronic device is usually calibrated after the electronic device is officially put into use, so as to obtain a more accurate battery capacity. Before calibrating the battery capacity of the electronic device, it is necessary to detect the charge and discharge data of the battery installed in the electronic device when the electronic device is in use. For example, the charge and discharge data can be collected using a fuel gauge. In addition, the ambient temperature has a great influence on the charge and discharge performance of the battery, and the electrochemical reaction at the electrode / electrolyte interface is related to the ambient temperature. For example, taking a battery as an example, when the ambient temperature is high, the falling resistance of the electrolyte of the battery decreases, the diffusion rate of the electrolyte increases, and the chemical reaction of the battery cell is strengthened. These changing factors caused by the increase in ambient temperature will increase the capacity. Therefore, in this embodiment, the current ambient temperature of the battery will also be detected.

[0034] In some embodiments, when an electronic device is in use, if the number of charge and discharge cycles of a battery within the electronic device exceeds a preset number, this indicates that the battery has been officially put into use. Furthermore, the greater the cumulative number of charge and discharge cycles, the greater the impact of battery loss on battery capacity. Therefore, each time a battery within the electronic device is charged and discharged, the battery's charge and discharge data and the current ambient temperature can be detected to calibrate the battery capacity and mitigate the impact of factors such as battery loss.

[0035] It should be noted that the charging process and the discharging process of the battery are independent of each other. Therefore, for the battery capacity during the battery charging process and the battery capacity during the discharging process, in the embodiments of the present application, the battery capacity during the charging process can be calibrated by detecting the charging data of the battery charging process and the current ambient temperature, and the battery capacity during the discharging process can be calibrated by detecting the discharge data of the battery discharging process and the current ambient temperature. Therefore, the charge and discharge data described in the embodiments of the present application may include charging data and discharge data. Taking the charging process as an example, the charging data may include the voltage, current, battery capacity, etc. of the battery in the electronic device measured during the charging process, and this application does not impose any restrictions on this.

[0036] Step S320: acquiring a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient.

[0037] In this embodiment, multiple temperature calibration coefficients may be first obtained, where each temperature calibration coefficient corresponds to an ambient temperature. Optionally, the multiple temperature calibration coefficients may be pre-stored in the electronic device and retrieved when needed. The temperature calibration coefficients may represent the difference in battery capacity at different ambient temperatures.

[0038] In an embodiment of the present application, a temperature calibration coefficient corresponding to the current ambient temperature may be obtained from a plurality of temperature calibration coefficients as the first calibration coefficient.

[0039] In some embodiments, the current ambient temperature may be exactly the same as the ambient temperature corresponding to a certain temperature calibration coefficient. For example, the temperature calibration coefficients a0 and a1 are respectively corresponding to the four ambient temperatures of 0°C, 10°C, 25°C or 45°C. 10 , a 25 and a 45 For example, if the current ambient temperature is exactly any one of 0°C, 10°C, 25°C or 45°C, then the temperature calibration coefficient corresponding to the current ambient temperature can be directly selected as the first calibration coefficient. For example, if the current ambient temperature is exactly 0°C, then the first calibration coefficient can be a0.

[0040] In other embodiments, the current ambient temperature may be in the temperature range of the ambient temperatures corresponding to two temperature calibration coefficients. In this embodiment, the temperature calibration coefficient corresponding to the closest ambient temperature can be selected using the proximity principle. 10 , a 25 Taking a4 as an example, if the current ambient temperature is in the temperature range of 10℃ to 25℃, if the temperature difference between the current ambient temperature and 10℃ is greater than the temperature difference between the current ambient temperature and 25℃, then the temperature calibration coefficient a corresponding to 25℃ can be selected. 25 As the first calibration coefficient; if the temperature difference between the current ambient temperature and 10°C is less than the temperature difference between the current ambient temperature and 25°C, the temperature calibration coefficient a corresponding to 10°C can be selected. 10 As the first calibration coefficient; if the temperature difference between the current ambient temperature and 10°C is equal to the temperature difference between the current ambient temperature and 25°C, that is, the current ambient temperature is exactly in the middle of the temperature range, for example, exactly 17.5°C, then the temperature calibration coefficient a with a lower ambient temperature can be selected. 10 as the first calibration coefficient.

[0041] Step S330: obtaining a second calibration coefficient based on the charge and discharge data and first standard data, wherein the first standard data includes a plurality of charge states of the battery in the electronic device acquired in advance and a battery capacity corresponding to each charge state.

[0042] In some embodiments of the present application, the electronic device will pre-acquire the first standard data of the battery. The first standard data includes multiple charge states of the battery in the electronic device and the battery capacity corresponding to each charge state. In some embodiments, the charge state when the battery is charged to the point where it can no longer absorb energy can be defined as 100%, and the charge state when the battery is discharged to the point where it can no longer release energy can be defined as 0%, and then the charge states between 0% and 100% are divided into N parts in equal proportion, where N is an integer greater than 0. First, the battery capacity corresponding to the charge state of 100% and the battery capacity corresponding to the charge state of 0% can be obtained by detection, and then the battery capacity corresponding to each intermediate charge state can be calculated based on the two endpoint values, or the battery capacity corresponding to each intermediate charge state can be obtained by testing.

[0043] In some embodiments, as Figure 4 As shown, Figure 4 The first standard data of an electronic device provided by another embodiment of the present application is shown. When charging and discharging for the first time in the use state, the battery capacity corresponding to each state of charge obtained by testing the electronic device before it is officially put into use can be used as the first standard data, so that during the first charging and discharging process after the electronic device is officially put into use, it can be calibrated based on the first standard data before it is officially put into use. The battery capacity in the first standard data can be updated after each calibration, so that each subsequent calibration can be performed based on the first standard data obtained after the previous calibration, thereby obtaining a more accurate battery capacity. Taking the battery capacity corresponding to each intermediate state of charge calculated based on the endpoint value as an example, for the mth intermediate state of charge, the corresponding battery capacity is C 100% *M / N, where M is an integer and 1<M<N, C 100% Indicates the battery capacity when the state of charge is 100%.

[0044] It should be noted that the state of an electronic device before it is officially put into use can be referred to as the initial state, and the state of the electronic device after it is officially put into use can be referred to as the above-mentioned use state. In the use state, the number of charge and discharge cycles of the battery is greater than a preset number, while the number of charge and discharge cycles of the battery in the initial state is less than the preset number. For example, the preset number of cycles is merely used to distinguish the condition of the battery in the electronic device before and after it is officially put into use. In some embodiments, the preset number of cycles can be determined based on the actual condition of the electronic device when it leaves the factory. A typical value of the preset number of cycles can be 10.

[0045] It is understandable that when the number of charge and discharge times of the battery is exactly equal to the preset number, the electronic device can be in use or in the initial state, and the embodiments of the present application do not limit this.

[0046] Please see again Figure 4 In the initial state, the battery capacity corresponding to each state of charge may include the battery capacity during the charging process and the battery capacity during the discharging process, wherein C in the initial state 机标放 Indicates the battery capacity corresponding to the state of charge of 100% obtained during the discharge test of the electronic device before it is officially put into use. The C 机标截止 Indicates the battery capacity corresponding to the state of charge of 0% obtained during the discharge test of the electronic device before it is officially put into use. The C 机标充 Indicates the battery capacity corresponding to the state of charge of 100% obtained during the charging test of the electronic device before it is officially put into use. The C 机标充起始 It indicates the battery capacity corresponding to a state of charge of 0% obtained during the charging test of the electronic device before it is officially put into use.

[0047] In some embodiments, the battery capacity may be lost as the battery is used. For example, as the battery is used, the actual maximum battery capacity may gradually decrease, and the reduced battery capacity is the battery loss.

[0048] In some embodiments, when calibration is performed for the first time in a usage state, multiple charge states of the battery in the electronic device obtained during a charge and discharge test process in an initial state and the battery capacity corresponding to each charge state can be used as first standard data, and then a second calibration coefficient can be obtained based on the charge and discharge data obtained this time and the first standard data.

[0049] In other implementations, the second calibration coefficient may also be obtained based on the charge and discharge data obtained this time and the first standard data obtained after the electronic device was last calibrated.

[0050] It is understood that the second calibration coefficient can represent the difference between the first standard data obtained during the previous charging or discharging process and the charge and discharge data obtained during the current test. This difference can indicate the impact of battery loss on battery capacity during each charging or discharging process, or the accuracy of battery capacity calibration during each charging or discharging process.

[0051] Step S340: If the charge and discharge data meets the preset conditions and the second calibration coefficient is greater than the preset threshold, the capacity calibration value corresponding to each state of charge is determined based on the first calibration coefficient, the second calibration coefficient and the first standard data, and the battery capacity corresponding to each state of charge in the first standard data is calibrated based on the capacity calibration value.

[0052] In an embodiment of the present application, after obtaining the charge and discharge data, the first calibration coefficient, the second calibration coefficient, and the first standard data, if it is determined that the calibration conditions are currently met, the battery capacity corresponding to each state of charge in the first standard data is calibrated. For example, if the charge and discharge data meets the preset conditions and the second calibration coefficient is greater than a preset threshold, the capacity calibration value corresponding to each state of charge is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data.

[0053] If the charge and discharge data meets the preset conditions, it indicates that the detected charge and discharge data indicates that the electronic device is currently in the charging or discharging process, eliminating abnormal interference such as battery leakage. If the second calibration coefficient is greater than the preset threshold, it indicates that there is a significant difference between the first standard data obtained during the previous charging or discharging process and the charge and discharge data obtained during the current test, indicating that the battery capacity is inaccurate and requires further calibration.

[0054] After determining that both of the above conditions are met, a capacity calibration value is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data. The capacity calibration value is used to calibrate the battery capacity corresponding to each state of charge in the first standard data. In some embodiments, it is necessary to calculate the capacity calibration value corresponding to each state of charge. The first calibration coefficient can correct for the effect of ambient temperature on battery capacity based on the current ambient temperature, and the second calibration coefficient can correct for the effect of factors such as battery loss on battery capacity based on the difference between the first standard data and the charge and discharge data obtained from the current test.

[0055] After calculating the capacity calibration value corresponding to each state of charge, the battery capacity corresponding to each state of charge in the first standard data can be calibrated based on the capacity calibration value. In some embodiments, the battery capacity corresponding to each state of charge in the first standard data can be subtracted from the corresponding capacity calibration value to obtain the calibrated battery capacity, and then the calibrated battery capacity can be used to overwrite the corresponding battery capacity in the first standard data, so that the battery capacity corresponding to each state of charge in the first standard data is updated to the latest calibrated battery capacity. Taking the battery capacity corresponding to 100% state of charge as an example, the capacity calibration value corresponding to 100% state of charge calculated during the first calibration is C 校准 , then the battery capacity after calibration is C 100%校准 =C100% -C 校准 , then the state of charge 100% corresponds to the battery capacity C 100% Updated to C 100%校准 .

[0056] Step S350: Displaying the current state of charge of the battery based on the calibrated first standard data and the current battery capacity of the battery.

[0057] In an embodiment of the present application, the calibrated first standard data includes the calibrated battery capacity corresponding to each state of charge. Therefore, for the current battery capacity of the battery, the state of charge corresponding to the current battery capacity can be found in the first standard data and used as the current state of charge of the battery. In some embodiments, the current state of charge can be displayed on a display interface of the electronic device.

[0058] In summary, the information calibration method provided in this application is applied to calibrating the battery capacity of an electronic device equipped with a battery. First, the charge and discharge data and current ambient temperature of the battery within the electronic device are detected during use, where the battery has been charged and discharged more than a preset number of times. A temperature calibration coefficient corresponding to the current ambient temperature is then obtained from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient, and a second calibration coefficient is obtained based on the charge and discharge data and first standard data. The first standard data includes pre-acquired states of charge (SOCs) of the battery within the electronic device and the battery capacity corresponding to each SOC. If the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, a capacity calibration value corresponding to each SOC is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data. Next, the battery capacity corresponding to each SOC within the first standard data is calibrated based on the capacity calibration value. Finally, the current SOC of the battery is displayed based on the calibrated first standard data and the current battery capacity. The present application uses the first calibration coefficient, the second calibration coefficient, and the charge and discharge data measured in the actual usage scenario of the electronic device to calibrate the battery capacity, which can make the battery capacity corresponding to each state of charge more accurate, so that when displaying the remaining battery capacity, more accurate state of charge information can be displayed based on the current battery capacity of the battery.

[0059] See also Figure 5 , Figure 5 The flow chart of the information calibration method provided by another embodiment of the present application is shown. The information calibration method can be applied to calibrate the battery capacity of an electronic device, wherein the electronic device is equipped with a battery. Figure 5The process shown in FIG5 is described in detail, and the information calibration method may specifically include: S510 to S590.

[0060] Step S510: in a use state, detecting the charge and discharge data of the battery in the electronic device and the current ambient temperature, wherein the number of charge and discharge times of the battery in the use state is greater than a preset number.

[0061] In the embodiment of the present application, the charge and discharge data and the current ambient temperature of the battery in the electronic device can be continuously detected during the charging or discharging process of the battery. The specific process can be referred to the content of the above embodiment and will not be repeated here.

[0062] Step S520: acquiring a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient.

[0063] In an embodiment of the present application, the first calibration coefficient may represent the difference between the first standard data corresponding to the current ambient temperature in the initial state and the standard test data of the single battery. As can be seen from the aforementioned embodiment, in the initial state, the number of charge and discharge cycles of the battery is less than the predetermined number. In some embodiments, multiple temperature calibration coefficients for different ambient temperatures may be pre-acquired, and the corresponding temperature calibration coefficient may be obtained based on the current ambient temperature.

[0064] When the battery is not installed in an electronic device, the battery is independent of the electronic device. The state of the battery independent of the electronic device can be referred to as a single-cell state. In some typical embodiments, multiple states of charge of the battery in the single-cell state in the initial state and the battery capacity corresponding to each state of charge can be used as third standard data. In addition, because the battery capacity may also change with changes in ambient temperature, in some embodiments of the present application, fourth standard data can be used to represent multiple states of charge of the battery in the electronic device detected at multiple ambient temperatures in the initial state and the battery capacity corresponding to each state of charge.

[0065] In some embodiments, the temperature calibration coefficients corresponding to different ambient temperatures can be pre-calculated based on the third standard data and the fourth standard data, wherein each temperature calibration coefficient corresponds one-to-one to each ambient temperature.

[0066] For example, taking the discharge process of a battery in a single state at the initial state as an example, the state of charge corresponding to the discharge start voltage after discharge is completed can be defined as 100%, and the battery capacity at a state of charge of 100% can be obtained by testing at the discharge start voltage. The state of charge corresponding to the discharge cutoff voltage can be defined as 0%, and the battery capacity at a state of charge of 0% can be obtained by testing at the discharge cutoff voltage. The voltage and state of charge between the discharge start voltage and the discharge cutoff voltage can then be divided into N parts in equal proportion. Similarly, the battery capacity corresponding to each intermediate state of charge can be calculated based on the battery capacity corresponding to the two endpoints of the discharge start voltage and the discharge cutoff voltage, or the battery capacity corresponding to each intermediate state of charge can be obtained through testing. Finally, multiple states of charge of the battery in the single state at the initial state and the battery capacity corresponding to each state of charge can be obtained, i.e., the third standard data.

[0067] Next, in the initial state, a charge and discharge test can be performed on the electronic device equipped with the battery to obtain multiple states of charge in the initial state and the battery capacity corresponding to each state of charge. Since the ambient temperature in the actual use environment of the electronic device varies, in the initial state, a charge and discharge test can be performed on the electronic device equipped with the battery at different ambient temperatures to obtain multiple states of charge at different ambient temperatures and the battery capacity corresponding to each state of charge, i.e., the fourth standard data. For example, by comparing the battery capacity corresponding to each state of charge of the battery in the electronic device at different ambient temperatures in the initial state and the battery capacity corresponding to each state of charge of the battery in the single state in the initial state, the temperature calibration coefficient corresponding to different ambient temperatures can be obtained.

[0068] In some typical embodiments, in the initial state, the battery in the electronic device can be charged and discharged at four ambient temperatures of 0°C, 10°C, 25°C, and 45°C to obtain the battery capacity corresponding to each state of charge at the four ambient temperatures of 0°C, 10°C, 25°C, and 45°C in the initial state, respectively. Then, the battery capacity corresponding to each state of charge at the four ambient temperatures can be divided by the battery capacity at the corresponding state of charge in the third standard data to obtain four temperature calibration coefficients a0, a 10 , a 25 and a 45 .

[0069] Please refer to Figure 6 , Figure 6The battery capacity corresponding to each state of charge at four ambient temperatures of 0°C, 10°C, 25°C and 45°C in the initial state is shown, which can be used as the fourth standard data. In some embodiments, the state of charge between 0% and 100% can be divided into N parts in equal proportion. Optionally, the temperature calibration coefficient a corresponding to 25°C is used. 25 For example, a 25 The battery capacity corresponding to a state of charge of 100% at an ambient temperature of 25° C. in the fourth standard data can be divided by the battery capacity corresponding to a state of charge of 100% in the third standard data. Figure 6 As shown, during the charging process in the initial state, the battery capacity C corresponding to 100% state of charge when the ambient temperature is 25°C can be used. 机标充 And the battery capacity C corresponding to the state of charge 100% in the third standard data 标充 Get the temperature calibration coefficient a corresponding to the ambient temperature of 25℃ 25 =C 机标充 / C 标充 It should be noted that C 机标充 Can be used to indicate the battery capacity corresponding to 100% state of charge, C 机标截止 It can be used to indicate the battery capacity corresponding to 100% state of charge, and the C corresponding to different ambient temperatures. 机标充 、 C 机标截止 The specific value should be based on the specific value measured at the corresponding ambient temperature in the initial state.

[0070] It is understandable that a0, a 10 、a 45 It can be calculated in a similar way and will not be described in detail here. In addition, it should be noted that since the charging process and the discharging process of the battery are independent of each other, the temperature calibration coefficient of the charging process can be calculated and tested during the charging process of the battery, and the temperature calibration coefficient of the discharging process can be calculated and tested during the discharging process of the battery.

[0071] Step S530: determining second standard data corresponding to the current ambient temperature from a plurality of second standard data based on the current ambient temperature as the first standard data, wherein each second standard data corresponds to an ambient temperature.

[0072] In an embodiment of the present application, multiple states of charge of the battery in the electronic device at different ambient temperatures and the battery capacity corresponding to each state of charge can be recorded as second standard data. Each second standard data corresponds to an ambient temperature. In order to obtain the first standard data corresponding to the current ambient temperature, the second standard data corresponding to the current ambient temperature can be determined from the multiple second standard data based on the current ambient temperature as the first standard data.

[0073] It is understandable that the process of determining the second standard data corresponding to the current ambient temperature from multiple second standard data based on the current ambient temperature can refer to the process of selecting the first calibration coefficient from multiple temperature calibration coefficients in the aforementioned embodiment, and will not be repeated here. It should be noted that since each calibration will update the battery capacity corresponding to each state of charge at the ambient temperature at the time of the calibration, the battery capacity corresponding to each state of charge in the second standard data will also be the data after the last calibration. For example, if the battery capacity corresponding to each state of charge at 10°C among the four ambient temperatures of 0°C, 10°C, 25°C and 45°C was calibrated during the last calibration, then the battery capacity corresponding to each state of charge at 0°C, 25°C and 45°C will remain unchanged, and the latest battery capacity corresponding to each state of charge at 0°C, 10°C, 25°C and 45°C after the last calibration can be used as the second standard data.

[0074] In some embodiments, when charging and discharging are performed for the first time in the use state, the battery capacity corresponding to each charge state of the electronic device's battery obtained by testing at different ambient temperatures in the initial state can be used as the second standard data, that is, when charging and discharging are performed for the first time in the use state, the second standard data can be equivalent to the fourth standard data.

[0075] Step S540: obtaining a second calibration coefficient based on the charge and discharge data and the first standard data.

[0076] In this embodiment, the second calibration coefficient is calculated based on the first standard data at the current ambient temperature and the charge and discharge data obtained from the test.

[0077] In some embodiments, the charge and discharge data may include an initial state of charge, an end state of charge, a current value, and a first capacity change value during the charge and discharge process. The first capacity change value is the cumulative change in battery capacity from the initial state of charge to the end state of charge during the charge and discharge process. The first capacity change value can be measured by a fuel gauge during the charge and discharge process and can represent the actual change in battery capacity during the charge and discharge process.

[0078] In some embodiments, a starting battery capacity corresponding to the starting state of charge and an ending battery capacity corresponding to the ending state of charge can be determined from the first standard data. The difference between the starting and ending battery capacities is then used as the second capacity change value. The second capacity change value can represent a theoretical change value obtained through capacity calculation, corresponding to the actual change in battery capacity during the current charge and discharge process. A second calibration coefficient, obtained by comparing the second capacity change value with the first capacity change value, can be used to indicate the accuracy of the battery capacity obtained after the previous calibration. Since battery loss caused by each charge and discharge decreases battery capacity, the second capacity change value calculated using the first standard data obtained after the previous calibration will typically be smaller than the first capacity change value obtained from the current charge and discharge test. In some typical embodiments, the second calibration coefficient can be determined by the ratio of the second capacity change value to the first capacity change value. A larger second calibration coefficient indicates a lower accuracy of the battery capacity; a smaller second calibration coefficient indicates a higher accuracy of the battery capacity.

[0079] Step S550: If the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, a capacity calibration frequency of the battery when the battery is mounted on the electronic device is obtained.

[0080] If the battery capacity is not calibrated, in some embodiments, as the number of charge and discharge times accumulates, the battery loss becomes greater and greater, while the battery capacity corresponding to each state of charge in the first standard data remains unchanged. In this case, the current state of charge obtained by searching the first standard data based on the current battery capacity will become increasingly inaccurate, and the data displayed when displaying the current state of charge will be misleading to the user, affecting the user experience. Therefore, when the second calibration coefficient is greater than the preset threshold, it means that the difference between the battery capacity obtained by the last calibration and the battery capacity obtained by actual measurement has exceeded the normal range, and the battery capacity should be recalibrated. At the same time, it is also necessary to determine whether the charge and discharge data meets the preset conditions, so that abnormal interference such as battery leakage can be eliminated.

[0081] In some embodiments, the charge and discharge data meeting a preset condition may include: a first capacity change value being greater than or equal to a capacity threshold value and the current value being greater than or equal to a current threshold value.

[0082] After determining that both of the above conditions are met, a capacity calibration value is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data. In some embodiments, the capacity calibration frequency of the battery in the electronic device can first be obtained. The capacity calibration frequency y can be pre-set to adjust the size of the capacity calibration value for each calibration.

[0083] In some embodiments, the capacity calibration frequency y can be determined based on charge and discharge data and the number of battery charge and discharge cycles counted within a preset time period. Alternatively, if the charge and discharge data includes an initial state of charge and an end state of charge, the capacity calibration frequency y can be determined based on the difference ΔSOC between the initial state of charge and the end state of charge, and the number of battery charge and discharge cycles j counted within the preset time period. Exemplarily, the capacity calibration frequency y can be y = 100% / ΔSOC + i, where i is a real number, such as 1 / j.

[0084] Step S560: Determine a target calibration capacity corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data.

[0085] In some embodiments, the battery capacity corresponding to each state of charge in the first standard data can be calibrated based on the first calibration coefficient and the second calibration coefficient to offset the impact of factors such as ambient temperature and battery loss on the battery capacity, so as to obtain the target calibration capacity corresponding to each state of charge.

[0086] In the actual charging and discharging process, the charge and discharge data measured in a single charge and discharge process may still have errors, which can be avoided by step-by-step calibration. In an embodiment of the present application, the charge and discharge data in each charge and discharge process can be continuously detected, and the first calibration coefficient and the second calibration coefficient can be calculated based on the charge and discharge data and the first standard data, and then the target calibration capacity can be further determined. For example, the product of the first calibration coefficient, the second calibration coefficient and the battery capacity corresponding to each state of charge in the first standard data can be determined as the target calibration capacity corresponding to each state of charge. For example, if the battery capacity corresponding to the state of charge of 100% in the first standard data is C 100% , the first calibration coefficient is a 25 , the second calibration coefficient is b, then the target calibration capacity corresponding to the state of charge of 100% can be C 100%修正 =C 100% *a 25 Then, the battery capacity corresponding to each state of charge in the first standard data is gradually calibrated toward the target calibration capacity at the capacity calibration frequency, thereby determining the capacity calibration value during a single calibration.

[0087] Step S570: determining a single calibration capacity according to the capacity calibration frequency, the first standard data and the target calibration capacity, and determining the single calibration capacity as the capacity calibration value.

[0088] After determining the capacity calibration frequency and the target calibration capacity corresponding to each state of charge, the single calibration capacity can be determined based on the capacity calibration frequency, the first standard data and the target calibration capacity, and then the single calibration capacity is determined as the capacity calibration value used in the current calibration. For example, taking the state of charge as 100% as an example, during the first calibration, the battery capacity corresponding to the state of charge of 100% in the first standard data can be C 100% , the target calibration capacity corresponding to the state of charge of 100% can be C 100%修正 , and the capacity calibration frequency y can be determined, then the capacity calibration value corresponding to the state of charge of 100% can be C 校准 =(C 100% -C 100%修正 ) / y.

[0089] In some embodiments, if the capacity calibration value remains unchanged during each calibration, then after y calibrations, the battery capacity corresponding to each state of charge in the first standard data can be made to become the target calibration value. Taking the charging process with the current ambient temperature of 23°C as an example, if the temperature calibration coefficients a0, a1 are respectively corresponding to the four ambient temperatures of 0°C, 10°C, 25°C or 45°C, 10 , a 25 and a 45 , then based on the current ambient temperature, you can select the temperature calibration coefficient a corresponding to 25°C 25 As the first calibration coefficient a. If the ambient temperature remains unchanged at 23°C, the first calibration coefficient a during each calibration can be kept constant at a 25 unchanged, such as Figure 7 The first standard data in the initial state can be the battery capacity corresponding to each state of charge obtained by testing at an ambient temperature of 25°C in the initial state. For example, in the initial state, the battery capacity corresponding to 100% state of charge is C 机标充 ; The battery capacity corresponding to the mth intermediate state of charge is C 机标充 *M / N, where M is an integer and 1<M<N; the battery capacity corresponding to 0% state of charge is C 机标充起始 The target calibration value can be calculated based on the first standard data, the first calibration coefficient a and the second calibration coefficient b. For example, the target calibration value corresponding to the state of charge 100% is C 机标充 *ab; the target calibration value corresponding to the mth intermediate state of charge is C 机标充 * ab*M / N; the battery capacity corresponding to 0% state of charge is C 机标充起始 *ab. The capacity calibration value at each calibration can be obtained by dividing the difference between the battery capacity at the initial state corresponding to each state of charge and the target calibration value by y. For example, the capacity calibration value at 100% state of charge can be (C 机标充 -C 机标充Based on this, it can be obtained that the first standard data obtained after the first calibration can be the first standard data in the initial state minus the capacity calibration value corresponding to each state of charge. For example, the battery capacity of 100% state of charge after the first calibration can be C 机标充 - (C 机标充 *(1-a*b / y)). The first standard data obtained after the Xth calibration can be the first standard data obtained after the previous calibration minus the capacity calibration value corresponding to each state of charge. Since the capacity calibration value remains unchanged during each calibration, the battery capacity of 100% state of charge after the Xth calibration can be C 机标充 -(C 机标充 *X* (1-a*b / y). After y calibrations, the battery capacity corresponding to each state of charge can be brought to the target calibration value.

[0090] It can be understood that the first standard data obtained by the electronic device during the first calibration may be the second standard data in the initial state corresponding to the current ambient temperature, and the first standard data obtained by the electronic device during the second calibration and after the second calibration may be the first standard data obtained after the last calibration.

[0091] In other embodiments, the capacity calibration frequency y may change each time calibration is performed. For example, still taking the state of charge as 100%, if the battery capacity corresponding to the initial state of charge of 100% is 2000 mAh, the target calibration capacity corresponding to the state of charge of 100% during the first calibration is calculated to be 1000 mAh, and the capacity calibration frequency y is calculated to be 4, then the capacity calibration value during the first calibration is mAh. After the first calibration, the battery capacity corresponding to the state of charge of 100% is 1750 mAh. To more clearly illustrate the calculation process of the capacity calibration value during each calibration, it is assumed that the target calibration capacity corresponding to the state of charge of 100% remains unchanged at 1000 mAh (based on the content described in the above embodiment, the target calibration capacity corresponding to each state of charge can be recalculated based on the first calibration coefficient, the second calibration coefficient and the first standard data during each calibration). During the second calibration, the capacity calibration frequency y is calculated to be 2, so the capacity calibration value C during the second calibration is 校准 Based on the capacity calibration frequency y, the battery capacity corresponding to 100% state of charge obtained after the first calibration, and the target calibration capacity corresponding to 100% state of charge, the capacity calibration value during the second calibration can be obtained, for example, milliamperes.

[0092] Step S580: Calibrate the battery capacity corresponding to each state of charge in the first standard data based on the capacity calibration value.

[0093] After calculating the capacity calibration value, the battery capacity corresponding to each state of charge in the first standard data is calibrated based on the capacity calibration value. In some embodiments, the battery capacity corresponding to each state of charge in the first standard data can be subtracted from the corresponding capacity calibration value to obtain a calibrated battery capacity, which is then overwritten with the corresponding battery capacity in the first standard data. This updates the battery capacity corresponding to each state of charge in the first standard data to the latest calibrated battery capacity. The specific process can be found in the aforementioned embodiments and will not be repeated here.

[0094] In addition, in some embodiments, if the charge and discharge data does not meet the preset conditions and the second calibration coefficient is greater than a preset threshold, it indicates that the current battery is not in a normal charge and discharge process, and there is no need to recalculate the battery capacity calibration value. The battery capacity corresponding to each state of charge in the first standard data can be calibrated based on the capacity calibration value used in the previous calibration. In other embodiments, if the second calibration coefficient is less than the preset threshold, it indicates that the difference between the battery capacity obtained in the previous calibration and the actual measured battery capacity is within a normal range. The battery capacity can be calibrated without further adjustment, and the first standard data can be kept unchanged.

[0095] In some embodiments, when the second calibration coefficient is equal to a preset threshold, the capacity difference in this case can be regarded as a normal range. Similar to the case where the capacity difference is less than the preset threshold, the battery capacity may not be calibrated. Furthermore, the first standard data may be kept unchanged.

[0096] In other embodiments, when the second calibration coefficient is equal to a preset threshold, the battery capacity can be calibrated. Before calibration, it can be further determined whether the charge and discharge data meet preset conditions. If so, the capacity calibration value is recalculated, and then the capacity calibration is performed based on the newly calculated capacity calibration value. If not, the capacity calibration is performed based on the capacity calibration value used in the previous calibration. The calculation process of the capacity calibration value and the battery capacity calibration process can be referred to the corresponding content in the aforementioned embodiments and will not be repeated here.

[0097] Step S590: Displaying the current state of charge of the battery based on the calibrated first standard data and the current battery capacity of the battery.

[0098] In an embodiment of the present application, the current state of charge of the battery may be displayed based on the calibrated first standard data and the current battery capacity of the battery.

[0099] It should be noted that the actual displayed state of charge of the electronic device usually varies between 0% and 100% with a display scale of 1%. In some embodiments of the present present, the state of charge between 0% and 100% can be equally divided into N parts and then the capacity calibration is performed, and the calibration scale of the state of charge is 1 / N. Based on this, there may be a situation where the display scale of the state of charge is inconsistent with the calibration scale.

[0100] If the display scale of the state of charge is consistent with the calibration scale, that is, N = 100, based on the current battery capacity of the battery, the state of charge corresponding to the current battery capacity can be directly found from the first standard data, and this state of charge can be used as the current state of charge of the battery. If the current battery capacity is between the battery capacities corresponding to two states of charge, the state of charge corresponding to the battery capacity closest to the current battery capacity among these two states of charge can be selected according to the principle of proximity as the current state of charge of the battery, and then this current state of charge is displayed in real time on the display interface of the electronic device.

[0101] If the display scale of the state of charge is inconsistent with the calibration scale, where, if N < 100, and it is found by searching the first standard data that the current battery capacity is between the battery capacities C m1 and C m2 corresponding to two adjacent states of charge m1 and m2, where 0% ≤ m1 < m2 ≤ 100% and m2 - m1 = 1 / N. As Figure 8 shown, in the fitting line of the state of charge and the battery capacity, the current battery capacity C m corresponds to the current state of charge m which can be For example, N = 20, the calibration scale 1 / N = 5%, m1 = 25%, m2 = 30%, C m1 = 250 mA, C m2 = 300 mA, then if the current battery capacity C m = 280 mA, the calculated corresponding current state of charge m = 28%.

[0102] In summary, the information calibration method provided in the embodiment of the present application is applied to calibrating the battery capacity of an electronic device, wherein the electronic device is equipped with a battery. First, in the use state, the charge and discharge data and the current ambient temperature of the battery in the electronic device are detected, and then the temperature calibration coefficient corresponding to the current ambient temperature is obtained from a plurality of pre-acquired temperature calibration coefficients as the first calibration coefficient, and based on the current ambient temperature, the first standard data corresponding to the current ambient temperature is determined from a plurality of second standard data, and then the second calibration coefficient is obtained based on the charge and discharge data and the first standard data. If the charge and discharge data meets the preset conditions and the second calibration coefficient is greater than the preset threshold, the capacity calibration frequency is obtained, the target calibration capacity is determined, and the capacity calibration value is determined according to the capacity calibration frequency, the first standard data and the target calibration capacity, and then the battery capacity corresponding to each state of charge in the first standard data is calibrated based on the capacity calibration value. Finally, the current state of charge of the battery is displayed based on the calibrated first standard data and the current battery capacity of the battery. The present application uses the first calibration coefficient, the second calibration coefficient, and the charge and discharge data measured in the actual usage scenario to calibrate the battery capacity, which can make the battery capacity corresponding to each state of charge more accurate, so that when displaying the remaining battery capacity, more accurate state of charge information can be displayed based on the current battery capacity of the battery.

[0103] To facilitate a better understanding of the information calibration method in the embodiment of the present application, the calibration process of the battery capacity of the electronic device will be exemplified below.

[0104] See also Figure 9 , Figure 9 FIG. 1 is a flowchart of an information calibration method according to an embodiment of the present application. In some embodiments, the battery capacity calibration process of the electronic device can be divided into: S910 to S980.

[0105] In step S910, the capacity of the electronic device in use may be monitored, and the charge and discharge data of the battery and the current ambient temperature may be detected when the battery is mounted on the electronic device.

[0106] In some embodiments, in the initial state before the electronic device is officially put into use, a battery in a single-cell state can be charged and discharged to obtain standard test data of the battery. The standard test data can be used as the third standard data in the aforementioned embodiment, and then the third standard data can be burned into the storage device of the electronic device.

[0107] In addition, in the initial state, the battery can be installed in an electronic device, and then the battery in the electronic device can be charged and discharged at different ambient temperatures to obtain charge and discharge data at different ambient temperatures in the initial state. The charge and discharge data at different ambient temperatures can then be processed to obtain the battery capacity corresponding to each state of charge. The multiple states of charge and the battery capacity corresponding to each state of charge can be used as the fourth standard data in the aforementioned embodiment, and the fourth standard data can be burned into the memory device of the electronic device. In particular, since the number of charge and discharge times of the battery in the initial state is relatively small, in order to distinguish between the initial state and the use state, the number of charge and discharge times of the battery in the use state can be set to be greater than a preset number, while the number of charge and discharge times of the battery in the initial state can be set to be less than the preset number.

[0108] In step S920, the first standard data can be obtained, and the first calibration coefficient a corresponding to the current ambient temperature can be obtained from the multiple temperature calibration coefficients, and the second calibration coefficient b can be obtained by comparing the charge and discharge data and the first standard data. The first standard data can be obtained from the second standard data according to the current ambient temperature. During the first calibration, the fourth standard data can be used as the second standard data; in each subsequent calibration, the latest battery capacity corresponding to each state of charge at different ambient temperatures obtained after the last calibration can be used as the second standard data. Multiple temperature calibration coefficients can be obtained based on the third standard data and the fourth standard data, and then the first calibration coefficient corresponding to the current ambient temperature is obtained from the multiple temperature calibration coefficients. It should be understood that the first standard data, the first calibration coefficient a, and the second calibration coefficient b can be determined based on the contents described in the aforementioned embodiments, and will not be repeated here.

[0109] In step S930, it is determined whether the second calibration coefficient b is greater than a preset threshold. If so, step S940 may be executed; if not, step S980 may be executed.

[0110] In step S940, it is determined whether the charge and discharge data meets preset conditions. If the charge and discharge data includes a first capacity change value and a current value, it is determined whether the first capacity change value is greater than or equal to a capacity threshold and whether the current value is greater than or equal to a current threshold. If both the first capacity change value and the current value meet these conditions, step S950 is executed. If neither the first capacity change value nor the current value meets these conditions, step S970 is executed.

[0111] In step S950, a capacity calibration value may be determined based on the first calibration coefficient a, the second calibration coefficient b, and the first standard data. Furthermore, the capacity calibration value may be determined based on a predetermined capacity calibration frequency and a target calibration capacity determined based on the first calibration coefficient a, the second calibration coefficient b, and the first standard data.

[0112] In step S960, the first standard data is calibrated based on the capacity calibration value. For example, the battery capacity corresponding to each state of charge in the first standard data may be subtracted from the corresponding capacity calibration value, thereby achieving calibration of the first standard data.

[0113] In step S970, the first standard data may be calibrated based on the capacity calibration value used in the last calibration. If the charge and discharge data do not meet the preset conditions, indicating that the battery is not currently in a normal charge and discharge process, there is no need to recalculate the battery capacity calibration value. Instead, the battery capacity corresponding to each state of charge in the first standard data may be calibrated based on the capacity calibration value used in the last calibration.

[0114] In step S980, the first standard data may be maintained unchanged. If the second calibration coefficient b is less than the preset threshold, it indicates that the difference between the battery capacity obtained in the previous calibration and the actual measured battery capacity is within a normal range, and the battery capacity may not be calibrated. Furthermore, the first standard data may be maintained unchanged.

[0115] It should be noted that, in order to ensure that the battery capacity corresponding to each state of charge in the electronic device always remains accurate to a certain extent, in some embodiments, after executing steps S960, S970 or S980, the capacity of the electronic device will continue to be monitored.

[0116] It should be noted that, in some embodiments, if it is determined in step S930 that the second calibration coefficient is equal to the preset threshold, the content shown in step S980 may be executed to keep the first standard data unchanged.

[0117] In other embodiments, if it is determined in step S930 that the second calibration coefficient is equal to the preset threshold, the contents shown in step S940 may be executed to further determine whether the charge and discharge data meets the preset conditions.

[0118] In addition, during each charge and discharge process of the electronic device, the current state of charge of the battery will be displayed based on the first standard data obtained by the latest calibration of the current electronic device and the current battery capacity of the battery.

[0119] In summary, the information calibration method provided in the embodiment of the present application is applied to calibrating the battery capacity of an electronic device, wherein the electronic device is equipped with a battery. First, in the use state, the charge and discharge data and the current ambient temperature of the battery in the electronic device are detected, and then the temperature calibration coefficient corresponding to the current ambient temperature is obtained from a plurality of pre-acquired temperature calibration coefficients as the first calibration coefficient, and based on the current ambient temperature, the first standard data corresponding to the current ambient temperature is determined from a plurality of second standard data, and then the second calibration coefficient is obtained based on the charge and discharge data and the first standard data. If the charge and discharge data meets the preset conditions and the second calibration coefficient is greater than the preset threshold, the capacity calibration frequency is obtained, the target calibration capacity is determined, and the capacity calibration value is determined according to the capacity calibration frequency, the first standard data and the target calibration capacity, and then the battery capacity corresponding to each state of charge in the first standard data is calibrated based on the capacity calibration value. Finally, the current state of charge of the battery is displayed based on the calibrated first standard data and the current battery capacity of the battery. The present application uses the first calibration coefficient, the second calibration coefficient, and the charge and discharge data measured in the actual usage scenario to calibrate the battery capacity, which can make the battery capacity corresponding to each state of charge more accurate, so that when displaying the remaining battery capacity, more accurate state of charge information can be displayed based on the current battery capacity of the battery.

[0120] See also Figure 10, which shows a block diagram of the structure of an information calibration device provided in one embodiment of the present application. The information calibration device can be used to calibrate the battery capacity of an electronic device equipped with a battery. The information calibration device includes: a detection unit 1010, a first determination unit 1020, a second determination unit 1030, a calibration unit 1040, and a display unit 1050. The detection unit 1010 is configured to detect charge and discharge data and a current ambient temperature of the battery in the electronic device in a use state, wherein the number of charge and discharge times of the battery in the use state is greater than a preset number; the first determination unit 1020 is configured to obtain a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient; the second determination unit 1030 is configured to obtain a second calibration coefficient based on the charge and discharge data and first standard data, wherein the first standard data includes a plurality of pre-acquired states of charge of the battery in the electronic device and a battery capacity corresponding to each state of charge; the calibration unit 1040 is configured to determine a capacity calibration value corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data if the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, and calibrate the battery capacity corresponding to each state of charge in the first standard data based on the capacity calibration value; and the display unit 1050 is configured to display the current state of charge of the battery based on the calibrated first standard data and the current battery capacity of the battery.

[0121] As a method, the second determination unit 1030 includes: a first acquisition unit, used to obtain the capacity calibration frequency of the battery when the battery is installed in the electronic device; a third determination unit, used to determine the target calibration capacity corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient and the first standard data; a fourth determination unit, used to determine the single calibration capacity according to the capacity calibration frequency, the first standard data and the target calibration capacity, and determine the single calibration capacity as the capacity calibration value.

[0122] Furthermore, the third determination unit may include a fifth determination unit configured to determine the target calibration capacity corresponding to each state of charge by multiplying the first calibration coefficient, the second calibration coefficient, and the battery capacity corresponding to each state of charge in the first standard data.

[0123] As a method, the information calibration device also includes: a sixth determination unit, used to determine the second standard data corresponding to the current ambient temperature from multiple second standard data based on the current ambient temperature as the first standard data, wherein each second standard data corresponds to an ambient temperature.

[0124] As a method, the information calibration device also includes: a temperature calibration coefficient determination unit, which is used to determine the multiple temperature calibration coefficients based on third standard data and fourth standard data, wherein the third standard data includes multiple charge states of the battery in a single-cell state in the initial state and the battery capacity corresponding to each charge state, and the fourth standard data includes multiple charge states of the battery in the electronic device detected in multiple ambient temperatures in the initial state and the battery capacity corresponding to each charge state, the number of charge and discharge times of the battery in the initial state is less than the preset number, and each temperature calibration coefficient corresponds one-to-one to each ambient temperature.

[0125] In some embodiments, the charge and discharge data include an initial state of charge, an end state of charge, a current value, and a first capacity change value, wherein the first capacity change value is the cumulative change in battery capacity of the battery from the initial state of charge to the end state of charge, and the first determination unit 1020 includes: a seventh determination unit, configured to determine, from the first standard data, a starting battery capacity corresponding to the initial state of charge and a termination battery capacity corresponding to the termination state of charge, and take the difference between the starting battery capacity and the termination battery capacity as a second capacity change value; and a comparison unit, configured to compare the second capacity change value with the first capacity change value to obtain the second calibration coefficient.

[0126] Further, in this embodiment, the charge and discharge data meeting a preset condition includes: the first capacity change value is greater than or equal to a capacity threshold and the current value is greater than or equal to a current threshold.

[0127] As an embodiment, the information calibration device further includes: a first processing unit, configured to keep the first standard data unchanged if the second calibration coefficient is smaller than the preset threshold.

[0128] As another embodiment, the information calibration device also includes: a second processing unit, which is used to calibrate the battery capacity corresponding to each state of charge in the first standard data based on the capacity calibration value used in the last calibration if the charging and discharging data does not meet the preset conditions and the second calibration coefficient is greater than the preset threshold.

[0129] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and module units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0130] In several embodiments provided in this application, the coupling between modules or units may be electrical, mechanical or other forms of coupling.

[0131] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0132] In summary, the information calibration method provided in this application is applied to calibrating the battery capacity of an electronic device equipped with a battery. First, the charge and discharge data and current ambient temperature of the battery within the electronic device are detected during use, where the battery has been charged and discharged more than a preset number of times. A temperature calibration coefficient corresponding to the current ambient temperature is then obtained from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient, and a second calibration coefficient is obtained based on the charge and discharge data and first standard data. The first standard data includes pre-acquired states of charge (SOCs) of the battery within the electronic device and the battery capacity corresponding to each SOC. If the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, a capacity calibration value corresponding to each SOC is determined based on the first calibration coefficient, the second calibration coefficient, and the first standard data. Next, the battery capacity corresponding to each SOC within the first standard data is calibrated based on the capacity calibration value. Finally, the current SOC of the battery is displayed based on the calibrated first standard data and the current battery capacity. The present application uses the first calibration coefficient, the second calibration coefficient, and the charge and discharge data measured in the actual usage scenario of the electronic device to calibrate the battery capacity, which can make the battery capacity corresponding to each state of charge more accurate, so that when displaying the remaining battery capacity, more accurate state of charge information can be displayed based on the current battery capacity of the battery.

[0133] Please refer to Figure 11 , which shows a block diagram of the structure of an electronic device provided in one embodiment of the present application. The electronic device has one or more of the following components: a processor 1110, a memory 1120, and one or more applications. The one or more applications may be stored in the memory 1120 and configured to be executed by the one or more processors 1110, and the one or more applications are configured to perform the method described in the aforementioned method embodiment.

[0134] The electronic device may be any of various types of computer system devices that are mobile, portable, and perform wireless communication. Specifically, the electronic device may be a mobile phone or smart phone (e.g., an iPhone™-based phone or an Android™-based phone), a portable gaming device (e.g., a Nintendo DS™, a PlayStation Portable™, a Gameboy Advance™, an iPhone™), a laptop computer, a PDA, a portable internet device, a music player, a data storage device, other handheld devices, and devices such as smart watches, smart bracelets, headphones, pendants, etc. The electronic device may also be other wearable devices (e.g., electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices, or head-mounted devices (HMDs)), smart home devices, in-vehicle devices, etc.

[0135] The electronic device can also be any one of a plurality of electronic devices, including but not limited to cellular phones, smart phones, smart watches, smart bracelets, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation instruments, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable multimedia players (PMPs), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.

[0136] In some cases, the electronic device can perform multiple functions (e.g., play music, display video, store pictures, and receive and send phone calls). If desired, the electronic device can be a cellular phone, a media player, other handheld device, a wristwatch device, a pendant device, an earpiece device, or other compact portable device.

[0137] Processor 1110 may include one or more processing cores. Processor 1110 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, applications, code sets, or instruction sets stored in memory 1120, as well as accesses data stored in memory 1120, to perform various functions of the electronic device and process data. Optionally, processor 1110 may be implemented using at least one of the following hardware forms: digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). Processor 1110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and applications; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into processor 1110 and may be implemented separately via a communications chip.

[0138] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1120 may be used to store instructions, applications, codes, code sets, or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device during use (such as a phone book, audio and video data, chat record data), etc.

[0139] Please refer to Figure 12 , which shows a block diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 1200 stores program code, which can be called by a processor to execute the method described in the above method embodiment.

[0140] Computer-readable storage medium 1200 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Alternatively, computer-readable storage medium 1200 may include a non-transitory computer-readable storage medium. Computer-readable storage medium 1200 has storage space for program code 1210 for executing any of the method steps described above. This program code can be read from or written to one or more computer program products. Program code 1210 may be compressed, for example, in a suitable format.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An information calibration method, characterized in that: The method is applied to calibrating the battery capacity of an electronic device, wherein the electronic device is equipped with a battery, and comprises: Under a specified state, detecting charge and discharge data of the battery in the electronic device and a current ambient temperature, wherein the number of charge and discharge times of the battery under the specified state is greater than a preset number; Acquire a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient; obtaining a second calibration coefficient based on the charge and discharge data and first standard data, wherein the first standard data includes a plurality of previously acquired states of charge of the battery in the electronic device and a battery capacity corresponding to each state of charge; If the charge and discharge data meets a preset condition and the second calibration coefficient is greater than a preset threshold, determining a capacity calibration value corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data, and calibrating the battery capacity corresponding to each state of charge in the first standard data based on the capacity calibration value; displaying a current state of charge of the battery based on the calibrated first standard data and the current battery capacity of the battery; If the second calibration coefficient is less than the preset threshold, the first standard data is kept unchanged.

2. The method according to claim 1, characterized in that The determining the capacity calibration value corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data includes: Obtaining a capacity calibration frequency of the battery when the battery is mounted on the electronic device; determining a target calibration capacity corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data; A single calibration capacity is determined according to the capacity calibration frequency, the first standard data, and the target calibration capacity, and the single calibration capacity is determined as the capacity calibration value.

3. The method according to claim 2, characterized in that The determining the target calibration capacity corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data includes: The target calibration capacity corresponding to each state of charge is determined by multiplying the first calibration coefficient, the second calibration coefficient, and the battery capacity corresponding to each state of charge in the first standard data.

4. The method according to claim 1, wherein Before obtaining the second calibration coefficient based on the charge and discharge data and the first standard data, the method further includes: Based on the current ambient temperature, second standard data corresponding to the current ambient temperature is determined from a plurality of second standard data as the first standard data, wherein each second standard data corresponds to an ambient temperature.

5. The method according to claim 1, wherein Before obtaining the temperature calibration coefficient corresponding to the current ambient temperature from the plurality of pre-acquired temperature calibration coefficients as the first calibration coefficient, the method further includes: The multiple temperature calibration coefficients are determined based on third standard data and fourth standard data, wherein the third standard data includes multiple charge states of the battery in a single-cell state in an initial state and the battery capacity corresponding to each charge state, and the fourth standard data includes multiple charge states of the battery in the electronic device detected at multiple ambient temperatures in the initial state and the battery capacity corresponding to each charge state, the number of charge and discharge times of the battery in the initial state is less than the preset number, and each temperature calibration coefficient corresponds one-to-one to each ambient temperature.

6. The method according to claim 1, wherein The charge and discharge data includes an initial state of charge, an end state of charge, a current value, and a first capacity change value, where the first capacity change value is a cumulative change in battery capacity from the initial state of charge to the end state of charge. Obtaining the second calibration coefficient based on the charge and discharge data and the first standard data includes: determining a starting battery capacity corresponding to the starting state of charge and a termination battery capacity corresponding to the termination state of charge from the first standard data, and taking a difference between the starting battery capacity and the termination battery capacity as a second capacity change value; comparing the second capacity change value with the first capacity change value to obtain the second calibration coefficient; The charge and discharge data meeting a preset condition includes: the first capacity change value being greater than or equal to a capacity threshold value and the current value being greater than or equal to a current threshold value.

7. The method according to claim 1, characterized in that The method further comprises: If the charge and discharge data does not meet the preset condition and the second calibration coefficient is greater than the preset threshold, the battery capacity corresponding to each state of charge in the first standard data is calibrated based on the capacity calibration value used in the last calibration.

8. An information calibration device, characterized in that: The device is applied to calibrate the battery capacity of an electronic device, wherein the electronic device is equipped with a battery, and comprises: A detection unit, configured to detect charge and discharge data of the battery in the electronic device and a current ambient temperature when the battery is in use, wherein the number of charge and discharge times of the battery in the use state is greater than a preset number; a first determining unit, configured to obtain a temperature calibration coefficient corresponding to the current ambient temperature from a plurality of pre-acquired temperature calibration coefficients as a first calibration coefficient; a second determining unit, configured to obtain a second calibration coefficient based on the charge and discharge data and first standard data, wherein the first standard data includes a plurality of pre-acquired states of charge of the battery in the electronic device and a battery capacity corresponding to each state of charge; a calibration unit, configured to determine, if the charge and discharge data satisfies a preset condition and the second calibration coefficient is greater than a preset threshold, a capacity calibration value corresponding to each state of charge based on the first calibration coefficient, the second calibration coefficient, and the first standard data, and calibrate the battery capacity corresponding to each state of charge in the first standard data based on the capacity calibration value; a display unit, configured to display a current state of charge of the battery based on the calibrated first standard data and a current battery capacity of the battery; The first processing unit is configured to keep the first standard data unchanged if the second calibration coefficient is less than the preset threshold.

9. An electronic device, characterized in that: The apparatus comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the information calibration method according to any one of claims 1 to 7 by calling the computer program.

10. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Battery capacity estimation method, device and equipment

    CN113030742A

  • Electric automobile, and calculation method, display method and device for residual electric quantity of electric automobile

    CN113232552A