17
V1.11 | 2017-09-19 vVIRTUALtarget Virtual Integration and Test of AUTOSAR Systems 1 / 6

Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

V1.11 | 2017-09-19

vVIRTUALtarget

Virtual Integration and Test of AUTOSAR Systems

1 / 6

Page 2: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

1. Motivation

2. Use Cases of Virtualization

3. Concept of the vVIRTUALtarget

4. Summary

Agenda

2

Page 3: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

AUTOSAR Complexity

Motivation

AUTOSAR is influenced by many parties

Complexity is increased due to different needs

Acceptance is also increased

AUTOSAR adds complexity to the development process but offers a lot of advantages:

Interfaces offer new mechanisms for structured access of internal ECU data

Clearly defined and standardized interfaces within ECUs simplify interworking of OEMs and suppliers

3

Page 4: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

1. Motivation

2. Use Cases of Virtualization

3. Concept of the vVIRTUALtarget

4. Summary

Agenda

4

Page 5: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Software Development

Use Cases of Virtualization

Development of functional code in a virtual environment

Integration in realistic AUTOSAR environment

Easy, mainly automated configuration

Parallel Development of test libraries for later reuse

Behavior Model

SWCA

RTE

SWCB

SWCC

Test Tool (e.g. CANoe)

Behavior Model

SWC1

RTE

SWC2

SWC3

5

Page 6: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

ECU Integration

Use Cases of Virtualization

Minimum effort for parallel configuration of real and virtual target

Verification of the configuration in the virtual environment without the need for hardware

Stimulation via busses, IO and internal ports

Debugging of internal behavior is possible for the complete ECU software

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

MCAL VTT

vVIRTUALtarget

MCAL

MCALMCAL VTT

VisualStudio Target compiler

6

Page 7: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

System Integration

Use Cases of Virtualization

Test of distributed functions in virtual or partially virtual environment

Reuse of already configured virtual SUTs also in combination with real ECUs

Usage of test libraries developed in earlier phases

Stimulation via busses, IO and even RTE ports

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

Test Tool (e.g.

CANoe)

7

Page 8: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Error reproduction

Use Cases of Virtualization

Reproduce functional misbehavior with measurements of field test in the virtual world

Difficultly achievable situations can be generated virtually

Simulation time is not linked to real time, so pausing and resuming when debugging is possible

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

8

Page 9: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

1. Motivation

2. Use Cases of Virtualization

3. Concept of the vVIRTUALtarget

4. Summary

Agenda

9

Page 10: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Virtualization in the Development Process

Concept of the vVIRTUALtarget

Model-based Development

SWC IntegrationVFB Emulation

SWCA

SWCB

SWCC

BSW

RTE

SWCA

SWCB

MCAL

OS

ECU Integration

System Integration

virtual virtual

Real

virtual

VTT pro

VTT basic

Virtual

vVIRTUALtarget(VTT)

10

Page 11: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

vVIRTUALtargetpro

SWC Integration with vVIRTUALtarget pro – Testing the Source Code

Concept of the vVIRTUALtarget

SWC A SWC B SWC C

RTE

BSW

ECU integration for virtual hardware

vVIRTUALtarget pro

Service Configuration

GenerateCode

Application source code

.c/.h

.c/.h

.c/.h

Virtual target

.DLL

SWC ImplementationService Emulation

11

Page 12: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

ECU Integration with vVIRTUALtarget – Sharing the Source Code

Concept of the vVIRTUALtarget

SWC A SWC B SWC C

RTE

BSW

OS

MCAL

Auto-Sync of VTT modules

ECU integration for virtual hardware

ECU integration for real hardware

DaVinci Configurator Pro

Dual-Target Configuration

MICROSAR SIP

+ SIP Add-On VTT

GenerateCode

Application source code

.c/.h

.c/.h

.c/.h

.c/.h

.HEX

.c/.h

Real target

Virtual target

Both targets

.DLL

Target IDE

vVIRTUALtargetbasic/pro

SWC Implementation

12

Page 13: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Development Workflow

Concept of the vVIRTUALtarget

CSV

DaVinciDeveloper orPREEvision

AUTOSAR SWC Design

DaVinciConfigurator

PRO

AUTOSAR BSWConfiguration

SYS-EX

CANdelaStudio

Diagnostic Specification

RequirementsImport

ODXCDD

Indigo

Diagnostic Tester Parametrization

CANoe.DiVa

Diagnostic Validation

DEXT

vVIRTUALtargetpro

AUTOSAR SW Development

vVIRTUALtargetbasic/pro

AUTOSAR ECU Integration

PREEvision

AUTOSAR System Design& opt. Diagnostic Requirements Definition

SWCD ECUC

SWC Sync

Different topic

13

Page 14: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Testing Workflow

Concept of the vVIRTUALtarget

CSV

DaVinciDeveloper orPREEvision

AUTOSAR SWC Design

DaVinciConfigurator

PRO

AUTOSAR BSWConfiguration

SYS-EX

CANdelaStudio

Diagnostic Specification

RequirementsImport

ODXCDD

Indigo

Diagnostic Tester Parametrization

CANoe.DiVa

Diagnostic Validation

DEXT

vVIRTUALtargetpro

AUTOSAR SW Development

vVIRTUALtargetbasic/pro

AUTOSAR ECU Integration

PREEvision

AUTOSAR System Design& opt. Diagnostic Requirements Definition

SWCD ECUC

SWC Sync

Different topic

vVIRTUALtargetpro

AUTOSAR SW Development

vVIRTUALtargetbasic/pro

AUTOSAR ECU Integration

CANoe

Test execution

vTESTstudio

Test implementation

Virtualized AUTOSAR-SW

Virtual ECU

Test lib

VT System

HiL test hardware

SUT real hardware

14

Page 15: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

1. Motivation

2. Use Cases of Virtualization

3. Concept of the vVIRTUALtarget

4. Summary

Agenda

15

Page 16: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

Core Benefits

Summary

PC environment has advantages compared to a real HW

Better availability> Early test/integration results since the PC is always available – no need to wait

for the HW

> Easy replication of test-/integration environments on several work places

Better control> Stress scenarios can be easily applied to provoke “race conditions” and to

achieve good code coverage

> Faster execution of tests possible

> More comprehensive test automation possible since SUT can be controlled completely

> Access to internal variables at defined times possible

16

Page 17: Virtual Integration and Test of AUTOSAR Systems€¦ · 24/01/2018  · > Early test/integration results since the PC is always available –no need to wait for the HW > Easy replication

© 2017. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V1.11 | 2017-09-19

For more information about Vectorand our products please visit

www.vector.com

Author:Marktl, RomanVector Informatik GmbH