Re: Hi all, I'm newbe, so apologize for my stupid questions.

Fabio Giovagnini <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Aurion s.r.l
Message-ID <[email protected]>
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.

Thanks a lot and best regards


>
> > but I do not know how
> > to see what my device sends to the host controller that is a laptop
> > running linux suse 10.1.
> >
> > What is the way to see on the host controller side which packets really
> > income when my embedded device answer the host request?
>
> See the kernel source file Documentation/usb/usbmon.txt.
>
> Or download the USB Mass-Storage specifications from www.usb.org.
>
> Alan Stern

-- 
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.