Virtual Test Driving in the Development Process New Methods and Tools for Current Challenges

Similar documents
SOLUTIONS FOR TESTING CAMERA-BASED ADVANCED DRIVER ASSISTANCE SYSTEMS SOLUTIONS FOR VIRTUAL TEST DRIVING

Virtualizing the TCU of BMW's 8 speed transmission


Designing a software framework for automated driving. Dr.-Ing. Sebastian Ohl, 2017 October 12 th

Real and Virtual Development with SystemDesk

FULL VIRTUALIZATION OF RENAULT'S ENGINE MANAGEMENT SOFTWARE APPLICATION TO SYSTEM DEVELOPMENT

dspace GmbH Rathenaustr Paderborn Germany

Virtual Hardware ECU How to Significantly Increase Your Testing Throughput!

Cluster Simulation with Integrated Workflow and Test Management. Chandu Puliroju dspace Inc.

Option Driver Assistance. Product Information

CANape Option Bypassing

Virtualization of Heterogeneous Electronic Control Units Testing and Validating Car2X Communication

Tooling Overview ADAS - Status & Ongoing Developments

Simulation-based development of automotive control software with Modelica

Can We Improve Autonomous Driving With IoT and Cloud?

Arccore AB 2017, all rights reserved. Accelerating innovation

Taking the Right Turn with Safe and Modular Solutions for the Automotive Industry

RTMaps Embedded facilitating development and testing of complex HAD software on modern ADAS platforms

ECU Measurement and Calibration in a Real-Time Test Environment. Roland Magolei National Instruments Engineering GmbH Embedded Networks

Prototyping the Autonomous Future Joe Cassar, Engineering Group Manager. dspace Inc Pontiac Trail, Wixom, MI 48393

NVIDIA AI BRAIN OF SELF DRIVING AND HD MAPPING. September 13, 2016

Object Fusion for an Advanced Emergency Braking System (AEBS) Jonny Andersson

High-End Datalogging System for Autonomus Driving V

Measuring Everything. White Paper

Failure Diagnosis and Prognosis for Automotive Systems. Tom Fuhrman General Motors R&D IFIP Workshop June 25-27, 2010

Ensuring quality for ADAS applications with a model-based approach

SW-Update. Thomas Fleischmann June 5 th 2015

Guido Sandmann MathWorks GmbH. Michael Seibt Mentor Graphics GmbH ABSTRACT INTRODUCTION - WORKFLOW OVERVIEW

Flash Bootloader. Product Information

Simulation-based development of automotive control software with Modelica

News about ECU-TEST 7.0

Design your autonomous vehicle applications with NVIDIA DriveWorks components on RTMaps

Autonomous Driving Solutions

Designing GPU-accelerated applications with RTMaps (Real-Time Multisensor Applications) Framework and NVIDIA DriveWorks

Automated test of the AMG Speedshift DCT control software

SYNCHRONOUS MULTIMEDIA AND VEHICLE DATA

Mentor Automotive Save Energy with Embedded Software! Andrew Patterson Presented to CENEX 14 th September 2016

Volvo Car Group Jonn Lantz Agile by Models

Realizing Automated Driving Systems using Ethernet TSN and Adaptive AUTOSAR

AUTOMATED TEST OF CVT CONTROL SOFTWARE, USING FMI AND MODELICA MODELS

New ARMv8-R technology for real-time control in safetyrelated

Tools and Methods for Validation and Verification as requested by ISO26262

vsignalyzer Product Information

Software and Hardware Tools for Driver Assistance & Automated Driving Chris Thibeault Head of US Product Expert Group Elektrobit November 8, 2018

D2.1.4 Development Method Restricted (PP) Copyright DESERVE. Development Method. Sub Project SP2 ADAS development platform

10 th AUTOSAR Open Conference

Anticipatory Shifting Optimization of a Transmission Control Unit for an Automatic Transmission through Advanced Driver Assistance Systems

