pcanview cannot detect my peak-can device

This forum covers issues concerning multiple software products.
Locked
franem
Posts: 2
Joined: Fri 29. Mar 2019, 16:52

pcanview cannot detect my peak-can device

Post by franem » Fri 29. Mar 2019, 17:22

Hello there,

I've tried to receive CAN messages using pcanview in linux debian but an error message appear and I cannot see any can message. The message is "No PCAN device found. Is the pcan driver loaded? (no such file or directory)"

Previously I've assured that pcan driver is present and working by typing the commands below:

$ grep PEAK_ /boot/config-`uname -r`
CONFIG_CAN_PEAK_PCMCIA=m
CONFIG_CAN_PEAK_PCI=m
CONFIG_CAN_PEAK_PCIEC=y
CONFIG_CAN_PEAK_USB=m

$ lsmod | grep ^can
can_dev 24576 1 peak_usb

Seeing this results i think my driver is working fine but something is wrong. Should i do anything more in order to get pcanview working propertly?

I've tried this solution in Ubuntu 16.04 and Debian 9.8. It's important to say that my Peak Usb cable worked fine on windows using pcanview and Busmaster.

Thanks. Regards.

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

Re: pcanview cannot detect my peak-can device

Post by M.Maidhof » Mon 1. Apr 2019, 09:24

Hi,

PCAN-View for Linux needs the peak-linux-driver-8.x in chardev mode. You can download the driver and the manual for that driver on our Linux website: http://www.peak-system.com/fileadmin/me ... /index.htm

regards

Michael

franem
Posts: 2
Joined: Fri 29. Mar 2019, 16:52

Re: pcanview cannot detect my peak-can device

Post by franem » Mon 1. Apr 2019, 18:24

Thank you Michael,

The solution worked so I've been able to read from CAN using pcanview.

Thanks.

d.pastl
Posts: 2
Joined: Fri 5. Jul 2019, 00:44

Re: pcanview cannot detect my peak-can device

Post by d.pastl » Fri 5. Jul 2019, 17:04

Hello,

I'm having the same issue on Ubuntu 18.04. I have a pcan-usb device with chardev driver installed using this process:

Code: Select all

make clean
make
sudo make install
sudo modprobe pcan
Which results in /proc/pcan having the following:

Code: Select all

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20190412_n (8.8.0) Jul  4 2019 12:49:35 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 239 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb   -NA- ffffffff 003 0x001c 00000000 00000000 00000000 00000000 0x0000
pcanview was installed following the directions on your website. libncurses5 is at version 6.1-1ubuntu1.18.04.

When I open pcanview however, I cannot select a device, as per the attached screenshot.

I'm a bit perplexed as I have done this exact same process on a different computer and it worked. Any thoughts on what I could be doing wrong?
Attachments
Pcanview upon opening
Pcanview upon opening
Screenshot from 2019-07-05 09-03-24.png (58.5 KiB) Viewed 2519 times

d.pastl
Posts: 2
Joined: Fri 5. Jul 2019, 00:44

Re: pcanview cannot detect my peak-can device

Post by d.pastl » Fri 5. Jul 2019, 17:20

Oh. PCAN_USB 0 is the device. I thought it was listing 0 devices.

Perhaps you could change the highlight colour to be different from the background of the dialog, that would make it less confusing to me at least.

I guess I solved my own problem haha. Thanks for all the awesome work with these products. I'm really loving the addition of pcanview for linux!

User avatar
U.Wilhelm
Sales & Support
Sales & Support
Posts: 1104
Joined: Fri 10. Sep 2010, 19:34

Re: pcanview cannot detect my peak-can device

Post by U.Wilhelm » Mon 8. Jul 2019, 09:03

Enumaration starts at 0 - so the first Device is Device with #0. I will send the feedback to the Developer, that they add a comment like 1 CAN Interface(s) found. So that the user see how many deveices are recognized.
--------------------------------
PEAK-System Technik
Technical Support Team
support@peak-system.com
-------------------------------

Locked