37
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

V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 2: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 3: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 4: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 5: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 6: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 7: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 8: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 9: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 10: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 11: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 12: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 13: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 14: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 15: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 16: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 17: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 18: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 19: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 20: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 21: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 22: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 23: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 24: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 25: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 26: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 27: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 28: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 29: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 30: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 31: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 32: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 33: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 34: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 35: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 36: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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

Page 37: V-Cycle - USP · 2017-05-15 · 2 Public| ETBZ | Pedro Rossetti | 2015 | © ETAS GmbH 2014. All rights reserved, also regarding any disposal, exploitation, reproduction, editing,

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