Data processing method and device and storage medium

By collecting the voltage and power consumption ratio in the preset cycle of the battery and updating the preset relationship of the battery, the problem of inaccurate DOD value caused by battery aging is solved, and more accurate battery status monitoring is achieved.

CN120064983APending Publication Date: 2025-05-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311623792.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

As the battery life increases, the battery will age, resulting in a deviation between the actual DOD-OCV curve and the storage curve, which will lead to inaccurate current DOD value of the battery.

Method used

In M preset cycles of the battery, a plurality of first voltages and first power consumption ratios when the first preset condition is satisfied are collected, and the first preset relationship in the battery is updated according to these data, so that it is more adapted to the current state of the battery.

Benefits of technology

By updating the preset relationship of the battery, the discharge depth of the battery can be more accurately obtained, and the accuracy of battery status monitoring is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120064983A_ABST
    Figure CN120064983A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device and a storage medium. The method comprises the following steps: in M preset cycles of a battery, collecting a plurality of first voltages when the battery meets a first preset condition and a first power consumption ratio corresponding to each first voltage; wherein the first preset condition comprises that the duration when the current of the battery is smaller than the first preset value reaches the first preset duration; based on the first voltage and the first power consumption ratio, updating a first preset relation in the battery to obtain an updated first preset relation; wherein the first preset relation is used for indicating the corresponding relation between the open-circuit voltage and the discharge depth of the battery. According to the method disclosed by the invention, the first preset relationship in the battery is updated, so that the first preset relationship is more adaptive to the current state of the battery, and the battery discharge depth obtained based on the first preset relationship is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of battery technologies, and particularly to a data processing method, apparatus, and storage medium. Background Art

[0002] A rechargeable battery is a main power supply component for products such as electronic devices and electric vehicles. When the battery leaves the factory, a DOD (Depth of Discharge)-OCV (Open Circuit Voltage) curve is stored in the battery. Based on this, when the OCV value of the battery is obtained, the DOD value corresponding to the OCV value can be found from the DOD-OCV curve.

[0003] However, as the battery usage time increases, the battery will age, resulting in a deviation between the actual DOD-OCV curve of the battery and the DOD-OCV curve stored in the battery, and further resulting in a deviation in the current DOD value of the battery obtained according to the DOD-OCV curve stored in the battery. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a data processing method, apparatus, and storage medium. By updating a first preset relationship according to a first voltage and a first power consumption ratio, the obtained first preset relationship can be made more suitable for the current state of the battery, and thus the battery discharge depth obtained based on the first preset relationship is more accurate.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a data processing method, including:

[0006] In M preset cycles of the battery, collect a plurality of first voltages when the battery meets a first preset condition, and a first power consumption ratio corresponding to each of the first voltages; wherein, the first preset condition includes that the duration for which the current of the battery is less than a first preset value reaches a first preset duration, and M is an integer greater than or equal to 1;

[0007] Based on the first voltage and the first power consumption ratio, update the first preset relationship in the battery to obtain an updated first preset relationship;

[0008] wherein, the first preset relationship is used to indicate the corresponding relationship between the open circuit voltage and the discharge depth of the battery.

[0009] In some embodiments, the step of, in M preset cycles of the battery, collecting a plurality of first voltages when the battery meets a first preset condition, and a first power consumption ratio corresponding to each of the first voltages, includes:

[0010] In the i-th preset cycle of the battery, if the battery satisfies the first preset condition, obtain the j-th first voltage of the battery; where i is an integer greater than or equal to 1 and less than or equal to M, and j is an integer greater than 1;

[0011] Obtain the power consumption of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage, and obtain the j-th power consumption;

[0012] Determine the j-th first power consumption ratio according to the preset discharge capacity of the battery and the j-th power consumption.

[0013] In some embodiments, the obtaining the power consumption of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage, and obtaining the j-th power consumption includes:

[0014] Obtain the current of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage;

[0015] Based on the current, determine the j-th power consumption.

[0016] In some embodiments, the method further includes:

[0017] Determine the interval duration from the acquisition time of the j-th first voltage to the acquisition time of the (j + 1)-th first voltage;

[0018] If the interval duration is greater than the second preset duration, stop collecting the first voltage in the i-th preset cycle.

[0019] In some embodiments, the updating the first preset relationship based on the first voltage and the first power consumption ratio to obtain the updated first preset relationship includes:

[0020] Based on the first preset relationship, obtain the first initial voltage of the battery;

[0021] In each of the M preset cycles, obtain the second initial voltage when the battery satisfies the second preset condition, where the second preset condition includes that the remaining power of the battery is greater than the second preset value, and the duration when the current of the battery is less than the first preset value reaches the first preset duration;

[0022] According to the first initial voltage and the second initial voltage, correct each of the first voltages to obtain the second voltage;

[0023] Based on the second voltage and the first power consumption ratio, update the first preset relationship to obtain the updated first preset relationship.

[0024] In some embodiments, correcting each of the first voltages according to the first initial voltage and the second initial voltage to obtain a second voltage includes:

[0025] Determining a third initial voltage according to the first initial voltage and the second initial voltage when i is 1;

[0026] Based on the difference between the third initial voltage and the second initial voltage in the i-th preset cycle, correcting the j-th first voltage in the i-th preset cycle to obtain the j-th second voltage.

[0027] In some embodiments, updating the first preset relationship based on the second voltage and the first power consumption ratio to obtain the updated first preset relationship includes:

[0028] Based on a second preset relationship, obtaining a first depth of discharge corresponding to each of the second voltages;

[0029] Based on a third preset relationship, obtaining a second depth of discharge corresponding to each of the second voltages, where the degree of aging of the battery corresponding to the third preset relationship is greater than the degree of aging of the battery corresponding to the first preset relationship, and the degree of aging of the battery corresponding to the first preset relationship is greater than or equal to the degree of aging of the battery corresponding to the second preset relationship;

[0030] Determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge;

[0031] Updating the first preset relationship based on the second voltage and the second power consumption ratio to obtain the updated first preset relationship.

[0032] In some embodiments, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge includes:

[0033] Determining a first difference between the first power consumption ratio and the first depth of discharge;

[0034] Determining a second difference between the first depth of discharge and the second depth of discharge;

[0035] Based on the first difference and the second difference, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge.

[0036] In some embodiments, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge based on the first difference and the second difference includes:

[0037] When the absolute value of the first difference is less than or equal to the absolute value of the second difference, determine the first power consumption ratio as the second power consumption ratio;

[0038] When the absolute value of the first difference is greater than the absolute value of the second difference, determine the second depth of discharge as the second power consumption ratio.

[0039] In some embodiments, the method further includes:

[0040] Determine the current depth of discharge of the battery according to the updated first preset relationship.

[0041] According to a second aspect of the embodiments of the present disclosure, there is provided a data processing device, including:

[0042] An acquisition module, configured to acquire a plurality of first voltages when the battery satisfies a first preset condition in M preset cycles of the battery, and a first power consumption ratio corresponding to each of the first voltages; wherein, the first preset condition includes that the duration for which the current of the battery is less than a first preset value reaches a first preset duration, and M is an integer greater than or equal to 1;

[0043] An update module, configured to update a first preset relationship in the battery based on the first voltage and the first power consumption ratio to obtain an updated first preset relationship;

[0044] wherein, the first preset relationship is used to indicate the corresponding relationship between the open-circuit voltage and the depth of discharge of the battery.

[0045] In some embodiments, the acquisition module includes:

[0046] A first obtaining unit, configured to obtain the jth first voltage of the battery in the ith preset cycle of the battery if the battery satisfies the first preset condition; i is an integer greater than or equal to 1 and less than or equal to M, and j is an integer greater than 1;

[0047] A second obtaining unit, configured to obtain the power consumption of the battery from the start time of the ith preset cycle to the acquisition time of the jth first voltage to obtain the jth power consumption;

[0048] A determining unit, configured to determine the jth first power consumption ratio according to the preset discharge capacity of the battery and the jth power consumption.

[0049] In some embodiments, the second obtaining unit is configured to:

[0050] Obtain the current of the battery from the start time of the ith preset cycle to the acquisition time of the jth first voltage;

[0051] Determine the power consumption of the j-th based on the current.

[0052] In some embodiments, the apparatus further includes:

[0053] A first determination module, configured to determine the interval duration from the acquisition moment of the j-th first voltage to the acquisition moment of the (j + 1)-th first voltage;

[0054] A stop module, configured to stop acquiring the first voltage in the i-th preset cycle if the interval duration is greater than a second preset duration.

[0055] In some embodiments, the update module includes:

[0056] A third acquisition unit, configured to acquire the first initial voltage of the battery based on the first preset relationship;

[0057] A fourth acquisition unit, configured to acquire the second initial voltage when the battery satisfies a second preset condition in each of the M preset cycles, where the second preset condition includes that the remaining power of the battery is greater than a second preset value, and the duration for which the current of the battery is less than a first preset value reaches a first preset duration;

[0058] A correction unit, configured to correct each of the first voltages according to the first initial voltage and the second initial voltage to obtain a second voltage;

[0059] An update unit, configured to update the first preset relationship based on the second voltage and the first power consumption ratio to obtain the updated first preset relationship.

[0060] In some embodiments, the correction unit is configured to:

[0061] Determine a third initial voltage according to the first initial voltage and the second initial voltage when i = 1;

[0062] Correct the j-th first voltage in the i-th preset cycle based on the difference between the third initial voltage and the second initial voltage in the i-th preset cycle to obtain the j-th second voltage.

[0063] In some embodiments, the update unit is configured to:

[0064] Obtain the first depth of discharge corresponding to each of the second voltages based on a second preset relationship;

[0065] Based on a third preset relationship, obtain the second depth of discharge corresponding to each of the second voltages, where the degree of aging of the battery corresponding to the third preset relationship is greater than the degree of aging of the battery corresponding to the first preset relationship, and the degree of aging of the battery corresponding to the first preset relationship is greater than or equal to the degree of aging of the battery corresponding to the second preset relationship;

[0066] Determine the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge;

[0067] Based on the second voltage and the second power consumption ratio, update the first preset relationship to obtain the updated first preset relationship.

[0068] In some embodiments, the updating unit is configured to:

[0069] Determine a first difference between the first power consumption ratio and the first depth of discharge;

[0070] Determine a second difference between the first depth of discharge and the second depth of discharge;

[0071] Based on the first difference and the second difference, determine the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge.

[0072] In some embodiments, the updating unit is configured to:

[0073] When the absolute value of the first difference is less than or equal to the absolute value of the second difference, determine the first power consumption ratio as the second power consumption ratio;

[0074] When the absolute value of the first difference is greater than the absolute value of the second difference, determine the second depth of discharge as the second power consumption ratio.

[0075] In some embodiments, the apparatus further includes:

[0076] A second determination module, configured to determine the current depth of discharge of the battery according to the updated first preset relationship.

[0077] According to a third aspect of the embodiments of the present disclosure, there is provided a data processing apparatus, including:

[0078] A processor;

[0079] A memory configured to store instructions executable by the processor;

[0080] Wherein the processor is configured to: when executed, implement the steps in any one of the data processing methods in the first aspect and the second aspect above.

[0081] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a data processing device, the device can execute any one of the data processing methods in the first aspect and the second aspect described above.

[0082] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0083] In the embodiments of the present disclosure, in M preset cycles, when the battery meets the first preset condition, the first voltage and the first power consumption ratio of the battery are collected, so that a plurality of first voltages and a plurality of first power consumption ratios can be obtained, and the first preset relationship in the battery is updated according to the plurality of first voltages and the plurality of first power consumption ratios to obtain an updated first preset relationship. Since when the current of the battery is less than the first preset value, the voltage of the battery is close to the open-circuit voltage and the first power consumption ratio of the battery is close to the depth of discharge of the battery, therefore, updating the first preset relationship according to the first voltage and the first power consumption ratio can make the obtained first preset relationship more adaptable to the current state of the battery, and further make the depth of discharge of the battery obtained based on the updated first preset relationship more accurate.

[0084] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0086] Figure 1 It is a DOD-OCV curve of a graphite battery shown according to an exemplary embodiment.

[0087] Figure 2 It is a DOD-OCV curve of a silicon-carbon battery shown according to an exemplary embodiment.

[0088] Figure 3 It is a schematic structural diagram of a coulombmeter shown according to an exemplary embodiment.

[0089] Figure 4 It is a schematic flowchart of a data processing method shown according to an exemplary embodiment.

[0090] Figure 5 It is a schematic flowchart of a data processing method shown according to another exemplary embodiment.

[0091] Figure 6 It is a schematic flowchart of a data processing method shown according to still another exemplary embodiment.

[0092] Figure 7 is a schematic flowchart of a data processing method shown according to another exemplary embodiment.

[0093] Figure 8 is a schematic flowchart of a data processing method shown according to another exemplary embodiment.

[0094] Figure 9 is a schematic flowchart of a data processing method shown according to another exemplary embodiment.

[0095] Figure 10 is a schematic diagram of an updated first preset relationship shown according to an exemplary embodiment.

[0096] Figure 11 is a block diagram of a data processing device shown according to an exemplary embodiment.

[0097] Figure 12 is a hardware structure block diagram of a data processing device shown according to an exemplary embodiment. Detailed implementation manners

[0098] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all the implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0099] A rechargeable battery is the main power supply component for products such as electronic devices and electric vehicles. When the battery leaves the factory, a DOD (Depth of discharge)-OCV (Open Circuit Voltage) curve is stored in the battery. Based on this, when the OCV value of the battery is obtained, the DOD value corresponding to this OCV value can be found from the DOD-OCV curve.

[0100] However, as the battery usage time increases, the battery will age, resulting in a deviation between the actual DOD-OCV curve of the battery and the DOD-OCV curve stored in the battery. As a result, the current DOD value of the battery obtained according to the DOD-OCV curve stored in the battery is deviated, reducing the accuracy of obtaining the current DOD value of the battery.

[0101] Exemplarily, refer to Figure 1 , Figure 1 is a DOD-OCV curve of a graphite battery shown according to an exemplary embodiment. FromFigure 1 It can be seen that before and after aging, the change in the DOD-OCV curve of the graphite battery is small. Figure 2 is the DOD-OCV curve of a silicon-carbon battery shown according to an exemplary embodiment. From Figure 2 it can be seen that before and after aging, the DOD-OCV curve of the silicon-carbon battery has changed greatly. Therefore, if the DOD-OCV curve of the silicon-carbon battery is not updated during the use of the silicon-carbon battery, there will be a deviation between the DOD value found from the DOD-OCV curve based on the open-circuit voltage of the silicon-carbon battery and the actual DOD value of the battery when looking up the DOD value of the battery.

[0102] To solve the above problems, the embodiments of the present disclosure provide a data processing method. Among them, the data processing method provided by the embodiments of the present disclosure can be executed by the electronic device where the battery is located, can also be executed by the fuel gauge in the battery, or can be executed by the processor with data processing capabilities in the battery. The embodiments of the present disclosure do not limit this. In the following, taking the fuel gauge as the execution subject, the data processing method provided by the embodiments of the present disclosure will be introduced.

[0103] Refer to Figure 3 and Figure 4 , Figure 3 is a schematic structural diagram of a fuel gauge shown according to an exemplary embodiment, Figure 4 is a schematic flowchart of a data processing method shown according to an exemplary embodiment. As Figure 3 shown. The data processing method includes:

[0104] S401: In M preset cycles of the battery, collect a plurality of first voltages when the battery meets the first preset condition, and the first power consumption ratio corresponding to each first voltage.

[0105] Among them, the first preset condition includes that the duration for which the current of the battery is less than the first preset value reaches the first preset duration, and M is an integer greater than or equal to 1.

[0106] It can be understood that during the use of the battery, the fuel gauge will count the number of cycles of the battery. After the battery works to the preset number of cycles according to the first preset relationship stored currently, the data processing method of the embodiments of the present disclosure is executed once to update the first preset relationship. Exemplarily, if the fuel gauge updates the first preset relationship stored in the battery every 100 cycles of the battery, the fuel gauge will execute the above step S401 to complete the update of the first preset relationship when the battery starts the 101st cycle, and execute step S401 to complete the update of the first preset relationship when the battery starts the 201st cycle, and so on, until the end of the battery life.

[0107] It can be understood that when the first preset relationship is updated for the first time, the first preset relationship to be updated in the battery is the mapping relationship between the DOD and the OCV stored in the battery when the battery leaves the factory. When the first preset relationship is updated for the second time, the first preset relationship to be updated in the battery is the first preset relationship after the previous update. Among them, the M preset cycles can be the M cycles after the first preset relationship in the battery meets the update condition.

[0108] Among them, the specific value of M can be set as needed. Exemplarily, the value range of M can be 5 - 30. For example, the value of M can be 20.

[0109] For example, if the fuel gauge updates the first preset relationship stored in the battery every 100 cycles of the battery, and when the value of M is 20, after the battery completes the 100th cycle, the fuel gauge determines that the first preset relationship in the battery meets the update condition. Starting from the 101st cycle, when the battery meets the first preset condition, the fuel gauge collects the first voltage and the first power consumption ratio of the battery. When the 120th cycle of the battery ends, the collection of the first voltage and the first power consumption ratio stops. After that, the fuel gauge updates the first preset relationship for the first time through the first voltage and the first power consumption ratio of the battery from the 100th cycle to the 120th cycle. When the battery completes the 200th cycle, it is determined that the first preset relationship in the battery meets the update condition again. Starting from the 201st cycle, when the battery meets the first preset condition, the fuel gauge collects the first voltage and the first power consumption ratio of the battery. When the 220th cycle of the battery ends, the collection of the first voltage and the first power consumption ratio stops, and the first preset relationship is updated for the second time through the first voltage and the first power consumption ratio of the battery from the 200th cycle to the 220th cycle.

[0110] In some embodiments, the above-mentioned battery can be a battery capable of multiple charge and discharge cycles. Exemplarily, the above-mentioned battery can specifically include but is not limited to carbon-silicon batteries, graphite batteries, nickel-cadmium batteries, nickel-metal hydride batteries, lithium-ion batteries, lithium polymer batteries, and / or lead-acid batteries, etc.

[0111] In some embodiments, the above-mentioned first power consumption ratio can be the ratio of the power consumption from the start time of the current cycle of the battery to the collection time of the first voltage to the preset discharge capacity.

[0112] Exemplarily, the preset discharge capacity can be the rated capacity of the battery, or the average value of the discharge amounts of the battery in N preset cycles before the current moment, or the preset discharge capacity can be obtained in other ways. The embodiments of the present disclosure do not limit this.

[0113] In some embodiments, the above-mentioned first preset value and the magnitude of the first preset duration can be set as needed, and the embodiments of the present disclosure do not limit this.

[0114] Exemplarily, the value range of the first preset value can be from 200 milliamperes (mA) to 300 mA. For example, the first preset value can be 250 mA. The value range of the first preset duration can be from 30 s to 5 min. For example, the first preset duration can be 60 seconds (s).

[0115] Exemplarily, when the current meter detects that the current of the battery is less than 250 mA and the duration for which the current of the battery is less than 250 mA reaches 60 s, it is determined that the battery meets the first preset condition. At this time, the current meter collects the first voltage of the battery and the power consumption of the battery, and calculates the first power consumption ratio of the battery according to the power consumption of the battery, so that the first power consumption ratio corresponding to each first voltage can be obtained.

[0116] It should be noted that "reaching" in the embodiments of the present disclosure can be understood as being greater than or equal to.

[0117] S402: Update the first preset relationship in the battery based on the first voltage and the first power consumption ratio to obtain the updated first preset relationship.

[0118] Among them, the first preset relationship is used to indicate the corresponding relationship between the open-circuit voltage and the depth of discharge of the battery.

[0119] It can be understood that after the current meter obtains the first voltage collected by the battery in M preset cycles and the first power consumption ratio corresponding to each first voltage through the above S401, the first preset relationship can be updated according to each first voltage and the first power consumption ratio corresponding to each first voltage.

[0120] In some embodiments, the first preset relationship can be the DOD-OCV curve of the battery, and the first preset relationship can also be a mapping relationship table between DOD and OCV stored in the battery.

[0121] It should be noted that only several implementation manners of the first preset relationship are listed above as examples, and it does not constitute a limitation on the implementation form of the first preset relationship in the embodiments of the present disclosure.

[0122] In some embodiments, when the first preset relationship is the DOD-OCV curve of the battery, after the current meter obtains a plurality of first voltages and the first power consumption ratio corresponding to each first voltage through the above S401, the current meter can use the first power consumption ratio as the abscissa and the first voltage corresponding to each first power consumption ratio as the ordinate to obtain a first curve, and update the first preset relationship stored in the battery to the first curve.

[0123] In some other embodiments, when the first preset relationship is a mapping relationship table between DOD and OCV, after the fuel gauge obtains multiple first voltages and the first power consumption ratios corresponding to each first voltage through S401 above, the fuel gauge can look up the OCV value equal to the first voltage in the mapping relationship table, and replace the DOD corresponding to the OCV value equal to the first voltage with the first power consumption ratio corresponding to the first voltage.

[0124] In the embodiments of the present disclosure, in M preset cycles, when the battery meets the first preset condition, the first voltage and the first power consumption ratio of the battery are collected, so that multiple first voltages and multiple first power consumption ratios can be obtained, and the first preset relationship in the battery is updated according to the multiple first voltages and multiple first power consumption ratios to obtain the updated first preset relationship. Since when the current of the battery is less than the first preset value, the voltage of the battery is close to the open-circuit voltage, and the first power consumption ratio of the battery is close to the depth of discharge of the battery. Therefore, updating the first preset relationship according to the first voltage and the first power consumption ratio can make the obtained first preset relationship more adaptable to the current state of the battery, and further make the depth of discharge of the battery obtained based on the updated first preset relationship more accurate.

[0125] Reference Figure 5 , Figure 5 is a flowchart of a data processing method shown according to another exemplary embodiment. Reference Figure 5 , in some embodiments, S401 includes:

[0126] S501: In the i-th preset cycle of the battery, if the battery meets the first preset condition, obtain the j-th first voltage of the battery; where i is an integer greater than or equal to 1 and less than or equal to M, and j is an integer greater than 1;

[0127] S502: Obtain the power consumption of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage to obtain the j-th power consumption;

[0128] S503: Determine the j-th first power consumption ratio according to the preset discharge capacity of the battery and the j-th power consumption.

[0129] It can be understood that in the \(i\)-th preset cycle among the \(M\) preset cycles of the battery, the fuel gauge can obtain the current of the battery every third preset time interval. When the fuel gauge detects that the current of the battery is less than the first preset value, it starts timing. If the duration during which the current of the battery is less than the first preset value reaches the first preset duration, it is determined that the battery meets the first preset condition. At this time, the fuel gauge can collect the voltage of the battery to obtain the \(j\)-th first voltage. In addition, the fuel gauge can also obtain the power consumption of the battery from the start time of the \(i\)-th preset cycle to the collection time of the \(j\)-th first voltage, so as to obtain the \(j\)-th power consumption in the \(i\)-th preset cycle. In the following text, for the convenience of description, the \(j\)-th power consumption in the \(i\)-th preset cycle is simply referred to as the \(j\)-th power consumption. The fuel gauge can calculate the ratio between the \(j\)-th power consumption and the preset discharge capacity to obtain the \(j\)-th first power consumption ratio in the \(i\)-th preset cycle. In the following text, for the convenience of description, the \(j\)-th first power consumption ratio in the \(i\)-th preset cycle is simply referred to as the \(j\)-th first power consumption ratio.

[0130] It should be noted that the process of the fuel gauge collecting the first voltage can be carried out during the battery charging process or during the battery discharging process, and the embodiments of the present disclosure do not limit this.

[0131] In some embodiments, the above-mentioned third preset time interval can also be set as needed, and the embodiments of the present disclosure do not limit this.

[0132] Exemplarily, the value range of the third preset time interval can be from 1 s to 10 s. Exemplarily, the third preset time interval is set to 5 s.

[0133] In some embodiments, the above-mentioned preset discharge capacity can be the maximum discharge amount in any one or more cycles of the battery before the current moment.

[0134] Exemplarily, the fuel gauge can obtain the discharge amount of the battery in the previous cycle and use the maximum discharge amount of the battery in the previous cycle as the preset discharge capacity. The fuel gauge can also obtain the maximum discharge amounts of the battery in the previous 10 cycles and use the average value of the maximum discharge amounts of the battery in the previous 10 cycles as the preset discharge capacity.

[0135] Among them, the maximum discharge amount of the battery in each cycle can be obtained by performing simulation calculations on the battery, or the maximum discharge amount of the battery in each cycle can be obtained by other means, and the embodiments of the present disclosure do not limit this.

[0136] In some embodiments, S502 includes:

[0137] Obtain the current of the battery from the start time of the \(i\)-th preset cycle to the collection time of the \(j\)-th first voltage;

[0138] Determine the \(j\)-th power consumption based on the working current.

[0139] Understandably, the fuel gauge can collect the current of the battery every fourth preset time period and store the collected current. Based on this, when the fuel gauge collects the j-th first voltage in the i-th preset cycle of the battery, the fuel gauge can also read from the memory the current of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage. Then, based on the current of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage, determine the power consumption of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage, and obtain the j-th power consumption.

[0140] In some embodiments, the above-mentioned fourth preset time period can also be set as needed, and the embodiments of the present disclosure do not limit this.

[0141] Exemplarily, the possible value range of the fourth preset time period is from 0.1 s to 0.5 s. Exemplarily, the fourth preset time period is set to 0.2 s.

[0142] In some embodiments, the fuel gauge can determine the power consumption of the battery by the ampere-hour integration method according to the current of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage.

[0143] In some other embodiments, if j is greater than 3, in the i-th preset cycle of the battery, since the fuel gauge calculates the power consumption of the battery from the start time of the i-th preset cycle to the collection time of the (j - 1)-th first voltage when collecting the (j - 1)-th first voltage, that is, obtains the (j - 1)-th power consumption. Therefore, when the fuel gauge collects the j-th first voltage, it can calculate the power consumption of the battery from the collection time of the (j - 1)-th first voltage to the collection time of the j-th first voltage based on the current of the battery from the collection time of the (j - 1)-th first voltage to the collection time of the j-th first voltage. Then, the fuel gauge can use the sum of the power consumption of the battery from the collection time of the (j - 1)-th first voltage to the collection time of the j-th first voltage and the (j - 1)-th power consumption as the j-th power consumption.

[0144] In some embodiments, the method further includes:

[0145] Determine the interval duration from the collection time of the j-th first voltage to the collection time of the (j + 1)-th working voltage;

[0146] If the interval duration is greater than the first preset duration, stop collecting the first voltage in the i-th preset cycle.

[0147] It can be understood that when the fuel gauge collects each first voltage, it also records the acquisition time of each first voltage. Based on this, when the fuel gauge collects the (j + 1)-th first voltage, it can also record the acquisition time of the (j + 1)-th first voltage. For convenience of description, the acquisition time of the (j + 1)-th first voltage is referred to as the first acquisition time. In addition, the fuel gauge can also find the acquisition time of the j-th first voltage to obtain the second acquisition time. Then, the fuel gauge can calculate the interval duration from the second acquisition time to the first acquisition time. If the interval duration from the second acquisition time to the first acquisition time is greater than the first preset duration, it is determined to stop collecting the first voltage in the i-th preset cycle and discard the (j + 1)-th first voltage.

[0148] In some embodiments, the magnitude of the second preset duration can also be set as needed, and the embodiments of the present disclosure do not limit this.

[0149] Exemplarily, the value range of the second preset duration can be from 20 hours (h) to 25 h. For example, the value range of the second preset duration can be 24 h.

[0150] In some embodiments, in the i-th preset cycle of the battery, if the interval duration between the first acquisition time of the (j + 1)-th first voltage collected by the fuel gauge and the second acquisition time of the j-th first voltage collected by the fuel gauge is greater than 24 h, stop collecting the first voltage in the i-th preset cycle and discard the (j + 1)-th first voltage.

[0151] Among them, the above-mentioned discarding of the (j + 1)-th first voltage can be understood as that the (j + 1)-th first voltage does not participate in the process of updating the first preset relationship in the following text.

[0152] Refer to Figure 6 , Figure 6 is a flowchart of a data processing method shown according to another exemplary embodiment. In some embodiments, S402 includes:

[0153] S601: Obtain the first initial voltage of the battery based on the first preset relationship.

[0154] It can be understood that during the entire service life of the battery, the first preset relationship in the battery may be updated multiple times. Therefore, the fuel gauge can find the first initial voltage of the battery from the first preset relationship currently stored in the battery.

[0155] In some embodiments, the fuel gauge can use the voltage when the depth of discharge is 0 in the first preset relationship as the first initial voltage.

[0156] In some embodiments, the fuel gauge can also determine the first first voltage collected by the fuel gauge when the first preset relationship was updated last time as the first initial voltage.

[0157] S602: In each of the M preset cycles, obtain the second initial voltage when the battery meets the second preset condition.

[0158] Wherein, the second preset condition includes that the duration for which the current of the battery is less than the first preset value reaches the first preset duration, and the remaining power of the battery is greater than the second preset value.

[0159] It can be understood that the fuel gauge can also obtain the remaining power of the battery at the start of the i-th preset cycle of the battery. If the remaining power of the battery is greater than the second preset value, the fuel gauge can obtain the current of the battery every third preset duration. When the duration for which the current of the battery is less than the first preset value reaches the first preset duration, it is determined that the battery meets the second preset condition. At this time, the fuel gauge collects the voltage of the battery to obtain the second initial voltage in the i-th preset cycle. Wherein, i can be 1, 2 to M in sequence.

[0160] In some embodiments, the value range of the second preset value can be from 95% of the preset discharge capacity to 100% of the preset discharge capacity, or can also be from 95% of the battery rated capacity to 100% of the battery rated capacity.

[0161] In some embodiments, the second initial voltage of the battery in each of the M preset cycles can also be the first first voltage in each preset cycle.

[0162] Exemplarily, if the M preset cycles are the 201st cycle to the 220th cycle of the battery, the fuel gauge can use the first first voltage collected in the 201st cycle of the battery as the second initial voltage in the 201st cycle of the battery. The fuel gauge can use the first first voltage collected in the 202nd cycle of the battery as the second initial voltage in the 202nd cycle.

[0163] S603: Correct each first voltage according to the first initial voltage and the second initial voltage to obtain the second voltage.

[0164] It can be understood that after the fuel gauge obtains the first initial voltage through S601 above and obtains the second initial voltage through S602 above, the fuel gauge can correct each first voltage according to the first initial voltage and the second initial voltage in each of the M preset cycles to obtain the second voltage corresponding to each first voltage.

[0165] In some embodiments, after obtaining the second initial voltage at the i-th preset cycle, the coulombmeter may calculate the difference between the second initial voltage and the first initial voltage at the i-th preset cycle to obtain the third difference at the i-th preset cycle, and correct each first voltage at the i-th preset cycle according to the third difference to obtain the second voltage corresponding to each first voltage.

[0166] Exemplarily, the coulombmeter may perform a subtraction operation on the j-th first voltage collected at the i-th preset cycle and the third difference at the i-th preset cycle to obtain the j-th second voltage.

[0167] In some other embodiments, correcting each first voltage according to the first initial voltage and the second initial voltage to obtain the second voltage includes:

[0168] Determining a third initial voltage according to the first initial voltage and the second initial voltage when i is 1;

[0169] Based on the difference between the third initial voltage and the second initial voltage at the i-th preset cycle, correcting the j-th first voltage at the i-th preset cycle to obtain the j-th second voltage.

[0170] It can be understood that the coulombmeter may also determine the smaller value between the first initial voltage and the second initial voltage at the first preset cycle, and use the smaller value between the first initial voltage and the second initial voltage at the first preset cycle as the third initial voltage. After that, the coulombmeter may calculate the difference between the third initial voltage and the second initial voltage at the i-th preset cycle to obtain the fourth difference at the i-th preset cycle. After obtaining the fourth difference at the i-th cycle, the coulombmeter may correct the j-th first voltage at the i-th preset cycle through the fourth difference at the i-th cycle to obtain the j-th second voltage.

[0171] Exemplarily, at the i-th preset cycle, the coulombmeter may perform a subtraction operation on the j-th first voltage and the fourth difference at the i-th preset cycle to obtain the j-th second voltage at the i-th preset cycle.

[0172] S604: Update the first preset relationship based on the second voltage and the first power consumption ratio to obtain the updated first preset relationship.

[0173] Among them, the implementation manner in which the coulombmeter updates the first preset relationship according to the second voltage and the first power consumption ratio may refer to the implementation manner in which the coulombmeter updates the first preset relationship according to the first voltage and the first power consumption ratio as described above, and the embodiments of the present disclosure will not be elaborated herein.

[0174] Refer to Figure 7 , Figure 7 is a flowchart of a data processing method shown according to another exemplary embodiment. In some embodiments, S604 includes:

[0175] S701: Obtain the first depth of discharge corresponding to each second voltage based on the second preset relationship;

[0176] S702: Obtain the second depth of discharge corresponding to each second voltage based on the third preset relationship, where the degree of battery aging corresponding to the third preset relationship is greater than the degree of battery aging corresponding to the first preset relationship, and the degree of battery aging corresponding to the first preset relationship is greater than or equal to the degree of battery aging corresponding to the second preset relationship;

