|
From: Winge M. <mic...@fr...> - 2008-01-24 16:44:18
|
Hi Dan, =20 I do not have problem with the usb_get_descriptor command. This works = find. I have a problem that the driver cannot access the configuration = of my device with the "config" pointer in "struct usb_device". The = "config" pointer is always zero. I guess this pointer will be assigned = during the call of usb_get_busses(). The problem I think is somewhere = there. =20 My call of usb_get_descriptor is usb_get_descriptor(JM128MMT_devh,2,1,Buff,25); =20 =20 Micha Best regards/Mit freundlichen Gr=FCssen Michael Winge MSG EMEA General Applications Tel: +44(0)1355355547 Mobile: +44(0)7834020228 Email: mic...@fr... = <mailto:mic...@fr...> = <mailto:mic...@fr...>=20 Registered address: Freescale Semiconductor UK Ltd Colvilles Road East Kilbride Glasgow Scotland G75 OTG Registration number: SC262720 VAT number: GB831329053 This mail is classified: Freescale Confidential Proprietary ( ) Freescale Internal Use Only (X) General Business Information ( )=20 =20 ________________________________ From: lib...@li... = [mailto:lib...@li...] On Behalf Of = Dan Ellis Sent: 24 January 2008 16:09 To: lib...@li... Subject: Re: [Libusb-win32-devel] Cannot retrieve configuration = descriptor What is the syntax of the usb_get_descriptor command you are using? What = is the index of the configuration, and what is the bValue in the = configuration when you retrieve it? There was a bug in libusb around how = these values were used which was fixed sometime over a year ago. Dan. Winge Michael wrote:=20 I still face the same problem which I have mention in the email with = the subject " Problem with libusb driver version 0.1.12.1" to the = lib...@li... email list. =20 I installed my device driver (*.inf) and test my driver with = TestLibUsb. TestLibUsb displays idVendor and idProduct. That means to me = that the device is working since driver has access to the device = descriptor. The problem is that the driver cannot retrieve the = configuration of my device. During debugging my application I found out that "config" pointer in = "struct usb_device" is 0. =20 I changed my window application so that I try to get the configuration = with the libusb API "usb_get_descriptor" and it works. I get the = configuration interface and endpoint descriptors. =20 What could be the reason why libusb driver assign 0 to the "config" = pointer in "struct usb_device"? =20 Thank you for your help! =20 Micha =20 Best regards/Mit freundlichen Gr=FCssen Michael Winge =09 MSG EMEA General Applications Tel: +44(0)1355355547 Mobile: +44(0)7834020228 Email: mic...@fr... = <mailto:mic...@fr...>=20 =09 Registered address: Freescale Semiconductor UK Ltd Colvilles Road East Kilbride Glasgow Scotland G75 OTG Registration number: SC262720 VAT number: GB831329053 =09 This mail is classified: Freescale Confidential Proprietary ( ) Freescale Internal Use Only (X) General Business Information ( )=20 =20 |