cvt control software testing - synopsys · 2019-11-25 · globalcrown technology co., ltd. lionel...

30
GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda, Changsha CVT control software testing

Upload: others

Post on 11-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology Co., Ltd.

Lionel Belmon, Liu Fei – Global Crown Technology, Beijing

Zeng Weihua - Jianglu Rongda, Changsha

CVT control software testing

Page 2: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

议程

1• Motivation

2• Vehicle plant modeling

3• TCU embedded software

4• Simulation validation

5• TCU Testing

Page 3: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology Co., Ltd.

Motivation

Page 4: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Develop and test TCU control software

High quality vehicle model

Realistic simulation

Interaction road - vehicle - hydraulics - TCU

Cover large number of test cases

Motivation and objectives

Page 5: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Vehicle plant model

Page 6: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology (BeiJing) Co., Ltd.

Vehicle model overview

BOB

use

ctr1

ctr2

diff_inertia

ctrR1

ctrR2

Prim

Sec

KpKs_Offset

variator

SideShaftInput

grade_percent

rm_RoadCurve

vehicle

ctr1

ctr2

FinalDrive

ctrPC

ctrS

DR

DNR

ctrP

ctrTLC_force

TC

ctr1

xPLock

HYD

ctr1

to_D

to_R pri

sec

shaft

current

force

hyd_sys

ctr1 ctr2

PumpRatio

ctr1starter_signal

ignition

om

inj

brake

starter_torque

CAN

engine

ctr1

ctr2

in1

starter

position

starter

ignition

StarteKey

Mau

inj

driver

hap

Mau

driver

BrakeTorque

hbr

Mau

prnd

spo

CAN

EMS

EngSpd_MAXLimt_Value

EngSpd_MAXLmit_RQTorque_NCCLU_Value

Torque_ShortTermRe_Value

CAN

TCU

prnd

D_BOB

N_BOB

P_BOB

R_BOB

fpo

BOB

npm

BOB

nse

BOB

ntu

FL

FR

wheel_speed

BOB

pdc

BOB

prc

BOB

ptc

pri

sf

BOB

upm

Driver

speedprofile

realspeed

brake

accel

mode

driver

f(x)x

y

car_speed

f(x)x

y

speed_profile_kmh

Driver CAN Hydraulics

Longitudinal

Vehicle dynamics

with left/right tyre

slip

Variator

BeltEngine/EMS

Torque

converter

RND clutch

Platform : SimulationX

Page 7: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Hydraulic module

Main flow pressure dynamics

Spool valves characteristics

Solenoid valve - pilot pressures

Torque converter lock-up

Primary /

Secondary

pistons for

variator

Extraction of CAD parameters

RND clutches

Solenoid pilot valves

Page 8: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology Co., Ltd.

Hydraulic Unit tests and validation

Primary cylinder pressure

Solenoid current

Adjustment of solenoid characteristics

Page 9: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Variator belt model concept

secsec

sec2

cos

AR

TP

pri

pri

mx

=

)( *pripriprii FFnK

dt

di−=

Variator ratio change by controlling

primary/secondary pressure

Max torque limit depends on pressure !

steady-state force required

Actual force

Page 10: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Adjustment of hydraulic volumes and mechanical stiffness

Fixed-step solver – 0.5 ms

~80 ODE state variables

~200 inputs/outputs variables (CAN, sensors, actuators)

Code generation from SimulationX to FMU cosimulation

Execution in QTronic Silver

Real-time simulation

Page 11: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

TCU embedded software

Page 12: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

TCU software generation process

Functional requirements

ETAS ASCET model

Embedded c-codeA2L and

calibration data

ECU hardware

ETAS INCA

Page 13: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Virtual TCU with Silver

Functional requirements

ETAS ASCET model

Embedded c-codeA2L and

calibration data

Silver virtual ECU

ETAS INCA

Page 14: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Virtual TCU platform

Page 15: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Validation of vehicle simulation

Page 16: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

~20 test drive cases to test various model characteristics :

10% pedal acceleration – coasting

30% pedal acceleration – coasting

Lever position changes : N-R-N-D-N-R-P-R-N…

Heavy braking with ABS

Tip-in , Tip-off

Test cases for simulation validation

Page 17: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology Co., Ltd.

Example of test drive validation

car speed :

measurement - simulationengine speed :

measurement - simulation

turbine speed :

measurement - simulation

Hydraulic primary – secondary pressures

Page 18: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

TCU embedded software testing

Page 19: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Usual test drive cases

NEDC, 100km/h acceleration…

Calibration parameters

Software functions activation/deactivation

Various environment conditions :

- slope, snow/water…

Fault monitoring and reaction

Test requirements

Page 20: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Fault insertion

Solenoid and hyd faults

bus faults

Wheel sensor faults

Speed sensors faultsTemperature sensors faults

Page 21: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Fault insertion – how it works

TCU application

software

Vehicle modelTarget current

Example on solenoid valve fault

Feedback current

TCU Basic software

Fault flag

Page 22: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Fault insertion – how it works

TCU

application software

Vehicle model

Current

target

Example on solenoid valve fault

Current

feedback Pyth

on

Fault mode selection

Short to GND

Short to UBat

Open line

TCU BS emulation

python

Fault flag from BS

Page 23: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Fault insertion – how it works

TCU ASW Vehicle model

Current

target

Example on solenoid valve fault

Current

feedback Pyth

on

Fault mode selection

Short to GND

Short to UBat

Open line

TCU BS emulation

python

Fault flag from BS

=0

=0

=3

Page 24: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

- Formal requirements monitoring

- Hand written test scripts

- Automatic test cases generation

- Automatic test report generation

Use of QTronic TestWeaver

Page 25: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

ABS simulation example

Belt slip

Clutch locked + Strong braking → Wheel block → strong engine deceleration

→ Transmission torque exceeded → belt Slip !

Vehicle speed

Wheel speed

Belt slip ratio

→ Belt slips are reported automatically in TestWeaver reports

Page 26: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Test case generation

Low mu high mu

High traction force

Wheel slip

Belt slip

QTronic TestWeaver automatically generates drive sequences

Example of Belt Slip found by TestWeaver

Vehicle speed

Wheel speed

Page 27: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

MC/DC coverage

Code coverage with CTC++

Page 28: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Conclusion

Page 29: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

Vehicle model + TCU + calibration :

validated simulation , reproduce very well the actual

execution of TCU in the real vehicle

Fault insertion and validation of TCU fault management

Automatic generation and evaluation of test cases

TestWeaver + requirements modeling

Very efficient support for TCU development and testing !

Realistic simulation – complex scenarios

Page 30: CVT control software testing - Synopsys · 2019-11-25 · GlobalCrown Technology Co., Ltd. Lionel Belmon, Liu Fei –Global Crown Technology, Beijing Zeng Weihua - Jianglu Rongda,

GlobalCrown Technology Co., Ltd.

谢谢!Thank you !