Re: Hi all, I'm newbe, so apologize for my stupid questions.
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 22 Sep 2007, Fabio Giovagnini wrote: > Alle 22:48, venerdì 21 settembre 2007, Alan Stern ha scritto: > > > > http://www.linux-usb.org/gadget/ > RE: > Maybe I have been not so clear; my Host is runnung Linux Suse 10.1; my device > is a very poor hardware where I'm tring to emulate a mass storage device but > without using in it any general purpouse operatin system. > > My actual real probelm is the following; > I have enabled on my device the interrupt due by SETUP request by the host; > I receive proprly it and I find it is a Device Descriptor device; so I build > my 18 byte length device descriptor and I sent it to the host; unfortunately > my Control Endpoint has a FIFO of only 8 byte; so for trasmetting 18 byte I > need to trasmit the fist 8 bytes; enabild the interrupt of Tx OK and in the > interrupt handler trasmit the second 8 byte, waitng the interrupt of Tx Ok > and trasmit in such last interrupt the last 2 bytes. After that I was > expected to receive by the host the status stage transaction meaing then end > of reception of my Device descriptor by the host. > In the reality I see just one interrupt occurs, and after that I receive the > status stage by host. > I suppose I do not trasmit correct data, but to be sure of that I need to be > able to read what the host control endpoint is really receiving. > I tried usbmon, but I did not see anything about my new attached device. Can you post the usbmon output? Also, on your host you should enable CONFIG_USB_DEBUG and see what appears in the dmesg log. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel