vehicle system control software implementation and ...€¦ · – dspace mid-size simulator; –...

18
Vehicle System Control Software Implementation and Validation for a Hybrid Powertrain Yanan Zhao, Yulei Chen, Chat Nguyen, Raju Nallapa and Ray Spiteri Vehicle & Battery Controls Research and Advanced Engineering

Upload: lamthien

Post on 28-Jul-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Vehicle System Control Software Implementation

and Validation for a Hybrid Powertrain

Yanan Zhao, Yulei Chen, Chat Nguyen, Raju Nallapa and Ray Spiteri

Vehicle & Battery ControlsResearch and Advanced Engineering

Page 2: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Outline

• Introduction

• Overview of the hybrid powertrain

• Overview of VSC software architecture

• VSC software validation process

• Unit testing

• Model-in-the-loop testing

• Hardware-in-the-loop testing

4/27/2010The MathWorks Symposium2

• Hardware-in-the-loop testing

• Vehicle testing

• Simulation vs. target (SVT) validation

• Conclusions

Page 3: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Introduction

• In the automotive industry, with the advent of various alternate fuel vehicles, vehicle control software development faces an increase in complexity of controls design requirements within shrinking design cycle timing.

• This ever-increasing challenge demands improvements in the software development and validation process.

4/27/2010The MathWorks Symposium3

• For Hybrid Electric Vehicles (HEVs), the Vehicle System Control (VSC) is a functional supervisory controller that coordinates the operation of the powertrain subsystems.

• A model-based control software validation process with PolySpace and SVT enhancement was developed for the VSC implementation of a Dual Drive hybrid powertrain development project.

Page 4: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Overview of the Hybrid Powertrain

• The Dual Drive system has two propulsion torque paths– the engine and the front-axle motor deliver propulsion torque to the

front axle through a transmission;

– for the rear axle, the propulsion torque is delivered by the rear-axle motor.

• There are three main driving modes in vehicle operation– Electric Drive: the vehicle is propelled electrically using the battery to

power the rear-axle motor.

– Series Drive: the engine drives the CISG to generate electricity for the ERAD to propel the vehicle

– Hybrid Drive: the engine is the primary driving source while the rear-

4/27/2010The MathWorks Symposium4

– Hybrid Drive: the engine is the primary driving source while the rear-axle motor can provide additional electric boost torque if necessary.

Page 5: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Overview of VSC Software Architecture

• The Integrated Modeling Environment (IME) is used for the VSC control software development.

– It provides the flexibility to develop the VSC in a combined legacy C code and Simulink model-based environment.

• The core algorithm of VSC, i.e., Torque Manager, can be decomposed into features, and each feature contains subsystems running at different task rates.

4/27/2010The MathWorks Symposium5

Page 6: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Overview of VSC Software Architecture (2)

• At each task rate the subsystem is composed of Function Identifications (FIDs), and a FID represents the lowest level functional unit with a unique ID which implements specific function requirements of a feature.

4/27/2010The MathWorks Symposium6

Page 7: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

VSC Software Validation Process

• Software validation process is part of the model-based control development process which includes:– unit testing;

– model-in-the-loop (MIL) testing;

– hardware-in-the-loop (HIL) testing;

– vehicle testing.

4/27/2010The MathWorks Symposium7

Page 8: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

VSC Software Validation Process (2)

• The evolution of controls software validation strategy with different test platforms illustrates that the software functions

are tested gradually– from simulation to real-time hardware implementation;

– from unit level (FID), to component level (feature) and then to vehicle level.

4/27/2010The MathWorks Symposium8

MIL testing HIL testing

ECU

simulator

vehicle testing

ECUcontroller model

plant model

controller unit

unit testing

integration

Page 9: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Unit Testing

• Unit testing– tests each implementation of the algorithms at the

lowest level of functionality;

– is usually performed using open-loop desktop simulation within the Simulink environment;

– incorporates developing test harness and generating test cases;

4/27/2010The MathWorks Symposium9

– tests the algorithms and outputs based on various conditions as defined from functional requirements.

s1

s2

s3

s4

s5

s6

s7

o1

f id

s1

s2

s3

s4

s5

s6

s7

Signal Builder

Scope

Page 10: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Unit Testing: Process

• For VSC implementation with the IME environment, unit testing and FIDs integration process can be split into two

paths:– For hand-coded FIDs, PolySpace testing tool can be used first to

perform automatic ANSI C basic checks and run time error checks.

4/27/2010The MathWorks Symposium10

Vehicle

System Control

Unit

Test

FID

Legacy code

Block

PolySpace

Test

FID

Hand-coded

Unit

Test FID

Simulink

Page 11: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Unit Testing: PolySpace

• The use of PolySpace testing tool increases software quality, productivity and reduces warranty costs by detecting errors at an early stage.

• The test enhances the proposed control development process for the mixed C/Simulink implementation.

4/27/2010The MathWorks Symposium11

Page 12: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Model-in-the-loop Environment

• In the model-based design process, a plant model provides the basis for both the MIL and HIL testing.

• Vehicle Model Architecture (VMA) is a standard modeling structure at Ford– all key vehicle functions are represented with subsystems in the VMA;

