How do I print manufacturer, product and serialNumber strings using pyusb ??

I found the lsusb example here:

    http://wiki.erazor-zone.de/wiki:projects:python:pyusb:setup:examples:lsusb

but it didn't work :(


The dev.open().getString(1,30) caused a USB error.

    Traceback (most recent call last):
      File "lsusb.py", line 7, in <module>
        print "Bus %s Device %s: ID %04x:%04x %s" %
    
(bus.dirname,dev.filename,dev.idVendor,dev.idProduct,dev.open().getString(1,30))
    usb.USBError: usb_control_msg(DeviceRequestTO): unknown error


I'm sure there is a simple solution, but this newbie is stuck :)

Thanks, Brendan.
begin:vcard
fn:Brendan Simon
n:Simon;Brendan
org:eTRIX pty ltd
adr:;;PO Box 306;St Kilda;VIC;3182;Australia
email;internet:brendan.si...@etrix.com.au
title:Managing Director
tel;work:+61-417-380-984
tel;cell:+61-417-380-984
x-mozilla-html:TRUE
version:2.1
end:vcard

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to