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

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
andre_bauer
Posts: 3
Joined: Tue 24. Jan 2017, 15:51

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

Post by andre_bauer » Tue 24. Jan 2017, 16:00

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!

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

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

Post by M.Maidhof » Thu 26. Jan 2017, 11:27

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

andre_bauer
Posts: 3
Joined: Tue 24. Jan 2017, 15:51

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

Post by andre_bauer » Thu 26. Jan 2017, 12:30

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é

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

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

Post by M.Maidhof » Fri 27. Jan 2017, 09:07

Hi,

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

regards

Michael

andre_bauer
Posts: 3
Joined: Tue 24. Jan 2017, 15:51

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

Post by andre_bauer » Tue 31. Jan 2017, 11:16

Installing 8.3 drivers fixed the issues. Now everything works perfectly. Thanks for your work and keep it up :)

Post Reply