Methods, devices, media, and procedures for controlling battery charging request current.

By introducing feedforward compensation and feedback correction mechanisms into the battery management system, a target requested current is generated, which solves the problems of low charging efficiency and overcharging risk caused by load shunting and charging equipment deviation during battery charging, and achieves accurate tracking of battery charging current and system stability and safety.

CN123074079APending Publication Date: 2026-11-10SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611487498.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

In existing technologies, during battery charging, load shunting and output deviation of charging equipment cause the actual charging current to fail to accurately track the allowable charging current, resulting in low charging efficiency and the risk of overcharging.

Method used

By introducing feedforward compensation and feedback correction mechanisms into the battery management system, a target requested current is generated. This current is then combined with the allowable charging current, feedback correction current, and feedforward compensation current to achieve real-time compensation and correction for load shunting and equipment deviation.

Benefits of technology

Under the dual influence of load shunting and charging equipment output deviation, it ensures that the actual charging current of the battery accurately tracks its allowable charging current, improves charging efficiency, prevents overcharging risks, and guarantees the stability and safety of the charging system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123074079A_ABST
    Figure CN123074079A_ABST
Patent Text Reader

Abstract

This application proposes a method, device, medium, and program product for controlling battery charging request current, relating to the field of charging control technology. The method includes: in response to detecting a connection between the battery and a charging device, acquiring the battery's allowable charging current and actual charging current under the current operating conditions; determining the current deviation based on the allowable charging current and actual charging current, and generating a feedback correction current based on the current deviation; acquiring power request information from the load device, and generating a feedforward compensation current based on the power request information; superimposing the allowable charging current, feedback correction current, and feedforward compensation current to obtain a target request current; and performing rate limiting processing on the target request current to obtain a final request current and sending it to the charging device, so that the charging device outputs a charging current based on the final request current. This scheme can ensure that the actual battery charging current accurately tracks its allowable charging current under the dual influence of load shunting and charging device output deviation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charging control technology, and more specifically, to a method, device, medium, and program product for controlling battery charging request current. Background Technology

[0002] With the increasing demand for fast charging from various electrical devices, DC fast charging has become an important method for battery charging. Taking electric vehicles as an example, during DC fast charging, the battery management system controls the output of the charging equipment based on the requested current. The current output by the charging equipment is distributed to the battery pack and load equipment via the bus. The load equipment (such as the thermal management system, air compressor, DC converter, and other high-voltage load equipment in the vehicle) consumes some current, so the actual charging current at the battery end is usually less than the output current of the charging equipment.

[0003] Currently, battery management systems typically send the requested current to the charging equipment directly using the battery's maximum permissible charging current under the current operating conditions. However, load shunting can cause the actual current to fall below the permissible current, thus reducing charging efficiency. Furthermore, due to the control precision and detection errors of the charging equipment, its actual output may deviate from the requested value, resulting in the actual current exceeding the permissible upper limit and posing an overcharge risk.

[0004] Therefore, how to ensure that the actual charging current of the battery can accurately track its allowable charging current under the dual influence of load shunting and output deviation of charging equipment has become a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0005] The purpose of this application is to provide a method, device, medium, and program product for controlling the battery charging request current, which can enable the actual charging current of the battery to accurately track its allowable charging current under the dual influence of load shunting and output deviation of charging equipment.

[0006] This application is implemented as follows: In a first aspect, this application provides a method for controlling the battery charging request current, wherein a load device is connected in parallel to the battery, and when the battery is connected to the charging device, the charging current output by the charging device is distributed between the battery and the load device. The control method includes: in response to detecting that the battery is connected to the charging device, acquiring the allowable charging current and the actual charging current of the battery under the current operating conditions; determining the current deviation based on the allowable charging current and the actual charging current, and generating a feedback correction current based on the current deviation; acquiring the power request information of the load device, and generating a feedforward compensation current based on the power request information; superimposing the allowable charging current, the feedback correction current and the feedforward compensation current to obtain the target request current; performing rate limiting processing on the target request current to obtain the final request current and sending it to the charging device, so that the charging device outputs the charging current according to the final request current.

[0007] In some implementations, obtaining the battery's allowable charging current under the current operating conditions includes: obtaining the battery's state of charge, temperature, and health status; and querying a preset charging characteristic mapping table based on the state of charge, temperature, and health status to obtain the allowable charging current.

[0008] In some implementations, the feedback correction current is generated based on the current deviation, including: determining the adaptive dead zone range based on the absolute value of the current deviation and the preset dead zone parameter; when the absolute value of the current deviation exceeds the adaptive dead zone range, calculating the adaptive integration step size based on the current deviation and the preset step size coefficient; and updating the feedback correction current of the previous cycle based on the adaptive integration step size when the preset integration update condition is met, so as to obtain the feedback correction current of the current cycle.

[0009] In some implementations, the preset integral update conditions include: when the current deviation indicates that the actual charging current is less than the allowable charging current, positive integral update is allowed under the condition that the output current of the charging device is in a stable state and the charging device has not reached its output limit; negative integral update is allowed when the current deviation indicates that the actual charging current is greater than the allowable charging current.

[0010] In some implementations, the adaptive dead-time range is dynamically adjusted according to the following formula: ;in, To adapt to the dead zone range, These are the basic dead zone parameters; For adaptive adjustment coefficient, This is the current deviation.

[0011] In some implementations, the adaptive integration step size is calculated according to the following formula: ;in, For adaptive integration step size, This is the step size adjustment coefficient. For the minimum integration step size, For the maximum integration step size, To be The value is limited to and Functions between.

[0012] In some implementations, the control method further includes: when the current deviation is negative and its absolute value is greater than a preset overcharge threshold, and continues for a preset duration, the feedback correction current and feedforward compensation current are cleared to zero.

[0013] In some implementations, after obtaining the feedback correction current for the current cycle, the method further includes limiting the feedback correction current for the current cycle to a preset current limit range.

[0014] In some implementations, generating a feedforward compensation current based on power request information includes: determining the load power based on the power request information; when the load power is higher than a first preset threshold, converting the load power into a load current based on the current battery voltage; filtering the load current to generate a feedforward compensation current; and keeping the feedforward compensation current constant until the next event occurs where the load power is higher than the first preset threshold.

[0015] In some implementations, the load current is filtered to generate a feedforward compensation current, including: using a first-order low-pass filter to filter the load current, wherein the filter coefficients of the first-order low-pass filter are configured such that the slope of the feedforward compensation current changes matches the upper limit of the current ramp rate of the final requested current.

[0016] In some implementations, the control method further includes: when the load power is detected to be lower than a second preset threshold, the feedforward compensation current is cleared to zero.

[0017] In some implementations, the allowed charging current, feedback correction current, and feedforward compensation current are superimposed to obtain the target requested current. This includes: when the connection duration between the battery and the charging device is less than a preset delay threshold, the feedback correction current is set to zero, and the allowed charging current and feedforward compensation current are superimposed to obtain the target requested current; when the connection duration is greater than or equal to the preset delay threshold, the allowed charging current, feedback correction current, and feedforward compensation current are superimposed to obtain the target requested current.

[0018] In some implementations, rate limiting is applied to the target requested current, including: limiting the rise rate of the target requested current to no more than a preset upper limit for the current rise rate; and limiting the fall rate of the target requested current to no more than a preset upper limit for the current fall rate, wherein the upper limit for the current fall rate is greater than the upper limit for the current rise rate.

