Charging / discharging current determination method and charging / discharging current determination apparatus for battery, and storage medium and battery management system

By constructing a preset relationship table, the measured current values ​​of the first current sensor and the second current sensor are determined to determine the current compensation value, and the current signal error problem caused by unstable sensor sampling frequency is solved, and the accurate evaluation of battery state of charge and vehicle control is achieved.

WO2025139153A1PCT designated stage expired Publication Date: 2025-07-03BYD CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/122318
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-25
Filing Date
2024-09-29
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

During the battery charging and discharging process, the current signal error is large due to the unstable sensor sampling frequency, which affects the battery state of charge evaluation and the accuracy of vehicle control.

Method used

By obtaining the measured current values ​​of the first current sensor and the second current sensor, a preset relationship table is constructed, the current compensation value is determined, and the target current value of the charge and discharge circuit is then calculated to improve the current signal accuracy.

Benefits of technology

The accuracy of the current signal is improved, ensuring accurate evaluation of battery charge state and the effectiveness of vehicle control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024122318_03072025_PF_FP_ABST
    Figure CN2024122318_03072025_PF_FP_ABST
Patent Text Reader

Abstract

A charging / discharging current determination method and charging / discharging current determination apparatus (3000, 4000, 5200) for a battery, and a storage medium and a battery management system (5000). The method comprises: during charging / discharging of a battery, acquiring an actually measured current value of a charging / discharging loop, which value is output by a first current sensor (5100) (S1100); on the basis of the actually measured current value and a preset relationship table, determining a current compensation value corresponding to the actually measured current value, wherein the preset relationship table is used for representing correspondences between current values and current compensation values (S1200); and on the basis of the actually measured current value and the current compensation value corresponding to the actually measured current value, determining a target current value for the charging / discharging loop (S1300).
Need to check novelty before this filing date? Find Prior Art

Description

Battery charge and discharge current determination method, charge and discharge current determination device, storage medium and battery management system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202311801127.9, filed on December 25, 2023, entitled “Method, device, storage medium and system for determining charge and discharge current of a battery,” and the entire contents of that application are incorporated herein for all purposes. Technical Field

[0003] The present disclosure relates to the field of battery technology, and more specifically, to a method for determining a charge and discharge current of a battery, a device for determining a charge and discharge current, a storage medium, and a battery management system. Background Art

[0004] As a key power source for new energy vehicles, power batteries provide crucial signals for battery status assessment and vehicle control. For example, current signals collected by sensors can be used to assess the battery's state of charge and control the vehicle.

[0005] However, when there is high-frequency ripple during the charging and discharging process, the sampling frequency of the sensor is often too high or too low, resulting in a large difference between the collected current signal and the actual current signal, which seriously affects the assessment of the battery charge state and the control of the entire vehicle.

[0006] Summary of the Invention

[0007] An object of the embodiments of the present disclosure is to provide a new solution for determining the charge and discharge current of a battery.

[0008] According to a first aspect of the present disclosure, an embodiment of a method for determining a charge and discharge current of a battery is provided, the method comprising:

[0009] During the charge and discharge process of the battery, obtaining a measured current value of the charge and discharge circuit output by the first current sensor;

[0010] Determining a current compensation value corresponding to the measured current value based on the measured current value and a preset relationship table; wherein the preset relationship table is used to represent the corresponding relationship between the current value and the current compensation value;

[0011] A target current value of the charge-discharge circuit is determined according to the measured current value and a current compensation value corresponding to the measured current value.

[0012] Optionally, the method further includes:

[0013] During the process of charging and discharging the battery, first current data output by the first current sensor at a first update frequency and second current data output by the second current sensor at a second update frequency are obtained; wherein the data accuracy of the second current data is higher than the data accuracy of the first current data;

[0014] The preset relationship table is constructed according to the first current data and the second current data.

[0015] Optionally, the first update frequency is greater than the second update frequency.

[0016] Optionally, constructing the preset relationship table according to the first current data and the second current data includes:

[0017] Obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments according to the first current data; wherein one first sampled current value corresponds to one sampling moment;

[0018] Obtaining a plurality of second sampling current values ​​of the second current sensor at the plurality of sampling moments according to the second current data; wherein one second sampling current value corresponds to one sampling moment;

[0019] The second sampling current value is used as a standard current value, and the preset relationship table is constructed according to the corresponding relationship between the plurality of first sampling current values ​​and the plurality of second sampling current values ​​at sampling times.

[0020] Optionally, constructing the preset relationship table according to the correspondence between the plurality of first sampled current values ​​and the plurality of second sampled current values ​​at sampling moments includes:

[0021] For each of the first sampled current values, determining a current difference between the first sampled current value and a second sampled current value corresponding to the same sampling moment, to obtain a plurality of current difference values ​​corresponding one-to-one to the plurality of first sampled current values;

[0022] The preset relationship table is constructed according to a plurality of current difference values ​​that correspond one to one to the plurality of first sampled current values.

[0023] Optionally, constructing the preset relationship table according to the multiple current difference values ​​corresponding one-to-one to the multiple first sampled current values ​​includes:

[0024] The plurality of sampling moments are divided according to a preset time length to obtain a plurality of sampling time intervals; wherein the time length of the sampling time interval is greater than the time interval between adjacent sampling moments;

[0025] Averaging the multiple first sampled current values ​​within each of the sampling time intervals to obtain multiple average current values ​​corresponding to the multiple sampling time intervals;

[0026] Averaging the multiple current difference values ​​corresponding to each of the sampling time intervals to obtain multiple average current difference values ​​corresponding to the multiple sampling time intervals;

[0027] The preset relationship table is constructed according to the plurality of average current values ​​and the plurality of average current differences corresponding to the plurality of sampling time intervals.

[0028] Optionally, constructing the preset relationship table according to the multiple average current values ​​and the multiple average current differences corresponding to the multiple sampling time intervals includes:

[0029] Acquire multiple sets of mapping data; wherein the multiple sets of mapping data correspond one-to-one to multiple set currents, each set current corresponds to a current data pair, the current data pair including the first current data and the second current data, and the mapping data includes the multiple average current values ​​and the multiple average current differences obtained based on the current data pairs corresponding to the corresponding set currents;

[0030] For each set current, determining a current compensation value range corresponding to a set current value range within which the set current falls according to the multiple average current differences in the mapping data corresponding to the set current;

[0031] The preset relationship table is constructed according to the set current value range and the current compensation value range corresponding to each set current.

[0032] Optionally, determining the current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table includes:

[0033] Determine a first current compensation value range corresponding to the first set current value range according to the first set current value range in which the measured current value is located in the preset relationship table;

[0034] A current compensation value corresponding to the measured current value is determined according to the first current compensation value range.

[0035] Optionally, the method further includes:

[0036] During the charge and discharge process of the battery, obtaining a measured current value of the charge and discharge circuit output by the second current sensor;

