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're supposed to pay some attentio

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

2012-11-21 Thread Pete Batard
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're supposed to pay some attention to it... :) >VID:PID: 0627:0001 Let's see 0627 = Adomax Technol

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

2012-11-21 Thread Bas van Dijk
Note that this is on a virtual Windows 7 PC: C:\Users\Bas\Downloads\libusbx-1.0.14-win\examples\bin32>listdevs 8086:7020 (bus 1, device 1) 0627:0001 (bus 1, device 2) C:\Users\Bas\Downloads\libusbx-1.0.14-win\examples\bin32>xusb.exe 8086:7020 Using libusbx v1.0.14.10576 Opening device 8086:7020..

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

2012-11-20 Thread Xiaofan Chen
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: > > bNumConfigurations = 1 > > However, when I try to get that descriptor using: > > libusb_get_config_descriptor dev 0 config > > it fails with LIB

[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