Korlan USB2CAN User Guide
Korlan USB2CAN User Guide
1.0v 2019-04-02
Table of Contents
1 Introduction 4
2 USB2CAN converter 5
3 Work on Linux 8
4 Work on Windows 10
With Korlan USB2CAN you can monitor a CAN network, write a CAN program and communicate with industrial,
medical, automotive or other CAN based device. It comes in two different versions: DB9 or OBD2.
The Korlan CANBUS USB adapter connects a CAN bus to the USB port of any device running Linux or Windows
operating system, which also supplies the power to the adapter (no power supply needed). In the downloads section
now you can find all the related drivers and software applications and even Windows 7 64-bit kernel driver, which was
added recently.
This warning is presented to inform you that the operation of this device may be dangerous. Your actions
can influence the behaviour or a can-based distributed embedded system and depending on the application,
the consequences of your improper actions could cause serious operation malfunction, loss of information,
damage to equipment and physical injury to yourself or others.
Connectors
CAN D-SUB, 9 pins. CAN-CIA standard interface pin assignment or OBD2, 16 pins.
Standard interface pin assignment.
CAN
Bit rates 20, 50, 100, 125, 250, 500, 800, 1000 Kbit/s or user definable
Transceiver TI ISO1050
Termination None
Measures
Weight DB9 version: 100g with cable, OBD2 version: 140g with cable
Environment
Other
Available drivers Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 10, Linux
Note: All other pins on OBD2 are not used and not connected.
1 LED (Power)
2 LED (Error)
3 LED (Info)
Info LED on, Error LED off There is no driver detected at host device.
Error LED on, Info LED off CAN interface is not enabled on a host device.
Info and Error LED on CAN interface enabled, device is ready to receive or send data.
The 120-Ω characteristic impedance twisted-pair cable must be terminated with an impedance of the same
value to minimized reflected waves that occur from miss-matched impedances. Bad terminal may cause signal
reflections and the transceivers of the connected CAN nodes (CAN- interface, control device) may not work.
The USB2CAN does not have an internal termination. Device must be used on a terminated CAN bus.
If the driver is correctly loaded, CAN interface should be seen when issuing the command sudo ip link.
sudo ip link set can0 up type can bitrate 125000 sample-point 0.875
candump can0
Two CAN bus interfaces need to be connected on same computer together (Ex.: connect two USB2CAN
usb ports to a computer and connect can ports together). The code sends random from one interface to
another and checks if the
received data is valid.
Example to send 100 random data packets from interface can0 to can1 at a 125 Kbps baudrate:
Testing was done using Ubuntu Linux distribution. Other distributions may require additional configuration.
Switch to internal bootloader using the set_dfu utility provided with the firmware:
sudo ./set_dfu
Plug Korlan USB2CAN device to computer USB connection. Info LED should be on, Error LED should be off.
Use Hardware wizard, which will start after You plug device to PC.
It can be started manually by pressing: Start – Control Panel – Add Hardware.
1 When Hardware wizard starts, choose 2 Then choose “Install from a list
“No, not this time” and press next: or specific location”:
3 Choose “Search for the best driver in these 4 You will receive warning from Windows.
locations”, browse for drivers location and Choose “Continue Anyway”:
press next:
Plug USB2CAN device to computer USB connection. Info LED should be on, Error LED should be off. Use
Hardware wizard, which will start after You plug device to PC.
It can be started manually by pressing “Start” button and then run Device manager by writing
“Device manager” in search field
3 Choose “Browse my computer for driver 4 Browse for drivers location on Your
software”: computer:
Plug USB2CAN device to computer USB connection. Info LED should be on, Error LED should be off.
3 Browse for drivers and click next: 4 Will pup-up Windows Security message.
Choose “Install”:
Plug USB2CAN device to computer USB connection. Info LED should be on, Error LED should be off. Use
Hardware wizard, which will start after You plug device to PC.
It can be started manually by pressing “Start” button and then run Device manager by writing “Device
manager” in search field.
3 Choose “Browse my computer for driver 4 Browse for driver’s location on Your computer:
software:
5 Finish installation:
Note: on the WEB page drop down menu select “ST Microelectronics bxCAN” and “Clock Rate” = 32MHz