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...
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...
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)
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.
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.
= 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...
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...
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...
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...
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...
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...
Need help?
Do you have a question about the Korlan USB2CAN and is the answer not in the manual?
Questions and answers