Post on 19-Mar-2022
CANstress Basics
2016-01-25 SN-IND-1-010_CANstress_Basics.pdf
Author(s) Stiller, Markus Restrictions
SN-IND-1-010_CANstress_Basics.pdf 1
Table of contents 1 About this Support Note .................................................................................................................. 1 2 Overview .......................................................................................................................................... 1 3 Package content .............................................................................................................................. 2 4 Versions and Options ...................................................................................................................... 2 5 First View – Front side ..................................................................................................................... 3
5.1 Connectors at the top .............................................................................................................. 3 6 How to connect CANstress with the PC .......................................................................................... 4
6.1 USB ......................................................................................................................................... 4 6.2 RS232 ...................................................................................................................................... 4
7 How to connect CANstress with CAN.............................................................................................. 5 7.1 CAN Highspeed - ISO 11898-2 ............................................................................................... 5 7.2 CAN Fault tolerant Lowspeed - ISO 11898-3 .......................................................................... 5
8 Set up a disturbance ........................................................................................................................ 6 8.1 Set up a Bit field trigger ........................................................................................................... 6
9 Test a CANstress with CANoe or CANalyzer .................................................................................. 8 10 SAE J2411 Single Wire – GMLAN .............................................................................................. 9 11 CANstress Integration in CANoe ............................................................................................... 10 12 CANstress with CANoeRT (RT-Rack, VN89xx series, VT60xx series devices) ....................... 12 13 CANstress software and hardware information ........................................................................ 13 14 Firmware Update ....................................................................................................................... 14 15 Contacts ..................................................................................................................................... 14
1 About this Support Note
In the table below you will find the icon conventions used throughout the Support Note.
Symbol Utilization
This icon indicates notes and tips that facilitate your work.
This icon warns of dangers that could lead to damage.
This icon indicates examples.
2 Overview
This Support Note describes the First Steps of Vector CANstress usage.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 2
3 Package content
The CANstress package contains a software CD, power adapter, disturbance module (CANstress), trigger cable and the CANstress cable. For CANstress version 2.1 and higher, a CANstress USB cable is also included.
4 Versions and Options
Vector provides two different CANstress models:
CANstress D for digital disturbances
CANstress DR for digital and analog disturbances
Additionally, a “CAN fault tolerant low speed module” is available. With this option, a CAN Low Speed Baby Board for the disturbance module (CANstress) and the CANstress Adapter Low Speed are delivered.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 3
5 First View – Front side
On the front side, you’ll see the LEDs which indicate the status of the device. The serial number can be found on the left hand side. CANstress module check-up: Plug in the power adapter and connect the 5 pin binder connector to CANstress. If the Run LED is flashing in green color and the Trigger Enable LED has a permanent orange light, the CANstress module is ready.
5.1 Connectors at the top
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 4
6 How to connect CANstress with the PC
6.1 USB The USB cable has an USB connector for your PC and a 4 pin binder connector for CANstress.
CANstress USB cable
Connecting CANstress to the USB port the first time an HID Device Driver will be installed automatically. Open Windows device manger to find the device:
6.2 RS232 When connecting CANstress via RS232, make sure that the correct RS232 port is selected. This can be configured in CANstress software under Options | Connect …
Note: The RS232 port and the USB interface are electrically isolated from all other components.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 5
7 How to connect CANstress with CAN
7.1 CAN Highspeed - ISO 11898-2
For CAN Highspeed, please use the CANstress cable with two SubD9 connectors as T-connector. Connect the CANstress module and the two SubD9 connectors to your CAN Highspeed bus.
CANstress cable with SubD9 T-connector
7.2 CAN Fault tolerant Lowspeed - ISO 11898-3 For Lowspeed, use the CAN fault tolerant board. An additional CANstress Adapter LowSpeed is also needed. This adapter is plugged in between the CANstress cable and the CANstress.
In the CANstress software activate the LowSpeed board under Options | CAN Interface and select Interface 2 (Baby Board).
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 6
8 Set up a disturbance
Follow these steps to set up a disturbance:
1. Set the CAN Interface and –Parameters in Options menu 2. Select the disturbance type 3. Set the trigger conditions 4. Configure the disturbance
8.1 Set up a Bit field trigger Select your CAN Interface. To use the bit field trigger it is required to set up the correct baud rate under Options | CAN Parameters …
Select Bit field Trigger in the pull-down menu. A yellow arrow helps you to find the trigger condition configuration selected in the trigger tabs.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 7
Enter all data of the CAN frame you want to disturb. You must not fill in any data after the point you want CANstress to disturb the bus. CANstress disturbs at the point the trigger field is blank. If the message is chosen from a database, delete the information in the fields behind the trigger point. In the Disturbance Tab select a disturbance mode and sequence.
For digital disturbances it is recommend using a limited or unlimited number of disturbances. For analogue disturbances we recommend the continuous disturbances until stop or time limited. To activate CANstress press the yellow flash in the icon bar.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 8
9 Test a CANstress with CANoe or CANalyzer
Build a Loopback test with your hardware interface, i.e. VN1630 and connect the CANstress in between.
Then insert an Interactive Generator Block in CANalyzer send branch or CANoe Simulation setup. Make sure, that the Baud rate in CANoe/CANalyzer and CANstress is set to 83,333 kBaud.
Press the yellow flash in CANoe or CANalyzer and check if a message is transmitted successfully. If so, select the Bit field trigger in CANstress and set the id in the ID or Base ID field which you had configured in the Interactive Generator. Press the yellow flash in CANstress now. When you receive Error Frames in your CANoe/CANalyzer trace window, CANstress is working correctly.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 9
10 SAE J2411 Single Wire – GMLAN
There is no special add-on board for single wire available. But with the Low Speed option, you can trigger on standard messages in normal mode. Special Single Wire-modes are not supported. Just connect CAN_L with CAN_GND (PIN 2 with 3) to Ground and CAN_H (PIN 7) with Single Wire CAN. Now, process like described in CAN Fault tolerant Lowspeed - ISO 11898-3, chapter 7.2. Currently it is not possible to use GM LAN Extended Identifiers to trigger. You have to calculate the original CAN level 2 Identifier to trigger on it.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 10
11 CANstress Integration in CANoe
For use the CANstress integration in CANoe select Configuration | Options to set up CANstress in CANoe. If you use a USB connection, CANstress should be recognized automatically. With RS232 you have to select the port and the baud rate.
If you define an alias name, you can use it later in the test module to address the CANstress, e. g. when you use more than one CANstress device at the same time. If you won’t define alias, you can also use the device index. To use CANstress with a test module, add the CANstressNL.dll as a component to the test module. The CANstressNL.dll is located in the CANoe/exec32 folder.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 11
You can activate the CANstress using CAPL test module:
void MainTest()
{
dword dwdRet;
dwdRet = CANstressCreateServer("myCANstress");
CANstressConnect();
CANstressOpen ("Demo\\ABSdata-Bus-Off.cst");
CANstressSetDevice (dwdRet);
CANstressStart();
[…]
A complete sample configuration is available in Demo_CAN_CN\MoreExamples\CANstress The demo folder directory can be defined in CANoe under Configuration | Options | Application Settings or General | File locations | Location of user data All functions provided by CANstressNL.dll are described in the CAPL Technical Reference which you can find in CANoe Online Help.
There are also patterns for XML test modules available. You’ll find it in CANoe Online Help Technical Reference: Testing, XML Test Functions <canstress_configure device="1" state="active" title="Disturb on 0x100"> <baseconfig>.\CANstress\Example.cst</baseconfig> </canstress_configure> <canstress_state device="1" state="active" title="Disturb on 0x100 again"/>
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 12
12 CANstress with CANoeRT (RT-Rack, VN89xx series, VT60xx series devices)
If you run CANoe in a distributed environment it’s recommended to use CANoe 7.5 SP2 and higher. Distributed environment means that the CANoe Real Time process (Simulation) runs at another machine than the CANoe GUI and Analysis part (Measurement Setup). Examples are the Vector RT-Rack or VN89xx or VT60xx series modules Configure CANstress in CANoe like in the ordinary CANstress integration. Add the CANstress configuration files to CANoe configuration as user files. So they are transferred to the device automatically at measurement start.
To load configurations with CANstressOpen(), remove any file path, just use the name of the .cst file
Note: If you run a CANoe version lower than 7.5 SP2, you’ll need to install the CANstress application itself on the simulation device, e.g. RT-Rack, VN89xx and VT60xx).
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 13
13 CANstress software and hardware information
To check the program version and the firmware version start CANstress and Select Disturbance | Connect to connect the device to the PC. In the status line you’ll get a success message.
Select Help | About | More Info to get all hardware information about the CANstress module.
CANstress Basics
SN-IND-1-010_CANstress_Basics.pdf 14
14 Firmware Update
The firmware is included in the CANstress software package. You’ll find it in the CANstress installation folder.
To update the firmware, disconnect the CANstress software with Disturbance | Disconnect and close the CANstress software. Do not remove the power supply until the process is finished. Run the respective batch file depending on the connected port (FirmwareUpdateOnCOM1.bat or FirmwareUpdateOnCOM2.bat).
15 Contacts
Please find the contacts of Vector Informatik GmbH and all subsidiaries worldwide via: http://www.vector.com/vi_addresses_en.html