2011-mbt-model-based development and testing of automotive ... · pdf filemodel-based...
TRANSCRIPT
![Page 1: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/1.jpg)
Model-Based Development and Testing of Automotive Software – Some Experiences and Challenges
Matthias Weber – Carmeq GmbH
MBT, Berlin 20.10.2011
![Page 2: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/2.jpg)
2
Agenda
Stochastic Robustness Testing2
Model-Based Development at Carmeq1
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
![Page 3: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/3.jpg)
Motivation
Motivation
� Developing software-based vehicle functions of increasing complexity
� Cost and quality requirements necessitate efficient development methods
� Model-based development methods (since the 90s) using
MATLAB/Simulink/Stateflow and code generation
Goal
� Seamless model-based function and software development
� Avoiding ruptures: evolutionary development of models from concept phase to
final code generation
3
![Page 4: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/4.jpg)
Use of Models in the Development Process
BehaviourModel
ImplementationModel
Concept Model
Model
Model
Model
Model-basedSpecification
Model-basedConcept Analysis
Model-basedSoftware Development
System-/
Function Design
Implemen
tation
Code Generation
System-/
Functions-
Requirements
Plant and Test model
4
![Page 5: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/5.jpg)
Relation between Model and Requirements –Ideal Case of Function-Oriented Development
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
Anforderungen Modell
Funktionsbereich
(z.B. Licht und Beleuchtung)
Funktionsbereich
(z.B. Licht und Beleuchtung)
1. Funktionsfamilie (z.B. Blinken)
…
1. Funktionsfamilie (z.B. Blinken)
…
2. Funktionsfamilie(z.B. FahrBremsStandlicht)
2. Funktionsfamilie(z.B. FahrBremsStandlicht)
1.1 Basisfunktion (z.B. Richtungsblk)Eingaben/Ausgaben/Anforderungen
1.1 Basisfunktion (z.B. Richtungsblk)Eingaben/Ausgaben/Anforderungen
1.2 Basisfunktion (z.B. Warnblinken)Eingaben/Ausgaben/Anforderungen
1.2 Basisfunktion (z.B. Warnblinken)
Eingaben/Ausgaben/Anforderungen
1.1 Basisfunktion…
1.1 Basisfunktion
…
<<umgesetzt durch>><<umgesetzt durch>>
5
![Page 6: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/6.jpg)
Properties of Functional Model vs. Implementation Model
Functional Model:
- Focus on functional system requirements
- Not all aspects modeled (signal preprocessing, diagnosis,...)
- Structuring according to requirements structure
- Hardware independent
- Data not scaled
Implementation Model:
- Functional and non-functional SW-Requirements
- Usage of resources (time, storage)
- Complete functionality incl. of error handling,signal pre-processing etc. modelled
- Interface to basic software
- Typing and scaling of Data
- largely hardware-independent
- Criteria: Maintainability, Extensibility, Testability,„Separation of Concerns“
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
SW-Modul
SW-Modul
6
![Page 7: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/7.jpg)
Transition from a Functional Model to an Implementation Model
Problematic Changes:
- Change of model architecture for satisfaction of non-
functional requirements
- Structural changes to satisfy resource requirements
- Functional extensions, concerning the inner Model
structure such as z.B. error treatment, initialisation.
Evolutionary (unproblematic) Changes:
- Functional extensions such as z.B. signal pre-processing,
plausibility checking etc.
- Interface to basic software of the ECU
- Scaling of Data
- Local optimisations to lower resource consumption
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
Basis-Modul1
Basis-Modul2
LichtUndBeleuchtung
Blinken
FahrBremsStandlicht
SW-Modul
SW-Modul
7
![Page 8: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/8.jpg)
Example: Extensions for Error Handling andDiagnosis
Functional Model
- Focus on core algorithm
- Conscious decision not to
model diagnosis and error
handling
Temperaturregler
8
![Page 9: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/9.jpg)
Implementation Model
- Significant adaptations
to the core algorithm
Example: Extensions for Error Handling andDiagnosis
Extension: Shutdown
Extension: Sensor Watchdog
9
![Page 10: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/10.jpg)
Lessons Learned
Early validation of model architecture wrt. non-functional requirements
- Early review of functional models by software experts
- Guidelines for model structuration, e.g. using domain specific pattterns (e.g. for
error handling)
Systematic relation between functional model and implementation model
- Functional model not necessarily structured according to requirements
structure, use of tool-supported requirements linking, adapted requirements
structuring
Many further aspects
- Separation of functionalities according to available computation slots
- Exclusion of modeling constructs (Switch blocks etc.)
- …
10
![Page 11: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/11.jpg)
11
Agenda
Stochastic Robustness Testing2
Model-Based Development at Carmeq1
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
![Page 12: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/12.jpg)
12
Motivation and Goals
Growing complexity of ECU functions
� Rear blind
� Central locking
� Braking lights
� Windshield wiper
� …
Properties of classical function testing
� Requirements-based test cases
� Sequential process: function after function
� Focus on positive testing
� Pattern: systematic stimulation – waiting period -
measurement
Background
![Page 13: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/13.jpg)
13
Motivation and Goals
Sporadic misfunctions not detected by a classicalfunctions test , e.g.
� Brake light goes off, due to rear blind being activated
� Brake lights blink asynchronously during wiping and thusacts as a lane changing signal …
These misfunctions often result from unintendeddependencies between functions
� Competing access to limited ressources, e.g.� Computation time
� Common SW Services
� Interaction of various individual functions
Lack of predictability which situations and whichinputs lead to sporadic misfunctions
Motivation
![Page 14: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/14.jpg)
14
Motivation and Goals
Improvement of Robustness of ECUs based on a new test approach
� Detection of sporadic failures
� Stimulation of ECU with „unusual“ input data
Robustness:
„Property to work - in unusual situations - in a defined manner and to produce meaningfulreactions “ (Liggesmeyer)
Extension to classical function test
Goals
![Page 15: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/15.jpg)
15
Motivation and Goals
Input complexity
Evaluation of test runs
� ignition
� light control
� directional blinking
� warning blinking
� access control
� wiper
� continuous data
� measurement imprecisions
- value deviation
- time delays
� missing expected values
Technical Challenges
n200 signal combinations
![Page 16: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/16.jpg)
16
� Stochastic test data generation
� No individual requirements-based test
cases
� Parallel, stochastic activation of input
signals
� Multiple test scenarios, similar to
long-term vehicle tests, but better
control and analysis means
� Rule-based evaluation
� General system properties
� Continuous checking of criteria
New test approachStochastic rule-based robustness test (SRT)
• all signal combinations allowed • check of selected criteria
MBT 2011
![Page 17: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/17.jpg)
17
Stochastic rule-based robustness test
Space of all possible test inputs
Control data for:
− rear blind control
− central locking
− brake light control
− wiper
− …
including timing and interaction
Choose typical use cases for each application
− rear blind control: move up/down
− central locking: unlock/lock
− brake light control: normal/emergency braking
− wiper: fast/medium/slow
− …
Parallel, stochastic activation of the different functions
Test data generation
![Page 18: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/18.jpg)
18
Stochastic rule-based robustness test
Light switch positions define „States“
Lichtdrehschalter Aus Parklicht Abblendlicht Fernlicht
Aus 1 0 0 0
Parklicht 0 1 0 0
Abblendlicht 0 0 1 0
Fernlicht 0 0 0 1
Lichtdrehschalter Aus Parklicht Abblendlicht Fernlicht
Aus 0,2 0,2 0,1 0,2
Parklicht 0,6 0,3 0,3 0,3
Abblendlicht 0,1 0,4 0,5 0,4
Fernlicht 0,1 0,1 0,1 0,1
Transition probabilities
Test data generation: example light switch
![Page 19: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/19.jpg)
19
Stochastic rule-based robustness test
Aus An
Error
p=0,3
p=0,
1
p=0,
6
p=0,
3 Aus An
Error
p=0,3
p=0,
1
p=0,
6
p=0,
3
Aus An
Error
p=0,3
p=0,
1
p=0,
6
p=0,
3
�Single automata for each function
�Parallel test data generation
�Pseudo random numbers
=> reproducable
Parallel test execution and evaluation
Test run evaluation
� Specification of assertions (using simple rules)
� All assertions are constantly checked during test runs
� Deviations/problems are detected and stored
![Page 20: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/20.jpg)
20
Stochastic rule-based robustness test
� Left and right braking light are not synchronous???
� Backlight blinks very shortly if the gear switch is used???
� The right back light is blinking too long, if the rear blind is moving???
Problem:
Due to different communication channels of signals, there can be delays
Example: signals, which are cyclically send over the network are eventually received
later due to bus load.
Left braking light
Right braking light
Individual functions are usually well-tested, but not the cooperation of functions
Problems are often deviations to general intuitive behavior
Rule-based evaluation
![Page 21: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/21.jpg)
21
Stochastic rule-based robustness test
Rule to be checked
Left and right braking lights are simultaneously activated, delays
of max. 50 msec are tolerated.
SYNCHRON(Bremslicht_Links, Bremslicht_Rechts, 50ms)
Pattern SYNCHRON
∆∆∆∆t HOLDS_AT_MOST(Blinker_Vorne_Links, 500ms, 50ms)
Pattern HOLDS_AT_MOST
Rule to be checked
Blinker may blink for at most 500 +/- 50 msec .
Example of evaluation rule
![Page 22: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/22.jpg)
22
Implementation
Intelligent, random generated
test data
→ Parallel Markov Automata
→ Assertion checking
Zusicherung Formulierung
Blinker synchron SYNCH(Blinker_Vo_Li, Blinker_Hi_Li, 50ms))
Blinker leuchten maximal 500 ms HOLDS_AT_MOST(Blinker_Vo_Li,500)
Fernlicht an bei Zündung IMPLIES(Kl15==1 && FernlichSchalter, FernLicht, 50)
Quittierungsblinken CAUSALLY_IMPLIES((K15==0 && TürAuf), Blinker_Vo_Li, 40))
Aus An
Error
p=0,3
p=0,1
p=0,6p=0,3
Test environment
![Page 23: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/23.jpg)
23
Implementation
C#C#
Test data generationTest data generation AssertionsAssertions
BCMA/D
phys.
Adaption
Prüfstandinvers(a,b)
ident(c,d)
r
Test evaluationTest evaluation
Automatic Model Generation Automatic Model Generation
IntegrationIntegration
phys.
Adaption
D/A
CANoe CANoe
Technical Realisation of Test Environment
![Page 24: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/24.jpg)
24
Agenda
Stochastic Robustness Testing2
Model-Based Development at Carmeq1
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
![Page 25: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/25.jpg)
25
What is AUTOSAR
“AUTOSAR (AUTomotive Open System ARchitecture) is an open
and standardized automotive software architecture, jointly
developed by automobile manufacturers, suppliers and tool
developers.“
www.autosar.org
![Page 26: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/26.jpg)
26
Application-Interfaces
� „Function-based“ software
development
� Several abstraction layers,
e.g. „Virtual Functional Bus“
� Use of modern SW-
engineering-methods (Meta-
Modelling, UML, XML ...)
SW-DevelopmentMethodology
ECU-SW-Architecture
� Common base architecture for
Control-, Sensor, Actuator-
ECUs
� Layeres SW-Architectur:
µC – BSW – RTE – Application
� Aims to support all relevant
automotive µCs and ECU-
interfaces
� Basic Software consists of
about ca. 50 Modules
� Body and Comfort
� Powertrain
� Chassis Control
� Occupants and Pedestrians Safety
� Multimedia, Telematics and
Human-Machine-Interfaces…
Scope
![Page 27: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/27.jpg)
27
Use of AUTOSAR at VW
Communication Services
Microcontroller
AUTOSAR Runtime Environment (RTE)
Microcontroller Drivers Memory Drivers I/O Drivers
I/O Hardware Abstraction
Memory Hardware Abstraction
Memory ServicesSystem Services
Onboard Device Abstraction
Communication Drivers
Communication Hardware Abstraction
Application Layer
PO
RT
Dri
ver
Watc
hd
og
Dri
ver
MC
U
Dri
ver
GP
T
Dri
ve
r
Memory Abstraction Interface
I/O Hardware
Abstraction
WatchdogInterface
COM
IPDUNVRAM Manager
BS
W S
ch
ed
ule
r
Watc
hd
og
M
an
ag
er
De
velo
pm
en
t E
rro
r
Tra
cer
Co
mm
un
ica
tio
n
Ma
na
ge
r
AU
TO
SA
R O
S
EC
U S
tate
M
an
ag
er
AD
C D
rive
r
PW
M D
rive
r
ICU
Dri
ver
DIO
Dri
ver
LIN
Dri
ver
SP
I H
an
dle
r D
rive
r
CA
N
Dri
ver
CAN
TRCV
CAN
TP
CAN
NM
LIN
SM
CAN
SM
Generic NM
Interf.
EA Fee
int.
EE
PR
OM
D
rive
r
int.
Fla
sh
D
rive
r
RA
M T
es
t
PDURouter
LIN
Interface
LIN
Interface
Can
Interface
Can
Interface
1
2Boo
tlo
ad
er/
Fla
she
r
CDD
BAP
KS
DEH
1
2
SDS
UDS
4
Fu
ncti
on
In
hib
itio
n
Ma
na
ge
r
DCM
Dia
gn
os
tic
Ev
en
t M
an
ag
er
3
3
4
Fle
xR
ay
Dri
ver
FlexRayTRCV
FlexRay
TP
FlexRay
SM
FlexRay
NM
FlexRay
Interface
FlexRay
Interface
2
E2ELib
CryptoLib
ECUs already using AUTOSAR:
� „Kombiinstrument“ vby JCI (MQB)
� „Lademanager“ (VW360/7)
Releases for MQB: AUTOSAR 3.1 Rev. 002 + Extensions
MBT 2011
![Page 28: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/28.jpg)
28
Function Design
� Definition of functional architecture on an abstract level
� Base Concept: „Virtual Functional Bus“ (VFB)
� Software-Components (SWCs)
� Communication (Ports + Data Elements)
Function Realisation
� Implementation of function using generated header-files basedon VFB-model
.XML
SWC-Description
Virtual Functional Bus
...AUTOSAR
SWC n
AUTOSAR
SWC 1
AUTOSAR
SWC 2
AUTOSAR
SWC 3
Phases of the AUTOSAR-MethodologyFunktion Level.
![Page 29: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/29.jpg)
29
(1) Integration of model-based software developmentwith AUTOSAR
� Current Situation: proprietary interfaces to ECU
� AUTOSAR offers standardised interfaces and base services
such as
� ECU management,
� Network management,
� Storage management,
� Diagnostic management
� Not all base services can be directly mapped to Simulink
� Development methodology of Simulink is dataflow-orientedrather than service-oriented, i.e. procedural communication(Client/Server) is difficult to realise.
� No out-of-the-box solutions for all base services available
� Possible Solution: Declarative specification of functions incl.
base services for automatic code-generation
SWC
Software Funktion
Kommunikation mit
Basissoftware
RTE
Basisdienst Basisdienst
![Page 30: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/30.jpg)
30
(2) Adapting Software Component Testing toAUTOSAR
Current Situation
� Testtools chains adapted for every ECU andsupplier
AUTOSAR
� Separation of software parts and standardisedinterfaces allow for common testing processand tool chain.
� Use of current tool chain for testingfunctional software
� Testing of generated communication withbase services (more early)
� Testing of complete SWC
� Testing of SWC in the complete system
� Testing can be performed more early
� Tool chain can be reused
![Page 31: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/31.jpg)
31
(3) Implications of SW-Development using AUTOSAR
Current Situation
� Currently monolithical functions are exchangedwith suppliers
Function Design
� Optimisation of partitioning of softwarecomponents
� standardised AUTOSAR interfacesallows for moving SWCs between tasksand ECUs
� Better testability due to lower complexityof individual components
Variability Management
� Partitioning of software components improvesvariability management :
� Finer-grain modeling of variants
� Less variants for individual components
� Better management of variants und theirdependencies
Capsules for vehicle and brand-specific funcitonality
Cross-manufacturer
functionality capsules
MBT 2011
![Page 32: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/32.jpg)
32
Agenda
Stochastic Robustness Testing2
Model-Based Development at Carmeq1
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
![Page 33: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/33.jpg)
Development Objects of an Electronic Platform
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. NReq. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. N
Req. 1
Req. 2
Req. 445
Req. NReq. 1
Req. 2
Req. 445
Req. N
>100k >100k >100k >100k testtesttesttest casescasescasescases
>100k >100k >100k >100k requirementsrequirementsrequirementsrequirementsobjectsobjectsobjectsobjects
Engine
Mgmnt.
System
ETAS
Brake
Actuator
Siemens
Torqu
e
Mode
ra-tor
ETAS
Brak
e
Cntrll
er
Siem
ens
Spe
ed
Mo
de-
rato
r
DC
Acce
le-
rator
Ped
al
ETA
S
Crash
Mitigat
or
VTEC
ACC
KTH
Brak
e
Ped
al
Siem
ens
Rad
ar
Sen
sor
KTH
Rain
Sens
or
DC
engine_speed
wheel_speed
vehicle_speedengine
_
torque
rain_intensity
accelerator_pedal_request
brake_torque
brak
e_
requ
est
target_
distanc
e
brake_pedal_re
quest
safet
y_
brak
e_
requ
est
acc
_
torq
ue_
requ
est
moder
ate_
torque
_
reques
t
throttle
_
angle
Environmen
tal
modelsDriv
er
Mod
el
KTH
Traff
ic
Mod
el
KTH
Rain
Mod
el
KTH
fuel
mas
s
igniti
on
Safety-
related
functio
ns
En
gin
e
Dy
na
mic
s
ET
AS
Vehicle
Dynamics
VTEC
alt.
KTH
Envir
on-
ment
al
Mod
els
acc_brake_request
>100k >100k >100k >100k functionfunctionfunctionfunction blocksblocksblocksblocks
HundredsHundredsHundredsHundreds ofofofof otherotherotherother artifactsartifactsartifactsartifacts
33
![Page 34: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/34.jpg)
Multi-Dimensional PL-Decomposition –Example
Requirements
Design
Source Code
Test Cases
Documentation
En
gin
e C
on
tro
l
Po
we
rtra
in
Bra
kin
gS
yste
m
Wip
er
Cli
ma
Lig
hti
ng
Info
tain
me
nt
34MBT 2011
![Page 35: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/35.jpg)
Reuse
State of the Art:
Goal:
Project new Projectcopy & modify
Repository
Granularity ofResuable Assets ?
35MBT 2011
![Page 36: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/36.jpg)
ZV_bTKLStellMot_COV = 1
Explicit Representation of Variability
Representation of Dependencies betweenCoding Values by variability modeling, e.g. feature trees
Funktional Model
Var1_COV
Var2_COV
Var3_COV
Var4_COVVarN_COV
Zentralverriegelung
Tankdeckeltaster
ZV_bTKLStellMot_COVTankdeckelschloß
needs ZV_bTKLStellMot_COV = 0
Federsteller Stellmotor
36
![Page 37: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/37.jpg)
Reuse of Models
Functional
Description
Fkt. A
Fkt. B
Fkt. C
Spec Project A
Spec Project B
Fkt. A
Fkt. B
Fkt. A
Fkt. C
Spec Project A
Fkt. A
Fkt. B
Fkt. C
Spec Project B
Fkt. A
Modul
Library
Moduls Project B Module Project B
Fkt. A
Fkt. B
Fkt. C
Fkt. A
State of the Art:
� Function-oriented
development, i.e. functional
requirements are structured
in technical parts
� Functions in the
specifications use the same
name and the same
decomposition
� Running projects
lead to project specific
differences
� Differences must be
considered in retrospect
Fkt. A
Fkt. B
Fkt. C
Fkt. A
Fkt. B
Fkt. C
Fkt. A
Fkt. B
Fkt. C
Fkt. B
Fkt. C
Moduls Project A Module Project A
37
![Page 38: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/38.jpg)
Goal: compromise between ...
� 1 global product line
� n independent product lines
Reuse Approach: Multi-Level Concept
Vehicle Project A Vehicle Project B
Reference model
Defines references(non-mandatory or mandatory)
conform
or deviate
...
Referencing
models
Modul tool box
38MBT 2011
![Page 39: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/39.jpg)
CVM-Framework (Eclipse Plugin)
Multi-Level Feature Models:
• Show deviations
• autom. conformity checking
MuLe (Doors-Extension)
Multi-Level Concept for specification objects:
• Show deviations
• autom. conformity checking
• bidirectional transfer of deviations
(top-down and bottom-up reuse)
Tool Support Multi-Level Concept
39MBT 2011
![Page 40: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/40.jpg)
Structuring of Feature Models
Current State:
40MBT 2011
![Page 41: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/41.jpg)
Problems
Inappropriate for customers
• Complexity (>10.000 Features)• Technical Perspective
Direct connection too rigorous
• Multitude of actors• Diverging life cycle and validities• Heterogenity (methods, tools,...)
Connection to artifact too coarse
• Some artifacts very large
• Above problems within an artifact !
41MBT 2011
![Page 42: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/42.jpg)
Reuse Approach: Configuration Links
Fahrzeug
Wischer
„Artefact Line“
Interface
42MBT 2011
![Page 43: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/43.jpg)
Benefits
: ThrottleCalculator
rsThr:Threshold
…
from Radar
isTooNear
currSpeed
…
to throttle
CruiseControl
thresholdValue:Float
BodyElectronicsSystem
CC
minDistance:Int
Adaptive
ComfortCC
ShortLong
Other:Int
Car
Model
A-ClassC-Class
E-Class
Market
US EMEA
Comfort
from vehicle
speed sensor
…
Reductio
n o
f Com
ple
xity
Gra
dual S
hift o
f Vie
wpo
int
43MBT 2011
![Page 44: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/44.jpg)
� Identification von artifact-specific
variability components
� Transformation of CVM Entity-Types
resp. –Parts
� Type-Instance-Structure must
be considered
� Construct Feature-Models +
Configuration Links for Artifact
� Backtransformation into proprietary
artifact format incl. added
information
� Bidirectional Transformation without
information loss
Connection of CVM to development artifacts
44MBT 2011
![Page 45: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/45.jpg)
45
Agenda
Stochastic Robustness Testing2
Model-Based Development at Carmeq1
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
![Page 46: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/46.jpg)
The Challenge
Product Related Challenges
- Functionality increase
- Complexity increase
- Increased Safety-criticality
- Quality concerns
Challenges Related to Development Process
- Supplier-OEM relationship
- Multiple sites & departments
- Product families
- Componentization
- Separation of application from infrastructure
- Safety Requirements, ISO 26262
46MBT 2011
![Page 47: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/47.jpg)
EAST-ADL
A System Modeling Approach/Architectural Framework that
� Is a template for how engineering information is organized and represented
� Provides separation of concerns
� Embrace the de-facto
representation
of automotive
software –
AUTOSAR Vehicle Level
Analysis Level
Design Level
Implementation Level
Operational Level
Feature content
Abstract functional architecture
Functional architecture,HW architecture, platform abstractions
AUTOSAR Software architecture
Embedded system in produced vehicle (not in model)
47MBT 2011
![Page 48: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/48.jpg)
Vehicle Level
• A Vehicle is characterized by a set of Features
• Features are stakeholder requested functional or non-functional characteristics of a vehicle
• A Feature describes the "what", but shall not fix the "how"
• A Feature is specified by requirements and use cases
• From a top-down architecture approach the features are the configuration points to create a vehicle variant
48MBT 2011
![Page 49: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/49.jpg)
Analysis Level
Analysis Level is the abstract Functional description of the EE system
� Realizes functionality based on the features and requirements
� Captures abstract functional
definition while avoiding
implementation details
� Defines the system boundary
� Environment model and
stakeholders define context
� Basis for safety analysis
49MBT 2011
![Page 50: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/50.jpg)
Design Level
Design Level captures the concrete functional definition with a close correspondance with the final implementation
� Captures functional definition of application software
� Captures functional abstraction of
hardware and middleware
� Captures abstract hardware
architecture
� Defines Function-to-hardware
allocation
50MBT 2011
![Page 51: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/51.jpg)
Implementation Level
The Implementation Level represents the software-based implementation of the system
• Software components represent application functionality• AUTOSAR Basic software represents platform• ECU specifications and topology
represent hardware• Model is captured in AUTOSAR
� Software component template
� ECU resource template
� System Template
51MBT 2011
![Page 52: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/52.jpg)
Environment Model
The Environment model captures the plant that the EE system control and interact with
• In-vehicle, near and far environment is covered
• Same Environment Model may be used on all abstraction levels
• Different Environment models may be used depending on validation scenario
52MBT 2011
![Page 53: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/53.jpg)
Analysis Level
Design Level
Implementation Level
Operational Level
Vehicle Level
SystemModel
AnalysisLevel
DesignLevel
ImplementationLevel
Environm
entM
odel
FunctionalAnalysisArchitecture
Functional Design Architecture
AUTOSAR System
Hardware Design Architecture
VehicleLevel
TechnicalFeatureModel
SW components or runnables on
implementation level realizes
functions on design level
Functions on design level realizes
functions on analysis level
Functions on analysis level realizes
features on vehicle level
Traceability between abstraction levels
Realization relations
identify which abstract
element is realized by
a more concrete entity
53MBT 2011
![Page 54: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/54.jpg)
MBT 2011 54
Requirements – Basic Relations
Requirement
New requirements derived
after a system decomposition
or system refinement
derive
V&V-Cases that verify
the requirement
verifySystem Components
which have to
satisfy the requirement
satisfy
Behavioral Models that specify
the requirement in more detail
refine
![Page 55: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/55.jpg)
MBT 2011 55
Requirements – Example of Relations (1)
Vehicle Level
Feature
ABS
AnalysisFunctionType
ABS Block
Analysis Level
DesignFunctionType
ABS Slippage controler
Design Level
Requirement
ABSFunctionnality
ABS shall reduce break
distance in all driving
condition
Requirement
ABSActivation
ABS shall detect
individual wheel
acceleration
derive
Requirement
ABSControl
ABS shall control break
force via wheel slippage
control
derive
Requirement
ABSSlippage
ABS shall control
Slippage with PI
Controler
derive
satisfy
satisfy
satisfy
satisfy
Use Case
Slippery Roadrefine
![Page 56: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/56.jpg)
MBT 2011 56
Requirements – Examples of Relations (2)
Requirement
ABSActivation
ABS shall detect
individual wheel
acceleration
VVCase
ABSActivationTest
Simulate slippage behavior
at each wheel individually
VVCase
ABSActivationHILTest
Simulate slippage behavior at each wheel
individually on Chassis-HILVVCase
ABSActivationFieldTest
Simulate slippage behavior
at each wheel individually on
test drive ground
mo activationno activationHIL- Skript13. Normal friction
all wheel activationsright wheel activationsHIL- Skript34: Slippery road right
…
left wheel activationsleft wheel activationsHIL- Skript22: Slippery road left
no activationno activationHIL- Skript11: Normal friction
Actual OutcomeIntended OutcomeStimulusVVProcedure
verify
abstractVVcaseabstractVVcase
![Page 57: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/57.jpg)
57
Wrap up
Stochastic Robustness Testing2
The Challenge of Variability4
The EAST-ADL Architecture Description Language5
AUTOSAR3
MBT 2011
Model-Based Development at Carmeq1
![Page 58: 2011-MBT-Model-Based Development and Testing of Automotive ... · PDF fileModel-Based Development and Testing of Automotive ... due to rear blind being activated ... Definition of](https://reader031.vdocument.in/reader031/viewer/2022030416/5aa246d17f8b9a436d8cc01d/html5/thumbnails/58.jpg)
Discussion
Your questions?
Mark-Oliver Reiser, TU Berlin
Ralf Immig, Hans-Werner Wiesbrock, IT Power
Helko Glathe, Henning Kleinwechter, Andreas Leicher, Carmeq
Many colleagues from the EAST-ADL project (www.east-adl.org)
Many Thanks especially to