Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jul 2011 22:27:28 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: How to debug a misbehaving usb device (DYMO LabelManager PC)?
Message-ID:  <20110709222728.fe79b7f8.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <201107092216.33080.hselasky@c2i.net>
References:  <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> <201107040723.27470.hselasky@c2i.net> <20110709221015.81bd01fa.torfinn.ingolfsen@broadpark.no> <201107092216.33080.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 09 Jul 2011 22:16:33 +0200
Hans Petter Selasky <hselasky@c2i.net> wrote:

> On Saturday 09 July 2011 22:10:15 Torfinn Ingolfsen wrote:
> > usbconfig -u 0 -a 3
> > ugen0.3: <product 0x0901 vendor 0xc000> at usbus0, cfg=255 md=HOST spd=LOW
> > (1.5Mbps) pwr=ON
> 
> This device won't work because it is unconfigured (cfg=255)
> 
> Try to set the config to 0

root@kg-v7# usbconfig -u 0 -a 3
ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW (1.5Mbps) pwr=ON
root@kg-v7# usbconfig -u 0 -a 3 set_config 0
usbconfig: could not set config index: Input/output error
and in /var/log/messages I can see:
Jul  9 22:21:35 kg-v7 kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Jul  9 22:21:35 kg-v7 kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Jul  9 22:21:35 kg-v7 kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 4, addr 3 (ignored)
Jul  9 22:21:35 kg-v7 kernel: ugen0.3: <vendor 0xc000> at usbus0
Jul  9 22:21:35 kg-v7 kernel: ugen0.3: <vendor 0xc000> at usbus0 (disconnected)
Jul  9 22:21:36 kg-v7 kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 4, addr 3 (ignored)
Jul  9 22:21:36 kg-v7 kernel: ugen0.3: <vendor 0x0922> at usbus0

So I disconnect and reconnect the device again:
from /var/log/messages:
Jul  9 22:24:24 kg-v7 kernel: ugen0.3: <vendor 0x0922> at usbus0 (disconnected)
Jul  9 22:24:41 kg-v7 kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 4, addr 3 (ignored)
Jul  9 22:24:41 kg-v7 kernel: ugen0.3: <vendor 0x0922> at usbus0

root@kg-v7# usbconfig -u 0 -a 3
ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW (1.5Mbps) pwr=ON
root@kg-v7# usbconfig -u 0 -a 3 set_config 0
usbconfig: could not set config index: Input/output error


-- 
Torfinn




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110709222728.fe79b7f8.torfinn.ingolfsen>