I post this here because there may be some USB device driver hackers here who might know.
I am working on a tool to read hard disks that have defective sectors.
Most drives not only take a long time to respond once they encounter a bad sector, they also eventually disconnect themselves, not responding any more. In my testing with such a drive connected via a USB 3 adapter, I found that I could simply remove the USB cable briefly to make it responsive again and continue reading.
Now I like to automate this. I could do this with extra hardware, but I'd rather do this without, if possible.
So I ask those who know more about the workings of macOS' USB device drivers: Is it possible to force a device to reconnect on the USB, as if it had been physically disconnected briefly? If so, is there a way to do that in macOS with its original drivers, or can I use a modified driver for this? If someone knows how to do that, please get in contact with me.
I am working on a tool to read hard disks that have defective sectors.
Most drives not only take a long time to respond once they encounter a bad sector, they also eventually disconnect themselves, not responding any more. In my testing with such a drive connected via a USB 3 adapter, I found that I could simply remove the USB cable briefly to make it responsive again and continue reading.
Now I like to automate this. I could do this with extra hardware, but I'd rather do this without, if possible.
So I ask those who know more about the workings of macOS' USB device drivers: Is it possible to force a device to reconnect on the USB, as if it had been physically disconnected briefly? If so, is there a way to do that in macOS with its original drivers, or can I use a modified driver for this? If someone knows how to do that, please get in contact with me.