Vector reserves the right to modify any information and/or data in this user documentation without notice. This documentation nor any of
its parts may be reproduced in any form or by any means without the prior written consent of Vector. To the
under law, all technical data, texts, graphics, images and their design are protected by copyright law, various international
other applicable law. Any unauthorized use may violate copyright and other applicable laws
All rights reserved.
80438
-70499 Stuttgart
Copyright 2016, Vector Informatik GmbH. Printed in Germany.
or regulations.
maximum extent permitted
treaties and
Page 3
User Manual CANoe Test Hardware VH1150 Table of Contents
Introduction User Manual CANoe Test Hardware VH1150
CANoe.LIN.
> CANoe version 7.1 or higher
> 2 CANterms 120 Ohm
1.1 Product Overview
Applications The CANoe test hardware VH1150is a USB-hardware for automating ECU
conformance tests for CAN and LIN. It is typically used by CANoe-based test
implementations to automatically hardware reset the ECU before each test case.
Further applications include the programmed adjustment of the ECU’s supply voltage
and the automated detection of sleep and wake modes by measuring the ECU’s
current consumption.
Additionally the VH1150 supports stress features to produce a ground offset or to limit
the recessive level of the LIN line. It is also possible to short circuit or interrupt CAN
and LIN lines.
The VH1150 provides IO lines which allow to interface with external devices.
Currently this hardware is used by the Vector CANoe test package VAG for CAN
high-speed and by the LIN conformance tests implementation provided with
Requirements
Scope of delivery
> CANoe version 8.0 SP4 or higher for Windows8
> CANoe version 7.2 SP3 or higher for Windows7
> USB hardware VH1150(external power supply not included)
User Manual CANoe Test Hardware VH1150 Introduction
the interface.
KnowledgeBase for updated information prior to the operation of the interface.
performing test drives in order to reduce hazards.
1.2 Safety Instructions and Hazard Warnings
Caution: In order to avoid personal injuries and damage to property, you have to
read and understand the following safety instructions and hazard warnings prior to
installation and use of this interface. Keep this documentation (manual) always near
1.2.1 Proper Use and Intended Purpose
Caution: The interface is designed for analyzing, controlling and otherwise
influencing control systems and electronic control units. This includes, inter alia, bus
systems like CAN, LIN, K-Line, MOST, FlexRay, Ethernet and/or BroadRReach.
The interface may only be operated in a closed state. In particular, printed circuits
must not be visible. The interface may only be operated (i) according to the
instructions and descriptions of this manual; (ii) with the electric power supply
designed for the interface, e.g. USB-powered power supply; and (iii) with accessories
manufactured or approved by Vector.
The interface is exclusively designed for use by skilled personnel as its operation may
result in serious personal injuries and damage to property. Therefore, only those
persons may operate the interface who (i) have understood the possible effects of the
actions which may be caused by the interface; (ii) are specifically trained in the
handling with the interface, bus systems and the system intended to be influenced;
and (iii) have sufficient experience in using the interface safely.
1.2.2 Hazards
The knowledge necessary for the operation of the interface can be acquired in
workshops and internal or external seminars offered by Vector. Additional and
interface specific information, such as „Known Issues“, are available in the Vector
KnowledgeBase on Vector´s website at www.vector.com. Please consult the Vector
Caution: The interface may control and/or otherwise influence the behavior of control
systems and electronic control units. Serious hazards for life, body and property may
arise, in particular, without limitation, by interventions in safety relevant systems (e.g.
by deactivating or otherwise manipulating the engine management, steering, airbag
and/or braking system) and/or if the interface is operated in public areas (e.g. public
traffic, airspace). Therefore, you must always ensure that the interface is used in a
safe manner. This includes, inter alia, the ability to put the system in which the
interface is used into a safe state at any time (e.g. by „emergency shutdown“), in
particular, without limitation, in the event of errors or hazards.
Comply with all safety standards and public regulations which are relevant for the
operation of the system. Before you operate the system in public areas, it should be
tested on a site which is not accessible to the public and specifically prepared for
Introduction User Manual CANoe Test Hardware VH1150
from insufficient training or lack of experience of personnel using the interface.
1.2.3 Disclaimer
Caution: Claims based on defects and liability claims against Vector are excluded to
the extent damages or errors are caused by improper use of the interface or use not
according to its intended purpose. The same applies to damages or errors arising
Introduction User Manual CANoe Test Hardware VH1150
Management System
The ISO standard is a globally recognized standard.
> Online formula
trademarks
trademarks of their respective owners.
Symbol Utilization
1.3.1 Certification
Quality
Vector Informatik GmbH has ISO 9001:2008 certification.
1.3.2 Warranty
This icon indicates multimedia files like e.g. video clips.
This icon indicates an introduction into a specific topic.
This icon indicates text areas containing basic knowledge.
This icon indicates text areas containing expert knowledge.
This icon indicates that something has changed.
Restriction of
warranty
We reserve the right to modify the contents of the documentation or the software
without notice. Vector disclaims all liabilities for the completeness or correctness of
the contents and for damages which may result from the use of this documentation.
1.3.3 Support
You need support? You can get through to our hotline at the phone number
> Phone:+49 711 80670-200
> Email: support@de.vector.com
1.3.4 Trademarks
Protected
All brand names in this documentation are either registered or non registered
User Manual CANoe Test Hardware VH1150 Installation
> IO: Digital and analog input and output ports.
connector/4 mm connectors)!
Power supply, USB
and IO connectors
> Power Supply: Four pin connector for recommended power supply. 4 mm
connectors for laboratory power supply.
> USB connector: Connection to the PC. An FTDI driver is required. The device is
referenced as a COM port in the PCs hardware configuration.
Note: The device is referenced as a USB serial port in the Windows Device
Manager (section COM and LPT connections)
Caution: Neither power supply nor terminal connections must be removed nor
connected while the VH1150 operates!
Never supply the VH1150 device on both power supply connectors (four pin
Caution: The Mean Well power supply connects internally ground to the protective
conductor (PE). Therefore, the ground line or any other line of the VH1150 device
Page 15
User Manual CANoe Test Hardware VH1150 Installation
> Windows 2000 with Service Pack 4
> CANoe version 7.1 or higher
FTDI driver
Version 2.08.30 or higher (http://www.ftdichip.com/Drivers/VCP.htm)
the installation steps below:
VH1150.
Uninstall
FTDI and CANoe driver can be uninstalled using the standard Windows mechanism.
Package) the VH1100 has to be selected although a VH1150 is used as real device.
(see figure below).
2.3 Software Requirements
Operating system
CANoe version
> Windows 7, 8
> Windows VISTA
> Windows XP with Service Pack 2
> CANoe version 8.0 SP4 or higher for Windows8
> CANoe version 7.2 SP3 or higher for Windows7
2.4 Software Installation
Installation Please ensure that you have administrator access rights for your PC before following
1. Install or update CANoe.
2. Close CANoe application.
3. Update VH1150 CANoe driver (see Installtion CD).
4. Install or update the FTDI driver (see Installtion CD).
5. Connect all hardware as described in chapter 2.2 Hardware .
6. After successful installation please connect the VH1150 via USB interface to your
PC. Power up your VH1150. Windows should automatically recognize the
2.5 Compatibility with VH100
Compatibility The VH1150 is backward compatible to the VH1100. This means, in configuration
dialogs of older CANoe versions (e.g. LIN Conformance Test Module, VAG Test
2.6 Configuring VH1150
VHDevDLL.dll The API (see chapter 4 API) to control the VH1150 is implemented in the
VHDevDLL.dll. The DLL can be found in the EXEC32 directory of the CANoe
installation. To use the API the VHDevDLL.dll has to be attached to a test module
Note: The VHDevDLL.dll must not be attached to a network node. The VHDevDLL.dll
At first, the function tries to open a VH1100 device if National
Instruments driver is installed. The function builds a list of
compatible devices as known by the National Instruments driver.
If this list contains more than one entry, no device will be opened
and the function returns the error code
ERR_OPEN_NO_REPLACEMENT_FOUND. If the list contains exactly
one entry, the function opens this device.
If no VH1100 device is found the function tries to open a VH1150
device.
The function opens the first compatible device. If no compatible
device is found, the function returns the error code
.
handle
This function returns a handle. The handle is valid if the function
returns zero, otherwise the handle must not be used.
deviceType
Returns the type of the current device. Either VH1100 or VH1150.
deviceName
Returns the name of the actual used device.
> VH1150
The COM-PortID referring to the device as a one or two-digit
number encoded as string.
> VH1100
The name of the device as specified in the Measurement and
buffSize
Size of the buffers deviceType and deviceName.
Returns
0 on success, handle is valid. Otherwise see Error Codes.
Opens the specified VH device. The format of the parameter
deviceName determines whether the function opens a VH1100 or
VH1150 device.
deviceName
> VH1100
The name of the device as specified in the Measurement and
Automation Explorer (MAX). Typical names are dev1 or dev2.
> VH1150
COM-PortID encoded as string. The COM-PortID is a one or
two digits number and identifies the COM port of the VH1150.
There can be entered any value from 0-99. The function will
handle
The function returns a handle. The handle is valid if the function
returns zero, otherwise the handle must not be used.
0 on success, handle is valid. Otherwise see Error Codes.
Support VH1100 VH1150
• •
4.1.3 VHDevClose
Syntax
Function
Parameters
Returns
Support VH1100 VH1150
• •
Closes an opened device.
Calling this function invalidates the handle.
handle
A handle referencing the VH device.
0 on success, handle is valid. Otherwise see Error Codes.
Note: This function requires Hardware Revision Number ≥ 2.
handle
A handle referencing the VH device.
0 on success, handle is valid. Otherwise see Error Codes.
–
long VHDevGetHWRevision (long handle, long
Retrieves the hardware revision number.
This number describes the features of the VH device. API functions
may require a certain hardware revision number. For example the
function VHDevStartVoltageProfile for a VH1100 device
requires a HRN of >1. If the application uses such a function, the
application should first check the HRN and handle the case when
the HRN is too low.
Note: The HRN cannot be used to distinguish between a VH1100
Switches the specified relay.
This function should be used for special applications only, in most
applications VHDevSetRelay can be used instead.
VH1150:
The ground line relay (GND, 31) can be controlled only, if the
ground offset is turned off.
handle
A handle referencing the VH device.
selector
Selects the relay:
> 0=V30
> 1=V15
Parameters
state
Relay contacts 0=open, 1=closed
relaySettleTime
Relay settle time in ms. The function sends the relay command to
the VH device and waits the specified time before it returns to the
caller. A settleTime of zero is valid.
Sets the output voltage V
This function should be used for special applications only, in most
applications
of the device.
batt
of the device.
batt
can be used instead.
handle
A handle referencing the VH device.
voltage
Parameters
Returns
Output voltage in volts.
settleTime
Settle time in ms. The function sends the set voltage command to
the device, waits the specified settleTime, and returns to the caller.
A settleTime of zero is valid.
Shifts the ECU ground voltage by the specified value.
Note: Enabling the ground offset will turn off the features LIN
Recessive Level and Analog Output.
handle
A handle referencing the VH device.
offsetVoltage
Range 0.0 – 10.0 V.
A value of <= 0.0 turns off the ground offset feature.
0 on success. Otherwise see Error Codes.
Support VH1100 VH1150
Example
–
If the ECU is supplied with a voltage of 14.4 V and the ground
offset is set to 2.0 V, the actual ECU supply voltage measured
between the pins IGN and GND' (connector 31') amounts to 12.4 V.
Note that the battery voltage, measured between the pins IGN and
GND (connector 31), remains unchanged (ie. 14.4 V). Depending
on the ECU current and offset voltage, the ground offset feature
may considerably increase the power dissipation of the VH1150.
This may cause the VH1150 to transit into its Overload state.
Shifts the bus ground line on the tester side by the specified value.
This feature is intended to be used in LIN networks.
Note: Enabling the ground offset will turn off the features Ground
Offset, LIN Recessive Level and Analog Output.
Note: Please ensure that the LINcab is externally supplied. Please
refer to the function VHdevSetLinCabSupplyMode.
Note: This function requires Hardware Revision Number ≥ 2.
Handle
A handle referencing the VH device.
offsetVoltage
Range 0.0 – 20.0 V.
A value of <= 0.0 turns off the ground offset feature.
0 on success. Otherwise see Error Codes.
Support VH1100 VH1150
Example
–
On a LIN network, the bus ground offset (on the tester side) is set
to a value of 2.0 V. If the LIN line has a recessive level, the ground
offset has no primary effect. Both, the tester and the ECU, measure
the recessive level on the LIN bus.
If the tester sets its dominant level, the ECU sees a LIN voltage of
about 2.7 V. This value results from the 2.0 V offset and a 0.7 V
voltage over a diode in the drain – source path of the tester
transceiver transistor. Thus, the Tester Ground Offset feature
allows to increase the dominant level recognized by the ECU.
Typically, the LIN transceiver of the tester is supplied by the
VH1150. Even if the tester transceiver is setup to generate its own
supply voltage, the Tester Ground Offset feature can be used.
Limits the recessive LIN voltage level to the specified value.
Note: Turning on the LIN recessive voltage will turn off the features
Analog Output and Ground Offset.
handle
A handle referencing the VH device.
recessiveVoltage
Range 0.0 – 28.0 V.
A value of <= 0.0 turns the feature off.
0 on success. Otherwise see Error Codes.
Support VH1100 VH1150
Example
–
The ECU is supplied with a voltage of 14.4 V and the recessive
voltage is set to 9.5 V. This limits a LIN recessive bit (high) to 9.5
V. If the LIN recessive voltage is set to a value larger than the
master's battery voltage (in this example > 14.5 V) the recessive
voltage remains unchanged.
•
4.4 Device Inputs/Outputs
4.4.1 VHDevSetAnalogOutput
Syntax
Function
Parameters
Returns
Support VH1100 VH1150
long VHDevSetAnalogOutput (long handle, double
VH1150:
Sets the Analog Output voltage to the specified value.
batt
batt
.
. This
The output voltage is derived from the battery voltage V
means the analog output voltage will never exceed V
Note: Turning on the Analog Output will turn off the features LIN
recessive voltage and Ground Offset.
handle
A handle referencing the VH device.
analogOutputVoltage
Range 0.0 – 28.0 V.
A value of <= 0.0 turns off the feature.
Measures the CAN termination resistor between the CAN_H and
CAN_L lines. The termination resistor is measured twice by
inverting the polarity of the measurement voltage. One
measurement uses a positive CAN_H to CAN_L voltage, whereas
the other measurement puts CAN_L on a higher voltage than
CAN_H.
Note: This function requires hardware revision number ≥ 4.
handle
A handle referencing the VH device.
termResPosMeasVoltage
The measured termination resistor value in Ohm. The
measurement is carried out with a positive CAN_H to CAN_L
measurement voltage.
termResNegMeasVoltage
The measured termination resistor value in Ohm. The
measurement is carried out with a negative CAN_H to CAN_L
measurement voltage.