Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-30 Thread Xiaofan Chen
On Fri, Jun 29, 2012 at 5:14 PM, Jach Fong wrote: > The xusb.exe in released 1.0.12 also have the same result. > > I think the problem mostly was caused by my device. It is a device > I had built years ago using Silabs' F8051F320 and their Development tool > Version 2.2 with included HID example

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-29 Thread Pete Batard
On 2012.06.29 10:14, Jach Fong wrote: > The xusb.exe in released 1.0.12 also have the same result. > > I think the problem mostly was caused by my device. It is a device > I had built years ago using Silabs' F8051F320 and their Development tool > Version 2.2 with included HID example source. Aha,

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-29 Thread Jach Fong
On 28 Jun 2012 Pete Batard Wrote: > To eliminate the compiler, can you please download the > libusbx-1.0.12-win.7z from > http://sourceforge.net/projects/libusbx/files/releases/1.0.12/Windows/ > and run the xusb.exe you find there in examples/bin32, prerablly with > LIBUSB_DEBUG=4. If you get

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-28 Thread Pete Batard
On 2012.06.28 04:19, Jach Fong wrote: > On 27 Jun 2012 15:12:39 Pete Batard wrote: >> >> According to the error returned (LIBUSB_ERROR_NOT_FOUND) that seems to >> be the case. This is the error the Windows backend returns if it was >> unable to cache a config descriptor durin enum. >> >> Jach, if

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Jach Fong
On 27 Jun 2012 15:12:39 Pete Batard wrote: > > According to the error returned (LIBUSB_ERROR_NOT_FOUND) that seems to > be the case. This is the error the Windows backend returns if it was > unable to cache a config descriptor durin enum. > > Jach, if you're running a console application, can you

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Pete Batard
On 2012.06.27 15:04, Chuck Cook wrote: > Aaaah yes, you are correct. Then this would indicate his device has no > configuration descriptors. According to the error returned (LIBUSB_ERROR_NOT_FOUND) that seems to be the case. This is the error the Windows backend returns if it was unable to cach

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Chuck Cook
Aaaah yes, you are correct. Then this would indicate his device has no configuration descriptors. Chuck On 06/27/2012 09:57 AM, Alan Stern wrote: > On Wed, 27 Jun 2012, Chuck Cook wrote: > >> Your config index is wrong. Zero should not be used at all according to >> the USB spec. Try "1". >

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Alan Stern
On Wed, 27 Jun 2012, Chuck Cook wrote: > Your config index is wrong. Zero should not be used at all according to > the USB spec. Try "1". No, that's not right. 0 is a perfectly good configuration index number. You're probably thinking of libusb_get_config_descriptor_by_value(). 0 is not

Re: [Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Chuck Cook
Your config index is wrong. Zero should not be used at all according to the USB spec. Try "1". Chuck On 06/27/2012 06:31 AM, Jach Fong wrote: > Hi! > > I continue my test on the libusbx-1.0.12-win under WinXP SP3 by > using a HID device. This time I follow steps in example xusb.c: > > 1

[Libusbx-devel] Can not get the configuration descriptor on WinXP

2012-06-27 Thread Jach Fong
Hi! I continue my test on the libusbx-1.0.12-win under WinXP SP3 by using a HID device. This time I follow steps in example xusb.c: 1. r = libusb_init(NULL); 2. handle = libusb_open_device_with_vid_pid(NULL, vid, pid); 3. dev = libusb_get_device(handle); 4. libusb_get_device_d