The PEAK-System PC-CAN interfaces product family is fully operational with any Linux OS.
Many Linux distributions, or rather the used Linux Kernels, already contain the drivers for PEAK-System's CAN interfaces. The CAN interfaces are then accessed via the common SocketCAN framework as network devices (aka netdev).
If you are using Linux environments missing a driver (e.g. minimized Linux environments, older Kernels) or you want to use our character-based driver (chardev) e.g. in connection with the PCAN-Basic API, you need our PCAN Driver for Linux package and compile the driver yourself.
Open a terminal and type:
grep PEAK_ /boot/config-`uname -r`
All PEAK drivers are listed (y = included in kernel, m = separate module) but this may not work in every Linux environment.
Open a terminal and type:
lsmod | grep ^peak
If, for example, a USB-based CAN interface from PEAK is connected and initialized, the output will be at least one line starting with
peak_*mainline drivers you need.
peak_*mainline drivers that are out-of-date or might contain issues.
We provide the PCAN-Basic API to allow the development of your own CAN applications for Linux. Programmers can use the languages C++, Java, and Python 2.x. More information about PCAN-Basic is available at its product web page.
System requirements: This API requires the chardev driver. Please use the Driver Package for Proprietary Purposes.
PCAN-View is a simple CAN monitor software for receiving and transmitting CAN and CAN FD messages. PCAN-View for Linux is based on the NCurses library.
System requirements: This software requires the chardev driver. Please use the Driver Package for Proprietary Purposes.
Installing software through repository needs first to register the repository only once. Next to the first installation of the software, there is nothing you have to do, except installing available updates when prompted by your system.
Download and install the following file
peak-system.list from the PEAK-System website:
$ wget -q http://www.peak-system.com/debian/dists/`lsb_release -cs`/peak-system.list -O- | sudo tee /etc/apt/sources.list.d/peak-system.listNote: If the
lsb_releasetool is not installed on your Linux system then replace
`lsb_release -cs`by the name of your Linux distribution. For example:
$ wget -q http://www.peak-system.com/debian/dists/wheezy/peak-system.list -O- | sudo tee /etc/apt/sources.list.d/peak-system.listThen, download and install the PEAK-System public key for
apt-secure, so that the repository is trusted:
$ wget -q http://www.peak-system.com/debian/peak-system-public-key.asc -O- | sudo apt-key add -To install
$ sudo apt-get update
$ sudo apt-get install pcanview-ncurses
|Trusty 14.04 LTS|
|Xenial 16.04 LTS|
|Bionic 18.04 LTS|
|OpenSUSE Tumbleweed||see Xenial