– for subsystems that have their own controllers (engine, transmission, etc.) the plant model also includes representations of these controllers;

– these controller models simulate the sensing, control and actuation local to each subsystem.

• For the MIL testing, the plant model is integrated with the actual VSC control algorithms.

4/27/2010The MathWorks Symposium12

control algorithms. • A HIL plant model is obtained from the MIL plant model.

VehSysCtrl

(Vsc)

Transmission

(Trn)

Steering

(Ste)

Powerplant

(Pwp)

Online

(HIL)

Environment

(Env)

Electrical

(Ele)

Driver

(Drv)

Driveline

(Dln)

Chassis

(Cha)

Bus

Brakes

(Brk)

Auxiliaries

(Aux)

Ms_GloblBus

<Ms_CtrlGloblBus>

<Ms_PlntGloblBus>

<Ms_Drv GloblBus>

<Ms_Env GloblBus>

Ms_MainBus<Ms_HilGloblBus>

Page 13: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Model-in-the-loop Testing

• MIL testing– provides closed-loop desktop simulation to test the integrated VSC

functions;

– allows developers to validate features and interactions between FIDs with vehicle response against user specified input signals and calibrations.

• Test inputs used for a MIL test include:– driver inputs,

• from a standard drive cycle, or a user pre-defined drive cycle, or interactive user operated drive cycle;

4/27/2010The MathWorks Symposium13

interactive user operated drive cycle;

– overridden inputs,

• signals/calibrations defined with specified ranges or values;

– inputs provided by vehicle plant feedback.• A feature Design Verification Method (DVM)

– contains test plans to validate VSC features against feature design requirements;

– is used to setup the tests, conduct the tests, and determine whether the desired results are met.

Page 14: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Hardware-in-the-loop Testing

• In HIL environment,– the auto-generated C code for the integrated VSC software exists

in MicroAutoBox rapid prototyping module.

– the rest of the vehicle system including the plant and other controllers are running in a simulator.

• HIL testing allows the developers to test VSC functionality with hardware in real-time and also provides the capability to test the I/O interface.

4/27/2010The MathWorks Symposium14

• It can significantly reduce the cost and usage of the vehicle while detecting potential issues at an early stage.

Page 15: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Hardware-in-the-Loop Testing (2)

• The VSC HIL consists of the following hardware– dSPACE mid-size simulator;

– dSPACE MicroAutoBox;

– break-out-box;

– dSPACE DS830 multilink panel;

– signal conditioning box;

– shifter;

– PC.

• For the Dual Drive HEV, the VSC HIL was developed as a platform to validate

4/27/2010The MathWorks Symposium15

platform to validate – VSC hardwired inputs and outputs;

– low and high level driver software;

– CAN inputs and outputs;

– signal conditioning box;

– feature level functions;

– high level functions.

• HIL testing uses the same DVM as used in the MIL testing.

Page 16: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Vehicle Testing

• In vehicle testing, all major VSC functions were tested in the prototype vehicle.

• The New European Driving Cycle (NEDC) test was also run on the chassis dyno to validate fuel consumption, vehicle emission and battery State of Charge (SOC) sustaining.

• The benefits of testing in this platform are the availability of all electronic controllers and their interactions with each other for vehicle controls development.

• In addition, the actual hardware components can provide

4/27/2010The MathWorks Symposium16

• In addition, the actual hardware components can provide the nonlinear inputs to the system and present dynamic interactions in many degrees of freedom which is not possible in the MIL/HIL environment.

Page 17: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Simulation vs. Target Validation

• A Simulation vs. Target (SVT) validation method was developed to validate the response and functionality of the VSC in simulation to be identical with the target environment.

• In SVT implementation,– in the target (vehicle/HIL) environment, a test (e.g. Wide Open Throttle) is

conducted and its inputs and outputs are collected using dSPACE ControlDesk;

– then in the simulation environment, the target inputs are used for a VSC SVT simulation to capture the simulation outputs.

– after that, simulation and target outputs are compared graphically.

• The SVT process was used as part of the VSC validation. Some output

4/27/2010The MathWorks Symposium17

• The SVT process was used as part of the VSC validation. Some output discrepancies were observed, and the related VSC implementation defects were fixed. Target Environment

VSCController

VSCInput

Low LevelDrivers

VSCOutput

Low LevelDrivers

ControlDeskOutputResults

Comparator

Simulation Environment

VSCController

Model

Target Environment

VSCController

VSCInput

Low LevelDrivers

VSCOutput

Low LevelDrivers

ControlDeskOutputResults

Comparator

Simulation Environment

VSCController

Model

Page 18: Vehicle System Control Software Implementation and ...€¦ · – dSPACE mid-size simulator; – dSPACE MicroAutoBox; – break-out-box; – dSPACE DS830 multilink panel; – signal

Conclusions

• With the complex systems and rapid pace of control software development, a robust control software validation process must be utilized to capture and eliminate defects and errors.

• A model-based control validation process was developed for the Dual Drive hybrid powertrain.

• All software feature functional requirements were successfully validated with achieved functional

4/27/2010The MathWorks Symposium18

successfully validated with achieved functional readiness gateway milestone.

• This process can be generalized to model-based control software validation with mixed C/Simulink environment.