Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2010 18:25:25 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        "Marcelo/Porks" <marcelorossi@gmail.com>
Cc:        Garrett Cooper <yanefbsd@gmail.com>, current@freebsd.org
Subject:   Re: Fwd: umodem (4) recognize a CDC-ACM device
Message-ID:  <201006021825.25337.hselasky@c2i.net>
In-Reply-To: <AANLkTim-3GuF3us0SLnZs1iCPvEpQKxYJZ5Rl7-ItFhp@mail.gmail.com>
References:  <AANLkTinuhcIfsFvowzbsDJWy-gqob40oNxUPN-OvXc2E@mail.gmail.com> <201006021750.17588.hselasky@c2i.net> <AANLkTim-3GuF3us0SLnZs1iCPvEpQKxYJZ5Rl7-ItFhp@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006021825.25337.hselasky>