CN105512097A - File analyzing method - Google Patents

File analyzing method Download PDF

Info

Publication number
CN105512097A
CN105512097A CN201510848394.0A CN201510848394A CN105512097A CN 105512097 A CN105512097 A CN 105512097A CN 201510848394 A CN201510848394 A CN 201510848394A CN 105512097 A CN105512097 A CN 105512097A
Authority
CN
China
Prior art keywords
data
file
data model
analysis method
document analysis
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.)
Pending
Application number
CN201510848394.0A
Other languages
Chinese (zh)
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.)
ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Original Assignee
ISOFT INFRASTRUCTURE SOFTWARE 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 ISOFT INFRASTRUCTURE SOFTWARE CO Ltd filed Critical ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Priority to CN201510848394.0A priority Critical patent/CN105512097A/en
Publication of CN105512097A publication Critical patent/CN105512097A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file analyzing method, and belongs to the technical field of automobile control. The file analyzing method comprises that a data management file associated with a vehicular communication network is employed to describe CAN bus communication among different nodes in the vehicular communication network. The file analyzing method also comprises that step S100, in dependence on the file structure of the data management file, a first data model associated with the data management file is established; step S200, an analyzing template is generated in dependence on the file structure of the data management file; step S300, the selected data management file is analyzed through the analyzing template, and management data obtained through the analyzing process is mapped to the first data model according to the file structure; and step S400, data in the first data model is mapped to a preset second data model associated with a data configuration file in the vehicular communication network. The file analyzing method is advantaged in that problems caused by that a DBC file and a communication stack configuration tool data file meeting the AUTOSAR standard are incompatible in format are solved, and the configuration time is shortened.

Description

