Documente Academic
Documente Profesional
Documente Cultură
by Bruce D. Emaus
President of Vector CANtech
Market leader - Small Area Network tools CANalyzer, CANoe, and CANape
Protocols include: CAN, LIN, MOST, FlexRay,
Idea
System
Requirements
Test use
cases in
simulated
prototype
Accepted
System
System
Architecture,
Sim.-Model
Real ECUs
+ remaining-bussimulation
ECU Design
Legend:
SW Modules &
HW Modules
Phase identified
by results
EOL tests,
Production
OEM
Module Supplier
Black-box tests,
integration tests,
functional tests, hazard tests
HIL-Tests, EOL Tests, ...
White-box tests
SIL-Tests,
Testing activities
real
module
Test
simulated
module
real
module
Test
Completely simulated
OR
Some modules simulated and others
available as real modules
OR
All real modules
real
module
osCAN-library
ECU
Software
Component
Debugging
Memory check
ECU
Coverage check
Profiling
Test
PC
simulated
module
real
module
partial real system
GUI
COM
Panels
CAN
DBC
DBC
LDF
LDF
XML
XML
CDD
CDD
LIN
CANoe
FlexRay
Input files
including
Product
message
database
MOST
Diagnostic I/F
KWP 2000
Digital I/O
Analog I/O
System under
Test
10
Tester
(Response)
Evaluate
t
// Stimulate
output(Req2MsgBuf)
SetSignal(Req1Msg::SigX, 5)
// Wait
TestWaitForMessage(RespMsg, 2000)
// Evaluate + report
TestValidateSignalInRange(RespMsg::SigA, 0, 1)
GetWaitEventMsgDataCAN(RespMsgBuf)
If(RespMsgBuf.Time > lMaxTime) {
TestStepFail(Time, Too late);
}
11
Stimulation parameters
Input vector: Values, e.g. signal,
environment variable
Evaluation parameters
Output vector: values
Timing
Test Pattern
Parameterize
Set Signal
Wait
Control flow
Is built-in to predefined test
patterns, several patterns will be
available
Not needed on specification level
Maintainability increased
Report
Is written automatically
Can be formatted by changing
the style sheet
Get Signal
(Result)
Evaluate
t
<statecheck wait="2000">
<input>
<cansignal name=Ignition">1</cansignal>
<cansignal name="Level message=Wipers>2</cansignal>
</input>
<expected>
<envvar name="WiperMotor"><gt>0</gt></envvar>
</expected>
</statechange>
12
13
14
Inputs
Inputi = f i (t )
Tester
system or
unit under
test
Outputs
Output j = g j (t , I 0 K I n )
function
function
Stimulus
Stimulus
(Response)
B
passed
15
Domain Knowledge
CANdb++
CANdela Studio
DaVinci
DOORS
UML Tool
Excel
Legend:
Test Case
Generator
Plug-In
Engineer
Pattern-based
Test
Specification
(XML)
Test Case
Editor
16
CANoe
Model of
Node (CAPL,
Simulink)
XML Test
Specification
Bus Signal
Server
CAPL Signal
Driver
System under
test
Simulation of Node A
CANoe
Interaction
Layer
Test
Execution
XML Test
Report
Diag Server
I/O Port Server
17
18
19
20
10
CANoe
The basic automotive modeling process:
The OEM makes a distributed product model this is vehicle specific
The OEM distributes the model to all sourced suppliers
All suppliers create their individual modules
Each supplier verifies the module behavior using the vehicle specific model
All suppliers send their individual modules to the OEM
The OEM integrates the modules onto the vehicle platform bench-level
and/or vehicle level
The OEM tests, fixes, and completes the product
What tool is used by many automotive OEMs to accomplish this?
Vectors CANoe
21
Maintenance
Production
Acceptance Test
System Integration
Component Integration
Component Test
Component
Implementation
Component Design
Component Architecture
V-Model
System Architecture
Requirements Analysis
CANscope
CANister
Test Support
Process Support
22
11
Contacts
Presenter
Bruce Emaus: bruce.emaus@vector-cantech.com
Sales
sales@vector-cantech.com
23
12