Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from...

32
V2.0 | 2018-07-09 Vector Webinar 2018-10-10 vFlash

Transcript of Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from...

Page 1: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

V2.0 | 2018-07-09

Vector Webinar 2018-10-10

vFlash

Page 2: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Introduction into vFlash

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 3: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

3

High-speed flashing over CAN, CAN FD, FlexRay, LIN and Ethernet (DoIP and SoAd)

Different protocols and flash sequences in one tool

Intuitive GUI for configuration and execution and automation interface

Executive Summary

Introduction into vFlash

Page 4: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

4

Application Areas

Introduction into vFlash

OEMs

Development

EOL Programming

After-Production Programming

Suppliers

Development

Production

Late update on OEM site

Page 5: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

5

Responsibilities

Introduction into vFlash

Actors

Flash Tool

Bootloader

Network

Responsibilities

vFlash Tool

Controls flash sequence

Processes flashware

Transfers data to ECU

Bootloader

Manages internal update sequence

Erases memory areas

Transfers software from RAM into persistent memory

Verifies data integrity

PC

ECU

Bootloader

vFlash

Page 6: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

6

High Speed Reprogramming

Introduction into vFlash

ONE TOOL: Supporting different bus systems

CAN

CAN FD

FlexRay

LIN

Ethernet (DoIP)

Ethernet (SoAd)

Page 7: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

7

Flash Data Sources

Introduction into vFlash

ONE TOOL: Supporting different data sources

Native data

Pure memory image

Container-base

Memory image

Process Information

Page 8: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

8

Protocols and Flash Procedures

Introduction into vFlash

ONE TOOL: Supporting different protocols and flash procedures

Different flash procedures

Different security mechanisms

Different diagnostic protocols

Page 9: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

vFlash Template Concept

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 10: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

10

Plugins: vFlash Template for each Bootloader

vFlash Template Concept

Concept

Easy startup

Bootloader details covered by vFlash Template

vFlash Template exactly fitting to Bootloader

Look-and-feel widely independent of vFlash Template

Page 11: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

11

Template developed in context of FBL development

vFlash Template is developed in parallel to FBL

Template is used during FBL development

Template is validated with FBL

vFlash Template development is covered by FBL development

Template developed in context of project

No Bootloader project or

Intermediate version or

Special features

vFlash Template development as customer project

vFlash Template Availability

vFlash Template Concept

OEM Spec

OEM Spec

FBL

TPL

TPL

Page 12: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

vFlash Project Handling

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 13: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

13

vFlash Standard Project

vFlash Project Handling

Change Code

Create

BinariesUpdate ECU

Use Case: Development

vFlash Project references flash data automatic use of updated data

Page 14: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

14

vFlash Pack&Go Project

vFlash Project Handling

Use Case: Production, Data Exchange

Pack&Go Project packs all required items in one file (configuration, Seed&Key.dll, flashware, …)

ECU Config

.vflashpack

Sequence

Flash-Daten

Flash-Daten

FlashData

vFlash

Page 15: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Enhanced Security with Gateway Authentication

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 16: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

16

Security Access AND Authentication

Enhanced Security with Gateway Authentication

Security Access

Uni-directional: Client proves legitimation against ECU

Target node is ECU

Client can only execute dedicated diagnostic services suitable to security level

Flashing: Erase Memory, Transfer Data, …

Calibration: Change configuration properties such as characteristic curves

Authentication

Optionally bi-directional: Client has to prove legitimation, target node may prove legitimation

No non-authenticated node can access system

No mock-ECU can spy-out tester

Target node is usually gateway (sometimes also ECU)

Gateway only routes diagnostic services into system after legitimation

Page 17: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

17

Key Calculation in “Seed Key DLL”

Key calculation is purely based on Seed Key DLL. No other dependencies.

Advantage: Very simple handling

Disadvantage: Seed Key DLL is enough to unlock ECUs. Seed Key DLL once copied to another location opens ECU forever.(option: time-limited validity)

Dongle Access / Smart Card Access

Key calculation requires additional credentials from dongle or smart card.

Advantage: Seed Key DLL as a software is not enough – user additionally needs dongle or smart card as hardware.

Disadvantage: “Lost” dongle opens ECU forever. (option: time-limited validity of dongle or additional license file with time-limited certificate)

Server Access

Key Calculation is delegated to server

Advantage: OEM can control ECU access even temporarily

Disadvantage: Missing server connection leads to blocked ECU access.

Enhanced Security Access Features

Enhanced Security with Gateway Authentication

Page 18: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

18

Authentication

In advance prove authenticity

Use Uni-directional or bi-directional authentication

Using different mechanisms

PKI-based asymmetric cryptography