Simulation: A Must for Autonomous Driving

Designing a Pick and Place Robotics Application Using MATLAB and Simulink

TomTom Innovation. Hans Aerts VP Software Development Business Unit Automotive November 2015

A NEW COMPUTING ERA. Shanker Trivedi Senior Vice President Enterprise Business at NVIDIA

Creating outstanding digital cockpits with Qt Automotive Suite

RazorMotion - The next level of development and evaluation is here. Highly automated driving platform for development and evaluation

Automated test of the AMG Speedshift DCT control software

ROS Interfaced Autonomous Control System in the Loop Real time CarMaker simulated sensor data for system under test

Advanced IP solutions enabling the autonomous driving revolution

Mentor Automotive. Vehicle Network Design to meet the needs of ADAS and Autonomous Driving

Measurement Solution for new Radar Microcontroller V

Seamless Tool Chain for Testing Camera-based Advanced Driver Assistance Systems

High Speed Measurement For ADAS And Fast Analysis

10 th AUTOSAR Open Conference

DEEP NEURAL NETWORKS CHANGING THE AUTONOMOUS VEHICLE LANDSCAPE. Dennis Lui August 2017

AUTOSAR proofs to be THE automotive software platform for intelligent mobility

A Hardware-in-the-Loop Testing Platform Based on a Common Off-The-Shelf Non-Real-Time Simulation PC

IMPROVING ADAS VALIDATION WITH MBT

CANoe 6.0. The Professional Development and Test Tool for CAN, LIN, MOST, FlexRay and J1587 TOOLS FOR NETWORKS AND DISTRIBUTED SYSTEMS

Solutions for Smarter Driving ADAS

ENABLING MOBILE INTERFACE BRIDGING IN ADAS AND INFOTAINMENT APPLICATIONS

S32K Microcontroller Press Pack

How Microcontrollers help GPUs in Autonomous Drive

MIGRATING TO CAN FD. Tony Adamson. Marketing Director CAN / LIN / FlexRay

10 th AUTOSAR Open Conference

Experiences with CANoe-based Fault Injection for AUTOSAR

Communication Patterns in Safety Critical Systems for ADAS & Autonomous Vehicles Thorsten Wilmer Tech AD Berlin, 5. March 2018

Model-Based Design of Automotive RT Applications

rcube2: Advanced Rapid Prototyping Electronic Control Unit

ETHERNET JOURNEY AT JAGUAR LAND ROVER CHALLENGES IN THE DEVELOPMENT OF AN ETHERNET BACKBONE

Infotainment Solutions. with Open Source and i.mx6. mentor.com/embedded. Andrew Patterson Business Development Director Embedded Automotive

Developing Algorithms for Robotics and Autonomous Systems

Turbocharging Connectivity Beyond Cellular

LabVIEW FPGA in Hardware-in-the-Loop Simulation Applications

LABCAR-OPERATOR What s new

Fault-Injection testing and code coverage measurement using Virtual Prototypes on the context of the ISO standard

Model Based Systems Engineering Engine Control: from concept to validation. Jan Smolders Technical Account Manager

Towards Fully-automated Driving. tue-mps.org. Challenges and Potential Solutions. Dr. Gijs Dubbelman Mobile Perception Systems EE-SPS/VCA

ARM processors driving automotive innovation

Smart Antennas and Hypervisor: Enabling Secure Convergence. July 5, 2017

Silver + TestWeaver Tools for Simulation-Based Design System Test and Validation

OHB System AG Anh Trung. Developing a SMP2 compliant Hardware-In-the-Loop simulation framework

Giancarlo Vasta, Magneti Marelli, Lucia Lo Bello, University of Catania,

Real-time Ethernet Residual Bus Simulation: A Model-Based Testing Approach for the Next-Generation In-Car Network

Module Test in System Context

Advanced Driver Assistance Systems: A Cost-Effective Implementation of the Forward Collision Warning Module

Electromechanical Braking (Brake By-Wire)

A multilevel simulation framework for highly automated harvest processes enabled by environmental sensor systems

Solid State LiDAR for Ubiquitous 3D Sensing

Networking with CAN FD have you also thought about testing?

Full Virtualization of Renault's Engine Management Software and Application to System Development

Paul Goossens Product Director

Dr. Andreas Both / Zhang Enqin Automotive Runtime Software

Transcription:

Virtual Test Driving in the Development Process New Methods and Tools for Current Challenges

Episode 1: Hardware-in-the-Loop

Current and Future Challenges for Function Verification with HIL Highly networked functions Platform ECUs/ Super ECUs Sensor data fusion Neural networks Artificial intelligence Automated Driving 3

Software / Office Environment p (.) Aero g (.) h (.) z (.) Chassis n (.) Sensor f (.) d (.) y (.) ADAS j (.) c (.) b (.) k (.) m (.) x (.) 4

Hardware-in-the-Loop Software / Office environment Environment Sensor f (.) p (.) d (.) y (.) ADAS ECU j (.) Aero g (.) c (.) h (.) b (.) k (.) z (.) m (.) Chassis n (.) x (.) 5

Existing Implementation with CarMaker Databases.dbc.xml.arxml CANiogen cmdline tool fibex2flex cmdline tool cmdline options APP_VER = "Car_Generic <insert.your.version.no>" APP_NAME = CarMaker.$(ARCH)$(EXE_EXT) OPT_CFLAGS = -g -O1 LD_LIBS = $(CAR_LIB) \ $(CARMAKER_LIB) $(DRIVER_LIB) $(ROAD_LIB) $(TIRE_LIB) $(TAME_LIB) OBJS = CM_Main.o CM_Vehicle.o User.o OBJS_xeno = IO.o $(OBJS_CANIOGEN) $(OBJS_CANIOGEN_USER) OBJS_linux = OBJS_linux64 = OBJS_win32 = OBJS_win64 = # Prepend local include/library directory to include path: # PREINC_CFLAGS += -I../include - C code / Infofile editing void IO_CAN_Cam_User_Out( const unsigned int CycleNo) { /* Modify/Delete following lines, assign values to CAN signal variables */ /* ECU CAM_Out */ /* CAN Msg 0x550 (CAMcommon) */ IO_CAN_Cam_Timings.SendPeriod = 1; /*Periodenzeit in Millisekunden*/ IO_CAN_Cam_Timings.SendDistrib = 0; /*Zeitversatz der Botschaft*/ IO_CAN_Cam.EPM.MEcommon_DLC = IO_CAN_Cam_MEcommon_DLC; /*Data length coding gibt Länge der Botschaft an*/ IO_CAN_Cam.Blinker_Left = VehicleControl.Lights.IndL; IO_CAN_Cam.Blinker_Left_State = IO_CAN_Cam_SigStates[IO_CAN_Cam_SState_ C code (IO_CAN.c,) Infofiles (FlexRay Parameters, ) 6

Bus Configurator For rest bus simulation Databases.dbc LIVE DEMO BUS CONFIGURATOR Infofiles - FlexRayParameters - RBSParameters - FlexCardParameters.xml.arxml Infofiles - CANParameters - RBSParameters 7

Choose your database BUS CONFIGURATOR Configure your restbus configuration Map and refine your signals Save and run your test 8

BUS CONFIGURATOR Features at a glance Full FlexRay support (FIBEX, AUTOSAR) Full CAN support (FIBEX, AUTOSAR, Vector DBC) Automatic detection of database type Automatic generation of frames, PDUs and signals GUI-based mapping of signals to Data Dictionary, Constants, RollingCount, E2E_P2, CRC Additional functions for usability (e.g. filter, hooks, trigger) Infofile approach enables simulation start on-the-fly 9

