interface microsystems - matlab...interface microsystems headquarter 341-342, udyog vihar phase ii...

20
INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: www.interfaceauto.com MIL In Test-driven Development For Achieving Agile ECU Development Nukul Sehgal Team Lead – Software Engineering Srishti Sharma Software Engineer

Upload: others

Post on 18-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

INTERFACE MICROSYSTEMS

Headquarter341-342, Udyog Vihar Phase II

Gurgaon-122016, HaryanaPhone: +91-124 - 4736950

Fax: +91-124-4736960Website: www.interfaceauto.com

MIL In Test-driven Development For Achieving Agile ECU Development

Nukul SehgalTeam Lead – Software Engineering

Srishti SharmaSoftware Engineer

Page 2: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 2

Automotive Industry/OEMs

To Launch New Vehicle Models

OR

Upgrade Existing Designs

Test Driven Development

Approach

Develop Models, Software and test Cases Together

Requires almost Twice a Year

This leads to

TimeFeature

SetSolution

Agile Methods

Problem Statement

Page 3: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 3

IncreasedECU feature

sets

0

20

40

60

80

100

120

2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019

Feature Set

Years

Feat

ure

Req

uir

emen

ts

Problem Statement

Page 4: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 4

Reduced Time to Market

Year

Dev

elopm

ent

tim

e in

month

s

0

5

10

15

20

25

30

2008 2010 2012 2014 2016 2018 2020

Time to market

Problem Statement… continued

Page 5: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 5

Development Strategy to solve the problem

Approaches discovered for different scenarios of ECU development requirements.

Requirement of software development on an existing ECU hardware.

Requirement of a whole new ECU software and hardware.

1.

2.

Page 6: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 6

Model based Development

AutoSAR Platform Approach

Test Driven Development

Development Strategy to solve the problem

Page 7: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 7

Application

Base Software

Changes with every Variant(Update in Feature Set)

Remains fixed most of the times

Development Strategy to solve the problem… continued

Page 8: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 8

MIL with HIL System

MIL with ECU Hardware

Application Model

Development Strategy to solve the problem… continued

Page 9: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 9

COMM Layer

MIL with ECU Hardware

Pre-Requisites Benefits

Established BSW

Test Setup MIL Capabilities

✓ Actual H/W in-loop to drive the loads.

✓ Closed loop testing with actual sensor and load

feedback.

✓ Model Developer does not need to wait for

Software Integrator.

✓ Model and Signals can be traced/logged.

✓ Minimal change in HIL Setup and test cases

when testing production ready part with

Integrated H/W and S/W.

ECU H/W

Page 10: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 10

Requirements Coming as Changes

OR

New Requirements

Validation Of Requirements before

Code Generation

Reduction in Time getting wasted in re-iterations and Code

Generation

MIL with ECU Hardware

Model Simulation is also done for the Validation.

Page 11: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 11

COMM Layer

MIL with HIL System

Pre-Requisites Benefits

Test Setup with MIL Real Time

✓ No actual H/W required to drive the loads.

✓ Closed loop testing with actual sensor and load

feedback.

✓ Model Developer need not to wait for Software

Integrator.

✓ Co-development of Model and Test cases.

✓ Model and Signals can be traced/logged.

✓ Minimal change in HIL Setup and test cases

with each iteration.

Page 12: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 12

Model Development & Testing in Real Time Over

HIL

• MATLAB model as Requirement for betterunderstanding and better test results

Benefit is same test cases (MIL, HIL) can be used to

test Actual Hardware

• By Simple mapping available in HIL,tester can switch between Modelunder test setup and ECU under testsetup

Requirements, Model, Software and test cases

become matured together with the right agile approach.

• Reduces Time

MIL with HIL System

Page 13: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 13

Map System Variables with model & H/W IOs

Create model & map to signals/system variables

Create Configuration in test environment

Build model for Test Environment & Load

Load CAN database in Test EnvironmentRun model & test Cases in the test env

Work Flow for MIL in Test-Driven Development

Page 14: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 14

CANoe

MIL with ECU Hardware System - Testing Flow Diagram

ECU

Test CasesActual

Loads

Model

Page 15: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 15

CANoe

MIL with HIL System - Testing Flow Diagram

VectorVT System

Test Cases ActualLoads

Model

Page 16: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 16

Production Ready HIL Setup - Testing Flow Diagram

CANoe VT System

ECUTest Cases

ActualLoads

Page 17: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 17

Simulation & Test - Design Verifier/Simulink test

Design - Simulink/State-Flow

Application Design Through Model Based Approach

Tools Required

Page 18: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 18

Change Management- Integrated Version Control-Git

Code Generation – Embedded Coder/AutoSAR Tool Box

Application Design Through Model Based Approach

Tools Required

Page 19: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems 19

Summary

Saves timeMaturing

requirements through validation

+MIL =

Requirement of less time to deliver and huge feature set for ECUs are challenging in traditional ECUdevelopment approach.

Re-using test cases used in MIL testing with actual ECU with less or no efforts in test case change furthersaves time to deliver and reduces number of iterations.

Page 20: INTERFACE MICROSYSTEMS - Matlab...INTERFACE MICROSYSTEMS Headquarter 341-342, Udyog Vihar Phase II Gurgaon-122016, Haryana Phone: +91-124 - 4736950 Fax: +91-124-4736960 Website: MIL

Interface Microsystems341 ~ 342, Udyog Vihar, Phase -2, Gurgaon – 122 016, Haryana, India

Tel: +91 124 4736950, Fax: +91 124 4736951Email: [email protected]

Website: www.interfaceauto.com