My application which calls CAN_Write offered by PCAN-Basic-Linux occasionally runs into error PCAN_ERROR_QRCVEMPTY without end. Once this occurs, the PCAN buses remain off regardless CAN_initiliaze/uninitialize attempts. The only solution that seems to work is to reboot the computer. Checking dmesg content in the terminal reveals that a lost packet event often occurs when PCAN_ERROR_QRCVEMPTY gets triggered. The PCAN device I am using is a PCAN-PCI. Is it possible to reset the device to a clean state such that the buses can be turned on again without rebooting the computer?
More information: my PCAN driver underneath PCAN-Basic-Linux was built in chardev mode, and my OS is Ubuntu 16.04.
Thanks in advance!
PCAN_ERROR_QRCVEMPTY can't be cleared on Ubuntu 16.04
-
- Software Development
- Posts: 305
- Joined: Mon 9. Sep 2013, 12:21
Re: PCAN_ERROR_QRCVEMPTY can't be cleared on Ubuntu 16.04
Hello jmuse,
We are aware of the issue with CAN_Write returning PCAN_ERROR_QRCVEMPTY. It has been corrected in the next release (v4.2.1). I'll send you a temporary link to use a test version.
Also it is possible to load/unload the driver as a work around to reset your device:
We are aware of the issue with CAN_Write returning PCAN_ERROR_QRCVEMPTY. It has been corrected in the next release (v4.2.1). I'll send you a temporary link to use a test version.
Also it is possible to load/unload the driver as a work around to reset your device:
Code: Select all
# unload the driver
sudo rmmod pcan
# load the driver
sudo modprobe pcan
# or if the drivers were not installed :
# sudo insmod path_to_driver_source/pcan.ko
Best regards,
Fabrice
Fabrice