[0037] determining a second set current value range according to the measured current value output by the first current sensor;

[0038] The second current compensation value range corresponding to the second set current value range is updated according to the actual measured current value output by the first current sensor and the actual measured current value output by the second current sensor.

[0039] Optionally, obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments based on the first current data, and obtaining a plurality of second sampled current values ​​of the second current sensor at the plurality of sampling moments based on the second current data, includes:

[0040] determining a first current function according to the first current data;

[0041] Determining a second current function based on the second current data; wherein the first current function and the second current function reflect a relationship between current changes over time;

[0042] performing time alignment on the first current function and the second current function according to a phase difference between the first current function and the second current function;

[0043] Obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments according to the time-aligned first current function;

[0044] A plurality of second sampled current values ​​of the second current sensor at the plurality of sampling moments are obtained according to the time-aligned second current function.

[0045] Optionally, determining a first current function according to the first current data includes:

[0046] Based on a set first sliding time window, performing sliding averaging on the first current data to obtain third current data after sliding averaging;

[0047] determining the first current function according to the third current data;

[0048] Determining a second current function according to the second current data includes:

[0049] Based on a set second sliding time window, performing sliding averaging on the second current data to obtain fourth current data after sliding averaging;

[0050] The second current function is determined according to the fourth current data.

[0051] Optionally, performing sliding averaging on the first current data based on a set first sliding time window includes:

[0052] Determining a first data window represented by a numerical quantity according to the time length of the first sliding time window and the first update frequency;

[0053] Based on the first data window, performing a sliding average on the first current data;

[0054] The performing sliding averaging on the second current data based on the set second sliding time window includes:

[0055] Determining a second data window represented by a numerical quantity according to the time length of the second sliding time window and the second update frequency;

[0056] Based on the second data window, a sliding average is performed on the second current data.

[0057] According to a second aspect of the present disclosure, an embodiment of a device for determining a charge and discharge current of a battery is provided, the device comprising:

[0058] An acquisition module, configured to acquire a measured current value of the charge and discharge circuit output by the first current sensor during the charge and discharge process of the battery;

[0059] A determination module is used to determine a current compensation value corresponding to the measured current value based on the measured current value and a preset relationship table; wherein the preset relationship table is used to characterize the correspondence between the current value and the current compensation value; and determine the target current value of the charge and discharge circuit based on the measured current value and the current compensation value corresponding to the measured current value.

[0060] According to a third aspect of the present disclosure, another embodiment of a device for determining the charge and discharge current of a battery is provided, the device comprising: a memory and a processor, the memory storing executable instructions, the instructions being used to control the processor to operate to execute the method for determining the charge and discharge current of a battery according to the first aspect of the present disclosure.

[0061] According to a fourth aspect of the present disclosure, a readable storage medium is provided, storing a computer program, which, when executed by a processor, implements the method for determining the charge and discharge current of a battery as described in the first aspect.

[0062] According to a fifth aspect of the present disclosure, an embodiment of a battery management system is provided, the battery system comprising:

[0063] a first current sensor, configured to output a measured current value of a charge and discharge circuit to a current determination device of the battery during a charge and discharge process of the battery;

[0064] A device for determining a battery's charge and discharge current, wherein the device for determining a battery's charge and discharge current is the device for determining a battery's charge and discharge current according to the second aspect or the third aspect.

[0065] Optionally, the first current sensor is further configured to output first current data to the battery charge and discharge current determination device at a first update frequency during the battery charge and discharge process;

[0066] The system further comprises:

[0067] a second current sensor, configured to output second current data to the battery charge and discharge current determination device at a second update frequency during the battery charge and discharge process; wherein the second current data has a higher accuracy than the first current data;

[0068] The battery charge and discharge current determination device is used to construct a preset relationship table according to the first current data and the second current data.

[0069] According to a sixth aspect of the present disclosure, a power consumption system is further provided, which includes the battery management system according to the fifth aspect of the present disclosure.

[0070] A beneficial effect of the embodiments of the present disclosure is that, according to the method of the present embodiment, by obtaining the measured current value of the charge and discharge circuit output by the first current sensor during the charge and discharge process of the battery; determining the current compensation value corresponding to the measured current value based on the measured current value and a preset relationship table; wherein the preset relationship table is used to characterize the correspondence between the current value and the current compensation value; determining the target current value of the charge and discharge circuit based on the measured current value and the current compensation value corresponding to the measured current value, the accuracy of the current signal can be improved, thereby enabling accurate evaluation of the battery's state of charge and control of the entire vehicle.

[0071] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0073] FIG1 is a flow chart of a method for determining a charge and discharge current of a battery according to an embodiment of the present application;

[0074] FIG2 is a flow chart of a method for determining a charge and discharge current of a battery according to another embodiment of the present application;

[0075] FIG3 is a schematic structural diagram of a device for determining a charge and discharge current of a battery according to an embodiment of the present application;

[0076] FIG4 is a schematic structural diagram of a device for determining a battery charge and discharge current according to another embodiment of the present application;

[0077] FIG5 is a schematic structural diagram of a battery management system according to an embodiment of the present application;

[0078] FIG6 is a schematic structural diagram of a battery management system according to another embodiment of the present application;

[0079] FIG7 is a schematic structural diagram of an electric power system according to an embodiment of the present application. DETAILED DESCRIPTION

[0080] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention.

[0081] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0082] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0083] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0084] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0085] <Method Example>

[0086] FIG1 is a flow chart of a method for determining a charge and discharge current of a battery according to an embodiment of the present disclosure.

[0087] As shown in FIG1 , the method for determining the charge and discharge current of a battery in this embodiment may be specifically executed by a device for determining the charge and discharge current of a battery.

[0088] Specifically, the method for determining the charge and discharge current of a battery in this embodiment may include the following steps S1100 to S1300:

[0089] Step S1100 : During the charge and discharge process of the battery, the actual current value of the charge and discharge circuit output by the first current sensor is obtained.

[0090] In this embodiment, the first current sensor can output the measured current value to the battery charge and discharge current determination device at a first update frequency during the battery charge and discharge process, that is, the measured current value can be the average of multiple current values ​​in the charge and discharge circuit collected within the time period corresponding to the first update frequency.

[0091] In one example, during the charging and discharging process of the battery, the first current sensor collects current values ​​at a sampling frequency of 1KHZ and outputs the measured current value at a first update frequency of 50HZ, that is, the time interval for outputting the current value is 20ms, and the measured current value is the average of 20 current values ​​collected within 20ms.

[0092] In one example, the first current sensor may be a Hall sensor.

[0093] Step S1200: determining a current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table.

[0094] In this embodiment, the correspondence between the current value and the current compensation value may be a correspondence between the current value range and the current compensation value range, or a correspondence between the average current value and the average current compensation value, which is not limited here.

