'Llo All,
I've been busy using CDC on SuSE 8.2's kernel 2.4.10 (using the module CDCEther) lately. I'm busy developing an USB- CDC- function (Ethernet Control Model), and I have made a set of (device, configuration,
You should use a more recent kernel. That version of CDC has some bugs.
interface and endpoint) descriptors. What I'm seeing is that (after the device's address and the device's configuration have been 'get' and then 'set' by the Linux host), the CDC linux host driver activates Interface 1, alternate 0 with a 'set interface'- USB- command. One would think, as is normal in USB, that interface 0 (minimally holding the needed CTRL0- endpoint) is ALWAYS activated.
That's done implicitly when the device is configured: all the interfaces are enabled, using altsetting zero. But it's perfectly OK to explicitly reset the default state. Read the CDC spec, you'll notice that altsetting zero isn't "active" either ... that'd be altsetting one.
Well, as my device configuration also contains, on interface 0, an Int- endpoint (on endpoint 1, sample period value being 10), one would think that the set Int- sample time would be respected on that interrupt endpoint, and that the Linux host (by means of the CDCEther- module) would send an IN- token on the interrupt endpoint every 10 ms (mostly NAK'ed by the device when there's no data on the endpoint). However, it does NOT.
There's no requirement that the host collect status sent on that endpoint. Your device shouldn't be failing if the host isn't collecting it status.
P.S. If this would be a CDCEther- problem, would this be solved in the 2.6 kernel (which seems to use usbnet as the module for that job) ?
The 2.6 code should certainly work better than 2.4.10, but it's not going to be collecting status that it doesn't need either.
Jul 22 16:24:33 bvwcltbp /etc/hotplug/usb.agent[8077]: cannot get config descriptor 0, No such device or address (6) Jul 22 16:24:33 bvwcltbp last message repeated 6 times
This is looks pretty odd. Not the standard hotplug utils.
- Dave
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
