From owner-freebsd-usb@FreeBSD.ORG Sun Jul 3 17:35:42 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 A9E1E106564A for ; Sun, 3 Jul 2011 17:35:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 352F58FC0C for ; Sun, 3 Jul 2011 17:35:41 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0STrgBBJ/IeSzGUncdVPgrlXwYQACyAaeTEJnWJdz8Q= 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=2HgOMsoeAAAA:8 a=w6RbqzLyAAAA:20 a=E6mstu2CkRPrfgi6iXcA:9 a=PsMX55bYFoFjLo7mmYwA:7 a=wPNLvfGTeEIA:10 a=GCZqjUWHUdwA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 148370047; Sun, 03 Jul 2011 19:35:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 3 Jul 2011 19:33:52 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110703183320.b5b2aecb.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: <201107031933.52431.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: Sun, 03 Jul 2011 17:35:42 -0000 On Sunday 03 July 2011 18:33:20 Torfinn Ingolfsen wrote: > Hello, > > So, I have this misbehaving usb device, a label printer which I use to > label things in my house (which poweradapter belongs to which device, and > so on). > It is a DYMO LabelManager PC[1], which is an old device. Not to be confused > with the LabelManager PC II. Based on information found on the web, this > device isn't following the usb specification 100%. And no driver exists > for FreeBSD. I do not plan on changing that. > What I try to do, is to "pass" the usb device from a FreeBSD host, to a > virtual machine running windows (in VirtualBox). > So far, I have managed to get the win vm to regocnize the label printer, > adn install drivers for it. But - it will not print, claiming there is > some error with the usb port. And that might be true. > > On the host side, I am using the latest FreeBSD 8.2-stable: > root@kg-v7# uname -a > FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #6: Sat Jul 2 18:39:45 > CEST 2011 root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 And in > /var/log/messages, I see this when the device is attached: > Jul 3 18:09:59 kg-v7 kernel: usb_alloc_device: Failure selecting > configuration index 0:USB_ERR_STALLED, port 4, addr 3 (ignored) Jul 3 > 18:09:59 kg-v7 kernel: ugen0.3: at usbus0 > > And usbconfig info: > root@kg-v7# usbconfig -u 0 -a 3 > ugen0.3: at usbus0, cfg=255 md=HOST spd=LOW > (1.5Mbps) pwr=ON root@kg-v7# usbconfig -u 0 -a 3 dump_device_desc > ugen0.3: at usbus0, cfg=255 md=HOST spd=LOW > (1.5Mbps) pwr=ON > > bLength = 0x0003 > bDescriptorType = 0x0001 > bcdUSB = 0x0209 > bDeviceClass = 0x0021 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0001 > idVendor = 0xc000 > idProduct = 0x0901 > bcdDevice = 0x0004 > iManufacturer = 0x0000 > iProduct = 0x0002 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > What is the best way to debuug this device? > I am hoping to get it to a state where it can be forwarded to the virtual > machine, and work there. > > More details on the FreeBSD page for my label printer[2] > > References: > 1) http://global.dymo.com/ieIE/Products/LabelManager_PC.html > 2) http://sites.google.com/site/tingox/lm_pc_freebsd You could try running usbdump on the bus the device is connected to and see what happens. --HPS