Automotive Sensors Front View Kamera Radar GPS Ultrasonic Lidar Rear View Kamera Surround View Kamera 10

Hardware-in-the-Loop Environment Sensor Sensors f (.) p (.) d (.) y (.) ADAS ECU j (.) Aero g (.) c (.) h (.) b (.) k (.) z (.) m (.) Chassis n (.) x (.) 11

Object List Based Injection Sensors Bypass (object lists) ECU Restbus simulation HIL TEST SYSTEM CarMaker Xpack4 RT-System Device under test 12

Radar Sensor 13

Physical Sensor Integration Sensors Sensor stimuli ECU Restbus simulation HIL TEST SYSTEM CarMaker Xpack4 RT-System Device under test 14

Example: Ultrasonic Sensor Box HIL TEST SYSTEM CarMaker Xpack4 RT-System ECU Restbus simulation Device under test 15

Example: Ultrasonic Sensor Box CarMaker Xpack4 RT-System Device under test ECU Restbus simulation HIL TEST SYSTEM 16

Emulation of Sensor Signals Sensors Sensor emulation ECU Restbus simulation HIL TEST SYSTEM CarMaker Xpack4 RT-System Device under test 17

Example: Video Interface Box Sending the virtual scenario Sending the data to device under test Sending back information to CarMaker System reaction in CarMaker Xpack4 system with CarMaker Video Interface Box Closed Loop Testing Device under test 18

ADAS Sensor Interfaces Overview Physical (sensor-in-the-loop) Technology Emulation Object list based approach Camera Screen capturing = Monitor-HIL Camera RSI Object Sensor / Line Sensor / Traffic Sign Sensor Sensors Ultrasonic Lidar Ultrasonic sensor box Lidar target simulator with partners of IPG Automotive Ultrasonic RSI Free Space Sensor / (Lidar RSI coming soon) Object Sensor Object Sensor Radar Radar target simulator with partners of IPG Automotive Radar RSI Object Sensor / Radar HiFi Sensor Every sensor type matches at least one HIL solution Solution depends on requirements and available information 19

LIVE DEMO HARDWARE-IN-THE-LOOP 20

Drive PX2 HIL Demo System Device under Test NVIDIA Drive PX2 GMSL Restbus simulation / Radar data Video Interface Box HIL TEST SYSTEM f (.) p (.) Radar RSI y (.) CarMaker c (.) g (.) b (.) HDMI Xpack4 RT-PC 21

Drive PX2 HIL Demo System Device under Test NVIDIA Drive PX2 HDMI GMSL Restbus simulation / Radar data Video Interface Box HIL TEST SYSTEM f (.) p (.) Radar RSI y (.) CarMaker c (.) Xpack4 RT-PC g (.) b (.) 22

CarMaker Runs on Different Hardware Platforms Function under test integrated in CarMaker HIL software as middleware running on Hardware platform (i.e. Xpack4, National Instruments PXI, dspace Scalexio & DS1006, ETAS Labcar) 23

Episode 2: Virtual ECUs

2.0 FMUs allow a seamless and easy integration of own or third-party models into CarMaker Automatic conversion of physical units between connected signals GUI proposes factor and offset for conversion automatically based on given units Tunable parameters allow a runtime influencing of the FMU 25

Silver Virtual ECUs Front-loading validation and testing during automotive software development 26

What is a virtual ECU? Runs on a PC like the ECU in the car Silver vecu and ECU share the same code C sources or Target HEX code vecu and ECU have same interfaces Calibration CANape, INCA Configuration files PAR, DCM Networking CAN, LIN, FlexRay Plant Model 27

Software Development Process.mdl Code gen. and hand coding C code libs Build for target CPU Model-based development automotive software.hex Flash Feedback for developers ECU test and validation HIL ECU 28

Software Development Process.mdl Code gen. and hand coding C code libs Build for target CPU Model-based development automotive software.hex Flash Feedback for developers ECU test and validation Few and expensive: BOTTLENECK! Days or weeks: LATE! ECU HIL 29

