PEAK-Linux Driver on Raspberry Pi

This forum covers PCAN-Linux and Linux development issues concerning our products
M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: PEAK-Linux Driver on Raspberry Pi

Post by M.Maidhof » Mon 23. Nov 2015, 12:23

Hi,

it looks like the SOCKETCAN option is not enabled in your kernel config.

Please check cat /boot/config-4.xxxxxxxx |grep -i can

(replace xxxxxx with your kernel version)

To use the chardev option of our driver with RPI, please read the 3rd post above.

regards

Michael

Johnny
Posts: 2
Joined: Mon 23. Nov 2015, 11:03

Re: PEAK-Linux Driver on Raspberry Pi

Post by Johnny » Thu 26. Nov 2015, 22:25

Hi!

Thank you for your quick answer!

I figured out at least 2 main issues
1) Yes I know, Raspberry is no industrial product and therefore maybe not compatible to industrial products :D
But nevertheless a nice toy and sometimes useful for diploma thesis and so on.
2) Using the standard image does not include the Kernel driver for PEAK systems, so you have to compile it for yourself
If there is a need I’ll try to provide a image including the driver.

BR
Johnny

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: PEAK-Linux Driver on Raspberry Pi

Post by M.Maidhof » Fri 27. Nov 2015, 09:13

Hi,

simply use the RPI kernel, as written some posts above.

regards

Michael

bennog
Posts: 7
Joined: Tue 24. Feb 2015, 12:04

Re: PEAK-Linux Driver on Raspberry Pi

Post by bennog » Tue 5. Jan 2016, 10:16

Is there already a solution to use the drivers on 4.1.13 kernel.
This version of the kernel is using devicetree drivers for the SPI bus.

The 3.18.0 kernel is not using DT.

Benno

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PEAK-Linux Driver on Raspberry Pi

Post by PEAK-Support » Tue 5. Jan 2016, 16:25

Our CAN Hardware is not using SPI (to slow!!!)
You need a CAN-USB Interface with our own USB Drivers to work with CAN
All the rest is peanuts, because you could not run real CAN Communication over SPI.

Driver is free available - read some instructions here in the forum (use the search)
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

bennog
Posts: 7
Joined: Tue 24. Feb 2015, 12:04

Re: PEAK-Linux Driver on Raspberry Pi

Post by bennog » Tue 5. Jan 2016, 16:55

U.Wilhelm wrote:Our CAN Hardware is not using SPI (to slow!!!)
You need a CAN-USB Interface with our own USB Drivers to work with CAN
Yes I know, but our other hardware is using SPI from the device tree option in the 4.x kernel
Also the 2 different kernels for PI en PI2 is solved with the device tree solution so a single kernel (single SD card image) can be used for both PI and PI2.

Benno

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PEAK-Linux Driver on Raspberry Pi

Post by PEAK-Support » Tue 5. Jan 2016, 21:51

OK, and what exact is your problem with one of our products ? You could download our drivers, compile and use them with our Hardware....
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

bennog
Posts: 7
Joined: Tue 24. Feb 2015, 12:04

Re: PEAK-Linux Driver on Raspberry Pi

Post by bennog » Wed 6. Jan 2016, 07:47

Yes I woud like to use the Peak-CAN dongle on this PI to use both CAN and our hardware at the same time.

Benno

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PEAK-Linux Driver on Raspberry Pi

Post by PEAK-Support » Wed 6. Jan 2016, 11:12

OK - but we have a driver that works, so please contact the other CAN Hardware manufacturer (SPI CAN Interface) to solve his problem - our driver is part of the Kernel and work out of the box.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

roB3AR
Posts: 3
Joined: Tue 2. Feb 2016, 22:13

Re: PEAK-Linux Driver on Raspberry Pi

Post by roB3AR » Tue 2. Feb 2016, 22:49

Hello,
I'm currently running into an issue getting the two pcans recognized as can0 and can1 plugged into my raspberry pi 2. I'm running raspbian 4.1.13-v7+ (can-utils installed) and I'm able to compile peak-linux-driver-7.15.2. I ran make as

Code: Select all

make NET=NO PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO
and was able to insert the driver into the kernel.
When I run cat /proc/pcan, i get

Code: Select all

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Feb  2 2016 19:34:33 --------------
*------------------------------- [mod] [usb] --------------------------------
*--------------------- 2 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb   -NA- ffffffff 013 0x001c 00000000 00000000 00000000 00000000 0x0000
33    usb   -NA- ffffffff 013 0x001c 00000000 00000000 00000000 00000000 0x0000
which leads me to believe it's recognizing the pcan usbs, but I'm unable to get them connected to can0 and can1. In order to set up can0, I'm trying the following,

Code: Select all

sudo modprobe pcan
sudo ip link set can0 type can bitrate 500000
unfortuantely, I'm then getting an error

Code: Select all

Cannot find device "can0"
I can't figure out what I'm doing wrong that the pi's socketcan can't recognize the pcans.

Do you have any advice or suggestions for getting this configured? I've been reading though the guide, and trying things here and there, but I can't figure out how to connect these.

Post Reply