[0095] In the example where the relationship table shows the correspondence between current value ranges and current compensation value ranges, the current value range to which the measured current value belongs can be determined based on the measured current value, and then a specific current compensation value can be determined based on the current compensation value range corresponding to the current value range. For example, the specific current compensation value can be the average current compensation value of the current compensation value range.

[0096] The preset relationship table can be pre-stored in the battery charge and discharge current determination device. When the battery charge and discharge current determination device obtains the measured current value of the charge and discharge circuit output by the first current sensor, step S1200 can be executed to determine the current compensation value corresponding to the measured current value.

[0097] In some embodiments, before step S1100 of acquiring the measured current value of the charge-discharge circuit output by the first current sensor, the method further includes: step S2100 and step S2200.

[0098] Step S2100 , during the process of charging and discharging the battery, obtaining first current data outputted by the first current sensor at a first update frequency and second current data outputted by the second current sensor at a second update frequency.

[0099] In this embodiment, the battery may be the battery corresponding to the current value actually measured in step S1100 , or may be a sample battery, which is not limited here.

[0100] In one example, the first current sensor may be a Hall sensor, and the second current sensor may be a shunt.

[0101] In one embodiment, the first update frequency is greater than the second update frequency.

[0102] In one example, the sampling frequency of the second current sensor and the first current sensor are both 1 kHz. During the battery charging and discharging process, first current data output by the first current sensor at a first update frequency of 50 Hz is obtained, and second current data output by the second current sensor at a second update frequency of 10 Hz is obtained. The first update frequency of 50 Hz means that the first current sensor averages the current values ​​collected every 20 ms and outputs the first current data, including current values ​​output at 20 ms, 40 ms, 60 ms, and 80 ms. The second update frequency of 10 Hz means that the second current sensor averages the current values ​​collected every 100 ms and outputs the second current data, including current values ​​output at 100 ms, 200 ms, 300 ms, and 400 ms.

[0103] Due to the different sampling principles of the second current sensor and the first current sensor and the influence of vehicle control scheduling, the data accuracy of the second current data is higher than the data accuracy of the first current data.

[0104] Step S2200: constructing the preset relationship table according to the first current data and the second current data.

[0105] In some embodiments, constructing the preset relationship table according to the first current data and the second current data in step S2200 includes: steps S2211 to S2213.

[0106] Step S2211 , obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments according to the first current data.

[0107] Continuing with the above example, a first current function can be constructed based on the first current data including current values ​​output at 20ms, 40ms, 60ms, and 80ms, where the first current function reflects the relationship between the current value and time. Then, with a sampling period of 20ms, the sampling times of 20ms, 40ms, and 60ms are input into the first current function to obtain the first sampled current value corresponding to each sampling time.

[0108] In other examples, a first current curve showing the change of current over time can be drawn based on the first current data including the current values ​​output at 20ms, 40ms, 60ms, 80ms, etc., and then, with a sampling period of 20ms and sampling moments of 20ms, 40ms, 60ms, etc., the first sampling current value corresponding to each sampling moment is sampled on the first current curve.

[0109] Step S2212 , obtaining a plurality of second sampled current values ​​of the first current sensor at the plurality of sampling moments according to the second current data.

[0110] Continuing with the above example, a second current function can be constructed based on the second current data including current values ​​output at 100ms, 200ms, 300ms, and 400ms. The second current function can reflect the relationship between the current value and time. Then, with a sampling period of 20ms, the sampling times of 20ms, 40ms, and 60ms are input into the second current expression to obtain the second sampled current value corresponding to each sampling time.

[0111] In other examples, a second current curve showing the change of current over time can be drawn based on the second current data including the current values ​​output at 100ms, 200ms, 300ms, 400ms, etc., and then, with a sampling period of 20ms and sampling moments of 20ms, 40ms, 60ms, etc., the second sampling current value corresponding to each sampling moment is sampled on the second current curve.

[0112] It should be noted that the sampling period of 20 ms is only an example, and the sampling period may also be other period values, such as 50 ms, etc., which is not limited here.

[0113] In some embodiments, the step S2211 of obtaining a plurality of first sampling current values ​​of the first current sensor at a plurality of sampling moments based on the first current data, and the step S2212 of obtaining a plurality of second sampling current values ​​of the second current sensor at the plurality of sampling moments based on the second current data, include: steps S2301 to S2305.

[0114] Step S2301: Determine a first current function according to the first current data.

[0115] In this embodiment, the first current function is used to reflect the change relationship of the current value over time.

[0116] In some embodiments, step S2301 determines a first current function based on the first current data, including: step S2401 and step S2402.

[0117] Step S2401 : Based on a set first sliding time window, perform sliding averaging on the first current data to obtain third current data after sliding averaging.

[0118] In this embodiment, the moving average method (also known as the moving average method, averaging method, moving average filtering method, etc.) is a signal smoothing method based on time domain principles. The algorithm is to determine the sampling points near a point using a sliding time window, and then take the arithmetic average to obtain the smoothed value of this point.

[0119] In this embodiment, the third current data can be obtained by performing sliding averaging on the first current data through the first sliding time window.

[0120] In some embodiments, step S2401, performing sliding averaging on the first current data based on a set first sliding time window, includes: step S2601 and step S2602.

[0121] Step S2601: Determine a first data window represented by numerical quantities according to the time length of the first sliding time window and the first update frequency.

[0122] In some examples, the time length of the first sliding time window can be, for example, 500ms, and the first update frequency is 50HZ, that is, the first current data includes current values ​​output at 20ms, 40ms, 60ms, 80ms, etc., then the first data window is determined to be 25.

[0123] Step S2602: performing sliding averaging on the first current data based on the first data window.

[0124] Continuing with the above example, the first data window is 25, that is, the sliding average is performed on every 25 current values ​​in the first current data.

[0125] Step S2402: Determine a first current function according to the third current data.

[0126] In this embodiment, a first current function reflecting the relationship between current and time is determined based on the third current data obtained by sliding average of the first current data.

[0127] Step S2302: Determine a second current function according to the second current data.

[0128] In some embodiments, determining the second current function according to the second current data in step S2302 includes: step S2501 and step S2502.

[0129] Step S2501 : performing sliding averaging on the second current data based on a set second sliding time window to obtain fourth current data after sliding averaging.

[0130] In this embodiment, the second sliding time window may be the same as the first sliding time window, or the second sliding time window may be different from the first sliding time window, which is not limited here.

[0131] By performing sliding averaging on the second current data based on the second sliding time window, fourth current data after sliding averaging can be obtained.

[0132] In some embodiments, step S2501 performs sliding averaging on the second current data based on a set second sliding time window, including: step S2701 and step S2702.

[0133] Step S2701: Determine a second data window represented by numerical quantities according to the time length of the second sliding time window and the second update frequency.