Silver Virtual ECUs Software-in-the-Loop.mdl Code gen. and hand coding C code libs Build for target CPU Benefit of SIL: same as MIL plus More SW-in-the-loop Behavior closer to real ECU Just 1 process for code generation Build vecu.hex Flash Feedback for developers ECU test and validation Minutes or days! ECU HIL 30

Silver Virtual ECUs Chip Simulation.mdl Code gen. and hand coding C code libs Build for target CPU Benefit of vpil: same as SIL plus No model or C code required Build vecu.hex flash Feedback for developers ECU test and validation Minutes or days! ECU HIL 31

Build a Silver Virtual ECU Configuration file for Adaptive Cruise Control 01 # set up compiler and files 02 visualstudioversion("100") # use Visual Studio 10.0 compiler 03 inc_dir("$(project)\\src") # location of C header files 04 src_files("$(project)\\src\\.+\.c") # C source files 05 06 # tasks of the virtual ACC 07 task_initial(task_init) 08 task_periodic(task_10ms, 0.01) 09 10 # interface of the virtual ACC 11 input(acc_isactive) 12 input(acc_desiredspd) 13 input(dm_brake) 14 input(dm_gas) 15 output(vc_brake) 16 output(vc_gas) sbsbuild Virtual ACC ECU functions RTOS emulation.c,.h,.lib.a2l,.dbc.ldf 4 GB virtual memory A2L conversion XCP flash 32

Import Silver FMU into CarMaker 7.0 Import is straightforward Just edit the configuration No need to rebuild CarMaker.exe 33

Virtual Test Driving: CarMaker & Silver Virtual ECU Silver Entire Silver setup acts as FMU One or many networked vecus User interface Optional plant models Validation and test CarMaker 7.0 Use TestWeaver or any other test automation solution available for CarMaker and/or Silver 34

QTronic Silver Summary Silver offers PC execution platform for virtual ECUs Proven build process for virtual ECUs Co-simulation with CarMaker 6.0.4 and later Benefit Extremely short edit/run cycle for agile development Source-level debugger on PC Used to front-load validation and testing 35

Episode 3: Automated Driving

Searching for Future Solutions in Automated Driving ROS in General Robot Operating System (ROS) Open-source software framework Background in robotics Rising interest in the ADAS and AD community Autonomous software stack available Flexible architecture, very useful especially for big, complex systems Supports message-based inter-process communication even across hardware boundaries Hardware abstraction, device control and package management available 37

CarMaker / TruckMaker ROS (Robot Operating System) support There are numerous trade-offs in creating a ROS AD architecture in combination with the simulation environment ROS node as plugin in CarMaker gives you a fast start Node 1 Node 2 CarMaker CarMaker builds the perfect completion for a ROS-based virtual vehicle development Simulates the missing environment Provides the required flexibility for typical system and test designs Straightforward data exchange between CarMaker and ROS 38

Possible Architecture for Automated Driving Closed loop for automated driving function testing Radar data processing /ROS node Radar data Camera data processing /ROS node Processed sensor data Processed sensor data Map data processing /ROS node Processed sensor data Sensor data fusion /ROS node Environment model Decision making /ROS node Desired maneuver Trajectory planning /ROS node Planned trajectory Control signal generation /ROS node Camera data Road data Autonomous software stack Control signals CarMaker environment /ROS node CarMaker 39

Possible Architecture for Automated Driving Closed loop for automated driving function testing Radar data processing /ROS node Radar data Camera data processing /ROS node Processed sensor data Processed sensor data Map data processing /ROS node Processed sensor data Autonomous software stack Sensor data fusion /ROS node Environment model Decision making /ROS node Desired maneuver Trajectory planning /ROS node Planned trajectory Control signal generation /ROS node Camera data Road data Control signals CarMaker environment /ROS node CarMaker 40

