Upload
dangphuc
View
227
Download
2
Embed Size (px)
Citation preview
ARTIST2 WSSalzmann24.03.2006Page 3
© BMW Car IT GmbH
Standardization
16 Thursday, 24 February 2005
AUTOSAR – ECU Software Architecture
AUTOSAR RTE:by specifying interfaces and their communication mechanisms, the applications are decoupled from the underlying HW and Basic SW, enabling the realization of Standard Library Functions.
Standardized, openly disclosed interfacesHW independent SW layerTransferability of functionsRedundancy activation
Automotive Open System Architecture (AUTOSAR):
source: www.autosar.org
ARTIST2 WSSalzmann24.03.2006Page 4
© BMW Car IT GmbH
AUTOSAR - First Experiences.Model based development under AUTOSAR.
Virtual Function Bus
Software Composition
AUTOSARSW-C
4
AUTOSARSW-C
3
AUTOSARSW-C
1
AUTOSARSW-C
2
AUTOSARSW-C
1
AUTOSARSW-C
2
AUTOSARSW-C
3
AUTOSARSW-C
4
AUTOSARSW-C
1
AUTOSARSW-C
2
AUTOSARSW-C
3
AUTOSARSW-C
4
RTE RTE RTE RTERTE
Basis SW Basis SW Basis SW Basis SW
ECU A ECU B ECU A ECU C ECU D
CAN Bus Flexray Bus
Partitioning A Partitioning B
IDE,System Generator
IDE,System Generator
SystemDeployment<<XML>>
SystemDeployment A
<<XML>>
ECUDescription<<XML>>
AUTOSARSW-C
1
AUTOSARSW-C
1AUTOSAR
SW-C 1
AUTOSARSW-C
1
Business logic of the SW Components
(binary code).
This takes place at Application level –not the basic software.
ARTIST2 WSSalzmann24.03.2006Page 5
© BMW Car IT GmbH
AUTOSAR - First Experiences.A subset of the Virtual Function Bus.
C/S
Communication
...
Client Server
Mode
AsyncSync
Timeout
S/R
Sender
Success
SendMode
CyclicN TimesOnce OnRequest
InformationType
DataEvent
maximumAge
Receiver
Buffering
Init Value
Queue
Last isbest LengthReceive
Mode
DRAWWP
TimeoutValue
ARE
Invalidate Filter
Encryption Integrity Check Reliability
Filter
ConnectorParadigm
ReceiveMode
DRAWWP
TimeoutValue
ARE
ARTIST2 WSSalzmann24.03.2006Page 7
© BMW Car IT GmbH
Basis SWBasis SW
MMI: WaferBoard QNX /JAVA
MirrorGUI
MPC 565 OSEK SC /CMPC 565 OSEK SC /C
EC E60
Display
Restbus Simulation
CAN
RTE (JAVA/QNX) RTE (C/SC)RTE (C/SC)
Außenspiegel links
Außenspiegel rechts
LIN
MirrorPark
MirrorControl
Basis SW
AUTOSAR - First Experiences.„Proof of Concept“ (June 2004).
Basic SWBasic SW
MMI: WaferBoard QNX /JAVA
MirrorGUI
MPC 565 OSEK SC /C
EC E60
Display
Simulation
CAN
RTE (JAVA/QNX) RTE (C/SC)
Rear mirror left
Rear mirror right
LIN
MirrorPark
MirrorControl
ARTIST2 WSSalzmann24.03.2006Page 8
© BMW Car IT GmbH
AUTOSAR - First Experiences.AUTOSAR Architecture.
AUTOSAR Runtime Environment (RTE)
ApplicationSoftware
Component..............
Basic SoftwareStandardized
Interface
AUTOSARInterface
MicrocontrollerAbstraction
AUTOSARInterface
ApplicationSoftware
Component
StandardizedAUTOSARInterface
Services
StandardizedInterface
ECUAbstraction
AUTOSARInterface
StandardizedInterface
ComplexDeviceDrivers
AUTOSARInterface
ActuatorSoftware
Component
AUTOSARInterface
SensorSoftware
Component
AUTOSARInterface
StandardizedInterface
Communication
StandardizedInterface
StandardizedInterface
OperatingSystem
StandardizedInteface
AUTOSARSoftware
Component
Interface
ECUFirmware
StandardSoftware
API 2VFB & RTErelevant
API 1RTErelevant
API 0
API 3 PrivateInterfaces insideBasic Software
possible ECU-Hardware
AUTOSAR Runtime Environment (RTE)
ApplicationSoftware
Component..............
Basic SoftwareStandardized
Interface
AUTOSARInterface
MicrocontrollerAbstraction
AUTOSARInterface
ApplicationSoftware
Component
StandardizedAUTOSARInterface
Services
StandardizedInterface
ECUAbstraction
AUTOSARInterface
StandardizedInterface
ComplexDeviceDrivers
AUTOSARInterface
ActuatorSoftware
Component
AUTOSARInterface
SensorSoftware
Component
AUTOSARInterface
StandardizedInterface
Communication
StandardizedInterface
StandardizedInterface
OperatingSystem
StandardizedInteface
AUTOSARSoftware
Component
Interface
ECUFirmware
StandardSoftware
API 2VFB & RTErelevant
API 1RTErelevant
API 0
API 3 PrivateInterfaces insideBasic Software
possible ECU-Hardware
AUTSW Kommit Sch
AUTOSABasis S
AUTOSA
source: www.autosar.org
ARTIST2 WSSalzmann24.03.2006Page 9
© BMW Car IT GmbH
AUTOSAR - First Experiences.Architecture of the BMW SC/RTE.
Runtime Environment (RTE)
..............AUTOSARInterface
ApplicationSoftware
Component
ComplexDeviceDrivers
ActuatorSoftware
Component
AUTOSARInterface
SensorSoftware
Component
AUTOSARInterface
Interface
OperatingSystem
StandardizedInteface
AUTOSARSoftware
Component
Interface
StandardSoftware
ECU-Hardware
..............
CAN CommunicationLayer
AUTOSARInterface
ApplicationSoftware
Component
ErrorManager
InterfacePropr.
Interface
„Classic“
SC
Sofw
atware
FunctionActuatorSoftware
Component
AUTOSARInterface
SensorSoftware
Component
AUTOSARInterface
Diagnose(KWP 2000)
OSEK OS
ProprietäresInteface
AUTOSARSoftware
Component
AUTOSARInterface
BasicSoftware
ECU-Hardware
OSEKNM
Propr.Interface
BMW Message Manager
Propr.Interface
Propr.Interface
Propr.Interface
Propr.Inteface
AUTOSARconformAPI
Inteface
proprietaryAPI
Propr.Interface
ProprietäresInteface
Propr.Interface
Propr.Interface
Propr.Interface
Propr.Interface
Propr.Interface
ARTIST2 WSSalzmann24.03.2006Page 11
© BMW Car IT GmbH
AUTOSAR – Migration Strategy.A stable subset of the VFB for migration.
(Attributed not on a mature specification level are not listed)
C/S
Communication
...
Client Server
Mode
AsyncSync
Timeout
S/R
Sender
Success
SendMode
CyclicN TimesOnce OnRequest
InformationType
DataEvent
maximumAge
Receiver
Buffering
Init Value
Queue
Last isbest LengthReceive
Mode
DRAWWP
TimeoutValue
ARE
Unimplemented Attributes
Implemented Attributes
Invalidate Filter
Encryption Integrity Check Reliability
Filter
ConnectorParadigm
ReceiveMode
DRAWWP
TimeoutValue
ARE
ARTIST2 WSSalzmann24.03.2006Page 12
© BMW Car IT GmbH
AUTOSAR – Migration Strategy. Migration at SW-component level.
SC 6.2 SC 6.7 SC 7.0(full AUTOSAR SC)
RTE based SW Components are migratable with an calculable amount of adaption.
Change of Basic SW Change of Basic SW
ECU-Hardware
Single sided AUTOSAR Runtime Environment (RTE)
ActuatorSoftware
Component
AUTOSARInterface
ApplicationSoftware
Component
SensorSoftware
Component
ApplicationSoftware
Component
..............
AUTOSARSoftwareAUTOSAR
InterfaceAUTOSARInterface
AUTOSARInterface
Complex
Drivers
Microcontroller
Drivers
Memory Drivers
I/O Drivers
I/O Hardware Abstractio
nMemory
Hardware Abstraction
Memory Services
System Services
Onboard Device Abstraction
Communication Drivers
Communication Hardware
Abstraction
Communication
ServicesOEM OEM OEM
OEM
ECU-Hardware
Single sided AUTOSAR Runtime Environment (RTE)
ActuatorSoftware
Component
AUTOSARInterface
ApplicationSoftware
Component
SensorSoftware
Component
ApplicationSoftware
Component
..............
AUTOSARSoftwareAUTOSAR
InterfaceAUTOSARInterface
AUTOSARInterface
Complex
Drivers
Microcontroller
Drivers
Memory Drivers
I/O Drivers
I/O Hardware Abstractio
nMemory
Hardware Abstraction
Memory Services
System Services
Onboard Device Abstraction
Communication Drivers
Communication Hardware
Abstraction
Communication
ServicesOEM
OEM
ECU-Hardware
AUTOSAR Runtime Environment (RTE)
ActuatorSoftware
Component
AUTOSARInterface
ApplicationSoftware
Component
SensorSoftware
Component
ApplicationSoftware
Component
..............
AUTOSARSoftwareAUTOSAR
InterfaceAUTOSARInterface
AUTOSARInterface
Complex
Drivers
Microcontroller
Drivers
Memory Drivers
I/O Drivers
I/O Hardware Abstractio
nMemory
Hardware Abstraction
Memory Services
System Services
Onboard Device Abstraction
Communication Drivers
Communication Hardware
Abstraction
Communication
Services
An application, coded against the RTE interface, can be migrated up to the fully compliant AUTOSAR standard core.
„Stepwise Migration of Software Level
ARTIST2 WSSalzmann24.03.2006Page 13
© BMW Car IT GmbH
AUTOSAR – Migration Strategy. RTE against an existing COM Matrix.
AUTOSAR Vision:From the partitioning to the COM matrix.
Status Quo:From the COM Matrix to the ECU interface
Ergo: „AUTOSAR brings up a new reuirement for migration: generating an RTE against an existing COM matrix “
COM-matrix
Mapping ofRTE Signals to bus
Partitioning Bus-Interfaceof ECU
COM-matrix
Bus-Interfaceof ECU
ARTIST2 WSSalzmann24.03.2006Page 14
© BMW Car IT GmbH
AUTOSAR – Migration Strategy. Migration into an existing board network.
BASIC SW
AUTOSAR SW Component
ADU (Autosar Data Unit)
Data Element
CAN Bus
ECU
Bus Mapping• Integration of an RTE
based ECU into an existing system.
• No ADUs > 8 Byte
CAN MessagesCAN Signals
ARTIST2 WSSalzmann24.03.2006Page 15
© BMW Car IT GmbH
AUTOSAR – Migration Strategy. Migration into a board net.
„stepwise migration of ECU level
The RTE based ECU behaves towards the bus exactly like a „classical“ ECU
ARTIST2 WSSalzmann24.03.2006Page 16
© BMW Car IT GmbH
AUTOSAR – Migration Strategy. ORPHEUS.
ORPHEUS = modeling tools + code generator
Enabler for migrationIntegrated in BMW SC6, Import DBC/FIBEX
Graphical Modeling of- AUTOSAR Application Components- Mapping to CAN and Flexray Bus- Scheduling- Partitioning of Software
Optimized Codegeneration of RTE (incl. autom. Unit Tests)
Open (Adation to ASCET, AUTOSAR Templates)
AUTOSAR Component Types
AUTOSAR Compositions Deployment
Scheduling
Bus Mapping
RTE.c OIL Make AUTOSARTemplate.xml
CodeGenerator
AUTOSAR Model (with dynamic constraint checks)
.dbc / FIBEX