Run-Time Environment (RTE) Heart of The AUTOSAR ECU Architecture
Run-Time Environment (RTE) Heart of The AUTOSAR ECU Architecture
Run-Time Environment (RTE) Heart of The AUTOSAR ECU Architecture
28.04.2017
Trainer:
Mingkai Deng, Engineer
Topic
Introduction
Introduction of AUTOSAR
Introduction of VFB
Introduction of RTE
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/2
Topic
Introduction
Introduction of AUTOSAR
Introduction of VFB
Introduction of RTE
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/3
Introduction
What is AUTOSAR?
AUTOSAR Vision
AUTOSAR aims to improve complexity management of integrated E/E architectures through increased reuse
and exchangeability of SW modules between OEMs and suppliers.
Introduction
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/ 14
ARXML file
.arxml files are a type of files used across autosar , to configure the autosar
software. ARXML stands for autosar XML, which is nothing but a schema with
certain parameters.
XML
ARXML AUTOSAR
Language
C:\Users\dengm\
Documents\course\turnlight
Topic
Introduction
Introduction of AUTOSAR
Introduction of VFB
Introduction of RTE
arxml file
Data Type
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
Communication
Sender-Receive
Client-Server
AUTOSAR&MATLAB
Example of an turn light control
/ 16
Data Type
Example
Map to
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/ 19
Communication
Interface/Port/DataElement
Port:
• The ports of a component are the interaction points between
components.
• A port of a component is either a “PPort” or an “RPort”
Interface:
• An interface is attached to a port and describes the data or operations
that are provided or required by a software component via that port.
DataElement:
• Data elements are declared within the context of a Sender-Receiver
Interface.
• One Interface can have one or several DataElement.
• Data elements are information units that are exchanged between
provide ports and require ports via a Sender-Receiver Interface. They
represent the data flow.
Communication
Interface/Port/DataElement
PPort RPort
SWC_A SWC_B
DataElement
RTE Interface
Communication
Sender-Receiver
Sender-Receiver
Function Format:
Std_ReturnType Rte_Receive_<p>_<d> (OUT <DataType> *data)
Std_ReturnType Rte_Send_<p>_<d> (IN <DataType> data)
Communication
Sender-Receiver
Function Format:
Std_ReturnType Rte_Read_<p>_<d> (OUT <DataType> *data)
Std_ReturnType Rte_Write_<p>_<d> (IN <DataType> data)
Client-Server
Client-Server
Example
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/ 27
AUTOSAR Software-components
Content
Application software component
RPort PPort
SWC
Runnable
C:\Users\dengm\
Documents\course\turnlight
AUTOSAR Software-components
Sensor Actuator
RPort PPort
SWC
Runnable RPort PPort
RPort PPort
Sensor Actuator
AUTOSAR Software-components
Internal Behaviour
Internal Behavior
Runnable Entities
A Runnable Entity is a part of an Atomic Software Component which can be
executed and scheduled independently from the other Runnable Entities of this
Atomic Software-Component.
ARXML file
C file
AUTOSAR Software-components
Internal Behavior
RTE Events
An RTE event is part of an SW-C internal behavior. It defines situations and
conditions for starting or continuing the execution of a specific runnable entity.
Mainly include:
Internal Behavior
Data access definition
• The data access definition defines a Runnable Entities read or write access
to communication data.
AUTOSAR Software-components
Internal Behavior
Interrunnable variable
• An interrunnable variable is a variable data prototype that requires an
application data type which can have a compu method and a data constraint
element
Internal Behavior
Data access definition and Interrunnable variable
read
write
AUTOSAR Software-components
Implementation
In the Implementation description an actual implementation of an AUTOSAR
software component is described including the memory consumption.
the information from the Implementation part are only required for the RTE
Generation Phase.
AUTOSAR Software-components
Implementation
Example
Topic
Introduction
Introduction of AUTOSAR
Introduction of VFB
Introduction of RTE
arxml file
Data Type
Communication
Interface/Port/DataElement
Sender-Receive
Client-Server
AUTOSAR Software-components
Application software component
Sensor-actuator software component
Internal Behaviour
Implementation
AUTOSAR&MATLAB
Example of an turn light control
/ 41
AUTOSAR&MATLAB
AUTOSAR&MATLAB
AUTOSAR&MATLAB
AUTOSAR&MATLAB