Detect if the device goes missing?
Posted: Tue 20. Aug 2024, 10:49
Hello,
I'm working with PCAN-UDS and a Peak-USB device. When I connect the device, the channel condition goes from Unavailable to Available. If I disconnect it, it goes back to Unavailable.
However, if I call PCAN_Initialize on the corresponding handle, the condition becomes Occupied. I tried physically disconnecting the device from the computer, the same problem still remains.
Is there anyway to detect when the device is disconnected?
Thanks in advance!
I'm working with PCAN-UDS and a Peak-USB device. When I connect the device, the channel condition goes from Unavailable to Available. If I disconnect it, it goes back to Unavailable.
However, if I call PCAN_Initialize on the corresponding handle, the condition becomes Occupied. I tried physically disconnecting the device from the computer, the same problem still remains.
Is there anyway to detect when the device is disconnected?
Thanks in advance!