How to initialize USB-Floppy after reset?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
edonner
Posts: 8
Joined: Mon Dec 21, 2009 7:48 am

How to initialize USB-Floppy after reset?

Post 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.
natp
Posts: 6
Joined: Tue Apr 07, 2009 9:08 pm

Re: How to initialize USB-Floppy after reset?

Post by natp »

I'm not certain, but I think you must issue the REQUEST SENSE command after reset.
edonner
Posts: 8
Joined: Mon Dec 21, 2009 7:48 am

Re: How to initialize USB-Floppy after reset?

Post 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!
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

Re: How to initialize USB-Floppy after reset?

Post by ehenkes »

I am not sure, if you need so many REQUEST SENSE.
Post Reply