AUTOSARS
AUTOSARS
Methodology
illustrated using Signal/Service Translation
► AUTOSAR Methodology
► Classic Platform Communication Matrix
► Adaptive Platform Service Definition
► AUTOSAR Signal/Service Translation
► Summary
OEM e
Exchangeability
between vehicle
platforms
Platform f.1
Platform f.2
Platform f.n
Platform e.1
Platform e.2
Platform e.n
Methodology
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
VFB
Methodology
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
System Design
available ECUs/Machines.
ECU System Constraint
Resources
System Design Description
Methodology
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
System Extract for Classic Platform ECUs
System
Extract
ECU I
AUTOSAR AUTOSAR
SW-C 1 SW-C 2
RTE
Classic Basic
Software
System
Description
Flex Ray
Methodology
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
System Extract for Classic Platform ECUs
System System
Extract Extract
ECU I ECU II
System
Gateway Description
Flex Ray Ethernet
Application Layer
Runtime Environment
System Services Memory Crypto Off-board Communication I/O Hardware Complex
Services Services Communication Services Abstraction Drivers
Services
Microcontroller
Communication
Signals
Manager
FlexRay TTCAN
Secure Diagnostic Eth State CAN State LIN State Generic
Diagnostic State State
SOME/IP Onboard IPDU AUTOSAR Communi- Manager Manager Manager NM interface
Log and Manager Manager
TP Communi- Multiplexer COM cation
Trace
cation Manager
NM
Coordinator
I-PDU I-PDU I-PDU I-PDU I-PDU I-PDU
XCP
PDU Router
TCP/IP Stack
I-PDU1 I-PDU1 NM
I-PDU I-PDU1 I-PDU I-PDU NM
Module
NM
See description Module
NM
CAN Tp Module
on next slide Module
FlexRay Tp J1939Tp
Communication
HW
LIN Interface
Eth Interface FlexRay Interface CAN Interface2 Abstraction
(incl. LIN TP)
Communication Drivers
Eth Driver FlexRay Driver CAN Driver2 LIN Low Level Driver
Methodology
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
Machine Design
System
Gateway Description
Flex Ray Ethernet
Application
Application
POSIX Platform Foundation Functional Clusters (FCs) Platform Service FCs Standardized Vehicle Service FCs
PSE51 / App/Interface FCs
C++ STL
Operating
System Communication Execution Management Diagnostic Intrusion Detection Update and Config Sensor Interfaces Vehicle Update and
Interface Management ara::exec Management System Manager Management ara:adi::sensoritf service Config Management
ara::com ara::diag ara::idsm ara::ucm service ara::vucm service
Firewall Core
…
ara::fw ara::core
Base Software
POSIX OS
► AUTOSAR Methodology
► Classic Platform Communication Matrix
► Adaptive Platform Service Definition
► AUTOSAR Signal/Service Translation
► Summary
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
<<SenderReceiverInterface>> <<ClientServerInterface>>
SW-C 2
AUTOSAR
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
SW-C n
AUTOSAR
...
SW-C 1
AUTOSAR
SW-C 3
AUTOSAR
Signal 1 Signal 3
Signal 2 Signal 4
Channel
Frame1
Pdu1
Sig1
Frame2
Pdu2
Sig21
Sig22
Sig23
Frame3
Pdu3
Sig3
Channel
Frame1
Pdu1
Sig1
Channel
Frame1
Pdu1
Sig1
Channel ECU1
Frame1 s
Pdu1 s
Sig1 s
Frame2 r
Pdu2 r
Sig21 r
Sig22
Sig23
Frame3
Pdu3
Sig3
PDU1 PDU2
Frame
Hierarchical Definition:
• Frame contains PDUs
• PDU contains Signals
PDU1 PDU2
0 Frame 32
Relative Position
• Start Position of PDU in Frame
0 12 18 24 0 14 26
PDU1 PDU2
0 Frame 32
Relative Position
• Start Position of PDU in Frame
• Start Position of Signal in PDU
PDU1 PDU2
32 Frame
56
Size / Length defined for each
• Frame
• PDU
• Signal
Signal
Endianness
Position of
Signal in PDU
Signal
Size / Length
Frame
Size / Length
PDU
Endianness
Position of
PDU in Frame
PDU
Size / Length
PDU2 PDU3
boolean: 1 bit
uint3, uint5
sint6, sint30
float
PDU2 PDU3
PDU2 PDU3
► AUTOSAR Methodology
► Classic Platform Communication Matrix
► Adaptive Platform Service Definition
► AUTOSAR Signal/Service Translation
► Summary
• Events
• Operations / Methods <<ServiceInterface>>
PowerWindowInterface
• Call and Response
Events:
• Fire and Forget enum doorStatus
<<ServiceInterface>>
PowerWindowInterface
Events:
enum doorStatus
Operations / Methods:
power( IN percentage p, OUT status)
Fields:
percentage windowPosition
getWindowPosition()
setWindowPosition( IN percentage p )
<<ServiceInterface>>
PowerWindowInterface
Event:
enum doorStatus
Field:
percentage windowPosition
PDU2 PDU3
► AUTOSAR Methodology
► Classic Platform Communication Matrix
► Adaptive Platform Service Definition
► AUTOSAR Signal/Service Translation
► Summary
Ethernet CAN
Signal / Service
Translation
SOME/IP Serialized Bytes PDU a c d b
SOME/IP
Header a b c d
Ethernet CAN
Gateway ECU
(Classic AUTOSAR)
Signal/Service Translation
in Gateway ECU may not be
desired due to “End To End”
requirements:
• Safety
• Security
Adaptive Machine
Adaptive Application
CAN CAN
Service oriented communication
Signal /
Service
Translation
Ethernet
Communication
Signal / Service Matrix
+
Translation signal-service
PDU Mapping
Communication Management
CAN
Gateway ECU
Ethernet
(Classic AUTOSAR)
PDU PDU
event x1 {
Adaptive a : uint8
Application b : uint8
c : boolean
d : sint8
}
a d c b
► AUTOSAR Methodology
► Classic Platform Communication Matrix
► Adaptive Platform Service Definition
► AUTOSAR Signal/Service Translation
► Summary
PDU2 PDU3
Communication
Signal / Service Matrix
+
Translation signal-service
PDU Mapping
Communication Management
CAN
Gateway ECU
Ethernet
(Classic AUTOSAR)
PDU PDU
► AUTOSAR_CP_TPS_SystemTemplate.pdf
► AUTOSAR_AP_TPS_ManifestSpecification.pdf
► AUTOSAR_CP_EXP_VFB.pdf
► AUTOSAR_CP_TPS_SoftwareComponentTemplate.pdf
► AUTOSAR_CP_EXP_LayeredSoftwareArchitecture.pdf
► AUTOSAR_FO_PRS_SOMEIPProtocol.pdf