Re: [Libusbx-devel] Getting config descriptor 0 fails on Windows

2012-11-21 Thread Bas van Dijk
Thanks for the info Pete! On 21 November 2012 23:15, Pete Batard wrote: > On 2012.11.21 18:41, Bas van Dijk wrote: >> libusbx: warning [hid_open] could not open HID device in R/W mode >> (keyboard or mouse?) - trying without > > If libusbx gives you a warning, you&#x

Re: [Libusbx-devel] Getting config descriptor 0 fails on Windows

2012-11-21 Thread Bas van Dijk
Releasing interface 0... Closing device... On 21 November 2012 02:27, Xiaofan Chen wrote: > On Wed, Nov 21, 2012 at 7:21 AM, Bas van Dijk wrote: >> Hello, >> >> On Windows I have an USB device which reports it has 1 configuration >> descriptor: >> >>

[Libusbx-devel] Getting config descriptor 0 fails on Windows

2012-11-20 Thread Bas van Dijk
Hello, On Windows I have an USB device which reports it has 1 configuration descriptor: bNumConfigurations = 1 However, when I try to get that descriptor using: libusb_get_config_descriptor dev 0 config it fails with LIBUSB_ERROR_NOT_FOUND. On Linux when I have a device which reports to have