[0134] In an example, the time length of the second sliding time window may be, for example, 500 ms, and the second update frequency is 10 Hz, so the second data window is 5.

[0135] Step S2702: performing sliding averaging on the second current data based on the second data window.

[0136] Continuing with the above example, the number of the second data windows is 5, that is, the sliding average is performed on every 5 current values ​​in the second current data.

[0137] It should be noted that the specific algorithm of the sliding average is well known in the art and will not be described in detail here.

[0138] Step S2502: Determine the second current function according to the fourth current data.

[0139] It should be noted that the current values ​​of the third current data and the fourth current data obtained by sliding the first current data and the second current data will change, but the number of the current values ​​remains unchanged.

[0140] Step S2303: Time-align the first current function and the second current function according to the phase difference between the first current function and the second current function.

[0141] In this embodiment, the phase difference, ie, the average time difference, may be directly determined according to the functional expressions of the first current function and the second current function, and the first current function and the second current function may be aligned according to the average time difference.

[0142] The average time difference is caused by the different sampling principles of the second current sensor and the first current sensor and the scheduling influence of vehicle control.

[0143] In other examples, a first current curve and a second current curve showing the change of current over time can be plotted respectively using the first current function and the second current function, and a phase difference between the first current curve and the second current curve, that is, an average time difference between the first current function and the second current function, can be determined based on the shapes of the first current curve and the second current curve.

[0144] The first current function and the second current function are time-aligned according to the average time difference.

[0145] According to an embodiment of the present application, by time-aligning the first current function and the second current function based on the phase difference between the first current function and the second current function, the sampling moments of the second current sensor and the first current sensor can be synchronized, thereby avoiding the problem of the accuracy of current determination being affected by the sampling time asynchrony between the second current sensor and the first current sensor, and improving the accuracy of current determination.

[0146] Step S2304 : obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments according to the time-aligned first current function.

[0147] Step S2305 , obtaining a plurality of second sampled current values ​​of the second current sensor at the plurality of sampling moments according to the time-aligned second current function.

[0148] In one example, the phase difference between the first current function and the second current function is 5 ms. With a sampling period of 20 ms, when sampling the first current function and the second current function, first sampled current values ​​are sampled at sampling times corresponding to 20 ms, 40 ms, 60 ms, and 80 ms for the first current function. Second sampled current values ​​are sampled at sampling times corresponding to 25 ms, 45 ms, 65 ms, and 85 ms for the second current function. There is a one-to-one correspondence between the sampling times and the sampled current values.

[0149] In step S2213 , the second sampled current value is used as a standard current value, and the preset relationship table is constructed according to the corresponding relationship between the plurality of first sampled current values ​​and the plurality of second sampled current values ​​at sampling times.

[0150] In this embodiment, since the second current data has a higher precision than the first current data, the second sampled current value also has a higher precision than the first sampled current value. Therefore, the second sampled current value can be used as the standard current value to calculate the difference between the first sampled current value and the standard current value at the same sampling time to determine the current compensation value.

[0151] In some embodiments, the step S2213 of constructing the preset relationship table according to the corresponding relationship between the plurality of first sampled current values ​​and the plurality of second sampled current values ​​at the sampling moments includes: steps S2801 and S2802.

[0152] In step S2801 , for each first sampled current value, a current difference between the first sampled current value and a second sampled current value corresponding to the same sampling moment is determined to obtain a plurality of current differences corresponding to the plurality of first sampled current values.

[0153] In one example, the synchronous sampling time difference between the first sampled current value and the second sampled current value is 5 ms, and the sampling times of the first sampled current value are 20 ms, 40 ms, 60 ms, 80 ms, etc. The second sampled current values ​​correspond to the same sampling times of 25 ms, 45 ms, 65 ms, and 85 ms. In other words, the current difference corresponding to the first sampled current value at 20 ms is obtained by subtracting the first sampled current value at 25 ms from the second sampled current value at 20 ms. Similarly, the current difference corresponding to the first sampled current value at 40 ms, the current difference corresponding to the first sampled current value at 60 ms, and so on can be obtained.

[0154] After determining the current difference between each first sampled current value and a second sampled current value corresponding to the same sampling moment for each first sampled current value, a plurality of current difference values ​​corresponding one-to-one to the plurality of first sampled current values ​​can be obtained.

[0155] Step S2802 , constructing the preset relationship table according to the current difference values ​​that correspond one-to-one to the first sampled current values.

[0156] Continuing with the above example, after obtaining the current difference corresponding to the first sampled current value of 20ms, the current difference corresponding to the first sampled current value of 40ms, the current difference corresponding to the first sampled current value of 60ms, and the current difference corresponding to the first sampled current value of 80ms, a preset relationship table can be constructed based on the four corresponding relationships. Alternatively, the first sampled current value and the current difference are averaged by the 40ms sampling time interval, i.e., [0-40ms], [40ms-80ms], etc. For example, the first sampled current values ​​of 20ms and 40ms are averaged to obtain an average current value, and then the current difference corresponding to the first sampled current value of 20ms and the current difference corresponding to the first sampled current value of 40ms are averaged to obtain the average current difference, and a corresponding relationship between the average current value and the average current difference is established. By analogy, the average current difference corresponding to each average current value can be obtained.

[0157] In some embodiments, constructing the preset relationship table according to the current difference values ​​in one-to-one correspondence with the first sampled current values ​​in step S2802 includes steps S2811 to S2814.

[0158] Step S2811 , dividing the plurality of sampling moments according to a preset time length to obtain a plurality of sampling time intervals; wherein the time length of the sampling time interval is greater than the time interval between adjacent sampling moments.

[0159] In this embodiment, the preset time length can be greater than the time interval between adjacent sampling moments. For example, when the sampling period is 20ms, the sampling moments are 20ms, 40ms, 60ms, and 80ms. The preset time length can be 400ms or 500ms. When the preset time length is 500ms, the sampling time intervals are [0-500ms], [500ms-1000ms], [1000ms-1500ms], etc. Each sampling time interval includes 25 sampling moments.

[0160] In step S2812 , the plurality of first sampled current values ​​within each of the sampling time intervals are averaged to obtain a plurality of average current values ​​corresponding to the plurality of sampling time intervals.

[0161] In step S2813 , the multiple current difference values ​​within each of the sampling time intervals are averaged to obtain multiple average current difference values ​​corresponding to the multiple sampling time intervals.

[0162] Continuing with the above example, the current average value of the 25 first sampled current values ​​within the sampling time interval of [0-500ms] is calculated to obtain the average current value corresponding to the sampling time interval of [0-500ms]. The current difference value of the 25 current difference values ​​within the sampling time interval of [0-500ms] is calculated to obtain the average current difference value corresponding to the sampling time interval of [0-500ms]. Similarly, the average current value and average current difference value corresponding to multiple sampling time intervals can be obtained.

