A hardware-in-the-loop simulation system for range extender controller

By using upper computers, real-time simulation equipment and range extender controllers in the ring simulation system, simulating the operating status of vehicles and range extenders, the problem of low hardware simulation testing efficiency of range extender controllers in the prior art is solved, and the implementation of the implementation of the following method Efficient simulation testing and safe extreme working conditions creation.

CN111983933BActive Publication Date: 2024-11-19GUANGXI YUCHAI MASCH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010763663.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-31
Publication Date
2024-11-19
Estimated Expiration
2040-07-31

AI Technical Summary

Technical Problem

There is a lack of in-loop simulation system suitable for range extender controllers in the prior art, and it is impossible to effectively perform simulation tests of range extender controller hardware.

Method used

A hardware-in-loop simulation system of range extender controller is designed, including a host computer, real-time simulation equipment and range extender controller. Through simulation test models, the operation of vehicles and range extender is simulated, and the signal transmission is monitored in real time, and the virtualization is used. The model replaces the real system and realizes closed-loop control.

Benefits of technology

Improves the simulation test efficiency of range extender controller hardware, can safely create limits and fault conditions, and enhances simulation efficiency and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111983933B_ABST
    Figure CN111983933B_ABST
Patent Text Reader

Abstract

The present invention provides a hardware-in-the-loop simulation system for a range extender controller, comprising: a host computer, a real-time simulation device and a range extender controller, wherein the real-time simulation device is connected to the host computer and the range extender controller respectively, and the real-time simulation device comprises a simulation test model, wherein the real-time simulation device obtains vehicle and range extender simulation test running state data by using the simulation test model for simulating the operation of a vehicle and range extender hardware device according to simulation test input parameters from the host computer and control signals of the range extender controller during the simulation test, and converts the simulation test running state data into signals required by the range extender controller; the hardware-in-the-loop simulation system for a range extender controller provided by the present invention uses a virtual range extender powertrain model to replace a real range extender system, is easy to create extreme operating conditions and fault operating conditions without risk, has good safety, and improves simulation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of simulation, and in particular relates to a hardware-in-the-loop simulation system for a range extender controller. Background Art

[0002] Developing a range extender controller that can coordinate the start and stop control and power generation of the range extender is a key link in the development of extended-range electric vehicles. The range extender controller is a long process from demand analysis, system design, hardware and software design, to testing and calibration. In its software development, the V-type development process of software demand analysis-software architecture design-software detailed design and unit construction-software unit verification integration-software integration and integration testing-software qualification testing is usually adopted. Among them, the integrated functional testing of the controller application layer software, basic software and hardware is essential. The current common testing method is to carry the range extender controller on the range extender powertrain bench and the actual vehicle for functional debugging and verification.

[0003] There have been some studies on in-the-loop simulation systems in China. For example, the Chinese invention patent with publication number CN103186101B discloses a hardware-in-the-loop simulation test system for a whole vehicle controller, which includes a host computer, a simulation device, an operation monitoring device and a simulation monitoring device. The simulation device is respectively connected to the host computer, the whole vehicle controller to be simulated and the simulation monitoring device. The operation monitoring device is connected to the whole vehicle controller to be simulated, and has the characteristics of real-time performance and the ability to observe the simulation test process at any time, thereby improving the efficiency of the hardware-in-the-loop simulation test of the whole vehicle controller.

[0004] Chinese invention patent CN109100155A;

[0005] Chinese invention patent CN110780605A;

[0006] From the above content, it can be found that the in-the-loop simulation system in the prior art is mainly used in the whole vehicle controller and the real-time controller, and is not suitable for the in-the-loop simulation of the range extender controller. Summary of the invention

[0007] The object of the present invention is to provide a hardware-in-the-loop simulation system for a range extender controller, aiming to solve the problem of realizing hardware-in-the-loop simulation of a range extender controller in the prior art.

[0008] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions:

[0009] The present invention provides a range extender controller hardware-in-the-loop simulation system, comprising:

[0010] A host computer, a real-time simulation device and a range extender controller, wherein the real-time simulation device is connected to the host computer and the range extender controller respectively, wherein:

[0011] The host computer, in response to the user's simulated operation of the vehicle and the range extender during the simulation test of the range extender controller, obtains the simulation test input parameters of the vehicle and the range extender and sends them to the real-time simulation device; and displays the simulation model operation data in the real-time simulation system in real time;

[0012] The real-time simulation device includes a simulation test model. The real-time simulation device obtains vehicle and range extender simulation test running status data based on the simulation test input parameters from the host computer and the control signal of the range extender controller during the simulation test, using the simulation test model that simulates the operation of the vehicle and range extender hardware equipment, converts the simulation test running status data into a signal required by the range extender controller, and outputs the signal required by the range extender controller to the range extender controller. The range extender controller performs calculations according to a pre-built-in control logic, and sends the execution results back to the real-time simulation system to achieve control of the range extender model.

