Constant-power charging control method and electronic equipment
By identifying the internal resistance of the lithium battery in real time and introducing a feedforward compensation mechanism, the charging current is dynamically adjusted, which solves the problem of response lag in constant power charging of lithium batteries and achieves higher dynamic performance and steady-state accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CAMEL GRP WUHAN NEW ENERGY TECH CO LTD
- Filing Date
- 2026-01-19
- Publication Date
- 2026-04-24
AI Technical Summary
Existing constant power charging technology for lithium batteries suffers from slow dynamic response, weak anti-disturbance capability, and insufficient control precision, especially when battery parameters change over time, making it difficult to maintain stable power output.
By acquiring the battery's terminal voltage and actual current in real time, identifying the internal resistance value using an equivalent circuit model, and combining it with a power and current controller, a feedforward compensation mechanism is introduced to dynamically adjust the charging current to offset internal resistance disturbances, thereby achieving proactive and early compensation for major disturbances.
It improves the dynamic performance and steady-state accuracy of constant power charging, overcomes the response lag problem of traditional pure feedback control, and achieves faster dynamic response and higher steady-state control accuracy.
Smart Images

Figure CN121923331A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery charging technology, and more specifically, to a constant power charging control method and electronic device. Background Technology
[0002] With the rapid development of new energy vehicles, energy storage systems, and portable electronic devices, lithium batteries have become the mainstream energy storage solution due to their significant advantages such as high energy density, long cycle life, and low self-discharge rate. In practical applications of lithium batteries, charging control strategies have a crucial impact on charging efficiency, safety performance, and battery lifespan. Among these, constant power charging, as a charging method that can balance charging speed and internal battery stress management, has received widespread attention in recent years.
[0003] Currently, a feedback control scheme based on a dual-loop structure is commonly used to achieve constant power charging. Specifically, by adjusting the current and voltage in real time, the instantaneous power input to the battery is kept constant.
[0004] However, this type of control method essentially relies on the "deviation-driven" principle. The system only starts compensation adjustment when the actual power deviates from the set target value, which has the problem of response lag and affects the stability of charging and overall efficiency. Summary of the Invention
[0005] The purpose of this application is to provide a constant power charging control method and electronic device to address the shortcomings of the prior art, so as to solve the technical problems existing in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide a constant power charging control method, the method comprising: Obtain the actual charging parameters of the target battery to be charged, and determine the internal resistance value of the target battery based on the actual charging parameters. The actual charging parameters include: terminal voltage and actual current. Based on the reference current output by the power controller and the internal resistance value, determine the feedforward compensation amount used to compensate for the internal losses of the battery. Based on the feedback control quantity output by the current controller and the feedforward compensation quantity, a current control command is generated, and the output of the charging device is adjusted based on the current control command to dynamically control the charging current of the target battery.
[0007] Optionally, determining the internal resistance value of the target battery based on the actual charging parameters includes: The actual charging parameters are filtered to obtain the filtered charging parameters. The internal resistance value is obtained based on the pre-constructed equivalent circuit model and the filtered charging parameters.
[0008] Optionally, obtaining the internal resistance value based on the pre-constructed equivalent circuit model and the filtered charging parameters includes: Obtain the discrete state equations of the equivalent circuit model and convert the discrete state equations into linear regression equations; The filtered charging parameters are input into the linear regression equation, and a pre-set online parameter identification algorithm is used to recursively update the parameter vector in the linear regression equation. Based on the recursive result, the internal resistance value is determined.
[0009] Optionally, the process of determining the reference current includes: The current instantaneous power of the target battery is calculated based on the terminal voltage and the actual current. The power deviation between the preset target power and the current instantaneous power is determined, and the power deviation is input to the power controller to obtain the reference current output by the power controller.
[0010] Optionally, determining the feedforward compensation amount for constant power control based on the reference current output by the power controller, the internal resistance value, and the pre-built feedforward compensation model includes: The reference current, the internal resistance value, and the pre-acquired system input voltage are input into a pre-constructed feedforward compensation model to obtain the feedforward compensation amount output by the feedforward compensation model.
[0011] Optionally, the feedforward compensation model is: ; in, This is the feedforward compensation amount. The reference current output by the power controller. The internal resistance value is... This is the system input voltage.
[0012] Optionally, the process of determining the feedback control quantity output by the current controller includes: The difference between the preset reference current and the actual charging current is determined, and the difference is used as the current deviation. The current deviation is then input to the current controller to obtain the feedback control quantity output by the current controller.
[0013] Optionally, generating a current control command based on the feedback control quantity output by the current controller and the feedforward compensation quantity includes: The total control quantity is obtained by summing the feedback control quantity output by the current controller with the feedforward compensation quantity. The total control quantity is input to the PWM generator to generate the current control command.
[0014] Optionally, dynamically adjusting the charging current of the target battery based on the current control command includes: The current control command is input to the gate drive circuit, which drives the gate drive circuit to dynamically adjust the switching duty cycle of the power converter to achieve constant power charging control of the target battery. The power converter is used to connect the input power supply and the target battery.
[0015] Thirdly, embodiments of this application provide an electronic device, which includes a memory for storing one or more programs and a processor. When the one or more programs are executed by the processor, the above-described constant power charging control method is implemented.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described constant power charging control method.
[0017] The beneficial effects of this application are: This application provides a constant power charging control method and electronic device. In this application, under the current cycle, the battery terminal voltage and actual charging current are collected to evaluate the battery's internal resistance. Using the reference current and internal resistance value output by the power controller, a feedforward compensation amount is calculated to compensate for the battery's internal losses. This allows the internal resistance disturbance to be directly offset based on the feedforward compensation amount, reducing power fluctuations during the dynamic process and achieving proactive and early compensation for the main disturbance (change in battery internal resistance). Then, the feedforward compensation amount is superimposed on the feedback control amount output by the current controller to generate a current control command. Based on the current control command, the output of the charging device is adjusted so that the charging current input to the target battery can be dynamically adjusted in a timely manner, thereby approximating true constant power charging, improving the dynamic performance and steady-state accuracy of constant power charging, and effectively overcoming the response lag problem caused by "deviation-driven" traditional pure feedback control.
[0018] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] 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.
[0020] Figure 1 A flowchart illustrating a constant power charging control method provided in an embodiment of this application; Figure 2 A schematic flowchart of another constant power charging control method provided in an embodiment of this application; Figure 3 A schematic flowchart illustrating another constant power charging control method provided in this application embodiment; Figure 4 This is a schematic diagram of the equivalent circuit model provided in the embodiments of this application; Figure 5 A schematic flowchart illustrating another constant power charging control method provided in this application embodiment; Figure 6 A schematic flowchart of another constant power charging control method provided in an embodiment of this application; Figure 7 A schematic flowchart illustrating another constant power charging control method provided in this application embodiment; Figure 8 This is a schematic diagram of the structure of a constant power charging control device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] 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. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0023] First, the background technology involved in this application will be introduced.
[0024] Currently, constant power charging methods include the following, as detailed below: 1. A feedback control method based on a dual-loop control architecture is adopted. Specifically, it includes an outer voltage loop and an inner current loop, ultimately achieving constant power control. Its core is to calculate the real-time power by detecting the output current and voltage, compare it with the set power, and then adjust it through a PI regulator.
[0025] The drawbacks of this dual-loop control architecture are as follows: It is a purely feedback control system, relying entirely on post-event adjustment of power deviation. When the battery's internal resistance changes, the system must wait for an actual deviation in power output before responding, resulting in inherent control lag. Furthermore, the entire system lacks any feedforward compensation for the primary disturbance—changes in battery parameters—leading to slow dynamic response and limited control accuracy.
[0026] 2. Fuzzy PID control is used to improve the constant power charging process. Its core idea is to dynamically adjust the parameters of the PID controller according to the power deviation and its rate of change in order to cope with the nonlinearity of the system.
[0027] The drawbacks of this fuzzy PID control scheme are that it is essentially a more complex form of feedback control, only making the controller parameters adaptive, but still based on a strategy of adjusting "after the deviation occurs." It does not introduce any form of feedforward compensation mechanism to predict and counteract disturbances caused by changes in battery internal resistance, thus failing to fundamentally solve the response lag problem.
[0028] 3. The adaptive charging method based on the battery model uses a battery model (ECM), but its application is to estimate the battery's SOC and state of health (SOH) through the model, and then query preset maximum charging current or power curves based on the SOH to achieve "adaptive" charging.
[0029] The drawbacks of this battery-model-based adaptive charging scheme are that it's a "strategy-level" or "planning-level" adjustment based on long-term model predictions, rather than a "control-level" real-time compensation. The model and the real-time control law are disconnected; the parameters such as internal resistance estimated in real-time by the model are not converted into feedforward control variables and directly embedded into the instruction calculation for each control cycle. It cannot quickly compensate for instantaneous changes in battery internal resistance.
[0030] 4. A method for battery charging using model predictive control (MPC). MPC uses a battery model to predict the future state of the system and calculates the optimal control sequence through an optimization algorithm.
[0031] The drawbacks of this approach are that although MPC has superior performance in theory, its computational complexity is extremely high and its requirements for processors are very demanding, resulting in high hardware costs and making it difficult to apply on a large scale in low-cost battery charging scenarios that require high-frequency control.
[0032] Therefore, existing lithium battery constant power charging technologies generally suffer from problems such as slow dynamic response, weak anti-disturbance capability, and insufficient control precision, especially when it is difficult to maintain stable power output under time-varying battery parameters.
[0033] To address the aforementioned issues, this application proposes a constant power charging control method. By identifying the feedforward control channel in real time based on the target battery's real-time charging parameters, and synthesizing its output with the feedback control output at the control quantity level, this method achieves proactive and early compensation for major disturbances (changes in battery internal resistance), overcoming the lag defect of pure feedback control.
[0034] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0035] Optionally, refer to Figure 1 This is a flowchart illustrating a constant power charging control method provided in an embodiment of this application. Optionally, the execution entity of this method can be an electronic device with data processing capabilities, such as a main controller (MCU / DPS). It should be understood that in other embodiments, the order of some steps in the constant power charging control method can be interchanged according to actual needs, or some steps can be omitted or deleted. Figure 1 As shown, the method includes: S101. Obtain the actual charging parameters of the target battery to be charged, and determine the internal resistance value of the target battery based on the actual charging parameters.
[0036] The actual charging parameters include: terminal voltage and actual current.
[0037] For example, a voltage sampling circuit can be used to detect the analog signal of the target battery's terminal voltage; a current sampling circuit (such as a Hall sensor) can be used to detect the analog signal of the target battery's actual current; and the analog signals of the terminal voltage and actual current are input to an analog-to-digital converter for synchronous sampling of the terminal voltage through dual channels. (Unit: V) and actual current (Unit: A)
[0038] It should be noted that the internal resistance of a battery can change under different SOC, temperature, and aging conditions.
[0039] Therefore, this application proposes to perform constant power charging control on the battery during each control cycle. For example, in the current cycle, the terminal voltage of the target battery is collected. and actual current And based on the terminal voltage in the current cycle and actual current The internal resistance of the target battery under the current cycle is evaluated. Where k represents the k-th control cycle, which assesses the internal losses of the battery so that subsequent calculations can be based on the internal resistance value. Calculate a feedforward compensation amount.
[0040] Optionally, the internal resistance value is updated once in each control cycle (e.g., 10ms~100ms). This ensures a balance between response speed and stability.
[0041] Optionally, the control cycle of the system is determined. The control cycle must match the switching frequency of the underlying power converter and satisfy the Shannon sampling theorem, and is usually much smaller than the system's time constant.
[0042] S102. Determine the feedforward compensation amount used to compensate for the internal losses of the battery based on the reference current and internal resistance value output by the power controller.
[0043] For example, the power controller is a PI controller, a fuzzy PID controller, or a sliding mode variable structure controller. The power controller generates an ideal current reference value, i.e., a reference current, by detecting the deviation between the current actual power and the target power. This reference current can also be called a base current. .
[0044] Feedforward compensation is used to represent the additional boost required to increase the output voltage of the input power supply in order to overcome the voltage drop caused by the battery's internal resistance.
[0045] In one feasible approach, to achieve constant power charging, a feedforward compensation mechanism based on battery internal resistance assessment is introduced, which is based on the reference current output by the power controller. and internal resistance value To obtain the required additional current / voltage to compensate for the internal resistance voltage drop, the feedforward compensation amount is obtained. This allows for the calculation based on the feedforward compensation amount. It directly offsets internal resistance disturbances, reduces power fluctuations during dynamic processes, and achieves proactive and early compensation for major disturbances (changes in battery internal resistance).
[0046] S103. Based on the feedback control quantity and feedforward compensation quantity output by the current controller, generate a current control command, and adjust the output of the charging device based on the current control command to dynamically control the charging current of the target battery.
[0047] The current controller can also be a PI controller, a fuzzy PID controller, or a sliding mode variable structure controller. The current controller uses a proportional-integral (PI) controller to adjust the difference between the reference current and the actual sampled current, generating a feedback control quantity to eliminate current tracking error. This feedback control quantity reflects the current dynamic deviation state of the system and is used to correct the drive signal of the power conversion device in real time.
[0048] In one feasible approach, the feedback control quantity and the feedforward compensation quantity output by the current controller can be superimposed to obtain the current control command. That is, the feedforward compensation quantity is superimposed with the basic duty cycle output by the current controller to generate the final control duty cycle command, which enables the charging current input to the target battery to track quickly, thereby approximating the real constant power charging and effectively overcoming the response lag problem caused by "deviation drive" in traditional pure feedback control.
[0049] Optionally, the constant power charging control scheme proposed in this application can be applied in fields such as fast charging systems, power battery pack charging management, and energy storage PCS.
[0050] In summary, this application provides a constant power charging control method. In this application, under the current cycle, the battery's terminal voltage and actual charging current are collected to evaluate the battery's internal resistance. Using the reference current and internal resistance value output by the power controller, a feedforward compensation amount is calculated to compensate for internal battery losses. This allows the internal resistance disturbance to be directly offset based on the feedforward compensation amount, reducing power fluctuations during the dynamic process and achieving proactive, early compensation for the main disturbance (changes in battery internal resistance). Then, the feedforward compensation amount is superimposed on the feedback control amount output by the current controller to generate a current control command. Based on the current control command, the output of the charging device is adjusted, enabling timely dynamic adjustment of the charging current input to the target battery. This approximates true constant power charging, improving the dynamic performance and steady-state accuracy of constant power charging, and effectively overcoming the response lag problem caused by "deviation-driven" traditional pure feedback control.
[0051] Optionally, refer to Figure 2 As shown, step S101 above includes: S201. Filter the actual charging parameters to obtain the filtered charging parameters.
[0052] Optionally, a moving average filter or a first-order low-pass digital filter can be used to filter the sampled actual charging parameters to obtain filtered charging parameters, thereby suppressing switching noise and measurement noise and providing clean input data for subsequent precise control and high-precision parameter identification.
[0053] S202. Based on the pre-constructed equivalent circuit model and the filtered charging parameters, the internal resistance value is obtained.
[0054] For example, the equivalent circuit model is a first-order RC model, a second-order RC model, or a higher-order model.
[0055] Optionally, considering that traditional direct measurement methods (such as pulse discharge) cannot meet the requirements of real-time and continuity, this application proposes to evaluate the internal resistance of the battery by establishing an equivalent circuit model of the battery.
[0056] Specifically, the filtered charging parameters can be input into the equivalent circuit model, which includes parameters such as the ohmic internal resistance R0, polarization resistance R1, polarization capacitance C1, and open-circuit voltage source. An online parameter identifier is constructed using the recursive least squares method to recursively estimate the model parameters in the equivalent circuit model, and outputs the real-time identified "internal resistance value" for the current cycle based on the estimation results. (Unit: Ohms, Ω), "Internal resistance value" This forms the basis for subsequent feedforward compensation calculations.
[0057] Therefore, in this embodiment, by using the equivalent circuit model of the battery and combining the voltage and current data collected and filtered in real time, the battery internal resistance can be dynamically estimated online without stopping the machine or interrupting charging. This has advantages such as strong real-time performance and support for aging trend tracking (SOH diagnosis).
[0058] Optionally, refer to Figure 3 As shown, step S202 above includes: S301. Obtain the discrete state equations of the equivalent circuit model and convert the discrete state equations into linear regression equations.
[0059] Among them, reference Figure 4 As shown, this is a pre-built second-order RC equivalent circuit model. According to Kirchhoff's voltage law, the discrete state equation of the equivalent circuit model can be derived as shown in the following formula (1): (1) in, This is the capacitance across the polarization capacitor C1 in the current cycle.
[0060] Using the zero-order hold method, the above formula (1) is discretized over time during the sampling period to obtain the linear regression equation shown in formula (2) below, as follows: (2) in, For output, usually - ; A data vector is composed of historical measurements, for example... =[ , , ,1]; The parameter vector is the set of parameters to be identified, for example... =[ , ], among which, target that is The first element.
[0061] S302. Input the filtered charging parameters into the linear regression equation, and use the pre-set online parameter identification algorithm to recursively update the parameter vector in the linear regression equation, and determine the internal resistance value based on the recursion result.
[0062] In one feasible approach, the filtered charging parameters of the current cycle are input into the linear regression equation shown in formula (2) above, and a pre-set online parameter identification algorithm is run. That is, the model predicts the voltage by using the parameter estimate of the previous cycle and the regression vector of the current cycle, and the predicted voltage is compared with the measured filtered back-end voltage to obtain the error. Based on the covariance matrix of the previous period and the preset forgetting factor, the gain vector of the current period is calculated. Using gain vector and prediction error For the parameter vector of the previous period in the linear regression equation Perform recursive updates to obtain the parameter vector for the current period. And the parameter vector of the current period Performing an inverse mathematical transformation yields an internal resistance value with a clear physical meaning. This provides a reliable foundation for high-precision estimation of battery status in the future.
[0063] Optionally, refer to Figure 5 As shown, the process of determining the reference current includes: S401. Calculate the current instantaneous power of the target battery based on the terminal voltage and actual current.
[0064] S402. Determine the power deviation between the preset target power and the current instantaneous power, and input the power deviation to the power controller to obtain the reference current output by the power controller.
[0065] In one feasible approach, based on the terminal voltage of the current cycle and actual current The current instantaneous power of the target battery is calculated, i.e. = × And calculate the deviation from the target power. The "power deviation" is input into the power controller to calculate the reference current output by the power controller, i.e. .in, This is the integral term of the power deviation (achieved through variable accumulation).
[0066] Optionally, for the calculated Implement safety limits to ensure that the current does not exceed the maximum allowable current of the battery.
[0067] Among them, the target power of constant power charging (Unit: W), where target power Determining the value is a comprehensive decision-making process that needs to be completed before charging begins or at the start of a new charging phase. Its value is determined by the following three constraints, and the minimum value among them is taken to ensure absolute safety. Specifically: Battery chemical characteristics constraints: Determine the maximum permissible charging power under the current state based on the battery datasheet or real-time limits obtained from the battery management system (BMS) via communication. This value is affected by battery temperature, state of health (SOH), and current state of charge (SOC).
[0068] Charging hardware system capability constraints: based on the rated power of the charger or power converter. Determine the maximum power that the hardware can provide.
[0069] Application-layer charging strategy constraints: Based on the preset charging mode (such as fast charging, standard charging, and maintenance charging), obtain a desired power value from the strategy curve. .
[0070] Therefore, the final setting logic for the target power is as follows: .
[0071] Optionally, based on the reference current output by the power controller, the internal resistance value, and the pre-built feedforward compensation model, the feedforward compensation amount for constant power control is determined, including: The reference current, internal resistance value, and pre-acquired system input voltage are input into the pre-built feedforward compensation model to obtain the feedforward compensation amount output by the feedforward compensation model.
[0072] The feedforward compensation model is shown in the following formula (3): (3) in, This is the feedforward compensation amount. This is the reference current output by the power controller. This is the internal resistance value. The input voltage of the system can also be expressed as the input voltage in formula (3). Replace with terminal voltage.
[0073] In this embodiment, the reference current can be... Internal resistance value and the pre-acquired system input voltage Input them into the feedforward compensation model and calculate the feedforward compensation amount. That is, it can be compensated by feedforward amount To directly cancel the reference current Battery internal resistance The voltage drop generated requires additional control input (e.g., duty cycle increment), of which the feedforward compensation input... Without going through a PI controller, it is designed to provide immediate and proactive compensation for major disturbances (changes in internal resistance).
[0074] Optionally, at the start of system charging, the system is initialized, and the parameters of the power controller are set. , ) and parameters of the current controller ( , These control parameters can be pre-tuned during the system design phase based on the nominal model and characteristics of the controlled objects (power converter and battery). For example, the control bandwidth and gain can be determined by establishing a nominal mathematical model of the system and using frequency domain analysis, or by obtaining parameters under actual nominal operating conditions using engineering tuning methods (such as the critical proportional gain method), and then discretizing the obtained parameters as initial values. These initial parameters provide a stable starting baseline for the system and can be optimized and adjusted according to the adaptive strategy during subsequent operation. Specifically: (Power controller proportional gain): This determines the power controller's response to power deviations. The instantaneous response strength is such that the larger the value, the stronger and faster the power controller corrects power deviations, but an excessively large value may lead to system overshoot or even oscillation.
[0075] (Power controller integral coefficient): This determines the power controller's ability to eliminate steady-state power errors. The integral term continuously accumulates historical power deviations, eventually driving them to zero. If the value is too small, it will take a long time for the power to reach the set value; if the value is too large, it may cause integral saturation and system instability.
[0076] (Proportional coefficient of current controller): It determines the current controller's response to current deviation. The immediate response intensity. The inner loop requires a very fast response, therefore Usually more It is large and can quickly suppress current fluctuations.
[0077] (Integral coefficient of the current controller): It ensures that the actual current accurately tracks the current command, eliminating steady-state current errors. This is crucial for ultimately achieving high-precision constant power control.
[0078] Optionally, the process of determining the feedback control quantity output by the current controller includes: The difference between the preset reference current and the actual charging current is determined, and the difference is used as the current deviation. The current deviation is then input to the current controller to obtain the feedback control quantity output by the current controller.
[0079] In this embodiment, the difference between the reference current and the actual charging current is calculated, i.e. The difference is used as the current deviation. and the current deviation The input is sent to the current controller, and feedback control is obtained from the output of the current controller. That is, the current controller executes the PI control algorithm. .
[0080] in, This is the integral term for the current deviation. It is used to suppress all unknown disturbances not covered by the feedforward channel (based on the ECM model) and ensures that there is no steady-state error between the output current and the command value when the system is in steady state through its integral action.
[0081] Optionally, refer to Figure 6 As shown, step S103 above includes: S501. Sum the feedback control quantity and the feedforward compensation quantity output by the current controller to obtain the total control quantity.
[0082] S502: Input the total control quantity to the PWM generator to generate current control commands.
[0083] In this embodiment, the "feedforward control quantity" calculated above is used... "and feedback control quantity" "Add them together to get the sum, which is the total control quantity." This involves superimposing the feedforward compensation and feedback control at the control level; then, the total control is input to the PWM generator to generate current control commands.
[0084] Optionally, the step S103 above, which dynamically adjusts the charging current of the target battery based on the current control command, includes: The current control command is input to the gate drive circuit, which drives the gate drive circuit to dynamically adjust the switching duty cycle of the power converter in order to achieve constant power charging control of the target battery.
[0085] Among them, reference Figure 7 As shown, the power converter is used to connect the input power supply and the target battery.
[0086] In this embodiment, reference continues to be made to Figure 7 As shown, the current control command is output to the gate drive circuit, which drives the gate drive circuit to dynamically adjust the switching duty cycle of the power converter to achieve constant power charging control of the target battery, effectively overcoming the response lag problem caused by "deviation drive" in traditional pure feedback control.
[0087] Therefore, to overcome the hysteresis defect of pure feedback control, this application introduces a feedforward control channel based on real-time identification using an ECM model. This channel provides better suppression of changes in the battery's internal state, reduces the impact of time-varying parameters on system control quality, and exhibits stronger robustness. Furthermore, its output is synthesized with the feedback control output at the control quantity level, enabling proactive and early compensation for the main disturbance (changes in battery internal resistance). This means that the feedforward channel directly cancels out internal resistance disturbances, significantly reducing power fluctuations during dynamic processes and resulting in faster dynamic response. The feedforward and feedback work together to eliminate steady-state errors, achieving higher steady-state accuracy. Secondly, compared to complex algorithms such as model predictive control, this scheme requires less computation, is easy to implement on low-cost processors, and is simple and reliable to implement.
[0088] Optionally, based on the above embodiments, constant power charging control of the target battery in the current cycle can be achieved by integrating the controller integral term (i.e., ...) of the current cycle. and The current value) and the latest parameters of the ECM model (such as the ... The data is stored as the initial state for the next cycle (k+1) calculation, based on the latest sensor measurements. and In addition to the updated system status, a new calculation for the next control cycle begins, and the process described in the above embodiments is repeated until the charging control process terminates.
[0089] refer to Figure 8 The diagram shown is a structural schematic of a constant power charging control device provided in this application. The device includes: The acquisition module 801 is used to acquire the actual charging parameters of the target battery to be charged. The determining module 802 is used to determine the internal resistance value of the target battery based on the actual charging parameters, the actual charging parameters including: terminal voltage and actual current; and to determine the feedforward compensation amount for compensating for internal losses of the battery based on the reference current output by the power controller and the internal resistance value. The generation module 803 is used to generate a current control command based on the feedback control quantity output by the current controller and the feedforward compensation quantity, and adjust the output of the charging device based on the current control command to dynamically control the charging current of the target battery.
[0090] Optionally, the determining module 802 is specifically used for: The actual charging parameters are filtered to obtain the filtered charging parameters. The internal resistance value is obtained based on the pre-constructed equivalent circuit model and the filtered charging parameters.
[0091] Optionally, the determining module 802 is specifically used for: Obtain the discrete state equations of the equivalent circuit model and convert the discrete state equations into linear regression equations; The filtered charging parameters are input into the linear regression equation, and a pre-set online parameter identification algorithm is used to recursively update the parameter vector in the linear regression equation. Based on the recursive result, the internal resistance value is determined.
[0092] Optionally, the determining module 802 is specifically used for: The current instantaneous power of the target battery is calculated based on the terminal voltage and the actual current. The power deviation between the preset target power and the current instantaneous power is determined, and the power deviation is input to the power controller to obtain the reference current output by the power controller.
[0093] Optionally, the determining module 802 is specifically used for: The reference current, the internal resistance value, and the pre-acquired system input voltage are input into a pre-constructed feedforward compensation model to obtain the feedforward compensation amount output by the feedforward compensation model.
[0094] Optionally, the feedforward compensation model is: ; in, This is the feedforward compensation amount. The reference current output by the power controller. The internal resistance value is... This is the system input voltage.
[0095] Optionally, the determining module 802 is specifically used for: The difference between the preset reference current and the actual charging current is determined, and the difference is used as the current deviation. The current deviation is then input to the current controller to obtain the feedback control quantity output by the current controller.
[0096] Optionally, the generation module 803 is specifically used for: The total control quantity is obtained by summing the feedback control quantity output by the current controller with the feedforward compensation quantity. The total control quantity is input to the PWM generator to generate the current control command.
[0097] Optionally, the generation module 803 is specifically used for: The current control command is input to the gate drive circuit, which drives the gate drive circuit to dynamically adjust the switching duty cycle of the power converter to achieve constant power charging control of the target battery. The power converter is used to connect the input power supply and the target battery.
[0098] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0099] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0100] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be a processor with data processing capabilities.
[0101] The electronic device includes: processor 901 and memory 902.
[0102] The memory 902 is used to store programs, and the processor 901 calls the programs stored in the memory 902 to execute the above method embodiments. The specific implementation and technical effects are similar, and will not be described in detail here.
[0103] Optionally, this application also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs the above-described method embodiments.
[0104] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0105] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0106] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0107] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
[0108] 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 constant power charging control method, characterized in that, The method includes: Obtain the actual charging parameters of the target battery to be charged, and determine the internal resistance value of the target battery based on the actual charging parameters. The actual charging parameters include: terminal voltage and actual current. Based on the reference current output by the power controller and the internal resistance value, determine the feedforward compensation amount used to compensate for the internal losses of the battery. Based on the feedback control quantity output by the current controller and the feedforward compensation quantity, a current control command is generated, and the output of the charging device is adjusted based on the current control command to dynamically control the charging current of the target battery.
2. The method according to claim 1, characterized in that, Determining the internal resistance value of the target battery based on the actual charging parameters includes: The actual charging parameters are filtered to obtain the filtered charging parameters. The internal resistance value is obtained based on the pre-constructed equivalent circuit model and the filtered charging parameters.
3. The method according to claim 2, characterized in that, The step of obtaining the internal resistance value based on the pre-constructed equivalent circuit model and the filtered charging parameters includes: Obtain the discrete state equations of the equivalent circuit model and convert the discrete state equations into linear regression equations; The filtered charging parameters are input into the linear regression equation, and a pre-set online parameter identification algorithm is used to recursively update the parameter vector in the linear regression equation. Based on the recursive result, the internal resistance value is determined.
4. The method according to claim 1, characterized in that, The process of determining the reference current includes: The current instantaneous power of the target battery is calculated based on the terminal voltage and the actual current. The power deviation between the preset target power and the current instantaneous power is determined, and the power deviation is input to the power controller to obtain the reference current output by the power controller.
5. The method according to claim 1, characterized in that, The step of determining the feedforward compensation amount for constant power control based on the reference current output by the power controller, the internal resistance value, and the pre-built feedforward compensation model includes: The reference current, the internal resistance value, and the pre-acquired system input voltage are input into a pre-constructed feedforward compensation model to obtain the feedforward compensation amount output by the feedforward compensation model.
6. The method according to claim 5, characterized in that, The feedforward compensation model is as follows: ; in, This is the feedforward compensation amount. The reference current output by the power controller. The internal resistance value is... This is the system input voltage.
7. The method according to claim 1, characterized in that, The process of determining the feedback control quantity output by the current controller includes: The difference between the preset reference current and the actual charging current is determined, and the difference is used as the current deviation. The current deviation is then input to the current controller to obtain the feedback control quantity output by the current controller.
8. The method according to claim 1, characterized in that, The step of generating a current control command based on the feedback control quantity output by the current controller and the feedforward compensation quantity includes: The total control quantity is obtained by summing the feedback control quantity output by the current controller with the feedforward compensation quantity. The total control quantity is input to the PWM generator to generate the current control command.
9. The method according to claim 1, characterized in that, The dynamic adjustment of the charging current of the target battery based on the current control command includes: The current control command is input to the gate drive circuit, which drives the gate drive circuit to dynamically adjust the switching duty cycle of the power converter to achieve constant power charging control of the target battery. The power converter is used to connect the input power supply and the target battery.
10. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any one of claims 1-9.