Re: Fwd: umodem (4) recognize a CDC-ACM device

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Wed, 2 Jun 2010 18:25:25 +0200
> > Hi,
> >
> > Can you dump the USB descriptors of your device?
> 
> Hi, right now I can do this at "FreeBSD 8.0-RELEASE-p2 #8 r206060M",
> but If you prefer tonight I can dump from 'freebsd-current' box.
> 
> Thank you

Hi,

The problem is that LOW speed does not support BULK transfers according to the 
USB specification. I guess we could switch that support on, though I'd rather 
stick with the spec.

Try changing this line in:

src/sys/dev/usb/usb_transfer.c

                [USB_SPEED_LOW] = 0,    /* not supported */
Into:

                [USB_SPEED_LOW] = 8,    /* not supported according to USB 
spec. */


> 
> # usbconfig -u 2 -a 2 dump_device_desc dump_curr_config_desc
> ugen2.2: <USB-232 www.recursion.jp> at usbus2, cfg=0 md=HOST spd=LOW
> (1.5Mbps) pwr=ON

...

>      Endpoint 0
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0001
>         bmAttributes = 0x0002
	^^^ BULK
>         wMaxPacketSize = 0x0008
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
> 
>      Endpoint 1
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0081
>         bmAttributes = 0x0002
	^^^ BULK
>         wMaxPacketSize = 0x0008
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
> 

...

--HPS
Received on Wed Jun 02 2010 - 14:28:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC