From owner-freebsd-usb@FreeBSD.ORG Sun Jul 3 17:33:27 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 1C021106566B for ; Sun, 3 Jul 2011 17:33:27 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from eterpe-smout.broadpark.no (eterpe-smout.broadpark.no [80.202.8.16]) by mx1.freebsd.org (Postfix) with ESMTP id CC7968FC08 for ; Sun, 3 Jul 2011 17:33:26 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([80.202.8.11]) by eterpe-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LNR00E9ENBL1010@eterpe-smout.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 03 Jul 2011 18:33:21 +0200 (CEST) Received: from kg-v2.kg4.no ([80.203.92.230]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LNR00CDGNBKGV70@ignis-smin.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 03 Jul 2011 18:33:21 +0200 (CEST) Date: Sun, 03 Jul 2011 18:33:20 +0200 From: Torfinn Ingolfsen To: freebsd-usb@FreeBSD.org Message-id: <20110703183320.b5b2aecb.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Cc: Subject: 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:33:27 -0000 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 -- Regards, Torfinn Ingolfsen