Clone repository on your local machine:
sudo apt install dkms can-utils
git clone https://github.com/UniSwarm/udt1_linux_driver.git
cd udt1_linux_driver
sudo make run_auto
Plug your UDT on USB port, can0 appear.
candump can0
sudo make dkms
if UEFI Secure Boot is actived follow instruction:
-
Configuring Secure Boot :
- Ok and enter new pasword
- reboot
-
Perform MOK management :
- select "Enroll MOK"
- select "Continue" -> "Ok" -> enter password
- reboot
sudo make udev_install
sudo make remove_all
sudo make modules_install run
if there are error :
make clean
sudo make modules_install run
After that, you can simply connect the debugger to PC with USB B.
To start SocketCAN interface:
sudo ip link set can0 type can bitrate 500000
sudo ip link set can0 up
Install tools:
sudo apt install can-utils
To send CAN frame:
cansend can0 001#DEADBEEF
cansend can0 1000001#DEADBEEF
To dump CAN frames:
candump can0
The tool works internally with 80Mhz clock. Following bus speed are supported by default:
- 20 Kbps
- 33.3 Kbps
- 50 Kbps
- 80 Kbps
- 83.3 Kbps
- 100 Kbps
- 125 Kbps
- 150 Kbps
- 175 Kbps
- 200 Kbps
- 225 Kbps
- 250 Kbps
- 275 Kbps
- 300 Kbps
- 500 Kbps
- 625 Kbps
- 800 Kbps
- 1000 Kbps
Note: Bittiming parameters are hardcoded inside device. Only speed can be configured using iproute2 utils.