Skip to content

Latest commit

 

History

History
65 lines (35 loc) · 1.12 KB

README.md

File metadata and controls

65 lines (35 loc) · 1.12 KB

SocketCAN driver for Toucan adapter

Building kernel module

Install build tools:

sudo apt install build-essential

If you use with Raspberry Pi install Linux Kernel Headers:

sudo apt install raspberrypi-kernel-headers

Check your Linux kernel version:

uname -r	

Download TouCAN SocketCAN driver source code from github.

For kernel version up to 5.12

git clone --branch v1.0 https://github.com/rusoku/TouCAN-SocketCAN

For kernel version from v.5.12

git clone https://github.com/rusoku/TouCAN-SocketCAN

Make sure you have kernel source and C toolchain packages installed. To compile run:

sudo make

To install module to system run:

sudo make install

Create a list of module dependencies.

sudo depmod

Reboot your Raspberry Pi. Double check if TouCAN driver module is loaded after booting.

pi@raspberrypi:~ $ lsmod | grep toucan
toucan 20480 0
can_dev 28672 1 toucan

Set up interface

For example the nmea2000 network use 250 kbps bitrate:

ip link set can0 up type can bitrate 250000

Shut down interface

ip link set can0 down
rmmod toucan