[0177] S703: Determine the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge;

[0178] S704: Update the first preset relationship based on the second voltage and the second power consumption ratio to obtain the updated first preset relationship.

[0179] It can be understood that the above-mentioned second preset relationship can be the corresponding relationship between the open-circuit voltage and the depth of discharge measured from a battery that has never been put into use. The above-mentioned third preset relationship can be the corresponding relationship between the open-circuit voltage and the depth of discharge of the same type of battery after aging. Among them, the second preset relationship and the third preset relationship are both stored in the battery before leaving the factory. Based on this, every time the fuel gauge obtains a second voltage, or after obtaining the second voltages under M preset cycles, it can look up the first depth of discharge corresponding to each second voltage from the second preset relationship; the fuel gauge can also look up the second depth of discharge corresponding to each second voltage from the third preset relationship. Then, the fuel gauge can determine the second power consumption ratio corresponding to the second voltage from the first power consumption ratio, the first depth of discharge, and the second depth of discharge corresponding to each second voltage, and update the first preset relationship based on the second voltage and the second power consumption ratio corresponding to each second voltage to obtain the updated first preset relationship.

[0180] In some embodiments, after the fuel gauge obtains the first power consumption ratio, the first depth of discharge, and the second depth of discharge corresponding to a second voltage, it can calculate the average value of the first power consumption ratio, the first depth of discharge, and the second depth of discharge, and use the average value of the first power consumption ratio, the first depth of discharge, and the second depth of discharge as the second power consumption ratio corresponding to the second voltage.

[0181] In other embodiments, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge includes:

[0182] Determine the first difference between the first power consumption ratio and the first depth of discharge;

[0183] Determine the second difference between the first depth of discharge and the second depth of discharge;

[0184] Based on the first difference and the second difference, a second power consumption ratio is determined from the first power consumption ratio, the first depth of discharge, and the second depth of discharge.

[0185] It can be understood that after the coulombmeter obtains the first power consumption ratio, the first depth of discharge, and the second depth of discharge corresponding to a second voltage, it can calculate the difference between the first power consumption ratio and the first depth of discharge to obtain the first difference. The coulombmeter can also calculate the difference between the first depth of discharge and the second depth of discharge to obtain the second difference. Then, the coulombmeter can determine the second power consumption ratio corresponding to the second voltage from the first power consumption ratio, the first depth of discharge, and the second depth of discharge according to the first difference and the second difference.

[0186] Exemplarily, taking the j-th second voltage in the i-th preset cycle as an example, the implementation process of determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge is described. After the coulombmeter obtains the j-th second voltage in the i-th preset cycle, it can look up the depth of discharge corresponding to the j-th second voltage in the second preset relationship to obtain the j-th first depth of discharge in the i-th preset cycle. The coulombmeter can look up the depth of discharge corresponding to the j-th second voltage in the third preset relationship to obtain the j-th second depth of discharge in the i-th preset cycle. Then, the coulombmeter can calculate the difference between the j-th first power consumption ratio and the j-th first depth of discharge to obtain the j-th first difference in the i-th preset cycle. The coulombmeter can also calculate the difference between the first depth of discharge and the second depth of discharge to obtain the j-th second difference in the i-th preset cycle. Hereinafter, for convenience of description, the j-th first difference in the i-th preset cycle is simply referred to as the j-th first difference, and the j-th second difference in the i-th preset cycle is simply referred to as the j-th second difference. After the coulombmeter obtains the j-th first difference and the j-th second difference, it can determine the j-th second power consumption ratio from the j-th first power consumption ratio, the j-th first depth of discharge, and the j-th second depth of discharge according to the j-th first difference and the j-th second difference.

[0187] In some embodiments, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge based on the first difference and the second difference includes:

[0188] When the absolute value of the first difference is less than or equal to the absolute value of the second difference, the first power consumption ratio is determined as the second power consumption ratio;

[0189] When the absolute value of the first difference is greater than the absolute value of the second difference, the second depth of discharge is determined as the second power consumption ratio.

[0190] Exemplarily, taking the j-th second voltage in the i-th preset cycle as an example, the implementation process of determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge based on the first difference and the second difference is described above.

[0191] The coulombmeter can compare the absolute value of the j-th first difference with the absolute value of the j-th second difference. If the absolute value of the j-th first difference is less than or equal to the absolute value of the j-th second difference, the coulombmeter determines to set the j-th first power consumption ratio as the j-th second power consumption ratio. If the absolute value of the j-th first difference is greater than the absolute value of the j-th second difference, the coulombmeter determines to set the j-th second depth of discharge as the j-th second power consumption ratio.

[0192] In some embodiments, the current depth of discharge of the battery is determined according to the updated first preset relationship.

[0193] It can be understood that after updating the first preset relationship in the battery, the coulombmeter can obtain the current depth of discharge of the battery based on the updated first preset relationship.

[0194] Exemplarily, if the above-mentioned M preset cycles are the 201st to 220th cycles in the battery, when the coulombmeter updates the first preset relationship in the battery through the above steps S401 and S402 according to the first voltage and the first power consumption ratio collected from the 201st to 220th cycles, in the 221st to 300th cycles of the battery, the coulombmeter can obtain the depth of discharge of the battery based on the updated first preset relationship.

[0195] In the following, in conjunction with Figure 8 and Figure 9 , taking the k-th update of the first preset relationship in the battery by the coulombmeter as an example, the data processing method provided by the embodiments of the present disclosure is further introduced. Refer to Figure 8 and Figure 9 , Figure 8 is a flowchart of another data processing method shown according to an exemplary embodiment. Figure 9 is a flowchart of a data processing method shown according to another exemplary embodiment.

[0196] S801: Obtain the specific values of the current cycle number T of the battery and k.

[0197] In some embodiments, the parameter k is stored in the coulombmeter of the battery, and the coulombmeter updates the value of k every 100 cycles of the battery.

[0198] Exemplarily, before the battery leaves the factory, the parameter k is assigned a value of 0. When the battery enters the 101st cycle, the fuel gauge updates the value of k to 2. When the battery enters the 201st cycle, the fuel gauge updates the value of k to 3, and so on until the end of the battery life.

[0199] S802: When k is equal to 1, determine whether the current cycle count of the battery is less than or equal to k * 100. If so, return to execute S801. If not, execute step S803.

[0200] S803: Increment the value of k by 1.

[0201] Exemplarily, when the current value of k is 1, update the value of k to 2.

[0202] S804: Determine whether T is between (k - 1) * 100 and k * 100. If so, execute S805. If not, return to execute S803.

[0203] S805: Execute the following steps S901 to S911.

[0204] Reference Figure 9 , S901: At the i-th preset cycle of the battery, determine whether the battery meets the second preset condition.

[0205] In some embodiments, the second preset condition includes: the remaining power of the battery is greater than the second preset value, and the duration for which the current of the battery is less than the first preset value reaches the first preset duration.

