CANalyzer QuickStart
CANalyzer QuickStart
V7.6.01 | 2016-06-20
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 1
Agenda
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 2
A word about Bus Networking
Bus Networking in Vehicles
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 3
A word about Bus Networking
Example of Networking
Engine Transmission
ABS
Control Control
CAN
ECU1 ECU2 ECU3
Powertrain/Chassis
FlexRay
Instrument Central
Cluster Gateway
CAN
Comfort
Door Door
Door Seat A/C Control
LIN
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 4
A word about Bus Networking
Messages and Signals
CAN Message…
… is the complete package as it is sent over the CAN bus
… is needed to transport useful information over the CAN bus
… has a unique message identifier
Signals…
… contain the actual useful information
… are defined in the CAN database
… can have a conversion formula and a physical unit
B0 B1 B2 B3 B4 B5 B6 B7
frmEngineData B0
SignalB1
1 B2
Signal 2 B4
Signal 11 … B6 B7
Signal n
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 5
Agenda
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 6
Introduction to CANalyzer
Typical application area of CANalyzer
ECU 1 ECU 2
CAN-Bus ECU n
ECU 3
CANalyzer
Logging
functions
Trace display Statistical values
Graphic display
The integrated basic functions cover an abundance of potential uses. These include:
Listing of bus data traffic (tracing)
Graphic and textual display of signal values
Interactively sending out predefined messages
Sending out logged messages
Statistics on messages
Statistics on bus loading and bus faults
Logging of messages for offline evaluation
Generation of bus faults
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 7
Introduction to CANalyzer
CANalyzer and CANoe: what is the difference?
CANoe
Simulation Test
Diagnostics CANalyzer
Analysis
CAN
LIN
FlexRay
MOST
CANalyzer is the collection of CANoe’s analysis features with additional
features
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 8
Introduction to CANalyzer
CANalyzer System
DBC, ARXML (CAN) FIBEX, ARXML CDD, OCX, MDX Fkt. Katalog (MOST)
LDF (LIN) (FlexRay) (Diagnostics)
Input
CANalyzer
CANalyzer needs an interface to the CAN bus for its analysis and to send out messages. This interface is available
in several variants:
PCMCIA
USB
PCI
PXI
PCIExpress
Note
ARXML files are conform with the AUTOSAR standard. They can be used and/or modified since
CANoe/CANalyzer V7.6
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 9
Agenda
10
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 10
CAN Database
Effect in Analysis
CAN Database
11
All definitions concerning a CAN bus are determined in a data base. Vector's wide spread DBC format was designed
to electronically store such data.
Such a data base can be accessed and used by all of Vector's tools. Above you find an exemplary plot of the data
flux in CANalyzer. The mere hex values of a CAN-message are retrieved from the CAN bus by an appropriate
hardware interface. The software interprets the data according to the applied data base and displays the results in
various analysis windows. Above the Trace Window is shown sizably.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 11
CAN Database
Associate Database
12
With File Associate Database you get a menu showing the measurement channels. Choose a channel and use
Add Database from the right mouse button menu to link one or more data bases. The data bases are processed in
the order of the display. This is important to note in case there are distinct frame definitions by synonymous naming
contained in more than one data base.
For detailed information mark the database. Additional information is displayed in the grey area below.
Note:
Usually a database describes one network. Nevertheless you can assign more than one database to a channel.
Please note, that the content of the used databases should be different. In case of similar content, e.g. a signal, the
first assigned database is chosen to interpret the data. The second one will be ignored. The sequence of the
databases can be changed by Drag&Drop in the menu above.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 12
Agenda
13
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 13
Configuration of Interface Hardware
Channels in CANalyzer
Hardware channels
B C D
Ch1
F G
Ch2
Low Speed CAN Bus
H I J
Ch1
?
Ch2
LIN Bus
K L M
14
In total, up to 32 channels may be measured simultaneously in CANalyzer. Any combination of buses can be
configured as well. A unique identifier is needed to address or read-out (measure) specific channels within
CANalyzer. This identifier is formed from the bus name and a sequential number (excerpt):
CAN1 to CAN32
MOST1 to MOST32
LIN 1 to LIN32
FlexRay1 to FlexRay32
CANalyzer refers to these internal identifiers as Application Channels! No measurement can be conducted without
an Application Channel present (CANalyzer outputs a warning message).
Important!
CANalyzer only displays the Application Channels; CANalyzer does not provide any information about the hardware
channel being used. The Hardware Driver Configuration must be opened for that information.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 14
Configuration of Interface Hardware
Vector Hardware Configuration
15
Serial Numbers of the Interfaces and their transceivers are also displayed in the hardware tree. This is especially
useful for interfaces like VN1610 or CANboardXL, since the transceivers or the whole interface are built-in the PC.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 15
Configuration of Interface Hardware
Menu item Configuration
Network Hardware
Baud rate
Acknowledge
Acceptance Filter
Drivers
Options
Channel Usage
Global Settings
16
In the menu item Configuration, Global Settings as well as Hardware Settings can be done.
Network Hardware:
Here, the controller of the Interface Hardware can be configured for the respective Bus Channel and Type. The
settings are done separately for each channel in order to be able to work on different bus systems at a time.
Customize:
This menu item opens a window with the registers Commands and Toolbars. Here, the tool bars can be created
and adjusted via Drag & Drop.
In order to create a new tool bar, simply drag a key into the main window. There a new tool bar will occur. In
order to change an existing tool bar, drag the desired command into the tool bar or out of it. Commands can
also be moved from one tool bar to another.
Options:
Global settings in CANalyzer can be conducted here, e.g. language (German / English). In the subitem Channel
Usage the amount of channels used in the current CANalyzer configuration can be set.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 16
Configuration of Interface Hardware
Hardware Configuration for CAN Busses
Number of HW Channels,
adjusted in
Options|Configuration Settings|
Channel Usage
17
Setup:
Scan… : Automated baud rate detection
Baud rate und Bit Timing Register (BTR0 and BTR1) can be configured
Graphical display of the CAN Controller Timing resulting of the configured register values (BTR0 and BTR1)
Acknowledge by CANalyzer respectively the used Hardware Interface can be activated and deactivated
Acceptance Filter:
All or several messages can be blocked
Filter can also be configured via Code and Mask
Options:
Activate time stamps for send request
(are displayed as TxRq messages
in CANalyzer)
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 17
Agenda
18
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 18
Measurement Setup CANalyzer Demo
Principle
Measurement Setup
Represents the data flow graphically
Centralized configuration
Sending branch
Simple Configurability
Graphical menu with hot spots
19
CANalyzer is configured within the measurement setup. In online mode the source of data is the bus hardware
interface. It provides the received frames together with their time stamps. Also frames can be sent where the time
stamps reflect the point in time they were issued. Depending on the interface used also further information can be
obtained, as e.g. the recognition of error frames – including their reason –, the actual busload as well as reception of
external trigger signals.
The interface is initialized at measurement start. The necessary parameters need to be set by the user via the menu
Configuration Network Hardware… or by the context menu of the hardware icon in the measurement setup.
To support different busses with different speeds, the user must provide the parameters in question for each bus
separately.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 19
Agenda
20
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 20
Analysis Windows
Trace Window
21
All messages arriving at the input to the Trace block are evaluated and displayed as a line of information in the
Trace Window. The user can choose between two different output modes (see above):
Fixed Position Display Mode: each message (type) is assigned to a specific line the first time it occurs, and
all further messages of the same type are written to the same line
Chronological Display Mode: each new row is inserted below the previous row. Once the window is full it
automatically scrolls upward. This display mode shows the chronological sequence of messages very well.
With high bus loads, however, this display mode may cause performance problems since it requires a lot
of processing.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 21
Analysis Windows
CAN Statistics Monitor
22
In the configuration dialog of the CAN Statistics Monitor (shortcut menu) specific statistics can be activated and
deactivated:
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 22
Analysis Windows
Graphics Window
The Graphics Window serves to display signals in a curve over the time
axis:
Measuring
Signal selection
Zoom
Fit
Signal up/down
Scroll
View options
23
In the Graphics Window, time-based signal responses are shown graphically. They are displayed in a X-Y diagram
over the time axis. Message signals, environment variables and diagnostic parameters are shown graphically in the
form of a curve.
The display of signal curves can be modified with the help of the selectable Y-axis view and with functions for
highlighting/hiding signals.
Many functions are available to you for measuring and evaluating the signal curves. You can display the values of
specific measurement points using the measurement cursor or difference cursor. The section of signal curves that is
displayed can be modified with the help of scaling and scroll functions.
In the legend, measurement columns are provided for displaying values of measurement points according to specific
evaluation criteria.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 23
Analysis Windows
Data Window
Columns can
be shown or
hidden
24
The display of columns can be configured by right clicking their segment in the table header line. By default signal
name, physical value, unit, raw value and progress bar are displayed. Furthermore there are the following columns:
Status (far left) This column contains the activity display which cannot be removed.
Name You can configure the display mode of the signal‘s name:
> signal name
> signal name plus message name
> signal name plus message name plus data base name
Value The physical value is retrieved from the raw value by applying the linear formula from the data base.
The display mode of the value is configurable (decimal digits, scientific, symbolic).
Min The minimal value of the signal throughout the measurement.
Max The maximal value of the signal throughout the measurement.
Unit If the data base contains information concerning a unit, it is displayed here.
Raw Value The display mode of the value is configurable (decimal, hexadecimal, binary, symbolic).
Bar A configurable bar diagram is displayed.
Comment If the data base contains commentary information it is displayed here.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 24
Agenda
25
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 25
Function Blocks
Overview
Function blocks can manipulate the data flow in the measurement setup
By right clicking the hot spots , function blocks can be inserted
26
In the data flux diagram there are little squared blocks, the so called hot spots. By right clicking those hot spots
function blocks can be inserted. Alternatively you may select a hot spot via the cursor keys and then press <F10>. If
a hot spot is double clicked it turns grey and its shape is split. This indicates that the data flux is stopped at this
point.
An arbitrary number of function blocks can be inserted at each hot spot.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 26
Function Blocks
Event Filter in the Measurement Setup
Further message
attributes can be
defined here
27
Configuration overview
Here, in the lower part of the window, all configured and activated filters are displayed.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 27
Function Blocks
Channel Filter in the Measurement Setup
A channel filter can be used to completely block or pass the channels of all
registered bus systems (CAN, LIN, MOST or FlexRay).
Example:
Adding bus system specific analysis
windows to the Measurement Setup
28
If another bus is added to the CANalyzer configuration, the number of channels in the Channel filter is updated
automatically.
Note: The behavior of the Channel Filter has to be adjusted respectively. Newly added channels are open by default.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 28
Agenda
29
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 29
Data Logging
Data formats
30
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 30
Data Logging
Logging Block
The Logging Window is used to log the real and/or the simulated message
traffic.
Configuration of Configuration of
trigger (initiator) the log file
31
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 31
Data Logging
Configuration of the Logging File
In the configuration of the Logging File further settings, such as path, file
name and file format can be conducted:
Increment name of
File name the log file
and path
Absolute or
Write internal
relative time
events into
stamps
the log file
32
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 32
Agenda
33
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 33
Send Options
Overview
Hint:
Sending messages can only
be done in the sending branch
of the measurement setup
34
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 34
Send Options
Interactive Generator
Transmit list
Signals of
the selected
message are
shown in the
signal list
Signal list
35
The Interactive Generator Block (IG) is used to generate and send messages. For this purpose, a list of messages
with trigger condition is input in a configuration dialog. A signal list is assigned to each message, in which the signal
values can be set. The signal lists are taken from an associated database.
Characteristic for the Interactive Generator Block is the possibility to configure and interactively send messages
during a running measurement (online). This makes the IG especially well-suited for quick, improvised actions to
affect a measurement.
Depending on the activated bus systems and protocols, different views are available within the IG:
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 35
Send Options
Interactive Generator – Transmit list
36
Burst
A burst indicates the number of messages to be sent per triggering. The default value for burst is set to 1, i.e.
exactly one message is sent per triggering.
Cycle time or 2 key presses
Burst = 2
High Load
A bus high load is reached when messages are sent immediately after one another on the bus. For this purpose,
right after a message has been sent successfully, this must be followed up by the next send request for the same
message. The number set in the Burst parameter indicates the constant number of messages in the send queue. In
this triggering condition, you should not simultaneously send the same message by send command, key or cycle
time, since that would cause the queue to overrun, and a data loss could occur.
Gateway
The IG can be used as a gateway. Either individual messages or all bus communication can be transmitted from one
bus to another. Signal values can also be modified in transmission.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 36
Send Options
Interactive Generator – Signal list
Signal values of the message are changed in the IG‘s Signal list
37
The possible value ranges that can be set are given in the status line :
If intermediate values cannot be represented as raw values when physical signal values are entered, the
program automatically rounds up or down to the nearest value.
Depending on the signal type, raw and physical values may vary between signals. The following signal types
are available:
Enumeration (Enum): Symbolic selection of defined value descriptions in the input field (taken from the
database)
Bit signal: Option button enables convenient toggling (Not activated = 0, activated = 1)
Multiplexor signal: In signal multiplexing different signals are transmitted in one message, wherein the
specific signal depends on the multiplex value. The signal containing the multiplex value is referred to as
the multiplexor signal. The signals that are transmitted as a function of the multiplex value are referred to
as multiplexed signals. The multiplexed signals are automatically updated whenever the multiplex value is
changed.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 37
Send Options
Replay Block
Supported formats:
ASCII (*.asc)
Binary format (*.log)
Binary format (*.blf)
Send mode:
Start time behavior:
Standard
Immedately (1st
Stepwise (next step by CAPL message on start)
or key)
Send times as in File
Ignore original times and
use this cycle Delayed by this time
38
The Replay Block can be used to send logged messages back onto the bus from a file (recorded in logging). The
Replay Block must be inserted in the send branch of CANalyzer’s Measurement Setup.
The log file to be sent out, the send mode and time conditions at the start are selected in the configuration menu of
the Replay Block. The start option can be defined with or without keys. In addition, the user may specify whether
RX, TX or both types of messages should be sent. Moreover, the user can specify the CAN controller to be used to
send a message that originates from a specific CAN controller.
The file may be sent once or repeatedly. In the case of repeated sending, when the end of the file is reached
sending begins again with the first message of the log file.
Start timing conditions defines when the first message of the file should be sent. There are three possibilities:
Immediate: The first message is sent at the measurement start.
As in original: The send times match the original times contained in the file.
Delayed by: In the input box under this, the user enters the send time of the first message relative to the
measurement start.
In all three cases, the relative time spacing between messages is preserved.
Step can be used to index the time flow by CAPL functions; otherwise a fixed time cycle can be specified using
Animated with.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 38
Agenda
39
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 39
Offline Mode
Overview
Switch between
Online and Offline
Mode by double click
or the context menu
40
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 40
Offline Mode
Configuration of data source
41
Furthermore, Breakpoints can be defined: after receiving a certain message, a certain signal value etc., the Offline
Replay is interrupted.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 41
Offline Mode
Start of the Offline Analysis
No unit Milliseconds
h Hours
m Minutes
Animated flow s Seconds
ev Events
> Slow-motion display of events (1 message)
42
Animated flow
The value of the delay factor for animated flow can be configured in the can.ini file. To do this, enter the following
line in the [OFFLINE] section:
AnimationDelay = nnnn
The value nnnn describes the delay factor in milliseconds (Default: 300 ms).
The delay factor means that the next event is read from the source file after nnnn ms. Read-out of events is
independent of the saved time stamps. The time stamp from the source file is displayed in the Trace Window.
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 42
Agenda
43
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 43
Further Information
Overview of CANalyzer variants
44
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 44
Further Information
Looking for more information?
45
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 45
Further Information
Any more questions?
46
© 2012. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V7.6.01 | 2016-06-20 46