An automated development method and system for a virtual ECU model

By parsing the autonomous driving hardware database and using simulation software to automatically build a virtual ECU model, the problems of long development cycle and low accuracy are solved, and efficient and rapid model development is achieved.

CN115422035BActive Publication Date: 2025-10-10WUHAN KOTEI INFORMATICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210871603.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2025-10-10
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

The development cycle of virtual ECU models in existing technologies is long, inefficient, and difficult to quickly respond to changes in the hardware database. Manual construction methods make it difficult to ensure the accuracy of test nodes.

Method used

Perform format parsing based on the autonomous driving hardware database, analyze network nodes, message frames and signal information, use simulation software to automatically build models, and optimize the development process.

Benefits of technology

It greatly shortens the development cycle, improves development efficiency and accuracy, and can quickly respond to changes in the hardware database to meet the needs of each test node.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115422035B_ABST
    Figure CN115422035B_ABST
Patent Text Reader

Abstract

The application provides an automatic development method and system of a virtual ECU model, and the method comprises the following steps: S1, parsing a database file to obtain all network node information, message frame information, signal information and default values of signals defined in the database; S2, defining a model construction function of the virtual ECU model according to the network node information, the message frame information, the signal information and the default values of the signals; S3, calling the model construction function to construct a network node model according to single network node information and the message frame information, the signal information and the default values of the signals corresponding to the network node; and S4, repeating step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed. The application is based on format analysis of an automatic driving hardware database, uses a simulation software to automatically construct a model, improves development accuracy and development efficiency, can quickly respond to changes of the hardware database, and meets the requirements of various test nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving testing technology, and more specifically, to an automated development method, system, electronic device, and storage medium for a virtual ECU model. Background Art

[0002] In automotive simulation testing, it's necessary to build a virtual ECU model of the nodes associated with the controller under test to achieve a closed-loop signal loop for the hardware under test. This is particularly true for autonomous driving and electrification testing modules, which require the construction of numerous Simulink models to implement model building and configuration within the NI real-time machine.

[0003] For the development of virtual ECU models, Simulink is currently commonly used to build and configure modules based on database files (DBC).

[0004] During the development cycle of a controller, there are usually hundreds of message nodes. Manual construction methods have a long development cycle, low efficiency, and difficulty in ensuring accuracy. At the same time, database changes may occur during the development cycle, causing changes in node signals. Manual construction methods make it difficult to guarantee test nodes and are time-consuming and labor-intensive. Summary of the Invention

[0005] In response to the technical problems existing in the prior art, the present invention provides an automated development method, system, electronic device and storage medium for a virtual ECU model. The method performs format parsing based on an autonomous driving hardware database, analyzes the soft ECU development process, and uses simulation software to automatically create modules, thereby optimizing the development process of the virtual ECU model and improving development efficiency.

[0006] According to a first aspect of the present invention, there is provided a method for automatically developing a virtual ECU model, comprising:

[0007] S1. Parse the database file to obtain all network node information, message frame information, signal information and signal default values ​​defined in the database;

[0008] S2. defining a model construction function of a virtual ECU model according to the network node information, message frame information, signal information, and default values ​​of the signal;

[0009] S3. Call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default value corresponding to the network node;

[0010] S4. Loop step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed.

[0011] On the basis of the above technical solution, the present invention can also make the following improvements.

[0012] Optionally, in step S1, the database file is parsed using a regular expression.

[0013] Optionally, in step S1, all the network node information, message frame information, signal information, and signal default values ​​obtained by parsing include:

[0014] All network node information, the message frame information corresponding to each network node, the signal information corresponding to each message frame information, and the default value of each signal.

[0015] Optionally, step S2 includes:

[0016] Check whether the model building function exists in the built-in functions provided by the development environment language;

[0017] If it exists, you can use this built-in model construction function directly;

[0018] If it does not exist, a custom model construction function is created based on the network node information, message frame information, signal information and signal default values ​​obtained by parsing;

[0019] The model building function can at least realize the functions of model creation, property editing, and signal line creation.

[0020] Optionally, step S3 includes:

[0021] Calling the model building function to build a single network node subsystem model according to the network node information;

[0022] Constructing a corresponding message frame subsystem according to the message frame information under the network node subsystem model;

[0023] Under each message frame subsystem, construct all signal models corresponding to the message frame information according to the signal information;

[0024] Use the default value of the signal to assign values ​​to the corresponding signal models.

[0025] Optionally, step S4 includes:

[0026] After each network node model is constructed, the model construction function is called again to continue to construct the corresponding network node model according to the next network node information until all network node information of the virtual ECU model is traversed and the construction of all network node models is completed.

[0027] According to a second aspect of the present invention, there is provided an automated development system for a virtual ECU model, comprising:

[0028] The database parsing module is used to parse the database file and obtain all network node information, message frame information, signal information and signal default values ​​defined in the database;

[0029] A function definition module, configured to define a model construction function of a virtual ECU model according to the network node information, message frame information, signal information, and default values ​​of the signal;

[0030] A single model building module is used to call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default values ​​corresponding to the network node;

[0031] The global model construction module is used to cyclically construct a single network node model and traverse all network node information until all network node models of the virtual ECU model are constructed.

[0032] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the processor is configured to implement the steps of the above-mentioned method for automated development of a virtual ECU model when executing a computer management program stored in the memory.

[0033] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the above-mentioned automated development method of the virtual ECU model are implemented.

[0034] Beneficial effects:

[0035] In traditional autonomous driving simulation tests, the model of the virtual ECU is gradually constructed manually in combination with the hardware database (DBC). Due to the large number of nodes associated with the controller, the development cycle is long, and it is difficult to respond to changes in the database, and the test nodes cannot be guaranteed. Therefore, the present invention provides an automated development method, system, electronic device and storage medium for the above-mentioned virtual ECU model. It performs format parsing based on the autonomous driving hardware database, analyzes the soft ECU development process, and uses simulation software to automatically construct the model, thereby optimizing the development process of the virtual ECU model, greatly shortening the development cycle, improving development accuracy and efficiency, and can quickly respond to changes in the hardware database to meet the needs of each test node. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A flowchart of an automated development method for a virtual ECU model provided by the present invention;

[0037] Figure 2 A block diagram of an automated development system for a virtual ECU model provided by the present invention;

[0038] Figure 3 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;

[0039] Figure 4 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0040] The following embodiments of the present invention are described in further detail with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.

[0041] Figure 1 The flow chart of the automated development method of a virtual ECU model provided by the present invention is as follows: Figure 1 As shown, the method includes:

[0042] S1. Parse the database file to obtain all network node information, message frame information, signal information and signal default values ​​defined in the database;

[0043] S2. defining a model construction function of a virtual ECU model according to the network node information, message frame information, signal information, and default values ​​of the signal;

[0044] S3. Call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default value corresponding to the network node;

[0045] S4. Loop step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed.

[0046] It can be understood that, based on the defects in the background technology, an embodiment of the present invention proposes an automated development method for a virtual ECU model. Parsing the hardware database file in step S1 can be understood as determining how to define the network nodes, message frames, signals, and default values ​​of the signals in the file according to the standard format of the database. For example, the definition format of a certain network node in the database is: BU_: NodeName1 NodeName2 NodeName3. The model building function in step S2 is a common function that can be used when constructing each network node model subsequently, and is used to create a network node model based on the various information obtained from the input analysis. In step S3, after each network node model is constructed, the model building function in S2 is called again, and the next network node information and the corresponding message frame information, signal information and the default value of the signal are input, and the construction of the next network node model is continued until all network node information is traversed and the construction of all network node models of the virtual ECU model is completed, thereby completing the automated development of the virtual ECU model.

[0047] In traditional autonomous driving simulation tests, the model of the virtual ECU is gradually constructed manually in combination with the hardware database (DBC). Due to the large number of nodes associated with the controller, the development cycle is long, it is difficult to respond to changes in the database, and the test nodes cannot be guaranteed. Therefore, the present invention provides an automated development method for the above-mentioned virtual ECU model, which performs format parsing based on the autonomous driving hardware database to obtain information about each network node and the message frame information, signal information and default values ​​of the signal corresponding to each network node. The soft ECU development process is analyzed based on the parsed information, such as confirming the number of network node models that need to be constructed, and using simulation software such as MATLAB / Simulink to automatically construct the model, and construct all network node models of the virtual ECU model one by one, thereby optimizing the development process of the virtual ECU model, greatly shortening the development cycle, improving development accuracy and efficiency, and being able to quickly respond to changes in the hardware database to meet the needs of each test node.

[0048] In a possible embodiment, in step S1, the hardware database file is parsed using regular expressions to obtain information about each network node, as well as message frame information, signal information, and default values ​​of the signals corresponding to each network node.

[0049] It is understandable that the information obtained from these analyses is the input item for the subsequent network node model construction, which contains the necessary information for the construction process of each network node model. The information corresponding to each network node is different, such as naming and assignment.

[0050] In a possible embodiment, in step S1, all the network node information, message frame information, signal information, and signal default values ​​obtained by parsing include:

[0051] All network node information, the message frame information corresponding to each network node, the signal information corresponding to each message frame information, and the default value of each signal.