[0019] In a second aspect, this application provides an electronic device including a memory for storing one or more programs; a processor; and, when the one or more programs are executed by the processor, implementing the method as described in any one of the first aspects above.

[0020] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of the first aspects above.

[0021] Fourthly, this application provides a computer program product including computer program instructions that, when executed by a processor, implement the method as described in any one of the first aspects above.

[0022] Compared with the prior art, this application has at least the following advantages or beneficial effects: This application utilizes feedforward compensation current to pre-compensate for load shunting and feedback correction current to continuously correct system deviations. This ensures that, under the dual influence of load shunting and charging equipment output deviations, the final requested current fully reflects the load consumption demand and system deviation correction requirements. This allows the actual battery charging current, after being distributed to the battery, to accurately track the allowable charging current, improving charging efficiency while ensuring battery safety. Simultaneously, rate limiting constrains the rate of change of the target requested current, preventing abrupt jumps or drastic fluctuations in the requested current. This prevents output oscillations in the charging equipment or current surges to the power grid, ensuring the stable operation of the charging system. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of an embodiment of a battery charging request current control method according to this application; Figure 2 This is a topology diagram of the dynamic adjustment of fast charging request current of a vehicle DC charging system in one embodiment of this application; Figure 3 A flowchart of yet another embodiment of a battery charging request current control method according to this application; Figure 4 This application provides a structural block diagram of an electronic device.

[0025] Icons: 201, Processor; 202, Memory; 203, Communication Interface. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. It should be understood that this application is not limited to the exemplary embodiments described herein.

[0027] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0028] In existing technologies, battery management systems typically send the requested current to the charging device directly using the battery's maximum permissible charging current under current operating conditions. However, because the output current of the charging device needs to be distributed between the battery and the load devices—for example, in electric vehicles—on-board load devices (such as thermal management systems, air compressors, DC-DC converters, etc.) continuously consume current during charging, the actual current flowing into the battery is inevitably less than the requested current. Furthermore, inherent control precision deviations and current detection errors in the charging device itself can cause its actual output current to deviate from the requested current value. When the deviation is positive, the actual current flowing into the battery will further exceed the permissible limit, leading to overcharging risks. Therefore, generating the requested current solely based on the battery's own state cannot address the dual impact of load shunting and charging device output deviations on the actual charging current.

[0029] Based on the above analysis, this application provides a method for controlling the battery charging request current. After the battery is connected to the charging device, it simultaneously acquires the feedback quantity from the battery side and the feedforward quantity from the load side, and integrates these two quantities with the battery's allowable charging current to generate the final request current. This coordinated approach of feedforward and feedback enables the charging current output by the charging device to take into account both load shunt compensation and deviation correction, ultimately ensuring that the actual charging current of the battery accurately tracks its allowable charging current.

[0030] After introducing the basic principles of this application, various non-limiting embodiments of this application will be described in detail below with reference to the accompanying drawings. Unless otherwise specified, the various embodiments and features described below can be combined with each other.

[0031] Please see Figure 1 The method for controlling the charging request current of a battery, wherein a load device is connected in parallel to the battery, and when the battery is connected to a charging device, the charging current output by the charging device is distributed between the battery and the load device, the control method includes the following steps: Step S101: In response to detecting that the battery is connected to the charging device, obtain the allowable charging current and actual charging current of the battery under the current operating conditions.

[0032] It should be noted that step S101 is the starting point of the entire control method. Its trigger condition is the detection of a physical connection established between the battery and the charging device, indicating that the battery has entered a charging state. Once this condition is met, the Battery Management System (BMS) begins data acquisition. On one hand, the BMS acquires the battery's allowable charging current under the current operating conditions. This allowable charging current is the maximum charging current the battery can safely withstand in the current state; its physical meaning is the safety constraint boundary for charging control. It is typically dynamically calculated or determined by the BMS based on parameters such as the battery's real-time State of Charge (SOC), temperature, and State of Health (SOH). On the other hand, the BMS also acquires the actual charging current at the battery terminal. This actual charging current is obtained in real-time through current sensors (such as Hall sensors or shunts), reflecting the instantaneous current value actually flowing into the battery pack at the current moment.

[0033] Please continue reading. Figure 1 Step S102: Determine the current deviation based on the allowable charging current and the actual charging current, and generate a feedback correction current based on the current deviation.

[0034] It should be noted that the sign of the current deviation reflects the direction of the deviation of the actual charging current from the allowable charging current: when the current deviation is positive, it means that the actual charging current is less than the allowable charging current, and the battery is currently undercharged; when the current deviation is negative, it means that the actual charging current is greater than the allowable charging current, and the battery is currently overcharged; when the current deviation is zero, it means that the actual charging current is consistent with the allowable charging current.

[0035] Furthermore, the feedback correction current, as a control variable generated by the feedback path in the battery management system, has the basic function of applying a correction based on the allowable charging current to compensate for various deviations and disturbances that occur during operation. These deviations and disturbances originate from, but are not limited to: control accuracy deviations between the charging device's output current and the requested current, measurement errors in the current sensing circuit, communication delays between the charging device and the battery, and various unmeasurable losses within the battery management system (such as cable resistance loss and connector contact resistance loss). The generation of the feedback correction current allows the battery management system to infer and eliminate these sources of interference from the deviation between the actual current and the target current, without relying on precise modeling and measurement of these sources.

[0036] In other words, step S102 effectively eliminates the impact of unmeasurable factors such as charging device output deviation, detection error, and communication delay on the accuracy of the charging current by sensing the deviation between the actual charging current and the allowable charging current in real time and actively generating a correction amount accordingly. For example, when the actual output of the charging device exceeds the requested value due to control accuracy issues, the actual charging current will increase accordingly. The feedback correction current generated in step S102 can adjust in the opposite direction to suppress this deviation, preventing the actual current from exceeding the allowable upper limit and causing overcharging risk. Conversely, when the output of the charging device is too low, the feedback correction current can compensate in the positive direction to approach the allowable value. This bidirectional adjustment capability significantly improves the control accuracy of the charging current.

[0037] Please continue reading. Figure 1 Step S103: Obtain the power request information of the load device and generate the feedforward compensation current based on the power request information.

[0038] Step S103 is executed in parallel with step S104, belonging to the feedforward path in the control flow. It should be noted that in the technical solution of this application, the battery is connected in parallel with a load device. The charging current output by the charging device is distributed between the battery and the load device. Therefore, the current consumed by the load device during charging is directly diverted from the total current output by the charging device, making the actual current flowing into the battery less than the output current of the charging device. The power request information of the load device reflects the expected power consumption of the load device at the current moment and is a predictive indication of the amount of current that the load device will divert from the output current of the charging device.

[0039] Step S103 generates a feedforward compensation current based on the power request information by converting the power dimension to the current dimension. This feedforward compensation current is a forward estimate of the current that the load device will consume. Its physical meaning is that, in order for the battery to actually receive the desired charging current, an additional current equal to the load's current consumption needs to be added to the output of the charging device. This feedforward compensation current, as a forward control variable, is calculated and injected into the control loop before the load device actually begins consuming current, thus anticipating the actual impact of load current shunting in time.