[0013] Preferably, the simulation test model includes: a driver model, a virtual controller model, a range extender model and an electric vehicle model; the driver model converts the acquired simulation test model input parameters of the vehicle into driver behavior parameters, and sends the driver behavior parameters to the virtual controller model; the virtual controller model monitors the operating data of the electric vehicle model and the range extender model in real time, and responds according to the driver behavior parameters to generate vehicle control signals and range extender control signals.

[0014] Preferably, the virtual controller model includes: a virtual vehicle controller model, a virtual range extender controller interface model, a virtual power battery management system model, a virtual drive motor controller model, a virtual accessory controller model, a virtual engine controller model and a virtual generator controller model.

[0015] Preferably, the electric vehicle model includes: a power battery model, a drive motor model, a transmission system model and a vehicle longitudinal dynamics model. The power battery model is used to calculate the power battery SOC and the power battery voltage, the drive motor model is used to calculate the drive motor output torque and required current, the transmission system model is used to calculate the output torque and input speed of the transmission system, and the vehicle longitudinal dynamics model is used to calculate the driving resistance and vehicle speed of the whole vehicle.

[0016] Preferably, in the vehicle longitudinal dynamics model, the driving resistance F R Determine by the following formula:

[0017] F R =f(v)*(Av2 +Bv+C)+[1-f(v)]*(F air +F roll )+F slope

[0018] In the formula, F R is the driving resistance, f(v) is the confidence factor, and its value range is [0,1]; v is the vehicle speed; A, B, C are the sliding resistance coefficients of the vehicle; F air is air resistance; F roll F is the rolling resistance; slope is the slope resistance.

[0019] Preferably, the range extender model includes: an engine model, a generator model and a crankshaft model, the engine model has a built-in engine characteristic Map, which is used to convert the engine output torque through the input fuel injection amount information; the crankshaft model is used to calculate the range extender speed through the input engine torque information and generator torque information, as well as the inertia experience value; the generator model has a built-in generator external characteristic Map under different voltages, which is used to calculate the output torque and required current of the generator through the input target torque, high-voltage bus voltage, and actual generator speed.

[0020] Preferably, the generator output torque T act Determine by the following formula:

[0021] T act =MIN[abs(T Req ),f(U,n)]*sign(T Req )

[0022] Where, T act is the output torque of the generator; T Req is the target torque; U is the high-voltage DC bus voltage; n is the actual generator speed; f(U,n) is the maximum output torque of the generator obtained by looking up the MAP table according to the high-voltage DC bus voltage and the actual generator speed.

[0023] Preferably, the real-time simulation device is a dSPACE simulation device, and the simulation test model is established based on a MATLAB / Simulink software platform.

[0024] Preferably, the real-time simulation device and the range extender controller are connected via CAN bus signals and IO signals.

[0025] Advantages of the present invention:

[0026] The range extender controller hardware-in-the-loop simulation system provided by the present invention uses a virtual range extender powertrain model to replace the real range extender system, is easy to create extreme operating conditions and fault operating conditions without risk, has good safety, and improves simulation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a structural block diagram of the hardware-in-the-loop simulation system of the range extender controller of the present invention;

[0028] Figure 2 It is a structural block diagram of the real-time simulation device of the present invention;

[0029] Figure 3 is a structural block diagram of the virtual controller model of the present invention;

[0030] Figure 4 It is a structural block diagram of the electric vehicle model of the present invention;

[0031] Figure 5 This is a structural block diagram of the range extender model described in the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0033] In order to improve the hardware-in-the-loop simulation test efficiency of the range extender controller, an embodiment of the present invention provides a hardware-in-the-loop simulation system for the range extender controller. In order to establish a simulation test model for simulating the operation of the vehicle and the range extender hardware device, in the simulation test, the user monitors the operation status of the vehicle simulation model in real time through the host computer, simulates the driver's operation, and transmits the driver's operation signal to the real-time simulation device. The real-time simulation device simulates the vehicle driving and the range extender operation based on the simulation test model. The range extender controller receives the vehicle and range extender operation status data from the real-time simulation system. The range extender controller performs calculations according to the pre-built-in control logic, sends the execution results back to the real-time simulation system, and inputs them into the simulation test model. The simulation test model is used to simulate the operation status of the vehicle and the range extender, and new operation status data of the vehicle and the range extender are obtained. The range extender controller generates new execution results based on the new vehicle and range extender operation status data, and sends them back to the real-time simulation system to form a closed-loop control.

