From owner-freebsd-usb@FreeBSD.ORG Mon Jul 13 21:11:09 2009 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 BE1A31065674 for ; Mon, 13 Jul 2009 21:11:09 +0000 (UTC) (envelope-from bsdfan@nurfuerspam.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 2BF388FC0C for ; Mon, 13 Jul 2009 21:11:08 +0000 (UTC) (envelope-from bsdfan@nurfuerspam.de) Received: (qmail invoked by alias); 13 Jul 2009 21:11:07 -0000 Received: from dslb-092-073-088-145.pools.arcor-ip.net (EHLO [192.168.1.100]) [92.73.88.145] by mail.gmx.net (mp033) with SMTP; 13 Jul 2009 23:11:07 +0200 X-Authenticated: #931807 X-Provags-ID: V01U2FsdGVkX18xpqgWBuwxkja7lwzv8yi4SNxwVeRpyNRJofWcOD toZ2f+vNQQFYoV Message-ID: <4A5BA2EE.5050105@nurfuerspam.de> Date: Mon, 13 Jul 2009 23:11:10 +0200 From: Markus Dolze User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A4A5D7E.70708@nurfuerspam.de> <200907010907.39860.hselasky@c2i.net> <4A4BAA5B.9050002@nurfuerspam.de> <200907012108.56663.hselasky@c2i.net> In-Reply-To: <200907012108.56663.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52 Cc: freebsd-usb@freebsd.org Subject: Re: Failing controls transfers in VMware 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: Mon, 13 Jul 2009 21:11:10 -0000 Hans Petter Selasky wrote: > On Wednesday 01 July 2009 20:26:35 Markus Dolze wrote: >> Hans Petter Selasky wrote: >>> On Tuesday 30 June 2009 22:04:34 Markus Dolze > >> freebsd8# usbconfig -u 0 -a 3 dump_string 1 >> STRING_0x01 = >> freebsd8# usbconfig -u 0 -a 3 dump_string 2 >> STRING_0x02 = >> >> I already took a problem with the usb stack into account. The stack used >> is V-USB formerly known as AVR-USB >> (http://www.obdev.at/products/vusb/index.html). As written previously I >> tried several different devices including GPS and smartcard terminals >> with the same bad result. >> >> It may also be a problem with VMware's virtual devices or host drivers. >> > > Try without VM-ware, and see if the result is the same. > > --HPS > I had the time to set up -current (2009-06) on real hardware. Here are the results: Running on real hardware (I used do_request directly): root@mireille:~# usbconfig -u 2 -a 2 ugen2.2: at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON root@mireille:~# usbconfig -u 2 -a 2 do_request 0x80 0x06 0x0301 0x0409 256 REQUEST = <0x1c 0x03 0x77 0x00 0x77 0x00 0x77 0x00 0x2e 0x00 0x66 0x00 0x69 0x00 0x73 0x00 0x63 0x00 0x68 0x00 0x6c 0x00 0x2e 0x00 0x64 0x00 0x65 0x00> Compare this to the results from VMware: freebsd8# usbconfig -u 0 -a 3 ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON freebsd8# usbconfig -u 0 -a 3 do_request 0x80 0x06 0x0301 0x0409 256 REQUEST = <0x2e 0x00 0x66 0x00 0x69 0x00 0x73 0x00 0x63 0x00 0x68 0x00 0x6c 0x00 0x2e 0x00 0x64 0x00 0x65 0x00><.fischl.de> Within VMware the first bytes from the response are missing! The only difference I can see is the speed being LOW vs FULL (where LOW is correct). I give up on this. And remember that VMware and FreeBSD don't play well with USB devices. Thanks so far! Markus