[0040] In other words, step S103 introduces a feedforward compensation mechanism based on load power requests, enabling the battery management system to proactively predict and respond in advance. Compared to methods relying solely on feedback control, step S103 can pre-increase the requested current before the load device switches in and begins consuming current, thereby offsetting the current loss caused by load shunting. This pre-compensation mechanism effectively avoids the inherent lag problem of "deviation occurring first and then correction" in pure feedback control, allowing the actual battery charging current to reach the allowable charging current value more quickly. Especially in scenarios with high load device power or frequent load changes, feedforward compensation can significantly shorten the transition time of current regulation, thereby improving overall charging efficiency.

[0041] Please continue reading. Figure 1 Step S104: The allowed charging current, feedback correction current and feedforward compensation current are superimposed to obtain the target requested current.

[0042] Step S104 algebraically superimposes the three current quantities—the allowable charging current obtained in step S101, the feedback correction current generated in step S102, and the feedforward compensation current generated in step S103—to obtain the target requested current. In this superposition operation, each of the three current quantities plays a different functional role: the allowable charging current, as the basic control target, determines the baseline level of the charging current; the feedforward compensation current, as a fast response component, is responsible for compensating for the impact of the measurable disturbance of load shunting, and its role is proactive; the feedback correction current, as a fine-tuning component, is responsible for eliminating residual errors remaining after feedforward compensation and the impact of various unmeasurable disturbances, and its role is continuous. The three are functionally integrated through algebraic superposition to form a unified, comprehensive target requested current. This target requested current reflects the requested current value that the charging device should respond to in the current control cycle to simultaneously meet the battery allowable current tracking requirement, the load shunting compensation requirement, and the system deviation correction requirement. This enables the battery management system to ensure that the target requested current meets both the performance requirements of speed and accuracy under the dual influence of load shunting and device output deviation.

[0043] Please continue reading. Figure 1 Step S105: Perform rate limiting processing on the target requested current to obtain the final requested current and send it to the charging device so that the charging device outputs charging current according to the final requested current.

[0044] It should be noted that the so-called rate limiting processing refers to limiting the change of the target requested current within a unit of time to not exceed a preset upper limit value. For example, this rate limiting operation can use the difference between the target requested current of the current control cycle and the final requested current of the previous control cycle as the judgment object. If the difference exceeds the preset rate upper limit, the final requested current of the current cycle is limited to the final requested current of the previous cycle plus or minus the rate upper limit value; if the difference does not exceed the rate upper limit, the target requested current is directly used as the final requested current.

[0045] In step S105, a rate limiting mechanism is introduced to prevent abrupt changes or excessively large instantaneous fluctuations in the target requested current. This not only prevents drastic changes in the requested current from causing oscillations or overshoots in the charging equipment's output current, thus ensuring the stability of the charging equipment itself, but also avoids sudden changes in the requested current from causing current surges in the power grid, reducing the adverse impact of the charging process on the power quality of the grid.

[0046] In summary, this application introduces two adjustment parameters—feedback correction and feedforward compensation—which, together with the allowable charging current, generate the target requested current. This allows for proactive correction when the actual battery charging current deviates from the target value, and preemptive compensation when the load device consumes current. This method of preemptively offsetting the load current shunting effect through feedforward compensation avoids the lag caused by waiting for deviations to occur before adjustment, while simultaneously eliminating residual errors and device deviations through feedback correction. This ensures that the actual battery charging current accurately tracks its allowable charging current, improving charging efficiency while ensuring safety.

[0047] Based on the aforementioned scheme, in some implementations of this application, obtaining the allowable charging current of the battery under the current operating conditions includes: obtaining the battery's state of charge, temperature, and health status; and querying a preset charging characteristic mapping table based on the state of charge, temperature, and health status to obtain the allowable charging current.

[0048] It should be noted that state of charge reflects the battery's remaining capacity, temperature reflects the battery's electrochemical activity environment, and health reflects the battery's aging degree. The battery management system takes these three parameters as input and searches for a match in a pre-generated charging characteristic mapping table calibrated through extensive experiments to obtain the allowable charging current value uniquely corresponding to the current operating conditions. This allowable charging current is the maximum charging current that the battery can safely withstand under the current conditions, and is subsequently used to calculate the deviation from the actual charging current in subsequent steps. This implementation method, by introducing a pre-set charging characteristic mapping table to determine the allowable charging current, allows this benchmark value to be dynamically updated according to real-time changes in the battery's state of charge, temperature, and health, avoiding the insufficient adaptability problems caused by using a fixed current value.

[0049] Based on the aforementioned scheme, in some implementations of this application, generating a feedback correction current based on the current deviation includes: determining an adaptive dead zone range based on the absolute value of the current deviation and a preset dead zone parameter; when the absolute value of the current deviation exceeds the adaptive dead zone range, calculating an adaptive integration step size based on the current deviation and a preset step size coefficient; and updating the feedback correction current of the previous cycle based on the adaptive integration step size when the preset integration update condition is met, thereby obtaining the feedback correction current of the current cycle.

[0050] Understandably, the adaptive dead zone acts as an adjustment "ignore zone." When the absolute value of the current deviation is within this range, the battery management system considers the deviation sufficiently small and does not trigger adjustment. Conversely, when the absolute value of the current deviation exceeds this adaptive dead zone, an adaptive integral step size is calculated based on the magnitude of the current deviation and a preset step size adjustment coefficient. Afterward, it is determined whether the preset integral update conditions are met. Only when the conditions are met is the feedback correction current from the previous control cycle updated based on this adaptive integral step size, thus obtaining the feedback correction current for the current cycle.

[0051] In other words, this implementation effectively avoids frequent adjustments of the feedback correction current caused by sampling noise or small current fluctuations through an adaptive dead-time mechanism, ensuring the stability of the entire closed-loop control system, with the battery management system as the core controller and the charging current as the controlled variable, in steady state. Simultaneously, the adaptive integral step size allows for faster adjustment when the current deviation is large and more precise adjustment when the deviation is small, balancing dynamic response speed and steady-state accuracy. Furthermore, the introduction of integral update conditions prevents the feedback correction current from continuing to accumulate ineffectively when the charging equipment has reached its physical output limit, avoiding the overcharging risk that may arise when the load decreases or the allowable current is reduced.

[0052] Based on the aforementioned scheme, in some implementations of this application, the preset integral update conditions include: when the current deviation indicates that the actual charging current is less than the allowable charging current, positive integral update is allowed under the condition that the output current of the charging device is in a stable state and the charging device has not reached its output limit; negative integral update is allowed when the current deviation indicates that the actual charging current is greater than the allowable charging current.

[0053] This implementation sets differentiated integral update conditions based on the different directions of current deviation. It cautiously increases the feedback correction current in an undercharged state and allows rapid reduction in an overcharged state, reflecting a safety-first control logic. Specifically, the preset integral update conditions fall into two scenarios. The first scenario is when the current deviation indicates the actual charging current is less than the allowable charging current, indicating the battery is currently undercharged. In this case, the feedback correction current needs to be increased to compensate for the shortfall. However, before allowing positive integral updates, the battery management system must simultaneously meet two preconditions: the charging device's output current is in a stable state, and the charging device has not yet reached its physical output limit. The second scenario is when the current deviation indicates the actual charging current is greater than the allowable charging current, indicating the battery is currently overcharged. In this case, the battery management system allows direct negative integral updates, i.e., reducing the feedback correction current, without being restricted by the aforementioned stable state and output limit conditions.

