On Mon, Jun 11, 2012 at 9:44 PM, Pete Batard <p...@akeo.ie> wrote: > Tarball archive at > https://sourceforge.net/projects/libusbx/files/releases/1.0.12/source/ > > If possible please test the archive and report issues or potential > enhancements.
Just tested under Windows XP using Cygwin and MinGW and it seems to work fine, even with a mouse, nice. The warning is of course valid since this is a mouse. One minor thing is that "USB 1.0 LowSpeed" is a bit misnomer. I think "USB LowSpeed" is a bit better, it is even better to use bcdUSB value (2.00 --> USB 2.0, 1.10 --> USB 1.1). But again this is a popular misnomer anyway so I do not think it is important to change. bash-4.1$ ./xusb.exe 046d:c016 Using libusbx v1.0.12.10528 Opening device... libusbx: warning [hid_open] could not open HID device in R/W mode (keyboard or m ouse?) - trying without bus: 2, port path from HCD: 1->2->1->3 speed: 1.5 Mbit/s (USB 1.0 LowSpeed) Reading device descriptor: length: 18 device class: 0 S/N: 0 VID:PID: 046D:C016 bcdDevice: 0340 iMan:iProd:iSer: 1:2:0 nb confs: 1 Reading configuration descriptors: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 1 Class.SubClass.Protocol: 03.01.02 endpoint[0].address: 81 max packet size: 0004 polling interval: 0A Claiming interface 0... Reading string descriptors: String (0x01): "Logitech" String (0x02): "Optical USB Mouse" Releasing interface 0... Closing device... BTW, this is usbutils under Cygwin and you can see that bcdUSB is 2.00. Now that libusbx supports HID device under Windows, it will work properly with HID device. It is not that easy to build usbutils under Windows so I provide the Cygwin binary here and it works with the RC. http://code.google.com/p/picusb/downloads/detail?name=usbutils_005_cygwin.zip bash-4.1$ lsusb -v -d 046d:c016 Bus 002 Device 006: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x046d Logitech, Inc. idProduct 0xc016 Optical Wheel Mouse bcdDevice 3.40 iManufacturer 1 Logitech iProduct 2 Optical USB Mouse iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 1 Boot Interface Subclass bInterfaceProtocol 2 Mouse iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 52 Warning: incomplete report descriptor Report Descriptor: (length is 20) Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440 (null) Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Local ): Usage, data= [ 0x01 ] 1 (null) Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff ] 255 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x04 ] 4 Item(Main ): Input, data= [ 0x00 ] 0 Data Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 10 Device Status: 0xc9b0 (Bus Powered) -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel