I have code which opens, reads and writes serial device. In my case this is dual port USB-RS232 FTDI (0x0403, 0x6010)
I disconnect the cable (pull it out) and restart the script. I plug the cable back in. I can not read the device. Call read(3) returns empty strings and probably timeouts.
After some playing with libusb itself including call to detackKernelModule I have discovered a workaround "rmmod ftdi_sio;rmmod usbserial". Is there any way to reset/bring down the device/USB bus directly from Python?
Log in to post a comment.