From: Brendan S. (eTRIX) <Bre...@eT...> - 2009-06-22 03:43:15
|
FIXED. I got it working by only doing a getString for the DeviceID that I wanted. I assume this means that getString() cannot be called on any device. There must be some gating factor that determines when it can be called. Does anyone know what that is ??? i.e. what must I check before called getString() to ensure getString() works ?? or should I just be using a try/exception statement ??? Thanks, Brendan. Brendan Simon (eTRIX) wrote: > I can't seem to read the Manufacturer and Serial Number string from USB > devices. > > I have tried : > dev.open().getString( dev.iManufacturer, 30) > > but i just get an error as follows. > > usb.USBError: usb_control_msg(DeviceRequestTO): unknown error > > What is my mistake ?? > > Is there some other sample pyusb code to read the Manufacturer and > Serial strings ?? > > Thanks, Brendan. > > |