CN105530288B - Data interaction method - Google Patents

Data interaction method Download PDF

Info

Publication number
CN105530288B
CN105530288B CN201510848156.XA CN201510848156A CN105530288B CN 105530288 B CN105530288 B CN 105530288B CN 201510848156 A CN201510848156 A CN 201510848156A CN 105530288 B CN105530288 B CN 105530288B
Authority
CN
China
Prior art keywords
data
file
diagnostic
data model
diagnosis
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
CN201510848156.XA
Other languages
Chinese (zh)
Other versions
CN105530288A (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.)
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 CN201510848156.XA priority Critical patent/CN105530288B/en
Publication of CN105530288A publication Critical patent/CN105530288A/en
Application granted granted Critical
Publication of CN105530288B publication Critical patent/CN105530288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31211Communicate diagnostic data from intelligent field device controller to central

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of automobile control, in particular to a data interaction method. The method comprises the following steps: establishing a first data model associated with the diagnostic data file according to a file structure defined by a predetermined file associated with the diagnostic data file; analyzing the selected diagnostic data file, and judging whether the analysis is successful: if the analysis fails, the diagnostic data file is modified, and then the step S100 is returned; storing the analyzed diagnostic data related to the diagnostic data file into a first data model; and mapping the diagnosis data in the first data model into a preset second data model which is related to a data configuration file in the automotive electronic unified diagnosis service. The beneficial effects of the above technical scheme are: the data interaction between the diagnostic instrument and the files in two formats in the electronic control unit can be automatically realized by analyzing the contents in the ODX data files, and the time and labor cost generated in the manual configuration process are reduced.

Description

