cancel
Showing results for 
Search instead for 
Did you mean: 

Check USB device connection status during application

jdcowpland
Associate II
Posted on July 15, 2014 at 15:45

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...

#usb
1 REPLY 1
Posted on July 15, 2014 at 15:53

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..