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.
>
>   

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

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to