PCAN_ERROR_QRCVEMPTY can't be cleared on Ubuntu 16.04
Posted: Wed 7. Mar 2018, 18:30
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!
More information: my PCAN driver underneath PCAN-Basic-Linux was built in chardev mode, and my OS is Ubuntu 16.04.
Thanks in advance!