virtual based automated testing for automotive body ecus

23
QTronic User Conference 2019 Virtual ECUs and Applications 2 nd of December, Berlin, Germany Virtual based Automated Testing for automotive Body ECUs Kazumasa Matoba AISIN SEIKI Co., Ltd. Software Engineering Dept. Hiroshi Ueda Ubiquitous AI Corporation SPQA Division

Upload: others

Post on 27-Nov-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Virtual Based Automated Testing for Automotive Body ECUs

QTronic User Conference 2019

Virtual ECUs and Applications

2nd of December, Berlin, Germany

Virtual based Automated Testing for automotive Body ECUs

Kazumasa Matoba

AISIN SEIKI Co., Ltd.Software Engineering Dept.

Hiroshi Ueda

Ubiquitous AI CorporationSPQA Division

Page 2: Virtual Based Automated Testing for Automotive Body ECUs

2Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 3: Virtual Based Automated Testing for Automotive Body ECUs

3Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 4: Virtual Based Automated Testing for Automotive Body ECUs

41-1. AISIN Group Main Products

Sensor

Car navigation system

ECU

Automatic transmission

CVT

Electric water pump

Power sliding door

Sunroof

Power seat

Parking assist system

Power tilt & telescopic

Electric parking brake

PowertrainVehicle Safety

SystemBody

ICT & Electronics

Page 5: Virtual Based Automated Testing for Automotive Body ECUs

51-2. Features of the Body System

Features of the body system

- There is a direct operation request from the user.

- The number of actuators to be driven is relatively small. (1 ~ 3 pieces)

- The requirement for responsiveness is low

Page 6: Virtual Based Automated Testing for Automotive Body ECUs

6Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 7: Virtual Based Automated Testing for Automotive Body ECUs

72-1. Testing Embedded Software

- Increase in test cases due to the development of larger-scale in-vehicle software

- Increased demand for simulation testing

(Reduced hardware and other provisioning costs

/easy and replicable test environments

/to advance the testing schedule)

Requirements analysis

Architecture design

Unit design

Coding

Unit test

Integration test

System test

Software Development V-Model

Test Process

Page 8: Virtual Based Automated Testing for Automotive Body ECUs

8

1. Silver was introduced as a tool for simulation of product ECU, and SILS environment was constructed.

2. TestWeaver Light was introduced to automatically generate reports and automatically judge for simulation results.

2-2. SILS Test

TestCode

py

interpret

ProductSoftware

dll

PythonModule

dll

PlantModel

dll

SILS

Watch

TestInstrument

py, rml

Test Automation

Test Report

html

ProductSoftware

c

PlantModel

slx

Build Build

Control Loop1

2

Page 9: Virtual Based Automated Testing for Automotive Body ECUs

9

Want to make the most of the

increasing assets of SILS testing...

2-3. Issue in ECU Test

- SILS enables efficient testing on PCs

- Increasing the ratio of SILS testing can improve the efficiency of the entire test process.

BUT... In the development of embedded software, we can not eliminate tests requiring verification of actual machines.

ex.)Interrupt/Timing/Processing Load

-> HILS capable of efficient automatic testing in actual machines is required

0%

20%

40%

60%

80%

100%

Real machine

Simulation

Complication

Simulation

Real machine

Unit test

Integration test

System test

Simple

Front loading

HILS

SILS

Page 10: Virtual Based Automated Testing for Automotive Body ECUs

10

Product A Product B Product C

Management Cost

Bad Management

Good Management

Cumulative Cost(Bad)

Cumulative Cost(Good)

2-4. Issue in Test Assets Management

Good management practices for test assets are needed to keep testing costs lower.

There is a big difference in maintenance costs

depending on the management method

Page 11: Virtual Based Automated Testing for Automotive Body ECUs

11Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 12: Virtual Based Automated Testing for Automotive Body ECUs

123-1. Real ECU Test by HILS

Interface Circuit

Test: Monitoring + Operation

Plant Model

OutputSystemStatus

Control Loop

HILS

HILS can do automated testing with scripts

Plant models can be easily fail-safe tested