[0052] It can be understood that the network node information, message frame information, signal information and the default value of each signal are in a top-down hierarchical relationship, so that after each network node model is subsequently constructed, the resulting virtual ECU model has an overall tree structure, and each part of the content can be output through the bus module.

[0053] In a possible embodiment, step S2 includes:

[0054] Check whether the model building function exists in the built-in functions provided by the development environment language;

[0055] If it exists, you can use this built-in model construction function directly;

[0056] If it does not exist, a custom model construction function is created based on the network node information, message frame information, signal information and signal default values ​​obtained by parsing;

[0057] The model building function can at least realize the functions of model creation, property editing, and signal line creation.

[0058] It can be understood that model development includes steps such as network node construction, message frame construction, signal construction, and signal value assignment. Based on the information obtained from parsing the database in step S1, the virtual ECU model's framework and various network node parameter information can be analyzed to determine the virtual ECU model development process. Based on the determined virtual ECU model development process, the required model construction function type is determined.

[0059] First, confirm whether the built-in functions provided in the development environment language have a programmatic model compilation interface (i.e., the model construction function required to build the model in this invention). If so, it can be used directly; if not, customize the model construction function based on the network node information, message frame information, signal information, and signal default values ​​obtained from the previous step. This embodiment takes the construction of a virtual ECU model under the MATLAB / Simulink platform as an example. In the MATLAB development environment, the built-in functions of the M language can be used for coding to implement functions such as model creation, attribute editing, and signal line creation. For example, the model construction is mainly implemented by built-in functions such as add_block and add_line.

[0060] In a possible embodiment, step S3 includes:

[0061] Calling the model building function to build a single network node subsystem model according to the network node information;

[0062] Constructing a corresponding message frame subsystem according to the message frame information under the network node subsystem model;

[0063] Under each message frame subsystem, construct all signal models corresponding to the message frame information according to the signal information;

[0064] Use the default value of the signal to assign values ​​to the corresponding signal models.

[0065] It is understood that after determining that a model construction function is available, the network node models can be constructed one by one based on the parsed network node information, message frame information, signal information, and signal default values. The model construction process includes the steps of constructing each network node, constructing the message frame under the network node, constructing the signal under the message frame, and assigning values ​​to the signal. The model construction function obtained in step S2 is called, and the various information obtained from parsing the database in step S1 is used as input to the model construction function. The output of the model construction function then generates a single network node model.

[0066] In a possible embodiment, step S4 includes:

[0067] After each network node model is constructed, the model construction function is called again to continue to construct the corresponding network node model according to the next network node information until all network node information of the virtual ECU model is traversed and the construction of all network node models is completed.

[0068] It can be understood that a complete virtual ECU model includes several network nodes. By constructing all network node models one by one in a loop, the construction of the virtual ECU model is completed.

[0069] After constructing a single network node subsystem model in step S3, within each network node subsystem, a model for all message frame subsystems for that network node is constructed. Within each message frame subsystem, models for all signals within that message frame are constructed, and the signal models are then assigned default values ​​using the parsed signals. After all network node models are constructed in step S4, the virtual ECU model takes on a tree-like structure, with each component output via a bus module. After the model is constructed, it is compiled and imported into the real-time system's host computer software for I / O configuration, enabling communication and interaction with the hardware under test via the hardware board. Completing these steps completes the development of an automated conversion tool from a hardware database to a virtual ECU model.

[0070] Figure 2 A virtual ECU model automatic development system structure diagram provided by an embodiment of the present application is shown in Figure 2 The virtual ECU model automatic development system comprises a database analysis module, a function definition module, a single model construction module and a global model construction module, wherein:

[0071] The database analysis module 201 is configured to analyze a database file to obtain all network node information, message frame information, signal information and default values of signals defined in the database;

[0072] The function definition module 202 is configured to define a model construction function of the virtual ECU model according to the network node information, the message frame information, the signal information and the default values of signals;

[0073] The single model construction module 203 is configured to call the model construction function to construct a network node model according to single network node information and message frame information, signal information and default values of signals corresponding to the network node;

[0074] The global model construction module 204 is configured to loop to construct single network node models and traverse all network node information until all network node models of the virtual ECU model are constructed.

[0075] It can be understood that the virtual ECU model automatic development system provided by the present application corresponds to the virtual ECU model automatic development method provided by the above-mentioned embodiments, and the related technical features of the virtual ECU model automatic development system can refer to the related technical features of the virtual ECU model automatic development method, which will not be described here.

[0076] Please refer to Figure 3 , Figure 3 An embodiment of an electronic device provided by the present application is shown in Figure 3 The present embodiment provides an electronic device comprising a memory 310, a processor 320 and a computer program 311 stored in the memory 310 and executable on the processor 320, and the processor 320 implements the following steps when executing the computer program 311:

