CN111291443B - Automatic generation method, device and equipment for I/O module model of vehicle control unit software - Google Patents

Automatic generation method, device and equipment for I/O module model of vehicle control unit software Download PDF

Info

Publication number
CN111291443B
CN111291443B CN201811493612.3A CN201811493612A CN111291443B CN 111291443 B CN111291443 B CN 111291443B CN 201811493612 A CN201811493612 A CN 201811493612A CN 111291443 B CN111291443 B CN 111291443B
Authority
CN
China
Prior art keywords
signal
module
processing module
information
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811493612.3A
Other languages
Chinese (zh)
Other versions
CN111291443A (en
Inventor
江建山
曾备
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GAC Aion New Energy Automobile Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN201811493612.3A priority Critical patent/CN111291443B/en
Publication of CN111291443A publication Critical patent/CN111291443A/en
Application granted granted Critical
Publication of CN111291443B publication Critical patent/CN111291443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, a device, equipment and a storage medium for automatically generating an I/O module model of finished vehicle controller software, wherein the method comprises the following steps: acquiring CAN message information and CAN signal information in a DBC file; generating a corresponding CAN message processing module according to the type of the CAN message information; generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each type of CAN message information; the processing logic unit is used for generating each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library; carrying out internal parameter configuration on each CAN signal classification processing module; and connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit, and displaying on a display interface. The invention can effectively reduce the labor cost of manual maintenance of the I/O module model and can ensure the consistency and reliability of signal change processing.

Description

Automatic generation method, device and equipment for I/O module model of vehicle control unit software
Technical Field
The invention relates to the technical field of controller software, in particular to an automatic generation method, device and equipment of an I/O module model of the controller software of a whole vehicle.
Background
At present, controllers of main parts of vehicles, especially a vehicle control unit, mainly interact control signals through a Controller Area Network (CAN). In a software architecture commonly used by the current vehicle control unit, bottom layer software is responsible for signal acquisition and transmission, link layer software is responsible for signal packing, unpacking and signal verification, and application layer software is responsible for signal preprocessing, signal fault detection and fault processing implementation. In the field of application layer software development of a vehicle controller, a model-based development mode becomes a development mode commonly adopted in the automobile industry, wherein MATLAB/Simulink software becomes a mainstream control strategy model development environment due to its powerful functions in the fields of algorithm development, data visualization, data analysis, simulation model building and the like.
Although MATLAB/Simulink has the advantages of intuition, clarity and flexibility in the construction of a control strategy model, the following technical problems exist in the construction process of an input module and an output module (i.e. an I/O module) of the whole vehicle controller software:
the signal definition of the vehicle controller software I/O module is complex, the data types are variable, when the I/O module has a signal change (for example, the I/O module needs to be modified due to the signal type change), the model of the I/O module needs to be modified manually, the labor cost of manual maintenance is high, and the consistency and reliability of the signal change processing of the I/O module model are difficult to ensure.
Disclosure of Invention
The embodiment of the invention provides an automatic generation method, device, equipment and storage medium of an I/O module model of vehicle controller software, which can effectively reduce the labor cost of manual maintenance of the I/O module model and can ensure the consistency and reliability of signal change processing of the I/O module model.
An embodiment of the present invention provides an automatic generation method for an I/O module model of vehicle controller software, including:
acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model;
generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information;
the processing logic unit is used for generating each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library;
carrying out internal parameter configuration on each CAN signal classification processing module;
and connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit, and displaying on a display interface.
Compared with the prior art, the method for automatically generating the I/O module model of the vehicle control unit software disclosed by the embodiment of the invention comprises the steps of acquiring each type of CAN message information in a DBC file and each type of CAN signal information corresponding to each type of CAN message information; generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model; generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information; the processing logic unit is used for generating each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library; carrying out internal parameter configuration on each CAN signal classification processing module; and connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit, and displaying on a display interface. Therefore, when the I/O module needs to be maintained and updated due to signal change, the embodiment of the invention only needs to obtain the DBC file, and then classifies CAN messages and CAN signals stored in the DBC file to realize classification processing on different CAN signal objects, so that automatic generation of each CAN signal processing module is realized, and further automatic generation of the I/O module model of the whole vehicle controller software is realized.
As an improvement of the above scheme, after the internal parameter configuration is performed on each of the CAN signal classification processing modules, before the connection is performed on the CAN message processing module, the CAN signal classification processing module, and the processing logic unit and the connection is displayed on a display interface, the method further includes:
and automatically arranging the CAN message processing module, the CAN signal classification processing module and the processing logic unit.
As an improvement of the above scheme, the acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each CAN message information specifically includes:
extracting CAN message information and CAN signal information compiled by a preset compiling rule in a DBC file by using a regular expression;
identifying the category of each CAN message information and the CAN signal information corresponding to each CAN message information, and classifying the CAN signal information corresponding to each CAN message according to the signal type to obtain a CAN data structure; the CAN data structure body comprises classified CAN message information and each classified CAN signal information corresponding to each type of CAN message information.
As an improvement of the above scheme, after the step of acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each CAN message information, the method further includes:
preprocessing the classified CAN signal information to generate an interface definition file of a corresponding CAN signal classification processing module; the interface definition file comprises module interface information of the CAN signal classification processing module;
generating an initialization file of a corresponding CAN signal classification processing module on the basis of the interface definition file according to the classified CAN signal information; the initialization file comprises initialization parameters of the CAN signal classification processing module;
then, the internal parameter configuration is performed on each CAN signal classification processing module, specifically:
and according to the initialization file, carrying out internal parameter configuration on each CAN signal classification processing module.
As an improvement of the above scheme, the module interface information includes a signal type, an observed quantity and a standard quantity of the CAN signal information;
the initialization parameters include initial values, substitute values, and signal ranges of the CAN signal information in controller software.
As an improvement of the above scheme, the internal parameter includes at least one of an upper limit value and a lower limit value of a CAN signal amplitude limit, a filtering parameter, and a fault threshold value.
As an improvement of the above, the signal processing logic includes at least one of filtering, timing, top and bottom edge detection, and bit processing.
Correspondingly, another embodiment of the present invention provides an apparatus for automatically generating an I/O module model of a vehicle control unit software, including:
the information acquisition module is used for acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
the first generation module is used for generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model;
the second generation module is used for generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information;
the third generation module is used for generating a processing logic unit of each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library;
the parameter configuration module is used for carrying out internal parameter configuration on each CAN signal classification processing module;
and the connection display module is used for connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit and displaying the connection on a display interface.
Compared with the prior art, the I/O module model for controlling the controller software disclosed by the embodiment of the invention automatically generates the terminal equipment by acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information; generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model; generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information; the processing logic unit is used for generating each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library; carrying out internal parameter configuration on each CAN signal classification processing module; and connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit, and displaying on a display interface. Therefore, when the I/O module needs to be maintained and updated due to signal change, the embodiment of the invention only needs to obtain the DBC file, and then classifies CAN messages and CAN signals stored in the DBC file to realize classification processing on different CAN signal objects, so that automatic generation of each CAN signal processing module is realized, and further automatic generation of the I/O module model of the whole vehicle controller software is realized.
Another embodiment of the present invention provides an I/O module model automatic generation apparatus for vehicle control unit software, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the I/O module model automatic generation method for vehicle control unit software according to the above embodiment of the present invention when executing the computer program.
Another embodiment of the present invention provides a storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the method for automatically generating an I/O module model of the vehicle control unit software according to the above embodiment of the present invention.
Drawings
Fig. 1 is a schematic flowchart of an automatic generation method of an I/O module model of vehicle control unit software according to an embodiment of the present invention;
FIG. 2 is an open schematic of a DBC file;
FIG. 3 is a schematic diagram of CAN message information and CAN signal information stored in a DBC file according to a predetermined compilation rule;
FIG. 4 is a schematic diagram of acquiring CAN message information and CAN signal information from a DBC file;
FIG. 5 is a simplified schematic diagram of a data structure generated after information classification;
FIG. 6 is a simplified schematic diagram of the generation of an interface definition file for a CAN signal classification processing module;
FIG. 7 is a simplified schematic diagram of the generation of an initialization file for a CAN signal classification processing module;
FIG. 8 is a simplified schematic diagram of a generate CAN message handling module;
FIG. 9 is a simplified schematic diagram of a classification processing module for generating CAN signals
FIG. 10 is a simplified schematic diagram of the generation of processing logic within the CAN signal classification processing module;
FIG. 11 is a simplified schematic diagram of the internal parameter configuration of the CAN signal classification processing module;
FIG. 12 is a simplified schematic diagram of the arrangement and wiring of the modules and units;
fig. 13 is a schematic structural diagram of an automatic I/O module model generation apparatus for vehicle control unit software according to another embodiment of the present invention;
fig. 14 is a schematic structural diagram of an automatic generation device of an I/O module model of vehicle control unit software according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a schematic flow chart of an automatic generation method of an I/O module model of a vehicle control unit software according to an embodiment of the present invention, and the method includes steps S10 to S15:
s10, acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
the controller of the entire vehicle collects the CAN message information (i.e., CAN messages, which carry information of each CAN signal) sent from each part of the entire vehicle, and stores the CAN message in the DBC file in the form of text, referring to fig. 2 to 3. Each CAN message may include its own CAN message information (e.g., CAN message address, CAN message transmission and reception type, etc.) and CAN signal information (e.g., CAN signal name, start bit, signal length, maximum value, minimum value, transmission and reception node, etc.). For example, each piece of CAN message information CAN correspond to information with five different CAN signals, namely signal1, signal2, signal3, signal4 and signal5, besides the own CAN message address.
Preferably, the step S10 specifically includes steps S100 to S101:
s100, extracting CAN message information and CAN signal information compiled by a preset compiling rule in a DBC file by using a regular expression;
referring to fig. 2 to 3, the CAN message information and the CAN signal information are compiled according to a predetermined compiling rule and stored in the DBC file. Specifically, the CAN message information is compiled according to the naming specification of the CAN message; the CAN signal information is compiled according to the naming specification of the CAN signal, the underscore _ "is used for distinguishing the meaning of each field in the signal name, and the identifier in the name is used for distinguishing the valid signal, the check signal, the invalid signal and the like in the CAN signal, for example, the check signal CAN be identified by _VD. It can be understood that the standardization of information compilation of the DBC file is a precondition for realizing the automatic generation of the I/O module model.
It should be noted that when the CAN signal information is compiled, a compilation specification of key information such as a signal length, a signal unit, a sending node and the like of the CAN signal CAN be defined, which is an auxiliary condition generated by a subsequent CAN signal classification and CAN signal classification processing module. Meanwhile, a check rule of the information content of the DBC file can be designed, such as maximum and minimum value accounting, effective value range accounting and the like, so that normal generation of a subsequent module is ensured.
In this step, the script in the MATLAB software is run, the program command written according to the present invention is executed, referring to fig. 4, the CAN message information and the CAN signal information in the DBC file of the communication matrix are automatically extracted by using the regular expression for the subsequent module to generate and use.
S101, identifying the type of each CAN message and the CAN signal information corresponding to each CAN message, and classifying the CAN signal information corresponding to each CAN message according to the signal type to obtain a CAN data structure SignalInfo; the CAN data structure SignalInfo comprises the classified CAN message information and each classified CAN signal information corresponding to each type of CAN message information.
When the CAN messages and the CAN signal information are obtained from the DBC file, the types of the CAN messages need to be identified, the CAN signal information corresponding to each CAN message information needs to be identified (that is, the inclusion relationship between the CAN signal information and the corresponding CAN message information needs to be identified), and then the CAN signal information corresponding to each CAN message needs to be classified according to the signal types. After the category of each CAN message information and the category of each CAN signal information corresponding to each CAN message information are identified, the data structure SignalsInfo is generated, see fig. 5, so as to obtain the classification result of the information.
It should be noted that, when the CAN signal information is classified, the invalid CAN signal information does not need to participate in the classification, that is: the CAN data structure SignalsInfo does not contain invalid CAN signal information.
S11, generating a corresponding CAN message processing module according to the type of the CAN message information to obtain a frame of an I/O module model;
specifically, referring to fig. 8, each of the CAN message messages may generate corresponding CAN message processing modules according to its own category (for example, according to the classification of the CAN message addresses or according to the classification of the CAN transceiving types), where the CAN message processing modules are frames of I/O modules of the vehicle controller software, and are connected to other modules of the application software of the vehicle controller to obtain CAN messages sent by the other modules.
S12, generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information;
preferably, the CAN signal information corresponding to each CAN message information is divided into three data types, namely Float, UInt and boot, for processing according to the signal length and the physical meaning of the CAN signal, so as to maintain the consistency of the signals of the same data type in the processing mode and facilitate the simplification of the module. For example, referring to fig. 9, if a CAN message corresponds to information of five different CAN signals, namely, signal1, signal2, signal3, signal4 and signal5, wherein signal1 and signal2 are both of Float type, signal3 and signal4 are both of UInt type, and signal5 is of boot type, the five kinds of signal information are divided into three kinds, and three kinds of CAN signal classification processing modules are correspondingly generated.
Of course, the CAN signal information may also be classified according to other signal types, such as a transmitting and receiving node of the CAN signal.
S13, according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library, generating the processing logic unit of each CAN signal in each signal classification processing module;
for example, a CAN message corresponds to information of five different CAN signals, namely signal1, signal2, signal3, signal4 and signal5, the five signal information are divided into three types, namely Float, UInt and boot, and correspond to three signal classification processing modules, and five CAN signal processing logic units, namely signal1, signal2, signal3, signal4 and signal5, are respectively generated in the three signal classification processing modules according to preset signal processing logic of each type of CAN signals. For example, referring to fig. 10, the Float signal classification processing module generates respective processing logic units of signal1 and signal 2.
The processing logic unit comprises specific processing logic for filtering, fault detection or fault processing and the like of the CAN signal. Specifically, the signal processing logic includes at least one of filtering, timing, top and bottom edge detection, and bit processing. It should be noted that the signal processing logics of the same type of CAN signals are generally the same (may be set to be different, of course), and the signal processing logics of different types of CAN signals are generally different (may be set to be the same, of course).
S14, carrying out internal parameter configuration on each CAN signal classification processing module;
referring to fig. 11, the purpose of configuring internal parameters of each CAN signal classification processing module is as follows: perfecting each content such as an initial value of each CAN signal classification processing module and an interface display attribute of the module, perfecting each content such as an initial value of a processing logic unit in each CAN signal classification processing module and an interface display attribute of the unit, and accordingly creating a complete CAN message processing module, the CAN signal classification processing module and the processing logic unit. Preferably, the internal parameter configuration includes at least one of an upper limit value and a lower limit value of CAN signal amplitude limiting, a filtering parameter and a fault threshold value.
And S15, connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit and displaying on a display interface.
Specifically, referring to fig. 12, after the internal parameters of each module and unit are configured, the CAN message processing modules are connected with each other, the CAN signal classification processing modules in each CAN message processing module are connected with each other, and the processing logic units in each CAN signal classification processing module are connected with each other, so that an I/O module model of the vehicle controller software is obtained, and is finally displayed on a display interface.
Compared with the prior art, in the embodiment of the invention, when the I/O module needs to be maintained and updated due to signal change, the embodiment of the invention only needs to obtain the DBC file firstly, and then classifies CAN messages and CAN signals stored in the DBC file to realize classification processing of different CAN signal objects, so that automatic generation of each CAN signal processing module is realized, and further automatic generation of an I/O module model of the whole vehicle controller software is realized.
In this embodiment of the present invention, preferably, after the internal parameter configuration is performed on each of the CAN signal classification processing modules, before the connection lines are performed between the CAN message processing module, the CAN signal classification processing module, and the processing logic unit and the connection lines are displayed on a display interface, the method further includes step S14':
and S14', the CAN message processing module, the CAN signal classification processing module and the processing logic unit are automatically arranged.
Specifically, referring to fig. 12, when the CAN message processing module, the CAN signal classification processing module and the processing logic unit are created, and the modules and the units are automatically arranged, the arrangement result should avoid that the graphs of the modules and the units are mutually staggered when being displayed, that is: the CAN message processing modules are not staggered with each other, the CAN signal classification processing modules in the CAN message processing modules are not staggered with each other, and the processing logic units in the CAN signal classification processing modules are not staggered with each other. Preferably, the arrangement modes include a left alignment mode, a right alignment mode, a centering mode and the like, and the automatic arrangement of the whole I/O module model is realized by calculating the position parameters of each module and unit from bottom to top.
In this embodiment, readability of the I/O module model after generation can be enhanced by automatically arranging the modules in the I/O module model.
In the above embodiment, optionally, after the step of acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each CAN message information, the method further includes steps S102 to S103:
s102, preprocessing the classified CAN signal information to generate an interface definition file iospec.xls of a corresponding CAN signal classification processing module;
referring to fig. 6, the interface definition file iospec.xls includes module interface information of the CAN signal classification processing module, and parameters of the module are not set yet. Preferably, the module interface information includes a signal type, an observed quantity and a standard quantity of the CAN signal information.
S103, generating an initialization file module _ init.m of a corresponding CAN signal classification processing module on the basis of the interface definition file according to the classified CAN signal information;
specifically, referring to fig. 7, after the CAN signal information is classified to obtain the data structure, various information parameters of the CAN signal information are obtained from the data structure, and the interface definition file is subjected to module parameter perfection, so as to generate an initialization file module _ init.m of the corresponding CAN signal classification processing module. The initialization file module _ init.m contains initialization parameters of the CAN signal classification processing module; the initialization parameters include initial values (e.g., specific values of the calibration quantity and the observed quantity), alternative values, signal ranges and the like of the CAN signal information in the controller software.
Then, the step S14 specifically includes:
and according to the initialization file, carrying out internal parameter configuration on each CAN signal classification processing module.
In summary, the method according to the embodiment of the present invention can realize automatic generation of the controller software I/O module from a data source (i.e. compiling a DBC file) to the signal classification processing module, and can meet the requirement for batch processing of the I/O module model; meanwhile, the consistency and the reliability of the I/O module model during signal change are further improved through the standardization processing (corresponding to the implementation process from the step S100 to the step S103) of the generation process of each module of the I/O module model; in addition, by realizing the automatic arrangement of the I/O module models, the model interface is cleaner, the readability of the models is improved, the operation steps of maintaining the I/O module models by engineering personnel are greatly simplified, the time cost for maintaining the I/O module models is saved, the guarantee is provided for the algorithm development, the test and the calibration of subsequent control strategies, the data problem caused by the manual modification of the I/O module models is avoided, and the development period of the finished automobile controller software is greatly shortened.
Referring to fig. 13, a schematic structural diagram of an automatic generation apparatus of an I/O module model of a vehicle control unit software according to an embodiment of the present invention includes:
the information acquisition module 10 is configured to acquire each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
the first generation module 11 is used for generating a corresponding CAN message processing module according to the type of the CAN message information so as to obtain a framework of an I/O module model;
the second generation module 12 is configured to generate a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to a classification result of the CAN signal information corresponding to each CAN message information;
the third generation module 13 is configured to generate a processing logic unit of each CAN signal in each signal classification processing module according to a preset signal processing logic of each type of CAN signal and by calling a Simulink module library;
the parameter configuration module 14 is used for performing internal parameter configuration on each CAN signal classification processing module;
and the connection display module 15 is used for connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit and displaying the connection on a display interface.
Preferably, the apparatus further comprises: and the arrangement module is used for automatically arranging the CAN message processing module, the CAN signal classification processing module and the processing logic unit.
Preferably, the information acquisition module includes:
the information extraction unit is used for extracting CAN message information and CAN signal information compiled by a preset compiling rule in the DBC file by using a regular expression;
the information classification unit is used for identifying the category of each CAN message information and the CAN signal information corresponding to each CAN message information, and classifying the CAN signal information corresponding to each CAN message according to the signal type so as to obtain a CAN data structure body; the CAN data structure body comprises classified CAN message information and each classified CAN signal information corresponding to each type of CAN message information.
Preferably, the apparatus further comprises:
the interface definition file generation module is used for preprocessing the classified CAN signal information to generate an interface definition file of a corresponding CAN signal classification processing module; the interface definition file comprises module interface information of the CAN signal classification processing module;
the initialization file generation module is used for generating an initialization file of a corresponding CAN signal classification processing module on the basis of the interface definition file according to the classified CAN signal information; the initialization file comprises initialization parameters of the CAN signal classification processing module;
then, the parameter configuration module is specifically configured to: and according to the initialization file, carrying out internal parameter configuration on each CAN signal classification processing module.
In summary, the device according to the embodiment of the present invention can realize the automatic generation of the controller software I/O module from the data source, i.e. the compilation of the DBC file, to the signal classification processing module, and can meet the requirement for batch processing of the I/O module model; meanwhile, the consistency and the reliability of the I/O module model during signal change are improved through the standardized processing of the generation process of each module of the I/O module model; in addition, by realizing the automatic arrangement of the I/O module models, the model interface is cleaner, the readability of the models is improved, the operation steps of maintaining the I/O module models by engineering personnel are greatly simplified, the time cost for maintaining the I/O module models is saved, the guarantee is provided for the algorithm development, the test and the calibration of subsequent control strategies, the data problem caused by the manual modification of the I/O module models is avoided, and the development period of the finished automobile controller software is greatly shortened.
Fig. 14 is a schematic diagram of an automatic generation device for an I/O module model of vehicle control unit software according to an embodiment of the present invention. The automatic generation terminal device of the I/O module model of the vehicle control unit software of the embodiment includes: the system includes a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an I/O module model auto-generation program of vehicle control unit software. And when the processor executes the computer program, the steps in the automatic generation method embodiment of the I/O module model of each vehicle controller software are realized. Alternatively, the processor implements the functions of the modules/units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the I/O module model automatic generation device/terminal equipment of the vehicle control unit software.
The automatic generating device of the I/O module model of the vehicle controller software can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The automatic generation device of the I/O module model of the vehicle control unit software can comprise, but is not limited to, a processor and a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of an I/O module model automatic generation device of the entire vehicle controller software, and does not constitute a limitation of the I/O module model automatic generation device of the entire vehicle controller software, and may include more or less components than those shown, or combine some components, or different components, for example, the I/O module model automatic generation device of the entire vehicle controller software may further include an input-output device, a network access device, a bus, and the like.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the processor is a control center of the I/O module model automatic generation device of the vehicle controller software, and various interfaces and lines are used to connect various parts of the I/O module model automatic generation device of the vehicle controller software.
The memory may be used to store the computer program and/or the module, and the processor may implement various functions of the I/O module model automatic generation device of the vehicle control unit software by operating or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
If the module/unit integrated with the automatic generation device of the I/O module model of the vehicle control unit software is implemented in the form of a software functional unit and sold or used as an independent product, the module/unit can be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. An automatic generation method of an I/O module model of finished vehicle controller software is characterized by comprising the following steps:
acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model;
generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information;
the processing logic unit is used for generating each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library;
carrying out internal parameter configuration on each CAN signal classification processing module;
and connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit, and displaying on a display interface.
2. The method according to claim 1, wherein after configuring the internal parameters of each CAN signal classification processing module, the CAN message processing modules, the CAN signal classification processing modules, and the processing logic unit are connected and displayed on a display interface, the method further comprises:
and automatically arranging the CAN message processing module, the CAN signal classification processing module and the processing logic unit.
3. The method for automatically generating the I/O module model of the vehicle control unit software according to claim 1, wherein the acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each CAN message information specifically comprises:
extracting CAN message information and CAN signal information compiled by a preset compiling rule in a DBC file by using a regular expression;
identifying the category of each CAN message information and the CAN signal information corresponding to each CAN message information, and classifying the CAN signal information corresponding to each CAN message according to the signal type to obtain a CAN data structure; the CAN data structure body comprises classified CAN message information and each classified CAN signal information corresponding to each type of CAN message information.
4. The method for automatically generating the I/O module model of the vehicle control unit software according to any one of claims 1 to 3, wherein after the step of acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information, the method further comprises:
preprocessing the classified CAN signal information to generate an interface definition file of a corresponding CAN signal classification processing module; the interface definition file comprises module interface information of the CAN signal classification processing module;
generating an initialization file of a corresponding CAN signal classification processing module on the basis of the interface definition file according to the classified CAN signal information; the initialization file comprises initialization parameters of the CAN signal classification processing module;
then, the internal parameter configuration is performed on each CAN signal classification processing module, specifically:
and according to the initialization file, carrying out internal parameter configuration on each CAN signal classification processing module.
5. The method according to claim 4, wherein the module interface information includes a signal type, an observed quantity and a standard quantity of the CAN signal information;
the initialization parameters include initial values, substitute values, and signal ranges of the CAN signal information in controller software.
6. The method of claim 1, wherein the signal processing logic includes at least one of filtering, timing, top and bottom edge detection, and bit processing.
7. The method as claimed in claim 1, wherein the internal parameter includes at least one of upper and lower limit values of CAN signal amplitude limit, filtering parameter, and fault threshold.
8. An automatic generation device of an I/O module model of a whole vehicle controller software is characterized by comprising:
the information acquisition module is used for acquiring each type of CAN message information in the DBC file and each type of CAN signal information corresponding to each type of CAN message information;
the first generation module is used for generating a corresponding CAN message processing module according to the category of the CAN message information so as to obtain a framework of an I/O module model;
the second generation module is used for generating a corresponding CAN signal classification processing module in the corresponding CAN message processing module according to the classification result of the CAN signal information corresponding to each CAN message information;
the third generation module is used for generating a processing logic unit of each CAN signal in each signal classification processing module according to the preset signal processing logic of each type of CAN signal and calling a Simulink module library;
the parameter configuration module is used for carrying out internal parameter configuration on each CAN signal classification processing module;
and the connection display module is used for connecting the CAN message processing module, the CAN signal classification processing module and the processing logic unit and displaying the connection on a display interface.
9. An automatic generation device of an I/O module model of vehicle controller software, comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the automatic generation method of the I/O module model of the vehicle controller software according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls a device to execute the method for automatically generating the I/O module model of the vehicle control unit software according to any one of claims 1 to 7.
CN201811493612.3A 2018-12-07 2018-12-07 Automatic generation method, device and equipment for I/O module model of vehicle control unit software Active CN111291443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811493612.3A CN111291443B (en) 2018-12-07 2018-12-07 Automatic generation method, device and equipment for I/O module model of vehicle control unit software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811493612.3A CN111291443B (en) 2018-12-07 2018-12-07 Automatic generation method, device and equipment for I/O module model of vehicle control unit software

Publications (2)

Publication Number Publication Date
CN111291443A CN111291443A (en) 2020-06-16
CN111291443B true CN111291443B (en) 2021-04-06

Family

ID=71029309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811493612.3A Active CN111291443B (en) 2018-12-07 2018-12-07 Automatic generation method, device and equipment for I/O module model of vehicle control unit software

Country Status (1)

Country Link
CN (1) CN111291443B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190783A (en) * 2021-04-27 2021-07-30 北京车和家信息技术有限公司 Data processing method, device, medium and equipment for vehicle control unit
CN114035539B (en) * 2021-10-25 2023-12-05 东风商用车有限公司 Method, device, equipment and storage medium for generating communication matrix of instantiated vehicle type
CN115314339B (en) * 2022-08-04 2023-06-23 潍柴动力股份有限公司 Weight checking method and device for CAN channel standard quantity, processor and vehicle

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101506786A (en) * 2005-12-06 2009-08-12 伯克利程序控制公司 System for programmed control of signal input and output to and from cable conductors
CN101763064A (en) * 2009-12-08 2010-06-30 沈阳飞机工业(集团)有限公司 Numerical control machining process design system and method of aircraft complex components facing process object
CN102087657A (en) * 2010-09-14 2011-06-08 中广核(北京)仿真技术有限公司 IO (Input/output) to point method and IO (Input/output) to point for nuclear power plant simulation platform
CN103488615A (en) * 2012-06-12 2014-01-01 北汽福田汽车股份有限公司 Automatic generation method and device for software and hardware interface-defined source file
CN103777934A (en) * 2012-10-23 2014-05-07 广州汽车集团股份有限公司 Method and system for generating controller CAN interaction layer based on MATLAB
CN104765616A (en) * 2015-04-29 2015-07-08 北京经纬恒润科技有限公司 Method and system for generating IO model automatically
CN104850027A (en) * 2014-08-13 2015-08-19 北汽福田汽车股份有限公司 CAN data interface modeling automatic generation method and system
CN106950864A (en) * 2017-04-11 2017-07-14 重庆长安汽车股份有限公司 The CAN communication program creating method and device of a kind of entire car controller
CN108345288A (en) * 2017-01-23 2018-07-31 长城汽车股份有限公司 Automatic generation method, system and the vehicle of CAN signal interface software

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473140A (en) * 2013-10-09 2013-12-25 浪潮(北京)电子信息产业有限公司 Cluster distribution method of life science applications, and software setup method and device applied of life science applications
JP5904190B2 (en) * 2013-10-31 2016-04-13 横河電機株式会社 I / O module
US20170097621A1 (en) * 2014-09-10 2017-04-06 Crestron Electronics, Inc. Configuring a control sysem
CN108845967A (en) * 2018-07-03 2018-11-20 广东好帮手环球科技有限公司 A kind of I2C bus analysis device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101506786A (en) * 2005-12-06 2009-08-12 伯克利程序控制公司 System for programmed control of signal input and output to and from cable conductors
CN101763064A (en) * 2009-12-08 2010-06-30 沈阳飞机工业(集团)有限公司 Numerical control machining process design system and method of aircraft complex components facing process object
CN102087657A (en) * 2010-09-14 2011-06-08 中广核(北京)仿真技术有限公司 IO (Input/output) to point method and IO (Input/output) to point for nuclear power plant simulation platform
CN103488615A (en) * 2012-06-12 2014-01-01 北汽福田汽车股份有限公司 Automatic generation method and device for software and hardware interface-defined source file
CN103777934A (en) * 2012-10-23 2014-05-07 广州汽车集团股份有限公司 Method and system for generating controller CAN interaction layer based on MATLAB
CN104850027A (en) * 2014-08-13 2015-08-19 北汽福田汽车股份有限公司 CAN data interface modeling automatic generation method and system
CN104765616A (en) * 2015-04-29 2015-07-08 北京经纬恒润科技有限公司 Method and system for generating IO model automatically
CN108345288A (en) * 2017-01-23 2018-07-31 长城汽车股份有限公司 Automatic generation method, system and the vehicle of CAN signal interface software
CN106950864A (en) * 2017-04-11 2017-07-14 重庆长安汽车股份有限公司 The CAN communication program creating method and device of a kind of entire car controller

Also Published As

Publication number Publication date
CN111291443A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN109582525B (en) Test code verification method, verification device, equipment and storage medium
CN111291443B (en) Automatic generation method, device and equipment for I/O module model of vehicle control unit software
CN110377462B (en) Interface testing method and device and terminal equipment
CN110554958B (en) Graph database testing method, system, device and storage medium
CN110290166B (en) Cross-cluster data interaction method, system and device and readable storage medium
CN108170425B (en) Program code modification method and device and terminal equipment
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN110472298B (en) Method, device, equipment and storage medium for constructing electric power market model
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN109683470A (en) A kind of software and hardware self-adaptive matching method, device and driving device
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN110991088A (en) Cable model construction method and system, terminal device and storage medium
CN108322542B (en) Data updating method, system, device and computer readable storage medium
CN116090252A (en) Matlab-based method, device, equipment and medium for automatically generating input interface model
CN112204527A (en) Method and system for processing engineering data in a multi-engineering system environment
CN112114931B (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN114036218A (en) Data model switching method and device, server and storage medium
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium
RU2678512C1 (en) Related to motor vehicles data processing method for the purpose of the subsequent electrical systems electrical diagrams graphic construction
CN115576807B (en) Virtual ECU implementation method and device, electronic equipment and storage medium
CN113934453B (en) Risk detection method, risk detection device and storage medium
CN114780326B (en) Cross-platform calibration test method, device and equipment
CN109716304B (en) Method and system for testing mixed instruction architecture
CN112416738A (en) Image testing method, device, computer device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211230

Address after: 511434 No. 36, Longying Road, Shilou Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GAC AIAN New Energy Vehicle Co.,Ltd.

Address before: 510030 23 building, Cheng Yue mansion 448-458, Dongfeng Middle Road, Yuexiu District, Guangzhou, Guangdong.

Patentee before: GUANGZHOU AUTOMOBILE GROUP Co.,Ltd.

TR01 Transfer of patent right