CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Which Endpoint to send CBW in USB Host

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jun



Joined: 15 Sep 2014
Posts: 4
Location: Melbourne, Australia

View user's profile Send private message

Which Endpoint to send CBW in USB Host
PostPosted: Tue Nov 11, 2014 9:09 pm     Reply with quote

hi,

I am working on USB Host project to read/write mass storage device.

I am confused on which Endpoint to send CBW. As per Bulk-only protocol explain, "The host shall send each CBW, which contains a command block, to the device via the Bulk-Out endpoint."--<Universal Serial Bus Mass Storage Class Bulk-Only Transport>.

For example, the Bulk-out Endpoint of my USB stick is Endpoint2. I send a CBW with Read Capacity command via endpoint2.
I can actually get a ACK for the CBW transfer, but I can't get TRNIF interrupt.

But when I read the Microchip's MLA-- USB Host -MSD-Data logger's code, it use endpoint0 to send the CBW. but endpoint2 buffer.

I am not sure where I got wrong. If we use Endpoint0 to send CBW and receive data, then what is the point to know which one is the bulk-out and bulk-in endpoint?

Thanks for your help.

Jun
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group