[0077] S1, analyzing a database file to obtain all network node information, message frame information, signal information and default values of signals defined in the database;

[0078] S2, defining a model construction function of the virtual ECU model according to the network node information, the message frame information, the signal information and the default values of signals;

[0079] S3. Call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default value corresponding to the network node;

[0080] S4. Loop step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed.

[0081] See also Figure 4 , Figure 4 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400 on which a computer program 411 is stored. When the computer program 411 is executed by a processor, the following steps are implemented:

[0082] S1. Parse the database file to obtain all network node information, message frame information, signal information and signal default values ​​defined in the database;

[0083] S2. defining a model construction function of a virtual ECU model according to the network node information, message frame information, signal information, and default values ​​of the signal;

[0084] S3. Call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default value corresponding to the network node;

[0085] S4. Loop step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed.

[0086] An embodiment of the present invention provides an automated development method, system, and storage medium for a virtual ECU model. This method performs format parsing based on an autonomous driving hardware database, analyzes the soft ECU development process, and uses simulation software to automatically construct the model. This optimizes the development process of the virtual ECU model, greatly shortens the development cycle, improves development accuracy and efficiency, and can quickly respond to changes in the hardware database to meet the needs of each test node.

[0087] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0088] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0089] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0092] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

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

Claims

1. An automated development method for a virtual ECU model, characterized in that: The following steps are involved: S1. Parse the database file to obtain all network node information, message frame information, signal information and signal default values ​​defined in the database; S2. Defining a model construction function of a virtual ECU model according to the network node information, message frame information, signal information, and signal default values; including: Check whether the model building function exists in the built-in functions provided by the development environment language; If it exists, you can use this built-in model construction function directly; If it does not exist, a custom model construction function is constructed based on the network node information, message frame information, signal information and signal default values ​​obtained by parsing; The model building function can at least realize the functions of model creation, attribute editing, and signal line creation; S3. Calling the model building function to build a network node model based on the single network node information and the message frame information, signal information, and signal default values ​​corresponding to the network node; including: Calling the model building function to build a single network node subsystem model according to the network node information; Constructing a corresponding message frame subsystem according to the message frame information under the network node subsystem model; Under each message frame subsystem, construct all signal models corresponding to the message frame information according to the signal information; Use the default value of the signal to assign values ​​to the corresponding signal models; S4. Loop step S3 to traverse all network node information until all network node models of the virtual ECU model are constructed.

2. The automated development method of a virtual ECU model according to claim 1, characterized in that: In step S1, the database file is parsed using regular expressions.

3. The automated development method of a virtual ECU model according to claim 1, characterized in that: In step S1, all network node information, message frame information, signal information and signal default values ​​obtained by parsing include: All network node information, the message frame information corresponding to each network node, the signal information corresponding to each message frame information, and the default value of each signal.

4. The automated development method of a virtual ECU model according to claim 1, characterized in that: Step S4 includes: After each network node model is constructed, the model construction function is called again to continue to construct the corresponding network node model according to the next network node information until all network node information of the virtual ECU model is traversed and the construction of all network node models is completed.

5. An automated development system for a virtual ECU model, characterized in that: include: The database parsing module is used to parse the database file and obtain all network node information, message frame information, signal information and signal default values ​​defined in the database; A function definition module is used to define a model construction function of a virtual ECU model based on the network node information, message frame information, signal information, and signal default values; including: Check whether the model building function exists in the built-in functions provided by the development environment language; If it exists, you can use this built-in model construction function directly; If it does not exist, a custom model construction function is constructed based on the network node information, message frame information, signal information and signal default values ​​obtained by parsing; The model building function can at least realize the functions of model creation, attribute editing, and signal line creation; A single model building module is used to call the model building function to build a network node model based on the single network node information and the message frame information, signal information and signal default value corresponding to the network node; including: Calling the model building function to build a single network node subsystem model according to the network node information; Constructing a corresponding message frame subsystem according to the message frame information under the network node subsystem model; Under each message frame subsystem, construct all signal models corresponding to the message frame information according to the signal information; Use the default value of the signal to assign values ​​to the corresponding signal models; The global model construction module is used to cyclically construct a single network node model and traverse all network node information until all network node models of the virtual ECU model are constructed.

6. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used to implement the steps of the automated development method of a virtual ECU model as claimed in any one of claims 1 to 4 when executing a computer management program stored in the memory.

7. A computer-readable storage medium, characterized in that A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the automated development method of a virtual ECU model as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Vehicle-mounted bus simulation model self-generating method and system

    CN106154865A

  • Model base development assisting block, simulation system and automatic code generation method

    JP2008077415A