How to debug a misbehaving usb device (DYMO LabelManager PC)?
Torfinn Ingolfsen
torfinn.ingolfsen at broadpark.no
Sat Jul 9 20:27:30 UTC 2011
On Sat, 09 Jul 2011 22:16:33 +0200
Hans Petter Selasky <hselasky at 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 at 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 at 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 at 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 at kg-v7# usbconfig -u 0 -a 3 set_config 0
usbconfig: could not set config index: Input/output error
--
Torfinn
More information about the freebsd-usb
mailing list