Listen-Only mode on Linux stopped working

USB to CAN Interface
Locked
freddy.ben-zeev
Posts: 10
Joined: Fri 14. Jun 2024, 20:03

Listen-Only mode on Linux stopped working

Post by freddy.ben-zeev » Tue 9. Jul 2024, 03:10

I've moved my setup to a new system and the Listen Only mode does not seem to work any more. I'm using Ubuntu 20.04 with peak-system USB adapter. The driver version is v8.18.0 and the PCAN-View version is v0.9.3-2-gd2f361a. Without Listen Only option the PCAN-View transmits and traces the messages on the bus, but if I set Listen Only (and use a different device to send the CAN messages) the trace window remains empty. If I use the Windows PCAN-View it works just fine.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Listen-Only mode on Linux stopped working

Post by M.Heidemann » Tue 9. Jul 2024, 09:20

I was not able to replicate this behavior on in my tests using pcan-linux 8.18 and PCAN-View 0.9.3-53-g5adad75. Please check if you can upgrade to the latest version of PCAN-View using the installation described here:

https://www.peak-system.com/fileadmin/m ... n-view.php

Can you show me the output for:

Code: Select all

uname -a
and

Code: Select all

dmesg
?
---
Marvin Heidemann
PEAK-Support Team

freddy.ben-zeev
Posts: 10
Joined: Fri 14. Jun 2024, 20:03

Re: Listen-Only mode on Linux stopped working

Post by freddy.ben-zeev » Tue 9. Jul 2024, 18:35

The PCAN-View I've installed from the provided link shows version 0.9.3-2-gd2f361a and not 0.9.3-53-g5adad75 (as in your post). Just to be sure I removed and reinstalled.

uname -a:

dcval@dcval-NT2-HP-Z4-G4-Workstation:~/Downloads$ uname -a
Linux dcval-NT2-HP-Z4-G4-Workstation 5.15.0-113-generic #123~20.04.1-Ubuntu SMP Wed Jun 12 17:33:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

dmesg:

Attached.

Thanks,

Freddy
Attachments
dmesg.txt
(107.18 KiB) Downloaded 358 times

PEAK-System
Support
Support
Posts: 14
Joined: Tue 31. Aug 2010, 12:42

Re: Listen-Only mode on Linux stopped working

Post by PEAK-System » Wed 10. Jul 2024, 08:41

From what i can see in your logs:

You are using the wrong driver variant, seems like you installed the NETDEV driver which is compatible with SocketCAN applications but not PCANView.

To confirm:

Switch to your peak-driver directory:

Code: Select all

sudo make uninstall

Code: Select all

make clean

Code: Select all

make

Code: Select all

sudo make install

Code: Select all

sudo modprobe pcan
Afterwards check PCANView again.

BR

freddy.ben-zeev
Posts: 10
Joined: Fri 14. Jun 2024, 20:03

Re: Listen-Only mode on Linux stopped working

Post by freddy.ben-zeev » Thu 11. Jul 2024, 22:56

Thanks, it works!

Freddy

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Listen-Only mode on Linux stopped working

Post by M.Heidemann » Fri 12. Jul 2024, 08:05

Hi,

Thanks for the feedback! :)

Best Regards

Marvin

- Topic closed -
---
Marvin Heidemann
PEAK-Support Team

Locked