applying mathworks tools to automotive embedded ......2016/10/05  · • regenerative braking...

21
1 Applying MathWorks Tools to Automotive Embedded Software Development Neil Robson Changan UK R&D Centre Ltd 2016-10-05

Upload: others

Post on 10-Nov-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

1

Applying MathWorks Tools to

Automotive Embedded Software

Development

Neil Robson

Changan UK R&D Centre Ltd

2016-10-05

Page 2: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

2

CONTENTS

Changan

Introduction1 Capability

Building2Results4 Next Steps5

Lead Project3

6 Conclusion

Page 3: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

3

1. Changan Introduction

长安动力品牌Changan

Powertrain Brand

长安福特Changan Ford

长安铃木Changan Suzuki

长安马自达

Changan Mazda

长安标致雪铁龙Changan PSA

Top Four China

Automotive

Industry Groups

0.0

0.5

1.0

1.5

2.0

2.5

3.0

1980 1985 1990 1995 2000 2005 2010 2015 2020

Mill

ion

ve

hic

les

Year

Vehicle sales volumes

Page 4: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

4

1. Changan Introduction

Birmingham, UK

Power Train

Chongqing

Study on

comprehensive

technology of

automobile

Turin, Italy

Styling,

bodywork

Detroit, USA

Chassis

technology and

Autonomous

vehicles

Beijing

New energy

automotive

technology

Shanghai

Vehicle integration

Yokohama, Japan

Interior and exterior

trimming, automobile

engineering

Haerbin

Vehicle

development

Jiangxi

Power technology

Page 5: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

5

1. Changan Introduction

Changan UK R&D Centre Limited (CAUK)

Our mission:

• To design and develop high quality, high performance

powertrains to support Changan’s global requirements

• To develop a technology road map and expertise for

Changan Powertrain

• To create an environment and opportunities for staff

development

Our vision:

• To become a World Class leading Powertrain R&D

centre, a promoter and practitioner of green powertrain

technologies

Changan UK R&D Centre Ltd.

Parkside

Birmingham Business Park

Birmingham

B37 7YG

http://www.changanuk.com

Page 6: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

6

2. Capability Building

• Why do projects with high software content repeatedly fail?

Page 7: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

7

CAUK key System and Software

Engineering Implementation Strategy:

• Gain sponsorship from Changan

senior management

• Set up a well-funded capability team

focusing on System and Software

Engineering improvement

• Phased introduction approach with

carefully selected external support

• Document Process, methods and

tools in a SEMP

Changan UK strategy focuses on People First then Infrastructure,

Process and finally Tools

2. Capability Building

• Development of complete “Systems” capability for “Software Intensive High Integrity

Systems”

Page 8: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

8

Page 8

2. Capability Building

Focus of this presentation

System-Release Test

System-Integration & test

System Requirements

Analysis

System-Design

Tooling Manufacturing

Mechanics-Module

Manufacturing

(Prototypes)

SW-Implemen-

tation

Software Domain

Electrical/Electronics Domain

Mechanical Domain

Control-Integration

and -test

SW/HW Integration Domain

• Process development

• Tool selection and

integration

Page 9: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

99

• Planned and strategic reuse of

software assets

• Management of variability to achieve

different behaviours from a common

software base

2. Capability Building

• Software Product Lines: developing a “software factory”*

http://www.biglever.com/solution/framework.html

* Software Engineering Institute at Carnegie Mellon is a good resource http://www.sei.cmu.edu/productlines/

Page 10: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

10

Key Features:

• Downsized 3 cylinder turbocharged

gasoline direct injection engine

• Dual Clutch 7 speed transmission

• P2 hybrid module

• High torque output electric

machine

• Drive in Electric Vehicle (EV)

mode with K0 clutch open

• Large traction battery allows in

excess of 50 km EV range

• Regenerative Braking system to

harvest the kinetic energy under

braking demand

3. Lead Project

• Advanced Hybrid Powertrain for Plug-in Hybrid Electric Passenger Vehicle (PHEV)

Page 11: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

11

3. Lead Project

• Complex control system architecture

Initial CAUK software

development focus

Page 12: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

12

4. Results

• Enabling the “software factory”

• Flow system requirements efficiently into the software development process

• Design and establish the software architecture

• Enable configuration and variation management

• Minimise documentation overheads

• Develop an efficient code generation process

Page 13: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

13

4. Results

• Flow system requirements efficiently into the software development process

Use of Mathworks

Consultancy Services to

leverage tool advantage

• Simulink &

Stateflow

• Embedded

Coder

• Simulink

Projects

• Report

Generator

Model Driven Approach

Page 14: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

14

“Controls” deals with

the physics of the

specific actuators to

achieve key states

(No actuator knows

about any other!)

“Demands” drives an

individual resource through

its key states

(No resource knows about

any other!)

“Co-ordinators”

choreograph the

available

resources

“Shift Sequencers” contain the

sequences for individual shift

types

“Modes”

control When

and What

type of shift is

allowed

4. Results• Design and establish the software architecture

Page 15: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

15

4. Results

• Enable configuration and variation

management

• Version control is not enough!

• Process for multiple concurrent developers

• Model comparison and merge is your friend –

use the tools!

Model merge

Use of advanced branching

www.perforce.com

Page 16: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

16

4. Results

• Minimise documentation overheads

• Creation of Design documentation utilising

Simulink Report Generator

• Leverage Mathworks expertise

• The model is the documentation

Model Documentation Automatic Generation

Page 17: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

17

4. Results

• Develop an efficient code

generation process –

Simulink Embedded Coder

• Configuration of data

dictionary

Page 18: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

18

4. Results

• Develop an efficient code

generation process –

Simulink Embedded Coder

• Target code generation

optimisation^

• Automate software build

– generation of binary

files and calibration tool

data files*

^ Software target optimisation > 15%

improvement in execution speed

* Software build environment

optimisation and automation has

resulted in > 10 times improvement in

build times

Page 19: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

19

“The MBSE approach deployed on the project has already realised significant

benefits and reduced technical risks “

• Model Based Approach - Flow from

System to Software:

• Improved Collaboration

Substantial less translation

work due to more diagrams

• Structured and clearer

Requirements

Documentation at Vehicle and

Powertrain level typically 50%

larger in content

• Issues found Earlier

100s more technical issues

found for the same phase of

development

• Features and Re-use

considered from the Outset

4. Results

Page 20: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

20

http://auto2xtech.com/articles/automotive-cyber-security-the-connected-car-forecast-

2015-2025/

5. Next Steps

• Optimisation of processes and leverage tool capability

for V&V (Further development of Model Advisor

checks, Simulink Design Verifier, Simulink Test)

• Efficient ISO26262 compliance (Simulink V&V,

certification kit)

• Improve traceability and integration between Systems

and Software processes and tools

• Expansion of process/team/tools for global software

collaboration (US, Europe, China)

• Cyber-security and autonomous vehicle applications

Page 21: Applying MathWorks Tools to Automotive Embedded ......2016/10/05  · • Regenerative Braking system to harvest the kinetic energy under braking demand 3. Lead Project • Advanced

21

• Other organisations experience may or may not be relevant to your situation.

• Picking what works for you and discarding what doesn’t is a pragmatic approach.

• Key learning points from our experience are:

• Consider capability pyramid as a balanced set of requirements

• Initial focus must be on basic processes and team formation

• Tool evaluation is time-consuming but will pay back multiple times

• Develop your requirements for process and tools

• Leverage tool supplier expertise – don’t sink the ship for a penny-worth of tar

• Road testing process and tools in a real-world application is the best way to fine

tune

6. Conclusion

The End