CN108108183B - Data management system and method based on model embedded software development - Google Patents
Data management system and method based on model embedded software development Download PDFInfo
- Publication number
- CN108108183B CN108108183B CN201711477044.3A CN201711477044A CN108108183B CN 108108183 B CN108108183 B CN 108108183B CN 201711477044 A CN201711477044 A CN 201711477044A CN 108108183 B CN108108183 B CN 108108183B
- Authority
- CN
- China
- Prior art keywords
- file
- variable
- model
- variables
- data
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a data management system and a method based on model embedded software development, the system can uniformly manage variables under the condition of a development mode based on a model with partial code handwriting, and avoids repeated definition and irregular definition of the variables; the A2L file can be automatically generated according to the variable definition, and the efficiency of the definition and generation of the traditional manual A2L file is improved; on the basis of uniform definition of variables, C and H data files can be automatically generated according to variable storage and address allocation requirements of an embedded software project, and software development efficiency is improved.
Description
Technical Field
The invention relates to the field of automobile electronic embedded software development, in particular to a data management system and method based on model embedded software development.
Background
The control algorithm in the automobile electronics is the most core content, and the realization of the control algorithm must be realized through embedded software. The quality of embedded software for realizing a control algorithm is crucial, and with the development of the technology, most of the embedded software development adopts a model-based development mode. Because partial codes related to a bottom driver, a CAN communication protocol stack and the like cannot be realized through a control model, data of partial handwritten codes and data automatically generated by the control model are integrated and uniformly managed with an A2L file.
Disclosure of Invention
The present invention is directed to solving the problems set forth in the background section above, by a system and method for data management based on model embedded software development.
In order to achieve the purpose, the invention adopts the following technical scheme:
a data management system based on model embedded software development comprises a variable management module, an A2L file analysis module, an A2L file generation module and a data file generation module; the variable management module is used for realizing variable addition and change management of the control model and the handwritten code; the A2L file analysis module is used for analyzing an A2L file automatically generated by the control model and reading variables in the A2L file of the control model; the A2L file generating module is used for generating an A2L file for partial variables of the handwritten code and integrating the A2L file with an A2L file automatically generated by a control model; and the data file generating module is used for generating C and H files in an embedded software format according to the integrated variables.
In particular, the variable management module is specifically configured to: analyzing variables from a C data file generated by a control model; adding, deleting and changing variables are managed in a unified mode; integrating the handwritten code and variables controlling the model code.
In particular, the A2L file parsing module is specifically configured to obtain variable information according to an A2L file automatically generated by an ASAP2 standard parsing control model.
Specifically, the A2L file generating module is specifically configured to generate an A2L file from variables of the handwritten code according to an ASAP2 standard format, and combine the A2L file with an automatic control model generation A2L file into an overall A2L file.
Particularly, the data file generation module is specifically used for generating data, C and H files by using the variable of the handwritten code and the variable automatically generated by the control model according to the embedded software data definition format.
In particular, the embedded software data definition format further comprises: the memory address allocation and mapping definition of the calibration variable and the measurement variable; the C and H files comprise: the calibration variable and the measurement variable are respectively provided with different address partitions; the calibration variables correspond to each other according to the storage modes of the ROM and the RAM.
Based on the data management system developed based on the model embedded software, the invention also discloses a data management method developed based on the model embedded software, which comprises the following steps:
s101, importing a handwritten code variable into a system through a tool;
s102, importing a control model data file into a system through a tool, and analyzing;
s103, managing variables in a unified manner, including adding, deleting and changing the variables;
s104, generating an A2L file by the variable;
s105, importing the A2L file generated by the control model into a system through a tool, and analyzing;
s106, merging the A2L files in S104 and S105;
s107, generating the handwritten codes and the variables generated based on the model into C and H data files.
Specifically, the step S104 specifically includes: and respectively generating A2L files for different variable types according to the ASAP2 standard.
Specifically, the step S106 specifically includes: and (4) according to the comparison of regular expressions, searching whether the two-part A2L file has repeated variables and integrating the two-part A2L file into an A2L file.
In particular, the step S107 specifically includes: and generating the C and H data files according to the variable types, the embedded variable definition formats and the address allocation requirements.
The data management system and method based on model embedded software development can uniformly manage the variables under the condition of a model-based development mode of partial code handwriting, and avoid repeated definition and irregular definition of the variables; the A2L file can be automatically generated according to the variable definition, and the efficiency of the definition and generation of the traditional manual A2L file is improved; on the basis of uniform definition of variables, C and H data files can be automatically generated according to variable storage and address allocation requirements of an embedded software project, and software development efficiency is improved.
Drawings
FIG. 1 is a schematic structural diagram of a data management system based on model embedded software development according to the present invention;
FIG. 2 is a flowchart of a data management method based on model embedded software development according to the present invention.
Detailed Description
The invention is further illustrated by the following figures and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It is also to be noted that, for the convenience of description, only a part of the contents, not all of the contents, which are related to the present invention, are shown in the drawings, and unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present invention belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data management system based on model embedded software development according to the present invention.
The data management system developed based on the model embedded software in this embodiment specifically includes a variable management module, an A2L file parsing module, an A2L file generating module, and a data file generating module.
And the variable management module is used for realizing variable addition and change management of the control model and the handwritten code. Analyzing variables from a C data file generated by a control model; adding, deleting and changing variables are managed in a unified mode; integrating the handwritten code and variables controlling the model code.
The A2L file analysis module is used for analyzing an A2L file automatically generated by the control model and reading variables in the A2L file of the control model. And acquiring variable information according to an A2L file automatically generated by an ASAP2 standard analysis control model.
The A2L file generating module is used for generating an A2L file for the partial variable of the handwritten code and integrating the A2L file with an A2L file automatically generated by the control model. And generating an A2L file by using the variable of the handwritten code according to an ASAP2 standard format, and combining the A2L file and the control model automatically generated A2L file into an integral A2L file. The specific method for the integration is as follows: and (4) according to the comparison of regular expressions, searching whether the two-part A2L file has repeated variables and integrating the two-part A2L file into an A2L file.
And the data file generating module is used for generating C and H files in an embedded software format according to the integrated variables. And generating data C and H files by using the variable of the handwritten code and the variable automatically generated by the control model according to the embedded software data definition format. Wherein, the embedded software data definition format further comprises: the memory address allocation and mapping definition of the calibration variable and the measurement variable; the C and H files comprise: the calibration variable and the measurement variable are respectively provided with different address partitions; the calibration variables correspond to each other according to the storage modes of the ROM and the RAM.
As shown in fig. 2, fig. 2 is a flowchart of a data management method based on model embedded software development according to the present invention.
The data management method based on model embedded software development in this embodiment specifically includes the following steps:
and S101, importing the handwriting code variable into the system through the tool.
And S102, importing the control model data file into the system through a tool, and analyzing.
And S103, managing the variables in a unified manner, wherein the management comprises adding, deleting and changing the variables.
And S104, generating an A2L file by the variable. And respectively generating A2L files for different variable types according to the ASAP2 standard.
And S105, importing the A2L file generated by the control model into the system through the tool and analyzing the file.
And S106, merging the A2L files in the S104 and the S105. And (4) according to the comparison of regular expressions, searching whether the two-part A2L file has repeated variables and integrating the two-part A2L file into an A2L file.
S107, generating the handwritten codes and the variables generated based on the model into C and H data files. And generating the C and H data files according to the variable types, the embedded variable definition formats and the address allocation requirements.
The invention can realize the unified management of embedded software development data based on a model and partial handwritten codes and can automatically generate C, H and A2L files required by the embedded software development. According to the technical scheme, under the condition of a model-based development mode of partial code handwriting, variables can be managed in a unified manner, and repeated definition and irregular definition of the variables are avoided; the A2L file can be automatically generated according to the variable definition, and the efficiency of the definition and generation of the traditional manual A2L file is improved; on the basis of uniform definition of variables, C and H data files can be automatically generated according to variable storage and address allocation requirements of an embedded software project, and software development efficiency is improved.
Those skilled in the art will appreciate that all of the above embodiments can be implemented by a computer program, which can be stored in a computer readable storage medium, and the program can include the procedures of the embodiments of the methods described above when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (6)
1. A data management system based on model embedded software development is characterized by comprising a variable management module, an A2L file analysis module, an A2L file generation module and a data file generation module; the variable management module is specifically configured to: analyzing variables from a C data file generated by a control model; adding, deleting and changing variables are managed in a unified mode; integrating the handwritten code and variables controlling the model code; the A2L file analysis module is specifically used for automatically generating an A2L file according to an ASAP2 standard analysis control model to acquire variable information; the A2L file generating module is specifically used for generating an A2L file by the variable of the handwritten code according to the ASAP2 standard format, and combining the A2L file with an A2L file automatically generated by the control model into an integral A2L file; the data file generation module is specifically used for generating data, C and H files according to the embedded software data definition format by using the variable of the handwritten code and the variable automatically generated by the control model.
2. The model-based embedded software development data management system of claim 1, wherein the embedded software data definition format further comprises: the memory address allocation and mapping definition of the calibration variable and the measurement variable; the C and H files comprise: the calibration variable and the measurement variable are respectively provided with different address partitions; the calibration variables correspond to each other according to the storage modes of the ROM and the RAM.
3. A data management method based on model embedded software development is characterized by comprising the following steps:
s101, importing a handwritten code variable into a system through a tool;
s102, importing a control model data file into a system through a tool, and analyzing;
s103, uniformly managing the handwritten codes and variables analyzed from the control model, wherein the unified management comprises addition, deletion and change of the variables;
s104, generating an A2L file by using variables in the control model A2L file;
s105, importing the A2L file generated by the control model into a system through a tool, and analyzing;
s106, generating an A2L file by the variable of the handwritten code according to an ASAP2 standard format, and combining the A2L file and a control model to automatically generate an A2L file into an integral A2L file;
s107, generating the handwritten codes and the variables generated based on the model into C and H data files.
4. The data management method for model-based embedded software development according to claim 3, wherein the step S104 specifically comprises: and respectively generating A2L files for different variable types according to the ASAP2 standard.
5. The data management method for model-based embedded software development according to claim 4, wherein the step S106 specifically includes: and (4) according to the comparison of regular expressions, searching whether the two-part A2L file has repeated variables and integrating the two-part A2L file into an A2L file.
6. The data management method based on model embedded software development according to claim 5, wherein the step S107 specifically comprises: and generating the C and H data files according to the variable types, the embedded variable definition formats and the address allocation requirements.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477044.3A CN108108183B (en) | 2017-12-29 | 2017-12-29 | Data management system and method based on model embedded software development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477044.3A CN108108183B (en) | 2017-12-29 | 2017-12-29 | Data management system and method based on model embedded software development |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108108183A CN108108183A (en) | 2018-06-01 |
CN108108183B true CN108108183B (en) | 2021-12-31 |
Family
ID=62214770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711477044.3A Active CN108108183B (en) | 2017-12-29 | 2017-12-29 | Data management system and method based on model embedded software development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108183B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080229165A1 (en) * | 2007-03-16 | 2008-09-18 | Etas, Inc. | Address translation system for use in a simulation environment |
CN104636351B (en) * | 2013-11-07 | 2018-01-19 | 北汽福田汽车股份有限公司 | The generation method and system of A2L files |
CN104850570B (en) * | 2014-08-29 | 2018-03-27 | 北汽福田汽车股份有限公司 | A2L files automatic generation method and system |
CN105808216A (en) * | 2014-12-29 | 2016-07-27 | 联创汽车电子有限公司 | Vehicle-mounted control software system policy code and underlying code integration method |
CN106776633B (en) * | 2015-11-23 | 2023-12-01 | 上海汽车工业(集团)总公司 | User-configurable apparatus and method for automatically generating a2l file |
CN106126504A (en) * | 2016-08-26 | 2016-11-16 | 重庆红江机械有限责任公司 | A2L grammar parser and method |
-
2017
- 2017-12-29 CN CN201711477044.3A patent/CN108108183B/en active Active
Non-Patent Citations (1)
Title |
---|
"Development of ECU calibration system for electronic controlled engine based on LabVIEW";Xiao-jun Fang 等;《2011 International Conference on Electric Information and Control Engineering》;20110527;第1-4页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108108183A (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104133772B (en) | Automatic test data generation method | |
TWI709866B (en) | Equipment model identification method, device and processing equipment | |
WO2019061991A1 (en) | Multi-element universal model platform modeling method, electronic device, and computer readable storage medium | |
CN110705237A (en) | Automatic document generation method, data processing device, and storage medium | |
CN103150359B (en) | Micro-blog information display packing and device | |
CN107609302B (en) | Method and system for generating product process structure | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
CN103164455A (en) | Optimization method and optimization device of data base | |
CN103004135B (en) | Access control method and access control server | |
CN116402024A (en) | Engineering file generation method and system based on large language model | |
CN106776779B (en) | Method for generating entity file by JSON data based on Mac platform | |
CN108073705B (en) | Distributed mass data aggregation acquisition method | |
CN108108183B (en) | Data management system and method based on model embedded software development | |
CN108255491B (en) | Unified modeling method for servo driver data | |
CN111198678A (en) | Method and device for generating GraphQL front-end operation interface | |
CN110990000B (en) | Data request processing method, device and equipment of MVC pattern design model layer | |
Noyrit et al. | FacadeMetamodel: masking UML | |
CN104281604A (en) | Method and system for generating Target Link data dictionary hierarchical tree | |
CN103778153A (en) | Method and system for generating calibration database based on ASAP standard | |
CN115629763A (en) | Target code generation method and NPU instruction display method and device | |
CN115686589A (en) | Entity class file updating system and method, corresponding computer equipment and storage medium | |
CN110489121B (en) | Skin package file generation method and system | |
CN115080085A (en) | Method and system for solving EOL calibration in OEM | |
CN112632266B (en) | Data writing method and device, computer equipment and readable storage medium | |
CN103929478B (en) | Method and system for storing and downloading video and audio files |
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 |