Data interaction method
Technical Field
The invention relates to the technical field of automobile control, in particular to a data interaction method.
Background
With the increasing complexity of automobile electric control systems and network structures thereof, the software Architecture thereof is promoted to develop towards the direction of modularization, platform and standardization, and software development based on the automobile Open Architecture (Automotive Open System Architecture, AUTOSAR) standard becomes the trend of the automobile electronic embedded field. The interaction of diagnostic data in the whole life cycle process of the vehicle is caused by the fact that different data formats are used in different stages of diagnostic development due to different application scenes and development tools, and the diagnostic data interaction process is too complex. At present, automobile manufacturers solve the problem that diagnosis requirement description format conversion is carried out in a manual reconfiguration mode adopted by diagnosis data interaction, but data consistency is difficult to guarantee, meanwhile, complexity of data management is increased, and comprehensive cost is increased. And due to the complexity of the AUTOSAR modular configuration, the error rate in the configuration process is correspondingly increased.
Disclosure of Invention
Aiming at the problems, a data interaction method capable of automatically interacting data in files with different formats is provided.
The specific technical scheme is as follows:
a data interaction method is applied to a vehicle-mounted network; wherein, with a diagnostic apparatus and the electronic control unit in the said vehicle carried network between transmit the diagnostic data file, also include:
step S100, establishing a first data model related to the diagnosis data file according to a file structure defined by a preset file related to the diagnosis data file;
step S200, selecting one diagnosis data file and analyzing, and judging whether the analysis is successful:
if the analysis fails, modifying the content of the diagnostic data file, and then returning to the step S100;
step S300, storing the analyzed diagnosis data related to the diagnosis data file into the first data model;
step S400, mapping the diagnostic data in the first data model into a second data model of a preset data profile associated with the on-board network.
Preferably, in the method for data interaction, a data file with a predetermined format is used to define the file structure of the diagnostic data file;
the diagnostic data file is an ODX file;
the data file having a predetermined format is an xds file.
Preferably, in the method for data interaction, in step S100, the first data model is constructed according to the file structure by using an EMF modeling framework.
Preferably, in the above data interaction method, the step S400 specifically includes:
step S410, analyzing and obtaining a corresponding relation between the first data model and the second data model;
step S420, mapping the diagnostic data mapped into the first data model into the second data model according to the corresponding relationship.
Preferably, in the method for data interaction, the data configuration file is a configuration file conforming to AUTOSAR standard.
Preferably, in the above data interaction method, in step S410, a diagnostic configuration module is used to analyze and obtain a corresponding relationship between the diagnostic data in the first data model and data defined by the AUTOSAR standard.
Preferably, in the method for data interaction, after the step S400 is executed, the diagnostic data associated with the mapped second data model is saved in an arxml file format.
The beneficial effects of the above technical scheme are: a data interaction method can automatically realize data interaction between a diagnostic instrument and two format files in an electronic control unit by analyzing the contents in an ODX data file, thereby reducing the time and labor cost generated in the process of manual configuration, reducing the error rate in the configuration process and improving the efficiency.
Drawings
FIG. 1 is a schematic flow chart of a method for data interaction according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of a method for data interaction in different file formats based on FIG. 1 according to a preferred 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.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
The invention provides a Data interaction method in a better embodiment, which CAN reduce the time and labor cost caused by the need of configuration in the development process and avoid the condition that manual configuration is easy to make mistakes by automatically completing format conversion through a tool.
The method comprises the following specific steps:
a data interaction method is applied to a vehicle-mounted network; it is characterized in that, the communication process between the ODX file description diagnostic apparatus in the vehicle-mounted network and the electronic control unit composed of integrated circuit to realize the function control of data analysis, processing and transmission, as shown in FIG. 1, also includes:
step S100, establishing a first data model related to the diagnostic data file according to a file structure defined by a preset file related to the diagnostic data file;
step S200, analyzing the selected diagnosis data file, and judging whether the analysis is successful:
if the analysis fails, the diagnostic data file is modified, and then the step S100 is returned;
step S300, storing the analyzed diagnosis data related to the diagnosis data file into a first data model;
and S400, mapping the diagnosis data in the first data model into a preset second data model which is related to a data configuration file in the automobile electronic unified diagnosis service.
According to the technical scheme, the contents in the ODX file are automatically analyzed, and the analyzed data information is stored in a preset file according to a data format defined in the AUTOSAR standard.
In the step S100, a first data model, which is a data model of the diagnostic data file ODX, is constructed;
diagnostic data based on Extensible Markup Language (XML) adopts a file ODX standard data format, and an EMF Modeling Frame (EMF) is adopted for the ODX file to analyze a data logic relationship defined in a predetermined file, and a first data model conforming to a standard is established according to a Java code which is converted into an efficient, correct and easily customized according to the Modeling frame, wherein the first data model is used for storing the diagnostic data content in the ODX.
In the step S200, the selected ODX file is parsed;
the data format in the ODX file is defined based on the XML language, in which a large amount of data content is defined and the data format is complex, and the data in the XML file is parsed by the EMF framework.
In the step S300, the analyzed diagnostic data is saved;
and analyzing the data obtained by EMF analysis and storing the data into a defined first data model.
In the above step S400, the automatic interaction between the diagnostic data in the ODX file and the data in the AUTOSAR standard file is completed;
and analyzing the corresponding relation between the parameter information of the first data model and the data defined in the AUTOSAR standard, and storing the relevant diagnostic data defined in the ODX file into corresponding items of the AUTOSAR module.
In the preferred embodiment, a data file having a predetermined format is used to define the file structure of the diagnostic data file;
the diagnostic data file is an ODX file;
the data file having the predetermined format is an xsd file.
ODX is used as a standardized format for exchanging diagnostic data, the interchangeability of the data in the whole diagnostic development process is considered during the preparation, the data format is standardized, and the operation is convenient;
the data format in the ODX file is defined based on XML language, and the xsd file is an outline file used for describing the XML file with a specified type, so that the xsd file is used as a parameter definition file of the ODX, and the EMF modeling framework builds a first data model which meets the standard according to the data logic relation defined by the xsd file.
In a preferred embodiment, as shown in fig. 2, step S400 specifically includes:
s410, analyzing and obtaining a corresponding relation between the first data model and the second data model;
and step S420, mapping the diagnosis data mapped into the first data model into the second data model according to the corresponding relation.
Analyzing to obtain parameter meanings represented by the data objects in the first data model, obtaining an incidence relation between parameter information in the ODX data object and data defined in the AUTOSAR standard, and building a corresponding relation between the first data model and the second data model;
and mapping the diagnostic data in the first data model obtained by analysis into a second data model according to the corresponding relation by combining with a defined data structure in the AUTOSAR standard.
In a preferred embodiment, the data configuration file is a configuration file that conforms to the AUTOSAR standard.
Based on the above technical solution, further, in step S410, a diagnosis configuration module is used to analyze and obtain a corresponding relationship between the diagnosis data in the first data model and the data defined under the AUTOSAR standard.
And creating a diagnostic configuration module in the AUTOSAR standard, mapping the configured diagnostic data to corresponding items of a second data model by calling the corresponding relation between the first data model and the second data model according to the related diagnostic data defined in the ODX file.
In a preferred embodiment, after step S400 is executed, the data associated with the mapped second data model is saved in an arxml file format.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (5)

1. A data interaction method is applied to a vehicle-mounted network; it is characterized in that the diagnostic data file is transmitted between the diagnostic device and the electronic control unit in the vehicle-mounted network, and the method also comprises the following steps:
step S100, establishing a first data model related to the diagnosis data file according to a file structure defined by a preset file related to the diagnosis data file;
defining said file structure of said diagnostic data file using a data file having a predetermined format;
the diagnostic data file is an ODX file;
the data file having a predetermined format is an xds file;
step S200, selecting one diagnosis data file and analyzing, and judging whether the analysis is successful:
if the analysis fails, modifying the content of the diagnostic data file, and then returning to the step S100;
step S300, storing the analyzed diagnosis data related to the diagnosis data file into the first data model;
step S400, mapping the diagnosis data in the first data model into a second data model of a preset data configuration file related to the vehicle-mounted network;
the step S400 specifically includes:
step S410, analyzing and obtaining a corresponding relation between the first data model and the second data model;
step S420, mapping the diagnostic data mapped into the first data model into the second data model according to the corresponding relationship.
2. The method of data interaction according to claim 1, wherein in step S100, the first data model is constructed from the file structure using an EMF modeling framework.
3. The method of data interaction of claim 1, wherein the data profile is a profile that conforms to AUTOSAR standards.
4. The method according to claim 3, wherein in step S410, a diagnosis configuration module is used to analyze and obtain the correspondence between the diagnosis data in the first data model and the data defined by AUTOSAR standard.
5. The method of data interaction of claim 1, wherein after performing step S400, the diagnostic data associated with the mapped second data model is saved in an arxml file format.
CN201510848156.XA 2015-11-26 2015-11-26 Data interaction method Active CN105530288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510848156.XA CN105530288B (en) 2015-11-26 2015-11-26 Data interaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510848156.XA CN105530288B (en) 2015-11-26 2015-11-26 Data interaction method

Publications (2)

Publication Number Publication Date
CN105530288A CN105530288A (en) 2016-04-27
CN105530288B true CN105530288B (en) 2021-10-26

Family

ID=55772264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510848156.XA Active CN105530288B (en) 2015-11-26 2015-11-26 Data interaction method

Country Status (1)

Country Link
CN (1) CN105530288B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111103861B (en) * 2018-10-25 2023-04-07 上汽通用汽车有限公司 Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs
CN113065033B (en) * 2021-03-22 2023-03-14 江铃汽车股份有限公司 ODX file-based diagnosis method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010046734A1 (en) * 2008-10-21 2010-04-29 Accenture Global Services Gmbh Model transformation unit
CN101794227A (en) * 2010-03-08 2010-08-04 浙江大学 Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model
CN102193802A (en) * 2011-05-19 2011-09-21 浙江大学 Method for converting models with model subsets of same base class structure
CN102385530A (en) * 2011-08-11 2012-03-21 浙江大学 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101185093B1 (en) * 2008-12-19 2012-09-21 한국전자통신연구원 Project management device and method for architecture modeling tool of application software on AUTOSAR
EP2469407A1 (en) * 2010-12-21 2012-06-27 Robert Bosch GmbH Method of bypassing an AUTOSAR software component of an AUTOSAR software system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010046734A1 (en) * 2008-10-21 2010-04-29 Accenture Global Services Gmbh Model transformation unit
CN101794227A (en) * 2010-03-08 2010-08-04 浙江大学 Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model
CN102193802A (en) * 2011-05-19 2011-09-21 浙江大学 Method for converting models with model subsets of same base class structure
CN102385530A (en) * 2011-08-11 2012-03-21 浙江大学 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation

Also Published As

Publication number Publication date
CN105530288A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN109164783B (en) Vehicle diagnosis method, apparatus, device, and medium
CN109740222B (en) Testing device and system for automobile networking scene
CN108965293B (en) Message analysis method and device and electronic equipment
CN111443688B (en) Automobile diagnosis service network layer test system and method based on CAN bus
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN105512097A (en) File analyzing method
CN111103861B (en) Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs
US20210065480A1 (en) Method and system for remote vehicle diagnostics
CN105530288B (en) Data interaction method
CN107294826B (en) CAN network-based TBOX parameter calibration method and device
CN111478944B (en) Vehicle-mounted terminal and vehicle CAN protocol adaptation method, device, equipment and medium
CN111624981A (en) Steering wheel angle calibration system and calibration method of automobile power-assisted steering system
KR20190123250A (en) Apparatus and method for automating software design of a vehicle controller
KR101482668B1 (en) System and method for generating database based on SCL
CN115842861A (en) Edge connection device adaptation method, device and computer readable storage medium
CN114488997A (en) ECU (electronic control Unit) flashing method and device, electronic equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
KR102038131B1 (en) Apparatus and method for automating software design of a vehicle controller
CN112051990A (en) Network management northbound interface model adaptation method and system
CN109547260A (en) A kind of FlexRay network collocating method and system
CN117270956B (en) Configuration method of hardware equipment, client, hardware equipment network management system and medium
CN116009836B (en) RPA programming method, device, equipment and storage medium based on script language
CN115542882B (en) Controller interface configuration method and device
CN114338393B (en) Upgrade data transmission method, transparent transmission device, apparatus, communication system and medium
CN118377488A (en) Method, device, computer equipment, storage medium and program product for generating IDL file

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
GR01 Patent grant
GR01 Patent grant