Peak chardev driver on Linux stops reading abruptly

USB to CAN Interface
Post Reply
eoztosun
Posts: 5
Joined: Tue 11. Mar 2025, 06:09

Peak chardev driver on Linux stops reading abruptly

Post by eoztosun » Mon 17. Mar 2025, 12:15

Hi,

I have an application based on PCAN-Basic API. The application runs without any problems on Windows 10 and Windows 11. I'm trying to port it to debian Linux.

I installed the chardev peak driver, following the instructions in the README within the package. When I try to run RX examples, they stop after a while. My Application's RX also stops after a while.

Code: Select all

ls /dev | grep pcan
gives
  • pcan32
    pcan-usb
    pcanusb32

Code: Select all

sudo dmesg
gives

PCAN-USB CAN1: controller internal Rx queue overflow: possible loss of msgs(s)


I'm receiving a single message with 10ms period from a single node. How come RX queue can be full. Documentation suggests that the default RX buffer is 2000 and it can be configured. I configured it to 30000 to see if it solves but didn't work.

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

Re: Peak chardev driver on Linux stops reading abruptly

Post by M.Maidhof » Mon 17. Mar 2025, 14:11

Hi,

please post the output of cat /proc/pcan before and after the reading stops. Can you please show a photo of the used PCAN hardware, to see which version you are using?

regards

Michael

eoztosun
Posts: 5
Joined: Tue 11. Mar 2025, 06:09

Re: Peak chardev driver on Linux stops reading abruptly

Post by eoztosun » Tue 18. Mar 2025, 07:37

Here is the PCAN-View description of the device at hand
PCAN-USB_at_hand.png
PCAN-USB_at_hand.png (70.67 KiB) Viewed 20835 times

Here is

Code: Select all

cat /proc/pcan
output before any read operation, after powering the Debian/Linux (intel x86) computer with aforementioned PCAN-USB attached.
before.png
before.png (44.66 KiB) Viewed 20835 times

Here is

Code: Select all

cat /proc/pcan
output after read operation.
after.png
after.png (45.55 KiB) Viewed 20835 times

Here is the

Code: Select all

sudo dmesg
output after the reading stops.
dmesg_output.png
dmesg_output.png (17.33 KiB) Viewed 20835 times
I tried on a virtual machine on my Windows computer, same result. Examples on peak driver and PCAN-Basic driver and my own application, they all have the same issue. Reading stops after a while. When I re-run, it reads a while and then stops again.

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

Re: Peak chardev driver on Linux stops reading abruptly

Post by M.Maidhof » Wed 19. Mar 2025, 08:23

Hi,

please send a photo of the adapter showing the serial number to our support email address, to see which hardware you are using.

regards

Michael

eoztosun
Posts: 5
Joined: Tue 11. Mar 2025, 06:09

Re: Peak chardev driver on Linux stops reading abruptly

Post by eoztosun » Thu 20. Mar 2025, 07:55

The problem seems to be solved but I have no idea how. I am not able to reproduce it. And I don't think I have made any configuration changes.

Thank you for your support

Edit: Please keep the post for a while in case if it occurs again

Post Reply