Watch

In-house HILS already exists, but there are issues.

- Must use low-level in-house language for test scenario creation.

- Language specifications are not maintained and operated.

Page 13: Virtual Based Automated Testing for Automotive Body ECUs

133-2. HILS Details

Interface Circuit

Test: Monitoring + Operation

Plant Model

IPC

IPCPM Interface

Device Control

HW Device

PythonBenefits- Common test interface

with SILS- Easily run Simulink models

in real time- Reduce in-house software

components- Can use Python as a

scripting language

Implementation Function- Digital In/Out- Analog Out- CAN Communication- LIN Communication

Page 14: Virtual Based Automated Testing for Automotive Body ECUs

14

Simple Model

InterfaceConnection

Scripts

PC PC

3-3. Benefit: Common Test IF with SILS

Common Test IF with SILS = Aim to reduce costs through reuse

- Keep the environment (Tools, scripts, and project-related files) used in the SILS tests

HILSSILS

SILS TestScripts

Application

HILS TestScripts

ECU

Application

Interfacewith target

Interfacedifference

Reuse

Hardware

Simulation test Real machine test

Regulate

Add

Page 15: Virtual Based Automated Testing for Automotive Body ECUs

15

MATLAB Simulink

3-4. Easily run Simulink models in RT

Flexible support for MBD by designing the HILS Plant Model Interface so that it can be imported from Simulink Model. Model development is performed externally using Simulink, and by providing the model, real time operation can be easily performed.

Genera

te

ModelC Code(Any target)

IF C Code Build

SimulinkCoder

Model RT Library

HILS RT Application

RT Library

Hand C

ode

Insert

Page 16: Virtual Based Automated Testing for Automotive Body ECUs

163-5. Other Benefits

<Reduce in-house software components>

- Cultivate successors through in-house software refactoring.- Smaller in-house software components

Component Conventional Development

1.PC Outside Outside

2.Test Scripts In-house In-house

3.GUI In-house Outside

4.Interpreter In-house Outside

5.Plant Model In-house Internal

6.Controller In-house In-house(new)

7.Device Outside Outside(used)

8.I/F Box In-house In-house(used)

9.Relay Board In-house In-house

10.Target ECU In-house In-house

<Can use Python as a scripting language>

- Accelerate script coding by moving from the original low-level to the widely used high-level languages

- Advantages in learning costs, external resources, information, and serviceability (by means of structure)

Page 17: Virtual Based Automated Testing for Automotive Body ECUs

17Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 18: Virtual Based Automated Testing for Automotive Body ECUs

184-1. Test Asset

Test Specification

Plant Model

Test Configuration

Test Scenario

Intangible

Tangible Maintenance Cost

(intangible)

Test Scenario

Test Specification

Test Configuration

Plant Model

Other

Thousands more!!

Page 19: Virtual Based Automated Testing for Automotive Body ECUs

19

Python Library

Advantages of the framework

- Reduce code volume

- Prevent unintended variations

- Fewer bugs

4-2. Test Framework

Coding

API

API

Coding

Control

Framework

Maintenance Target

Python module Python module

Control

Before After

New Reuse

Expected effect

Costs

50% more efficient

Page 20: Virtual Based Automated Testing for Automotive Body ECUs

20

Design Test Script Architecture by Python for

5-1. Test Script Architecture Design

Executed Tool

The Python module API

The Python module APIInterface

Simulation environment

Interface

for each product

for each function

for each scenario

(SUT Interface)

class script

Page 21: Virtual Based Automated Testing for Automotive Body ECUs

21Agenda

1.Introduction

2.Background

3.HILS by Silver

4.Python Scripts Management

5.Summary

Page 22: Virtual Based Automated Testing for Automotive Body ECUs

227. Summary- Develop HILS System by Silver

Tests using real ECU are now possible in terms of test such as timing that cannot be confirmed by SILS

- Framework design for Python module of Silver

Can create and maintain test scenarios with minimal cost, even with a large number of tests

Page 23: Virtual Based Automated Testing for Automotive Body ECUs

23

Thank you for your attention!!