[0206] S902: If the battery meets the second preset condition, collect the second initial voltage to obtain the second initial voltage Vi0 of the battery at the i-th preset cycle.

[0207] S903: Obtain the first initial voltage V'10 collected when the first preset relationship is updated for the (k - 1)-th time.

[0208] S904: When the battery meets the first preset condition, collect the first voltage and the first power consumption ratio to obtain the j-th first voltage Vij, the j-th power consumption Qij, and the j-th time tij at the i-th preset cycle.

[0209] Where t is the interval duration from collecting the (j - 1)-th first voltage to collecting the j-th first voltage.

[0210] In some embodiments, the first preset condition includes: the duration for which the current of the battery is less than the first preset value reaches the first preset duration.

[0211] In some embodiments, if tij is less than 24 h, continue to collect the first voltage and power consumption; if tij is greater than or equal to 24 h, stop collecting the first voltage and power consumption in the current cycle.

[0212] S905: Determine the smaller value between the first initial voltage V'10 and the second initial voltage V10 in the first preset cycle as the third initial voltage Vc.

[0213] S906: Calculate the difference between Vi0 and Vc to obtain the i-th fourth difference ΔVi.

[0214] S907: Correct the first voltage Vij according to ΔVi to obtain the second voltage corresponding to each first voltage.

[0215] In some embodiments, a subtraction operation may be performed on the first voltage Vij and ΔVi to obtain the second voltage corresponding to each first voltage.

[0216] S908: Determine the ratio of the j-th power consumption Qij in the i-th preset cycle to the preset discharge capacity Qmax as the j-th first power consumption ratio in the i-th preset cycle, i.e., DODi.

[0217] S909: Look up the first depth of discharge DODfresh corresponding to Vij in the second preset relationship.

[0218] S910: Look up the second depth of discharge DODold corresponding to Vij in the third preset relationship.

[0219] S911: When |DODi - DODfresh| ≤ |DODold - DODfresh|, take DODi as the second power consumption ratio; when |DODi - DODfresh| > |DODold - DODfresh|, take DODold as the second power consumption ratio.

[0220] S912: Update the first preset relationship according to the second voltage and the second power consumption ratio corresponding to each second voltage to obtain the updated first preset relationship.

[0221] In some embodiments, refer to Figure 10 , Figure 10 is a schematic diagram of an updated first preset relationship shown according to an exemplary embodiment.

[0222] Figure 11 is a block diagram of a data processing device shown according to an exemplary embodiment. As Figure 11 shown, the data processing device 1100 includes:

[0223] The acquisition module 1101 is configured to collect a plurality of first voltages when the battery meets a first preset condition during M preset cycles of the battery, and a first power consumption ratio corresponding to each of the first voltages; wherein, the first preset condition includes that the duration for which the current of the battery is less than a first preset value reaches a first preset duration, and M is an integer greater than or equal to 1;

[0224] The update module 1102 is configured to update a first preset relationship in the battery based on the first voltage and the first power consumption ratio to obtain an updated first preset relationship;

[0225] Wherein, the first preset relationship is used to indicate the corresponding relationship between the open-circuit voltage and the depth of discharge of the battery.

[0226] In some embodiments, the acquisition module 1101 includes:

[0227] The first acquisition unit is configured to, during the i-th preset cycle of the battery, if the battery meets the first preset condition, acquire the j-th first voltage of the battery; i is an integer greater than or equal to 1 and less than or equal to M, and j is an integer greater than 1;

[0228] The second acquisition unit is configured to acquire the power consumption of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage to obtain the j-th power consumption;

[0229] The determination unit is configured to determine the j-th first power consumption ratio according to the preset discharge capacity of the battery and the j-th power consumption.

[0230] In some embodiments, the second acquisition unit is configured to:

[0231] Acquire the current of the battery from the start time of the i-th preset cycle to the acquisition time of the j-th first voltage;

[0232] Based on the current, determine the j-th power consumption.

[0233] In some embodiments, the device further includes:

[0234] The first determination module is configured to determine the interval duration from the acquisition time of the j-th first voltage to the acquisition time of the (j + 1)-th first voltage;

[0235] The stop module is configured to stop collecting the first voltage in the i-th preset cycle if the interval duration is greater than a second preset duration.

[0236] In some embodiments, the update module includes:

[0237] A third acquisition unit, configured to acquire a first initial voltage of the battery based on the first preset relationship;

[0238] In each preset cycle of the M preset cycles, acquire a second initial voltage when the battery satisfies a second preset condition, where the second preset condition includes that the remaining power of the battery is greater than a second preset value, and the duration for which the current of the battery is less than a first preset value reaches a first preset duration;

[0239] A correction unit, configured to correct each of the first voltages according to the first initial voltage and the second initial voltage to obtain a second voltage;

[0240] An update unit, configured to update the first preset relationship based on the second voltage and the first power consumption ratio to obtain the updated first preset relationship.

[0241] In some embodiments, the correction unit is configured to:

[0242] Determine a third initial voltage according to the first initial voltage and the second initial voltage when i = 1;

[0243] Based on the difference between the third initial voltage and the second initial voltage in the i-th preset cycle, correct the j-th first voltage in the i-th preset cycle to obtain the j-th second voltage.

[0244] In some embodiments, the update unit is configured to:

[0245] Based on a second preset relationship, acquire a first discharge depth corresponding to each of the second voltages;

[0246] Based on a third preset relationship, acquire a second discharge depth corresponding to each of the second voltages, where the degree of aging of the battery corresponding to the third preset relationship is greater than the degree of aging of the battery corresponding to the first preset relationship, and the degree of aging of the battery corresponding to the first preset relationship is greater than or equal to the degree of aging of the battery corresponding to the second preset relationship;

[0247] Determine the second power consumption ratio from the first power consumption ratio, the first discharge depth, and the second discharge depth;

[0248] Based on the second voltage and the second power consumption ratio, update the first preset relationship to obtain the updated first preset relationship.

[0249] In some embodiments, the update unit is configured to:

[0250] Determine a first difference between the first power consumption ratio and the first discharge depth;

[0251] Determine a second difference between the first depth of discharge and the second depth of discharge;

[0252] Based on the first difference and the second difference, determine the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge.

[0253] In some embodiments, the updating unit is configured to:

[0254] When the absolute value of the first difference is less than or equal to the absolute value of the second difference, determine the first power consumption ratio as the second power consumption ratio;

[0255] When the absolute value of the first difference is greater than the absolute value of the second difference, determine the second depth of discharge as the second power consumption ratio.

[0256] In some embodiments, the apparatus further includes:

[0257] A second determination module, configured to determine the current depth of discharge of the battery according to the updated first preset relationship.

[0258] Regarding the apparatus in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0259] Figure 12 FIG. 1200 is a hardware structure block diagram of a data processing apparatus according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device, etc.

