Discussion:
gadget composite IAD problem
Jeremy Greene
2007-12-23 17:06:59 UTC
Permalink
Trying to get a message to the list... I have no idea why it is being
rejected.

Jeremy

-----Original Message-----
From: linux-usb-devel-***@lists.sourceforge.net
[mailto:linux-usb-devel-***@lists.sourceforge.net] On Behalf Of
linux-usb-devel-***@lists.sourceforge.net
Sent: Sunday, December 23, 2007 12:03 PM
To: Jeremy Greene
Subject: gadget composite IAD problem

Message rejected by filter rule match
Xiaofan Chen
2007-12-24 01:18:11 UTC
Permalink
I'm working on getting a composite driver working by modifying existing gadget drivers (and the underlying device driver).
1) For g_ether, it gets pretty far in XP driver installation, then ends with
"cannot start device, error code 10".
a. On the device, gets up to the set-config request from host
2) For g_serial, it installs, but no data transfers
It seems that ep0 works fine, but the interface endpoints do not... I am in the
process of putting a hw sniffer on the usb, but I'm not sure that it will tell me
too much. I ran a sniffer app on XP, and it did not receive any data when the
device sent data (and got a transfer complete interrupt).
Any help on this would be greatly appreciated!!
I do not know anything about Linux Gadget driver. But anything involve
usbser.sys as one of the interface driver for a USB composite device
will be difficult under Windows XP. Windows does support CDC-ACM but
Microsoft driver usbser.sys is is said to be buggy and problematic

A bit different but kind of related. You might want to try it to see
if it works.
http://support.microsoft.com/kb/918365

Detailed discussion in usb.org:
http://www.usb.org/phpbb/viewtopic.php?t=13308
The conclusion is option 2 does not work under XP.

It might work if you apply the hotfix.
http://www.usb.org/phpbb/viewtopic.php?t=13610

By the way, I think the inf document in the following document
will not work under Windows Vista but I have neither a
Linux gadget device nor Vista OS to test.
http://www.mjmwired.net/kernel/Documentation/usb/gadget_serial.txt

Proper inf files: (to work under XP and Vista):
http://www.obddiag.net/adapter/vcomhcp.inf
http://www.nabble.com/%7BPIC--Re:-USB-driver---VISTA-td14238126.html

The document also mentions Hyperteminal which is not that good.

Xiaofan
http://mcuee.blogspot.com

-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Jeremy Greene
2007-12-24 01:21:29 UTC
Permalink
Hi,

I'm working on getting a composite driver working by modifying existing gadget drivers (and the underlying device driver).

As a first, and what I thought would be simple step, I modified both  g_ether and g_serial in the following ways:
1) Changed the device descriptor to have class/subclass/protocol to
be 0xef, 2, 1 respectively
2) Added an "interface association descriptor" to the configuration
a. In both cases, two interfaces, first one = 0
b. Made the class ID USB_CLASS_COM in both cases. Tried various
subclass and protocol values with no visible change in behavior.
3) For g_ether, changed it to have only one configuration (RNDIS)
4) For testing purposes, changed vendor id to aaaa and product id to bbbb

I then modified the XP INF file to have the identifier be: usb\pid_aaaa&pid_bbbb&mi_00. Running XP w/ SP2 (does have IAD support). Clearly do see usbccgp loaded, and work to the extent of loading the proper inf file based on the MI_00 value.

The results:
1) For g_ether, it gets pretty far in XP driver installation, then ends with
"cannot start device, error code 10".
a. On the device, gets up to the set-config request from host
2) For g_serial, it installs, but no data transfers

I connected a usb analyzer on the ubs link and found that at the end of the setup exchange, there were no IN/NAKs occurring every 2s -- just getting SOFs every 2s.
So, in the case of g_serial, the data posted on the IN endpoint just sits in the FIFO since there are no IN tokens to send it out on.

Any help on this would be greatly appreciated!!

Jeremy


-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Jeremy Greene
2007-12-24 01:23:40 UTC
Permalink
Thanks; an updated post (not as an attachment -- I guessed it was html
that was being rejected).
I will look through everything you list.

Jeremy

-----Original Message-----
From: Xiaofan Chen [mailto:***@gmail.com]
Sent: Sunday, December 23, 2007 8:18 PM
To: Jeremy Greene
Cc: linux-usb-***@lists.sourceforge.net
Subject: Re: [linux-usb-devel] FW: gadget composite IAD problem
I'm working on getting a composite driver working by modifying
existing gadget drivers (and the underlying device driver).
1) For g_ether, it gets pretty far in XP driver installation,
then ends with
"cannot start device, error code 10".
a. On the device, gets up to the set-config request from host
2) For g_serial, it installs, but no data transfers
It seems that ep0 works fine, but the interface endpoints do not... I
am in the
process of putting a hw sniffer on the usb, but I'm not sure that it
will tell me
too much. I ran a sniffer app on XP, and it did not receive any data
when the
device sent data (and got a transfer complete interrupt).
Any help on this would be greatly appreciated!!
I do not know anything about Linux Gadget driver. But anything involve
usbser.sys as one of the interface driver for a USB composite device
will be difficult under Windows XP. Windows does support CDC-ACM but
Microsoft driver usbser.sys is is said to be buggy and problematic

A bit different but kind of related. You might want to try it to see
if it works.
http://support.microsoft.com/kb/918365

Detailed discussion in usb.org:
http://www.usb.org/phpbb/viewtopic.php?t=13308
The conclusion is option 2 does not work under XP.

It might work if you apply the hotfix.
http://www.usb.org/phpbb/viewtopic.php?t=13610

By the way, I think the inf document in the following document
will not work under Windows Vista but I have neither a
Linux gadget device nor Vista OS to test.
http://www.mjmwired.net/kernel/Documentation/usb/gadget_serial.txt

Proper inf files: (to work under XP and Vista):
http://www.obddiag.net/adapter/vcomhcp.inf
http://www.nabble.com/%7BPIC--Re:-USB-driver---VISTA-td14238126.html

The document also mentions Hyperteminal which is not that good.

Xiaofan
http://mcuee.blogspot.com

-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Xiaofan Chen
2007-12-24 01:34:41 UTC
Permalink
Post by Jeremy Greene
Thanks; an updated post (not as an attachment -- I guessed it was html
that was being rejected).
I will look through everything you list.
By the way, you may want to post to <linux-***@vger.kernel.org> instead.
This list is now deprecated and will be shut down soon.

You need to subscribe using the direction here:
http://vger.kernel.org/majordomo-info.html

-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-***@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Loading...