[0163] Step S2814 , constructing the preset relationship table according to the plurality of average current values ​​and the plurality of average current differences corresponding to the plurality of sampling time intervals.

[0164] Continuing with the above example, a set of correspondences between current values ​​and current compensation values ​​is constructed based on the average current values ​​and average current differences corresponding to the sampling time interval [0-500ms]. A set of correspondences between current values ​​and current compensation values ​​is constructed based on the average current values ​​and average current differences corresponding to the sampling time interval [500ms-1000ms]. A set of correspondences between current values ​​and current compensation values ​​is constructed based on the average current values ​​and average current differences corresponding to the sampling time interval [1000ms-1500ms].

[0165] According to an embodiment of the present application, by constructing a preset relationship table based on the average current value and the average current difference corresponding to the sampling time interval, current fluctuations caused by too small a sampling period or too short an interval between sampling moments can be avoided, the nonlinear error of current sampling can be reduced, and the accuracy of current determination can be improved.

[0166] In some embodiments, constructing the preset relationship table according to the multiple average current values ​​and the multiple average current differences corresponding to the multiple sampling time intervals in step S2814 includes: steps S2821 to S2823.

[0167] Step S2821, obtaining multiple sets of mapping data.

[0168] In this embodiment, multiple set current value ranges are pre-established. The multiple set current value ranges can be determined according to the usage range of the battery. When constructing the preset relationship table, a set current can be taken for each set current value range to obtain multiple set currents. The batteries are controlled to charge and discharge with the multiple set currents respectively to obtain multiple current data pairs. Among them, one set current corresponds to one current data pair, and one current data pair includes first current data and second current data. Based on the first current data and the second current data of a current data pair, multiple average current values ​​and multiple average current differences corresponding to the current data pair can be obtained. The correspondence between the multiple average current values ​​and the multiple average current differences of a current data pair constitutes a set of mapping data. That is, each set current corresponds to a set of mapping data, and multiple set currents correspond to multiple sets of mapping data. Each set of mapping data includes the correspondence between multiple average current values ​​and multiple average current differences.

[0169] In one example, the set current value range includes 5, for example, [0-10A], [10-20A], [20-30A], [30-40A], and [40-50A]. Correspondingly, a set current can be selected from each set current value range to obtain 5 set currents. For example, the set current selected from the set current value range of [0-10A] is 5A. The battery is controlled to charge and discharge with the 5 set currents respectively, and 5 current data pairs are obtained. Each current data pair includes first current data and second current data. Based on the first current data and the second current data of a current data pair, the correspondence between multiple average current values ​​and multiple average current differences can be obtained, that is, a set of mapping data is obtained. Thus, 5 sets of mapping data corresponding to the 5 set currents are obtained.

[0170] Step S2822 : For each set current, determine a current compensation value range corresponding to the set current value range of the set current according to the multiple average current differences in the mapping data corresponding to the set current.

[0171] Continuing with the above example, after obtaining five sets of mapping data corresponding one-to-one to the five set currents, for each of the five set currents, the current compensation value range corresponding to the set current value range in which the set current falls is determined based on the multiple average current differences in the mapping data corresponding to the set current. Thus, a current compensation value range corresponding one-to-one to the five set current value ranges can be determined.

[0172] Step S2823 , constructing the preset relationship table according to the set current value range and the current compensation value range corresponding to each set current.

[0173] It should be noted that all the steps of constructing the preset relationship table can be performed before the actual measurement of the charge and discharge current of the battery. For example, the preset relationship table can be established before the battery leaves the factory.

[0174] In these embodiments, determining the current compensation value corresponding to the measured current value according to the measured current value and the preset relationship table in step S1200 includes: step S1211 and step S1212.

[0175] Step S1211 , determining a first current compensation value range corresponding to a first set current value range according to the first set current value range in the preset relationship table where the measured current value is located.

[0176] In some examples, if the measured current value is 8A, the set current value range in the preset relationship table is determined to be [0-10A], which is the first set current value range. This first set current value range corresponds to a first current compensation value range in the preset relationship table, for example, the first current compensation value range is [0-10A].

[0177] Step S1212: determining a current compensation value corresponding to the measured current value according to the first current compensation value range.

[0178] Continuing with the above example, the current compensation value corresponding to the measured current value of 8A can be the average value of the first current compensation value range [0-10A], that is, 5A, or any value in the first current compensation value range, which is not limited here.

[0179] Step S1300: determining a target current value of the charge-discharge circuit according to the measured current value and a current compensation value corresponding to the measured current value.

[0180] In this embodiment, the measured current value is compensated by the current compensation value to obtain a target current value, and the target current value is used as a basis for battery status and vehicle control.

[0181] In some embodiments, the method further includes: step S3100 and step S3300.

[0182] Step S3100: During the charge and discharge process of the battery, obtain the actual current value of the charge and discharge circuit output by the second current sensor.

[0183] In this embodiment, during the official use of the battery after leaving the factory, the measured current values ​​respectively output by the second current sensor and the first current sensor can be obtained.

[0184] Step S3200: Determine a second set current value range according to the measured current value output by the first current sensor.

[0185] In this embodiment, the second set current value range is the set current value range of the measured current value output by the first current sensor. For example, if the measured current value output by the first current sensor is 15A, the corresponding second set current value range is [10-20A].

[0186] Step S3300: updating a second current compensation value range corresponding to the second set current value range according to the actual current value output by the first current sensor and the actual current value output by the second current sensor.

[0187] In this embodiment, the second current compensation value range corresponding to the second set current value range is updated based on the measured current values ​​output by the second current sensor and the first current sensor, respectively. The method for updating the second current compensation value range based on the measured current values ​​output by the second current sensor and the first current sensor is the same as the method for constructing the preset relationship table, and is not further described here to avoid repetition.

[0188] According to an embodiment of the present application, by obtaining the measured current value of the charge and discharge circuit output by the first current sensor during the charge and discharge process of the battery, and determining the current compensation value corresponding to the measured current value based on the measured current value and a preset relationship table, wherein the preset relationship table is used to characterize the correspondence between the current value and the current compensation value, and determining the target current value of the charge and discharge circuit based on the measured current value and the current compensation value corresponding to the measured current value, the accuracy of the current signal can be improved, thereby enabling accurate evaluation of the battery's state of charge and control of the entire vehicle.

[0189] <Example>

[0190] FIG2 is a flow chart of a method for determining a charge and discharge current of a battery according to another embodiment of the present application. As shown in FIG2 , the method includes steps S1 to S15 .

[0191] Step S1 : during the process of charging and discharging the battery, obtaining first current data outputted by a first current sensor at a first updating frequency and second current data outputted by a second current sensor at a second updating frequency.

[0192] In this embodiment, the first current sensor and the second current sensor respectively sample at 1 kHz, the first current sensor outputs the first current data at 50 Hz, and the second current sensor outputs the second current data at 10 Hz. The accuracy of the second current data is higher than that of the first current data.

