The original issue and its history can be found here: https://github.com/mac-can/PCBUSB-Library/issues/8
Test setup
- Debian 13.7
- PEAK Linux driver v9.3.1
- PCAN-USB FD (IPEH-004022)
- Kvaser U100P connected to another computer as the transmitting CAN node
- 250 kbit/s
- No additional CAN node is connected to acknowledge CAN frames
The test sequence is:
Code: Select all
CAN_SetValue(channel, PCAN_LISTEN_ONLY, ON, ...);
CAN_Initialize(channel, PCAN_BAUD_250K, ...);
CAN_SetValue(channel, PCAN_LISTEN_ONLY, OFF, ...);
The behavior disappears when another active CAN node is connected to the bus and acknowledges the CAN communication.
The attached `pcan_recv.c` is a minimal reproducer. On Linux it can be built with:
Code: Select all
gcc pcan_recv.c -lpthread -lpcanbasic -o pcan_recv
Could you please clarify whether this behavior is known for the PCAN-USB FD, and whether switching from Listen-Only mode to Normal mode requires any additional initialization or reset of the device?
---
Code: Select all
haumea@UV-PC012DEB:~$ uname -a
Linux UV-PC012DEB 6.12.107+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.107-1 (2026-08-29) x86_64 GNU/Linux
haumea@UV-PC012DEB:~$ lsmod | grep pcan
pcan 307200 0
i2c_algo_bit 16384 2 pcan,i915
usbcore 409600 8 xhci_hcd,usbhid,btmtk,rtsx_usb,btusb,xhci_pci,pcan,hid_logitech_hidpp
haumea@UV-PC012DEB:~$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20260916_n (9.3.1) Sep 28 2026 10:31:43 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 1 interfaces @ major 237 found ----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbfd -NA- 0 000 0x001c 00000000 00000000 00000000 00000000 0x0000
haumea@UV-PC012DEB:~$
