Vector Webinar AUTOSAR Testing 20111115 en
Vector Webinar AUTOSAR Testing 20111115 en
Vector Webinar AUTOSAR Testing 20111115 en
Webinar 2011-11-15
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V1.0 2011-11-14
Agenda
> Introduction Solution Overview Testing AUTOSAR SWCs Testing AUTOSAR ECUs Summary Webinar Series
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 2
Introduction
ECU Testing pre AUTOSAR
!
Model in the loop System simulation with Simulink / Stateflow CANoe used for test execution, interaction, analysis and logging
PC CANoe
Test Execution
Models
Simulink
Interaction
Stateflow
Analysis/Logging
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 3
Introduction
ECU Testing pre AUTOSAR
!
Wait
!
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 4
Introduction
ECU Testing pre AUTOSAR
!
Test on ECU Level with remaining bus simulation ECU access via communication bus, ECU IO, debug and calibration interfaces (XCP/CCP, JTAG, VX1000,)
CANoe
Test Execution Interactive Stimulation Environment Simulation Visualization and logging simulated bus simul. ECU3
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 5
Introduction
New Situation when using AUTOSAR
Modularized applications, independent of ECU hardware
Basic SW is standardized
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 6
Agenda
Introduction > Solution Overview Testing AUTOSAR SWCs Testing AUTOSAR ECUs Summary Webinar Series
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 7
Solution Overview
Solution for Testing AUTOSAR ECUs
Basic SW is standardized
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 8
Solution Overview
Vector tools in the AUTOSAR development process
PREEvision Vehicle E/E system architecture design Vehicle ECU DaVinci Developer AUTOSAR SWC (Software Component) design and RTE configuration DaVinci Configurator Pro AUTOSAR basic software configuration
SWC1
SWC2 RTE
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 9
Agenda
Introduction Solution Overview > Testing AUTOSAR SWCs Testing AUTOSAR ECUs Summary Webinar Series
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 10
Basic SW is standardized
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 11
Front-loading of tests to avoid late issues during ECU integration Enhanced quality of application SW by unit tests
! ! !
Ensure the robustness of the SWC in various usage scenarios (error injection) Ensure the AUTOSAR API compliance Validate the functional behavior
! !
Introduce test-driven development Setup of application SW libraries for ECU development (commercial off-the-shelf)
SW developer
SWC Implemen tation
Quality Manager
SWC Test Result
SW test engineer
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 12
Executes SWCs directly on the PC by emulating the VFB (Virtual Function Bus) - no RTE or AUTOSAR basic SW required Atomic SWCs and Compositions supported Gives the testing tool access to the APIs of the SWC Definition and organization of test cases Test execution Creation of test reports
! !
! !
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 13
ECU configuration is not required Short turnaround time Access of SWC ports Invoke SWC runnables
Composition
SWC1
Get API
SWC2
SWC2
Test cases are programmed in any .NET language (e.g. C# or VB) Test control, tracing and protocol generation done by NUnit* Allows easy debugging of SWC implementation on the PC
NUnit
Test cases Test execution control Test1 Test2 Test3 Test protocol Test1 passed Test2 passed Test3 failed
Set Inputs
Read Outputs
Test case
Pattern
! ! ! !
Set input data elements Invoke runnable Get output data elements Assert the expected values
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 16
Intelli-sense authoring support provided by DaVinci Component Tester NUnit as testing tool
C-Editor
Compiler
Debugger
Build Environment
Continuous Integration
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 18
Agenda
Introduction Solution Overview Testing AUTOSAR SWCs > Testing AUTOSAR ECUs Summary Webinar Series
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 19
Basic SW is standardized
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 20
1 Communication among SWC same ECU 2 Communication among SWC different ECU 3 Communication SWC and BSW 4 Communication among BSW 5 Internal States of a BSW 6 Inter-Runnable Communication
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 21
XCP in conjunction with high speed interfaces offers many possibilities to gather information from within an ECU This information can be not only used for simple measurement but also for:
! ! ! ! !
Debugging Logging Tracing of internal states (debugging of state machines) Profiling of software (runtime, lock time, stack usage, ) Modification of data (stimulation, calibration, )
Only minimum overhead thanks to XCP Events and dynamic DAQ Lists
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 22
Sender/Receiver Ports, Mode Ports Inter-Runnable Variables Per Instance Memory Communication SWC <-> BSW SWC A SWC B SWC C AUTOSAR ECU
MICROSAR BSW
! ! ! !
Internal variables e.g. NM States, Modes Access to COM signals (CAN, LIN, FlexRay and Ethernet) I/O signals OS runtime statistics (max. execution time or blocking time of tasks/ISRs)
RTE
BSW
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 23
PC
Test Execution
Interaction
Analysis/Logging
XCP/JTAG/Nexus/ Diagnostics IO
RTE
BSW
ECU
ECU
ECU
Bus Interface
Slide: 24
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector.
No need to update the A2L after each ECU SW build Measure with full flexibility of XCP protocol (dynamic DAQ, Polling, )
Real ECU
Send ECU specific data after XCP Connect (GetId)
Tool
Measurement/ Debugging
XCP
CAN / FlexRay
XCP Driver
BSW
A2l
! ! ! ! !
Object Name / ID Mapping Minimum / Maximum Values Symbolic Interpretation Computing Methods Default event mapping
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 25
RTE .A2l
Created by MICROSAR RTE generator* includes
Created by compiler/linker
ECU .Map
Master .A2l
Created manually (stable)
ASAP2 Updater
ECU .A2l
CANoe / CANape
BSW .A2L
Part of MICROSAR BSW delivery for supporting generic measurement*
Monitor ECU internal States of BSW and SWC Monitor Communication bus and protocol (e.g. NM) events Trigger functions to detect predefined scenarios Measure Runtime of
! ! !
Diagram features
! !
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 27
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 28
Agenda
Introduction Solution Overview Testing AUTOSAR SWCs Testing AUTOSAR ECUs > Summary Webinar Series
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 29
Summary
ECU Tests can be improved thanks to AUTOSAR! CANoe.AMD
! !
Test execution, stimulation, analysis, measurement and logging ECU access via calibration interface Calibration, bypassing, measurement, rapid prototyping and logging ECU access via calibration interface SWC execution environment NUnit testing of SWCs Logging via XCP on SWC level Measurement and calibration hardware
CANape
! !
Fleet logger
!
Vx1000
!
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 30
Webinar Series
2011-10-06 ECU development with AUTOSAR - An introduction for AUTOSAR beginners 2011-10-19 Introduction to the AUTOSAR Method for ECU development 2011-11-02 AUTOSAR Configuration Process - How to handle 1000s of parameters 2011-11-15 Reliable Testing of AUTOSAR ECUs 2011-12-06 MICROSAR Safe: AUTOSAR basic software for safety-relevant ECUs (ISO 26262) Various Webinars on MICROSAR OS the AUTOSAR operating system from Vector
Registration to the upcoming Webinars and the list of recorded Webinars: http://www.vector.com/vi_webinars_en.html The overview of Vectors training services: http://www.vector.com/vi_training_en.html We stay online for some more minutes to answer your questions. Please ask your questions in the Q&A window. Contact data for additional questions, product information or presentation :
!
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 31
Thank you for your attention. For detailed information about Vector and our products please have a look at: www.vector.com
2011. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. Slide: 32