CN102231107B - Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture) - Google Patents

Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture) Download PDF

Info

Publication number
CN102231107B
CN102231107B CN 201110153355 CN201110153355A CN102231107B CN 102231107 B CN102231107 B CN 102231107B CN 201110153355 CN201110153355 CN 201110153355 CN 201110153355 A CN201110153355 A CN 201110153355A CN 102231107 B CN102231107 B CN 102231107B
Authority
CN
China
Prior art keywords
data
control unit
ecu
electrical control
communication
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.)
Expired - Fee Related
Application number
CN 201110153355
Other languages
Chinese (zh)
Other versions
CN102231107A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 201110153355 priority Critical patent/CN102231107B/en
Publication of CN102231107A publication Critical patent/CN102231107A/en
Application granted granted Critical
Publication of CN102231107B publication Critical patent/CN102231107B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a method for automatically generating a communication data format of an electric control unit based on an AUTOSAR (Automotive Open System Architecture), comprising the following steps of: (1) according to the system configuration of the AUTOSAR, analyzing and generating model objects of hardware topology and a software component; obtaining a mapping relationship from the software component to the electric control unit and communication interface information of the software component; (2) according to the mapping relationship from the software component to the electric control unit and the communication interface information of the software component, obtaining all data elements of each electric control unit for data communication; (3) according to data types and bit widths of the data elements, generating communication data formats corresponding to different communication protocol layers from the data elements; and (4) storing the mapping relationship between the data elements and the communication data formats of all the electric control units in the system mapping of the AUTOSAR. The method disclosed by the invention has the advantages of simple development process, low system design complexity, clear and compact communication data format structure, wide application range and high development efficiency.

Description