Challenge-response based asymmetric or symmetric cryptography

Still unlocking ECU with Security Access

Authenticity may be proven on flash ECU or on gateway

(Enhanced) Authentication Features

Enhanced Security with Gateway Authentication

Page 19: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

19

Enhanced Security with Gateway Authentication

Enhanced Security with Gateway Authentication

Motivation

Flashing a target ECU via a Gateway sometimes requires authentication at the Gateway

Authentication activates the routing of the diagnostic requests to the target ECU

Solution

Enhance security capabilities

Communication with Gatewayfor authentication

Execute OEM specific security algorithms to calculate credentials

Send credentials to Gateway

Communication with ECUfor flashing

Page 20: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Custom Actions

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 21: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

21

Execute ECU Specific Operations

Custom Actions

Custom Actions

IndividualPre-Processing

Individual Post-Processing

Reprogramming

Concept

vFlash Template

Pure flash operation, conforming to Flash Bootloader

Suitable for all ECUs based on same bootloader

No ECU specific operations

Custom Actions

ECU specific operations with dedicated diagnostic tasks

User is able to author the tasks

Use Cases

Reporting

Individually document flash activities

Restoring

Read ECU information before and restore it after flashing

Label printing

Print ECU labels after successful reprogramming

Parametrization

After reprogramming parametrize system

Page 22: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

22

Custom Action Development

Custom Actions

Custom Actions

Author scripts in C#

Access to large number of .NET libraries

Access to vFlash library

Access to diagnostic library (send request, receive responses, access parameters)

Large community supporting C# programming

API documentation for diagnostic access and vFlash access available

Page 23: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Tool Editions

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 24: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

24

Flash execution controlled via

Graphical user interface

Automation interface (C and C# API)

vFlash with GUI and Automation Interface

Tool Editions

Page 25: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

25

Parallel flashing

Flashing up to 8 different ECUs

Each connect over a separate bus

vFlash Station

Tool Editions

Page 26: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

26

vFlash Compact – Standalone Flashing with VN8810

Tool Editions

Supplier’s productionWirelessly control several flash processes on several VN8810

Manufacturer’s productionLate software update shortly before assembling module in vehicle

After vehicle productionReprogramming ECUs assembled in vehicle (e.g. while shipping vehicles)

Standalone Flash Device: vFlash Compact on VN8810

Simplest execution avoids misuse

Controlled via keypad

Optionally controlled wirelessly via “Smart Device”

No PC required for flashing

No expert required for flashing

Documentation of flash activities in Reports

Page 27: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Extended Feature Set

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 28: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

28

vFlash on VN89xx

Extended Feature Set

Use Cases

Flash Station based on VN89xx: Flash several ECUs at the same time

Connect several VN89xx Interfaces to single PC

Control vFlash from PC application

Reprogram ECU while remaining bus simulation is active

CANoe testing: Support CANoe tests requiring reprogramming operations to continue testing

Solution: vFlash on VN89xx

vFlash controlled via CANoe Standalone and vFlash Node Layer

Vector Platform Manager used to deploy vFlash to VN89xx

Vector Platform Manager used to transfer vFlash configuration to VN89xx

FDX used to control flash process

Page 29: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

29

vFlash with Diva

Extended Feature Set

Use Cases

Execute flash tests …

… in addition to Diagnostic protocol test

… in addition to Application test (parameter and fault memory)

Solution

Extend CANoe.DiVa with vFlash

Execute default flash tests

Test valid Flashing

Test overvoltage and under voltage tests

Data transfer errors (CRC/Signature/canceling)

Erase memory errors (skipping/canceling)

Execute OEM specific flash tests

Use available for selected OEM extensions

Page 30: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

Summary

Introduction into vFlash

vFlash Template Concept

vFlash Project Handling

Enhanced Security with Gateway Authentication

Custom Actions

Tool Editions

Extended Feature Set

Summary

Page 31: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

31

Summary

Summary

Flexible

Different data sources, flash sequences, networks

Different security mechanisms

Different flash sequences

Simple

vFlash Templates hide complexity

Templates fit to bootloaders – just select template and add data

Fast

High speed programming especially in combination with Vector Network Interfaces

Complete

To be used in all application areas – by OEM and supplier

Interacts with different Vector tools – CANoe testing, DiVa, …

To be used with GUI or integrated via automation interface

vFlash

Page 32: Introduction into vFlash and vFlash Templates...Key calculation requires additional credentials from dongle or smart card. Advantage: Seed Key DLL as a software is not enough –user

32 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V2.0 | 2018-07-09

Author:Weber, RolfVector Germany

For more information about Vectorand our products please visit

www.vector.com