From: Joshua Wise [mailto:[EMAIL PROTECTED]
> It may be more helpful to write a little 
> document on your experiences...

I started with zero.c and built up from there.  That is a great
starting place.  The code there is needed to handle the basic
enumeration duties a USB device is expected to do--you could
trim this down some, but you need enough for the host to enumerate
the device.

zero.c also shows an example of minimal data transfers on a bulk
endpoint.  That sounds like about what you need.

> I'm thinking of having it emulate a serial port.

To the kernel it will look like a serial port, and to the USB
host machine it will look like a serial device, but what serial
device should it look like--Keyspan, Belkin, ...?  You just have
to pick one to emulate--the choice depends on having a host side
driver and knowledge of the protocol.

> Networking is not compiled into LAB. Too big.

Right.  For your application g_ether is not appropriate, and for
your minimal needs emulating a serial device sounds appropriate.
Maybe that is where a gadget serial driver would come in handy,
or maybe with existing applications that would run on the device
side and expect a serial port, rather than networking.

-- Al


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to