Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2009 23:11:10 +0200
From:      Markus Dolze <bsdfan@nurfuerspam.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Failing controls transfers in VMware
Message-ID:  <4A5BA2EE.5050105@nurfuerspam.de>
In-Reply-To: <200907012108.56663.hselasky@c2i.net>
References:  <4A4A5D7E.70708@nurfuerspam.de> <200907010907.39860.hselasky@c2i.net> <4A4BAA5B.9050002@nurfuerspam.de> <200907012108.56663.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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 = <www.fischl.de>
>> freebsd8# usbconfig -u 0 -a 3 dump_string 2
>> STRING_0x02 = <USBasp>
>>
>> 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: <USBasp www.fischl.de> 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><www.fischl.de>

Compare this to the results from VMware:

freebsd8# usbconfig -u 0 -a 3
ugen0.3: <USBasp www.fischl.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A5BA2EE.5050105>