- ページ 8

USBインターフェイス 8devices Korlan USB2CANのPDF ユーザーマニュアルをオンラインで閲覧またはダウンロードできます。8devices Korlan USB2CAN 15 ページ。 High quality isolated usb to can interface
8devices Korlan USB2CAN にも: ユーザーマニュアル (17 ページ)

8devices Korlan USB2CAN ユーザーマニュアル

3. Work on Linux

3.1 Driver and configuration
Mainline Linux has supported the Korlan USB2CAN converter since version 3.9. It works with Linux
distributions like Ubuntu and Debian with no additional driver installation. For Raspbian, the driver must be
built manually. Instruction on building CAN driver for Raspbian can be found on 8devices WIKI pages.
https://www.8devices.com/wiki/korlan:compile-raspberry
Recommended Linux distributions:
Ubuntu 18.04 or later
Debian 8 (Jessie) or later
Raspbian Bullseye
You can verify if Korlan USB2CAN device is recognized by the system and drivers loaded correctly
using the usb-devices command. In the output, you will see your device:
usb-devices
T:
Bus=03 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#=
D:
Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=00 MxPS=64 #Cfgs=
P:
Vendor=0483 ProdID=1234 Rev=01.00
S:
Manufacturer=8Devices
S:
Product=USB2CAN converter
S:
SerialNumber=9508BBCC
C:
#Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:
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.
If the driver is loaded correctly, the CAN interface should be seen by issuing the
ip link show
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
Set can0 interface speed to 125 Kbps:
sudo ip link set can0 up type can bitrate 125000 sample-point 0.875
Bring the can0 interface to UP state (INFO LED lights on, STAT LED lights off):
sudo ip link set can0 up
To bring down the interface (STAT LED lights up, INFO LED lights off):
sudo ip link set can0 down
To get more information about configuration options type:
sudo ip link set can0 type can help

3.2 Tools - can-utils (send/receive CAN packets)

The programs allow you to get CAN communications instantly using two commands,
.
candump
Command to install the tool:
KORLAN USB2CAN
USER GUIDE
7 Spd=12
MxCh= 0
1
command:
and
cansend,
8