[0260] Referring to Figure 12 , the apparatus 1200 may include one or more of the following components: a processing component 1202, a memory 1204, a power supply component 1206, a multimedia component 1208, an audio component 1210, an input / output (I / O) interface 1212, a sensor component 1214, and a communication component 1216.

[0261] The processing component 1202 generally controls the overall operation of the device 1200, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above-described methods. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

[0262] The memory 1204 is configured to store various types of data to support the operation of the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0263] The power component 1206 provides power to the various components of the device 1200. The power component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1200.

[0264] The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0265] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC) that is configured to receive external audio signals when the device 1200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, the audio component 1210 further includes a speaker for outputting audio signals.

[0266] The I / O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, and the peripheral interface modules may be a keyboard, a click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

[0267] The sensor component 1214 includes one or more sensors for providing an assessment of various aspects of the state of the device 1200. For example, the sensor component 1214 can detect the open / closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200. The sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200, the presence or absence of user contact with the device 1200, the orientation or acceleration / deceleration of the device 1200, and a change in the temperature of the device 1200. The sensor component 1214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1214 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0268] The communication component 1216 is configured to facilitate communication between the device 1200 and other devices in a wired or wireless manner. The device 1200 can access a wireless network based on communication standards, such as Wi-Fi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0269] In an exemplary embodiment, the apparatus 1200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, coulometers, microprocessors, or other electronic components for performing the above method.

[0270] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, and the above instructions can be executed by a processor 1220 of the apparatus 1200 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0271] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a wearable device, enables a first device or a second device to execute Figure 4 、 Figure 5 、 Figure 6 、 Figure 7 or Figure 9 the data processing method shown.

[0272] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0273] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A data processing method, characterized in that, it includes: In M preset cycles of the battery, collect a plurality of first voltages when the battery meets the first preset condition, and the first power consumption ratio corresponding to each of the first voltages; wherein, the first preset condition includes that the duration for which the current of the battery is less than the first preset value reaches the first preset duration, and M is an integer greater than or equal to 1; Based on the first voltage and the first power consumption ratio, update the first preset relationship in the battery to obtain the updated first preset relationship; wherein, the first preset relationship is used to indicate the corresponding relationship between the open-circuit voltage and the depth of discharge of the battery.

2. The method according to claim 1, characterized in that, the step of collecting a plurality of first voltages when the battery meets the first preset condition, and the first power consumption ratio corresponding to each of the first voltages in M preset cycles of the battery includes: In the i-th preset cycle of the battery, if the battery meets the first preset condition, obtain the j-th first voltage of the battery; i is an integer greater than or equal to 1 and less than or equal to M, and j is an integer greater than 1; Obtain the power consumption of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage to obtain the j-th power consumption; Determine the j-th first power consumption ratio according to the preset discharge capacity of the battery and the j-th power consumption.

3. The method according to claim 2, characterized in that, the step of obtaining the power consumption of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage to obtain the j-th power consumption includes: Obtain the current of the battery from the start time of the i-th preset cycle to the collection time of the j-th first voltage; Based on the current, determine the j-th power consumption.

4. The method according to claim 2, characterized in that, the method further includes: Determine the interval duration from the collection time of the j-th first voltage to the collection time of the (j + 1)-th first voltage; If the interval duration is greater than the second preset duration, stop collecting the first voltage in the i-th preset cycle.

5. The method according to claim 2, characterized in that, the step of updating the first preset relationship based on the first voltage and the first power consumption ratio to obtain the updated first preset relationship includes: Based on the first preset relationship, obtain the first initial voltage of the battery; In each preset cycle of the M preset cycles, obtain the second initial voltage when the battery meets the second preset condition, wherein the second preset condition includes that the remaining power of the battery is greater than the second preset value, and the duration for which the current of the battery is less than the first preset value reaches the first preset duration; According to the first initial voltage and the second initial voltage, correct each of the first voltages to obtain the second voltage; Based on the second voltage and the first power consumption ratio, update the first preset relationship to obtain the updated first preset relationship.

6. The method according to claim 5, characterized in that, Based on the first initial voltage and the second initial voltage, correcting each of the first voltages to obtain second voltages, including: Determining a third initial voltage based on the first initial voltage and the second initial voltage when i is 1; Based on the difference between the third initial voltage and the second initial voltage in the i-th preset cycle, correcting the j-th first voltage in the i-th preset cycle to obtain the j-th second voltage.

7. The method according to claim 5, wherein, Based on the second voltage and the first power consumption ratio, updating the first preset relationship to obtain the updated first preset relationship, including: Based on a second preset relationship, obtaining a first depth of discharge corresponding to each of the second voltages; Based on a third preset relationship, obtaining a second depth of discharge corresponding to each of the second voltages, wherein the degree of aging of the battery corresponding to the third preset relationship is greater than the degree of aging of the battery corresponding to the first preset relationship, and the degree of aging of the battery corresponding to the first preset relationship is greater than or equal to the degree of aging of the battery corresponding to the second preset relationship; Determining a second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge; Based on the second voltage and the second power consumption ratio, updating the first preset relationship to obtain the updated first preset relationship.

8. The method according to claim 7, wherein, Determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge, including: Determining a first difference between the first power consumption ratio and the first depth of discharge; Determining a second difference between the first depth of discharge and the second depth of discharge; Based on the first difference and the second difference, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge.

9. The method according to claim 8, wherein, Based on the first difference and the second difference, determining the second power consumption ratio from the first power consumption ratio, the first depth of discharge, and the second depth of discharge, including: When the absolute value of the first difference is less than or equal to the absolute value of the second difference, determining the first power consumption ratio as the second power consumption ratio; When the absolute value of the first difference is greater than the absolute value of the second difference, determining the second depth of discharge as the second power consumption ratio.

10. The method according to any one of claims 1 to 9, wherein, The method further includes: Determining the current depth of discharge of the battery according to the updated first preset relationship.

11. A data processing device, wherein, including An acquisition module, configured to acquire a plurality of first voltages when the battery satisfies a first preset condition in M preset cycles of the battery, and a first power consumption ratio corresponding to each of the first voltages; wherein the first preset condition includes that the duration for which the current of the battery is less than a first preset value reaches a first preset duration, and M is an integer greater than or equal to 1; An update module, configured to update a first preset relationship in the battery based on the first voltage and the first power consumption ratio, so as to obtain an updated first preset relationship; Wherein, the first preset relationship is used to indicate the corresponding relationship between the open circuit voltage and the depth of discharge of the battery.

12. A data processing device, characterized in that, comprising: a processor; a memory configured to store processor-executable instructions; Wherein, the processor is configured to: when executed, implement the data processing method described in any one of claims 1 to 10 above.

13. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a data processing device, enabling the device to execute the data processing method described in any one of claims 1 to 10 above.