[0034] Based on the above principles, the range extender controller hardware-in-the-loop simulation system provided by the embodiment of the present invention is as follows: Figure 1As shown, it includes: a host computer 100, a real-time simulation device 200 and a range extender controller 300, and the real-time simulation device 300 is connected to the host computer 100 and the range extender controller 300 respectively, wherein:

[0035] The host computer 100, in response to the user's simulated operation of the vehicle and the range extender during the simulation test of the range extender controller 300, obtains the simulation test input parameters of the vehicle and sends them to the real-time simulation device 200, and displays the real-time operation data of the vehicle and the range extender from the real-time simulation device 200 in real time;

[0036] The real-time simulation device 200 includes a simulation test model. The real-time simulation device 200 obtains vehicle and range extender simulation test running status data using the simulation test model that simulates the operation of the vehicle and range extender hardware devices according to the simulation test input parameters and the control of the range extender controller 300 during the simulation test process, and outputs the simulation test running status data to the range extender controller 300.

[0037] In one embodiment, the simulation test model includes: a driver model 201, a virtual controller model 202, a range extender model 203 and an electric vehicle model 204; the driver model 201 converts the acquired simulation test model input parameters of the vehicle into driver behavior parameters, and sends the driver behavior parameters to the virtual controller model 202; the virtual controller model 202 monitors the operating data of the electric vehicle model 204 and the range extender model 203 in real time, and responds according to the driver behavior parameters to generate the required signals for the range extender controller.

[0038] In one embodiment, the virtual controller model 202 includes: a virtual vehicle controller model 2021, a virtual range extender controller interface model 2022, a virtual power battery management system model 2023, a virtual drive motor controller model 2024, a virtual accessory controller model 2025, a virtual engine controller model 2026 and a virtual generator controller model 2027.

[0039] In some embodiments, the electric vehicle model 204 includes: a power battery model 2041, a drive motor model 2042, a transmission system model 2043 and a vehicle longitudinal dynamics model 2044, the power battery model 2041 is used to calculate the power battery SOC and the power battery voltage, the drive motor model 2042 is used to calculate the drive motor output torque and required current, the transmission system model 2043 is used to calculate the output torque and input speed of the transmission system, and the vehicle longitudinal dynamics model 2044 is used to calculate the driving resistance and vehicle speed of the whole vehicle.

[0040] In one embodiment, in the vehicle longitudinal dynamics model 2044, the driving resistance F R Determine by the following formula:

[0041] F R =f(v)*(Av 2 +Bv+C)+[1-f(v)]*(F air +F roll )+F slope

[0042] In the formula, F R is the driving resistance, f(v) is the confidence factor, and its value range is [0,1]; v is the vehicle speed; A, B, C are the sliding resistance coefficients of the vehicle; F air is air resistance; F roll is the rolling resistance; F slope is the slope resistance;

[0043] Calculate the driving resistance F R The steps are: pre-set the map table of the confidence factor f(v) changing with the vehicle speed, calculate the vehicle sliding resistance A, B, C according to the current vehicle speed v and the vehicle sliding resistance coefficient, and calculate the current rolling resistance F roll , slope resistance F slope and air resistance F air According to the calculation formula of driving resistance, the vehicle driving resistance F is calculated. R .

[0044] In some embodiments, the range extender model 203 includes: an engine model 2031, a generator model 2032 and a crankshaft model 2033. The engine model 2031 has a built-in engine characteristic Map, which is used to convert the engine output torque through the input injection quantity information; the crankshaft model 2033 is used to calculate the range extender speed through the input engine torque information and generator torque information, as well as the inertia experience value; the generator model 2031 has a built-in generator external characteristic Map under different voltages, which is used to calculate the generator output torque and required current through the input target torque, high-voltage bus voltage, and actual generator speed.

[0045] In one embodiment, the generator output torque T act Determine by the following formula:

[0046] T act =MIN[abs(T Req ),f(U,n)]*sign(T Req )

[0047] Where, T act is the output torque of the generator; T Req is the target torque; U is the high-voltage DC bus voltage; n is the actual generator speed; f(U,n) is the maximum output torque of the generator obtained by looking up the MAP table according to the high-voltage DC bus voltage and the actual generator speed.

[0048] Calculate the generator output torque T act The steps are as follows: according to the high-voltage DC bus voltage and the actual speed of the generator, the maximum output torque of the generator is obtained by looking up the MAP table, and judging whether the current range extender controller requires the range extender to generate electricity or consume electricity. If the current target torque is a positive value (the range extender consumes electricity), the output torque is the smaller value of the required torque and the output torque of the generator. If the current target torque is a negative value (the range extender generates electricity), the output torque is the larger value of the required torque and the output torque of the generator.

