Symptom: After some time of operation the interfaces CAN 1 and CAN 2 are not working any more. Even after CAN_ResetHardware the problem persists and the interfaces are permanently in Bus-Off state. PCAN-View traces lots of bit errors. Only deactivating/reactivating the USB device in Windows or detaching/attaching USB cable restores the functionality to send messages.
Some time after this state and after some plugging around with the USB cable the computer finally blue-screened (crashed) with DRIVER_IRQL_NOT_LESS_OR_EQUAL in pcan_usb.sys.
Cause: I finally found out what caused the behaviour: Setting CAN_PARAM_LISTEN_ONLY on an interface that is currently in operation (receiving messages).
For now I must stop using CAN_PARAM_LISTEN_ONLY to "disable" interfaces and stick to CAN_DisconnectFromNet with the drawback introducing device-wide latency of 20 ms upon every activation.
I would appreciate:
- Investigation of the exact reason
- Suggestion of a proper temporary workaround
Thanks in advance,