libusbx v1.0.9-rc4 is now available
Xiaofan Chen
xiaofanc at gmail.com
Fri Mar 30 06:29:26 EDT 2012
On Fri, Mar 30, 2012 at 6:17 PM, Xiaofan Chen <xiaofanc at gmail.com> wrote:
> On Fri, Mar 30, 2012 at 5:34 PM, Xiaofan Chen <xiaofanc at gmail.com> wrote:
>>> I will carry out some tests of the tar-ball under Windows/Linux/Mac OSX
>>> and OpenBSD to see if there are any problems. I should be able to
>>> do the tests over this weekend.
>>>
>>
>> First test is carried out under Mac OS X.
>>
>> Two issues.
>>
>> 1) one compiler warning, better fix
>> 2) not so sure why xusb example default to debug log mode.
>>
>
> Next test: Windows XP64 where winusb will not work so
> xusb will not work.
>
> One issue:
> 1) Compiling error with MinGW-w64 compiler, the warning
> is not a big problem though. So it is up to you to fix or keep
> the current codes.
>
> io.c: In function 'get_next_timeout':
> io.c:1969:3: warning: suggest parentheses around '&&' within '||' [-Wparentheses
> ]
> io.c: In function 'libusb_get_next_timeout':
> io.c:2274:2: warning: suggest parentheses around '&&' within '||' [-Wparentheses
> ]
>
> mcuee at xp64vm /c/work/libusbx-1.0.9-rc4/examples/.libs
> $ ./listdevs.exe
> 106b:003f (bus 1, device 255)
> 8086:265c (bus 2, device 255)
> 04d8:fa2e (bus 1, device 2)
> 80ee:0021 (bus 1, device 1)
>
> mcuee at xp64vm /c/work/libusbx-1.0.9-rc4/examples/.libs
> $ ./xusb.exe 04d8:fa2e
> Opening device...
> Failed.
>
Hmm, WinUSB actually works under XP 64bit with
manually installation of inf file. I use the one from Pete.
http://libusb-winusb-wip.googlecode.com/files/winusb%20driver.zip
It is very strange that I can not use Zadig or libusbK's Inf-Wizard2
to install WinUSB driver. WinUSB simply disappears from the
options under XP 64bit. Seems Microsoft has some detection
but does not prevent people from using WinUSB, they just
do not want to support it.
In this case, since toggleable logging is not integrated in libusbx.git
so that "xusb -d" is the same as "xusb". So the output of them
are the same and I believe this is correct.
C:\work\libusbx-1.0.9-rc4\examples\.libs>listdevs.exe
106b:003f (bus 1, device 255)
8086:265c (bus 2, device 255)
04d8:fa2e (bus 1, device 2)
80ee:0021 (bus 1, device 1)
C:\work\libusbx-1.0.9-rc4\examples\.libs>xusb.exe 04d8:fa2e
Opening device...
speed: 12 Mbit/s (USB 1.0 FullSpeed)
Reading device descriptor:
length: 18
device class: 0
S/N: 3
VID:PID: 04D8:FA2E
bcdDevice: 0001
iMan:iProd:iSer: 1:2:3
nb confs: 1
Reading configuration descriptors:
nb interfaces: 1
interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 00.00.00
endpoint[0].address: 01
max packet size: 0020
polling interval: 00
endpoint[1].address: 81
max packet size: 0020
polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
Class.SubClass.Protocol: 00.00.00
endpoint[0].address: 01
max packet size: 0040
polling interval: 00
endpoint[1].address: 81
max packet size: 0040
polling interval: 00
Claiming interface 0...
Reading string descriptors:
String (0x01): "Travis Robinson"
String (0x02): "Benchmark Device"
String (0x03): "LUSBW1"
Releasing interface 0...
Closing device...
C:\work\libusbx-1.0.9-rc4\examples\.libs>xusb.exe -d 04d8:fa2e
Opening device...
speed: 12 Mbit/s (USB 1.0 FullSpeed)
Reading device descriptor:
length: 18
device class: 0
S/N: 3
VID:PID: 04D8:FA2E
bcdDevice: 0001
iMan:iProd:iSer: 1:2:3
nb confs: 1
Reading configuration descriptors:
nb interfaces: 1
interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 00.00.00
endpoint[0].address: 01
max packet size: 0020
polling interval: 00
endpoint[1].address: 81
max packet size: 0020
polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
Class.SubClass.Protocol: 00.00.00
endpoint[0].address: 01
max packet size: 0040
polling interval: 00
endpoint[1].address: 81
max packet size: 0040
polling interval: 00
Claiming interface 0...
Reading string descriptors:
String (0x01): "Travis Robinson"
String (0x02): "Benchmark Device"
String (0x03): "LUSBW1"
Releasing interface 0...
Closing device...
--
Xiaofan
More information about the libusbx
mailing list