Automatic generation method based on the ECU (Electrical Control Unit) communication data form of AUTOSAR
Technical field
The present invention relates to the intelligent automobile field, be specifically related to a kind of software development technique based on AUTOSAR.
Background technology
AUTOSAR (AutomotiveOpenSystemArchitecture) is an automotive electronics open system framework, system configuration (SystemConfiguration) is the important step that defines in the AUTOSAR methodology, has mainly stipulated configuration informations such as hardware topology in the system, network service and system map.
System map has stipulated that employed component software has been realized the decoupling zero of software and hardware to the mapping relations of ECU (Electrical Control Unit) in the current system.Wherein, the model of component software comprises information such as component software type, port, interface, connector, the component software type is divided into two types of composite component (CompositionSWC), atom component (AtomicSWC) from the detachable property of individuality angle, composite component can comprise a plurality of component software examples, each component instance is quoted other composite component types or atom component type respectively, and atom component is minimum not subdivisible assembly.Port comprises that ProvidedPort(is used to provide data and service) be used to receive data and service with RequiredPort(); The data and the service of transmission when interface is used to indicate communication.AUTOSAR uses UMLprofile to define the model structure of system map, has stipulated the system configuration information describing mode based on the structural integrity of XML simultaneously, handles corresponding informance automatically for computing machine and provides the foundation.
The message interchange format of communicating by letter between ECU (Electrical Control Unit) in the system has been stipulated in network service, and is significant to system configuration.Network service hierarchical model according to AUTOSAR, its essential element comprises application layer network signal (SystemSignal), interbedded formation signal (ISignal), interbedded formation communication data unit (IPdu), data link layer frames (Frame) etc. need the data of exchange to encapsulate to finish effective transmitting-receiving through the data layout in the above different levels successively.
The AUTOSAR network communication models is divided into application layer, interbedded formation, data link layer.Useful load district in the data link-layer frame (Frame) can comprise one or more interbedded formation protocol Data Units (IPdu), for common CAN network or LIN network, can only comprise an IPdu among the Frame.May comprise one or more interbedded formation signals (ISignal) among each IPdu, each ISignal can only quote an application layer system signal (SystemSignal) or application layer system signal group (SystemSignalGroup).Can specify the mapping relations of data element in SystemSignal or SystemSignalGroup and the component software interface in the AUTOSAR network mapping model.
The mapping that realizes data element and communication data form in traditional AUTOSAR performance history is that artificial the description according to component software finished, this is set up process and relies on engineering staff personal experience and tendency, the implementation procedure complexity is various, difficulty is complicated, creates and debug consuming time tediously long.Special when system scale increases gradually because the AUTOSAR configuration information uses XML to describe, do not possess good can the reading type, it is accurate comprehensively that network signal and the data map relation of manually setting up is difficult to accomplish.And because the AUTOSAR standard has obtained providing powerful support for of industry, the quantity of various software products and scale all are in the stage of quick growth, need effective telecommunication management and establishment mode badly.
Summary of the invention
The technical problem to be solved in the present invention is: provide that a kind of development process is simple, the system design complexity is low, the clear compactness of communication data format structure, applied range, development efficiency are high based on the automatic generation method of the ECU (Electrical Control Unit) communication data form of AUTOSAR.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: a kind of automatic generation method of the ECU (Electrical Control Unit) communication data form based on AUTOSAR, and implementation step is as follows:
1) according to the system configuration parsing of AUTOSAR and the model object of generation hardware topology and component software, obtains component software to the mapping relations of ECU (Electrical Control Unit) and the communication interface information of component software;
2) obtain all data elements that each ECU (Electrical Control Unit) is used for data communication according to component software to the mapping relations of ECU (Electrical Control Unit), the communication interface information of component software;
3) generate communication data form with the corresponding different communication protocol layer of this data element according to the data type of data element and bit wide;
4) data element of all ECU (Electrical Control Unit) and the mapping relations between the communication data form are stored in the system map of AUTOSAR.
Further improvement as technical solution of the present invention:
Described step 2) obtains before all data elements of ECU (Electrical Control Unit), at first obtaining top layer component software and atom component software according to system configuration, is that top layer component software, leaf node be the tree construction mode of atom component software launch with all component softwares according to root node according to the relation of inclusion of component software; The component software of the mode traverse tree structure from the leaf to the root then, if current component software is the composite component and the example of another composite component by reference, then at first in current component software, set up the example copy of its another composite component of quoting, delete adduction relationship then another composite component.
When obtaining ECU (Electrical Control Unit) described step 2) and being used for the data element of data communication, at first obtain the mapping relations of ECU (Electrical Control Unit) and component software, if exist the component software of correspondence to be mapped in the different ECU (Electrical Control Unit), then with the communication data used in this correspondence as the communication data between ECU (Electrical Control Unit).
When generating the communication data form of corresponding different communication protocol layer in the described step 3), the data type of judgment data element at first, if data type is a fundamental type, then generate an application layer network signal that equates with the data element bit wide, if data type is a compound type, then generate an application layer network signal that equates with the data element bit wide, and set up an application layer network signal group that comprises described application layer network signal according to each subtype in this compound type; Form the alternating layers signal of establishing diplomatic relations according to application layer network signal or application layer network signal, set up the interbedded formation protocol Data Unit that a length equates with described application layer network signal or application layer network signal group according to described interbedded formation signal; Create the data link layer frame that length is identical according to the interbedded formation protocol Data Unit at last.
The present invention has following advantage:
1, the present invention supports to create each ECU (Electrical Control Unit) data element of AUTOSAR and the mapping relations between the communication data form automatically, has improved the development approach of AUTOSAR, has significantly simplified the development process of system design, has reduced the complexity of system design.
2, the present invention is directed to the AUTOSAR standard, the signal format that is generated is at the characteristics of vehicle electric field, and the clear compactness of communication data format structure can reasonablely be agreed with business demand, can be widely used in various system configuration Integrated Development Environment.
3, the network signal of the present invention's generation is directly according to the exchanges data demand between ECU (Electrical Control Unit), and its length and mapping mode have guaranteed the correctness of network signal, have improved the development efficiency of system configuration.
Description of drawings
Fig. 1 is the schematic flow sheet of the embodiment of the invention.
Fig. 2 is the schematic flow sheet of embodiment of the invention update software assembly to the mapping relations of ECU (Electrical Control Unit).
Fig. 3 is the schematic flow sheet of embodiment of the invention obtaining communication data layout and mapping relations.
Embodiment
As shown in Figure 1, the embodiment of the invention is as follows based on the implementation step of the automatic generation method of the ECU (Electrical Control Unit) communication data form of AUTOSAR:
1) according to the system configuration parsing of AUTOSAR and the model object of generation hardware topology and component software, obtains component software to the mapping relations of ECU (Electrical Control Unit) and the communication interface information of component software;
2) obtain all data elements that each ECU (Electrical Control Unit) is used for data communication according to component software to the mapping relations of ECU (Electrical Control Unit), the communication interface information of component software;
3) generate communication data form with the corresponding different communication protocol layer of this data element according to the data type of data element and bit wide;
4) data element of all ECU (Electrical Control Unit) and the mapping relations between the communication data form are stored in the system map of AUTOSAR.
The system configuration of AUTOSAR is based on standard x ML file in the present embodiment.The communication data form of the corresponding different communication protocol layer of data element specifically comprises data link layer frame (Frame), interbedded formation protocol Data Unit (IPdu), interbedded formation signal (ISignal) and application layer system signal (System Signal) etc.By the data element of the ECU (Electrical Control Unit) in the system map that generates and stores AUTOSAR automatically and the mapping relations between the communication data form, realized automatic generation based on the ECU (Electrical Control Unit) communication data form of AUTOSAR.When needs called the communication data form of ECU (Electrical Control Unit), the system map of inquiry AUTOSAR can obtain.
As shown in Figure 2, step 2) obtain and also comprise that adopting component level to flatten algorithm is converted into single layer structure with component software and comes the step of update software assembly to the mapping relations of ECU (Electrical Control Unit) before all data elements of ECU (Electrical Control Unit): at first obtaining top layer component software and atom component software according to system configuration, is that top layer component software, leaf node be the tree construction mode of atom component software launch with all component softwares according to root node according to the relation of inclusion of component software; The component software of the mode traverse tree structure from the leaf to the root then, if current component software is the composite component and the example of another composite component by reference, then at first in current component software, set up the example copy of its another composite component of quoting, delete adduction relationship then another composite component.For example component software comprises composite component A and composite component B, composite component B comprises the example of atom component C, wherein composite component A quotes the example of composite component B, then operation steps is as follows: when at first traversing composite component A, find that composite component A meets the rule of " current component software is the composite component and the example of another composite component by reference ", at first in composite component A, set up the copy of atom component C then, in composite component A, delete the example of composite component B then, thereby realize that the example with the atom component C inside the composite component B replaces the example of composite component B, it comes down to composite component A is launched, and deletes wherein other outer composite component examples of top mode.Come the mapping relations of update software assembly by adopting component level flattening algorithm that component software is converted into single layer structure to ECU (Electrical Control Unit), can obtain software assembly model more accurately, and effectively remove mutual adduction relationship in the composite component, obtain flat software assembly model, thereby it is more accurate to the mapping relations of ECU (Electrical Control Unit) to obtain component software.
When obtaining ECU (Electrical Control Unit) step 2) and being used for the data element of data communication, at first obtain the mapping relations of ECU (Electrical Control Unit) and component software, if exist the component software of correspondence to be mapped in the different ECU (Electrical Control Unit), then with the communication data used in this correspondence as the communication data between ECU (Electrical Control Unit).Obtain data element between the different ECU (Electrical Control Unit) by the mapping relations of ECU (Electrical Control Unit)-component software-ECU (Electrical Control Unit), simple possible, and also very accurate.
As shown in Figure 3, when generating the communication data form of corresponding different communication protocol layer in the step 3),
1) data type of judgment data element:
If data type is a fundamental type, then generate an application layer network signal (SystemSignal) that equates with the data element bit wide.
If data type is a compound type, then generate an application layer network signal (SystemSignal) that equates with the data element bit wide, and set up an application layer network signal group (SystemSignalGroup) that comprises described application layer network signal according to each subtype in this compound type.
2) create interbedded formation signal (ISignal) according to application layer network signal (SystemSignal) or application layer network signal group (System SignalGroup), set up the interbedded formation protocol Data Unit (IPdu) that a length equates with described application layer network signal (SystemSignal) or application layer network signal (SystemSignalGroup) group according to interbedded formation signal (ISignal); Create the data link layer frame (Frame) that length is identical according to interbedded formation protocol Data Unit (IPdu) at last.
Present embodiment is by analyzing the information of hardware topology, system map in the AUTOSAR system configuration, extract the mapping relations of component software wherein to ECU (Electrical Control Unit), and use component level to flatten algorithm acquisition assembly correspondence with foreign country port, thereby calculate the data element form of each ECU (Electrical Control Unit) transmitting-receiving.Data type and bit wide according to data element, automatically generate the data link layer frame of corresponding different communication protocol level, interbedded formation protocol Data Unit, interbedded formation signal, Content of Communication such as application layer system signal, the while is set up the mapping relations of signal and data element in system map.Present embodiment has utilized network service in the AUTOSAR standard to be used to finish data communication between ECU (Electrical Control Unit), and its Content of Communication can draw by the configuration result analysis to other parts in the system configuration, thereby can the automatic generating network relevant configuration.
The above only is a preferred implementation of the present invention, and protection scope of the present invention is not limited in above-mentioned embodiment, and every technical scheme that belongs to the principle of the invention all belongs to protection scope of the present invention.For a person skilled in the art, some improvements and modifications of under the prerequisite that does not break away from principle of the present invention, carrying out, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

