PORTS Forum
Ports and Interfaces => USB => Topic started by: eng.Buffon on March 06, 2012, 03:47:09 pm
-
hi guys hi everyone
when the USB host send this CBW command the firmware doesn't repsonse to it , so i would like to know what's this command mean?
(http://i44.tinypic.com/35ho4r4.jpg)
please help me
Thank you in Advance
-
if it's READ_Capacity Command what we can deal with that command in Media Absent?
-
On removing media, the device should be in the UNIT ATTENTION condition and return 01 in bCSWStatus in response to most SCSI requests.
Jan
-
So what the device supposed to do in the READ_FORMAT_CAPACITIES (23h) which in your book you written that it's not required but it appear as you see in the Proteus
-
Return 01 in bCSWStatus (see my previous answer)
Jan
-
ok i know that i will return 01 in bCSWStatus
am i supposed to STALL the endpoint? in addition to return 01 in bCSWStatus
for more declaration of my question:-
in this case this is Unsupported command So the host expect to Receive Data and the device expect to send no data
this is the (case 4) in the thirteen cases for Any Situation
the response from the device at this point is
1)the device must stall the bulk IN endpoint.
2)the device sets bCSWStatus to 01h
3)the device sets dCSWDataResidue with dCBWDataTransferLength.
so the question is how can i send (CSW) as i previously stalled the Bulk-in endpoint?
and generally in USB protocol what's the device supposed to do after stall any endpoint?
thank you in Advacne
hope that my question become more clear.
-
From 6.7.1 in the bulk-only spec:
3. On a STALL condition receiving the CSW, then:
· The host shall clear the Bulk-In pipe.
· The host shall attempt to receive the CSW again
For more on STALL, see 8.4.5 in the USB 2.0 spec.
Jan