USB Mass Storage, Data Flow Question

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there,

I am trying to implemented USB Mass Storage Functionality in our current project.

When I plug the USB into the PC port, I get the CBW for the Inquiry Command of the SCSI "protocol".

My question is: do I first send the "Inquiry" data back and then the CSW right after that or what? So basically I want to know the order of the data flow.

I have looked at the LUFA code but can't figure it out.

Currently, I send the "inquiry" data back and then the CSW, but after that the PC re-sends the Inquiry command, this happens 3 times and then stops, so obviously there is something that the PC doesn't like with my response.

Anyone?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From a quick glance through the Atmel MSD code:

You send the CSW with the tag received in the CBW then the response data.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sending first the CSW and then the "inquiry" data, still doesn't work. I have looked at the ATMEL code (AVR273) and docs, but still I can't get it working. Don't know what I am doing wrong.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do I need the STALL the In-Endpoint after sending the data (before sending the CSW)?