I have a FTDI-based USB device. Sometimes his driver gets stuck.
There are no problems on Linux - the device automatically shuts down and reconnects by default, and only the problem is the name of the device, which can be fixed using the udev rules.
Under the windows, when it is stuck, the flow of applications that does read() or write() at this point completely hangs. It cannot be killed by either TerminateThread or KillProcess .
The only way to kill the application is to physically disconnect the USB device.
Is there any way to release a software reconnect device that will fix the driver deadlock and allow you to reopen the port and continue working after?
The administrative rights application may have, if necessary.
deadlock usb device-driver ftdi
datacompboy
source share