[0054] In other words, this implementation effectively avoids blindly increasing the requested current when the charging device experiences transient fluctuations or has reached its physical limits by setting dual judgment conditions for output stability and output limits in undercharging scenarios. This prevents overcharging risks that may arise when the load decreases or the allowable current is reduced. In overcharging scenarios, the above restrictions are removed, allowing the feedback correction current to be quickly reduced without delay, prioritizing battery safety. This differentiated design balances adjustment effectiveness with safe response speed.

[0055] Based on the aforementioned scheme, in some implementations of this application, the adaptive dead-time range is dynamically adjusted according to the following formula: ;in, To adapt to the dead zone range, These are the basic dead zone parameters; For adaptive adjustment coefficient, This is the current deviation.

[0056] This implementation uses a dynamic adjustment formula to automatically adapt the adaptive dead zone range to the current deviation: when the deviation is large, the adaptive dead zone range is widened to avoid frequent adjustments that could cause system oscillations; when the deviation is small, the dead zone is narrowed to ensure steady-state accuracy, thus balancing system stability and control accuracy.

[0057] Based on the aforementioned scheme, in some implementations of this application, the adaptive integration step size is calculated according to the following formula: ;in, For adaptive integration step size, This is the step size adjustment coefficient. For the minimum integration step size, For the maximum integration step size, To be The value is limited to and Functions between.

[0058] This implementation uses a formula that maps current deviation to an integral step size, allowing the adjustment amplitude to automatically adapt to the magnitude of the deviation. Simultaneously, upper and lower limit constraints ensure the adjustment step size remains within a reasonable range. In other words, this implementation establishes a positive correlation between the adjustment step size and the magnitude of the current deviation through this formula: large deviations result in large, rapid adjustments to shorten the adjustment time, while small deviations result in small, precise adjustments to avoid overshoot. Furthermore, through… and The dual limiting mechanism prevents slow adjustment due to excessively small step sizes, while also preventing system oscillations caused by excessively large step sizes, thus achieving a balance between response speed and system stability.

[0059] Based on the aforementioned scheme, in some implementations of this application, the control method further includes: when the current deviation is negative and its absolute value is greater than the preset overcharge threshold, and continues for a preset duration, the feedback correction current and feedforward compensation current are cleared to zero.

[0060] It's important to note that the battery management system (BMS) monitors the current deviation in real time, both in magnitude and duration. A negative current deviation indicates that the actual charging current exceeds the allowable charging current, meaning the battery is overcharged. In this case, the BMS further determines whether the absolute value of the current deviation exceeds a preset overcharge threshold and whether this state persists for a preset duration. Only when both conditions are met—meaning the overcharge is severe enough and not a transient fluctuation—will the BMS perform a zeroing operation, setting both the previously generated feedback correction current and feedforward compensation current to zero.

[0061] Thus, this implementation, through its rapid and safe response mechanism, can decisively cut off all compensation quantities under extreme overcharge conditions, causing the requested current to quickly drop back to the allowable charging current level. This effectively suppresses the risk of severe overcharging and avoids damage to battery life and system safety caused by overcharging. Simultaneously, the duration-based judgment condition prevents accidental zeroing due to instantaneous noise or minor fluctuations, balancing safety and stability.

[0062] Based on the aforementioned scheme, in some implementations of this application, after obtaining the feedback correction current of the current cycle, the method further includes: limiting the feedback correction current of the current cycle to a preset current limit range.

[0063] In this implementation, after calculating the feedback correction current for the current cycle, the battery management system further performs a limiting operation. This limiting operation compares the feedback correction current for the current cycle with a preset current limiting range. If the value of the feedback correction current is within the limiting range, it remains unchanged; if the feedback correction current exceeds the upper or lower limit of the limiting range, it is forcibly limited to the corresponding boundary value. Only the feedback correction current obtained after this limiting process is used for subsequent superposition with the allowable charging current and feedforward compensation current. This effectively prevents the feedback correction current from excessively increasing or decreasing due to integral accumulation, abnormal disturbances, or extreme operating conditions, thereby avoiding extreme values ​​of the target requested current exceeding reasonable ranges. This ensures the stability of the charging device's output current and the safety of the battery, and enhances the fault tolerance capability of the battery management system under abnormal conditions.

[0064] Based on the aforementioned scheme, in some implementations of this application, generating a feedforward compensation current according to power request information includes: determining the load power according to the power request information; when the load power is higher than a first preset threshold, converting the load power into a load current according to the current voltage of the battery; filtering the load current to generate a feedforward compensation current; and keeping the feedforward compensation current constant until the next event of the load power being higher than the first preset threshold occurs.

[0065] Understandably, this implementation achieves a balance between rapidly compensating for load shunting and maintaining system stability by calculating and locking a filtered feedforward compensation current when a large load is switched on, and keeping the compensation value constant between two large load events.

[0066] Specifically, the battery management system (BMS) first determines the specific value of the load power based on the power request information from the load device. Then, the BMS checks if the load power exceeds a pre-set first threshold. Only when the load power exceeds this first threshold is it considered a valid large load initiation event, triggering subsequent feedforward compensation calculations. After triggering, the BMS converts the load power into load current based on the battery's current voltage, using the power-to-current conversion relationship. Next, it performs filtering on this load current to suppress potential current jumps during load initiation, generating a smooth feedforward compensation current. After generating this feedforward compensation current, the BMS keeps it constant until the next event occurs where the load power exceeds the first preset threshold again, at which point the feedforward compensation current is recalculated and updated.

[0067] In other words, this implementation avoids frequent triggering of feedforward compensation calculations when the load power fluctuates slightly by setting a first preset threshold as the trigger condition, thus reducing the computational burden and output fluctuations. Filtering makes the changes in the feedforward compensation current smoother, avoiding abrupt jumps in the requested current. The "one-time calculation, subsequent freeze" holding mechanism ensures that the feedforward compensation amount remains stable between two large load events, avoiding system oscillations caused by continuous competition between feedforward compensation and feedback correction, and enhancing the stability of the entire control system.

[0068] Based on the aforementioned scheme, in some implementations of this application, the load current is filtered to generate a feedforward compensation current, including: using a first-order low-pass filter to filter the load current, wherein the filter coefficients of the first-order low-pass filter are configured to match the slope of the feedforward compensation current change with the upper limit of the current rise rate of the final requested current.

[0069] Understandably, this implementation uses a first-order low-pass filter to smooth the load current and configures the filter coefficient to match the upper limit of the current boost rate, so that the rate of change of the feedforward compensation current is controlled and coordinated with the subsequent rate limiting stage.

[0070] The discretized recursive calculation formula for the first-order low-pass filter is as follows:

[0071] In the formula: This is the filtered feedforward compensation current at the current sampling time. The current value is the raw current value based on the load request at the current sampling time; This is the feedforward compensation output value after filtering at the above sampling time. These are the filter coefficients, tuned... This value allows the growth slope of the feedforward compensation amount to match the upper limit of the current rise rate of the subsequent rate limiting module.

[0072] Based on the aforementioned scheme, in some implementations of this application, the control method further includes: when the load power is detected to be lower than the second preset threshold, the feedforward compensation current is cleared to zero.

