Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
1 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Pedro C. Rossetti
V-Cycle
2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Cycle
3 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
if (Temperature > 100){ Fan_Output = true; } else { Fan_Output = false; }
if (Temperature > Temp_Threshold){ Fan_Output = true; } else { Fan_Output = false; }
This is enabled to be calibrated
V-Cycle
4 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Cycle
5 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Development ECU ≠ Series ECU
V-Cycle
6 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Development ECU ≠ Series ECU
V-Cycle
7 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model - Overview
Basic Control Definition
Vehicle
Environment
Sensors Actuators Plant Set point
generators
Driver
ECU
-ASCET Model -Control Model -Example:
Lambda Control Injection Control Ignition Control Torque Control
V-Cycle
8 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model - Overview
Closed-Loop Simulation
Vehicle
Environment
Sensors Actuators Plant Set point
generators
Driver
ECU
-ASCET Model -Control Model -Example:
Lambda Control Injection Control Ignition Control Torque Control
This can be a plant model (virtual plant) and run a closed-loop
V-Cycle
9 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model - Overview
V-Cycle
10 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
Model Based ≠ Block Diagram
V-Cycle
11 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
INPUTS:
- Load
- Accelerator Pedal
OUTPUT:
- Compressor Voltage
PARAMETERS
- Load Threshold
- Accelerator Pedal Threshold
- Max Cut-off time
V-Cycle
12 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
− Virtual Simulation: this is not a real time simulation and the model runs on PC with
virtual and controlled stimulation of the inputs
V-Cycle
13 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
ES910: Rapid Prototyping (RP) Hardware
V-Cycle
14 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
− Real Time Simulation: The ASCET model runs on RP with virtual inputs. The HW is
dedicated to execute the code and it runs in real time
V-Cycle
15 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Model Based Development
ASCET-SE Code Generation
Implementation of the function in the ECU
V-Cycle
16 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Test & Validation
V-Cycle
17 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Test & Validation
V-Cycle
18 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Test & Validation
V-Cycle
19 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Test & Validation
V-Cycle
20 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Test & Validation
V-Cycle
21 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Measurement & Calibration
V-Cycle
22 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Measurement & Calibration
V-Cycle
23 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Measurement & Calibration
Throttle Body Position
Pedal Position
ETB Control
INCA Calibration
Hex A2L
V-Cycle
24 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Measurement & Calibration
− Real Test: SW & HW of a real ECU with real inputs and real plant. This controller can be
calibrated by INCA using .a2l and .hex files
V-Cycle
25 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model – Improving Eficiency of the Control Design
V-Cycle
26 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model – Improving Eficiency of the Control Design
V-Cycle
27 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model – Improving Eficiency of the Control Design
V-Cycle
28 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model - Improving Eficiency of the Control Design
MiL
Rap. Prot
Non-Real Time Simulation Real Time Simulation
V-Cycle
29 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
V-Model – Rapid Prototype using a Real Plant
Throttle Body Position
Pedal Position
ETB Control
INCA - EIP Calibration on RP
Hex A2L
V-Cycle
30 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
− Control and processing of a variety of tasks on a single processor;
− Management and allocation of resources as processor, I/O and memory;
− Interface between tasks.
Operating Systems:
Real Time Operating System (RTA – OSEK)
− Unit of work that is managed by the OS and executed by the processor;
− Using a one core controller, hence, at one time only one task can be executed;
− OS can switch between tasks according to the priority and the scheduling. The step
can be so fast that creates the impression of parallel processing. The term is quasi-
parallel.
Task:
V-Cycle
31 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Real Time Operating System (RTA – OSEK)
Time t
Task C
Task A
Task B
Quasi- parallele tasks
Allocation of processor to the various tasks
Task A “Ignition”
Task B “Injection”
Task C “Pedal value acquisition”
Time t
Parallel tasks
V-Cycle
32 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Real Time Operating System (RTA – OSEK)
OSEK/VDX
Open systems and the corresponding interfaces for
automotive electronics.
Consortium of automobile industry representatives
pursues the objective of defining standards to be
applied to automotive system software.
Aiming at an industry standard for an open-ended architecture for distributed control units in vehicles
V-Cycle
33 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Real Time Operating System (RTA – OSEK)
Interaction Layer OSEK-COM
Network Layer ISO
ISO Diagnostic Protocol
Flash Loader
Hardware Abstraction Layer (HAL)
....
Bus driver
OSEK-OS Operating System
Function f 1 Function f 2
API
Legend:
I/O
Function f 3
Communication Hardware
OSEK Layer Model
Network Management OSEK-NM
V-Cycle
34 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
The scheduling is made considering the priority and the type of chosen processor:
Preemptive (preemp) or Cooperative (coop).
− PREEMPTIVE PROCESSOR: a higher-priority task may interrupt the execution of a
lower-priority task. So the task switching occurs exactly when the H-P task is
needed.
− COOPERATIVE PROCESSOR: a higher-priority task is unable to interrupt the
execution of a lower-priority task. So the task switching occurs only after the
conclusion of the L-P task and because of that the execution of a H-P task is delayed
by the L-P task.
Scheduling
Real Time Operating System (RTA – OSEK)
V-Cycle
35 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Real Time Operating System (RTA – OSEK)
Task A activation
Time t
Task A relative deadline
Task A activation
Task A relative deadline
Task A
Task B
Priority
Task B activation
Task B activation
Task in “Ready” state
Task in “Running” state
Task in “Waiting” state
Legend
Task in “Suspended” state
Interruption of Task A
Time t
Task A
Task B
Priority Delay of Task B
Task A activation
Task A relative deadline
Task A activation
Task A relative deadline
Task B activation
Task B activation
− Preemptive Processor:
− Cooperative Processor:
V-Cycle
36 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Gratitude
Thanks Prof. Dr. Dieter Nazareth for providing a training of Model
Based Development of Automotive Software
V-Cycle
37 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction,
editing, distribution, as well as in the event of applications for industrial property rights.
Vielen Dank
Thank you
Merci
有難うございました
감사합니다.
谢谢
धन्यवाद
Muchas gracias
Cпасибо!
Д‘якую
Děkuji
Hvala
Obrigado
Kiitos
Mille Grazie
Tack så mycket