Re: usb2: scanner no longer working

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Fri, 7 Nov 2008 19:35:17 +0100
On Friday 07 November 2008, Stefan Ehmann wrote:
> On Friday 07 November 2008 18:42:49 Hans Petter Selasky wrote:
> > On Friday 07 November 2008, Hans Petter Selasky wrote:
> > > Hi,
> > >
> > > Could you dump the current config descriptor of your scanner?
> > >
> > > usbconfig -u 3 -a 2 dump_curr_config_desc
>
> # usbconfig -u 3 -a 2 dump_curr_config_desc
> ugen3.2: <CanoScan Canon> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=ON
>
>
>  Configuration index 0
>
>     bLength = 0x0009
>     bDescriptorType = 0x0002
>     wTotalLength = 0x0027
>     bNumInterfaces = 0x0001
>     bConfigurationValue = 0x0001
>     iConfiguration = 0x0000  <no string>
>     bmAttributes = 0x00a0
>     bMaxPower = 0x00fa
>
>     Interface 0
>       bLength = 0x0009
>       bDescriptorType = 0x0004
>       bInterfaceNumber = 0x0000
>       bAlternateSetting = 0x0000
>       bNumEndpoints = 0x0003
>       bInterfaceClass = 0x00ff
>       bInterfaceSubClass = 0x00ff
>       bInterfaceProtocol = 0x00ff
>       iInterface = 0x0000  <no string>
>
>      Endpoint 0
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0081
>         bmAttributes = 0x0002
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 1
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0002
>         bmAttributes = 0x0002
>         wMaxPacketSize = 0x0200
>         bInterval = 0x0000
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
>      Endpoint 2
>         bLength = 0x0007
>         bDescriptorType = 0x0005
>         bEndpointAddress = 0x0083
>         bmAttributes = 0x0003
>         wMaxPacketSize = 0x0001
>         bInterval = 0x0008
>         bRefresh = 0x0000
>         bSynchAddress = 0x0000
>
> > > It can also be a set-config issue.
> > >
> > > --HPS
> >
> > Also get me the device descriptor through:
> >
> > usbconfig -u 3 -a 2 dump_device_desc
>
> # usbconfig -u 3 -a 2 dump_device_desc
> ugen3.2: <CanoScan Canon> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=ON
>
>   bLength = 0x0012
>   bDescriptorType = 0x0001
>   bcdUSB = 0x0200
>   bDeviceClass = 0x00ff
>   bDeviceSubClass = 0x00ff
>   bDeviceProtocol = 0x00ff
>   bMaxPacketSize0 = 0x0040
>   idVendor = 0x04a9
>   idProduct = 0x221c
>   bcdDevice = 0x0306
>   iManufacturer = 0x0001  LangId:0x0409 <Canon>
>   iProduct = 0x0002  LangId:0x0409 <CanoScan>
>   iSerialNumber = 0x0000  <no string>
>   bNumConfigurations = 0x0001
>
> > 3 and 2 are the numbers after ugen, like ugen3.2
>
> To your other mail:
> I'm running i386. HUB debugging didn't output any obvious errors.

Hi,

Try the following patch to libusb20. I suspect that it is the 
set_configuration call that makes trouble!

http://perforce.freebsd.org/chv.cgi?CH=152628

Thanks for reporting.

My private SVN repository has also been updated to include this patch if you 
are using that.

--HPS
Received on Fri Nov 07 2008 - 17:33:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:37 UTC