ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement...
Transcript of ECU Diagnostic Development with AUTOSAR Classic · 12.Generate Software Templates 13.Implement...
![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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/13.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/15.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/18.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/19.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062403/60180ba7fae89952e1484408/html5/thumbnails/21.jpg)
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