PEAK-Linux Driver on Raspberry Pi
Re: PEAK-Linux Driver on Raspberry Pi
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
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
Re: PEAK-Linux Driver on Raspberry Pi
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
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
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

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
Re: PEAK-Linux Driver on Raspberry Pi
Hi,
simply use the RPI kernel, as written some posts above.
regards
Michael
simply use the RPI kernel, as written some posts above.
regards
Michael
Re: PEAK-Linux Driver on Raspberry Pi
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
This version of the kernel is using devicetree drivers for the SPI bus.
The 3.18.0 kernel is not using DT.
Benno
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PEAK-Linux Driver on Raspberry Pi
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)
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PEAK-Linux Driver on Raspberry Pi
Yes I know, but our other hardware is using SPI from the device tree option in the 4.x kernelU.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
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
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PEAK-Linux Driver on Raspberry Pi
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PEAK-Linux Driver on Raspberry Pi
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
Benno
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: PEAK-Linux Driver on Raspberry Pi
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: PEAK-Linux Driver on Raspberry Pi
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
and was able to insert the driver into the kernel.
When I run cat /proc/pcan, i get
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,
unfortuantely, I'm then getting an error
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.
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
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
Code: Select all
sudo modprobe pcan
sudo ip link set can0 type can bitrate 500000
Code: Select all
Cannot find device "can0"
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.