ecu diagnostic development with autosar classic · 12.generate software templates 13.implement...

21
V0.1 | 2019-03-15 ECU Diagnostic Development with AUTOSAR Classic

Upload: others

Post on 29-Sep-2020

8 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

V0.1 | 2019-03-15

ECU Diagnostic Development with AUTOSAR Classic

Page 2: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

2

Diagnostic Demonstrator

Diagnostic Development with AUTOSAR Classic

New Feature: Window Control

Agenda

Page 3: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

3

vVIRTUALtarget and HardwareDiagnostic Demonstrator

Vector car with VC121

CAN

DoIP

CANoe and vVIRTUALtarget

CAN

DoIP

Vector ECU VC121

Page 4: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

4

Diagnostic Demonstrator

Diagnostic Development with AUTOSAR Classic

New Feature: Window Control

Agenda

Page 5: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

5

E/E ArchitectureDiagnostic Development with AUTOSAR Classic

FrontMotor

HVACZoneFL

ZoneRR

ZoneRL

ZoneFR

signal oriented, hard real-timewith AUTOSAR Classic

also service oriented, less real-timewith AUTOSAR Classic/Adaptive or any POSIX OS

Connec-tivity

Tester

OEM Tester orOBD Scan Tool

Infotain-ment

Ecu

HCP

RearMotor

Battery

SOME/IP, AVB, TSN

SOME/IP AVB

Page 6: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

6

Software Structure for Diagnostic DemonstratorDiagnostic Development with AUTOSAR Classic

Abb Description

DCM Diagnostic Communication Manager (services)

DEM Diagnostic Event Manager (fault memory)

AUTOSAR Classic motivation and use case:

Real time control with distributed functions inside the vehicle.

CAN TP

PDU Router

CAN Interface

CAN Driver

RTE

DCM DEM

Direction

Indicator ...Light Sound OBDIIAP_MySWC

Ethernet Driver

Ethernet Interface

DoIP

Page 7: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

7

Workflow OEM DrivenDiagnostic Development with AUTOSAR Classic

CANoe, CANape

DaVinci Developer

DaVinci Configurator Pro

vFlash

Embedded CompilerVisual Studio

CANoe & vVIRTUALtarget

CANdelaStudio CANoe.DiVaCDD

CDDT

ODX

DEXT

OEM

HW

& S

W S

upplier

Classic Platform

PREEvisionSystemDescription

SWCs with annotated diagnostics PVCDI

DIDs, IO Control, Routine Control, DTCs, Events

Indigo

CANoe, CANape

Page 8: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

8

TIER-1 WorkflowsDiagnostic Development with AUTOSAR Classic

CANoe, CANape

Indigo

DaVinci Developer

DaVinci Configurator Pro

vFlash

Embedded CompilerVisual Studio

CANoe & vVIRTUALtarget

CANdelaStudio CANoe.DiVa

CANoe, CANape

CDD

CDDT

ODX

DEXT

OEM

HW

& S

W S

upplier

Classic Platform

SWC SyncSystemDescription

SWCs with annotated diagnostics

OEM x OEM y

Page 9: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

9

ECU Diagnostic Specification in CANdelaStudioDiagnostic Development with AUTOSAR Classic

Page 10: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

10

CDD as Input File for DaVinci ConfiguratorDiagnostic Development with AUTOSAR Classic

Page 11: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

11

Software Components with DaVinci DeveloperDiagnostic Development with AUTOSAR Classic

Page 12: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

12

DaVinci Configurator – Mapped Client/Server PortsDiagnostic Development with AUTOSAR Classic

Page 13: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

13

Feature “Stop Light”Diagnostic Development with AUTOSAR Classic

MCAL

Drivers

Light SWC

RTE

IoHwAb

22

DCM

2F

OUT3

Page 14: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

14

Example Source CodeDiagnostic Development with AUTOSAR Classic

Page 15: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

15

vFlashDiagnostic Development with AUTOSAR Classic

Page 16: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

16

Diagnostic Demonstrator

Diagnostic Development with AUTOSAR Classic

New Feature: Window Control

Agenda

Page 17: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

17

CircuitNew Feature: Window Control

Ecu

UBatt

BODY_CAN

Window Switch

1

34

5

2

7

86

up

down

GndGnd

A reversible motor

Window Lift A

M

Window Lift B

PIN 7/8 is a H bridge output.

U(x)=16x/255 [V]

I(x)=30x/255 [A]

Value Action

0 Move Down

1 Move Up

IO Control „Window Switch“

Page 18: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

18

1. Add feature to CDD

2. Update the configuration in DaVinci Configurator

3. Create new Software Component in DaVinci Developer “WindowControl”

4. Add Init Runnable

5. Add Runnable (cyclic 10ms)

6. Instantiate new Software Component in DaVinci Developer

7. Synchronize in Configurator

8. Map Service Components for Window Control in Configurator to new Software Component

9. Create CANoe system variables in Configurator

10.Schedule in Task Mapping Init and Cyclic Runnable

11.Generate for vVIRTUALtarget

12.Generate Software Templates

13.Implement feature in Visual Studio

14.Generate for Real Target

15.Compile with Embedded Compiler

16.Flash software to ECU

InstructionNew Feature: Window Control

Page 19: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

19

Short Term Adjustment ImplementationNew Feature: Window Control

Page 20: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

20

CANoeNew Feature: Window Control

Page 21: ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement feature in Visual Studio 14.Generate for Real Target 15.Compile with Embedded Compiler

21 © 2019. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V0.1 | 2019-03-15

Author:Hirsch, DanielVector Germany

For more information about Vectorand our products please visit

www.vector.com