A method and system for simulating the operating environment of an automobile motor controller

By building a physical model of the automotive motor in the HIL test equipment and monitoring the motor dq-axis current signals, combined with environmental data and adjustment behavior, the LSTM model is used to simulate the operating environment of the automotive motor controller, which solves the problem of insufficient systematic simulation in traditional methods and achieves for more efficient performance optimization and risk reduction.

CN118331244BActive Publication Date: 2024-08-30HANGZHOU DIWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410765586.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-08-30
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Traditional automotive motor controller operating environment simulation methods are not systematic enough and cannot effectively simulate complex real-world environments, resulting in performance bottlenecks and underutilized system optimization space.

Method used

By building a physical model of the automobile motor and compiling it into the HIL test equipment, the motor dq-axis current signals are monitored, the control system is adjusted according to the difference, and the environmental data and adjustment behavior are integrated into the simulation model, and combined with the LSTM model for training to simulate automobile motor control. server operating environment.

Benefits of technology

It achieves real-time monitoring and adjustment of motor behavior, improves dynamic response and performance, reduces risks before system deployment, improves the adaptability and accuracy of the simulation environment, and reduces actual test costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118331244B
    Figure CN118331244B
Patent Text Reader

Abstract

The present invention proposes a method and system for simulating the operating environment of an automobile motor controller, and belongs to the technical field of simulating the operating environment of a motor controller. The method includes: building a physical model of an automobile motor, and compiling the physical model of the automobile motor into an HIL test device; after compiling, monitoring the motor dq axis current signal, and adjusting the motor control system according to the difference between the motor dq axis current signal and the preset motor dq axis current signal; monitoring the environmental data and the adjustment behavior of the motor control system during the operation of the motor controller, integrating the environmental data and the adjustment behavior into the motor controller operating environment simulation model, and simulating the automobile motor controller operating environment according to the motor controller operating environment simulation model. Through this method and the corresponding system, the environmental conditions in the real world can be simulated more accurately, the reaction of the motor controller to environmental changes can be better understood, and the specific details of the environment can be inferred.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention provides a method and system for simulating the operating environment of an automobile motor controller, belonging to the technical field of simulating the operating environment of a motor controller. Background Art

[0002] Automotive motor controller operating environment simulation By simulating the real operating environment, the performance of the controller can be evaluated in the simulation environment, which helps to discover potential performance bottlenecks, identify system optimization space, and improve the control algorithm to meet specific performance indicators, simulate different working conditions and system failures to verify the safety and reliability of the motor controller; by simulating different road conditions and load conditions, the motor control algorithm is optimized to maximize energy utilization and reduce the impact on the environment; the simulation environment can help developers quickly verify design concepts and improvement ideas without the need for actual vehicles and hardware prototypes, which helps shorten the development cycle and reduce development costs.

[0003] However, traditional methods for simulating the operating environment of automotive motor controllers are usually not systematic and are relatively scattered, and have limitations in simulating complex real-world environments. Summary of the invention

[0004] The present invention provides a method and system for simulating the operating environment of an automobile motor controller, which are used to solve the problems mentioned in the above background technology:

[0005] The present invention provides a method for simulating the operating environment of an automobile motor controller, the method comprising:

[0006] Building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device;

[0007] After compilation, the motor dq axis current signal is monitored, and the motor control system is adjusted according to the difference between the motor dq axis current signal and the preset motor dq axis current signal;

[0008] Monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrate the environmental data and adjustment behavior of the motor controller during operation into the motor controller operation environment simulation model, and simulate the automobile motor controller operation environment according to the motor controller operation environment simulation model.

[0009] Furthermore, a physical model of the automobile motor is constructed and the physical model of the automobile motor is compiled into the HIL test equipment, including:

[0010] Build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device;

[0011] A three-phase inverter physical model is constructed, and the three-phase inverter physical model is compiled into a HIL test device.

[0012] Furthermore, a three-phase inverter physical model is constructed and the three-phase inverter physical model is compiled into the HIL test equipment, including:

[0013] The three-phase inverter receives the PWM control signal from the board and detects whether the bridge arm is turned on;

[0014] If the bridge arm is turned on, detecting whether it is forward conducting, and if it is detected that the bridge arm is forward conducting, calculating the control phase voltage, current and internal resistance when forward conducting;

[0015] If it is detected that the bridge arm is not conducting or the bridge arm is conducting in the negative direction, the control phase voltage, current and internal resistance when not conducting and the control phase voltage, current and internal resistance when conducting in the negative direction are calculated respectively;

[0016] Output voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model;

[0017] The three-phase inverter physical model is compiled into the HIL test equipment.

[0018] Further, the motor dq axis current signal is monitored after compilation, and the motor control system is adjusted according to the difference between the motor dq axis current signal and the preset motor dq axis current signal, including:

[0019] Compile the three-phase inverter physical model into the HIL test equipment to monitor the motor dq axis current signal;

[0020] If the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold, the motor control system enters the simulated environment chamber, otherwise an alarm message is sent to the visualization device;

[0021] If the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the motor controller enters feedback control;

[0022] Entering feedback control includes:

[0023] Calibrate the current sensor and monitor the motor dq axis current signal after calibration;

[0024] After calibration, if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the parameters of the three-phase inverter physical model are adjusted, the parameters including load and motor characteristics, and the motor dq axis current signal is monitored after adjustment;

[0025] If the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold, the dq axis current and other key parameters when the following degree is poor are obtained. Other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology;

[0026] The control algorithm is adjusted according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

[0027] Further, monitoring the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrating the environmental data and the adjustment behavior of the motor controller during operation into a simulation model of the motor controller operation environment, and simulating the operation environment of the automobile motor controller according to the simulation model of the motor controller operation environment, including:

[0028] Acquire environmental data when the motor controller is running, the environmental data includes the temperature, humidity, motor load and motor speed of the environment in which the motor controller is located, and acquire adjustment behavior data of the motor control system in different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment;

[0029] Cleaning the acquired environment data and adjustment behavior data, and performing data alignment thereon;

[0030] Divide the aligned data into training set and test set;

[0031] The training set is used to train the LSTM model, and the test set is used to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then the motor controller operating environment simulation model is compiled into the HIL test equipment to simulate the automobile motor controller operating environment.

[0032] The present invention provides a vehicle motor controller operating environment simulation system, the system comprising:

[0033] Building a physical model module for building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device;

[0034] An adjustment motor control system module is used to monitor the motor dq axis current signal after compilation, and adjust the motor control system according to the difference between the motor dq axis current signal and a preset motor dq axis current signal;

[0035] The simulation operating environment module is used to monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrate the environmental data and adjustment behavior of the motor controller during operation into the motor controller operating environment simulation model, and simulate the automobile motor controller operating environment according to the motor controller operating environment simulation model.

[0036] Furthermore, the physical model building module includes:

[0037] Build a CAN communication model module, which is used to build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, and if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device;

[0038] A three-phase inverter physical model module is built to build a three-phase inverter physical model, and the three-phase inverter physical model is compiled into the HIL test equipment.

[0039] Furthermore, the three-phase inverter physical model module includes:

[0040] The control signal receiving module is used for the three-phase inverter to receive the slave board PWM control signal and detect whether the bridge arm is turned on;

[0041] A detection conduction module is used to detect whether the bridge arm is forward-conducting when it is turned on, and if it is detected that the bridge arm is forward-conducting, calculate the control phase voltage, current and internal resistance when it is forward-conducting;

[0042] A module for detecting negative conduction and non-conduction is used to calculate the control phase voltage, current and internal resistance when the bridge arm is not conducting and the control phase voltage, current and internal resistance when the bridge arm is negatively conducting if it is detected that the bridge arm is not conducting or the bridge arm is negatively conducting;

[0043] Output voltage, current and internal resistance calculation value module, used for outputting voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model;

[0044] A compiling module is used to compile the three-phase inverter physical model into the HIL test equipment.

[0045] Furthermore, the motor control system adjustment module includes:

[0046] The module for monitoring the motor dq axis current signal is used to compile the three-phase inverter physical model into the HIL test equipment and monitor the motor dq axis current signal;

[0047] A comparison module, for causing the motor controller to enter a simulated environment chamber if the motor dq axis current signal differs from a preset motor dq axis current signal by no more than a preset threshold, otherwise sending an alarm message to a visualization device;

[0048] A feedback control module, used for causing the motor controller to enter feedback control if the motor dq axis current signal differs from a preset motor dq axis current signal by more than a preset threshold;

[0049] The feedback control module comprises:

[0050] The calibration sensor module is used to calibrate the current sensor and monitor the motor dq axis current signal after calibration.

[0051] A parameter adjustment module, used for adjusting the parameters of the three-phase inverter physical model if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold after calibration, wherein the parameters include load and motor characteristics, and monitoring the motor dq axis current signal after adjustment;

[0052] A key parameter acquisition module is used to acquire the dq axis current and other key parameters when the following degree is poor if the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold. The other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology;

[0053] The control algorithm adjustment module is used to adjust the control algorithm according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

[0054] Furthermore, the simulation operation environment module includes:

[0055] An environment data acquisition module is used to acquire environment data when the motor controller is running, the environment data includes the temperature, humidity, motor load and motor speed of the environment where the motor controller is located, and acquire adjustment behavior data of the motor control system under different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment;

[0056] A cleaning module, used to clean the acquired environment data and adjustment behavior data, and perform data alignment thereon;

[0057] The dataset splitting module is used to split the aligned data into training set and test set;

[0058] The training model module is used to train the LSTM model using the training set, and then use the test set to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then compile the motor controller operating environment simulation model to the HIL test equipment to simulate the automobile motor controller operating environment.

[0059] The beneficial effects of the present invention are as follows: by monitoring the motor dq axis current signal and the difference with the preset value to adjust the motor control system in real time, it is possible to ensure real-time monitoring and adjustment of the motor behavior to obtain more precise control; monitoring the environmental data and adjustment behavior of the motor controller during operation and integrating it into the operating environment simulation model is helpful for in-depth analysis and optimization of the dynamic response of the motor controller, which is expected to improve the performance of the automobile motor under various working conditions; using HIL test equipment to compile the physical model of the automobile motor can greatly reduce the risk before system deployment; by verifying in a simulation environment and testing the environmental adaptability of the motor controller, it is helpful to improve the reliability of the system; simulating the operating environment of the automobile motor controller through a simulation model is helpful to find problems and debug them at an early stage, thereby reducing the cost of testing and adjustment on the actual automobile motor; this technical solution combines environmental data and the response behavior of the motor controller, and the model can more accurately simulate the environmental conditions in the real world; such simulation will be closer to actual working conditions and can better understand the electric motor. The motor controller's response to environmental changes and the ability to infer specific details of the environment will help to gain a deeper understanding of the controller's behavior patterns under various working conditions. The model will be trained by combining the motor controller's adjustment behavior with environmental data detected by the sensor to make it more adaptive, which means that the simulation can better adapt to different working scenarios and environmental changes. The simulation environment will cover various responses of the controller, including responses under abnormal conditions, which can provide more possibilities for fault simulation and redundancy testing and improve the reliability of the system. The model will more accurately predict the behavior of the motor controller in an unknown environment, which means that the system can better cope with new and unexperienced working conditions. Understanding how the motor controller adjusts to environmental changes will help to deeply analyze the inherent operating mechanism of the control system, thereby supporting system optimization and improvement. In summary, using the motor controller's response behavior and environmental data to train deep learning models will improve the accuracy of the simulation environment and the system's adaptability, and lay a solid foundation for ensuring the reliability of the system under various conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A schematic diagram of a method for simulating the operating environment of an automobile motor controller according to the present invention;

[0061] Figure 2 Flowchart for tuning the motor control system. DETAILED DESCRIPTION

[0062] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0063] One embodiment of the present invention, as Figure 1 As shown, a method for simulating the operating environment of an automobile motor controller is

[0064] Building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device;

[0065] After compilation, the motor dq axis current signal is monitored, and the motor control system is adjusted according to the difference between the motor dq axis current signal and the preset motor dq axis current signal;

[0066] Monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrate the environmental data and adjustment behavior of the motor controller during operation into the motor controller operation environment simulation model, and simulate the automobile motor controller operation environment according to the motor controller operation environment simulation model.

[0067] The working principle of the above technical solution is as follows: First, by compiling the physical model of the automotive motor into the hardware-in-the-environment (HIL) test equipment, the simulation and testing of the motor control system can be realized; the HIL system will monitor the motor dq axis current signal, which is one of the key parameters required to control the operation of the motor. These signals will be used to evaluate the operating status of the motor; the monitored motor dq axis current signal will be compared with the preset motor dq axis current signal, and the difference will be used to adjust the motor control system. This helps to ensure that the motor operates in an ideal state; at the same time, monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, including ambient temperature, humidity, and real-time adjustment of motor parameters by the control system;

[0068] Based on the monitored environmental data and the adjustment behavior of the control system, they are integrated into the motor controller operating environment simulation model; using the established model, the operation of the motor controller in different environments can be simulated, thereby predicting its behavior and performance.

[0069] The effects of the above technical solution are: by monitoring and comparing the actual motor dq axis current signal with the preset value, dynamic adjustment of the motor control system is achieved, thereby improving the stability and efficiency of the motor operation; integrating environmental data and the adjustment behavior of the motor control system into the simulation model makes the model more adaptable, integrating not only environmental data but also the adjustment behavior of the motor control system, which can help to more accurately simulate the operating environment of the automotive motor controller; real-time monitoring of the motor dq axis current signal and adjusting the control system based on the difference also provides an excellent fault diagnosis method, allowing the system to quickly respond to and handle abnormal situations; the entire system provides strong support for the design and optimization of automotive motor control systems, allowing engineers to more quickly evaluate and improve the performance of the control system; this technical solution will help to improve the intelligence level and robustness of the motor control system, promote system optimization and fault management, and effectively support the reliability of motor control under various complex working conditions.

[0070] An embodiment of the present invention provides a method for simulating the operating environment of an automobile motor controller, building an automobile motor physical model, and compiling the automobile motor physical model into a HIL test device, including:

[0071] Build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device;

[0072] A three-phase inverter physical model is constructed, and the three-phase inverter physical model is compiled into a HIL test device.

[0073] The working principle of the above technical solution is as follows: compile the CAN communication model into the hardware in the environment (HIL) test equipment to monitor and process the feedback signal of the motor controller; the HIL system will obtain the feedback signal of the motor controller and compare it with the preset feedback signal; if the difference between the two does not exceed the preset reference value, it is considered to be in line with expectations and the system will continue to run downward; otherwise, an alarm message will be triggered and sent to the visualization device; after confirming that the feedback signal of the motor controller meets expectations, the system will load the physical model of the three-phase inverter, which is an important part of connecting the motor and the controller. The CAN communication model can simulate the behavior of the controller network (CAN) in the actual automotive system. CAN is a multi-host serial bus standard widely used in communication between automotive electronic devices. The CAN communication model is loaded into the HIL device, so that these communication protocols can be implemented and tested in a simulated environment. Through the HIL device, the feedback signals sent from the motor controller are simulated and compared with the preset feedback signals. The preset signal is designed based on the expected system response; if the difference between the actual feedback signal and the preset signal does not exceed the preset reference value, it means that the motor controller operates as expected and the system runs stably. Then you can continue to load a more complex model, the three-phase inverter model, for further testing. If the difference exceeds the preset reference value, the system will send an alarm message to the visualization device to remind the test engineer or system monitor that there is a potential problem that requires further analysis and adjustment; build a three-phase inverter physical model. The three-phase inverter is a device used to convert direct current into three-phase alternating current. It is often used to drive motors in electric vehicles. Building this model in a HIL environment means being able to simulate the electrical performance of the inverter in actual operation. Similar to the CAN communication model, the three-phase inverter model also needs to be compiled and loaded into the HIL device for simulation testing.

[0074] The effects of the above technical solution are as follows: through the combination of the CAN communication model and the HIL test equipment, the system can monitor the feedback signal of the motor controller in real time and perform rapid feedback processing; by comparing the feedback signal with the expected signal, the deviation in the motor control system can be discovered in time, and then the necessary alarm information can be triggered, which helps to improve the safety and stability of the system; by setting a certain expected range, the normal operation of the motor control system can be ensured, and the tolerance for overall system errors is improved; loading the three-phase inverter physical model further enhances the simulation performance of the system, making the system closer to the actual working conditions, thereby improving the accuracy and reliability of the test; the automated execution of the above process will reduce the errors caused by human factors, speed up fault detection and system recovery, and improve the automation level of the system; overall, this technical solution will help to realize real-time monitoring, abnormality detection and real-time processing of the motor control system, and provide comprehensive and timely guarantees for the operation of the entire system.

[0075] An embodiment of the present invention provides a method for simulating the operating environment of an automobile motor controller, building a three-phase inverter physical model, and compiling the three-phase inverter physical model into a HIL test device, including:

[0076] The three-phase inverter receives the PWM control signal from the board and detects whether the bridge arm is turned on;

[0077] If the bridge arm is turned on, detect whether it is forward conducting, and if it is detected that the bridge arm is forward conducting, calculate the control phase voltage, current and internal resistance when forward conducting;

[0078] If it is detected that the bridge arm is not conducting or the bridge arm is conducting in the negative direction, the control phase voltage, current and internal resistance when not conducting and the control phase voltage, current and internal resistance when conducting in the negative direction are calculated respectively;

[0079] Output voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model;

[0080] The three-phase inverter physical model is compiled into the HIL test equipment.

[0081] When the forward current flows through the single-phase inverter, the single-phase output voltage expression is:

[0082]

[0083] Among them, V s is the single-phase output voltage, P P is the PWM period, P T is the PWM low-side level enable duration, V M is the DC bus voltage;

[0084]

[0085] Where I is the current through the inverter, R is the internal resistance, and R L is the load resistance.

[0086] When negative current flows through a single-phase inverter:

[0087]

[0088] Among them, V S is the single-phase output voltage, P T is the PWM low-side level enable duration, V C is the forward voltage drop of the freewheeling diode, V M is the DC bus voltage;

[0089]

[0090] If the voltage drop of the freewheeling diode is small compared to other voltages, it can be ignored.

[0091] When the single-phase inverter is not turned on: V S =V R , where V R is the back electromotive force. In the non-conducting state, I=0.

[0092] The working principle of the above technical solution is as follows: the three-phase inverter will receive PWM (pulse width modulation) control signals from the board, which are used to control the switching state of the inverter; the inverter will monitor whether each bridge arm is turned on, which is crucial to determine the circuit connection state; if the bridge arm is detected to be turned on, the system will further determine whether it is forward or negative conduction for subsequent control and calculation; according to different situations, the system will calculate the control phase voltage, current and internal resistance when forward conduction, the control phase voltage, current and internal resistance when not turned on, and the control phase voltage, current and internal resistance when negative conduction. These parameters will be used to build the physical model of the inverter; the calculated voltage, current and internal resistance values ​​will be sent to the motor physical model to build a complete three-phase inverter physical model; finally, the constructed three-phase inverter physical model will be compiled into the hardware in the environment (HIL) test equipment for simulation and testing.

[0093] The effects of the above technical solution are as follows: through real-time detection and calculation of the bridge arm state, the technical solution will enable the behavior of the inverter to be accurately simulated and reflected, thereby improving the accuracy of the simulation; by calculating the control phase voltage, current and internal resistance during forward and negative conduction, the electrical characteristic parameters required for comprehensive simulation are provided, which are key data required for full system simulation; appropriate detection and calculation also enable the system to simulate various fault conditions that may occur in the inverter, such as short circuit or open circuit, thereby providing a more realistic scenario in actual operation; compiling the three-phase inverter physical model into the HIL test equipment will help integrate the inverter control and motor model simulation, and verify the reliability of the entire system; by establishing a physical model of the inverter, engineers can debug and optimize the system more quickly, saving a lot of time and resources; in summary, this technical solution will provide more precise parameters for the behavioral modeling of the three-phase inverter, and provide more comprehensive, accurate and reliable support for the simulation and testing of the entire system.

[0094] An embodiment of the present invention is a method for simulating the operating environment of an automobile motor controller, which monitors the motor dq axis current signal after compilation, and adjusts the motor control system according to the difference between the motor dq axis current signal and the preset motor dq axis current signal, such as Figure 2 As shown, including:

[0095] Compile the three-phase inverter physical model into the HIL test equipment to monitor the motor dq axis current signal;

[0096] If the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold, the motor control system enters the simulated environment chamber, otherwise an alarm message is sent to the visualization device;

[0097] If the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the motor controller enters feedback control;

[0098] Entering feedback control includes:

[0099] Calibrate the current sensor and monitor the motor dq axis current signal after calibration;

[0100] After calibration, if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the parameters of the three-phase inverter physical model are adjusted, the parameters including load and motor characteristics, and the motor dq axis current signal is monitored after adjustment;

[0101] If the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold, the dq axis current and other key parameters when the following degree is poor are obtained. Other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology;

[0102] The control algorithm is adjusted according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

[0103] The working principle of the above technical solution is as follows: First, the three-phase inverter physical model is compiled into the HIL test equipment, and the motor dq axis current signal is monitored; once the motor dq axis current signal is monitored, the system will check the difference between these signals and the preset value. If the difference is within the acceptable range, the motor control system will enter the simulation environment chamber, otherwise, an alarm message will be triggered and sent to the visualization device; when the difference between the motor dq axis current signal and the preset motor dq axis current signal exceeds the threshold, the motor controller will enter the feedback control state, which involves calibrating the current sensor and adjusting the parameters of the inverter physical model, including load and motor characteristics; after the current sensor is calibrated, if the motor dq axis current signal still has a large difference from the preset value, the system will obtain key parameters (such as speed, position, temperature, controller input, etc.) and use time domain analysis technology to identify abnormal modes that cause poor performance; based on the identified abnormal mode, the system will adjust the control algorithm, including the gain value and other parameters of the PID controller, until the motor dq axis current signal meets the expected value.

[0104] The effect of the above technical solution is: by real-time monitoring of the motor dq axis current signal, the solution can quickly detect and respond to any situation that exceeds the preset value, while ensuring the normal operation of the system, ensuring that even small deviations can be noticed;

[0105] Automatically switching to the appropriate control strategy (simulated environmental chamber or feedback control) helps improve the system's adaptability and robustness, ensuring that the system remains stable under different working conditions; by calibrating sensors, adjusting parameters, and identifying abnormal patterns, the system can autonomously perform maintenance and adjustments, reducing the need for human intervention and improving the system's autonomy and accuracy; dynamically adjusting the control algorithm based on abnormal patterns effectively solves the problem of poor tracking and drives system performance toward a more optimized state; sending alarm information to visualization devices can provide real-time feedback and support subsequent troubleshooting and optimization. Overall, this technical solution provides a complete closed-loop control system that exhibits strong adaptability and intelligence in terms of real-time monitoring, abnormality detection, and automatic adjustment of control algorithms, thereby ensuring the stability, safety, and performance optimization of the motor system.

[0106] An embodiment of the present invention provides a method for simulating an operating environment of an automobile motor controller, which monitors environmental data of the motor controller during operation and adjustment behavior of a motor control system, integrates the environmental data and adjustment behavior of the motor controller during operation into a simulation model of the motor controller operating environment, and simulates the operating environment of the automobile motor controller according to the simulation model of the motor controller operating environment, including:

[0107] Acquire environmental data when the motor controller is running, the environmental data includes the temperature, humidity, motor load and motor speed of the environment in which the motor controller is located, and acquire adjustment behavior data of the motor control system in different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment;

[0108] Cleaning the acquired environment data and adjustment behavior data, and performing data alignment thereon;

[0109] Divide the aligned data into training set and test set;

[0110] The training set is used to train the LSTM model, and the test set is used to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then the motor controller operating environment simulation model is compiled into the HIL test equipment to simulate the automobile motor controller operating environment.

[0111] The following linear model can be used to describe the relationship between the motor controller's tuning behavior data and the motor controller's operating environment:

[0112] Among them, Y(t) is the motor dq axis current signal, X(t) represents environmental data (such as temperature, humidity, load, speed), U(t) represents control behavior data (such as control signal change, power adjustment), a0, a1, a2, a3, a4, a5 and a6 are coefficients to be determined, which indicate the degree to which the output of the motor controller is affected by environmental data and control behavior. is the error term, which represents the partial or random disturbance that cannot be explained by the model. In this linear model, a0, a1, a2, a3, a4, a5 and a6 can be estimated by regression analysis and other methods to determine the influence of environmental data and control behavior data on the output of the motor controller.

[0113] The model combines linear and nonlinear terms to better adapt to the complexity of different data or systems. This comprehensive consideration can make the model more comprehensive. Adding trigonometric terms The model can be adapted to data sets or systems with obvious periodic characteristics, improving the model's ability to fit such data or phenomena; richer pattern fitting, the introduction of nonlinear terms and trigonometric functions can allow the model to better fit complex data patterns, especially when nonlinear dynamics or nonlinear relationships are involved. Trigonometric functions are periodic and can effectively describe the periodic changes of some phenomena. For example, for periodic motion, oscillations or fluctuations, the use of sine and cosine functions can better capture these phenomena; adding trigonometric functions can make the model more flexible, especially when dealing with nonlinear relationships. This enables the model to better fit complex data patterns; for many physical systems, trigonometric functions, especially sine and cosine functions, can provide simple and powerful tools for representing vibrations, fluctuations or periodic behaviors. Because of the need to describe periodicity, oscillations or nonlinear relationships, the introduction of trigonometric functions can provide the model with richer expression capabilities and better fitting capabilities.

[0114] Such a design can improve the adaptability and accuracy of the model. This model can also be further combined with the LSTM model, so that the LSTM model can learn the complex relationship between the coefficients a0, a1, a2, a3, a4, a5 and a6 as the motor controller runs over time, thereby more comprehensively describing the relationship between the motor controller adjustment behavior and the motor controller operating environment.

[0115] Combining the above linear model with the LSTM model allows the LSTM model to learn the complex relationship between the coefficients a0, a1, a2, a3, a4, a5 and a6 over time. Doing so can capture nonlinear, time-varying relationships and make the model more adaptable and generalizable.

[0116] The working principle of the above technical solution is as follows: environmental data (temperature, humidity, motor load, speed) and adjustment behavior data (control signal changes and power adjustments) are obtained from the motor controller system and cleaned to remove outliers or inconsistent data. These data record the response of the motor controller under various environmental conditions; the environmental data and adjustment behavior data are aligned to ensure that they can match correctly, such as aligning related data points through timestamps or event triggers to make them meaningful data sequences; the aligned data is divided into training sets and test sets, where the training set is used for model training and the test set is used to verify and evaluate the performance of the model; the training set is trained using a long short-term memory (LSTM) model. LSTM is a deep learning model suitable for sequence data processing and is suitable for time-dependent data. By learning the relationship between environmental data and adjusting behavior data, the model can simulate the environment more accurately. The trained LSTM model is verified and evaluated using the test set, which verifies the accuracy of the model. The verified motor controller operating environment simulation model is compiled into the hardware-in-the-loop test system (HIL) to simulate different environments of the motor controller's operating behavior. In this process, the actual operating environment of the actual motor controller on the car can be effectively simulated.

[0117] The effects of the above technical solution are as follows: the solution can construct a more realistic and complex motor controller environment simulation model based on real environment data and corresponding control behavior data, so that the simulation results are more in line with the actual situation; the LSTM model can learn the complex nonlinear relationship between environmental data and motor controller behavior, and achieve more accurate simulation of the environment through the adjustment behavior of the motor controller in different environments; the model compiled into the HIL test equipment will enhance the simulation ability of the test system to the performance response of the motor controller in different working environments, and enhance the comprehensiveness and accuracy of system testing and verification. The establishment and compilation of the environmental simulation model realizes the comprehensive automated simulation test of the vehicle motor controller operating environment, which helps to discover system problems and optimize them in advance, reducing manpower investment and time costs. Compiling the physical model of the automobile motor using the HIL test equipment can greatly reduce the risk before system deployment; by verifying in the simulation environment and testing the environmental adaptability of the motor controller, it helps to improve the reliability of the system; simulating the operating environment of the automobile motor controller through the simulation model helps to discover problems and debug them at an early stage, thereby reducing the cost of testing and adjusting on the actual automobile motor. This technical solution combines environmental data and the response behavior of the motor controller, and the model can more accurately simulate the environmental conditions in the real world; such simulation will be closer to actual working conditions, and can better understand the motor controller's response to environmental changes and infer the specific details of the environment, which helps to deeply understand the behavior patterns of the controller under various working conditions.

[0118] Combining the above linear model with the LSTM model allows the LSTM model to learn the complex relationship between coefficients a0, a1, and a2 over time. Doing so can capture nonlinear, time-varying relationships and make the model more adaptable and generalizable.

[0119] The beneficial effects of the above model are: comprehensive depiction of the relationship. This model architecture can more comprehensively depict the relationship between the adjustment behavior of the motor controller and the operating environment of the motor controller. The linear model provides a basic impact framework, while the LSTM model can help understand how the coefficients change over time or as events evolve. Nonlinear relationship modeling. The addition of the LSTM model allows the system to better understand the more complex nonlinear relationships between different environmental variables and control signals, which is beyond the scope of a typical linear model. This helps to more accurately predict and understand the behavior of the motor controller under different conditions. Since the LSTM model updates the internal state based on the previous state and input, it has the ability to dynamically capture the characteristics of the coefficients changing over time. This means that the model can identify and reflect the influences that may change over the running time of the motor controller in long-term data records. This solution provides a more comprehensive and flexible way to understand and simulate the operating environment of the motor controller by combining linear models and LSTM models, further promoting a deep understanding of the influencing factors of the system, and more accurately simulating the operating environment of the motor controller. The environment can not only be simulated through environmental data, but also further simulate the real operating environment through the adjustment behavior of the motor controller.

[0120] An embodiment of the present invention provides a system for simulating the operating environment of an automobile motor controller, the system comprising:

[0121] Building a physical model module for building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device;

[0122] An adjustment motor control system module is used to monitor the motor dq axis current signal after compilation, and adjust the motor control system according to the difference between the motor dq axis current signal and a preset motor dq axis current signal;

[0123] The simulation operating environment module is used to monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrate the environmental data and adjustment behavior of the motor controller during operation into the motor controller operating environment simulation model, and simulate the automobile motor controller operating environment according to the motor controller operating environment simulation model.

[0124] The working principle of the above technical solution is as follows: First, by compiling the physical model of the automotive motor into the hardware-in-the-environment (HIL) test equipment, the simulation and testing of the motor control system can be realized; the HIL system will monitor the motor dq axis current signal, which is one of the key parameters required to control the operation of the motor. These signals will be used to evaluate the operating status of the motor; the monitored motor dq axis current signal will be compared with the preset motor dq axis current signal, and the difference will be used to adjust the motor control system. This helps to ensure that the motor operates in an ideal state; at the same time, monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, including ambient temperature, humidity, and real-time adjustment of motor parameters by the control system;

[0125] Based on the monitored environmental data and the adjustment behavior of the control system, they are integrated into the motor controller operating environment simulation model; using the established model, the operation of the motor controller in different environments can be simulated, thereby predicting its behavior and performance.

[0126] The effects of the above technical solution are: by monitoring and comparing the actual motor dq axis current signal with the preset value, dynamic adjustment of the motor control system is achieved, thereby improving the stability and efficiency of the motor operation; integrating environmental data and the adjustment behavior of the motor control system into the simulation model makes the model more adaptable, integrating not only environmental data but also the adjustment behavior of the motor control system, which can help to more accurately simulate the operating environment of the automotive motor controller; real-time monitoring of the motor dq axis current signal and adjusting the control system based on the difference also provides an excellent fault diagnosis method, allowing the system to quickly respond to and handle abnormal situations; the entire system provides strong support for the design and optimization of automotive motor control systems, allowing engineers to more quickly evaluate and improve the performance of the control system; this technical solution will help to improve the intelligence level and robustness of the motor control system, promote system optimization and fault management, and effectively support the reliability of motor control under various complex working conditions.

[0127] An embodiment of the present invention provides a system for simulating the operating environment of an automobile motor controller, wherein the physical model building module comprises:

[0128] Build a CAN communication model module, which is used to build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, and if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device;

[0129] A three-phase inverter physical model module is built to build a three-phase inverter physical model, and the three-phase inverter physical model is compiled into the HIL test equipment.

[0130] The working principle of the above technical solution is as follows: the CAN communication model is compiled into the hardware-in-the-loop (HIL) test equipment to enable monitoring and processing of the motor controller feedback signal; the HIL system will obtain the motor controller feedback signal and compare the signal with the preset feedback signal; if the difference between the two does not exceed the preset baseline value, it is considered to be in line with expectations and the system will continue to run downward; otherwise, an alarm message will be triggered and sent to the visualization device; after confirming that the motor controller feedback signal is as expected, the system will load the physical model of the three-phase inverter, which is an important part of connecting the motor and the controller.

[0131] The effects of the above technical solution are as follows: through the combination of the CAN communication model and the HIL test equipment, the system can monitor the feedback signal of the motor controller in real time and perform rapid feedback processing; by comparing the feedback signal with the expected signal, the deviation in the motor control system can be discovered in time, and then the necessary alarm information can be triggered, which helps to improve the safety and stability of the system; by setting a certain expected range, the normal operation of the motor control system can be ensured, and the tolerance for overall system errors is improved; loading the three-phase inverter physical model further enhances the simulation performance of the system, making the system closer to the actual working conditions, thereby improving the accuracy and reliability of the test; the automated execution of the above process will reduce the errors caused by human factors, speed up fault detection and system recovery, and improve the automation level of the system; overall, this technical solution will help to realize real-time monitoring, abnormality detection and real-time processing of the motor control system, and provide comprehensive and timely guarantees for the operation of the entire system.

[0132] An embodiment of the present invention provides a vehicle motor controller operating environment simulation system, wherein the three-phase inverter physical model module comprises:

[0133] The control signal receiving module is used for the three-phase inverter to receive the slave board PWM control signal and detect whether the bridge arm is turned on;

[0134] A detection conduction module is used to detect whether the bridge arm is forward-conducting when it is turned on, and if it is detected that the bridge arm is forward-conducting, calculate the control phase voltage, current and internal resistance when it is forward-conducting;

[0135] A module for detecting negative conduction and non-conduction is used to calculate the control phase voltage, current and internal resistance when the bridge arm is not conducting and the control phase voltage, current and internal resistance when the bridge arm is negatively conducting if it is detected that the bridge arm is not conducting or the bridge arm is negatively conducting;

[0136] Output voltage, current and internal resistance calculation value module, used for outputting voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model;

[0137] A compiling module is used to compile the three-phase inverter physical model into the HIL test equipment.

[0138] The working principle of the above technical solution is as follows: the three-phase inverter will receive PWM (pulse width modulation) control signals from the board, which are used to control the switching state of the inverter; the inverter will monitor whether each bridge arm is turned on, which is crucial to determine the circuit connection state; if the bridge arm is detected to be turned on, the system will further determine whether it is forward or negative conduction for subsequent control and calculation; according to different situations, the system will calculate the control phase voltage, current and internal resistance when forward conduction, the control phase voltage, current and internal resistance when not turned on, and the control phase voltage, current and internal resistance when negative conduction. These parameters will be used to build the physical model of the inverter; the calculated voltage, current and internal resistance values ​​will be sent to the motor physical model to build a complete three-phase inverter physical model; finally, the constructed three-phase inverter physical model will be compiled into the hardware in the environment (HIL) test equipment for simulation and testing.

[0139] The effects of the above technical solution are as follows: through real-time detection and calculation of the bridge arm state, the technical solution will enable the behavior of the inverter to be accurately simulated and reflected, thereby improving the accuracy of the simulation; by calculating the control phase voltage, current and internal resistance during forward and negative conduction, the electrical characteristic parameters required for comprehensive simulation are provided, which are key data required for full system simulation; appropriate detection and calculation also enable the system to simulate various fault conditions that may occur in the inverter, such as short circuit or open circuit, thereby providing a more realistic scenario in actual operation; compiling the three-phase inverter physical model into the HIL test equipment will help integrate the inverter control and motor model simulation, and verify the reliability of the entire system; by establishing a physical model of the inverter, engineers can debug and optimize the system more quickly, saving a lot of time and resources; in summary, this technical solution will provide more precise parameters for the behavioral modeling of the three-phase inverter, and provide more comprehensive, accurate and reliable support for the simulation and testing of the entire system.

[0140] In one embodiment of the present invention, a vehicle motor controller operating environment simulation system is provided, wherein the motor control system adjustment module comprises:

[0141] The module for monitoring the motor dq axis current signal is used to compile the three-phase inverter physical model into the HIL test equipment and monitor the motor dq axis current signal;

[0142] A comparison module, for causing the motor controller to enter a simulated environment chamber if the motor dq axis current signal differs from a preset motor dq axis current signal by no more than a preset threshold, otherwise sending an alarm message to a visualization device;

[0143] A feedback control module, used for causing the motor controller to enter feedback control if the motor dq axis current signal differs from a preset motor dq axis current signal by more than a preset threshold;

[0144] The feedback control module comprises:

[0145] The calibration sensor module is used to calibrate the current sensor and monitor the motor dq axis current signal after calibration.

[0146] A parameter adjustment module, used for adjusting the parameters of the three-phase inverter physical model if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold after calibration, wherein the parameters include load and motor characteristics, and monitoring the motor dq axis current signal after adjustment;

[0147] A key parameter acquisition module is used to acquire the dq axis current and other key parameters when the following degree is poor if the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold. The other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology;

[0148] The control algorithm adjustment module is used to adjust the control algorithm according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

