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.
How to initialize USB-Floppy after reset?
Re: How to initialize USB-Floppy after reset?
I'm not certain, but I think you must issue the REQUEST SENSE command after reset.
Re: How to initialize USB-Floppy after reset?
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!
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?
I am not sure, if you need so many REQUEST SENSE.
http://www.henkessoft.de/OS_Dev/OS_Dev3.htm (OSDEV)
http://www.c-plusplus.de/forum/viewforu ... is-62.html
irc.euirc.net #PrettyOS
http://www.c-plusplus.de/forum/viewforu ... is-62.html
irc.euirc.net #PrettyOS