ADTF Peak CAN Device
ADTF PEAK CAN Device

Description

This package contains a streaming source for receiving CAN data and a streaming sink for sending CAN data over PEAK Hardware by using the PCAN-Basic API (on Linux chardev version). If you are looking for the netdev version check out the ADTF Socket CAN Device Plugin

Please have a look at Release Notes

Overview

The following components are delivered:

Capture Devices

Streaming Service Description
Peak CAN Device Receiver Use this streaming source to receive CAN data using a PCAN-Basic library compatible device.
Peak CAN Device Transmitter Use this streaming sink to transmit CAN data using a PCAN-Basic library compatible device.

Prerequisites

Windows

Before using the plugin you have to install the PEAK systems drivers. Download the latest windows drivers from the homepage and install it. Maybe you have to reboot your system.

Linux

chardev

Before using the plugin you have to install the PEAK systems drivers. Virtual machines are not supported. Therefore download the latest driver and follow the instructions in the readme for building/installing only the default (aka "chardev") build by using the following commands:

cd peak-linux-driver-x.y.z
make clean all
sudo make install
sudo modprobe pcan

netdev

The netdev version uses socketCAN, so you need the ADTF Socket CAN Device Plugin to receive and send CAN messages over the Peak device over socketCAN, not this Plugin.
Download Driver Package for Proprietary Purposes, unzip it and change directory in terminal to make file

make clean
make NET=NETDEV_SUPPORT
sudo make install

and reboot your machine.

sudo modprobe peak_usb

connect your peak device if it isn't already and make sure everything is fine:

ip addr | grep can

should give you "can0 ...." or similar.

Now set the device up, for example:

sudo ip link set can0 up type can bitrate 500000 sample-point 0.8

Connection of multiple Peak devices on one PC

Every PEAK device has an id which is stored on the hardware itself. You can set this value by using the "PEAK-Settings" software. Make sure the ids of the devices you are going to use are different.
For example: 0x0000000Ah and the other one 0x0000000Bh. Then use this id in the ADTF filters (see property peak_device_id).
Furthermore for a correct connection between the PEAK device and the filter you have to select the correct physical channel of the PEAK device (see property physical_channel).

Using transmitter and receiver on the same physical channel

You can use one physical channel of one PEAK device for receiving AND transmitting.
Just set the same physical_channel property in the receiver and transmitter and additionally enable the share_physical_channel in the transmitter.
Make sure the listen_only property of the receiver is not set.

License Information

Please make sure you have an active and valid subscription for this feature, the license key/file is set and the used license server is reachable (if required). For more information, please contact our support.

For any licence information have a look at LICENSE.

Furthermore please refer to Used Open Source Software for an overview of 3rd party packages we are glad to use.