A kind of document analysis method
Technical field
The present invention relates to technical field of automobile control, particularly relate to a kind of document analysis method.
Background technology
Along with the increasingly complex of automobile electric control system and network structure thereof, impel its software architecture towards modularization, hardware and software platform and standardization future development, software development based on automobile open architecture (AutomotiveOpenSystemArchitecture, AUTOSAR) standard becomes the trend of automotive electronics built-in field.Current automobile vendor adopts one to be called data management system (DataBaseCommander, DBC) file layout describes the CAN communication between all electronic control units (ElectronicControlUnit, ECU) above an In-vehicle networking.DBC is a kind of MicrosoftVisualFoxPro data file, has defined the partial configuration information of communication stack module in AUTOSAR standard in DBC file.
In prior art, the communication stack configuration tool based on AUTOSAR standard needs to support arxml formatted file, and current most of depot and components supplying business adopt DBC storage format to be used as the description document of car load CAN network.There is content and stylistic difference in above-mentioned two kinds of files, causes user must re-start the configuration of communication stack correlation parameter in the configuration tool based on AUTOSAR standard, needs to consume extra human cost and time.And due to the complicacy of AUTOSAR modular arrangements, cause the also corresponding raising of the error rate in layoutprocedure.
Summary of the invention
A kind of document analysis method is now provided for the problems referred to above.
Concrete technical scheme is:
A kind of document analysis method, is applied in vehicle-carrying communication network; Wherein, adopt the data management file being associated with described vehicle-carrying communication network to describe CAN communication in described vehicle-carrying communication network between different node, also comprise:
Step S100, be associated in the first data model of described data management file according to the file structure of described data management file;
Step S200, to generate according to the described file structure of described data management file and resolve template;
Step S300, to be resolved by the described data management file selected by described parsing template, and be mapped in described first data model by resolving the management data obtained according to described file structure;
Step S400, by the data-mapping in described first data model to one preset the second data model being associated with the data configuration file in described vehicle-carrying communication network in.
Preferably, this file analytic method, wherein, described file structure comprises the logical storage structure in described data management file
In described step S100, the step setting up described first data model is:
Step S110, obtain in described data management file described mathematical logic relation between each data parameters of defining;
Step S120, build described first data model according to described mathematical logic relation.
Preferably, this file analytic method, wherein, in described step S120, adopts EMF modeling framework, builds described first data model according to described mathematical logic relation.
Preferably, this file analytic method, wherein, in described step S200, adopts described in Antlr parser generation and resolves template.
Preferably, this file analytic method, wherein, in described step S300, the lexical analysis maker that Antlr analyzer described in the data in described data management file provides is mapped in described first data model.
Preferably, this file analytic method, wherein, described step S400 specifically comprises:
Step S410, analysis the corresponding relation obtained between described first data model and described second data model;
Step S420, according to described corresponding relation, by the data-mapping that is mapped in described first data model in described second data model.
Preferably, this file analytic method, wherein, described data configuration file is the configuration file meeting AUTOSAR standard.
Preferably, this file analytic method, wherein, in described step S410, adopts a configuration module analysis and corresponding relation between the data obtained in described first data model and the undefined data of AUTOSAR standard.
Preferably, this file analytic method, wherein, after performing described step S400, preserves described second data model be associated with through mapping with arxml file layout.
The invention has the beneficial effects as follows: the incompatible problem caused of form between the communication stack configuration tool data file that the invention solves DBC file and meet AUTOSAR standard, rapidly the data message defined in DBC file can be converted to the file layout that the configuration tool of AUTOSAR standard traffic stack can identify, make developer need not remove to understand and verify the incidence relation of each intermodule configuration item in AUTOSAR standard the time of costing a lot of money, reduce the error probability of configuration simultaneously.
Accompanying drawing explanation
Fig. 1 is in preferred embodiment of the present invention, a kind of overall procedure schematic diagram of document analysis method;
Fig. 2-3 is in preferred embodiment of the present invention, on the basis of Fig. 1, and the schematic flow sheet step by step of document analysis method.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
The technical program resolves the content in DBC file automatically by employing instrument, and is stored in arxml file according to the data layout defined in AUTOSAR standard by the data message be parsed.So both reducing the time and human cost that produce because needing repeatability configuration in performance history, also automatically completing by instrument the situation that format conversion avoids error prone manual configuration simultaneously.
In preferred embodiment of the present invention, a kind of concrete steps of document analysis method, as shown in Figure 1, comprising:
Step S100, be associated in the first data model of data management file according to the file structure of data management file;
Step S200, to generate according to the file structure of data management file and resolve template;
Step S300, to resolve by the data management file selected by resolving template, and be mapped in the first data model by resolving the management data that obtains according to file structure;
Step S400, by the data-mapping in the first data model to one preset the second data model being associated with the data configuration file in vehicle-carrying communication network in.
In a particular embodiment, so-called data management file, namely above described DBC file.DBC is for describing the CAN communication carried out between each ECU node in In-vehicle networking.
Then in this embodiment, what is called is associated with the first data model of data management file, is DBC data model.
In this embodiment, in above-mentioned steps S200, the file structure of so-called data management file, wherein can comprise the mathematical logic relation between each data that DBC file comprises.
In this embodiment, above-mentioned parsing template can be applied, in above-mentioned first data model resolve obtain comprising data (resolving can describe in detail hereinafter).
In this embodiment, so-called data configuration file, it can be the above described substandard configuration file of AUTOSAR.Therefore, above-mentioned second data model can for being associated with the data model of AUTOSAR data structure.
Then in this embodiment, finally can pass through to set up corresponding relation between the first data model and the second data model, and by the data-mapping in the first data model in the second data model, to complete document analysis process.
In preferred embodiment of the present invention, the file structure of above-mentioned DBC file comprises the logical storage structure in DBC file.Particularly, in preferred embodiment of the present invention, define a large amount of data parameters in DBC file, such as Network and Message etc.There is between different data parameters corresponding mathematical logic relation.
Therefore, in preferred embodiment of the present invention, as shown in Figure 2, in above-mentioned steps S100, the step setting up the first data model and DBC data model specifically comprises:
Mathematical logic relation between each data parameters defined in step S110, acquisition data management file;
Step S120, build the first data model according to mathematical logic relation.
In preferred embodiment of the present invention, in above-mentioned steps S120, adopt the modeling framework (EclipseModelingFramework, EMF) based on Eclipse, build the first data model according to mathematical logic relation.
Particularly, in preferred embodiment of the present invention, in above-mentioned steps, first the mathematical logic relation in DBC data model between each data parameters is taken out, adopt EMF modeling framework the abstract and mathematical logic relation arranged out to be built with DBC data model subsequently, then the DBC data model constructed is for preserving DBC document analysis data out.
In preferred embodiment of the present invention, in above-mentioned steps S200, adopt described in Antlr parser generation and resolve template.
Particularly, in preferred embodiment of the present invention, because the data in DBC file have its fixing storage format, in these attribute datas, some is fixing existence, and some can be self-defined, and therefore its content of text is very possible more various and very complicated.In this case, can exemplary format be adopted to describe out the file structure of DBC file, then by lexical analyzer maker class that above-mentioned parsing template switch becomes Java code to call by the code building function that Antlr (ANotherToolforLanguageRecognition) instrument provides.By calling lexical analyzer maker class, the data in DBC file can be combined with the DBC data model built, returning the data object needed for final mapping.Namely, in above-mentioned steps S300, the lexical analysis maker that the data Antlr analyzer in data management file provides is mapped in the first data model.
In preferred embodiment of the present invention, as shown in Figure 3, above-mentioned steps S400 specifically comprises:
Step S410, analysis the corresponding relation obtained between the first data model and the second data model;
Step S420, according to corresponding relation, by the data-mapping that is mapped in the first data model in the second data model.
Particularly, in preferred embodiment of the present invention, in above-mentioned steps S400, first adopt a configuration module analysis and corresponding relation between the data obtained in DBC data model and the undefined data of AUTOSAR standard.Subsequently according to analyzing the corresponding relation obtained, by the data-mapping in above-mentioned first data model (DBC data model) in the second data model (the substandard data model of AUTOSAR).
In a preferred embodiment of the present invention, said process can be: the corresponding relation between the data adopting a configuration module to analyze to define in DBC data model and AUTOSAR standard, and adopt the configuration module of this corresponding A UTOSAR standard, by the related data defined in DBC data model, by calling relevant assignment method body, configuration parameter value is mapped to the data model (the second data model) being associated with AUTOSAR standard, is namely saved in the respective items of AUTOSAR module.
In preferred embodiment of the present invention, when above-mentioned second data model is saved, the form adopting arxml is needed to preserve.
In sum, in technical solution of the present invention, first build DBC data model and DBC parsing template according to the file structure of DBC file, and by the Data Analysis in DBC file in DBC data model.
Subsequently, analyze and obtain the corresponding relation between above-mentioned DBC data model and the substandard data model of AUTOSAR, and according to this corresponding relation, adopt a configuration module by the data-mapping in DBC data model in the substandard data model of above-mentioned AUTOSAR, and preserve with the form of arxml, thus complete the process of document analysis and mapping.
In present pre-ferred embodiments, also comprise a kind of electric-control system, adopt above-mentioned method DBC file being imported the configuration tool of AUTOSAR standard traffic stack.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection domain is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations instructions of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.