[0073] In this implementation, when the detected load power is lower than a pre-set second threshold, the battery management system determines that the current load device has either exited or significantly reduced its power consumption, and the feedforward compensation current previously generated to offset the load shunting is no longer needed. At this point, the battery management system directly clears the currently maintained feedforward compensation current to zero. This avoids the overcompensation problem caused by the feedforward compensation continuing after the load is disconnected, preventing the actual charging current from exceeding the allowable charging current due to the retained, no longer needed compensation in the requested current, thus ensuring battery charging safety under load removal conditions.

[0074] It should be noted that the second preset threshold can be set to the same value as the aforementioned first preset threshold, or it can be set to a different value, so as to control the triggering and cancellation conditions of feedforward compensation respectively.

[0075] Based on the aforementioned scheme, in some implementations of this application, the allowed charging current, feedback correction current, and feedforward compensation current are superimposed to obtain the target requested current, including: when the connection duration between the battery and the charging device is less than a preset delay threshold, the feedback correction current is set to zero, and the allowed charging current and feedforward compensation current are superimposed to obtain the target requested current; when the connection duration is greater than or equal to the preset delay threshold, the allowed charging current, feedback correction current, and feedforward compensation current are superimposed to obtain the target requested current.

[0076] Understandably, this implementation introduces a time-sharing startup strategy, forcibly setting the feedback correction current to zero during the initial charging connection phase. The full superposition operation is then initiated only after the system reaches a steady state, thus avoiding instability that might be caused by feedback loop intervention during the startup transient phase. In other words, by delaying the intervention of the feedback loop during the initial charging startup phase, time is reserved for the establishment of the charging device's output response and current sampling stability, preventing erroneous feedback correction current operation caused by the charging device's output not yet being stable or the sampling data not yet being fully filled during the startup transient process.

[0077] Specifically, when the battery management system (BMS) superimposes the allowable charging current, feedback correction current, and feedforward compensation current to generate the target requested current, it selects different superposition methods based on the duration of the connection between the battery and the charging device. In the initial stage of the charging connection, i.e., when the connection duration is less than a preset delay threshold, the BMS forcibly sets the feedback correction current to zero. At this time, only the allowable charging current and the feedforward compensation current are superimposed to obtain the target requested current. Only when the connection duration reaches or exceeds the preset delay threshold does the BMS incorporate the feedback correction current into the superposition calculation, thus superimposing the allowable charging current, feedback correction current, and feedforward compensation current to obtain the target requested current.

[0078] Based on the aforementioned scheme, in some implementations of this application, the target requested current is rate-limited, including: limiting the rise rate of the target requested current to not exceed a preset upper limit of the current rise rate, that is, the increase in current per unit time shall not exceed a preset upper limit of the current rise rate; limiting the fall rate of the target requested current to not exceed a preset upper limit of the current fall rate, that is, the decrease in current per unit time shall not exceed a preset upper limit of the current fall rate; the upper limit of the current fall rate is greater than the upper limit of the current rise rate, that is, the current fall rate is allowed to be faster than the rise rate.

[0079] This implementation imposes different limits on the rise and fall rates of the target requested current, ensuring a gradual increase in current and a rapid decrease in current, reflecting a safety-first control logic. Specifically, a gentler rate limit can be used in the current-increasing direction to avoid sudden changes in charging current impacting charging equipment and the power grid; a faster rate limit is used in the current-decreasing direction to ensure that the requested current can decrease rapidly to protect battery safety when overcharging risk is detected or rapid withdrawal is required. This "gradual rise and rapid fall" design balances system stability and safety response speed.

[0080] To enable those skilled in the art to more intuitively understand this application, a specific example will be provided below. This example is an exemplary demonstration combining the overall technical paradigm of this application with some optional implementation details. It should be noted that the following demonstration is intended to aid understanding and does not constitute an exhaustive list of all embodiments of this application, nor does it imply that this application must include all the details described below in its specific implementation.

[0081] This example uses the battery management system of an electric vehicle to control the fast charging request current. It aims to achieve precise tracking and control of the actual battery charging current to the charging request current under conditions of vehicle load shunting, charging pile output deviation (in this example, the charging device is a charging pile), and complex operating conditions, thereby improving charging efficiency and system stability while ensuring safety. In other words, the control system in this example falls under the charging management scope of the electric vehicle's battery management system. The topology diagram for the dynamic adjustment of the fast charging request current in the vehicle's DC charging system is shown below. Figure 2 As shown, it mainly includes the following functional modules, each of which corresponds to the specific steps in the "Data Processing Flow in this Example" section below: 1. State of Charge (SOC) estimation module: Based on the ampere-hour integration method, it calculates the battery's SOC in real time by collecting the battery pack current; 2. Allowable Current Module: Based on SOC, temperature, and health status, the module obtains the maximum allowable charging current of the battery under the current operating conditions through a preset charging characteristic mapping table. This current serves as a safety constraint boundary for charging control; 3. Current Acquisition Module: Acquires the actual charging current at the battery terminal through a current sensor (such as a Hall sensor or shunt), denoted as... , as feedback control input; 4. Feedforward Compensation Module: Used to collect relevant information about the load equipment (related information about the high-voltage load of the vehicle, such as load power or current), and generate feedforward compensation current based on load changes. To offset the impact of load shunt on battery charging current; 5. Feedback control module: calculates current error. By using an adaptive dead-zone integration algorithm, based on current deviation Calculate feedback correction current It is used to compensate for feedforward errors and unmeasurable disturbances in the battery management system, and to embed a fast safety response mechanism; 6. Control Fusion Module: Allows charging current Feedforward compensation current Feedback correction current Perform algebraic superposition and consider time-sharing startup to generate the target requested current. ; 7. Rate limiting module: for Apply asymmetric rate limits, current rise rate limits, and current fall rate limits to generate the final requested current. ; 8. Communication module: Connects via charging protocol Send the data to the charging equipment (charging station) to enable charging control.

[0082] In this example, the relationships between the currents and the control objective are as follows: Reference Figure 2 , Figure 2 The diagram illustrates the dynamic adjustment topology of the fast charging request current in a vehicle's DC charging system. Under normal operating conditions, the output current of the charging equipment (charging pile) needs to accurately track the requested current as much as possible.

[0083] During charging, the output current of the charging equipment (charging pile) enters the vehicle's high-voltage busbar and is split into two parts at the busbar nodes: one part flows into the battery to form the battery charging current, and the other part is consumed by the load equipment. The current flow direction satisfies the following relationship:

[0084] In the formula: The output current of the charging equipment (charging pile) is the total current that the charging equipment (charging pile) outputs to the busbar according to the final requested current. The actual current flowing into the battery, that is, the current flowing into the battery as measured by the sensor, is the input quantity for feedback control. The current consumed by the load device is the actual current consumed by the load device, such as the actual current consumed by the thermal management system, air conditioner, DC-DC converter, etc. The final requested current is the control request current output to the charging equipment (charging pile) after the target requested current has been rate-limited.

[0085] To achieve precise regulation of the battery charging current, the allowable charging current is used as the control target, and the actual battery charging current is used as the feedback quantity. Feedforward compensation is used to quickly offset measurable load disturbances, and feedback control is used to correct residual errors and unmeasurable disturbances. Simultaneously, an asymmetric rate limiting mechanism is introduced to constrain the requested current, thus constructing a composite control structure with fast response and high steady-state accuracy. This achieves the control target of the actual battery charging current approximating the allowable charging current as closely as possible. That is, the following formula is implemented:

