On Tue, Oct 30, 2012 at 1:48 PM, Stefano Di Martino wrote: > >> Can you please post a USB log of the transfer so we can see what the >> device is sending when the string descriptor is requested? Without >> having the device it may be tricky for someone else to reproduce the >> issue. > > Sure, I attached the log. > FYI: I was always testing with the function > "libusb_get_string_descriptor_ascii()" from libusbx which works fine now. But > as I can see, pyUSB uses ctrl_transfer() with the appriate request. >
One thing about your python example is that you ask for 254 *characters* in string = usb.util.get_string(self.device, 254, self.device.iManufacturer) The actual string length can not be higher than 126 characters. The descriptor length (in bytes, including the "descriptor length" byte and the "descriptor type" byte) can be up to 255 bytes, and the string is encoded in utf-16-le. I wouldn't expect this to blow things up, but please try with a smaller character length. Do you have a USB sniffer trace as well? I would like to see what the device is actually returning. Tormod ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users