[0149] The working principle of the above technical solution is as follows: compile the physical model of the three-phase inverter into the hardware-in-the-loop (HIL) test equipment, set the initial parameters of the motor control system, including the preset thresholds of the dq axis current signals, start the system and monitor the dq axis current signals of the motor in real time, compare the current signal obtained in real time with the preset current signal, and if the difference is within the preset threshold range, the system enters the simulation environment chamber and operates normally. If the difference exceeds the threshold, an alarm is triggered and the feedback control program is entered; calibrate the current sensor to ensure the accuracy of the current measurement, re-monitor the dq axis current, and after calibration, compare the current signal with the preset value again; if the current still exceeds the threshold, adjust the load and motor characteristic parameters of the three-phase inverter model; monitor the current signal again after adjustment; if the current signal still exceeds the threshold after adjustment, conduct a more in-depth fault analysis:

[0150] Collect key parameters, including the actual speed, position, temperature of the motor, voltage of the motor controller, gain value of the PID controller, and external environmental conditions; use this technology to identify abnormal causes of poor performance based on the collected key parameters; adjust the parameters of the PID controller or other related control algorithms based on the analysis results; continue to optimize until the difference between the dq axis current signal and the preset signal no longer exceeds the preset threshold.

[0151] The effect of the above technical solution is: by real-time monitoring of the motor dq axis current signal, the solution can quickly detect and respond to any situation that exceeds the preset value, while ensuring the normal operation of the system, ensuring that even small deviations can be noticed;

[0152] Automatically switching to the appropriate control strategy (simulated environmental chamber or feedback control) helps improve the system's adaptability and robustness, ensuring that the system remains stable under different working conditions; by calibrating sensors, adjusting parameters, and identifying abnormal patterns, the system can autonomously perform maintenance and adjustments, reducing the need for human intervention and improving the system's autonomy and accuracy; dynamically adjusting the control algorithm based on abnormal patterns effectively solves the problem of poor tracking and drives system performance toward a more optimized state; sending alarm information to visualization devices can provide real-time feedback and support subsequent troubleshooting and optimization. Overall, this technical solution provides a complete closed-loop control system that exhibits strong adaptability and intelligence in terms of real-time monitoring, abnormality detection, and automatic adjustment of control algorithms, thereby ensuring the stability, safety, and performance optimization of the motor system.

[0153] An embodiment of the present invention provides a vehicle motor controller operating environment simulation system, wherein the simulated operating environment module comprises:

[0154] An environment data acquisition module is used to acquire environment data when the motor controller is running, the environment data includes the temperature, humidity, motor load and motor speed of the environment where the motor controller is located, and acquire adjustment behavior data of the motor control system under different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment;

[0155] A cleaning module, used to clean the acquired environment data and adjustment behavior data, and perform data alignment thereon;

[0156] The dataset splitting module is used to split the aligned data into training set and test set;

[0157] The training model module is used to train the LSTM model using the training set, and then use the test set to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then compile the motor controller operating environment simulation model to the HIL test equipment to simulate the automobile motor controller operating environment.

[0158] The working principle of the above technical solution is as follows: environmental data (temperature, humidity, motor load, speed) and adjustment behavior data (control signal changes and power adjustments) are obtained from the motor controller system and cleaned to remove outliers or inconsistent data. These data record the response of the motor controller under various environmental conditions; the environmental data and adjustment behavior data are aligned to ensure that they can match correctly, such as aligning related data points through timestamps or event triggers to make them meaningful data sequences; the aligned data is divided into training sets and test sets, where the training set is used for model training and the test set is used to verify and evaluate the performance of the model; the training set is trained using a long short-term memory (LSTM) model. LSTM is a deep learning model suitable for sequence data processing and is suitable for time-dependent data. By learning the relationship between environmental data and adjusting behavior data, the model can simulate the environment more accurately. The trained LSTM model is verified and evaluated using the test set, which verifies the accuracy of the model. The verified motor controller operating environment simulation model is compiled into the hardware-in-the-loop test system (HIL) to simulate different environments of the motor controller's operating behavior. In this process, the actual operating environment of the actual motor controller on the car can be effectively simulated.

[0159] The effects of the above technical solution are as follows: the solution can construct a more realistic and complex motor controller environment simulation model based on real environment data and corresponding control behavior data, so that the simulation results are more in line with the actual situation; the LSTM model can learn the complex nonlinear relationship between environmental data and motor controller behavior, and achieve more accurate simulation of the environment through the adjustment behavior of the motor controller in different environments; the model compiled into the HIL test equipment will enhance the simulation ability of the test system to the performance response of the motor controller in different working environments, and enhance the comprehensiveness and accuracy of system testing and verification. The establishment and compilation of the environmental simulation model realizes the comprehensive automated simulation test of the vehicle motor controller operating environment, which helps to discover system problems and optimize them in advance, reducing manpower investment and time costs. Compiling the physical model of the automobile motor using the HIL test equipment can greatly reduce the risk before system deployment; by verifying in the simulation environment and testing the environmental adaptability of the motor controller, it helps to improve the reliability of the system; simulating the operating environment of the automobile motor controller through the simulation model helps to discover problems and debug them at an early stage, thereby reducing the cost of testing and adjusting on the actual automobile motor. This technical solution combines environmental data and the response behavior of the motor controller, and the model can more accurately simulate the environmental conditions in the real world; such simulation will be closer to actual working conditions, and can better understand the motor controller's response to environmental changes and infer the specific details of the environment, which helps to deeply understand the behavior patterns of the controller under various working conditions.

[0160] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for simulating the operating environment of an automobile motor controller, It is characterized in that The method comprises: Building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device; After compilation, the motor dq axis current signal is monitored, and the motor control system is adjusted according to the difference between the motor dq axis current signal and the preset motor dq axis current signal; Monitoring environmental data of a motor controller during operation and adjustment behavior of a motor control system, integrating the environmental data and adjustment behavior of the motor controller during operation into a motor controller operation environment simulation model, and simulating an automobile motor controller operation environment according to the motor controller operation environment simulation model; The motor dq axis current signal is monitored after compilation, and the motor control system is adjusted according to the difference between the motor dq axis current signal and the preset motor dq axis current signal, including: Compile the three-phase inverter physical model into the HIL test equipment to monitor the motor dq axis current signal; If the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold, the motor controller enters the simulated environment chamber; If the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the motor controller enters feedback control; Entering feedback control includes: Calibrate the current sensor and monitor the motor dq axis current signal after calibration; After calibration, if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold, the parameters of the three-phase inverter physical model are adjusted, the parameters including load and motor characteristics, and the motor dq axis current signal is monitored after adjustment; If the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold, the dq axis current and other key parameters when the following degree is poor are obtained. Other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology; The control algorithm is adjusted according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

2. A method for simulating the operating environment of an automobile motor controller according to claim 1, It is characterized in that Build a physical model of the automobile motor and compile the physical model of the automobile motor into the HIL test equipment, including: Build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device; A three-phase inverter physical model is constructed, and the three-phase inverter physical model is compiled into a HIL test device.

3. According to the method for simulating the operating environment of an automobile motor controller as described in claim 2, It is characterized in that Building a three-phase inverter physical model and compiling the three-phase inverter physical model into the HIL test equipment includes: The three-phase inverter receives the PWM control signal from the board and detects whether the bridge arm is turned on; If the bridge arm is turned on, detecting whether it is forward conducting, and if it is detected that the bridge arm is forward conducting, calculating the control phase voltage, current and internal resistance when forward conducting; If it is detected that the bridge arm is not conducting or the bridge arm is conducting in the negative direction, the control phase voltage, current and internal resistance when not conducting and the control phase voltage, current and internal resistance when conducting in the negative direction are calculated respectively; Output voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model; The three-phase inverter physical model is compiled into the HIL test equipment.

4. According to claim 1, a method for simulating the operating environment of an automobile motor controller, It is characterized in that Monitoring the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrating the environmental data and the adjustment behavior of the motor controller during operation into a motor controller operation environment simulation model, and simulating the automobile motor controller operation environment according to the motor controller operation environment simulation model, including: Acquire environmental data when the motor controller is running, the environmental data includes the temperature, humidity, motor load and motor speed of the environment in which the motor controller is located, and acquire adjustment behavior data of the motor control system in different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment; Cleaning the acquired environment data and adjustment behavior data, and performing data alignment thereon; Divide the aligned data into training set and test set; The training set is used to train the LSTM model, and the test set is used to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then the motor controller operating environment simulation model is compiled into the HIL test equipment to simulate the automobile motor controller operating environment.

5. A vehicle motor controller operating environment simulation system, It is characterized in that The system comprises: Building a physical model module for building a physical model of an automobile motor, and compiling the physical model of the automobile motor into a HIL test device; An adjustment motor control system module is used to monitor the motor dq axis current signal after compilation, and adjust the motor control system according to the difference between the motor dq axis current signal and a preset motor dq axis current signal; A simulation operation environment module is used to monitor the environmental data of the motor controller during operation and the adjustment behavior of the motor control system, integrate the environmental data and adjustment behavior of the motor controller during operation into a simulation model of the motor controller operation environment, and simulate the operation environment of the automobile motor controller according to the simulation model of the motor controller operation environment; Wherein, the adjustment motor control system module includes: The module for monitoring the motor dq axis current signal is used to compile the three-phase inverter physical model into the HIL test equipment and monitor the motor dq axis current signal; A comparison module, configured to cause the motor controller to enter a simulated environment chamber if the motor dq axis current signal differs from a preset motor dq axis current signal by no more than a preset threshold; A feedback control module, used for causing the motor controller to enter feedback control if the motor dq axis current signal differs from a preset motor dq axis current signal by more than a preset threshold; The feedback control module comprises: The calibration sensor module is used to calibrate the current sensor and monitor the motor dq axis current signal after calibration. A parameter adjustment module, used for adjusting the parameters of the three-phase inverter physical model if the motor dq axis current signal differs from the preset motor dq axis current signal by more than a preset threshold after calibration, wherein the parameters include load and motor characteristics, and monitoring the motor dq axis current signal after adjustment; A key parameter acquisition module is used to acquire the dq axis current and other key parameters when the following degree is poor if the difference between the adjusted motor dq axis current signal and the preset motor dq axis current signal exceeds a preset threshold. The other key parameters include: the actual speed, position, temperature of the motor, the actual voltage of the motor controller, the gain value of the PID controller and the external environmental conditions. Based on the key parameters, the abnormal cause of the poor following degree is identified using time domain analysis technology; The control algorithm adjustment module is used to adjust the control algorithm according to the abnormal cause until the motor dq axis current signal differs from the preset motor dq axis current signal by no more than a preset threshold.

6. According to claim 5, a vehicle motor controller operating environment simulation system, It is characterized in that The physical model building module includes: Build a CAN communication model module, which is used to build a CAN communication model, compile the CAN communication model into the HIL test equipment, obtain the motor controller feedback signal, compare the motor controller feedback signal with the preset feedback signal, and if the difference does not exceed the preset reference value, it is considered to be in line with expectations, and continue to load the three-phase inverter physical model, otherwise send an alarm message to the visualization device; A three-phase inverter physical model module is built to build a three-phase inverter physical model, and the three-phase inverter physical model is compiled into the HIL test equipment.

7. A vehicle motor controller operating environment simulation system according to claim 6, It is characterized in that The three-phase inverter physical model module includes: The control signal receiving module is used for the three-phase inverter to receive the slave board PWM control signal and detect whether the bridge arm is turned on; A detection conduction module is used to detect whether the bridge arm is forward-conducting when it is turned on, and if it is detected that the bridge arm is forward-conducting, calculate the control phase voltage, current and internal resistance when it is forward-conducting; A module for detecting negative conduction and non-conduction is used to calculate the control phase voltage, current and internal resistance when the bridge arm is not conducting and the control phase voltage, current and internal resistance when the bridge arm is negatively conducting if it is detected that the bridge arm is not conducting or the bridge arm is negatively conducting; Output voltage, current and internal resistance calculation value module, used for outputting voltage, current and internal resistance calculation values ​​to the motor physical model to construct a three-phase inverter physical model; A compiling module is used to compile the three-phase inverter physical model into the HIL test equipment.

8. According to claim 5, a vehicle motor controller operating environment simulation system, It is characterized in that The simulation operation environment module includes: An environment data acquisition module is used to acquire environment data when the motor controller is running, the environment data includes the temperature, humidity, motor load and motor speed of the environment where the motor controller is located, and acquire adjustment behavior data of the motor control system under different environments, the adjustment behavior data includes the change of the control signal of the motor controller and the power adjustment; A cleaning module, used to clean the acquired environment data and adjustment behavior data, and perform data alignment thereon; The dataset splitting module is used to split the aligned data into training set and test set; The training model module is used to train the LSTM model using the training set, and then use the test set to verify and evaluate the LSTM model to build a motor controller operating environment simulation model, and then compile the motor controller operating environment simulation model to the HIL test equipment to simulate the automobile motor controller operating environment.

Citation Information

Patent Citations

  • Automatic test system for motor controller of new energy automobile

    CN108845555A

  • Hardware-in-loop simulation testing system and method based on power level virtual motor

    CN110737207A