[0193] Step S2: performing sliding averaging on the first current data based on a set first sliding time window to obtain third current data after sliding averaging.

[0194] In this embodiment, the time length of the first sliding time window can be, for example, 500 ms. If the first update frequency is 50 Hz, then the first data window is 25, that is, the third current data is obtained by performing sliding averaging on the first current data through the first data window.

[0195] Step S3: determining a first current function according to the third current data.

[0196] Step S4: performing sliding averaging on the second current data based on the set second sliding time window to obtain fourth current data after sliding averaging.

[0197] In this embodiment, the time length of the second sliding time window can be, for example, 500 ms. If the second update frequency is 10 Hz, the second data window is 5, that is, the fourth current data is obtained by sliding averaging the second current data through the second data window.

[0198] Step S5: determining a second current function according to the fourth current data.

[0199] Step S6: Time-aligning the first current function and the second current function according to the phase difference between the first current function and the second current function.

[0200] In this embodiment, the average time difference is determined based on the phase difference between the first current function and the second current function, and the first current function and the second current function are time-aligned based on the average time difference.

[0201] In one example, the second current function lags behind the first current function in phase, with the phase difference being, for example, 5 ms. When the sampling time for the first current function is 20 ms, the sampling time for the second current function synchronized with the sampling time should be 25 ms.

[0202] Step S7 , obtaining a plurality of first sampled current values ​​of the first current sensor at a plurality of sampling moments according to the time-aligned first current function.

[0203] In an example, the sampling times corresponding to the plurality of first sampled current values ​​are 20ms, 40ms, 60ms, 80ms, etc.

[0204] Step S8 , obtaining a plurality of second sampled current values ​​of the second current sensor at a plurality of sampling moments according to the time-aligned second current function.

[0205] In an example, the sampling times corresponding to the plurality of second sampled current values ​​are 25ms, 45ms, 65ms, 85ms, etc.

[0206] In step S9 , for each first sampled current value, a current difference between the first sampled current value and a second sampled current value corresponding to the same sampling moment is determined to obtain a plurality of current difference values ​​corresponding one-to-one to the plurality of first sampled current values.

[0207] Continuing with the above example, the first current sampled value at 20ms is subtracted from the second current sampled value at 25ms to obtain a current difference value corresponding to the first current sampled value at 20ms. The first current sampled value at 40ms is subtracted from the second current sampled value at 45ms to obtain a current difference value corresponding to the first current sampled value at 40ms. The first current sampled value at 60ms is subtracted from the second current sampled value at 65ms to obtain a current difference value corresponding to the first current sampled value at 60ms. The first current sampled value at 80ms is subtracted from the second current sampled value at 85ms to obtain a current difference value corresponding to the first current sampled value at 80ms.

[0208] Step S10 , dividing the multiple sampling moments according to a preset time length to obtain multiple sampling time intervals.

[0209] In one example, the sampling period is 20ms, the preset time length is 500ms, and the sampling time intervals are [0-500ms], [500ms-1000ms], etc.

[0210] In step S11 , a plurality of first sampled current values ​​within each sampling time interval are averaged to obtain a plurality of average current values ​​corresponding to the plurality of sampling time intervals.

[0211] Continuing with the above example, the preset time length may be, for example, 500 ms, that is, the plurality of first sampled current values ​​are averaged in 25 units to obtain a plurality of average current values.

[0212] In step S12 , the multiple current difference values ​​within each sampling time interval are averaged to obtain multiple average current difference values ​​corresponding to the multiple sampling time intervals.

[0213] In step S13 , a preset relationship table is constructed according to the plurality of average current values ​​and the plurality of average current differences corresponding to the plurality of sampling time intervals.

[0214] In one example, the preset relationship table can be used to characterize the correspondence between the set current value range and the current compensation value range. The process of constructing the preset relationship table has been described in the above method embodiment and will not be elaborated here.

[0215] Step S14: During the charge and discharge process of the battery, the actual current value of the charge and discharge circuit output by the first current sensor is obtained.

[0216] In this embodiment, the first current sensor may output the measured current value at a first update frequency.

[0217] Step S15: determining a current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table.

[0218] In some examples, a preset relationship table can be used to characterize the correspondence between a set current value range and a current compensation value range. In this case, step S15 of determining the current compensation value corresponding to the measured current value based on the measured current value and the preset relationship table may include: determining a first current compensation value range corresponding to a first set current value range based on a first set current value range within which the measured current value falls in the preset relationship table, and determining the current compensation value corresponding to the measured current value based on the first current compensation value range.

[0219] Step S16: determining a target current value of the charge-discharge circuit according to the measured current value and the current compensation value corresponding to the measured current value.

[0220] In some examples, during the charging and discharging process of the battery, the measured current values ​​of the charging and discharging circuits output by the second current sensor and the first current sensor are respectively obtained, and the second set current value range is determined based on the measured current value output by the first current sensor. Based on the measured current value output by the first current sensor and the measured current value output by the second current sensor, the second current compensation value range corresponding to the second set current value range is updated.

[0221] <Device Example>

[0222] In some embodiments, as shown in FIG3 , a device 3000 for determining a battery's charge and discharge current is further provided. The device 3000 includes an acquisition module 3100 and a determination module 3200 .

[0223] The acquisition module 3100 is used to obtain the actual current value of the charge and discharge circuit output by the first current sensor during the charge and discharge process of the battery.

[0224] Determination module 3200 is used to determine the current compensation value corresponding to the measured current value based on the measured current value and a preset relationship table; wherein the preset relationship table is used to characterize the correspondence between the current value and the current compensation value; and, based on the measured current value and the current compensation value corresponding to the measured current value, determine the target current value of the charge and discharge circuit.

[0225] In some embodiments, the battery charge and discharge current determination device 3000 also includes a construction module 3300, which is used to obtain first current data output by the first current sensor at a first update frequency and second current data output by the second current sensor at a second update frequency during the process of charging and discharging the battery; wherein the data accuracy of the second current data is higher than the data accuracy of the first current data; and the preset relationship table is constructed based on the first current data and the second current data.

[0226] In some embodiments, the first update frequency is greater than the second update frequency.

[0227] In some embodiments, the construction module 3300 is used to obtain multiple first sampling current values ​​of the first current sensor at multiple sampling moments based on the first current data; wherein, one first sampling current value corresponds to one sampling moment; and to obtain multiple second sampling current values ​​of the second current sensor at the multiple sampling moments based on the second current data; wherein, one second sampling current value corresponds to one sampling moment; and to construct the preset relationship table based on the correspondence between the multiple first sampling current values ​​and the multiple second sampling current values ​​at the sampling moments, taking the second sampling current value as the standard current value.

