Autos a Rlayers
Autos a Rlayers
• Why Autosar?
• What is Autosar?
• Autosar Layers
2
Why Autosar?
3
Why Autosar?
• One of the biggest problems faced by the
Automotive Companies was that the software
must often be rewritten from scratch
when hardware is changed.
4
Why Autosar?
• Reusability of functions: across vehicle networks and across OEM boundaries. One of
the biggest challenges faced by the OEM was when an OEM wanted to add a function to
an existing ECU it required a lot of effort. With the introduction of AUTOSAR this large effort
when reusing functions has been reduced. Partitioning and relocation of functions has also
been made possible with the introduction of AUTOSAR.
5
What is Autosar?
Automotive open system architecture
6
Autosar Layers
7
Autosar Layers
8
Application SW
9
Run Time Environment
Provides communication services to the application
software (AUTOSAR Software Components and/or
AUTOSAR Sensor/Actuator components).
Task
Make AUTOSAR Software Components independent from
the mapping to a specific ECU.
Properties
Implementation: ECU and application specific (generated
individually for each ECU)
Upper Interface: completely ECU independent
10
Run Time Environment
Abstracts BSW from application
Allows parallel SW development
Completely auto-generated for specific ECU
VFB realized through implementation of RTE
Provides services to SW-Cs & to BSW to access the
data/ services
Provides data integrity & consistency mechanisms
Runnables are scheduled by OS
RTE events to synchronize the application needs
Communication with in Runnables
11
Basic SW
12
Services Layer
Services Layer offers:
Operating system functionality
Vehicle network communication and management services
Memory services (NVRAM management)
Diagnostic Services (including UDS communication, error memory and fault
treatment)
ECU state management, mode management
Task
Provide basic services for applications, RTE and basic software
modules.
Properties
Implementation: mostly μC and ECU hardware independent
Upper Interface: μC and ECU hardware independent
13
ECU Abstraction
The ECU Abstraction Layer interfaces the drivers of the
Microcontroller Abstraction Layer. It also contains drivers
for external devices.
It offers an API for access to peripherals and devices
regardless of their location (μC internal/external) and their
connection to the μC (port pins, type of interface)
Task
Make higher software layers independent of ECU hardware
layout.
Properties
Implementation: μC independent, ECU hardware
dependent
Upper Interface: μC and ECU hardware independent
14
ECU Abstraction
I/O Hw Abstraction Com HW Abstraction Memory Hw Abstraction
15
Microcontroller Abstraction layer
The Microcontroller Abstraction Layer is the lowest
software layer of the Basic Software.
It contains internal drivers, which are software modules
with direct access to the μC and internal peripherals.
Task
Make higher software layers independent of μC.
Properties
Implementation: μC dependent
Upper Interface: standardized and μC independent.
16
Microcontroller Abstraction layer
17
Complex drivers
Implements non-standardized functionality within the basic software stack.
Task:
Fulfill the special functional and timing requirements for handling complex
sensors and actuators
Properties:
Implementation: highly μC, ECU and application dependent
Upper Interface to SW-Cs: specified and implemented according to
AUTOSAR (AUTOSAR interface)
Lower interface: restricted access to Standardized Interfaces
18
Autosar Interfaces
19
Autosar Interfaces
20
Q&A
Q: As per my understanding CDDs are developed for external interfaces for the peripherals as per specific
requirement. MCAL is for internal peripherals of the MCU provided by the chip manufacturers. Vivek
Sharma, Shanmuga Mayilsamy please comment.
A: Not exactly,, as beautifully explained by Vivek, if we need a fast access of datas from the bus, we can
utilize CDD option that is ready provided by the Autosar. But there are certain rules that we have to follow
while using CDD.
CDDs are not necessarily developed for external interfaces only. CDD may directly access a controller
resource. It can use the MCAL if needed resource is managed by MCAL, provided there are no specific
constraints like timing. It also helps to avoid conflicts like parallel accesses. All in, it depends on specific
requirements.
21
Q&A
Dem Clients are Non Rte.
There are service ports where user can access directly, Dem Get/Set fault status etc..
Os, Dem, DCM, Nvm has services ports which can be accessed directly.
22
Q&A
Q: ASIL-D compliance is a challenge yet with adaptive, as per my understanding?
A: Yes, you are correct, the current adoptive standard is not addressing, I think in future they will fix all the
limitation.
Q: If CDD needs inputs system states etc from BSW, it will get this data by traversing path
RTE ->Application->RTE->BSW->RTE->Application -> RTE -> CDD ?
A: No, It will be like: APPL SWC 1 => RTE => CDD SWC 2
23
Q&A
Q: What is the difference between Classic Autosar and Adaptive Autosar?
A:
24
Q&A
Q: How is Classic Autosar different from Adaptive Autosar in terms of Architecture?
A:
25
Q&A
Q: Why there is different naming used Ports and interfaces ,what is the difference ?
A: Ports are basically the channels through which the Application SW components will interact with each
other. Interfaces define what kind of information is being shared
26