Demo Architecture for ACC Control Closed loop for ADAS function testing Autonomous software stack ACC control algorithm /ROS node Object sensor data + vehicle data Control signals CarMaker environment /ROS node CarMaker 41

LIVE DEMO CarMaker & ROS Proof of Concept 42

Episode 4: High-Performance Computing

Parallelization Analysis Single-domain Multi-domain Evenly distributed atomic units Uneven model split Constant model complexity Purpose driven fidelity variable model complexity Medium serialization share High serialization share 44

The Challenge of Speeding Up the Simulation According to Amdahl's law 2 20 200 ηη s = TT/(tttt + tttt + tttt/nnnn) Parallel portion 50% 95% 0 4 16 32 64 128 256 512 1024 Number of cores 45

Parallelization on TestRun Level 46

Parallelization on TestRun Level 47

The Solution According to Amdahl's and Gustafson s law Acceleration factor 2 20 200 ηη s = TT/(tttt + tttt + tttt/nnnn) Parallel portion 50% 95% 99,5% ηη s = 1 tttt + nn pp tttt 0 4 16 32 64 128 256 512 1024 Number of cores 48

HPC Classes HPC with scheduler Test Manager HPC config HPC light Number of cores few many 49

HPC Light ok ok HPC Light Specifications Scheduler HPC Scalability Dedicated Hardware Scheduling Embedded in CarMaker Test Manager 1 node < 100 cores Single PC, multi-core Limitation of parallel processes ok Resiliency No special implementation ok ok Health Checks Process monitoring (tbi) 50

LIVE DEMO HPC Light 51

Re-Use Your Company Infrastructure HPC with scheduler ok?ok?? ok? ok 52

HPC with Scheduler HPC Scheduler With external scheduler (e.g. PBS professional) Specifications HPC Scalability Dedicated Hardware Scheduling beyond 50,000 nodes millions of cores Clusters, clouds, and supercomputers Balancing job turnaround time and utilization with optimal job placement Resiliency Includes automatic fail-over architecture with no single point of failure ok ok Health Checks Monitors and automatically mitigates faults with a comprehensive health check framework 53

Runtime Licenses Office HIL Office HIL Main GUI, APO SDK with C-interface CarMaker for Simulink Test Manager Test Configurator Office HIL H I L H I LI H L H I LI H L H I LI H L H I L FMI, SL plugins Simulation backend Maneuver, road, traffic, driver GUIs IPGMovie, IPGControl, Instruments Vehicle GUI with encryption Remote control 54

Runtime Licenses Office HIL Office HIL Create simulation frameworks Create test catalogs Office HIL H I L H I LI H L H I LI H L H I LI H L H I L Integrate models Build scenarios with road networks and traffic Interactively run simulations Execute pre-defined test catalogs No GUI Create and encrypt virtual prototypes Automation interface 55

Use Case Scenarios Office simulations CarMaker/Office Full functionality Simulation framework established Third- Party Software CarMaker/Office Operate For interactive operation by humans CarMaker/Office Runtime For automatic execution 56

Use Case Scenarios HIL simulations CarMaker/HIL Full functionality Simulation framework established Third- Party Software CarMaker/HIL Operate For interactive operation by humans CarMaker/HIL Runtime For automatic execution HIL HIL HIL HIL HIL HIL HIL 57

HPC Applications Just the first ideas Use HPC to test millions of test kilometers in simulation using test automation ADAS & AD Continuous integration - Robustness checks of daily builds Stochastic vs. deterministic traffic simulation - Simulate the unexpected Generate simulation data to train neural networks Other Domains Identify the best vehicle dynamics setup Calibrate and analyze emissions and energy consumption with design of experiments (DoE) 58

IPGDriver Lane Change Optimization IPGDriver is now able to identify a driving strategy for the fastest ride in double lane change and soon in slalom maneuvers 59