[0228] In some embodiments, the construction module 3300 is used to determine, for each first sampling current value, a current difference between the first sampling current value and a second sampling current value corresponding to the same sampling moment, to obtain a plurality of current difference values ​​corresponding one-to-one to the plurality of first sampling current values; and construct the preset relationship table based on the plurality of current difference values ​​corresponding one-to-one to the plurality of first sampling current values.

[0229] In some embodiments, the construction module 3300 is used to divide the multiple sampling moments according to a preset time length to obtain multiple sampling time intervals; wherein the time length of the sampling time interval is greater than the time interval between adjacent sampling moments; the multiple first sampling current values ​​within each of the sampling time intervals are averaged to obtain multiple average current values ​​corresponding one-to-one to the multiple sampling time intervals; the multiple current difference values ​​within each of the sampling time intervals are averaged to obtain multiple average current difference values ​​corresponding one-to-one to the multiple sampling time intervals; the preset relationship table is constructed based on the multiple average current values ​​and the multiple average current differences corresponding one-to-one to the multiple sampling time intervals.

[0230] In some embodiments, the construction module 3300 is used to obtain multiple sets of mapping data; wherein the multiple sets of mapping data correspond one-to-one to multiple set currents, one set current corresponds to one current data pair, the current data pair includes the first current data and the second current data, and the mapping data includes the multiple average current values ​​and the multiple average current differences obtained based on the current data pair corresponding to the corresponding set current; for each set current, according to the multiple average current differences in the mapping data corresponding to the set current, determine the current compensation value range corresponding to the set current value range of the set current; according to the set current value range and the current compensation value range corresponding to each set current, construct the preset relationship table.

[0231] In some embodiments, the determination module 3200 is used to determine the first current compensation value range corresponding to the first set current value range according to the first set current value range in the preset relationship table where the measured current value is located; and determine the current compensation value corresponding to the measured current value according to the first current compensation value range.

[0232] In some embodiments, the construction module 3300 is used to determine a first current function based on the first current data; determine a second current function based on the second current data; wherein the first current function and the second current function reflect the relationship between the change of current and time; the first current function and the second current function are time-aligned according to the phase difference between the first current function and the second current function; based on the time-aligned first current function, multiple first sampling current values ​​of the first current sensor at multiple sampling moments are obtained; based on the time-aligned second current function, multiple second sampling current values ​​of the second current sensor at the multiple sampling moments are obtained.

[0233] In some embodiments, the construction module 3300 is used to perform sliding averaging on the first current data based on a set first sliding time window to obtain third current data after sliding averaging; determine the first current function based on the third current data; the construction module 3300 is used to perform sliding averaging on the second current data based on a set second sliding time window to obtain fourth current data after sliding averaging; determine the second current function based on the fourth current data.

[0234] In some embodiments, the construction module 3300 is used to determine a first data window based on a numerical quantity representation according to the time length of the first sliding time window and the first update frequency; based on the first data window, the first current data is sliding averaged; the construction module 3300 is used to determine a second data window based on a numerical quantity representation according to the time length of the second sliding time window and the second update frequency; based on the second data window, the second current data is sliding averaged.

[0235] In some embodiments, the battery charge and discharge current determination device 3000 also includes an update module 3400, which is used to obtain the measured current value of the charge and discharge circuit output by the second current sensor during the charge and discharge process of the battery; determine the second set current value range based on the measured current value output by the first current sensor; and update the second current compensation value range corresponding to the second set current value range based on the measured current value output by the first current sensor and the measured current value output by the second current sensor.

[0236] In other embodiments, as shown in Figure 4, the battery charge and discharge current determination device 4000 may include a processor 4100 and a memory 4200, wherein the memory 4200 is used to store executable instructions; the processor 4100 is used to control the operation of the electronic device 4000 according to the instructions to execute the battery charge and discharge current determination method according to the embodiment described in Figure 1 or Figure 2 above.

[0237] <Medium Example>

[0238] An embodiment of the present disclosure provides a readable storage medium storing a computer program. When the computer program is executed by a processor, the computer program implements the method for determining the charge and discharge current of a battery as described in any of the above embodiments.

[0239] <System Example 1>

[0240] An embodiment of the present disclosure provides a battery management system 5000 . As shown in FIG5 , the system 5000 includes a first current sensor 5100 and a device 5200 for determining a battery charge and discharge current.

[0241] The first current sensor 5100 is used to output the measured current value of the charge and discharge circuit to the battery current determination device during the charge and discharge process of the battery.

[0242] In some embodiments, the battery charge and discharge current determination device 5200 may be the battery charge and discharge current determination device 3000 as shown in FIG. 3 .

[0243] In other embodiments, the battery charge and discharge current determination device 5200 may be the battery charge and discharge current determination device 4000 as shown in FIG. 4 .

[0244] In some embodiments, as shown in FIG6 , the first current sensor 5100 is further configured to output first current data to the battery charge and discharge current determination device 5200 at a first update frequency during the battery charge and discharge process.

[0245] The system further comprises:

[0246] a second current sensor 5300, configured to output second current data to the battery charge and discharge current determination device at a second update frequency during the battery charge and discharge process; wherein the second current data has a higher accuracy than the first current data;

[0247] The battery charge and discharge current determination device 5200 is used to construct a preset relationship table according to the first current data and the second current data.

[0248] <System Example 2>

[0249] As shown in FIG7 , an embodiment of the present disclosure provides a power consumption system 7000 , including a battery management system.

[0250] The battery management system may be the battery management system shown in FIG. 5 or FIG. 6 .

[0251] In some embodiments, the power-consuming system may be a vehicle or an energy storage system.

[0252] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0253] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.

[0254] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.

[0255] The computer program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages. The computer readable program instructions can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be personalized by utilizing the state information of the computer readable program instructions, and the electronic circuit can execute the computer readable program instructions, thereby realizing various aspects of the present invention.

[0256] Various aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0257] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0258] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0259] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of an instruction, and the module, program segment or part of the instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.

[0260] While various embodiments of the present invention have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technical improvements to existing technologies, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A method for determining the charging and discharging current of a battery, characterized in that, The method includes: During the charging and discharging process of the battery, obtaining the measured current value of the charging and discharging circuit output by the first current sensor; According to the measured current value and a preset relationship table, determining a current compensation value corresponding to the measured current value; wherein, the preset relationship table is used to represent the corresponding relationship between the current value and the current compensation value; According to the measured current value and the current compensation value corresponding to the measured current value, determining the target current value of the charging and discharging circuit.

2. The method according to claim 1, wherein The method includes: During the process of charging and discharging the battery, obtaining first current data output by the first current sensor at a first update frequency, and second current data output by the second current sensor at a second update frequency; wherein, the data accuracy of the second current data is higher than that of the first current data; Constructing the preset relationship table according to the first current data and the second current data.

3. The method according to claim 2, wherein The first update frequency is greater than the second update frequency.

