Well it did blow things up. Sorry for bothering you guys. :-(
But thanks for your help!!

Best regards
Stefano

-------- Original-Nachricht --------
> Datum: Tue, 30 Oct 2012 14:49:28 +0100
> Von: Tormod Volden <lists.tor...@gmail.com>
> An: pyusb-users@lists.sourceforge.net
> Betreff: Re: [pyusb-users] Getting string descriptor

> 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

------------------------------------------------------------------------------
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

Reply via email to