From owner-freebsd-usb@FreeBSD.ORG Sat Jul 9 20:46:40 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DCFB1065680 for ; Sat, 9 Jul 2011 20:46:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 8F0E08FC19 for ; Sat, 9 Jul 2011 20:46:39 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=7KD0iiTHYGd0xbPMAUtcJ3OZoqPCTpa2X22hnPESm4A= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=6M3dSHW4XPAA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=Ivj0S048SEbDVZJRhE0A:9 a=7v3Muh0H121KoRw_eCQA:7 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 148836484; Sat, 09 Jul 2011 22:46:38 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 9 Jul 2011 22:44:44 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> <201107092229.22653.hselasky@c2i.net> <20110709223653.3fda9a73.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110709223653.3fda9a73.torfinn.ingolfsen@broadpark.no> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107092244.44896.hselasky@c2i.net> Cc: Subject: Re: How to debug a misbehaving usb device (DYMO LabelManager PC)? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 20:46:40 -0000 On Saturday 09 July 2011 22:36:53 Torfinn Ingolfsen wrote: > On Sat, 09 Jul 2011 22:29:22 +0200 > > Hans Petter Selasky wrote: > > Could you try to reset it? > > > > usbconfig -d X.Y reset > > root@kg-v7# usbconfig -d 0.3 > ugen0.3: at usbus0, cfg=255 md=HOST spd=LOW > (1.5Mbps) pwr=ON root@kg-v7# usbconfig -d 0.3 reset > root@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