Virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI and development method

Through the virtual body controller system and development methods of Simulink, CANoe and MATLAB GUI, the problems of high cost and long cycle of traditional body controller development methods are solved, efficient development and verification are achieved, and development efficiency and simulation accuracy are improved. Supports rapid iteration and optimization.

CN119105311APending Publication Date: 2024-12-10ZAIHE AUTOMOBILE TECHNOLOGY (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411153331.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Traditional body controller development methods are costly and have a long cycle, and it is difficult to quickly adjust and verify control algorithms and logic.

Method used

Using virtual body controller systems and development methods based on Simulink, CANoe and MATLAB GUI, including Simulink controller model, CANoe simulation environment and MATLAB GUI interface, it supports multiple control algorithms and protocols by simulating the vehicle network environment and real-time communication, and has Flexible parameter configuration and debugging functions.

Benefits of technology

It greatly shortens the development cycle, reduces costs, improves the development efficiency and accuracy and reliability of simulation results, supports rapid iteration and optimization, and improves product quality and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105311A_ABST
    Figure CN119105311A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of commercial vehicle technologies, and discloses a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI and a development method.The virtual vehicle body controller system comprises a Simulink controller model, a CANoe simulation environment and a MATLAB GUI, the Simulink controller model comprises a signal input module, a control algorithm module and a signal output module, and the CANoe simulation environment comprises a CANoe simulation environment and a MATLAB GUI. The CANoe simulation environment comprises a network configuration module, a node simulation module, a message monitoring module and the like, and the MATLAB GUI interface comprises an interface design module, a communication interface module and a data processing module. Through the integrated design of Simulink, CANoe and MATLAB GUI, a highly integrated and configurable development platform is provided, developers can quickly construct and verify the vehicle body controller system in a virtual environment without tedious hardware construction and programming work, the development period is shortened, the development cost is reduced, and the development efficiency is improved through quick iteration and optimization. Problems can be found and solved earlier, and product quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of commercial vehicle technology, and in particular to a virtual vehicle body controller system and a development method based on Simulink, CANoe and MATLAB GUI. Background Art

[0002] The body controller, also known as the body computer, refers to the electronic control unit (ECU) used to control the body electrical system in automotive engineering. It is one of the important components of the car. Common functions of the body controller include controlling electric windows, electric rearview mirrors, air conditioning, headlights, turn signals, anti-theft locking system, central locking, defrosting device, etc. The body controller can be connected to other on-board ECUs through the bus.

[0003] With the rapid development of automotive electronic technology, the body controller, as the core component of vehicle control and management, has an increasingly complex design. Traditional body controller development methods are usually based on hardware-in-the-loop (HIL) simulation or real vehicle testing. Although these methods can provide relatively realistic environmental simulation and test results, they have problems such as high cost, long cycle and limited test environment. In addition, these methods also have certain difficulties in adjusting and verifying control algorithms and logics. Therefore, a virtual body controller system and development method based on Simulink, CANoe and MATLAB GUI are proposed, aiming to improve development efficiency, reduce development costs, and quickly adapt to changing market demands. Summary of the invention

[0004] In order to solve the above-mentioned problems, the present invention provides a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI.

[0005] The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI provided by the present invention adopts the following technical solutions:

[0006] A virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI comprises a Simulink controller model, a CANoe simulation environment and a MATLAB GUI interface, wherein the Simulink controller model comprises a signal input module, a control algorithm module and a signal output module respectively, the CANoe simulation environment comprises a network configuration module, a node simulation module and a message monitoring module, etc., and the MATLAB GUI interface comprises an interface design module, a communication interface module and a data processing module.

[0007] Preferably, the Simulink controller model is used to simulate the control logic of the body controller, process the sensor signals and driver inputs received from the CANoe simulation environment, and generate corresponding control instructions. The Simulink controller model supports a variety of control algorithms and signal types, and has flexible parameter configuration and debugging functions.

[0008] Preferably, each of the signal input module, control algorithm module and signal output module can be edited and expanded independently.

[0009] Preferably, the CANoe simulation environment is used to simulate the CAN bus network inside the vehicle, communicate with the Simulink controller model in real time, simulate the behavior of the ECU node, and send and receive CAN messages. The CANoe simulation environment supports multiple CAN protocols and communication rates and has network fault simulation and diagnosis functions.

[0010] Preferably, the network configuration module, node simulation module and message monitoring module can simulate a real vehicle network environment.

[0011] Preferably, the MATLAB GUI interface is used to provide an interactive interface, allowing the user to edit input ports and output ports, observe the output port status and the communication message status of the CANoe simulation environment in real time, and supports a variety of interface layouts and control types, and has data visualization and analysis functions.

[0012] Preferably, the interface design module, communication interface module and data processing module are used to realize interactive operation with Simulink and CANoe simulation environments.

[0013] Preferably, the Simulink controller model communicates with the CANoe simulation environment via a CAN interface to achieve real-time transmission of sensor signals and control instructions.

[0014] Preferably, the Simulink controller model communicates with the CANoe simulation environment through a CAN interface to achieve real-time transmission of sensor signals and control instructions, and the MATLAB GUI interface interacts with the Simulink controller model and the CANoe simulation environment through the MATLAB API interface to achieve functions such as parameter editing, data monitoring and analysis.

[0015] Another technical problem to be solved by the present invention is to provide a method for developing a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI, comprising the following steps:

[0016] S1. Demand analysis and design: According to the functional requirements and performance requirements of the vehicle, the control logic and signal interaction of the body controller are clarified, including the sensor signals to be received, the driver input, and the control instructions to be sent;

[0017] S2. Simulink controller model construction. In Simulink, the control logic model of the body controller is built using the modular design method. The model should be able to process the input signals received from CANoe and generate output instructions according to the preset control logic.

[0018] S3. Build the CANoe simulation environment. In CANoe, build the CAN network environment of the whole vehicle, simulate the behavior of each ECU node, ensure that the real vehicle network environment can be simulated, and communicate with the Simulink controller model in real time;

[0019] S4. MATLAB GUI interface development. Design the MATLAB GUI interface, including the editing windows of the input and output ports, and the real-time display area for displaying the output port status and CANoe communication message status. Use MATLAB scripts to realize the communication between the GUI and the Simulink model and CANoe.

[0020] S5, interface configuration and simulation test, install and configure necessary plug-ins to ensure normal and reliable communication between Simulink, CANoe and MATLAB GUI, and conduct joint simulation test in Simulink, CANoe and MATLAB GUI, edit input signals through GUI interface, observe output port status and CANoe communication message status, and verify the control logic and performance of the body controller;

[0021] S6. Code generation and hardware-in-the-loop testing: Generate the controller code in Simulink and finally deploy it to the actual hardware for hardware-in-the-loop testing. Through testing and verification of the actual hardware, the performance and reliability of the controller are further confirmed.

[0022] In summary, the present invention includes the following beneficial technical effects:

[0023] 1. A virtual body controller system and development method based on Simulink, CANoe and MATLAB GUI. Through the integrated design of Simulink, CANoe and MATLAB GUI, a highly integrated and configurable development platform is provided. Developers can quickly build and verify the body controller system in a virtual environment without the need for tedious hardware construction and programming. This not only greatly shortens the development cycle and reduces development costs, but also can discover and solve problems earlier through rapid iteration and optimization, thereby improving product quality.

[0024] 2. A virtual body controller system and development method based on Simulink, CANoe and MATLAB GUI. Through sophisticated simulation environment settings and verification processes, combined with real-time data monitoring and analysis functions, it can simulate virtual test scenarios that are closer to the actual vehicle operating environment. This helps to more accurately evaluate the performance of the body controller and the effectiveness of the control logic, and improve the accuracy and reliability of the simulation results. At the same time, through real-time data feedback and monitoring, developers can promptly discover and correct potential problems, further improving the stability and safety of the system.

[0025] 3. A virtual body controller system and development method based on Simulink, CANoe and MATLAB GUI. The integrated virtual body controller system and efficient development method based on Simulink, CANoe and MATLAB GUI have the advantages of significantly improving development efficiency, enhancing the accuracy and reliability of simulation results, supporting flexible parameter configuration and algorithm optimization, and reducing environmental pollution and raw material consumption. These advantages make the invention have broad application prospects and important promotion value in the field of body controller system development. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of a virtual vehicle body controller system provided by the present invention;

[0027] Figure 2 The Matlab GUI interface provided by the present invention;

[0028] Figure 3 A diagram of the virtual vehicle body controller system architecture provided by the present invention;

[0029] Figure 4 The present invention provides a virtual vehicle body controller integrated design flow chart. DETAILED DESCRIPTION

[0030] The following is combined with Figure 1-4 The present invention is described in further detail.

[0031] The present invention discloses a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI. Figure 1-4 A virtual body controller system based on Simulink, CANoe and MATLAB GUI includes a Simulink controller model, a CANoe simulation environment and a MATLAB GUI interface. The Simulink controller model includes a signal input module, a control algorithm module and a signal output module. The CANoe simulation environment includes a network configuration module, a node simulation module and a message monitoring module. The MATLAB GUI interface includes an interface design module, a communication interface module and a data processing module. The Simulink controller model is used to simulate the control logic of the body controller, process the sensor signals and driver inputs received from the CANoe simulation environment, and generate corresponding control instructions. The Simulink controller model supports a variety of control algorithms and signal types, and has flexible parameter configuration and debugging functions.

[0032] Each module in the signal input module, control algorithm module and signal output module can be edited and expanded independently. The CANoe simulation environment is used to simulate the CAN bus network inside the vehicle, communicate with the Simulink controller model in real time, simulate the behavior of the ECU node, and send and receive CAN messages. The CANoe simulation environment supports multiple CAN protocols and communication rates, and has network fault simulation and diagnosis functions. The network configuration module, node simulation module and message monitoring module can simulate the real vehicle network environment.

[0033] The MATLAB GUI interface is used to provide an interactive interface, allowing users to edit input ports and output ports, observe the output port status and the communication message status of the CANoe simulation environment in real time, and support a variety of interface layouts and control types. It has data visualization and analysis functions. The interface design module, communication interface module and data processing module are used to realize interactive operations with Simulink and CANoe simulation environments. The Simulink controller model communicates with the CANoe simulation environment through the CAN interface to realize real-time transmission of sensor signals and control instructions. The Simulink controller model communicates with the CANoe simulation environment through the CAN interface to realize real-time transmission of sensor signals and control instructions. The MATLAB GUI interface interacts with the Simulink controller model and the CANoe simulation environment through the MATLAB API interface to realize parameter editing, data monitoring and analysis and other functions.

[0034] Another technical problem to be solved by the present invention is to provide a method for developing a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI, referring to Figure 1-4 , a development method of a virtual body controller system based on Simulink, CANoe and MATLAB GUI, comprising the following steps:

[0035] S1. Demand analysis and design: According to the functional requirements and performance requirements of the vehicle, the control logic and signal interaction of the body controller are clarified, including the sensor signals to be received, the driver input, and the control instructions to be sent;

[0036] S2. Simulink controller model construction. In Simulink, the control logic model of the body controller is built using the modular design method. The model should be able to process the input signals received from CANoe and generate output instructions according to the preset control logic.

[0037] S3. Build the CANoe simulation environment. In CANoe, build the CAN network environment of the whole vehicle, simulate the behavior of each ECU node, ensure that the real vehicle network environment can be simulated, and communicate with the Simulink controller model in real time;

[0038] S4. MATLAB GUI interface development. Design the MATLAB GUI interface, including the editing windows of the input and output ports, and the real-time display area for displaying the output port status and CANoe communication message status. Use MATLAB scripts to realize the communication between the GUI and the Simulink model and CANoe.

[0039] S5, interface configuration and simulation test, install and configure necessary plug-ins to ensure normal and reliable communication between Simulink, CANoe and MATLAB GUI, and conduct joint simulation test in Simulink, CANoe and MATLAB GUI, edit input signals through GUI interface, observe output port status and CANoe communication message status, and verify the control logic and performance of the body controller;

[0040] S6. Code generation and hardware-in-the-loop testing: Generate the controller code in Simulink and finally deploy it to the actual hardware for hardware-in-the-loop testing. Through testing and verification of the actual hardware, the performance and reliability of the controller are further confirmed.

[0041] In the specific implementation process, first install MATLAB / Simulink, CANoe and necessary plug-ins or toolboxes on the computer, and configure the network environment and simulation parameters of CANoe, including CAN channel, baud rate, node address, etc. Then create a new (design model according to functional requirements) or import a body controller model in Simulink. The model should include a signal input module, a control algorithm module and a signal output module. According to actual needs, configure the parameters and connection relationships of the modules to ensure the correctness of the control logic. Create a GUI interface in MATLAB, design input and output ports, display controls and interactive buttons, etc., write the callback function of the GUI, and realize communication and data exchange with the Simulink controller model and the CANoe simulation environment.

[0042] In the Simulink controller model, add a CAN interface module for communication with CANoe, configure the parameters of the CAN interface module to match the network environment and simulation parameters of CANoe, create corresponding CAN nodes in CANoe to receive and send CAN messages, write code in the callback function of the MATLAB GUI to achieve communication with the Simulink controller model and the CANoe simulation environment, and realize real-time data transmission and synchronization through the MATLAB API interface or a custom communication protocol;

[0043] Start the simulation in Simulink and observe the running status and output results of the controller model. Simultaneously, simulate the CAN bus network inside the vehicle in CANoe, send and receive CAN messages, and observe the status of the input and output ports and the communication message status of CANoe in real time through the MATLAB GUI interface. Based on the simulation results, evaluate the performance of the body controller and the effectiveness of the control logic. If problems or deficiencies are found, optimize them by modifying the parameters or control algorithm of the Simulink controller model. Repeat the simulation and verification process until the design requirements are met.

[0044] Through the MATLAB GUI interface, the parameters of the Simulink controller model can be easily configured and adjusted. According to actual needs, the parameters and connection relationships of the control algorithm module can be modified to implement different control strategies. The performance of the controller model can be analyzed and optimized using Simulink's model analysis and optimization tools. According to the simulation results and actual needs, the structure and parameters of the control algorithm can be adjusted to improve the performance and stability of the system.

[0045] The virtual body controller system has good scalability and can easily add new sensor and actuator models. By modifying the Simulink controller model and MATLAB GUI interface, a body controller system with different vehicle models or different control functions can be realized.

[0046] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI, including a Simulink controller model, a CANoe simulation environment and a MATLAB GUI interface, characterized in that: The Simulink controller model includes a signal input module, a control algorithm module and a signal output module respectively; the CANoe simulation environment includes a network configuration module, a node simulation module and a message monitoring module, etc.; the MATLAB GUI interface includes an interface design module, a communication interface module and a data processing module.

2. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The Simulink controller model is used to simulate the control logic of the body controller, process the sensor signals and driver inputs received from the CANoe simulation environment, and generate corresponding control instructions. The Simulink controller model supports a variety of control algorithms and signal types, and has flexible parameter configuration and debugging functions.

3. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: Each of the signal input module, control algorithm module and signal output module can be edited and expanded independently.

4. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The CANoe simulation environment is used to simulate the CAN bus network inside the vehicle, communicate with the Simulink controller model in real time, simulate the behavior of the ECU node, and send and receive CAN messages. The CANoe simulation environment supports multiple CAN protocols and communication rates and has network fault simulation and diagnosis functions.

5. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The network configuration module, node simulation module and message monitoring module can simulate a real vehicle network environment.

6. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The MATLAB GUI interface is used to provide an interactive interface, allowing users to edit input ports and output ports, observe the output port status and the communication message status of the CANoe simulation environment in real time, and supports a variety of interface layouts and control types, and has data visualization and analysis functions.

7. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The interface design module, communication interface module and data processing module are used to realize interactive operation with Simulink and CANoe simulation environments.

8. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The Simulink controller model communicates with the CANoe simulation environment via a CAN interface to achieve real-time transmission of sensor signals and control instructions.

9. The virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to claim 1, characterized in that: The Simulink controller model communicates with the CANoe simulation environment through the CAN interface to achieve real-time transmission of sensor signals and control instructions. The MATLAB GUI interface interacts with the Simulink controller model and the CANoe simulation environment through the MATLAB API interface to achieve functions such as parameter editing, data monitoring and analysis.

10. A method for developing a virtual vehicle body controller system based on Simulink, CANoe and MATLAB GUI according to any one of claims 1 to 9, characterized in that: The following steps are involved: S1. Demand analysis and design: According to the functional requirements and performance requirements of the vehicle, the control logic and signal interaction of the body controller are clarified, including the sensor signals to be received, the driver input, and the control instructions to be sent; S2. Simulink controller model construction. In Simulink, the control logic model of the body controller is built using the modular design method. The model should be able to process the input signals received from CANoe and generate output instructions according to the preset control logic. S3. Build the CANoe simulation environment. In CANoe, build the CAN network environment of the whole vehicle, simulate the behavior of each ECU node, ensure that the real vehicle network environment can be simulated, and communicate with the Simulink controller model in real time; S4. MATLAB GUI interface development. Design the MATLAB GUI interface, including the editing windows of the input and output ports, and the real-time display area for displaying the output port status and CANoe communication message status. Use MATLAB scripts to realize the communication between the GUI and the Simulink model and CANoe. S5, interface configuration and simulation test, install and configure necessary plug-ins to ensure normal and reliable communication between Simulink, CANoe and MATLAB GUI, and perform joint simulation test in Simulink, CANoe and MATLAB GUI, edit input signals through GUI interface, observe output port status and CANoe communication message status, and verify the control logic and performance of the body controller; S6. Code generation and hardware-in-the-loop testing: Generate the controller code in Simulink and finally deploy it to the actual hardware for hardware-in-the-loop testing. Through testing and verification of the actual hardware, the performance and reliability of the controller are further confirmed.