pcanread not printing CAN messages

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
remgev
Posts: 1
Joined: Wed 10. Aug 2016, 15:46

pcanread not printing CAN messages

Post by remgev » Wed 10. Aug 2016, 15:59

I have installed the PEAK Linux driver for the NetDev interface and have been able to successfully capture the heartbeat of one of our current drives through the PCAN-USB hardware (as is evident in the candump output). Unfortunately, the example c++ pcanread file does not seem to display the same heartbeat, and it returns a status of 0, which according to PCANBasic.h means:

#define PCAN_ERROR_OK 0x00000 // No error

My /proc/pcan file looks like this:

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Aug 10 2016 15:28:58 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 1 interfaces @ major 244 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can0 ffffffff 001 0x001c 00000003 00000000 000004b7 00000000 0x0000

Attached is a picture of the pcanread and candump output. Any idea how to fix this?
Attachments
pcanread vs candump
pcanread vs candump
Selection_009.png (14.29 KiB) Viewed 5162 times

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

Re: pcanread not printing CAN messages

Post by M.Maidhof » Wed 10. Aug 2016, 17:29

Hi,

PCANbasic API will only work with the chardev driver. See also:

http://www.peak-system.com/forum/viewto ... =41&t=1514

regards

Michael

Post Reply