Fwd: umodem (4) recognize a CDC-ACM device
Hans Petter Selasky
hselasky at c2i.net
Wed Jun 2 16:28:11 UTC 2010
> > 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
More information about the freebsd-current
mailing list