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
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!!
>
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
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
-
> 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
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
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
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
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
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
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
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
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".
>
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
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
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
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
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
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
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
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
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
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
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
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
25 matches
Mail list logo