[0049] In one embodiment, the real-time simulation device is a dSPACE simulation device, and the simulation test model is established based on the MATLAB / Simulink software platform.

[0050] In one embodiment, the real-time simulation device and the range extender controller are connected via CAN bus signals and IO signals.

[0051] References to "some embodiments", "one embodiment", or "embodiments" in this specification refer to specific features, structures, or properties described in conjunction with the embodiments being included in at least one embodiment. Therefore, the appearance of the phrases "in some embodiments", "in one embodiment", or "in an embodiment" in various places throughout the specification does not necessarily refer to the same embodiment. In addition, specific features, structures, or properties may be combined in any suitable manner in one or more embodiments. Therefore, specific features, structures, or properties shown or described in conjunction with one embodiment may be combined in whole or in part with features, structures, or properties of one or more other embodiments without restriction, as long as the combination is not illogical or inoperable. In addition, the various elements in the drawings of the present application are for illustrative purposes only and are not drawn to scale.

[0052] Having thus described several aspects of at least one embodiment of the present invention, it will be appreciated that various changes, modifications and improvements will readily occur to those skilled in the art, and such changes, modifications and improvements are intended to be within the spirit and scope of the present invention.

Claims

1. A hardware-in-the-loop simulation system for a range extender controller, characterized in that: include: A host computer, a real-time simulation device, and a range extender controller, wherein the real-time simulation device is connected to the host computer and the range extender controller respectively, wherein: the host computer responds to the user's vehicle and range extender simulation operation operation during the simulation test of the range extender controller, obtains the vehicle simulation test input parameters and sends them to the real-time simulation device, and displays the simulation model operation data in the real-time simulation system in real time; the real-time simulation device includes a simulation test model, and the real-time simulation device obtains vehicle and range extender simulation test operation status data using the simulation test model that simulates the operation of the vehicle and range extender hardware device based on the simulation test input parameters from the host computer and the control signal of the range extender controller during the simulation test, converts the simulation test operation status data into the signal required by the range extender controller, and outputs the signal required by the range extender controller to the range extender controller; the range extender controller performs calculations according to the pre-built-in control logic, and sends the execution results back to the real-time simulation system to realize control of the range extender model; The simulation test model includes: a driver model, a virtual controller model, a range extender model, and an electric vehicle model; the driver model converts the acquired vehicle simulation test model input parameters into driver behavior parameters and sends the driver behavior parameters to the virtual controller model; the virtual controller model monitors the operating data of the electric vehicle model and the range extender model in real time, and responds according to the driver behavior parameters to generate vehicle control signals and range extender control signals; The virtual controller model includes: a virtual vehicle controller model, a virtual range extender controller interface model, a virtual power battery management system model, a virtual drive motor controller model, a virtual accessory controller model, a virtual engine controller model and a virtual generator controller model; The electric vehicle model includes: a power battery model, a drive motor model, a transmission system model and a vehicle longitudinal dynamics model. The power battery model is used to calculate the power battery SOC and power battery voltage. The drive motor model is used to calculate the drive motor output torque and required current. The transmission system model is used to calculate the output torque and input speed of the transmission system. The vehicle longitudinal dynamics model is used to calculate the vehicle's driving resistance and vehicle speed. In the vehicle longitudinal dynamics model, the driving resistance is determined by the following formula: ; Where, is the driving resistance, is the confidence factor, ranging from [0,1]; v is the vehicle speed; A, B, and C are the sliding resistance coefficients of the vehicle; is the air resistance; is the rolling resistance; is the slope resistance.

2. The range extender controller hardware-in-the-loop simulation system according to claim 1, characterized in that: The range extender model includes: an engine model, a generator model and a crankshaft model. The engine model has a built-in engine characteristic map for converting the engine output torque based on the input fuel injection amount information; the crankshaft model is used to calculate the range extender speed based on the input engine torque information and generator torque information, as well as the inertia experience value; the generator model has a built-in generator external characteristic map under different voltages for calculating the generator output torque and required current based on the input target torque, high-voltage bus voltage, and actual generator speed.

3. The range extender controller hardware-in-the-loop simulation system according to claim 2, characterized in that: The output torque of the generator Determine as follows: ; Where, is the output torque of the generator; is the target torque; U is the high-voltage DC bus voltage; n is the actual speed of the generator; The maximum output torque of the generator is obtained by looking up the MAP table based on the high-voltage DC bus voltage and the actual generator speed.

4. The range extender controller hardware-in-the-loop simulation system according to claim 1, characterized in that: The real-time simulation device is a dSPACE simulation device, and the simulation test model is established based on the MATLAB / Simulink software platform.

5. The range extender controller hardware-in-the-loop simulation system according to claim 1, characterized in that: The real-time simulation device and the range extender controller are connected via CAN bus signals and IO signals.