8devices Korlan USB2CAN User Manual

8devices Korlan USB2CAN User Manual

High quality isolated usb to can interface
Hide thumbs Also See for Korlan USB2CAN:

Advertisement

Quick Links

Korlan USB2CAN User Guide
High quality isolated USB to CAN interface
02-04-2022

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Korlan USB2CAN and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for 8devices Korlan USB2CAN

  • Page 1 Korlan USB2CAN User Guide High quality isolated USB to CAN interface 
 02-04-2022...
  • Page 2: Table Of Contents

    Table of contents 1. Introduction 1.1 Usage warning 1.2 Technical specification 2. Korlan USB2CAN converter 2.1 CAN connector pinout 2.2 LED indication 2.4 Testing modes 3. Work on Linux 3.1 Driver and configuration 3.2 Tools - can-utils (send/receive CAN packets) 3.3 Python programming examples for Linux...
  • Page 3: Introduction

    You can send and receive CAN messages. Write your program for communicating with industrial, medical, and automotive devices equipped with CAN interface. Korlan USB2CAN 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 the Linux or Windows operating system, which also supplies the power to the adapter (no power supply is required).
  • Page 4 CONNECTORS Open source CANAL API DLL for Windows Linux SocketCAN compatible KORLAN USB2CAN USER GUIDE...
  • Page 5: Korlan Usb2Can Converter

    2. Korlan USB2CAN converter 2.1 CAN connector pinout FIGURE 2-1. DB9 CONNECTOR SIGNAL DESCRIPTION No connection CANL CANL bus line (dominant low) CAN GND CAN Ground No connection CAN_SHLD Connected to CAN GND via 100 Ω /0.1uF CAN GND CAN Ground...
  • Page 6: Led Indication

    2.2 LED indication Korlan USB2CAN has three LEDs (Power, Error, Info) for device status indication. 
 Device status Indication modes are listed in the table below. 1. INFO – LED (Info)
 2. STAT – LED (Status) 3. PWR – LED (Power)
  • Page 7: Testing Modes

    2.4 Testing modes Korlan USB2CAN supports three testing modes: • Loopback - mode is used to test if the device is applicable when only one device is available. If Korlan USB2CAN is in loopback mode, everything sent through the CAN interface is sent back to the device.
  • Page 8: Work On Linux

    If#=0x0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=usb_8dev If you use several Korlan USB2CAN devices, you will see all of them in USB-devices output with different SeriaNumber values. The first device in the output will correspond to the can0 socketcan interface, the second - can1, etc.
  • Page 9: Python Programming Examples For Linux

    = can.Message(arbitration_id=0xc0ffee, data=[i,2,3,4,5,6,7,8], is_extended_id=True) bus.send(msg) Example send.py - sends 10 CAN messages to the bus. import can bus = can.Bus(channel='can0', interface='socketcan', bitrate=1000000) for i in range(10): msg = can.Message(arbitration_id=0xc0ffee, data=[i,2,3,4,5,6,7,8], is_extended_id=True) bus.send(msg) KORLAN USB2CAN USER GUIDE...
  • Page 10: Firmware Upgrade

    3.4 Firmware upgrade Install dfu-util tool sudo apt-get install dfu-util Switch to the internal bootloader using the set_dfu utility provided with the firmware: sudo ./set_dfu Flash new firmware as root: sudo dfu-util -a 0 -s 0x8008000 -D USB2CAN-v2.0.bin KORLAN USB2CAN USER GUIDE...
  • Page 11: Work On Windows

    4. Work on Windows 4.1 Installing Windows 10/11 WinUSB driver Download the Korlan USB2CAN driver from https://www.8devices.com/media/products/usb2can_korlan/downloads/usb2can_winusb.msi. Install it following the procedure. Check if the device is functioning correctly using Windows Device Manager
 KORLAN USB2CAN USER GUIDE...
  • Page 12: Korlan Usb2Cab Test Application For Windows - Kcan.exe

    Download kcan_setup.exe and run it to install kcan.exe on your computer https://www.8devices.com/media/products/usb2can_korlan/downloads/kcan_setup.exe Now you can run the kcan.exe application. Select the desired Korlan USB2CAN device id from the dropdown menu if you use multiple Korlan devices on your computer. KORLAN USB2CAN...
  • Page 13 Now you can proceed to the TX/RX tab and observe received and transmitted messages on a scrollable messages pane. You shall set desired CAN ID and DATA for transmitting messages, then click on the button Send.
 KORLAN USB2CAN USER GUIDE...
  • Page 14: Python Programing Examples For Windows

    8devices provide the source code of kcan.exe under a very friendly license for your reference and experiments. 4.3 Python programing examples for Windows You will require a CANAL DLL library from the 8devices WEB site. It’s been provided for 64 and 32-bit environments https://www.8devices.com/media/products/usb2can_korlan/downloads/korlan_python-can_examples.zip Examples are based on python-can library programming examples and are slightly modified, adding Korlan...
  • Page 15: Firmware Upgrade

    2. Download Korlan USB2CAN Firmware Upgrade Tool v2.3 from our website: https://www.8devices.com/media/products/usb2can_korlan/downloads/USB2CAN_v23.exe 3. Run the USB2CAN_v23.exe file to start the firmware upgrade. 4. Follow instructions and wait until the firmware upgrade is finished before disconnecting Korlan USB2CAN device. KORLAN USB2CAN...

Table of Contents