pcanview cannot detect my peak-can device

This forum covers issues concerning multiple software products.

pcanview cannot detect my peak-can device

Postby 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.
franem
 
Posts: 2
Joined: Fri 29. Mar 2019, 16:52

Re: pcanview cannot detect my peak-can device

Postby M.Maidhof » Mon 1. Apr 2019, 08: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
M.Maidhof
Support
Support
 
Posts: 1166
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany

Re: pcanview cannot detect my peak-can device

Postby franem » Mon 1. Apr 2019, 17:24

Thank you Michael,

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

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

Re: pcanview cannot detect my peak-can device

Postby d.pastl » Fri 5. Jul 2019, 16: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
Screenshot from 2019-07-05 09-03-24.png
Pcanview upon opening
Screenshot from 2019-07-05 09-03-24.png (58.5 KiB) Viewed 308 times
d.pastl
 
Posts: 2
Joined: Thu 4. Jul 2019, 23:44

Re: pcanview cannot detect my peak-can device

Postby d.pastl » Fri 5. Jul 2019, 16: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!
d.pastl
 
Posts: 2
Joined: Thu 4. Jul 2019, 23:44

Re: pcanview cannot detect my peak-can device

Postby U.Wilhelm » Mon 8. Jul 2019, 08: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
-------------------------------
User avatar
U.Wilhelm
Sales & Support
Sales & Support
 
Posts: 1009
Joined: Fri 10. Sep 2010, 18:34
Location: Darmstadt


Return to Software



This website uses cookies for analytics, for logins to the online shop and the forum, and for the handling of an order. By browsing this website you agree to the use of cookies. Detailed information on their use can be found in our privacy policy.

OKPrivacy Policy