2014-07-15 06:45 AM
I have my USB Host library setup on a STM32F4 which interacts with a USB device which can disconnect itself from the host at a software level. It is basically and SD card reader and my understanding is all it does is tell the host that the memory card has been removed. What I'm trying to figure out, is how the host polls the device to find that out during the application stage. My thoughts at the moment are that there must be a simple way of using the SCSI commands to check if the usb device is busy or not? Anyone tried anything like this before or have any ideas? I've tried modding some of the SCSI commands to suit my needs but doesn't seem to be working...
#usb2014-07-15 06:53 AM
TEST UNIT READY would seem to be the logical place to start. And then throwing sense conditions to commands you don't want to work.