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.

Best regards
Stefano

-------- Original-Nachricht --------
> Datum: Fri, 26 Oct 2012 14:44:50 +0200
> 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 10:40 AM, Stefano Di Martino wrote:
> >
> > unsigned char *data = malloc(30);
> > ret = libusb_get_string_descriptor_ascii(handle, desc.iManufacturer,
> data, 29);
> >
> > if (ret < 0) {
> >     const char *error = libusb_error_name(ret);
> >         printf("ERROR in retrieving string descriptor: %s\n", error);
> >         exit(1);
> > }
> >
> >
> > The error message:
> > "ERROR in retrieving string descriptor: LIBUSB_ERROR_NO_MEM"
> 
> What is the value of device.iManufacturer or desc.iManufacturer?
> 
> 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