From: Tim R. <ti...@pr...> - 2007-01-23 17:27:08
|
villerose wrote: > I found another example which names "print_tree" in libusb/examples, here is > the descriptor of the device : > + device #8 > bcdUSB: 0112h > bDeviceClass: 0 > bDeviceSubClass: 2 > bDeviceProtocol: 0 > bMaxPacketSize0: 0 > idVendor: 4000h > idProduct: 0547h > bcdDevice: d100h > iManufacturer: 0 > iProduct: 0 > iSerialNumber: 1 > ... > so if you look at the idvendor and idProduct, they arent the same ?! > That's why in my previous example, it can not find out the device coz in the > code I used : libusb_match_by_vendor(&match, 0x0547,0xD100) , then if I > replaced the idVendor as 0x4000 et idProd as 0x0547, it worked !!!! I wonder > if there's something "unusual" in libusb ?? > This suggests that you made a mistake when you did the workaround for the usbi_parse_device_descriptor problem. After all, what you're looking at above IS the device descriptor. There's some kind of unpacking issue -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |