Re: [pyusb-users] Getting string descriptor

2012-11-02 Thread Stefano Di Martino
Nothing get's printed. Original-Nachricht > Datum: Wed, 31 Oct 2012 20:55:54 +0100 > Von: Tormod Volden > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > On Tue, Oct 30, 2012 at 3:20 PM, Tormod Volden wrote

Re: [pyusb-users] Getting string descriptor

2012-11-01 Thread Stefano Di Martino
Sure, I'll make this tomorrow. Stefano On 31.10.2012 20:55, Tormod Volden wrote: > On Tue, Oct 30, 2012 at 3:20 PM, Tormod Volden wrote: >> On Tue, Oct 30, 2012 at 3:06 PM, Stefano Di Martino wrote: >>> Well it did blow things up. Sorry for bothering you guys. :-( >>> But thanks for your help!! >

Re: [pyusb-users] Getting string descriptor

2012-10-31 Thread Tormod Volden
On Tue, Oct 30, 2012 at 3:20 PM, Tormod Volden wrote: > On Tue, Oct 30, 2012 at 3:06 PM, Stefano Di Martino wrote: >> Well it did blow things up. Sorry for bothering you guys. :-( >> But thanks for your help!! > > OK, but it should not blow up because of this. IMO pyusb should either > guard agains

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 3:55 PM, Stefano Di Martino wrote: > I don't have a usb sniffer. Can you recommend one for windows? It should be > easy to use. UsbSnoop was mentioned on libusbx-devel yesterday, maybe this can help? http://www.linuxtv.org/wiki/index.php/Usbsnoop Tormod -

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Emmanuel Blot
> I don't have a usb sniffer. Can you recommend one for windows? It should be > easy to use. The USB tool from HHD is great (but not free): http://www.hhdsoftware.com -- Everyone hates slow websites. So do we. Make your

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Wander Lairson Costa
2012/10/30 Tormod Volden : > On Tue, Oct 30, 2012 at 3:06 PM, Stefano Di Martino wrote: >> Well it did blow things up. Sorry for bothering you guys. :-( >> But thanks for your help!! > > OK, but it should not blow up because of this. IMO pyusb should either > guard against this It sounds a good id

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Stefano Di Martino
I don't have a usb sniffer. Can you recommend one for windows? It should be easy to use. Stefano Original-Nachricht > Datum: Tue, 30 Oct 2012 15:20:07 +0100 > Von: Tormod Volden > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 3:06 PM, Stefano Di Martino wrote: > Well it did blow things up. Sorry for bothering you guys. :-( > But thanks for your help!! OK, but it should not blow up because of this. IMO pyusb should either guard against this, or give a warning or a better error message. Can you pl

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Stefano Di Martino
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 > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Ge

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Stefano Di Martino
ourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > > 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_tra

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Tormod Volden
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 at

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Wander Lairson Costa
2012/10/30 Stefano Di Martino : > Original-Nachricht >> Datum: Tue, 30 Oct 2012 11:47:01 +0100 >> Von: Tormod Volden >> An: pyusb-users@lists.sourceforge.net >> Betreff: Re: [pyusb-users] Getting string descriptor > >> >> With pyUSB I

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Stefano Di Martino
Original-Nachricht > Datum: Tue, 30 Oct 2012 11:47:01 +0100 > Von: Tormod Volden > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > >> With pyUSB I get the same error: "[Errno None] Overflow". >

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 11:01 AM, Wander Lairson Costa wrote: > 2012/10/30 Stefano Di Martino: >> 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' >> > > You should do that bef

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Wander Lairson Costa
2012/10/30 Stefano Di Martino : > Sorry, I forgot to post the currently fixed version of libusbx: > > https://github.com/libusbx/libusbx/zipball/master > > I attach the latest dll, too, otherwise you have to build it yourselves. > I will check it, but can do that only on weekend... -- Best Regar

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Wander Lairson Costa
2012/10/30 Stefano Di Martino : > 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 h

Re: [pyusb-users] Getting string descriptor

2012-10-30 Thread Stefano Di Martino
ow 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 > An: pyusb-users@lists.sou

Re: [pyusb-users] Getting string descriptor

2012-10-28 Thread Stefano Di Martino
Original-Nachricht > Datum: Sun, 28 Oct 2012 13:10:18 +0100 > Von: Tormod Volden > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > Did you try using zadig.exe to choose driver for your > device, instead of

Re: [pyusb-users] Getting string descriptor

2012-10-28 Thread Tormod Volden
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.iManufactu

Re: [pyusb-users] Getting string descriptor

2012-10-26 Thread Stefano Di Martino
Oct 2012 14:44:50 +0200 > Von: Tormod Volden > 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_g

Re: [pyusb-users] Getting string descriptor

2012-10-26 Thread Tormod Volden
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 de

Re: [pyusb-users] Getting string descriptor

2012-10-26 Thread Stefano Di Martino
d "Insufficient memory" error appeared again. Best regards Stefano Original-Nachricht > Datum: Fri, 26 Oct 2012 09:46:18 -0200 > Von: Wander Lairson Costa > An: pyusb-users@lists.sourceforge.net > Betreff: Re: [pyusb-users] Getting string descriptor > 2012

Re: [pyusb-users] Getting string descriptor

2012-10-26 Thread Wander Lairson Costa
2012/10/26 Stefano Di Martino : > Sorry, I forgot to post the error message when I'm using pyUSB: > > "usb.core.USBError: [Errno 12] Insufficient memory" > What about libusb? -- Best Regards, Wander Lairson Costa -- Eve

Re: [pyusb-users] Getting string descriptor

2012-10-26 Thread Stefano Di Martino
rs@lists.sourceforge.net > Betreff: [pyusb-users] Getting string descriptor > Hi anyone, > for some reason I can't get the string descriptor of an device: > > # ... > for device in devices: > if device.iManufacturer > 0: > string = usb.util.g

[pyusb-users] Getting string descriptor

2012-10-26 Thread Stefano Di Martino
Hi anyone, for some reason I can't get the string descriptor of an device: # ... for device in devices: if device.iManufacturer > 0: string = usb.util.get_string(device, 254, device.iManufacturer) print "string:", string else: print "no descr