Battery charging and discharging current determination method and device, storage medium and system
By obtaining the measured current value during the battery charging and discharging process and calculating the current compensation value based on the preset relationship table, the current signal difference caused by high-frequency ripple is solved, and the accurate evaluation of the battery state of charge and the reliability of vehicle control is achieved.
Patent Information
- Application Number
- CN202311801127.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2025-04-18
AI Technical Summary
During the charging and discharging process of the battery, high-frequency ripple causes a large difference between the current signal collected by the sensor and the real current signal, affecting the evaluation of the battery's state of charge and the vehicle control.
By obtaining the measured current value output from the first current sensor, determining the current compensation value based on the preset relationship table, and calculating the target current value to improve the accuracy of the current signal.
The accuracy of the current signal is improved, ensuring accurate evaluation of the battery state of charge and reliability of vehicle control.
Smart Images

Figure CN119840475A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of battery technology, and more specifically, to a method, device, storage medium and system for determining a charge and discharge current of a battery. Background Art
[0002] With the increasing awareness of environmental protection, new energy vehicles are gradually becoming popular. As an important power source for new energy vehicles, power batteries provide important basis for battery status evaluation and vehicle control. For example, the battery state of charge is evaluated based on the current signal collected by the sensor, and the whole vehicle is controlled.
[0003] However, in the presence of 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. Summary of the invention
[0004] 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.
[0005] 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:
[0006] During the charging and discharging process of the battery, obtaining a measured current value of the charging and discharging circuit output by the first current sensor;
[0007] Determine 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 characterize the corresponding relationship between the current value and the current compensation value;
[0008] The target current value of the charge-discharge loop is determined according to the measured current value and the current compensation value corresponding to the measured current value.
[0009] Optionally, the method further comprises:
[0010] During the process of charging and discharging the battery, 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 are obtained; wherein the data accuracy of the second current data is higher than the data accuracy of the first current data;
[0011] The preset relationship table is constructed according to the first current data and the second current data.
[0012] Optionally, the first update frequency is greater than the second update frequency.
[0013] Optionally, constructing the preset relationship table according to the first current data and the second current data includes:
[0014] According to the first current data, a plurality of first sampling current values of the first current sensor at a plurality of sampling moments are obtained; wherein one first sampling current value corresponds to one sampling moment;
[0015] According to the second current data, a plurality of second sampling current values of the second current sensor at the plurality of sampling moments are obtained; wherein one second sampling current value corresponds to one sampling moment;
[0016] 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.
[0017] 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 times includes:
[0018] 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;
[0019] The preset relationship table is constructed according to a plurality of current difference values corresponding one to one to the plurality of first sampled current values.
[0020] Optionally, constructing the preset relationship table according to the multiple current difference values corresponding to the multiple first sampled current values in one-to-one correspondence includes:
[0021] 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;
[0022] Averaging a plurality of first sampled current values within each of the sampling time intervals to obtain a plurality of average current values corresponding to the plurality of sampling time intervals;
[0023] 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;
[0024] 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 one by one.
[0025] 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 one by one includes:
[0026] Acquire multiple groups of mapping data; wherein the multiple groups 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 difference values obtained based on the current data pair corresponding to the corresponding set current;
[0027] For each set current, determining a current compensation value range corresponding to a set current value range where the set current is located according to the multiple average current difference values in the mapping data corresponding to the set current;
[0028] The preset relationship table is constructed according to the set current value range and the current compensation value range corresponding to each set current.
[0029] Optionally, determining the current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table includes:
[0030] 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;
[0031] A current compensation value corresponding to the measured current value is determined according to the first current compensation value range.
[0032] Optionally, the method further comprises:
[0033] During the charging and discharging process of the battery, obtaining a measured current value of the charging and discharging circuit output by the second current sensor;
[0034] Determining a second set current value range according to the measured current value output by the first current sensor;
[0035] 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.
[0036] Optionally, 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, and obtaining a plurality of second sampled current values of the second current sensor at the plurality of sampling moments according to the second current data, comprises:
[0037] determining a first current function according to the first current data;
[0038] Determine a second current function according to the second current data; wherein the first current function and the second current function reflect the relationship between the current and time;
[0039] 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;
[0040] 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;
[0041] 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.
[0042] Optionally, determining a first current function according to the first current data includes:
[0043] Based on a set first sliding time window, performing sliding averaging on the first current data to obtain third current data after sliding averaging;
[0044] determining the first current function according to the third current data;
[0045] The determining a second current function according to the second current data comprises:
[0046] Based on a set second sliding time window, performing sliding averaging on the second current data to obtain fourth current data after sliding averaging;
[0047] The second current function is determined according to the fourth current data.
[0048] Optionally, performing sliding averaging on the first current data based on a set first sliding time window includes:
[0049] Determine 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;
[0050] Based on the first data window, performing a sliding average on the first current data;
[0051] The performing sliding averaging on the second current data based on the set second sliding time window includes:
[0052] Determine 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;
[0053] Based on the second data window, a sliding average is performed on the second current data.
[0054] 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:
[0055] An acquisition module, used to acquire 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;
[0056] 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.
[0057] According to a third aspect of the present disclosure, another embodiment of a device for determining a 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 a charge and discharge current of a battery according to the first aspect of the present disclosure.
[0058] According to a fourth aspect of the present disclosure, a readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the method for determining the charge and discharge current of a battery as described in the first aspect is implemented.
[0059] According to a fifth aspect of the present disclosure, an embodiment of a battery management system is provided, the battery system comprising:
[0060] a first current sensor, the first current sensor being used 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;
[0061] 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 as described in the second aspect or the third aspect.
[0062] Optionally, the first current sensor is further used to output first current data to the battery charge and discharge current determination device at a first update frequency during the process of charging and discharging the battery;
[0063] The system further comprises:
[0064] a second current sensor, the second current sensor being used 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 data accuracy of the second current data is higher than the data accuracy of the first current data;
[0065] 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.
[0066] According to a sixth aspect of the present disclosure, a power consumption system is also provided, which includes the battery management system according to the fifth aspect of the present disclosure.
[0067] 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 according to 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 according to 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.
[0068] 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 attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0070] Figure 1 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;
[0071] Figure 2 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;
[0072] Figure 3 is a structural schematic diagram of a device for determining a battery's charge and discharge current according to an embodiment of the present application;
[0073] Figure 4 is a structural schematic diagram of a device for determining a battery's charge and discharge current according to another embodiment of the present application;
[0074] Figure 5 is a structural schematic diagram of a battery management system according to an embodiment of the present application;
[0075] Figure 6 is a structural schematic diagram of a battery management system according to another embodiment of the present application;
[0076] Figure 7It is a schematic diagram of the structure of the power consumption system according to an embodiment of the present application. DETAILED DESCRIPTION
[0077] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that 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 unless otherwise specifically stated.
[0078] 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.
[0079] 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 as part of the specification.
[0080] 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.
[0081] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0082] <Method Example>
[0083] Figure 1 It is a flowchart of a method for determining a charge and discharge current of a battery according to an embodiment of the present disclosure.
[0084] like Figure 1 As shown, the method for determining the charge and discharge current of a battery in this embodiment can be specifically executed by a device for determining the charge and discharge current of a battery.
[0085] Specifically, the method for determining the charge and discharge current of a battery in this embodiment may include the following steps S1100 to S1300:
[0086] Step S1100: during the charge and discharge process of the battery, obtaining the actual current value of the charge and discharge loop output by the first current sensor.
[0087] 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.
[0088] 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 measured current values 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.
[0089] In one example, the first current sensor may be a Hall sensor.
[0090] Step S1200, determining a current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table.
[0091] In this embodiment, the correspondence between the current value and the current compensation value may be a correspondence between a current value range and a current compensation value range, or may be a correspondence between an average current value and an average current compensation value, which is not limited here.
[0092] In the example where the relationship table is a correspondence between a current value range and a current compensation value range, the current value range to which the measured current value belongs can be determined according to the measured current value, and then the specific current compensation value can be determined according to the current compensation value range corresponding to the current value range. For example, the specific current compensation value can be the current compensation value mean of the current compensation value range.
[0093] 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.
[0094] 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.
[0095] Step S2100, 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.
[0096] In this embodiment, the battery may be the battery corresponding to the actual current value in the above step S1100, or may be a sample battery, which is not limited here.
[0097] In one example, the first current sensor may be a Hall sensor and the second current sensor may be a shunt.
[0098] In one embodiment, the first update frequency is greater than the second update frequency.
[0099] In one example, the sampling frequencies of the second current sensor and the first current sensor are both 1KHZ. During the process of charging and discharging the battery, the first current data output by the first current sensor at a first update frequency of 50HZ is obtained, and the second current data output by the second current sensor at a second update frequency of 10HZ is obtained. The first update frequency is 50HZ, that is, the first current sensor averages the current value collected every 20ms and outputs it, and the first current data includes the current values output at 20ms, 40ms, 60ms, 80ms, etc. The second update frequency is 10HZ, that is, the second current sensor averages the current value collected every 100ms and outputs it, and the second current data includes the current values output at 100ms, 200ms, 300ms, 400ms, etc.
[0100] 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.
[0101] Step S2200: construct the preset relationship table according to the first current data and the second current data.
[0102] 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.
[0103] 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.
[0104] Continuing with the above example, a first current function can be constructed based on the current values output at 20ms, 40ms, 60ms, 80ms, etc. according to the first current data, wherein the first current function reflects the relationship between the current value and time. Then, with a sampling period of 20ms, the sampling moments of 20ms, 40ms, 60ms, etc. are input into the first current function to obtain the first sampled current value corresponding to each sampling moment.
[0105] 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.
[0106] 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.
[0107] Continuing the above example, the second current function can be constructed according to the second current data including the current values output at 100ms, 200ms, 300ms, 400ms, etc. The second current function can reflect the relationship between the current value and time, and then the sampling period is 20ms, the sampling moments are 20ms, 40ms, 60ms, etc. respectively, and the second sampling current value corresponding to each sampling moment is obtained.
[0108] 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.
[0109] 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.
[0110] In some embodiments, step S2211 obtains multiple first sampling current values of the first current sensor at multiple sampling moments based on the first current data, and step S2212 obtains multiple second sampling current values of the second current sensor at the multiple sampling moments based on the second current data, including: steps S2301 to S2305.
[0111] Step S2301: determine a first current function according to the first current data.
[0112] In this embodiment, the first current function is used to reflect the change relationship between the current value and time.
[0113] In some embodiments, step S2301 determines a first current function based on the first current data, including: step S2401 and step S2402.
[0114] Step S2401: Based on a set first sliding time window, sliding average is performed on the first current data to obtain third current data after sliding average.
[0115] In this embodiment, the moving average method is also called the moving average method, the averaging method, the moving average filtering method, etc. It is a signal smoothing method in the time domain. The algorithm idea is to determine the sampling points near the point through the sliding time window, and then perform the arithmetic average as the smoothed value of this point.
[0116] 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.
[0117] In some embodiments, step S2401, based on a set first sliding time window, performing sliding averaging on the first current data, includes: step S2601 and step S2602.
[0118] Step S2601: Determine 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.
[0119] In some examples, the time length of the first sliding time window may be, for example, 500 ms, and the first update frequency is 50 Hz, that is, the first current data includes current values output at 20 ms, 40 ms, 60 ms, 80 ms, etc., then the first data window is determined to be 25.
[0120] Step S2602: performing sliding averaging on the first current data based on the first data window.
[0121] Continuing with the above example, the first data window is 25, that is, the sliding average is performed in units of every 25 current values in the first current data.
[0122] Step S2402: determining a first current function according to the third current data.
[0123] In this embodiment, a first current function reflecting the relationship between the current and time is determined based on the third current data obtained by sliding average of the first current data.
[0124] Step S2302: determining a second current function according to the second current data.
[0125] In some embodiments, determining the second current function according to the second current data in step S2302 includes: step S2501 and step S2502.
[0126] Step S2501: Based on a set second sliding time window, the second current data is sliding averaged to obtain fourth current data after sliding average.
[0127] 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.
[0128] 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.
[0129] In some embodiments, in step S2501, sliding averaging is performed on the second current data based on a set second sliding time window, including: step S2701 and step S2702.
[0130] Step S2701: Determine 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.
[0131] 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, then the second data window is 5.
[0132] Step S2702: performing sliding averaging on the second current data based on the second data window.
[0133] Continuing with the above example, the number of the second data windows is 5, that is, the sliding average is performed in units of every 5 current values in the second current data.
[0134] 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.
[0135] Step S2502: determine the second current function according to the fourth current data.
[0136] 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 will remain unchanged.
[0137] 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.
[0138] In this embodiment, the phase difference, that is, the average time difference, can 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 can be aligned according to the average time difference.
[0139] 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.
[0140] In other examples, a first current curve and a second current curve showing the current changing with 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.
[0141] The first current function and the second current function are time-aligned according to the average time difference.
[0142] 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, it is possible to synchronize the sampling moments of the second current sensor and the first current sensor, 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, thereby improving the accuracy of current determination.
[0143] 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.
[0144] 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.
[0145] In one example, the phase difference between the first current function and the second current function is 5ms. Then, with 20ms as the sampling period, when the first current function and the second current function are sampled respectively, the first sampled current value is sampled at the sampling times corresponding to 20ms, 40ms, 60ms, 80ms, etc. for the first current function. The second sampled current value is sampled at the sampling times corresponding to 25ms, 45ms, 65ms, 85ms, etc. for the second current function. The sampling times and the sampled current values correspond one to one.
[0146] Step S2213 , using the second sampled current value as a standard current value, and 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 sampling times.
[0147] In this embodiment, since the data accuracy of the second current data is higher than that of the first current data, correspondingly, the accuracy of the second sampled current value is also higher than that of the first sampled current value. Therefore, the second sampled current value can be used as the standard current value, thereby calculating the difference between the first sampled current value and the standard current value corresponding to the same sampling moment to determine the current compensation value.
[0148] 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 time includes: step S2801 to step S2802.
[0149] Step S2801 , for each of the first sampled current values, determine a current difference between the first sampled current value and a second sampled current value corresponding to the same sampling time, and obtain a plurality of current difference values corresponding to the plurality of first sampled current values.
[0150] In one example, the synchronous sampling time difference between the first sampled current value and the second sampled current value is 5ms, and the sampling time of the first sampled current value is 20ms, 40ms, 60ms, 80ms, etc. The same sampling time corresponding to the second sampled current value is 25ms, 45ms, 65ms, 85ms, that is, the first sampled current value corresponding to 20ms is subtracted from the second sampled current value corresponding to 25ms to obtain the current difference corresponding to the first sampled current value of 20ms. By analogy, the current difference corresponding to the first sampled current value of 40ms, the current difference corresponding to the first sampled current value of 60ms, etc. can be obtained respectively.
[0151] After determining the current difference between each first sampled current value and the second sampled current value corresponding to the same sampling time 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.
[0152] Step S2802 , constructing the preset relationship table according to the current difference values that correspond one to one to the first sampled current values.
[0153] 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 a sampling time interval of 40ms, 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 an 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.
[0154] In some embodiments, the step S2802 constructs the preset relationship table according to the current difference values corresponding to the first sampled current values, including steps S2811 to S2814.
[0155] Step S2811, 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.
[0156] In this embodiment, the preset time length may be a time interval greater than that between adjacent sampling moments. For example, when the sampling period is 20 ms, the sampling moments are 20 ms, 40 ms, 60 ms, and 80 ms. The preset time length may be 400 ms or 500 ms. When the preset time length is 500 ms, the sampling time intervals are [0-500 ms], [500 ms-1000 ms], [1000 ms-1500 ms], etc. Each sampling time interval includes 25 sampling moments.
[0157] Step S2812, 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.
[0158] Step S2813, averaging the multiple current difference values within each of the sampling time intervals to obtain a plurality of average current difference values corresponding to the multiple sampling time intervals.
[0159] Continuing with the above example, the current average value is calculated for the 25 first sampled current values within the sampling time interval of [0-500ms] to obtain the average current value corresponding to the sampling time interval of [0-500ms]. The average current difference value is calculated for the 25 current difference values within the sampling time interval of [0-500ms] to obtain the average current difference value corresponding to the sampling time interval of [0-500ms]. By analogy, the average current value and average current difference value corresponding to multiple sampling time intervals can be obtained.
[0160] Step S2814: construct 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.
[0161] Continuing with the above example, a set of corresponding relationships between current values and current compensation values is constructed based on the average current value and the average current difference corresponding to the sampling time interval [0-500ms]. A set of corresponding relationships between current values and current compensation values is constructed based on the average current value and the average current difference corresponding to the sampling time interval [500ms-1000ms]. A set of corresponding relationships between current values and current compensation values is constructed based on the average current value and the average current difference corresponding to the sampling time interval [1000ms-1500ms].
[0162] According to the 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.
[0163] In some embodiments, the step S2814 constructs the preset relationship table according to the multiple average current values and the multiple average current differences corresponding to the multiple sampling time intervals, including: steps S2821 to S2823.
[0164] Step S2821, obtaining multiple groups of mapping data.
[0165] In this embodiment, multiple set current value ranges are pre-established. The multiple set current value ranges can be determined according to the use 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 battery is 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. According to 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 multiple average current values and multiple average current differences of a current data pair constitutes a set of mapping data. That is to say, 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.
[0166] In one example, the set current value range includes 5, for example, [0-10A], [10-20A], [20-30A], [30-40A], [40-50A]. Correspondingly, a set current can be selected from each set current value range, and 5 set currents can be obtained. 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. According to 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.
[0167] Step S2822: for each set current, determine a current compensation value range corresponding to a set current value range of the set current according to the multiple average current difference values in the mapping data corresponding to the set current.
[0168] Continuing with the above example, after obtaining 5 sets of mapping data corresponding to 5 set currents, for each of the 5 set currents, the current compensation value range corresponding to the set current value range of the set current is determined according to the multiple average current differences in the mapping data corresponding to the set current. Thus, the current compensation value range corresponding to the 5 set current value ranges can be obtained.
[0169] 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.
[0170] 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.
[0171] 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.
[0172] Step S1211 , determining a 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 actually measured current value is located.
[0173] 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], and [0-10A] is the first set current value range. The first set current value range corresponds to the first current compensation value range in the preset relationship table, for example, the first current compensation value range is [0-10A].
[0174] Step S1212: determining a current compensation value corresponding to the measured current value according to the first current compensation value range.
[0175] 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.
[0176] Step S1300, determining a target current value of the charge-discharge loop according to the measured current value and a current compensation value corresponding to the measured current value.
[0177] In this embodiment, the actual current value is compensated by the current compensation value to obtain the target current value, and the target current value is used as the basis for the battery state and vehicle control.
[0178] In some embodiments, the method further includes: step S3100 and step S3300.
[0179] Step S3100: During the charge and discharge process of the battery, the actual current value of the charge and discharge circuit output by the second current sensor is obtained.
[0180] In this embodiment, during the official use of the battery after leaving the factory, the actual current values output by the second current sensor and the first current sensor can be obtained.
[0181] Step S3200: determining a second set current value range according to the measured current value output by the first current sensor.
[0182] In this embodiment, the second set current value range is the set current value range that the measured current value output by the first current sensor is in. For example, the measured current value output by the first current sensor is 15A, and the corresponding second set current value range is [10-20A].
[0183] 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.
[0184] In this embodiment, the second current compensation value range corresponding to the second set current value range is updated according to 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 according to 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 will not be repeated here to avoid repetition.
[0185] 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, determining the 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 characterize the correspondence between the current value and the current compensation value, and determining the target current value of the charge and discharge circuit according to 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 state of charge and control of the entire vehicle.
[0186] <Example>
[0187] Figure 2 is a flow chart of a method for determining a battery charge and discharge current according to another embodiment of the present application. Figure 2 As shown, the method includes: steps S1 to S15.
[0188] 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.
[0189] In this embodiment, the first current sensor and the second current sensor are sampled at 1KHZ respectively, the first current sensor outputs the first current data at 50HZ, and the second current sensor outputs the second current data at 10HZ. The accuracy of the second current data is higher than that of the first current data.
[0190] Step S2: Based on a set first sliding time window, sliding average is performed on the first current data to obtain third current data after sliding average.
[0191] In this embodiment, the time length of the first sliding time window may be, for example, 500 ms, and the first update frequency is 50 Hz, then the first data window is 25, that is, the third current data is obtained by slidingly averaging the first current data through the first data window.
[0192] Step S3, determining a first current function according to the third current data.
[0193] Step S4: Based on the set second sliding time window, sliding average is performed on the second current data to obtain fourth current data after sliding average.
[0194] In this embodiment, the time length of the second sliding time window may be, for example, 500 ms, and the second update frequency is 10 Hz, then the second data window is 5, that is, the fourth current data is obtained by slidingly averaging the second current data through the second data window.
[0195] Step S5, determining a second current function according to the fourth current data.
[0196] 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.
[0197] In this embodiment, the average time difference is determined according to 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 according to the average time difference.
[0198] In one example, the second current function lags behind the first current function in phase, and the phase difference is, for example, 5 ms. When the sampling time for the first current function is 20 ms, the sampling time for the second current sampling synchronized with the sampling time should be 25 ms.
[0199] 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.
[0200] In an example, the sampling times corresponding to the first sampled current values are 20 ms, 40 ms, 60 ms, 80 ms, etc.
[0201] 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.
[0202] In an example, the sampling times corresponding to the second sampling current values are 25 ms, 45 ms, 65 ms, 85 ms, etc.
[0203] Step S9 , for each first sampled current value, determining a current difference between the first sampled current value and a second sampled current value corresponding to the same sampling time, and obtaining a plurality of current difference values corresponding to the plurality of first sampled current values.
[0204] Continuing with the above example, the first sampled current value of 20ms is subtracted from the second sampled current value of 25ms to obtain a current difference value corresponding to the first sampled current value of 20ms. The first sampled current value of 40ms is subtracted from the second sampled current value of 45ms to obtain a current difference value corresponding to the first sampled current value of 40ms. The first sampled current value of 60ms is subtracted from the second sampled current value of 65ms to obtain a current difference value corresponding to the first sampled current value of 60ms. The first sampled current value of 80ms is subtracted from the second sampled current value of 85ms to obtain a current difference value corresponding to the first sampled current value of 80ms.
[0205] Step S10, dividing the multiple sampling moments according to the preset time length to obtain multiple sampling time intervals.
[0206] In one example, the sampling period is 20ms, the preset time length is 500ms, and the sampling time interval is [0-500ms], [500ms-1000ms], etc.
[0207] 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.
[0208] Continuing with the above example, the preset time length may be, for example, 500 ms, that is, a plurality of first sampled current values are averaged with 25 as an average unit to obtain a plurality of average current values.
[0209] Step S12, averaging the multiple current difference values within each sampling time interval to obtain a plurality of average current difference values corresponding to the multiple sampling time intervals.
[0210] Step S13, constructing a 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.
[0211] 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.
[0212] Step S14, during the charging and discharging process of the battery, obtaining the actual current value of the charging and discharging circuit output by the first current sensor.
[0213] In this embodiment, the first current sensor may output the measured current value at a first update frequency.
[0214] Step S15, determining a current compensation value corresponding to the measured current value according to the measured current value and a preset relationship table.
[0215] In some examples, the preset relationship table can be used to characterize the correspondence between the set current value range and the current compensation value range. In this case, step S15 determines the current compensation value corresponding to the measured current value according to the measured current value and the preset relationship table, which may include: determining 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, and determining the current compensation value corresponding to the measured current value according to the first current compensation value range.
[0216] Step S16, determining the target current value of the charge-discharge loop according to the measured current value and the current compensation value corresponding to the measured current value.
[0217] In some examples, during the charge and discharge process of the battery, the measured current values of the charge and discharge circuits respectively output by the second current sensor and the first current sensor are obtained, and a second set current value range is determined based on the measured current value output by the first current sensor, and a second current compensation value range corresponding to the second set current value range is updated based on the measured current value output by the first current sensor and the measured current value output by the second current sensor.
[0218] <Device Example>
[0219] In some embodiments, Figure 3As shown, a battery charge and discharge current determination device 3000 is also provided. The battery charge and discharge current determination device 3000 includes an acquisition module 3100 and a determination module 3200.
[0220] The acquisition module 3100 is used to acquire the actual current value of the charge and discharge loop output by the first current sensor during the charge and discharge process of the battery.
[0221] The determination module 3200 is used to determine the current compensation value corresponding to the measured current value according to the measured current value and the preset relationship table; wherein the preset relationship table is used to characterize the correspondence between the current value and the current compensation value; and, according to 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.
[0222] 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 a first current sensor at a first update frequency and second current data output by a second current sensor at a second update frequency during the battery charging and discharging process; 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.
[0223] In some embodiments, the first update frequency is greater than the second update frequency.
[0224] 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 according to the first current data; wherein one first sampling current value corresponds to one sampling moment; according to the second current data, obtain multiple second sampling current values of the second current sensor at the multiple sampling moments; wherein one second sampling current value corresponds to one sampling moment; taking the second sampling current value as the standard current value, and constructing the preset relationship table according to the correspondence between the multiple first sampling current values and the multiple second sampling current values at the sampling moments.
[0225] In some embodiments, the construction module 3300 is used to determine, for each of the first sampling current values, 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.
[0226] 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 corresponding one-to-one to the multiple sampling time intervals and the multiple average current differences.
[0227] 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 in which the set current is located; according to the set current value range and the current compensation value range corresponding to each set current, construct the preset relationship table.
[0228] In some embodiments, the determination module 3200 is used to determine a first current compensation value range corresponding to a first set current value range according to a first set current value range in which the measured current value is located in the preset relationship table; and determine a current compensation value corresponding to the measured current value according to the first current compensation value range.
[0229] 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 current and time; according to the phase difference between the first current function and the second current function, the first current function and the second current function are time-aligned; according to the time-aligned first current function, multiple first sampling current values of the first current sensor at multiple sampling moments are obtained; according to the time-aligned second current function, multiple second sampling current values of the second current sensor at the multiple sampling moments are obtained.
[0230] 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.
[0231] In some embodiments, the construction module 3300 is used to determine a first data window based on 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, perform sliding averaging on the first current data; the construction module 3300 is used to determine a second data window based on 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, perform sliding averaging on the second current data.
[0232] 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 according to 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 according to the measured current value output by the first current sensor and the measured current value output by the second current sensor.
[0233] In other embodiments, Figure 4 As shown, 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 above instructions. Figure 1 or Figure 2 The method for determining the charge and discharge current of a battery in the embodiment described above.
[0234] <Medium Example>
[0235] An embodiment of the present disclosure provides a readable storage medium 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 any of the above embodiments.
[0236] <System Example 1>
[0237] The present disclosure provides a battery management system 5000, such as Figure 5As shown, the system 5000 includes a first current sensor 5100 and a battery charge and discharge current determination device 5200 .
[0238] 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.
[0239] In some embodiments, the battery charge and discharge current determination device 5200 may be as follows: Figure 3 The battery charge and discharge current determining device 3000 is shown.
[0240] In other embodiments, the battery charge and discharge current determination device 5200 may be as follows: Figure 4 The device 4000 for determining the charge and discharge current of a battery is shown.
[0241] In some embodiments, Figure 6 As shown, the first current sensor 5100 is also used 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.
[0242] The system further comprises:
[0243] A second current sensor 5300, the second current sensor 5300 is used 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 data accuracy of the second current data is higher than the data accuracy of the first current data;
[0244] 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.
[0245] <System Example 2>
[0246] like Figure 7 As shown, an embodiment of the present disclosure provides a power consumption system 7000, including a battery management system.
[0247] The battery management system can be Figure 5 As shown or Figure 6 The battery management system shown.
[0248] In some embodiments, the power consumption system may be a vehicle or an energy storage system.
[0249] 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.
[0250] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may 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 of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) 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 disk 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 of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted 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 a wire.
[0251] 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, optical fiber transmissions, wireless transmissions, 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 for storage in the computer-readable storage medium in each computing / processing device.
[0252] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related 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++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may 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), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0253] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0254] 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 that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0255] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating 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 boxes in the flowchart and / or block diagram.
[0256] The flowcharts and block diagrams in the accompanying drawings show the possible 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, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order 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 the flowchart, and the combination of the boxes in the block diagram and / or the 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 it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0257] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the marketplace, or to enable other persons of ordinary skill 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 charge and discharge current of a battery, characterized in that: The method comprises: During the charging and discharging process of the battery, obtaining a measured current value of the charging and discharging circuit output by the first current sensor; According to the measured current value and the preset relationship table, determining the current compensation value corresponding to the measured current value; wherein the preset relationship table is used to characterize the corresponding relationship between the current value and the current compensation value; The target current value of the charge-discharge loop is determined according to the measured current value and the current compensation value corresponding to the measured current value.
2. The method according to claim 1, characterized in that The method comprises: During the process of charging and discharging the battery, 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 are obtained; wherein the data accuracy of the second current data is higher than the data accuracy of the first current data; The preset relationship table is constructed according to the first current data and the second current data.
3. The method according to claim 2, characterized in that The first update frequency is greater than the second update frequency.
4. The method according to claim 2, characterized in that: The step of constructing the preset relationship table according to the first current data and the second current data includes: According to the first current data, a plurality of first sampling current values of the first current sensor at a plurality of sampling moments are obtained; wherein one first sampling current value corresponds to one sampling moment; According to the second current data, a plurality of second sampling current values of the second current sensor at the plurality of sampling moments are obtained; wherein one second sampling current value corresponds to one sampling moment; 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.
5. The method according to claim 4, characterized in that The step 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 time comprises: 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; The preset relationship table is constructed according to a plurality of current difference values corresponding one to one to the plurality of first sampled current values.
6. The method according to claim 5, characterized in that The step of constructing the preset relationship table according to the multiple current difference values corresponding to the multiple first sampled current values comprises: 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; Averaging a plurality of first sampled current values within each of the sampling time intervals to obtain a plurality of average current values corresponding to the plurality of sampling time intervals; 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; 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 one by one.
7. The method according to claim 6, characterized in that The step of 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 one by one includes: Acquire multiple groups of mapping data; wherein the multiple groups 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 difference values obtained based on the current data pair corresponding to the corresponding set current; For each set current, determining a current compensation value range corresponding to a set current value range where the set current is located according to the multiple average current difference values in the mapping data corresponding to the set current; The preset relationship table is constructed 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, characterized in that The determining, according to the measured current value and the preset relationship table, a current compensation value corresponding to the measured current value comprises: 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; A current compensation value corresponding to the measured current value is determined according to the first current compensation value range.
9. The method according to claim 7, characterized in that: The method further comprises: During the charging and discharging process of the battery, obtaining a measured current value of the charging and discharging circuit output by the second current sensor; Determining a second set current value range according to the measured current value output by the first current sensor; 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.
10. The method according to claim 4, characterized in that The step of 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, and the step of obtaining a plurality of second sampled current values of the second current sensor at the plurality of sampling moments according to the second current data, comprises: determining a first current function according to the first current data; Determine a second current function according to the second current data; wherein the first current function and the second current function reflect the relationship between the current value and time; 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; 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; 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.
11. The method according to claim 10, characterized in that Determining a first current function according to the first current data comprises: Based on a set first sliding time window, performing sliding averaging on the first current data to obtain third current data after sliding averaging; determining the first current function according to the third current data; The determining a second current function according to the second current data comprises: Based on a set second sliding time window, performing sliding averaging on the second current data to obtain fourth current data after sliding averaging; The second current function is determined according to the fourth current data.
12. The method according to claim 11, characterized in that The performing sliding averaging on the first current data based on the set first sliding time window includes: Determine 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; Based on the first data window, performing a sliding average on the first current data; The performing sliding averaging on the second current data based on the set second sliding time window includes: Determine 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; Based on the second data window, a sliding average is performed on the second current data.
13. A device for determining a battery's charge and discharge current, characterized in that: include: An acquisition module, used to acquire 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; 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.
14. A device for determining a battery's charge and discharge current, characterized in that: The method comprises a memory and a processor, wherein the memory stores executable instructions, and the instructions are used to control the processor to operate so as to execute the method for determining the charge and discharge current of a battery according to any one of claims 1 to 12.
15. A readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the method for determining the charge and discharge current of a battery according to any one of claims 1 to 12 is implemented.
16. A battery management system, characterized in that: include: a first current sensor, the first current sensor being used 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; A battery charge and discharge current determination device, wherein the battery charge and discharge current determination device is the battery charge and discharge current determination device according to claim 13 or 14.
17. The system according to claim 16, characterized in that The first current sensor is further used to output first current data to the battery charge and discharge current determination device at a first update frequency during the process of charging and discharging the battery; The system further comprises: a second current sensor, the second current sensor being used 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 data accuracy of the second current data is higher than the data accuracy of the first current data; 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.
18. An electricity system, characterized in that: Including the battery management system described in claim 16 or 17.