CN105530288A - Data interaction method - Google Patents

Data interaction method Download PDF

Info

Publication number
CN105530288A
CN105530288A CN201510848156.XA CN201510848156A CN105530288A CN 105530288 A CN105530288 A CN 105530288A CN 201510848156 A CN201510848156 A CN 201510848156A CN 105530288 A CN105530288 A CN 105530288A
Authority
CN
China
Prior art keywords
data
file
diagnostic
diagnostic data
data model
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.)
Granted
Application number
CN201510848156.XA
Other languages
Chinese (zh)
Other versions
CN105530288B (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

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 field of automobile control technology, and particularly relates to a data interaction method. The data interaction method comprises the following steps: establishing a first data model associated with a diagnostic data file according to a file structure defined by a preset file associated with the diagnostic data file; analyzing a selected diagnostic data file, and judging whether the diagnostic data file is successfully analyzed; in the case of the analysis failure, modifying the diagnostic data file, and then returning to the step S100; storing analyzed diagnostic data associated with the diagnostic data file in the first data model; and mapping the diagnostic data in the first data model into a second data model of a preset data configuration file associated with an automobile electronic unified diagnostic services. The data interaction method provided by the technical scheme has the beneficial effects of being capable of analyzing contents in an ODX data file to automatically realize data interaction of files of two formats in a diagnostic unit and an electronic control unit and reduce the time and manpower costs generated in a manual configuration process.

Description

A kind of method of data interaction
Technical field
The present invention relates to technical field of automobile control, particularly relate to a kind of method of data interaction.
Background technology
Along with the increasingly complex of automobile electric control system and network configuration 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.The mutual difference due to application scenarios, developing instrument of the diagnostic data occurred in the whole life-cycle processes of vehicle, the data format that diagnosis exploitation different phase uses is all not identical, and the process causing diagnostic data mutual is too complicated.At present, the mode of manual configuration again that automobile vendor's solution diagnostic data adopts alternately carries out the conversion of diagnostic requirements descriptor format, but is difficult to the consistency ensureing data, increases the complexity of data management simultaneously, increases integrated cost.And due to the complexity of AUTOSAR modular arrangements, cause the also corresponding raising of the error rate in layoutprocedure.
Summary of the invention
Automatically the method data in different-format file can being carried out mutual a kind of data interaction is now provided for the problems referred to above.
Concrete technical scheme is:
A method for data interaction, is applied in In-vehicle networking; Wherein, and transmit diagnostic data file between the electronic control unit in a diagnostic equipment and described In-vehicle networking, also comprise:
The file structure that step S100, basis are associated with a predetermined file definition of described diagnostic data file is associated in the first data model of described diagnostic data file;
Step S200, select a described diagnostic data file resolving, and whether successfully judge to resolve:
If resolve unsuccessfully, then revise the content of described diagnostic data file, return described step S100 subsequently;
Step S300, be saved in described first data model by resolving the diagnostic data be associated with in described diagnostic data file that obtains;
Step S400, the described diagnostic data in described first data model is mapped to one preset be associated with in the second data model of the data configuration file of described In-vehicle networking.
Preferably, the method for above-mentioned data interaction, wherein, adopts a data file with predetermined format to define the described file structure of described diagnostic data file;
Described diagnostic data file is ODX file;
The described data file with predetermined format is xds file.
Preferably, the method for above-mentioned data interaction, in wherein said step S100, adopts EMF modeling framework, builds described first data model according to described file structure.
Preferably, the method for above-mentioned data interaction, wherein said 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, the described diagnostic data be mapped in described first data model to be mapped in described second data model.
Preferably, the method for above-mentioned data interaction, wherein said data configuration file is the configuration file meeting AUTOSAR standard.
Preferably, the method for above-mentioned data interaction, in wherein said step S410, adopts a diagnostic configuration module analysis and corresponding relation between the described diagnostic data obtained in described first data model and the data of AUTOSAR standard definition.
Preferably, the method for above-mentioned data interaction, after wherein performing described step S400, preserves the described diagnostic data of described second data model be associated with through mapping with arxml file format.
The beneficial effect of technique scheme is: a kind of method of data interaction, can pass through the Context resolution in ODX data file, automatically the data interaction of two kinds of formatted files in diagnostic equipment and electronic control unit is realized, decrease the time and human cost that produce in manually layoutprocedure, decrease the error rate in layoutprocedure, improve efficiency.
Accompanying drawing explanation
Fig. 1 is in preferred embodiment of the present invention, a kind of overall procedure schematic diagram of method of data interaction;
Fig. 2 is in preferred embodiment of the present invention, on the basis of Fig. 1, and the schematic flow sheet step by step of the method for data interaction in different file format.
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.
Automotive electronics unified diagnosis service UDS is the diagnosing protocol of CAN application layer, be diagnostic equipment when current automobile produced problem is analyzed and automobile talk the language used, wherein, because of the open diagnostic data form (OpenDiagnosticDataExchange that UDS adopts, ODX) inconsistent with the preservation form of the data model of diagnostic module in automotive electronics Embedded A UTOSAR standard, in order to ensure the communication between diagnostic equipment and vehicle electronic control unit ECU, the data in diagnostic data file and ODX file and the data in AUTOSAR normative document are made to complete automatic interaction, a kind of method of data interaction is provided in preferred embodiment of the present invention, the time and human cost that produce because needing repeatability configuration in development process can be reduced, also automatically complete by instrument the situation that format conversion avoids error prone manual configuration simultaneously.
Said method is specific as follows:
A method for data interaction, is applied in In-vehicle networking; It is characterized in that, adopt and be associated with ODX file in In-vehicle networking and describe diagnostic equipment and be made up of to realize the communication process between electronic control unit that the functions such as the analyzing and processing transmission of data are controlled integrated circuit, as shown in Figure 1, also comprise:
The file structure that step S100, basis are associated with a predetermined file definition of diagnostic data file is associated in the first data model of diagnostic data file;
The diagnostic data file that step S200, parsing are selected, and judge that whether parsing is successful:
If resolve unsuccessfully, then revise diagnostic data file, return step S100 subsequently;
Step S300, be saved in the first data model by resolving the diagnostic data be associated with in diagnostic data file that obtains;
Step S400, the diagnostic data in the first data model to be mapped in second data model being associated with the data configuration file in the unified diagnosis service of automotive electronics preset.
The data message be parsed by automatically resolving the content in ODX file, and is stored in predetermined file according to the data format defined in AUTOSAR standard by the technical program.
In above-mentioned steps S100, build data model i.e. first data model of diagnostic data file ODX;
Based on extend markup language (ExtensibleMarkupLanguage, XML) diagnostic data adopts file ODX standard data format, ODX file adopts EMF modeling framework (EclipseModelingFramework, EMF) the mathematical logic relation defined in predetermined file is resolved, and convert to efficiently according to modeling framework, correct, with the Java code being easy to customize, set up standard compliant first data model, this first data model is in order to preserve the diagnostic data content in ODX.
In above-mentioned steps S200, selected ODX file is resolved;
Data format in ODX file, based on XML language definition, there is defined a large amount of data contents and data format is comparatively complicated, by the data in EMF Analysis on Framework XML file.
In above-mentioned steps S300, the diagnostic data of parsing is preserved;
Be stored in the first data model of definition after EMF is resolved the data analysis obtained.
In above-mentioned steps S400, complete the automatic interaction of data in diagnostic data in ODX file and AUTOSAR normative document;
Analyze the corresponding relation between the data that define in the parameter information of the first data model and AUTOSAR standard, the related diagnostic data defined is saved in the respective items of AUTOSAR module in ODX file.
In preferred embodiment, a data file with predetermined format is adopted to define the file structure of diagnostic data file;
Diagnostic data file is ODX file;
The data file with predetermined format is xsd file.
ODX, as the standardized form of one for exchange diagnosis data, considers the interchangeability of data in diagnosis exploitation overall process when formulating, standardization data format, facilitates operation;
Data format in ODX file defines based on XML language, and xsd file is used to the outline file of the XML file describing specified type, therefore, using the parameter definition file of xsd file as ODX, EMF modeling framework is made to build standard compliant first data model with the mathematical logic relation of xsd document definition.
In preferred embodiment, as shown in Figure 2, step 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, the diagnostic data be mapped in the first data model to be mapped in the second data model.
Resolve the meaning of parameters obtaining each data object representative in the first data model, obtain the incidence relation between the data that define in parameter information in ODX data object and AUTOSAR standard, build the corresponding relation between the first data model and the second data model;
According to above-mentioned corresponding relation, in conjunction with definition data structure in AUTOSAR standard, the diagnostic data in the first data model obtain parsing is mapped in the second data model.
In preferred embodiment, data configuration file is the configuration file meeting AUTOSAR standard.
On the basis of technique scheme, further, in step S410, adopt a diagnostic configuration module analysis and corresponding relation between the diagnostic data obtained in the first data model and the undefined data of AUTOSAR standard.
Creating the configuration module diagnosed in AUTOSAR standard, by the related diagnostic data defined in ODX file, by calling the corresponding relation between the first data model and the second data model, the diagnostic data after configuration being mapped in the respective items of the second data model.
In preferred embodiment, after performing step S400, the data of the second data model be associated with through mapping are preserved with arxml file format.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range 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 specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.

Claims (7)

1. a method for data interaction, is applied in In-vehicle networking; It is characterized in that, and transmit diagnostic data file between the electronic control unit in a diagnostic equipment and described In-vehicle networking, also comprise:
The file structure that step S100, basis are associated with a predetermined file definition of described diagnostic data file is associated in the first data model of described diagnostic data file;
Step S200, select a described diagnostic data file resolving, and whether successfully judge to resolve:
If resolve unsuccessfully, then revise the content of described diagnostic data file, return described step S100 subsequently;
Step S300, be saved in described first data model by resolving the diagnostic data be associated with in described diagnostic data file that obtains;
Step S400, the described diagnostic data in described first data model is mapped to one preset be associated with in the second data model of the data configuration file of described In-vehicle networking.
2. the method for data interaction as claimed in claim 1, is characterized in that, adopts a data file with predetermined format to define the described file structure of described diagnostic data file;
Described diagnostic data file is ODX file;
The described data file with predetermined format is xds file.
3. the method for data interaction as claimed in claim 1, is characterized in that, in described step S100, adopts EMF modeling framework, builds described first data model according to described file structure.
4. the method for data interaction 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, the described diagnostic data be mapped in described first data model to be mapped in described second data model.
5. the method for data interaction as claimed in claim 1, it is characterized in that, described data configuration file is the configuration file meeting AUTOSAR standard.
6. the method for data interaction as claimed in claim 5, is characterized in that, in described step S410, adopts a diagnostic configuration module analysis and corresponding relation between the described diagnostic data obtained in described first data model and the data of AUTOSAR standard definition.
7. the method for data interaction as claimed in claim 1, is characterized in that, after performing described step S400, is preserved by the described diagnostic data of described second data model be associated with through mapping with 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 true CN105530288A (en) 2016-04-27
CN105530288B 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)

