Load simulation method, device, program product and storage medium for charging pile test
By collecting charging pile output data in real time to calculate virtual state of charge values, query internal resistance and polarization parameters, and configure the equivalent impedance of programmable electronic loads, the problem of the difference between the load simulation characteristics and the actual output characteristics in charging pile testing is solved, thus improving the authenticity and stability of the test.
Patent Information
- Application Number
- CN202611583794.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-27
AI Technical Summary
Existing charging pile testing systems rely on pre-set standard battery characteristic curves for load simulation, which cannot adapt to the actual output characteristics differences of charging piles, resulting in a deviation between the test scenario and the real battery charging scenario.
By collecting the voltage and current values output by the charging pile in real time, calculating the virtual state of charge value, querying the internal resistance and polarization parameters, configuring the equivalent impedance of the programmable electronic load, and dynamically adjusting the load characteristics through a closed-loop feedback mechanism to adapt to the actual output characteristics of the charging pile.
It achieves dynamic adaptation between the simulated load characteristics and the actual output characteristics of the charging pile, improves the authenticity and stability of the charging pile test, reduces the impact of sudden current changes on the charging pile control system, and ensures the monotonic convergence of parameter correction and the robustness of the system.
Smart Images

Figure CN123176401A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of charging pile testing, specifically to a load simulation method, equipment, program product, and storage medium for charging pile testing. Background Technology
[0002] With the rapid development of electric vehicles, charging piles, as crucial charging infrastructure, require rigorous testing and verification of their performance and reliability. Charging pile testing necessitates simulating the load characteristics and communication behavior of real batteries to evaluate the output control accuracy, response speed, and stability of the charging pile at different charging stages.
[0003] Existing charging pile testing systems typically employ a programmable electronic load in conjunction with a Battery Management System (BMS) simulator to simulate the load. During testing, the BMS simulator sends handshake messages containing battery status information to the charging pile based on a preset standard battery characteristic curve, and the charging pile adjusts its output according to the received information. This testing method relies on a pre-set standard battery characteristic curve to configure load parameters and communication content.
[0004] However, due to differences in control strategies, hardware design, and operating environments, the actual output characteristics of different charging piles vary. When testing with fixed load parameters pre-set based on standard battery characteristic curves, if the actual output characteristics of the charging pile deviate from the standard battery characteristic curves, the test scenario will deviate from the real battery charging scenario, making it difficult for the simulated load characteristics to adapt to the actual output characteristics of the charging pile. Summary of the Invention
[0005] This application provides a load simulation method, device, program product, and storage medium for charging pile testing, which can adapt to the actual output characteristics of charging piles.
[0006] The first aspect of this application provides a load simulation method for testing charging piles, specifically including: Real-time acquisition of voltage and current values output by the charging pile; The virtual state of charge value of the charging pile is calculated based on the voltage value and the current value; The internal resistance parameter and polarization parameter are obtained by querying the pre-stored state of charge-load characteristic mapping table based on the virtual state of charge value. The acceptable current value of the charging pile is calculated based on the internal resistance parameter, the polarization parameter, and the voltage value. After converting the internal resistance parameter and the polarization parameter into battery state parameters and writing them into the charging handshake message, the charging handshake message is sent to the charging pile. Configure the equivalent impedance of the programmable electronic load according to the internal resistance parameter and the polarization parameter, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process; During the current absorption period of the programmable electronic load, the actual output current value of the charging pile is collected. Calculate the deviation between the actual output current value and the acceptable current value; The internal resistance parameter and the polarization parameter are corrected according to the deviation value to obtain the corrected load characteristic parameter. The corrected load characteristic parameter is used to synchronously update the equivalent impedance and the battery status parameter in the charging handshake message so that the load simulation characteristics can dynamically adapt to the actual output characteristics of the charging pile.
[0007] By adopting the above technical solution, the voltage and current values output by the charging pile are collected in real time during the charging pile testing process, and a virtual state of charge (SOC) value is calculated. Based on this virtual SOC value, the corresponding internal resistance and polarization parameters are retrieved from a pre-stored SOC-load characteristic mapping table, establishing a dynamic correspondence between the charging state and load characteristic parameters. This allows the load simulation to exhibit characteristic changes consistent with a real battery as the charging process progresses. After configuring the equivalent impedance of the programmable electronic load and sending a charging handshake message to the charging pile, the actual output current value of the charging pile is collected, and the deviation between this actual output current value and the acceptable current value calculated based on the internal resistance, polarization, and voltage values is calculated. This allows the difference between the actual output characteristics of the charging pile and the preset load characteristics to be identified. Based on this deviation value, the internal resistance and polarization parameters are corrected, and the equivalent impedance and battery state parameters in the charging handshake message are updated synchronously. This forms a closed-loop feedback mechanism from deviation detection and parameter correction to load adjustment and communication updates, enabling the load simulation characteristics to dynamically track and adapt to the actual output characteristics of the charging pile.
[0008] Optionally, configuring the equivalent impedance of the programmable electronic load according to the internal resistance parameter and the polarization parameter, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process, includes: The internal resistance parameter is converted into an equivalent series resistance component, and the polarization parameter is converted into the resistance and capacitance components of an equivalent RC network. The equivalent impedance value of the programmable electronic load is calculated based on the equivalent series resistance component, the resistance component and the capacitance component of the equivalent RC network, and the target current value is calculated based on the equivalent impedance and the voltage value. Calculate the change in current between the current actual absorbed current and the target current value, and determine the slope of the current change based on the change in current. The programmable electronic load is controlled to gradually change from the current actual absorbed current to the target current value according to the current change slope, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process.
[0009] By adopting the above technical solution, the internal resistance parameters and polarization parameters are converted into a circuit model that includes an equivalent series resistance component and an equivalent RC network. This establishes a mapping relationship from battery characteristic parameters to programmable electronic load impedance parameters, achieving accurate electrical simulation of the internal impedance characteristics of a real battery. When configuring the equivalent impedance, instead of directly switching to the target current value, the slope of the current change is calculated based on the current change, and the programmable electronic load is controlled to gradually change from the current actually absorbed to the target current value according to this slope. This simulates the gradual current change characteristics of a real battery during charging due to the polarization effect, avoiding the impact of sudden current changes on the charging pile control system. This makes the load simulation process closer to the dynamic charging behavior of a real battery, improving the realism of the charging pile test scenario.
[0010] Optionally, the step of synchronously updating the equivalent impedance and the battery state parameters in the charging handshake message using the corrected load characteristic parameters includes: Calculate the verification current value based on the corrected load characteristic parameters and the voltage value, and calculate the verification deviation value between the verification current value and the actual output current value. When the verification deviation value is less than the deviation value, the corrected load characteristic parameter is confirmed to be valid, and the equivalent impedance is reconfigured using the corrected load characteristic parameter; The corrected load characteristic parameters are converted into updated battery status parameters and written into the charging handshake message.
[0011] By adopting the above technical solution, before updating the system configuration using corrected load characteristic parameters, a verification current value is calculated based on the corrected load characteristic parameters and the current voltage value. This verification current value is then compared with the actual output current value of the charging pile to obtain a verification deviation value. By determining whether the verification deviation value is less than the deviation value before correction, it is confirmed whether the corrected load characteristic parameters can make the load simulation characteristics closer to the actual output characteristics of the charging pile. This verification mechanism can identify erroneous corrections that may degrade system performance before parameter updates, avoiding further deviation of the load simulation characteristics from the actual output characteristics of the charging pile due to incorrect correction direction or excessive correction magnitude. This ensures the monotonic convergence of parameter correction and improves the stability and reliability of the dynamic adjustment process of the load simulation system.
[0012] Optionally, the method further includes: When the verification deviation value is not less than the deviation value, the corrected load characteristic parameter is determined to be invalid; While keeping the polarization parameter unchanged, only the internal resistance parameter is reversed to obtain the first candidate parameter; while keeping the internal resistance parameter unchanged, only the polarization parameter is reversed to obtain the second candidate parameter. Calculate the first verification current value and the second verification current value based on the first alternative parameter and the second alternative parameter and the voltage value, respectively; Calculate the first deviation between the first verified current value and the actual output current value, and the second deviation between the second verified current value and the actual output current value; The alternative parameter corresponding to the smaller value of the first deviation and the second deviation is selected as the corrected load characteristic parameter, and the equivalent impedance and the battery state parameter are updated using the corrected load characteristic parameter.
[0013] By adopting the above technical solution, when simultaneously correcting the internal resistance parameter and polarization parameter results in a verification deviation value that is not less than the original deviation value, two sets of candidate parameters are generated by keeping one parameter unchanged and only correcting the other parameter in reverse. The deviations between the corresponding verification current value and the actual output current value are calculated for each parameter, and the parameter with the smaller deviation is selected as the effective correction load characteristic parameter. This alternative correction strategy can identify the dominant factor with a more significant impact on the deviation among the internal resistance parameter and polarization parameter through single-parameter correction when dual-parameter synchronous correction fails. This avoids over-correction or incorrect correction direction caused by parameter coupling effects, provides a fault-tolerant mechanism for parameter correction, and enhances the adaptive adjustment capability and robustness of the load simulation system when facing the complex output characteristics of charging piles.
[0014] Optionally, after acquiring the actual output current value of the charging pile during the current absorption period of the programmable electronic load, the method further includes: Record the response delay time between the time the charging handshake message is sent and the time when the actual output current value reaches a steady state. Calculate the overshoot of the actual output current value relative to the acceptable current value; Obtain the current virtual state of charge value corresponding to the time the charging handshake message is sent, and calculate the equivalent impedance change of the equivalent impedance value configured for the programmable electronic load this time relative to the equivalent impedance value configured last time. The response delay time, the overshoot, the current virtual state of charge value, and the equivalent impedance change are stored as associated data in the historical response database. Extract several historical data points from the historical response database whose absolute value of the difference between the current virtual state of charge value and the current virtual state of charge value is less than a preset state of charge threshold, and calculate multiple ratio relationships between the overshoot and the equivalent impedance change in the historical data. The equivalent impedance value to be updated is calculated based on the corrected load characteristic parameters, and the change in the equivalent impedance value to be updated relative to the current equivalent impedance value is calculated. Based on the ratio relationships and the change to be updated, predict the output current overshoot deviation that the charging pile will generate in the next cycle; The equivalent impedance to be configured is pre-compensated and adjusted according to the overshoot deviation of the output current so that the current value output by the charging pile matches the actual required current value.
[0015] By employing the above technical solution, the response delay time, output current overshoot, and corresponding virtual state of charge (VFC) value and equivalent impedance change of the charging pile are continuously recorded during load simulation. This associated data is stored in a historical response database, forming a knowledge accumulation of the charging pile's dynamic response characteristics. When subsequently adjusting the equivalent impedance, historical data similar to the current VFC value is extracted from the historical response database. The ratio of overshoot to equivalent impedance change is analyzed, allowing for the prediction of potential output current overshoot deviation under the updated equivalent impedance configuration. Based on this predicted deviation, the equivalent impedance to be configured is pre-compensated. This predictive compensation mechanism based on historical data enables the system to learn the dynamic response patterns of the charging pile, suppressing overshoot in advance, reducing the number of dynamic interactions between the load simulation system and the charging pile, accelerating the system's convergence to a stable state, and allowing the charging pile's output current value to match the actual required current value more quickly.
[0016] Optionally, the step of pre-compensating the equivalent impedance to be configured based on the output current overshoot deviation includes: Calculate the average adjustment time required for the charging pile to adjust from the current output current value to the next target current value based on the response delay time in the historical response database; Calculate the theoretical target current value based on the equivalent impedance to be configured and the voltage value; The predicted actual output current value is obtained by adding the theoretical target current value to the output current overshoot deviation. Calculate the prediction deviation between the predicted actual output current value and the acceptable current value; The compensation correction amount for the equivalent impedance is calculated based on the prediction deviation and the average settling time. The compensation correction is superimposed on the equivalent impedance calculated based on the internal resistance parameter and the polarization parameter to obtain the pre-compensated equivalent impedance.
[0017] By adopting the above technical solution, during pre-compensation adjustment, the average adjustment time of the charging pile is first calculated based on the response delay time in the historical response database. Then, the theoretical target current value is calculated based on the equivalent impedance and voltage value to be configured. The predicted output current overshoot deviation is superimposed on the theoretical target current value to obtain the predicted actual output current value. The prediction deviation between this predicted actual output current value and the acceptable current value is then calculated. Finally, the compensation correction amount of the equivalent impedance is calculated by combining the prediction deviation and the average adjustment time and superimposed on the original equivalent impedance. This quantitative pre-compensation calculation method incorporates the overshoot behavior and adjustment time characteristics of the charging pile into the compensation algorithm, ensuring that the pre-compensated equivalent impedance configuration still makes the actual output current value close to the acceptable current value even when the charging pile experiences overshoot. This reduces current deviation and oscillation caused by the dynamic response characteristics of the charging pile, improving the dynamic accuracy and stability of the load simulation.
[0018] Optionally, after synchronously updating the equivalent impedance and the battery state parameters in the charging handshake message using the corrected load characteristic parameters, the method further includes: Record the rate of change of the corrected load characteristic parameters relative to the parameters before correction and the number of corrections; When the number of corrections exceeds a preset frequency threshold, it is determined that the output control of the charging pile is unstable, and a stability anomaly alarm is generated. When the rate of change of the parameter continues to increase, it is determined that the output characteristics of the charging pile have drifted, and a drift alarm is generated.
[0019] By adopting the above technical solution, the rate of change of the corrected load characteristic parameters relative to the original parameters and the number of corrections are recorded during the continuous operation of the load simulation system. When the number of corrections exceeds a preset frequency threshold within a unit time, the charging pile output control is deemed unstable and a stability anomaly alarm is generated. When the rate of parameter change shows a continuous increasing trend, the charging pile output characteristics are deemed to have drifted and a drift alarm is generated. This anomaly detection mechanism based on parameter correction behavior can reflect the working status of the charging pile through the dynamic interaction between the load simulation system and the charging pile, and promptly identify and alarm for output stability problems and characteristic drift problems of the charging pile. This enables the charging pile testing system to not only have load simulation functions, but also online diagnostic capabilities for the operating status of the charging pile, expanding the functional scope of the testing system and improving the comprehensiveness of charging pile performance evaluation.
[0020] In a second aspect, this application provides a load simulation device for charging pile testing, the load simulation device for charging pile testing comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors calling the computer instructions to cause the load simulation device for charging pile testing to perform the method described in the first aspect and any possible implementation thereof.
[0021] Thirdly, this application provides a computer program product containing instructions that, when run on a load simulation device for charging pile testing, cause the load simulation device for charging pile testing to perform the method described in the first aspect and any possible implementation thereof.
[0022] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on a load simulation device for charging pile testing, cause the load simulation device for charging pile testing to perform the method described in the first aspect and any possible implementation thereof. Attached Figure Description
[0023] Figure 1 This is a schematic flowchart of a load simulation method for testing a charging pile provided in an embodiment of this application; Figure 2 This is a schematic diagram of a current response dynamic waveform provided in an embodiment of this application; Figure 3 This is an exemplary hardware structure diagram of a load simulation device for charging pile testing provided in an embodiment of this application. Detailed Implementation
[0024] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification 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.
[0025] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0026] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0027] This application provides a load simulation method for testing charging piles, referring to... Figure 1 , Figure 1 This is a flowchart illustrating a load simulation method for testing a charging pile according to an embodiment of this application, including steps S101 to S107, as follows: S101: Real-time acquisition of voltage and current values output by the charging pile; calculation of the virtual state of charge value of the charging pile based on the voltage and current values.
[0028] The voltage value output by the charging pile represents the instantaneous voltage provided by the charging pile to the load at its output port, typically measured and recorded in volts. The current value output by the charging pile represents the instantaneous current provided by the charging pile to the load at its output port, typically measured and recorded in amperes. The virtual state of charge (VPC) value is a quantitative indicator used in a load simulation system to characterize the current charging state of a simulated battery. Its value range is typically 0% to 100%, where 0% represents a fully discharged state and 100% represents a fully charged state. This VPC value gradually increases as the charging process progresses, simulating the change in the state of charge of a real battery during charging. Real-time acquisition refers to the process of continuously acquiring voltage and current values at a preset sampling frequency during the charging pile's operation. The sampling frequency is typically set between 10Hz and 1000Hz to meet different testing accuracy requirements.
[0029] Specifically, a voltage sensor and a current sensor are installed at the input of the charging pile testing system. The voltage sensor's measuring terminals are connected to the positive and negative output ports of the charging pile to measure the port voltage, and the current sensor is connected in series in the charging pile's output circuit to measure the current flowing through the load. The sensors transmit the collected analog signals to the data acquisition module, which performs analog-to-digital conversion on the analog signals and reads the voltage and current values according to a preset sampling period. After obtaining the voltage and current values, the control unit calculates the virtual state of charge (SOC) value based on the accumulated charging amount. The calculation process includes integrating the current value over time to obtain the amount of charge charged within the sampling period, adding this amount of charge to the previous accumulated charge to obtain the total accumulated charge, and then dividing the total accumulated charge by the preset virtual battery capacity to obtain the virtual SOC value. The virtual battery capacity is preset according to the test requirements, for example, set to 50 Ah or 100 Ah to simulate batteries of different capacity specifications.
[0030] In some embodiments, the virtual state of charge (VPC) value can be calculated in several ways. Optionally, coulombometry can be used. First, an initial VPC value is set at the start of the test. Then, in each sampling period, the collected current value is multiplied by the time interval of the sampling period to obtain the charge increment in that period. The charge increment is divided by the virtual battery capacity and converted to a percentage, then added to the VPC value of the previous period to obtain the VPC value of the current period. This method directly reflects the charging progress through charge accumulation. Optionally, a voltage-state-of-charge (VPC) characteristic curve method can be used. The open-circuit voltage and VPC correspondence curve of a standard battery are pre-stored in the system. During the charging interval or when the charging current is low, the output voltage of the charging pile is measured. Based on the measured voltage value, the corresponding VPC value is found in the voltage-state-of-charge characteristic curve, and the found VPC value is used as the current virtual VPC value. This method utilizes the physical correlation between voltage and VPC to achieve state estimation. It is understood that a combination of coulombometry and voltage estimation methods can also be used to calculate the virtual VPC value; this is not limited here.
[0031] S102: Obtain the internal resistance parameter and polarization parameter from the pre-stored state-of-charge-load characteristic mapping table based on the virtual state-of-charge value.
[0032] The state-of-charge (POC)-load characteristic mapping table is a pre-established data table stored in the test system. This table records the relationship between internal resistance and polarization parameters corresponding to different virtual POC values. The data in the table is usually derived from the electrochemical characteristic test results of standard batteries under different POC states. Internal resistance parameters are physical quantities used to characterize the ohmic resistance characteristics inside the battery. This parameter reflects the instantaneous voltage drop caused by factors such as electrode material resistance, electrolyte resistance, and contact resistance when current flows through the battery. It is usually measured in ohms or milliohms, and the internal resistance parameter exhibits different numerical characteristics as the battery's POC changes. Polarization parameters are physical quantities used to characterize the voltage deviation phenomenon caused by electrochemical reaction kinetics and concentration diffusion during battery charging and discharging. Polarization parameters typically include polarization resistance and polarization capacitance, used to describe the dynamic response characteristics of the battery terminal voltage over time.
[0033] Specifically, after receiving the current virtual state of charge (VPC) value, the control unit accesses a pre-stored VPC-load characteristic mapping table in memory. This mapping table uses the VPC value as the index and the internal resistance parameter and polarization parameter as the query results. During the query process, it first determines whether the current VPC value exactly matches a discrete VPC value in the mapping table. If an exact match exists, the corresponding internal resistance parameter and polarization parameter are directly read. If the current VPC value lies between two adjacent discrete VPC values in the mapping table, the internal resistance parameter and polarization parameter are calculated using an interpolation method. During interpolation calculation, the interval in which the current VPC value is located and the VPC values and corresponding parameter values at both ends of the interval are first determined. Then, the interpolation weight is calculated based on the relative position of the current VPC value in the interval. The internal resistance parameter and polarization parameter at both ends of the interval are weighted and calculated with the interpolation weight to obtain the internal resistance parameter and polarization parameter corresponding to the current VPC value.
[0034] In some embodiments, parameter lookup can be implemented in several ways. Optionally, a direct lookup table method can be used. The state of charge-load characteristic mapping table is divided into multiple discrete points according to the state of charge value from 0% to 100% with a fixed step size. Each discrete point corresponds to a set of internal resistance parameters and polarization parameters. During the lookup, the current virtual state of charge value is rounded to the nearest discrete point, and the parameter value corresponding to that discrete point is directly read as the lookup result. This method is simple to calculate but has low accuracy when the discrete point interval is large. Optionally, a linear interpolation method can be used. When the current virtual state of charge value is between two adjacent discrete points in the mapping table, the state of charge values of the two discrete points are recorded as SOC1 and SOC2, and the corresponding internal resistance parameters are R1 and R2, respectively. The interpolation coefficient k is calculated as the difference between the current virtual state of charge value and SOC1 divided by the difference between SOC2 and SOC1. Then, the current internal resistance parameter is calculated as R1 plus the product of k and R2 minus R1. The same interpolation method is used to calculate the polarization parameter. This method has high accuracy when the parameters change linearly with the state of charge. It is understandable that higher-order interpolation or spline interpolation can also be used to query parameters in order to improve the calculation accuracy of nonlinear regions; this is not a limitation here.
[0035] S103: Calculate the acceptable current value of the charging pile based on the internal resistance parameter, polarization parameter and voltage value.
[0036] The acceptable current value refers to the maximum charging current that the simulated battery can safely accept under the current virtual state of charge. This current value is determined by the battery's internal resistance, polarization characteristics, and terminal voltage. It is used to indicate the current allowable upper limit of charging current to the charging pile. After receiving this acceptable current value, the charging pile should control its output current to not exceed this value. The calculation of the acceptable current value needs to comprehensively consider the battery's voltage and power limitations. During the charging process, as the virtual state of charge increases and the terminal voltage rises, the acceptable current value usually shows a gradual decreasing trend to simulate the phenomenon of decreased current acceptance capability of a real battery in the later stages of charging. The voltage value refers to the current value of the charging pile's output voltage collected at the time of this step.
[0037] Specifically, the control unit establishes a voltage-current relationship equation based on the battery's equivalent circuit model to calculate the acceptable current value. In the equivalent circuit model, the battery's terminal voltage equals the open-circuit voltage minus the internal resistance voltage drop minus the polarization voltage drop. First, the corresponding open-circuit voltage value is retrieved from the pre-stored open-circuit voltage-charge state curve based on the current virtual state of charge. Then, the battery's maximum allowable charging voltage is set as the upper limit voltage constraint. When calculating the acceptable current value, assuming the charging current is I, the internal resistance voltage drop equals the product of the internal resistance parameter and the current I. The polarization voltage drop is calculated using the polarization parameter and the current I through the polarization model. The equation is established as: the maximum allowable charging voltage equals the open-circuit voltage minus the internal resistance parameter multiplied by the current I minus the polarization voltage drop. Solving this equation yields the maximum current value that satisfies the voltage constraint. Simultaneously, it is necessary to check whether this current value exceeds the battery's maximum allowable charging current limit. If it does, the acceptable current value is set as the maximum allowable charging current limit; if it does not exceed the limit, the calculated current value is used as the acceptable current value.
[0038] In some embodiments, the acceptable current value can be calculated in various ways. Optionally, a calculation method based on a first-order RC equivalent circuit model can be used, in which the polarization characteristics are represented by an RC parallel network, the polarization resistance is denoted as Rp, the polarization capacitance is denoted as Cp, and the dynamic change of the polarization voltage Vp satisfies the differential equation that the derivative of Cp multiplied by Vp with respect to time is equal to the current I minus Vp divided by Rp. Under steady-state conditions, it is assumed that the polarization voltage is equal to the polarization resistance multiplied by the current, and the terminal voltage equation is established as the maximum allowable charging voltage is equal to the open-circuit voltage minus the sum of the internal resistance parameter and the polarization resistance multiplied by the current I. Solving for the acceptable current value, the difference between the maximum allowable charging voltage and the open-circuit voltage is divided by the sum of the internal resistance parameter and the polarization resistance. Optionally, a power-limit-based calculation method can be used. First, the maximum allowable charging power Pmax of the battery is set. Based on the relationship that power equals voltage multiplied by current, the current value is initially calculated as Pmax divided by the current voltage value. Then, it is verified whether this current value, when applied to the equivalent circuit model, will cause the terminal voltage to exceed the maximum allowable charging voltage. If it will exceed the voltage limit, an iterative method is used to gradually reduce the current value until the voltage constraint is met. The maximum current value that meets the constraint is taken as the acceptable current value. It is understood that a correction method considering the influence of battery temperature can also be used to calculate the acceptable current value; this is not limited here.
[0039] S104: After converting the internal resistance parameters and polarization parameters into battery state parameters and writing them into the charging handshake message, the charging handshake message is sent to the charging pile.
[0040] Battery status parameters refer to standardized parameters defined in the charging communication protocol that describe the current state of the battery. These parameters typically include information such as battery state of charge, battery voltage, battery temperature, maximum allowable charging current, and maximum allowable charging voltage. The format and encoding of these parameters follow specific charging communication standards. The charging handshake message is a data packet used for information exchange between the charging pile and the battery management system. This message contains various parameters to inform the charging pile of the current battery status and charging requirements. After receiving the charging handshake message, the charging pile parses the parameters and adjusts the output voltage and current accordingly. The conversion process refers to converting the internal resistance parameters and polarization parameters obtained from the state of charge-load characteristic mapping table into battery status parameters in the format specified by the charging communication protocol. This conversion needs to consider the parameter dimensions, numerical range, and encoding rules.
[0041] Specifically, after obtaining the internal resistance and polarization parameters, the control unit first calculates the battery state parameters required by the charging communication protocol based on these parameters. It then determines the value of the state of charge field in the message based on the current virtual state of charge value. The acceptable current value calculated based on the internal resistance, polarization parameters, and current voltage value is filled into the maximum permissible charging current field of the message. The value of the maximum permissible charging voltage field is determined based on the battery type and safety requirements. If the communication protocol requires battery internal resistance information, the internal resistance parameter is converted according to the numerical range and precision specified in the protocol and filled into the corresponding field. For polarization parameters, if there is no directly corresponding field in the communication protocol, the impact of the polarization parameter on the charging current limit is reflected in the maximum permissible charging current field. After completing the parameter conversion and field filling, the control unit encapsulates each field according to the data frame format of the charging handshake message, adding information such as a message header, data length, and checksum, and then sends the charging handshake message to the charging pile through the communication interface.
[0042] In some embodiments, the sending of charging handshake messages can be achieved in several ways. Optionally, CAN bus communication can be used. The test system is configured with a CAN communication controller, which encodes the encapsulated charging handshake message according to the data frame format of the CAN 2.0 protocol, sets an identifier for the message to indicate that the message type is battery status information, and sends the message to the CAN communication port of the charging pile through the CAN bus physical interface. The CAN controller of the charging pile receives the message and transmits the data to the charging control unit for parsing. This method is suitable for charging pile testing that conforms to the national standard GB / T 27930 charging communication protocol. Optionally, Ethernet communication can be used. The test system is configured with an Ethernet interface, encapsulates the charging handshake message according to the TCP / IP protocol stack, uses the message format specified by the charging communication protocol at the application layer, and sends the data packet to the Ethernet port of the charging pile through the Ethernet physical connection. After receiving the data packet, the charging pile parses it layer by layer to obtain the battery status parameters. This method is suitable for charging pile testing that uses high-power charging communication protocols such as ISO 15118. It is understood that wireless communication or other fieldbus methods can also be used to send charging handshake messages; this is not limited here.
[0043] S105: Configure the equivalent impedance of the programmable electronic load according to the internal resistance parameters and polarization parameters, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process.
[0044] In this context, a programmable electronic load (PIN) refers to an electronic device capable of adjusting its load characteristics according to external control signals. This device can simulate different load impedance characteristics to absorb current and consume power from a power source, and is used in charging pile testing to replace a real battery in handling the charging pile's output. Equivalent impedance refers to the load impedance value obtained by comprehensively converting the battery's internal resistance and polarization parameters. This equivalent impedance makes the PIN exhibit the same voltage-current characteristics as a real battery. When the charging pile outputs current to the PIN, the relationship between the load terminal voltage and current conforms to the characteristics of the battery's equivalent circuit model. Configuring the equivalent impedance refers to transmitting the calculated equivalent impedance value to the PIN via control commands, causing the load to adjust the operating state of its internal power transistors according to this impedance value to achieve the target impedance characteristics.
[0045] Specifically, the control unit calculates the equivalent impedance configuration value of the programmable electronic load based on the internal resistance parameters and polarization parameters. For a first-order RC equivalent circuit model, the internal resistance parameter is treated as the equivalent series resistance component, and the RC network composed of polarization resistance and polarization capacitor is equivalent to a frequency-dependent impedance component. Under DC or low-frequency operating conditions, the polarization impedance can be simplified to the polarization resistance, at which point the equivalent impedance equals the sum of the internal resistance parameter and the polarization resistance. The control unit converts the calculated equivalent impedance value into control parameters that the programmable electronic load can recognize. If the load supports constant resistance operation mode, the equivalent impedance value is directly sent to the load controller as the impedance setpoint. If the load does not support constant resistance mode, the target current value is calculated based on the current voltage value and the equivalent impedance value, and this target current value is sent to the load controller as the constant current setpoint. After receiving the control parameters, the programmable electronic load's internal control circuit adjusts the gate voltage or base current of the power transistor, changing the conduction degree of the power transistor, so that the load exhibits a voltage-current relationship corresponding to the equivalent impedance, absorbing the corresponding current from the charging pile and converting electrical energy into heat energy consumption.
[0046] In some embodiments, equivalent impedance configuration and load control can be achieved in various ways. Optionally, a constant resistance operating mode is adopted. After calculating the equivalent impedance value, the impedance setting command is sent to the programmable electronic load via a communication interface. The load controller enters the constant resistance operating mode according to the received impedance setting value. In this mode, the load collects the terminal voltage in real time and calculates the target current value, which is equal to the terminal voltage divided by the set impedance value. Then, the absorbed current is controlled to follow the change of the target current value, thereby achieving constant impedance characteristics. When the output voltage of the charging pile changes, the current absorbed by the load changes proportionally. Optionally, a dynamic impedance simulation mode is adopted, considering the dynamic effect of polarization capacitors. The control unit establishes a discretized state equation based on the transfer function of a first-order RC network. In each control cycle, the updated polarization voltage value for the current cycle is calculated based on the current voltage value, the polarization voltage value of the previous cycle, and the current value. Then, the target current value is calculated based on the updated polarization voltage and internal resistance voltage drop, and the target current value is sent to the programmable electronic load for current control. This method can simulate the dynamic current response characteristics of the battery when the voltage jumps. It is understandable that multi-order RC networks or fractional-order models can also be used to achieve more accurate dynamic impedance simulation, which is not limited here.
[0047] S106: During the current absorption period of the programmable electronic load, the actual output current value of the charging pile is collected, and the deviation between the actual output current value and the acceptable current value is calculated.
[0048] The programmable electronic load current absorption period refers to the time during which the programmable electronic load absorbs current from the charging pile according to its configured equivalent impedance and operates in a stable state. During this period, the charging pile adjusts its output according to the received charging handshake message and provides charging current to the load. The actual output current value refers to the value of the charging pile's output current actually measured by the current sensor during the load current absorption period. This value reflects the charging pile's true output capability and control response under the current operating conditions. The deviation value is the difference between the actual output current value and the acceptable current value. A positive deviation value indicates that the actual output current of the charging pile is greater than the acceptable current value informed by the load simulation system through the charging handshake message, while a negative deviation value indicates that the actual output current of the charging pile is less than the acceptable current value. The magnitude and direction of the deviation value reflect the degree of matching between the charging pile's output characteristics and the load simulation characteristics.
[0049] Specifically, after the programmable electronic load begins to absorb current according to its equivalent impedance, the control unit continuously monitors the output status of the charging pile. The current sensor collects the current signal flowing through the load circuit at a set sampling frequency. The collected analog signal is amplified and filtered by a signal conditioning circuit before being sent to an analog-to-digital converter for digital processing. The control unit reads the digitized current sample value from the analog-to-digital converter and performs a moving average filter on multiple consecutively collected sample values to eliminate measurement noise and transient interference. When the charging pile output current reaches a stable state, i.e., the rate of change of current is less than a set threshold within multiple consecutive sampling periods, the control unit records the measured current value at this time as the actual output current value. After obtaining the actual output current value, the control unit reads the acceptable current value calculated in step S103 and performs a subtraction operation to calculate the deviation value, which is equal to the actual output current value minus the acceptable current value. If the absolute value of the deviation is small and within the allowable error range, it indicates that the output control of the charging pile matches the load simulation characteristics well. If the absolute value of the deviation is large, it indicates a mismatch, requiring parameter correction.
[0050] In some embodiments, the deviation value can be calculated in several ways. Optionally, an instantaneous deviation calculation method can be used. At a certain moment after the charging pile's output current reaches a steady state, the actual output current value at that moment is collected, and the deviation value is obtained by directly subtracting the acceptable current value from the instantaneous current value. This method is simple to calculate but easily affected by instantaneous fluctuations, and is suitable for situations where the charging pile's output current has good stability. Optionally, an average deviation calculation method can be used. After the charging pile's output current reaches a steady state, multiple actual output current values are continuously collected within a preset observation time window. The arithmetic mean of these sampled values is calculated as a representative actual output current value, and then the deviation value is obtained by subtracting this average value from the acceptable current value. This method eliminates the influence of random fluctuations through time averaging, and can more accurately reflect the systematic deviation between the charging pile's output and the acceptable current. It is suitable for situations where the charging pile's output has certain fluctuations. It is understood that weighted averaging or median filtering can also be used to process the sampled data to calculate the deviation value; this is not limited here.
[0051] S107: Correct the internal resistance parameter and polarization parameter according to the deviation value to obtain the corrected load characteristic parameter. Use the corrected load characteristic parameter to synchronously update the equivalent impedance and battery status parameter in the charging handshake message so that the load simulation characteristic can dynamically adapt to the actual output characteristic of the charging pile.
[0052] Among these, "corrected load characteristic parameters" refers to the new parameter values obtained by adjusting the original internal resistance and polarization parameters based on the deviation value. These corrected parameters are used to make the simulated load characteristics closer to the actual output characteristics of the charging pile, thereby reducing the deviation between the actual output current value and the acceptable current value in subsequent operations. "Synchronous update" refers to simultaneously completing the equivalent impedance configuration of the programmable electronic load and updating the battery status parameters in the charging handshake message within the same control cycle, ensuring that communication parameters are consistent with the physical characteristics of the load and avoiding charging pile control chaos caused by parameter asynchrony. "Dynamic adaptation" refers to the load simulation system's ability to automatically adjust its characteristics to follow changes in the actual output characteristics of the charging pile through continuous deviation detection and parameter correction, forming a closed-loop feedback adjustment.
[0053] Specifically, after obtaining the deviation value, the control unit first determines the sign and magnitude of the deviation value to determine the correction direction and magnitude. If the deviation value is positive, it indicates that the actual output current of the charging pile is greater than the acceptable current value, suggesting that the currently configured equivalent impedance is too small, and the internal resistance parameter or polarization parameter needs to be increased to improve the equivalent impedance and reduce the absorbed current. If the deviation value is negative, it indicates that the actual output current of the charging pile is less than the acceptable current value, suggesting that the currently configured equivalent impedance is too large or the output capacity of the charging pile is limited, and the internal resistance parameter or polarization parameter needs to be reduced. During the correction calculation, the parameter correction coefficient is determined based on the ratio of the deviation value to the acceptable current value. The internal resistance parameter is multiplied by 1 and the correction coefficient is added to obtain the corrected internal resistance parameter, and the polarization parameter is multiplied by 1 and the correction coefficient is added to obtain the corrected polarization parameter. Alternatively, the parameter increment can be directly calculated based on the deviation value according to the preset correction gain and added to the original parameter. After obtaining the corrected load characteristic parameters, the control unit recalculates the equivalent impedance value based on the corrected internal resistance parameter and polarization parameter, and sends a new impedance configuration command or current setting command to the programmable electronic load through the communication interface to complete the update of the equivalent impedance. Simultaneously, the corrected load characteristic parameters are converted into battery status parameters, the acceptable current value is recalculated, a new charging handshake message is encapsulated and sent to the charging pile, completing the synchronous update of communication parameters.
[0054] In some embodiments, parameter correction and synchronization updates can be achieved in various ways. Optionally, a proportional correction method is used, whereby the parameter correction coefficient k is calculated as the deviation value divided by the acceptable current value multiplied by a preset correction gain factor. The correction gain factor is typically set between 0.1 and 0.5 to avoid overcorrection. Then, the corrected internal resistance parameter is calculated as the original internal resistance parameter multiplied by 1 plus k, and the corrected polarization parameter is calculated as the original polarization parameter multiplied by 1 plus k. The equivalent impedance is recalculated based on the corrected parameters and configured into the programmable electronic load. Simultaneously, a new charging handshake message containing the corrected parameters is generated and sent. The correction magnitude of this method is proportional to the deviation value. Optionally, a PID correction method is employed. A PID controller is established with the deviation value as input. The proportional term is calculated as the current deviation value multiplied by the proportional coefficient Kp; the integral term is calculated as the cumulative sum of historical deviation values multiplied by the integral coefficient Ki; and the derivative term is calculated as the difference between the current and previous deviation values multiplied by the derivative coefficient Kd. These three terms are summed to obtain the control output. Based on the control output, the adjustment amounts for the internal resistance and polarization parameters are calculated and the parameter values are updated. Then, the equivalent impedance and charging handshake message are updated synchronously. This method achieves smoother and faster parameter convergence. It is understood that fuzzy control or adaptive control algorithms can also be used to achieve parameter correction and synchronous updates; this is not limited here.
[0055] Based on the above embodiments, as an optional embodiment, S105: configuring the equivalent impedance of the programmable electronic load according to the internal resistance parameters and polarization parameters, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process, may specifically include the following steps: S201: Convert the internal resistance parameter into the equivalent series resistance component, and convert the polarization parameter into the resistance and capacitance components of the equivalent RC network; calculate the equivalent impedance value of the programmable electronic load based on the equivalent series resistance component, the resistance component of the equivalent RC network, and the capacitance component, and calculate the target current value based on the equivalent impedance and voltage value.
[0056] The control unit directly assigns the internal resistance parameter as the equivalent series resistance component, the polarization resistance in the polarization parameter as the resistance component of the RC network, and the polarization capacitance as the capacitance component. Under DC steady-state conditions, the equivalent impedance value equals the equivalent series resistance component plus the resistance component of the RC network. The current output voltage value of the charging pile is acquired, and the target current value is calculated according to Ohm's law. The calculation method is to divide the voltage value by the equivalent impedance value, that is, divide the voltage value by the sum of the equivalent series resistance component and the resistance component of the RC network. This target current value is used as the current setpoint for the programmable electronic load for subsequent current control.
[0057] S202: Calculate the change in current between the current actual absorbed current and the target current value, and determine the slope of the current change based on the change in current.
[0058] The control unit reads the current actual absorbed current of the programmable electronic load and calculates the current change as equal to the target current value minus the current actual absorbed current. The current change slope is determined based on a preset current change time, calculated by dividing the current change by the current change time. The current change time is set according to test requirements, typically ranging from 0.1 to 2 seconds. Smaller time values achieve rapid current response, while larger time values simulate the current ramp-up characteristics of a battery. For example, if the current actual absorbed current is 10 amps, the target current value is 30 amps, and the current change time is set to 1 second, the current change is 20 amps, and the current change slope is 20 amps per second.
[0059] S203: Control the programmable electronic load to gradually change from the current actual absorbed current to the target current value according to the current change slope, so as to realize the programmable electronic load to absorb current from the charging pile according to the equivalent impedance to simulate the battery charging process.
[0060] The control unit sends a current control command to the programmable electronic load, which includes two parameters: a target current value and a current change slope. Based on the received current change slope, the control circuit of the programmable electronic load calculates the current increment in each control cycle, which is equal to the current change slope multiplied by the control cycle time. It then adds the current increment to the current setpoint from the previous cycle to obtain the current setpoint for the current cycle and adjusts the conduction level of the power transistor to ensure the actual absorbed current follows the setpoint. When the current setpoint reaches or exceeds the target current value, the current increase stops and is locked at the target current value. Throughout the gradual increase process, the current absorbed by the load from the charging pile grows smoothly, avoiding the impact of sudden current changes on the charging pile's output control, thus simulating the battery charging process.
[0061] Based on the above embodiments, as an optional embodiment, S107: the step of synchronously updating the equivalent impedance and battery state parameters in the charging handshake message using the corrected load characteristic parameters may specifically include the following steps: S301: Calculate the verification current value based on the corrected load characteristic parameters and voltage value, and calculate the verification deviation between the verification current value and the actual output current value.
[0062] The control unit converts the internal resistance and polarization parameters in the corrected load characteristic parameters into equivalent impedance, acquires the current output voltage value of the charging pile, and divides the voltage value by the equivalent impedance to obtain the verification current value. Simultaneously, it acquires the actual output current value of the charging pile, calculates the verification deviation value by subtracting the verification current value from the actual output current value, and takes the absolute value. For example, when the verification current value is 25 amps and the actual output current value is 23 amps, the verification deviation value is 2 amps.
[0063] S302: When the verification deviation value is less than the deviation value, confirm that the corrected load characteristic parameter is valid, and reconfigure the equivalent impedance using the corrected load characteristic parameter.
[0064] The control unit compares the verification deviation value with a preset deviation threshold. When the verification deviation value is less than the deviation threshold, it confirms that the corrected load characteristic parameters accurately reflect the current load characteristics. The control unit assigns the internal resistance parameter in the corrected load characteristic parameters as the equivalent series resistance component, converts the polarization parameter into the resistance and capacitance components of the equivalent RC network, recalculates the equivalent impedance value, and sends it to the programmable electronic load, completing the updated configuration of the equivalent impedance and enabling the load to operate according to the corrected characteristic parameters.
[0065] S303: Convert the corrected load characteristic parameters into updated battery status parameters and write them into the charging handshake message.
[0066] The control unit calculates the corresponding battery internal resistance value based on the internal resistance parameter in the corrected load characteristic parameters, calculates the equivalent state of charge parameters based on the polarization parameters and the current absorption current, and obtains the battery temperature parameter based on the load operating temperature. These parameters are encapsulated according to the data format specified in the charging communication protocol and written into the corresponding fields of the charging handshake message. The control unit sends the updated charging handshake message to the charging pile through the communication interface, ensuring that the battery state information received by the charging pile is consistent with the actual equivalent characteristics of the programmable electronic load, and ensuring that the charging pile adjusts its output according to the actual load state.
[0067] Based on the above embodiments, as an optional embodiment, S107: the step of synchronously updating the equivalent impedance and battery status parameters in the charging handshake message using the corrected load characteristic parameters further includes verifying that the deviation value is not less than the deviation value, which may specifically include the following steps: S401: When the verification deviation value is not less than the deviation value, the correction of the load characteristic parameter is deemed invalid; while keeping the polarization parameter unchanged, only the internal resistance parameter is reversed to obtain the first alternative parameter, and while keeping the internal resistance parameter unchanged, only the polarization parameter is reversed to obtain the second alternative parameter.
[0068] The control unit compares the verification deviation value with the deviation threshold. If the verification deviation value is not less than the deviation threshold, the correction of the load characteristic parameter is deemed invalid. The control unit reads the adjustment amount and direction of the internal resistance parameter during the original correction process. Keeping the polarization parameter unchanged, the internal resistance parameter is adjusted by the same amount in the opposite direction to obtain the first candidate parameter. Simultaneously, the control unit reads the adjustment amount and direction of the polarization parameter, keeping the internal resistance parameter unchanged, and adjusts the polarization parameter in the opposite direction to obtain the second candidate parameter. For example, if the original correction increases the internal resistance parameter by 10%, the reverse correction decreases the internal resistance parameter by 10%. These two sets of candidate parameters are then used for subsequent verification.
[0069] S402: Calculate the first verification current value and the second verification current value based on the first alternative parameter, the second alternative parameter, and the voltage value, respectively.
[0070] The control unit converts the internal resistance and polarization parameters from the first candidate parameters into a first equivalent impedance, acquires the current output voltage value of the charging pile, and divides the voltage value by the first equivalent impedance to obtain the first verification current value. Similarly, the second candidate parameter is converted into a second equivalent impedance, and the voltage value is divided by the second equivalent impedance to obtain the second verification current value. For example, if the equivalent impedance corresponding to the first candidate parameter is 10 ohms and the voltage value is 200 volts, then the first verification current value is 20 amperes. If the equivalent impedance corresponding to the second candidate parameter is 8 ohms, then the second verification current value is 25 amperes. These two verification current values are used for subsequent deviation comparison.
[0071] S403: Calculate the first deviation between the first verified current value and the actual output current value, and the second deviation between the second verified current value and the actual output current value; select the alternative parameter corresponding to the smaller of the first deviation and the second deviation as the corrected load characteristic parameter, and use the corrected load characteristic parameter to update the equivalent impedance and battery state parameters.
[0072] The control unit collects the actual output current value of the charging pile, calculates the first deviation by subtracting the actual output current value from the first verification current value, and calculates the second deviation by subtracting the actual output current value from the second verification current value. The values of the first and second deviations are compared, and the candidate parameter corresponding to the smaller deviation is selected as the final corrected load characteristic parameter. This corrected load characteristic parameter is converted into an equivalent impedance and configured into a programmable electronic load. Simultaneously, this parameter is converted into a battery status parameter, written into the charging handshake message, and sent to the charging pile, completing the synchronous update of the equivalent impedance and battery status parameters.
[0073] Based on the above embodiments, as an optional embodiment, S106: after the step of acquiring the actual output current value of the charging pile during the current absorption period of the programmable electronic load, a step of predicting the current deviation of the next cycle is further included, which may specifically include the following steps: S501: Record the response delay time between the time the charging handshake message is sent and the time when the actual output current value reaches a steady state; calculate the overshoot of the actual output current value relative to the acceptable current value; obtain the current virtual state of charge value corresponding to the time the charging handshake message is sent; calculate the equivalent impedance change of the equivalent impedance value configured this time for the programmable electronic load relative to the equivalent impedance value configured last time; and store the response delay time, overshoot, current virtual state of charge value, and equivalent impedance change as associated data in the historical response database.
[0074] The response delay time refers to the time difference between the sending of the charging handshake message and the moment when the actual output current of the charging pile reaches a steady state. Overshoot refers to the portion of the actual output current value that exceeds the acceptable current value; it is calculated by subtracting the acceptable current value from the actual output current value. Equivalent impedance change refers to the difference between the currently configured equivalent impedance value and the previously configured equivalent impedance value; this difference reflects the adjustment range of the load characteristics.
[0075] The control unit records the moment the charging handshake message is sent as the start time, continuously collects the actual output current value of the charging pile, and determines that the current has reached steady state when the rate of change of current is less than a set threshold within several consecutive sampling periods. This moment is recorded as the end time, and the response delay time is calculated to be equal to the end time minus the start time. The actual output current value after steady state is collected, and the overshoot is obtained by subtracting the acceptable current value from this value. The virtual state of charge value corresponding to the moment the charging handshake message is sent is read, along with the currently configured equivalent impedance value and the previously configured equivalent impedance value, and the equivalent impedance change is calculated. The response delay time, overshoot, virtual state of charge value, and equivalent impedance change are written as a linked record to the historical response database. For example, if the response delay time is 0.5 seconds, the overshoot is 3 amps, the virtual state of charge value is 50%, and the equivalent impedance change is -2 ohms, these four parameters are stored as a single data record.
[0076] S502: Extract several historical data from the historical response database where the absolute value of the difference between the current virtual state of charge and the current virtual state of charge is less than a preset state of charge threshold; calculate multiple ratios between the overshoot and the change in equivalent impedance in the historical data; calculate the equivalent impedance value to be updated based on the corrected load characteristic parameters; calculate the change in the equivalent impedance value to be updated relative to the current equivalent impedance value; and predict the output current overshoot deviation that the charging pile will generate in the next cycle based on the ratios and the change in the change in the current.
[0077] The control unit reads the current virtual state of charge (VPC) value and filters historical data records from the historical response database where the absolute value of the difference between the current VPC value and the current value is less than a preset VPC threshold. For each filtered historical data record, the overshoot is calculated and divided by the change in equivalent impedance to obtain a ratio. The internal resistance and polarization parameters in the corrected load characteristic parameters are converted into the equivalent impedance value to be updated, and the change to be updated is calculated as the equivalent impedance value to be updated minus the current equivalent impedance value. The average ratio is obtained by averaging the filtered ratios, and the average ratio is multiplied by the change to be updated to obtain the output current overshoot deviation. For example, if the ratios of three filtered historical data records are -1.5, -1.2, and -1.8 amperes per ohm, the average ratio is -1.5 amperes per ohm, and the change to be updated is -3 ohms, then the output current overshoot deviation is -1.5 multiplied by -3, which equals 4.5 amperes.
[0078] like Figure 2 As shown, Figure 2This is a schematic diagram of a dynamic waveform of current response provided in an embodiment of this application. With time on the horizontal axis and current on the vertical axis, the diagram visually demonstrates the dynamic response characteristics of the charging pile as its actual output current gradually adjusts from the initial state to a steady state after receiving a charging handshake message. The acceptable current value (I_ref) indicated by the dashed line represents the target current value determined according to the battery management system requirements carried in the charging handshake message, while the solid black curve reflects the actual trajectory of the charging pile's output current over time during operation.
[0079] From a time perspective, time t0 marks the instant the control unit sends a charging handshake message to the charging pile. At this point, the charging pile has not yet responded to the load demand, and the actual output current is still in its initial low state. As time progresses, the charging pile's internal control system begins to parse the message and adjust the output power. The actual output current curve shows a rapid upward trend. However, due to the charging pile's own electrical inertia, the control algorithm's response delay, and the dynamic characteristics of the power regulation loop, this upward process is not instantaneous but requires a response adjustment time. This time span from t0 to t1 is the response delay time defined in this embodiment of the application. It quantitatively reflects the time delay characteristics required for the charging pile to achieve a stable output of the target current from receiving the command. Accurate acquisition of this parameter is a key prerequisite for subsequent implementation of impedance pre-compensation control.
[0080] More importantly, Figure 2 This clearly reveals the overshoot phenomenon commonly found in the dynamic adjustment process of charging piles. The curve does not converge smoothly when approaching the acceptable current value, but instead continues to surge to the peak point after reaching the target value, and then finally stabilizes near the acceptable current value after several oscillations. The overshoot, marked by vertical double arrows in the figure, precisely defines the deviation between the actual peak output current and the acceptable current value. This overshoot behavior stems from the combined effects of multiple factors, including improper tuning of the PI or PID controller parameters inside the charging pile, energy inertia release during sudden load changes, and impedance mismatch between the charging pile and the electronic load. Through statistical analysis of the overshoot in historical test data, this application's embodiments can establish an overshoot prediction model for a specific charging pile model under different operating conditions. This allows for the pre-compensation correction of equivalent impedance when controlling the programmable electronic load, actively suppressing or eliminating the overshoot phenomenon, making the actual output current curve approach the target value more quickly and smoothly, thereby significantly improving the accuracy of charging pile performance testing and the stability of the charging process.
[0081] S503: Based on the overshoot deviation of the output current, the equivalent impedance to be configured is pre-compensated and adjusted so that the current value output by the charging pile matches the actual required current value.
[0082] The control unit calculates the compensation correction amount of the equivalent impedance based on the predicted output current overshoot deviation. The calculation method is as follows: first, the ideal equivalent impedance is calculated based on the current voltage value and the actual required current value. Then, the compensation impedance increment is calculated based on the output current overshoot deviation and the voltage value. This compensation impedance increment is added to the equivalent impedance value to be updated to obtain the pre-compensated equivalent impedance value. For example, if the output current overshoot deviation is 4.5 amperes, indicating that the actual output current value of the charging pile will exceed the target value by 4.5 amperes, and the current voltage value is 200 volts, then the compensation impedance increment is the voltage value divided by the overshoot deviation, i.e., 200 divided by 4.5, approximately equal to 44.4 ohms. This increment is added to the equivalent impedance value to be updated, increasing the equivalent impedance and thus reducing the target current value, offsetting the overshoot phenomenon of the charging pile. The control unit uses the pre-compensated equivalent impedance value to configure the programmable electronic load, making the actual output current value of the charging pile closer to the actual required current value.
[0083] Based on the above embodiments, as an optional embodiment, S503: the step of pre-compensating and adjusting the equivalent impedance to be configured according to the output current overshoot deviation may specifically include the following steps: S601: Calculate the average adjustment time required for the charging pile to adjust from the current output current value to the next target current value based on the response delay time in the historical response database.
[0084] The control unit extracts several historical data records from the historical response database whose absolute value of the difference between the current virtual state of charge (VCC) value and the current VCC value is less than a preset VCC threshold. It then reads the response delay time from each record. The unit calculates the arithmetic mean of all extracted response delay times by summing them and dividing by the number of records. For example, if the extracted response delay times for five historical data records are 0.4 seconds, 0.5 seconds, 0.6 seconds, 0.5 seconds, and 0.5 seconds, summing these five times gives 2.5 seconds, which, when divided by 5, yields an average adjustment time of 0.5 seconds. This average adjustment time is used to predict the timing characteristics of the charging pile during the next adjustment cycle, providing a time parameter for calculating the compensation correction.
[0085] S602: Calculate the theoretical target current value based on the equivalent impedance and voltage value to be configured; add the theoretical target current value to the output current overshoot deviation to obtain the predicted actual output current value; calculate the prediction deviation between the predicted actual output current value and the acceptable current value.
[0086] The theoretical target current value refers to the theoretical current value calculated using Ohm's law based on the equivalent impedance value to be configured and the current voltage value. The predicted actual output current value refers to the predicted output current value of the charging pile when it actually reaches steady state in the next cycle, taking into account the overshoot characteristics of the charging pile. The prediction deviation is the difference between the predicted actual output current value and the acceptable current value, which is used to evaluate the degree of conformity of the current after configuration adjustment.
[0087] The control unit reads the equivalent impedance value to be configured and the currently collected voltage value, and divides the voltage value by the equivalent impedance value to obtain the theoretical target current value. The theoretical target current value is added to the output current overshoot deviation to obtain the predicted actual output current value, which reflects the actual output level of the charging pile under overshoot. The acceptable current value corresponding to the current virtual state of charge and charging strategy is read, and the predicted actual output current value is calculated by subtracting the acceptable current value from the predicted actual output current value to obtain the prediction deviation. For example, if the equivalent impedance to be configured is 10 ohms and the voltage is 200 volts, then the theoretical target current value is 20 amps. If the output current overshoot deviation is 4.5 amps, then the predicted actual output current value is 20 plus 4.5 equals 24.5 amps. If the acceptable current value is 20 amps, then the prediction deviation is 24.5 minus 20 equals 4.5 amps. This prediction deviation is used to calculate the compensation correction amount for the equivalent impedance.
[0088] S603: Calculate the compensation correction amount of the equivalent impedance based on the prediction deviation and the average settling time; superimpose the compensation correction amount onto the equivalent impedance calculated based on the internal resistance parameter and polarization parameter to obtain the pre-compensated equivalent impedance.
[0089] The compensation correction amount refers to the impedance increment or decrement that needs to be adjusted to the equivalent impedance value to offset the prediction deviation. The pre-compensated equivalent impedance refers to the final configuration value obtained by adding the compensation correction amount to the original calculated equivalent impedance value. This value, after being configured into the programmable electronic load, makes the actual output current value of the charging pile close to the acceptable current value.
[0090] The control unit calculates the compensation impedance increment based on the prediction deviation and the current voltage value. The calculation method involves dividing the voltage value by the absolute value of the prediction deviation to obtain the impedance increment. When the prediction deviation is positive, it indicates that the predicted actual output current value is greater than the acceptable current value, requiring an increase in the equivalent impedance to reduce the current; in this case, the compensation correction is positive. When the prediction deviation is negative, the compensation correction is negative. The equivalent impedance value calculated based on the internal resistance and polarization parameters in the corrected load characteristic parameters is read, and this value is added to the compensation correction to obtain the pre-compensated equivalent impedance value. For example, if the prediction deviation is 4.5 amperes and the voltage value is 200 volts, then the compensation correction is 200 divided by 4.5, approximately equal to 44.4 ohms. The original equivalent impedance value is 10 ohms, so the pre-compensated equivalent impedance is 10 plus 44.4, equal to 54.4 ohms. The control unit uses this pre-compensated equivalent impedance value to configure the programmable electronic load.
[0091] Based on the above embodiments, as an optional embodiment, S107: after the step of synchronously updating the equivalent impedance and battery status parameters in the charging handshake message using the corrected load characteristic parameters, an alarm step is also included, which may specifically include the following steps: S701: Records the rate of change of the corrected load characteristic parameters relative to the parameters before correction and the number of corrections; when the number of corrections exceeds the preset frequency threshold, it is determined that the charging pile output control is unstable and a stability abnormality alarm is generated; when the rate of change of parameters continues to increase, it is determined that the charging pile output characteristics have drifted and a drift alarm is generated.
[0092] After each update of the equivalent impedance and battery status parameters using corrected load characteristic parameters, the control unit records the load characteristic parameter values before and after correction. It calculates the parameter change rate by dividing the difference between the corrected and uncorrected parameter values by the absolute value of the uncorrected parameter value, then multiplying by 100%. This change rate is stored in the alarm monitoring data table. Simultaneously, a correction count counter is incremented, which is reset at the end of a preset time window. The control unit reads the number of corrections within the current time window. When the number of corrections exceeds a preset frequency threshold, it determines that the charging pile output control is unstable, generates a stability anomaly alarm, and sends the alarm information via the communication interface. It reads the absolute values of the parameter change rates for the most recent few times from the alarm monitoring data table, calculates the difference between two consecutive absolute values of the parameter change rates, and determines that the parameter change rate is continuously increasing when the difference is positive for three or more consecutive times. This generates a drift alarm and sends the alarm information. For example, the absolute values of the parameter change rates in the last five corrections are 2%, 3%, 5%, 8%, and 12%, respectively, and the adjacent differences are 1%, 2%, 3%, and 4%, respectively. Since the differences are positive for four consecutive times, it is determined that the output characteristics of the charging pile have drifted.
[0093] The following describes an exemplary load simulation device for testing charging piles provided in an embodiment of this application. Figure 3 This is an exemplary hardware structure diagram of a load simulation device for charging pile testing provided in an embodiment of this application.
[0094] In some embodiments, the load simulation device for charging pile testing is a computer device or includes a computer device. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores data. The network interface of the computer device is used to communicate with other external terminals or servers via a network connection. In some embodiments, the network interface can be a wired network interface; in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, it implements the methods in the embodiments of this application.
[0095] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0096] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0097] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0098] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0099] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A load simulation method for testing charging piles, characterized in that, The method includes: Real-time acquisition of voltage and current values output by the charging pile; The virtual state of charge value of the charging pile is calculated based on the voltage value and the current value; The internal resistance parameter and polarization parameter are obtained by querying the pre-stored state of charge-load characteristic mapping table based on the virtual state of charge value. The acceptable current value of the charging pile is calculated based on the internal resistance parameter, the polarization parameter, and the voltage value. After converting the internal resistance parameter and the polarization parameter into battery state parameters and writing them into the charging handshake message, the charging handshake message is sent to the charging pile. Configure the equivalent impedance of the programmable electronic load according to the internal resistance parameter and the polarization parameter, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process; During the current absorption period of the programmable electronic load, the actual output current value of the charging pile is collected, and the deviation between the actual output current value and the acceptable current value is calculated. The internal resistance parameter and the polarization parameter are corrected according to the deviation value to obtain the corrected load characteristic parameter. The corrected load characteristic parameter is used to synchronously update the equivalent impedance and the battery status parameter in the charging handshake message so that the load simulation characteristics can dynamically adapt to the actual output characteristics of the charging pile.
2. The load simulation method for charging pile testing according to claim 1, characterized in that, The step of configuring the equivalent impedance of the programmable electronic load according to the internal resistance parameter and the polarization parameter, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process, includes: The internal resistance parameter is converted into an equivalent series resistance component, and the polarization parameter is converted into the resistance and capacitance components of an equivalent RC network. The equivalent impedance value of the programmable electronic load is calculated based on the equivalent series resistance component, the resistance component and the capacitance component of the equivalent RC network, and the target current value is calculated based on the equivalent impedance and the voltage value. Calculate the change in current between the current actual absorbed current and the target current value, and determine the slope of the current change based on the change in current. The programmable electronic load is controlled to gradually change from the current actual absorbed current to the target current value according to the current change slope, so that the programmable electronic load absorbs current from the charging pile according to the equivalent impedance to simulate the battery charging process.
3. The load simulation method for charging pile testing according to claim 1, characterized in that, The step of synchronously updating the equivalent impedance and the battery status parameters in the charging handshake message using the corrected load characteristic parameters includes: Calculate the verification current value based on the corrected load characteristic parameters and the voltage value, and calculate the verification deviation value between the verification current value and the actual output current value. When the verification deviation value is less than the deviation value, the corrected load characteristic parameter is confirmed to be valid, and the equivalent impedance is reconfigured using the corrected load characteristic parameter; The corrected load characteristic parameters are converted into updated battery status parameters and written into the charging handshake message.
4. The load simulation method for charging pile testing according to claim 3, characterized in that, The method further includes: When the verification deviation value is not less than the deviation value, the corrected load characteristic parameter is determined to be invalid; While keeping the polarization parameter unchanged, only the internal resistance parameter is reversed to obtain the first candidate parameter; while keeping the internal resistance parameter unchanged, only the polarization parameter is reversed to obtain the second candidate parameter. Calculate the first verification current value and the second verification current value based on the first alternative parameter and the second alternative parameter and the voltage value, respectively; Calculate the first deviation between the first verified current value and the actual output current value, and the second deviation between the second verified current value and the actual output current value; The alternative parameter corresponding to the smaller value of the first deviation and the second deviation is selected as the corrected load characteristic parameter, and the equivalent impedance and the battery state parameter are updated using the corrected load characteristic parameter.
5. The load simulation method for charging pile testing according to claim 1, characterized in that, After acquiring the actual output current value of the charging pile during the current absorption period of the programmable electronic load, the process further includes: Record the response delay time between the time the charging handshake message is sent and the time when the actual output current value reaches a steady state. Calculate the overshoot of the actual output current value relative to the acceptable current value; Obtain the current virtual state of charge value corresponding to the time the charging handshake message is sent, and calculate the equivalent impedance change of the equivalent impedance value configured for the programmable electronic load this time relative to the equivalent impedance value configured last time. The response delay time, the overshoot, the current virtual state of charge value, and the equivalent impedance change are stored as associated data in the historical response database. Extract several historical data points from the historical response database whose absolute value of the difference between the current virtual state of charge value and the current virtual state of charge value is less than a preset state of charge threshold, and calculate multiple ratio relationships between the overshoot and the equivalent impedance change in the historical data. The equivalent impedance value to be updated is calculated based on the corrected load characteristic parameters, and the change in the equivalent impedance value to be updated relative to the current equivalent impedance value is calculated. Based on the ratio relationships and the change to be updated, predict the output current overshoot deviation that the charging pile will generate in the next cycle; The equivalent impedance to be configured is pre-compensated and adjusted according to the overshoot deviation of the output current so that the current value output by the charging pile matches the actual required current value.
6. The load simulation method for charging pile testing according to claim 5, characterized in that, The step of pre-compensating and adjusting the equivalent impedance to be configured based on the output current overshoot deviation includes: Calculate the average adjustment time required for the charging pile to adjust from the current output current value to the next target current value based on the response delay time in the historical response database; Calculate the theoretical target current value based on the equivalent impedance to be configured and the voltage value; The predicted actual output current value is obtained by adding the theoretical target current value to the output current overshoot deviation. Calculate the prediction deviation between the predicted actual output current value and the acceptable current value; The compensation correction amount for the equivalent impedance is calculated based on the prediction deviation and the average settling time. The compensation correction is superimposed on the equivalent impedance calculated based on the internal resistance parameter and the polarization parameter to obtain the pre-compensated equivalent impedance.
7. The load simulation method for charging pile testing according to claim 1, characterized in that, After synchronously updating the equivalent impedance and the battery state parameters in the charging handshake message using the corrected load characteristic parameters, the method further includes: Record the rate of change of the corrected load characteristic parameters relative to the parameters before correction and the number of corrections; When the number of corrections exceeds a preset frequency threshold, it is determined that the output control of the charging pile is unstable, and a stability anomaly alarm is generated. When the rate of change of the parameter continues to increase, it is determined that the output characteristics of the charging pile have drifted, and a drift alarm is generated.
8. A load simulation device for testing charging piles, characterized in that, The load simulation device for charging pile testing includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the load simulation device for charging pile testing to perform the method as described in any one of claims 1-7.
9. A computer program product containing instructions, characterized in that, When the computer program product is run on a load simulation device for charging pile testing, the load simulation device for charging pile testing causes the device to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium comprising instructions, characterized in that, When the instruction is run on a load simulation device for charging pile testing, the load simulation device for charging pile testing causes the device to perform the method as described in any one of claims 1-7.