Claims (9)

1. a document analysis method, is applied in vehicle-carrying communication network; It is characterized in that, adopt the data management file being associated with described vehicle-carrying communication network to describe CAN communication in described vehicle-carrying communication network between different node, also comprise:
Step S100, be associated in the first data model of described data management file according to the file structure of described data management file;
Step S200, to generate according to the described file structure of described data management file and resolve template;
Step S300, to be resolved by the described data management file selected by described parsing template, and be mapped in described first data model by resolving the management data obtained according to described file structure;
Step S400, by the data-mapping in described first data model to one preset the second data model being associated with the data configuration file in described vehicle-carrying communication network in.
2. document analysis method as claimed in claim 1, it is characterized in that, described file structure comprises the logical storage structure in described data management file;
In described step S100, the step setting up described first data model is:
Step S110, obtain in described data management file described mathematical logic relation between each data parameters of defining;
Step S120, build described first data model according to described mathematical logic relation.
3. document analysis method as claimed in claim 2, is characterized in that, in described step S120, adopts EMF modeling framework, builds described first data model according to described mathematical logic relation.
4. document analysis method as claimed in claim 1, is characterized in that, in described step S200, adopts described in Antlr parser generation and resolves template.
5. document analysis method as claimed in claim 3, it is characterized in that, in described step S300, the lexical analysis maker that Antlr analyzer described in the data in described data management file provides is mapped in described first data model.
6. document analysis method as claimed in claim 1, it is characterized in that, described step S400 specifically comprises:
Step S410, analysis the corresponding relation obtained between described first data model and described second data model;
Step S420, according to described corresponding relation, by the data-mapping that is mapped in described first data model in described second data model.
7. document analysis method as claimed in claim 1, it is characterized in that, described data configuration file is the configuration file meeting AUTOSAR standard.
8. document analysis method as claimed in claim 6, is characterized in that, in described step S410, adopts a configuration module analysis and corresponding relation between the data obtained in described first data model and the undefined data of described AUTOSAR standard.
9. document analysis method as claimed in claim 1, is characterized in that, after performing described step S400, is preserved by described second data model be associated with through mapping with arxml file layout.
CN201510848394.0A 2015-11-26 2015-11-26 File analyzing method Pending CN105512097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510848394.0A CN105512097A (en) 2015-11-26 2015-11-26 File analyzing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510848394.0A CN105512097A (en) 2015-11-26 2015-11-26 File analyzing method

Publications (1)

Publication Number Publication Date
CN105512097A true CN105512097A (en) 2016-04-20

Family

ID=55720090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510848394.0A Pending CN105512097A (en) 2015-11-26 2015-11-26 File analyzing method

Country Status (1)

