|
From: Xiaofan C. <xia...@gm...> - 2010-02-28 15:12:06
|
On Sat, Feb 27, 2010 at 9:48 PM, Xiaofan Chen <xia...@gm...> wrote:
> Test of xusb for a Logitech Dual Action Gamepad under Linux
> (Ubuntu Linux 64bit). Somehow it does not work well.
> BTW, using "-s" and "-i" produce the same results. Maybe
> this one is not for the Logitech device. But I am wondering
> if can be made more generic.
Results under Windows:
C:\cygwin\home\mcuee\mcu\libusb1win32\git\msvc2008\libusb-pbatard\Win32\Release\
examples>cat testLogitechGamepad.txt
046D:C216
Opening device...
Reading device descriptor:
length: 18
device class: 0
S/N: 0
VID:PID: 046D:C216
bcdDevice: 0300
iMan:iProd:iSer: 1:2:0
nb confs: 1
Reading configuration descriptors:
nb interfaces: 1
interface[0].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 03.00.00
endpoint[0].address: 81
max packet size: 0008
polling interval: 0A
endpoint[1].address: 01
max packet size: 0008
polling interval: 0A
Reading string descriptors:
String (1/3): "Logitech"
String (2/3): "Logitech Dual Action"
String (3/3): ""
Reading HID Report Descriptors:
06 A0 FF 09 01 A1 01 09 01 15 00 25 FF 75 08 95
08 81 00 09 02 15 00 25 FF 75 08 95 07 91 00 C0
Input Report Length: 8
Reading Feature Report...
Error: Other error
Reading Input Report...
Timeout! Please make sure you act on the device within the 5 seconds allocate
d...
Testing bulk read using endpoint 81...
Operation timed out
Releasing interface 0...
Closing device...
--
Xiaofan http://mcuee.blogspot.com
|