[Tutor] python access of usb for winxp

Alan Gauld alan.gauld at btinternet.com
Fri Apr 11 00:55:45 CEST 2008


"govind goyal" <govindgoyal at gmail.com> wrote

> I want to retreive data to and fro USB device attached/connected to 
> my
> WinXP PC.

It depends what kind of device it is.
If it is a drive or flash card you can use the normal file access
functions. If it is a printer or scanner then the usual APIs for
those devices will work.

You should only need to go down to the raw USB interface
for very specialised devfices, and in that case you will need
to understand enough about USB to use pyUSB

So what kind of devices are they? And how would you
access those devices if they weren't USB? Try that first!


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list