[0086] In the formula: To allow charging current, the battery management system determines the current based on the battery's SOC and temperature. ) and health status ( The maximum allowable charging current obtained from the table is... This refers to the safety constraint boundaries for charging control.

[0087] To achieve this goal, the output current of the charging equipment (charging pile) needs to meet the following requirements:

[0088] In the formula: The current consumption request value for the load device, that is, the estimated current consumption request value of the load device, such as the estimated current consumption request value of thermal management system, air conditioner, DC-DC, etc.

[0089] Due to load current Due to the difficulty in achieving completely accurate measurement and the presence of various unmeasurable losses in the battery management system, this application employs a feedforward-feedback composite control method for regulation. Under the premise of ensuring safety constraints, it achieves smooth output of the requested current and efficient charging control. Based on the above objectives, this application proposes a control method for battery charging request current. This method adopts a multi-closed-loop control architecture combining feedforward compensation and feedback regulation, and its core control relationship is as follows:

[0090] In the formula: The target requested current is a target value formed by the superposition of the allowable charging current, the feedforward compensation current, and the feedback correction current. Feedforward compensation current, the compensation amount obtained based on the load power request, is used to offset measurable load disturbances, denoted as... ; Feedback correction current is a correction amount generated based on the current error, used to compensate for feedforward residuals and unmeasurable disturbances.

[0091] The data processing flow in this example specifically includes: 1. Overview of Data Processing Flow The technical solution in this example is essentially a data processing flow that executes cyclically with a control cycle of T=100ms. Starting from the current SOC of the battery, it sequentially goes through seven steps: allowed charging current lookup, actual charging current acquisition, feedforward compensation calculation, feedback correction of current error, collaborative control fusion, and asymmetric rate limiting (corresponding to the seven core functional modules in the overall system architecture). Finally, it generates the final request current command issued to the charging equipment (charging pile) in this cycle. This is used to calculate the SOC for the next cycle, forming a complete closed loop. The data transfer relationship between each step is: SOC(k) → → ( and The error is calculated, and the driver is activated. ) → ( , , Algebraic superposition → (obtained through rate limiting) → (Issuance of charging piles, at the same time) Send back and update the SOC for the next cycle. Figure 3 The following is a detailed execution logic diagram of the process, which will be explained in the order of the seven functional modules, including the processing object, processing method, processing result and the reason for each step.

[0092] 2. Detailed Explanation of Step-by-Step Data Processing (1) Step 1: Processing involving the state of charge estimation module Input data: Sampled values ​​from the battery pack current sensor; Solution: Calculate the battery's state of charge (SOC) in real time using the ampere-hour integration method; Output data: Current SOC, serving as the starting point of the control chain, is input to step two; Reasons for adoption and expected effects: SOC is the core characterization quantity of battery state of charge, which provides the necessary basis for the next step of looking up the table to obtain the allowable charging current. It is the starting state quantity of the data processing flow of this application.

[0093] (2) Step 2: Processing that allows the current module to participate Input data: SOC output from step one, and battery temperature (Temp) and battery health status (SOH) collected by the temperature sensor; Solution: Based on SOC, temperature, and health status, obtain the maximum allowable charging current of the battery under the current operating conditions using a preset charging characteristic mapping table. ,Right now = f(SOC, Temp, SOH), where the current serves as the safety constraint boundary for charging control; Output data: As the safety constraint boundary and core control target benchmark for charging control, it is input to step five (error calculation) and step six (current collaborative control fusion). Reasons for adoption and expected results: The allowable charging current, which is determined by factors such as battery state of charge (SOC), temperature, and state of health (SOH), is usually obtained by offline calibration of the charging performance mapping relationship. Ideally, the actual charging current of the battery should be made as close as possible to this allowable current through control strategies.

[0094] (3) Step 3: Processing involving the current acquisition module Input data: The battery-side current sensor collects the raw current signal; Solution: Collect the actual charging current at the battery terminal using a current sensor, and record it as... ; Output data: As a feedback control input, it proceeds to step five (error calculation) and is used for the SOC update in the next cycle in step one; Reasons for adoption and expected results: It is the current flowing into the battery measured by the sensor, which is the input quantity for feedback control and a direct basis for judging the actual charging effect of the battery.

[0095] (4) Step 4: Processing involving the feedforward compensation module Input data: Load device related request information (such as load power or current), current battery voltage ; Solution: The feedforward compensation module is used for rapid response to large measurable loads, avoiding prolonged undercharging or discharging of the battery due to slow feedback adjustment response. Its specific implementation is as follows: 1) Load cut-in detection: The feedforward compensation module has a high response priority and executes from the charging start time (t=0s), regardless of the status of the feedback module. When the load power is detected to be higher than the first threshold, it is determined as a large load cut-in event, triggering the feedforward module to work.

[0096] 2) Feedforward compensation calculation: The feedforward compensation current is used to offset the effect of load current shunting, based on the current battery voltage. Convert load power into current form:

[0097] 3) Load Signal Filtering: To suppress the current jump at the moment the load switches in and avoid a step jump in the requested current, this example uses a first-order low-pass filter to smooth the original load current estimate. The discretized recursive calculation formula is as follows:

[0098] In the formula: This is the filtered feedforward compensation current at the current sampling time. The current value is the raw current value based on the load request at the current sampling time; This is the feedforward compensation output value after filtering at the above sampling time. These are the filter coefficients, tuned... This value allows the growth slope of the feedforward compensation amount to match the upper limit of the current rise rate of the subsequent rate limiting module.

[0099] 4) Feedforward freezing mechanism: Once the feedforward compensation amount is frozen... Once determined, this value remains unchanged until the next large load cut-off event occurs. During this period, even if the load fluctuates slightly, the feedforward compensation amount remains unchanged and is entirely handled by the feedback module. When load cut-off is detected (power drops below the threshold), It can be reset immediately. This avoids continuous competition between feedforward and feedback, ensuring system stability.

[0100] Output data: That is, the feedforward compensation current is input to step six (current collaborative control fusion). Reasons for adoption and expected effects: The feedforward compensation module is used to quickly respond to the input of measurable large loads, avoiding long-term undercharging or discharging of the battery due to slow feedback adjustment response; the "one-time addition, subsequent freezing" mechanism avoids continuous competition between feedforward and feedback, ensuring system stability.

[0101] (5) Step 5: Processing involving the feedback control module Input data: (Step Two) (Step 3), and internal state variables (k-1), I_req_out(k-1), multiple consecutive control cycles sequence; Handling Method: At the initial charging start-up or during system reset, the battery management system executes a time-sharing start-up strategy: Feedforward Independence—The feedforward compensation module has the highest response priority and executes immediately from the charging start-up moment (t=0s), unaffected by the feedback module's state; Feedback Delay Enable—The feedback control module sets the enable timer T_delay=2s. The feedback control module is used to eliminate residual errors after feedforward compensation and various unmeasurable disturbances (such as line loss, stray loss, unmeasurable load, and output deviation of charging equipment (charging pile), etc.). This example uses an adaptive dead-zone integral feedback control algorithm and embeds a fast and safe response mechanism, combining the smoothness of continuous adjustment with the safety of fast response. The logic is as follows: 1) Definition of allowable current deviation from actual charging current:

