From: Brendan S. (eTRIX) <Brendan.Simon@eTRIX.com.au> - 2009-06-16 11:17:32
|
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. |