4. The method according to claim 2 or 3, characterized in that, The constructing the preset relationship table according to the first current data and the second current data includes: According to the first current data, obtaining multiple first sampled current values of the first current sensor at multiple sampling moments; wherein, one first sampled current value corresponds to one sampling moment; According to the second current data, obtaining multiple second sampled current values of the second current sensor at the multiple sampling moments; wherein, one second sampled current value corresponds to one sampling moment; Taking the second sampled current value as the standard current value, and constructing the preset relationship table according to the corresponding relationship between the multiple first sampled current values and the multiple second sampled current values at the sampling moments.

5. The method according to claim 4, characterized in that, The constructing the preset relationship table according to the corresponding relationship between the multiple first sampled current values and the multiple second sampled current values at the sampling moments includes: For each of the first sampled current values, determining the current difference between the first sampled current value and the second sampled current value at the same corresponding sampling moment, and obtaining multiple current differences corresponding one by one to the multiple first sampled current values; Constructing the preset relationship table according to the multiple current differences corresponding one by one to the multiple first sampled current values.

6. The method according to claim 5, wherein The constructing the preset relationship table according to the multiple current differences corresponding one by one to the multiple first sampled current values includes: Dividing the multiple sampling moments according to a preset time length to obtain multiple sampling time intervals; wherein, The time length of the sampling time interval is greater than the time interval between adjacent sampling moments; Performing an averaging process on the multiple first sampled current values within each sampling time interval to obtain multiple average current values corresponding one by one to the multiple sampling time intervals; Performing an averaging process on the multiple current differences corresponding to each sampling time interval to obtain multiple average current differences corresponding one by one to the multiple sampling time intervals; Constructing the preset relationship table according to the multiple average current values and the multiple average current differences corresponding one by one to the multiple sampling time intervals.

7. The method according to claim 6, wherein Constructing the preset relationship table according to the multiple average current values and the multiple average current differences corresponding to the multiple sampling time intervals respectively includes: Obtaining multiple groups of mapping data; wherein, the multiple groups of mapping data correspond to multiple set currents one by one, one set current corresponds to one current data pair, the current data pair includes the first current data and the second current data, and the mapping data includes the multiple average current values and the multiple average current differences obtained based on the current data pair corresponding to the corresponding set current; For each set current, determine the current compensation value range corresponding to the set current value range where the set current is located according to the multiple average current differences in the mapping data corresponding to the set current; Construct the preset relationship table according to the set current value range and the current compensation value range corresponding to each set current.

8. The method according to claim 7, wherein Determining the current compensation value corresponding to the measured current value according to the measured current value and the preset relationship table includes: Determine the first current compensation value range corresponding to the first set current value range where the measured current value is located in the preset relationship table; Determine the current compensation value corresponding to the measured current value according to the first current compensation value range.

9. The method according to claim 7 or 8, characterized in that The method further includes: During the charge and discharge process of the battery, obtain the measured current value of the charge and discharge circuit output by the second current sensor; Determine the second set current value range according to the measured current value output by the first current sensor; Update the second current compensation value range corresponding to the second set current value range according to the measured current value output by the first current sensor and the measured current value output by the second current sensor.

10. The method according to any one of claims 4-9, characterized in that Obtaining the multiple first sampling current values of the first current sensor at multiple sampling moments according to the first current data, and obtaining the multiple second sampling current values of the second current sensor at the multiple sampling moments according to the second current data includes: Determine the first current function according to the first current data; Determine the second current function according to the second current data; wherein, the first current function and the second current function reflect the change relationship of the current value with time; Perform time alignment on the first current function and the second current function according to the phase difference between the first current function and the second current function; Obtain the multiple first sampling current values of the first current sensor at multiple sampling moments according to the time-aligned first current function; Obtain the multiple second sampling current values of the second current sensor at the multiple sampling moments according to the time-aligned second current function.

11. The method according to claim 10, wherein Determining the first current function according to the first current data includes: Perform moving average on the first current data based on a set first sliding time window to obtain the third current data after moving average; Determine the first current function according to the third current data; Determining the second current function according to the second current data includes: Based on a set second sliding time window, perform a sliding average on the second current data to obtain fourth current data after the sliding average; Determine the second current function according to the fourth current data.

12. The method according to claim 11, characterized in that, The performing a sliding average on the first current data based on a set first sliding time window includes: Determine a first data window represented by the number of values based on the time length of the first sliding time window and the first update frequency; Perform a sliding average on the first current data based on the first data window; The performing a sliding average on the second current data based on a set second sliding time window includes: Determine a second data window represented by the number of values based on the time length of the second sliding time window and the second update frequency; Perform a sliding average on the second current data based on the second data window.

13. A charging and discharging current determination device (3000) for a battery, characterized in that, Includes: An acquisition module (3100) for acquiring the measured current value of the charge and discharge loop output by the first current sensor during the charge and discharge process of the battery; And A determination module (3200) for determining a current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table; wherein, the preset relationship table is used to represent the corresponding relationship between the current value and the current compensation value; determine the target current value of the charge and discharge loop according to the measured current value and the current compensation value corresponding to the measured current value.

14. A charging and discharging current determination device (4000) for a battery, characterized in that, Includes a memory (4200) and a processor (4100), the memory stores executable instructions, and the instructions are used to control the processor to operate to execute the method for determining the charge and discharge current of the battery according to any one of claims 1-12.

15. A readable storage medium, characterized in that, Store a computer program, which when executed by a processor, implements the method for determining the charge and discharge current of the battery according to any one of claims 1 to 12.

16. A battery management system (5000), characterized in that, Includes: A first current sensor (5100), which is used to output the measured current value of the charge and discharge loop to the current determination device of the battery during the charge and discharge process of the battery; And A charge and discharge current determination device (5200) of the battery, and the charge and discharge current determination device (5200) of the battery is the charge and discharge current determination device (3000, 4000) according to claim 13 or 14.

17. The system according to claim 16, wherein The first current sensor (5100) is further used to output first current data to the charge and discharge current determination device (5200) of the battery at a first update frequency during the charge and discharge process of the battery; The system further includes: A second current sensor (5300), which is used to output second current data to the charge and discharge current determination device (5200) of the battery at a second update frequency during the charge and discharge process of the battery; wherein, the data accuracy of the second current data is higher than that of the first current data; The charge and discharge current determination device (5200) of the battery is used to construct a preset relationship table according to the first current data and the second current data.

18. An electrical power system (7000), characterized in that, Comprising the battery management system (5000) according to claim 16 or 17.

Citation Information

Patent Citations

  • Current detection method, device terminal, and readable storage medium

    CN110118891A

  • BMS current acquisition precision test system and method, and readable storage medium

    CN112034408A

  • High-voltage loop current determination method, device, equipment, medium and product

    CN116031509A

  • Piezoelectric element performance detection method, system and device and readable storage medium

    CN117148015A

  • Charging current calibration

    US20140055082A1