Page 1 of 1

How to initialize USB-Floppy after reset?

Posted: Wed Dec 08, 2010 4:54 pm
by edonner
Hi all,

I got an USB-Floppy attached via UHCI-Controller. When I send INQUIRY() to the floppy, the floppy responds with proper inquiry-data but tells me within the interrupt-phase "not ready due to reset" (ASC=29). Could somebody help me please how to initialize a UFI-Device after a reset (I did a reset when setting up the UHCI-Controller & UHCI-Ports)? Commands like TestUnitReady() or StartStop() dont work (ADSC is stalled for these commands).

Thanks in advance & best regards,
Enrico.

Re: How to initialize USB-Floppy after reset?

Posted: Fri Dec 10, 2010 10:42 pm
by natp
I'm not certain, but I think you must issue the REQUEST SENSE command after reset.

Re: How to initialize USB-Floppy after reset?

Posted: Wed Dec 15, 2010 4:14 pm
by edonner
Hm, both the interrupt-data and the request-sense-data telling me ASC = 29.
When I ignore this and send a command like READ, the ADSC of this command is stalled. So I assume that the floppy needs to be initialized after a reset befor commands like READ work...

23.12.2010:

It seems I figured out how the USB-Floppy needs to be set up after a port-reset. I tried a couple of days ... my conclusion is following:

1. REQUEST SENSE
2. TEST UNIT READY
3. REQUEST SENSE

After that, the floppy seems to accept all the other UFI-Commands. In my OS code, I proceed as follows:

4. INQUIRY
5. REQUEST SENSE
6. READ CAPACITY
7. REQUEST SENSE
8. READ
9. REQUEST SENSE

Marry Christmas to all of you!

Re: How to initialize USB-Floppy after reset?

Posted: Tue Mar 03, 2015 5:44 pm
by ehenkes
I am not sure, if you need so many REQUEST SENSE.