Cited By (2)

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

Citations (6)

* 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
US20100162203A1 (en) * 2008-12-19 2010-06-24 Electronics And Telecommunications Research Institute Project management device and method for architecture modeling tool of application software on autosar and computer readable recording medium therefor
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
US20120159436A1 (en) * 2010-12-21 2012-06-21 Gary Morgan Method of bypassing an autosar software component of an autosar software system

Patent Citations (6)

* 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
US20100162203A1 (en) * 2008-12-19 2010-06-24 Electronics And Telecommunications Research Institute Project management device and method for architecture modeling tool of application software on autosar and computer readable recording medium therefor
CN101794227A (en) * 2010-03-08 2010-08-04 浙江大学 Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model
US20120159436A1 (en) * 2010-12-21 2012-06-21 Gary Morgan Method of bypassing an autosar software component of an autosar software system
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

Cited By (3)

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

Also Published As

Publication number Publication date
CN105530288B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN106980560B (en) ICD database based multi-bus protocol testing and simulating method and platform
CN109740222B (en) Testing device and system for automobile networking scene
CN104965507A (en) Method used for generating open diagnostic data exchange database and device
CN112068808B (en) General processing system for multi-bus data conversion of avionics system
CN105512097A (en) File analyzing method
CN109995643A (en) Business mail push method and device
CN113468070A (en) Consistency test method for vehicle-mounted Ethernet
CN113608518A (en) Data generation method, device, terminal equipment and medium
CN114460925B (en) Automatic test method for CAN interface HIL of electric automobile controller
CN105530288A (en) Data interaction method
CN107357792B (en) Data analysis method and device
CN111124417B (en) Industrial control program compiling method and device, computer equipment and storage medium
CN116521217A (en) Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool
US8464218B2 (en) Method port arrangement and configuration method thereof for robot software component
CN112054955B (en) Gateway-based device communication method
CN114488997A (en) ECU (electronic control Unit) flashing method and device, electronic equipment and storage medium
KR20140123126A (en) System and method for generating database based on SCL
CN111045740A (en) MCU software parameter calibration method and system based on USBCAN
CN113703723A (en) Model-based frozen frame data implementation method under AUTOSAR (automotive open system architecture) and computer equipment
CN116521143B (en) DID read-write service processing method and device for fault diagnosis
EP4350511A1 (en) Method and apparatus for co-simulation
CN114338393B (en) Upgrade data transmission method, transparent transmission device, apparatus, communication system and medium
CN117725679B (en) AUTOSAR modeling method based on activity scene
CN117667455A (en) Method, device and equipment for converting vehicle data and readable storage medium
CN116361107A (en) Vehicle simulation scene monitoring method, system, electronic equipment and storage medium

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