Page 1 of 1

peak-linux-driver-8.2 chardev not working on 64 bit

Posted: Tue 24. Jan 2017, 16:00
by andre_bauer
Hey,

I installed the peak-linux-driver-8.2 on Ubuntu. CAN connection is via PCI card. After a reboot reading from CAN works sometimes for a short time. The output of cat /proc/pcan looks like this, when its not working anymore

Code: Select all

cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20161108_n (8.2.0) Dec  2 2016 14:24:50 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 2 interfaces @ major 244 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
 0    pci   -NA- f9ce0000 016 0x011c 00000000 00000000 00000001 00000004 0x0002
 1    pci   -NA- f9ce0400 016 0x001c 00000000 00000000 00000000 00000001 0x0002
cat /dev/pcan0 receives no messages

EDIT:I almost forgot: Same hardware configuration works on Ubuntu 32bit flawlessly. That means the hardware part seems to be correct.

Hope you can help me and thanks!

Re: peak-linux-driver-8.2 chardev not working on 64 bit

Posted: Thu 26. Jan 2017, 11:27
by M.Maidhof
Hi,

you are using different baudrates on the channels. Please tell us your hardware setup and baudrate of your external CAN node. Sure you use terminated CAN cable?

regards

Michael

Re: peak-linux-driver-8.2 chardev not working on 64 bit

Posted: Thu 26. Jan 2017, 12:30
by andre_bauer
Hey Michael,

only channel 0 is connected to a CAN bus channel 1 ist not plugged in. It is one PCI card with 2 CAN channels(ports) Termination should be fine since it works on 32bit flawlessly right? I will look at the baudrate on 32 bit and then check if it is the same. If not how can I configure the baudrate the driver/card hast to use?

Greetings
André

Re: peak-linux-driver-8.2 chardev not working on 64 bit

Posted: Fri 27. Jan 2017, 09:07
by M.Maidhof
Hi,

to change the baudrate, you have to use the "echo" command, please see driver manual on page 23 for more details.

regards

Michael

Re: peak-linux-driver-8.2 chardev not working on 64 bit

Posted: Tue 31. Jan 2017, 11:16
by andre_bauer
Installing 8.3 drivers fixed the issues. Now everything works perfectly. Thanks for your work and keep it up :)