[0102] Ideally, there are three possible scenarios: when When the value is greater than 0, it indicates that the actual charging current is less than the allowable charging current, and the battery is in a low-charge state; when... When <0, it indicates that the actual charging current is greater than the allowable charging current, and the battery is in an overcharged state; when When =0, it means that the actual charging current is consistent with the allowable charging current.

[0103] 2) Adaptive Dead-Zone Mechanism: To prevent frequent adjustments due to sampling noise or small disturbances, an adaptive dead-zone is introduced. This mechanism allows the battery management system to reduce unnecessary adjustments when the error is small, ensuring steady-state accuracy; when the error is large, it automatically widens the dead-zone range to improve system stability. The dead-zone range is dynamically adjusted according to the error.

[0104] In the formula: The basic dead zone parameter (2A is used in this example); The adaptive adjustment coefficient is 0.2 / 10.

[0105] 3) Adaptive integration step size: When the absolute value of the current deviation exceeds the dead zone, the battery management system calculates the adaptive integration step size based on the error magnitude.

[0106] In the formula: (This scheme uses 0.5 / 10) as the step size adjustment coefficient; (This scheme uses 2A / 10) as the minimum integration step size; (This scheme uses 3A / 10) as the maximum integration step size; The function limits the step size to Within the specified range. This design allows for a larger adjustment step size and faster response as the error increases; at the same time, it limits the maximum step size to prevent overshoot caused by excessively large single adjustments.

[0107] 4) Feedback current update based on anti-integral saturation: Updating the feedback correction current requires consideration of two necessary conditions: "stability of the output current of the charging equipment (charging pile)" and "integral saturation".

[0108] 4.1 Stability of output current of charging equipment (charging pile): Feedback correction current in low-charging state. Before performing the current increase operation, it is necessary to determine the output current of the charging equipment (charging pile). Stability is only allowed after the charging equipment (charging pile) output response has entered a steady state; increasing the charging request current is permitted only after this state. Before performing a current reduction operation, downward adjustment is to mitigate the risk of overcharging and should be prioritized; stability testing is not required. The charging equipment (charging pile) output current is considered stable, and the stability flag FCCS_stable is set to true if any of the following conditions are met; otherwise, it is false: a) Static error judgment condition one: And it lasts for 3 seconds; b) Dynamic fluctuation judgment condition two: within 10 consecutive control cycles, And it lasts for 3 seconds.

[0109] 4.2 Prevention of integral saturation: To prevent feedback correction current When the charging equipment (charging pile) reaches its output physical limit, invalid accumulation occurs, requiring determination of the relationship between the requested current and the charging equipment (charging pile) terminal limit current. This example is being updated. The actuator status feedback determination logic is introduced earlier. The battery management system monitors the final requested current in real time. Maximum available current limit at the charging equipment (charging pile) terminal The relationship.

[0110] like (Infrequent charging scenarios): To prevent the feedback correction current from blindly increasing when the charging equipment (charging station) has reached its maximum output capacity, thereby avoiding issues when the load suddenly decreases or the allowable charging current is reduced. Carrying excessive compensation current can lead to severe battery overcharging. This is to prevent blindly increasing the requested current when the charging equipment (charging station) output is not yet stable or is in a state of fluctuation, which could cause severe battery overcharging.

[0111] When the positive saturation determination is false ( And the output current of the charging equipment (charging pile) is stable. If true, then permitted. Perform a positive integral update:

[0112] When the positive saturation determination is true ( ), or the stable output current conditions of charging equipment (charging pile) It is fake and not allowed. Positive Integral Update:

[0113] like (In overcharge scenarios), and without triggering a high-level fault to stop charging, the downward adjustment is not limited by the current stability conditions of the charging equipment (charging pile), ensuring that the battery management system can quickly reduce the current without delay when an overcharge risk occurs:

[0114] 5) Rapid Safety Response Mechanism: To further enhance safety under extreme transient conditions, a rapid safety response mechanism is embedded on top of the conventional adaptive integration. This mechanism has higher priority than conventional integration updates. This application addresses severe overcharge risk (high-level fault charging stoppage). And when the duration meets the target, immediately and All data was reset to zero. The overcurrent threshold is set at a high level. For undercharge conditions, the battery management system relies on feedforward compensation combined with conventional adaptive integral to achieve smooth recovery, without a fast response mechanism to prevent oscillations.

[0115] 6) Feedback Correction Current Limiting: To prevent excessive feedback correction current from causing runaway request current, the following limits are set: Perform amplitude limiting, and set the amplitude limiting range to [-20A, 20A].

[0116] Output data: That is, the feedback correction current is input to step six (current synthesis). Reasons for adoption and expected effects: The feedback control module is used to eliminate residual errors after feedforward compensation and various unmeasurable disturbances (such as line loss, stray loss, unmeasurable load and output deviation of charging equipment (charging pile), etc.). It adopts an adaptive dead zone integral feedback control algorithm and embeds a fast and safe response mechanism, which has both the smoothness of continuous adjustment and the safety of fast response.

[0117] (6) Step Six: Control the processing involved by the fusion module Input data: (Step Two) (Step 4) (Step 5); Solution: At the initial stage of charging or during system reset, a time-sharing start-up strategy is executed, and the allowed charging current, feedforward compensation current, and feedback correction current are algebraically superimposed through the fusion module to obtain the target requested current. This structure enables functional division of labor among different control links and has the following characteristics: Provides basic charging targets; Rapidly compensates for measurable loads; Correction for errors and unmeasurable disturbances. These three elements complement each other, enabling the battery management system to simultaneously possess rapid response capabilities and high steady-state accuracy. Different timing sequences can be categorized into two cases: 1) When the charging duration At that time, feedback correction current Forced to remain at 0, forcibly maintaining the initial state, is used to avoid the startup transient of charging equipment (charging pile) and to complete the initial filling of the stability determination array:

[0118] 2) When When the feedback control strategy activates closed-loop regulation, the collaborative module will allow the charging current, feedforward compensation current, and feedback correction current to be algebraically superimposed to obtain the target requested current.

[0119] Output data: Request the target current and input it to step seven; Reasons for adoption and expected results: The three control variables each perform their own functions and complement each other, enabling the battery management system to have both fast response capability (feedforward) and high steady-state accuracy (feedback).

[0120] (7) Step 7: Processing involving the rate limiting module Input data: (Step Six) Final Request Current of the Previous Control Cycle (k-1); Solution: To prevent rapid changes in the requested current from causing output oscillations in the charging equipment (charging pile) or grid impacts, the current ramp-up rate is capped. Smaller; while ensuring a rapid response in the event of overcharge risk, therefore This example introduces an asymmetric rate limiting mechanism: 1) Current ramp-up limit: Limits the rate of increase of the target requested current to not exceed the preset upper limit of the current ramp-up rate. ; 2) Current reduction limit: Limits the rate of decrease of the target requested current to not exceed the preset upper limit of the current reduction rate. .

[0121] Output data: (k), which is the final requested current, is sent to the charging equipment (charging pile) via the communication bus, and also serves as a historical reference for steps five and seven in the next cycle. (k-1); Reasons for adoption and expected effects: Asymmetric rate limiting takes into account both the requirements of "smooth flow rise and prevention of impact" and "rapid flow fall and safety assurance", reflecting the engineering principle of "safety first".

