Page 1 of 1

pcanview cannot find device though both dmest and lsmod say drivers are there

Posted: Fri 22. Dec 2023, 20:46
by sneiman
Hi -

I have been using a PEAK-USB interface on Windows. It works fine. I want to use it from a linux machine but am having a few problems.
I am on Ubuntu 22.04.3 LTS. The interface is plugged in and shows a solid red led.

lsmod | grep peak outputs:
peak_usb 61440 0
can_dev 49152 1 peak_usb

dmesg | shows no problems:
[ 10.233101] peak_usb 3-2:1.0: PEAK-System PCAN-USB adapter hwrev 86 serial FFFFFFFF (1 channel)
[ 10.233289] peak_usb 3-2:1.0 can0: attached to PCAN-USB channel 0 (device 255)
[ 10.233343] usbcore: registered new interface driver peak_usb

However when I run pcanview, the interface comes up and displays the following error:
No PCAN device found.
Is the pcan driver loaded ? (No such file or directory)

I do not see any can device in /dev.

My reading of the documentation seems to suggest this should work. Or am I wrong, and I need to build and install the chardev driver? I don't wanna break a driver if it really is already installed.

thanks for any help on this -

Re: pcanview cannot find device though both dmest and lsmod say drivers are there

Posted: Fri 22. Dec 2023, 20:51
by PEAK-Support
PCAN-View for Linux needs a CharDev driver.
Please see Linux Driver Documentation.

Re: pcanview cannot find device though both dmest and lsmod say drivers are there

Posted: Fri 22. Dec 2023, 21:22
by sneiman
Thanks for fast response. All installed now.

FWIW - I am a long time ubuntu user, and the documentation led me to believe that unless I had a proprietary setup or an old kernel I would not need to install chardev driver. Perhaps next documentation update this could clarified.

thanks

Re: pcanview cannot find device though both dmest and lsmod say drivers are there

Posted: Fri 22. Dec 2023, 21:29
by PEAK-Support
But it is well documented? Maybe you read the wrong document…