How to debug a misbehaving usb device (DYMO LabelManager PC)?
Hans Petter Selasky
hselasky at c2i.net
Sat Jul 9 20:46:40 UTC 2011
On Saturday 09 July 2011 22:36:53 Torfinn Ingolfsen wrote:
> On Sat, 09 Jul 2011 22:29:22 +0200
>
> Hans Petter Selasky <hselasky at c2i.net> wrote:
> > Could you try to reset it?
> >
> > usbconfig -d X.Y reset
>
> root at kg-v7# usbconfig -d 0.3
> ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW
> (1.5Mbps) pwr=ON root at kg-v7# usbconfig -d 0.3 reset
> root at kg-v7# usbconfig -d 0.3
You could try to change in /sys/dev/usb/usb_device.c:
/* Set the actual configuration value. */
err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
if (err) {
goto done;
}
Into:
/* Set the actual configuration value. */
err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
if (err && 0) {
goto done;
}
err = 0;
I think the device has received the set config, though there appears to be
something wrong about the STALL part, which I think we can safely ignore.
--HPS
More information about the freebsd-usb
mailing list