[0122] In summary, this example utilizes a load feedforward compensation mechanism to quickly compensate for the current consumed by the vehicle load, ensuring that the actual current flowing into the battery is close to the allowable current, significantly improving charging efficiency. Simultaneously, through adaptive dead-zone integral feedback control, it can detect and correct overcharging caused by charging pile output deviations, achieving bidirectional correction. The rapid safety response mechanism can clear the feedback correction current within 100ms, effectively suppressing the risk of severe overcharging and ensuring battery safety. Furthermore, this example fundamentally eliminates the reliance on precise load measurement, using only the deviation between the actual current at the battery terminal and the allowable current as the sole feedback quantity. Regardless of the magnitude of load measurement errors, or the difficulty in quantifying copper losses, iron losses, and stray losses, feedback control automatically eliminates their impact, achieving adaptive adjustment of "reducing over-consumption and compensating under-consumption." Moreover, through a parameter adaptive mechanism, this example can adaptively adjust the feedback control under extreme conditions such as ultra-low temperatures, high temperatures, high SOC, drastic load fluctuations, and abnormal charging pile conditions, maintaining system stability and control accuracy. For example, in ultra-low temperature charging scenarios, this example can prevent prolonged battery discharge, achieving dynamic optimal matching between load and battery capacity. Furthermore, compared with traditional PID control, the adaptive dead-zone integral feedback control algorithm used in this example has clear physical meanings for its parameters (dead zone, step size), does not require a complex tuning process, and is suitable for BMS embedded implementation.

[0123] Please see Figure 4 This application provides an electronic device including at least one processor 201 and at least one memory 202. The processor 201 and the memory 202 are directly connected to each other, or communicate with each other through a communication interface 203, or are electrically connected through one or more communication buses or signal lines to achieve data transmission or interaction. The memory 202 stores program instructions that can be executed by the processor 201. The processor 201 can call the program instructions to execute the program instructions to implement any of the battery charging request current control methods provided by the above-described various implementation methods.

[0124] The memory 202 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0125] The processor 201 can be an integrated circuit chip with signal processing capabilities. The processor 201 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0126] Understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.

[0127] This application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor 201, implements any of the battery charging request current control methods provided by the various implementations described above.

[0128] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor battery management systems, devices, or apparatuses, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0129] Furthermore, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, implement the steps of any of the battery charging request current control methods provided by the various implementations described above.

[0130] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0131] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this application. No reference numerals in the claims should be construed as limiting the scope of the claims.

Claims

1. A method for controlling the current requested for battery charging, characterized in that, The battery is connected in parallel with a load device. When the battery is connected to a charging device, the charging current output by the charging device is distributed between the battery and the load device. The control method includes: In response to detecting that the battery is connected to the charging device, the allowable charging current and actual charging current of the battery under the current operating conditions are obtained; Based on the allowable charging current and the actual charging current, the current deviation is determined, and a feedback correction current is generated based on the current deviation. Obtain the power request information of the load device, and generate a feedforward compensation current based on the power request information; The target requested current is obtained by superimposing the allowed charging current, the feedback correction current, and the feedforward compensation current. The target requested current is rate-limited to obtain the final requested current, which is then sent to the charging device so that the charging device outputs a charging current based on the final requested current.

2. The method for controlling the battery charging request current according to claim 1, characterized in that, The step of obtaining the allowable charging current of the battery under the current operating conditions includes: Obtain the state of charge, temperature, and health status of the battery; Based on the state of charge, the temperature, and the health status, a preset charging characteristic mapping table is consulted to obtain the allowable charging current.

3. The method for controlling the battery charging request current according to claim 1, characterized in that, The step of generating a feedback correction current based on the current deviation includes: The adaptive dead zone range is determined based on the absolute value of the current deviation and the preset dead zone parameter. When the absolute value of the current deviation exceeds the adaptive dead zone range, the adaptive integral step size is calculated based on the current deviation and the preset step size coefficient. When the preset integral update conditions are met, the feedback correction current of the previous cycle is updated based on the adaptive integral step size to obtain the feedback correction current of the current cycle.

4. The method for controlling the battery charging request current according to claim 3, characterized in that, The preset integral update conditions include: When the current deviation indicates that the actual charging current is less than the allowable charging current, positive integral update is allowed under the condition that the output current of the charging device is stable and the charging device has not reached its output limit. When the current deviation indicates that the actual charging current is greater than the allowable charging current, a negative integral update is permitted.

5. The method for controlling the battery charging request current according to claim 3, characterized in that, The adaptive dead zone range is dynamically adjusted according to the following formula: in, The adaptive dead zone range, These are the basic dead zone parameters; For adaptive adjustment coefficients, The current deviation is mentioned.

6. The method for controlling the battery charging request current according to claim 3, characterized in that, The adaptive integration step size is calculated according to the following formula: in, Let the adaptive integration step size be , This is the step size adjustment coefficient. For the minimum integration step size, For the maximum integration step size, To be The value is limited to and Functions between.

7. The method for controlling the battery charging request current according to claim 3, characterized in that, Also includes: When the current deviation is negative and its absolute value is greater than the preset overcharge threshold, and continues for a preset duration, the feedback correction current and the feedforward compensation current are cleared to zero.

8. The method for controlling the battery charging request current according to claim 3, characterized in that, After the step of obtaining the feedback correction current for the current period, the method further includes: Limit the feedback correction current of the current cycle to a preset current limit range.

9. The method for controlling the battery charging request current according to claim 1, characterized in that, The step of generating the feedforward compensation current based on the power request information includes: Determine the load power based on the power request information; When the load power is higher than a first preset threshold, the load power is converted into load current according to the current voltage of the battery; The load current is filtered to generate the feedforward compensation current; The feedforward compensation current is kept constant until the next event occurs where the load power exceeds the first preset threshold.

10. The method for controlling the battery charging request current according to claim 9, characterized in that, The step of filtering the load current to generate the feedforward compensation current includes: The load current is filtered using a first-order low-pass filter, wherein the filter coefficients of the first-order low-pass filter are configured such that the slope of the change of the feedforward compensation current matches the upper limit of the current rise rate of the final requested current.

11. The method for controlling the battery charging request current according to claim 9, characterized in that, Also includes: When the load power is detected to be lower than the second preset threshold, the feedforward compensation current is cleared to zero.

12. The method for controlling the battery charging request current according to claim 1, characterized in that, The step of superimposing the allowed charging current, the feedback correction current, and the feedforward compensation current to obtain the target requested current includes: When the connection duration between the battery and the charging device is less than a preset delay threshold, the feedback correction current is set to zero, and the allowed charging current is superimposed with the feedforward compensation current to obtain the target requested current. When the connection duration is greater than or equal to the preset delay threshold, the allowed charging current, the feedback correction current, and the feedforward compensation current are superimposed to obtain the target requested current.

13. The method for controlling the battery charging request current according to claim 1, characterized in that, The rate limiting process for the target requested current includes: The rate of increase of the target requested current is limited to not exceeding a preset upper limit for the current increase rate; The rate of decrease of the target requested current is limited to not exceeding a preset upper limit for the current reduction rate, which is greater than the upper limit for the current increase rate.

14. An electronic device, characterized in that, include: Memory, used to store one or more programs; processor; When the one or more programs are executed by the processor, the method as described in any one of claims 1-13 is implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-13.

16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-13.