Hi, libusbx had indeed an issue, but now, it is fixed. I cant get without problems an string descriptor from a HID device, but his works only in C. With pyUSB I get the same error: "[Errno None] Overflow". Maybe pyUSB has a bug, too?
This is the way how I retrieve the string descriptor: def get_manufactorer_name(self): if self.device.iManufacturer > 0: string = usb.util.get_string(self.device, 254, self.device.iManufacturer) return string return "" I can't post any debug messages, because I don't know how to activate them in pyUSB. I tried this, but it doesn't work: os.environ['PYUSB_DEBUG_LEVEL'] = 'debug' Best regards Stefano -------- Original-Nachricht -------- > Datum: Sun, 28 Oct 2012 13:10:18 +0100 > Von: Tormod Volden <lists.tor...@gmail.com> > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > On Fri, Oct 26, 2012 at 3:41 PM, Stefano Di Martino wrote: > > The value of desc.iManufacturer is 1. In my last mail (which have to be > approved by the moderator, because it has an attachment(my project)) I > wrote 2, what was wrong read. device.iManufacturer does not exsists. > > > > device.iManufacturer was from your python example. Never mind, if it > works with libusb my question was not important (and the value seems > fine anyway). It seems like an issue with libusbx or underlying > drivers (WinUSB?), so please follow up on your thread on > libusbx-devel. Did you try using zadig.exe to choose driver for your > device, instead of an .inf file? For exactly what driver was your .inf > file? > > Regards, > Tormod > > ------------------------------------------------------------------------------ > WINDOWS 8 is here. > Millions of people. Your app in 30 days. > Visit The Windows 8 Center at Sourceforge for all your go to resources. > http://windows8center.sourceforge.net/ > join-generation-app-and-make-money-coding-fast/ > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users ------------------------------------------------------------------------------ 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