1. automatic generation method based on the ECU (Electrical Control Unit) communication data form of AUTOSAR is characterized in that implementation step is as follows:
1) according to the system configuration parsing of AUTOSAR and the model object of generation hardware topology and component software, obtains component software to the mapping relations of ECU (Electrical Control Unit) and the communication interface information of component software;
2) obtain all data elements that each ECU (Electrical Control Unit) is used for data communication according to component software to the mapping relations of ECU (Electrical Control Unit), the communication interface information of component software;
3) generate communication data form with the corresponding different communication protocol layer of this data element according to the data type of data element and bit wide;
4) data element of all ECU (Electrical Control Unit) and the mapping relations between the communication data form are stored in the system map of AUTOSAR.
2. the automatic generation method of the ECU (Electrical Control Unit) communication data form based on AUTOSAR according to claim 1, it is characterized in that: described step 2) obtain before all data elements of ECU (Electrical Control Unit), at first obtaining top layer component software and atom component software according to system configuration, is that top layer component software, leaf node be the tree construction mode of atom component software launch with all component softwares according to root node according to the relation of inclusion of component software; The component software of the mode traverse tree structure from the leaf to the root then, if current component software is the composite component and the example of another composite component by reference, then at first in current component software, set up the example copy of its another composite component of quoting, delete adduction relationship then another composite component.
3. the automatic generation method of the ECU (Electrical Control Unit) communication data form based on AUTOSAR according to claim 2, it is characterized in that: when obtaining ECU (Electrical Control Unit) described step 2) and being used for the data element of data communication, at first obtain the mapping relations of ECU (Electrical Control Unit) and component software, if exist the component software of correspondence to be mapped in the different ECU (Electrical Control Unit), then with the communication data used in this correspondence as the communication data between ECU (Electrical Control Unit).
4. according to the automatic generation method of claim 1 or 2 or 3 described ECU (Electrical Control Unit) communication data forms based on AUTOSAR, it is characterized in that: when generating the communication data form of corresponding different communication protocol layer in the described step 3), the data type of judgment data element at first, if data type is a fundamental type, then generate an application layer network signal that equates with the data element bit wide, if data type is a compound type, then generate an application layer network signal that equates with the data element bit wide, and set up an application layer network signal group that comprises described application layer network signal according to each subtype in this compound type; Form the alternating layers signal of establishing diplomatic relations according to application layer network signal or application layer network signal, set up the interbedded formation protocol Data Unit that a length equates with described application layer network signal or application layer network signal group according to described interbedded formation signal; Create the data link layer frame that length is identical according to the interbedded formation protocol Data Unit at last.
CN 201110153355 2011-06-09 2011-06-09 Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture) Expired - Fee Related CN102231107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110153355 CN102231107B (en) 2011-06-09 2011-06-09 Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110153355 CN102231107B (en) 2011-06-09 2011-06-09 Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture)

Publications (2)

Publication Number Publication Date
CN102231107A CN102231107A (en) 2011-11-02
CN102231107B true CN102231107B (en) 2013-07-31

Family

ID=44843674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110153355 Expired - Fee Related CN102231107B (en) 2011-06-09 2011-06-09 Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture)

Country Status (1)

Country Link
CN (1) CN102231107B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611741B (en) * 2012-02-17 2015-03-18 浙江大学 Method for extracting communication matrix from AUTOSAR (Automotive Open System Architecture) system allocation model
CN103176796A (en) * 2013-02-04 2013-06-26 浙江大学 Method for achieving mapping from complex data to signal set in AUTOSAR
CN105137943B (en) * 2015-09-06 2018-06-26 同济大学 A kind of micro-hybrid system integration control device
CN111310416A (en) * 2018-12-10 2020-06-19 大陆汽车电子(连云港)有限公司 Method and system for analyzing and converting standard data source files
JP2021135808A (en) * 2020-02-27 2021-09-13 マツダ株式会社 On-vehicle apparatus control device
CN111831265B (en) * 2020-07-27 2024-02-02 吉林大学 AUTOSAR-based electric vehicle sensor signal processing assembly interface design method
CN116324721A (en) * 2021-10-21 2023-06-23 华为技术有限公司 Mapping relation generation method, device and storage medium
CN115657634B (en) * 2022-09-30 2024-06-04 重庆赛力斯凤凰智创科技有限公司 Automobile software architecture, module association method, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901148A (en) * 2010-01-28 2010-12-01 浙江大学 Generation method of ECU parameter configuration interface based on AUTOSAR standard

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8711878B2 (en) * 2004-12-10 2014-04-29 Broadcom Corporation Upstream channel bonding in a cable communications system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901148A (en) * 2010-01-28 2010-12-01 浙江大学 Generation method of ECU parameter configuration interface based on AUTOSAR standard

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨玉皓.汽车电子软件系统配置几个关键技术的研究.《万方数据学位论文库》.2012,
汽车电子软件系统配置几个关键技术的研究;杨玉皓;《万方数据学位论文库》;20120531;第44-48页 *

Also Published As

Publication number Publication date
CN102231107A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
CN102231107B (en) Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture)
CN109150640A (en) A kind of method for discovering network topology and system based on double layer network agreement
CN102930111B (en) The generation method of transformer station's SCD model file and device
CN104184663B (en) Communication means and device based on software defined network and integrated identification network
CN102932195B (en) A kind of business diagnosis method for supervising of protocal analysis Network Based and system
CN102843245B (en) Configuration data exchange method and device
KR101743904B1 (en) Gateway and tranforming method between iec61850 protocol and dnp3.0 protocol
CN102355062A (en) IEC (International Electrotechnical Commission) 61850 relay protection model checking method
CN102611741B (en) Method for extracting communication matrix from AUTOSAR (Automotive Open System Architecture) system allocation model
CN110390082A (en) A kind of communication matrix control methods and system
CN103577569B (en) Method for realizing PSASP (power system analysis software package) data file graphics on basis of SVG (scalable vector graphics) technology
CN104283792B (en) WInternet pipelined communication protocols routing algorithms based on content
CN106844819B (en) Intelligent station secondary graph model library design tool database acquisition system
CN103176796A (en) Method for achieving mapping from complex data to signal set in AUTOSAR
CN110572278B (en) Method and device for positioning information of three-layer gateway of metropolitan area network
CN111756688A (en) Method and system for realizing meter protocol and application decoupling
CN110209722A (en) A kind of data-interface for data exchange
CN109933588A (en) A kind of dwg data turn the method and system of gdb data
CN107463540B (en) Electric energy quality data processing method and electric energy quality monitoring device
CN115686497A (en) Business development data management method, development engine, electronic device, and storage medium
CN113037574B (en) Airborne equipment real-time signal processing method and system based on software definition
CN109446146A (en) A kind of state transition sequence generation method of application layer communication protocol
CN101426220A (en) Method, apparatus and system for base station cutover
CN212654226U (en) Intelligent charging stake based on thing networking
Li et al. Research on designing methods of the secondary system in digital substation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130731