Country Link
CN (1) CN105512097A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817366A (en) * 2016-12-31 2017-06-09 惠州市蓝微新源技术有限公司 A kind of CAN document analysis and again store method
CN108241642A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 Document analysis method and apparatus
CN109491660A (en) * 2018-09-30 2019-03-19 大连莱克科技发展有限公司 A kind of locomotive event data dynamic analysis method
CN109800330A (en) * 2019-01-31 2019-05-24 北京经纬恒润科技有限公司 A kind of data processing method and device
CN110879860A (en) * 2019-10-14 2020-03-13 中国第一汽车股份有限公司 Document management method, system, electronic device and medium
CN111310416A (en) * 2018-12-10 2020-06-19 大陆汽车电子(连云港)有限公司 Method and system for analyzing and converting standard data source files

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE202008016892U1 (en) * 2007-12-21 2009-04-16 Opensynergy Gmbh Motor vehicle control device
CN101794227A (en) * 2010-03-08 2010-08-04 浙江大学 Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model
CN102096729A (en) * 2010-12-14 2011-06-15 成电汽车电子产业园(昆山)有限公司 Automotive electronics oriented virtual functional bus designer
CN102622470A (en) * 2012-02-21 2012-08-01 重庆邮电大学 General car code conversion method
CN102819426A (en) * 2012-02-29 2012-12-12 浙江大学 Method for synchronizing AUTOSAR (automotive open system architecture) model to Simulink model
US20130124703A1 (en) * 2011-11-11 2013-05-16 Electronics And Telecommunications Research Institute Method and apparatus for setting up gateway for autosar-based vehicle network
CN104331292A (en) * 2014-11-03 2015-02-04 重庆邮电大学 Method for generating configuration for middleware protocol conversion of Internet of vehicles

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE202008016892U1 (en) * 2007-12-21 2009-04-16 Opensynergy Gmbh Motor vehicle control device
CN101794227A (en) * 2010-03-08 2010-08-04 浙江大学 Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model
CN102096729A (en) * 2010-12-14 2011-06-15 成电汽车电子产业园(昆山)有限公司 Automotive electronics oriented virtual functional bus designer
US20130124703A1 (en) * 2011-11-11 2013-05-16 Electronics And Telecommunications Research Institute Method and apparatus for setting up gateway for autosar-based vehicle network
CN102622470A (en) * 2012-02-21 2012-08-01 重庆邮电大学 General car code conversion method
CN102819426A (en) * 2012-02-29 2012-12-12 浙江大学 Method for synchronizing AUTOSAR (automotive open system architecture) model to Simulink model
CN104331292A (en) * 2014-11-03 2015-02-04 重庆邮电大学 Method for generating configuration for middleware protocol conversion of Internet of vehicles

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241642A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 Document analysis method and apparatus
CN106817366A (en) * 2016-12-31 2017-06-09 惠州市蓝微新源技术有限公司 A kind of CAN document analysis and again store method
CN109491660A (en) * 2018-09-30 2019-03-19 大连莱克科技发展有限公司 A kind of locomotive event data dynamic analysis method
CN111310416A (en) * 2018-12-10 2020-06-19 大陆汽车电子(连云港)有限公司 Method and system for analyzing and converting standard data source files
CN109800330A (en) * 2019-01-31 2019-05-24 北京经纬恒润科技有限公司 A kind of data processing method and device
CN109800330B (en) * 2019-01-31 2021-03-23 北京经纬恒润科技股份有限公司 Data processing method and device
CN110879860A (en) * 2019-10-14 2020-03-13 中国第一汽车股份有限公司 Document management method, system, electronic device and medium

Similar Documents

Publication Publication Date Title
CN105512097A (en) File analyzing method
CN109343857B (en) Method, apparatus and storage medium for deploying machine learning model on line
CN108153520A (en) Software development methodology and device
CN109858019B (en) Dialogue state tracking method and device, storage medium and semantic recognition system
CN109683953A (en) A kind of method and device carrying out configuration file processing based on visualization interface
CN110995578B (en) Design method, device, equipment and storage medium of automobile gateway
CN103842988A (en) Network-based custom dictionary, auto-correction and text entry preferences
CN106354492A (en) Automatic code generation method and system capable of rapidly adjusting transaction process connection
CN109116828B (en) Method and device for configuring model codes in controller
CN105721451B (en) A kind of prolongable Modbus protocol analysis method and device
CN110502239A (en) A kind of method for developing and producing and device of onboard system SDK
CN115167831A (en) Software integration method and device based on AUTOSAR and use method
CN102236573A (en) Name binding extensibility for typed programming language
CN111291443B (en) Automatic generation method, device and equipment for I/O module model of vehicle control unit software
CN110955412B (en) Service-oriented intelligent cabin system and design method and design system thereof
CN113687814A (en) Automation realization method of model framework and interface file based on AUTOSAR (automotive open system architecture)
CN105224317B (en) A kind of APK is applied to the method and system in Android project source code
CN103561113A (en) Web Service interface generating method and device
CN105530288B (en) Data interaction method
KR101482668B1 (en) System and method for generating database based on SCL
CN113591448A (en) Report generation method and device and storage medium
CN109710293B (en) File processing method and device, electronic equipment and storage medium
CN111026505B (en) Network equipment virtualization method and device
CN116521143B (en) DID read-write service processing method and device for fault diagnosis
Broodney et al. Leveraging Domain Expertise 1in Architectural Exploration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication