How to communicate via USB "port"

Grant Edwards grante at visi.com
Wed Apr 18 10:01:04 EDT 2007


On 2007-04-18, robinp.la at gmail.com <robinp.la at gmail.com> wrote:

> Can someone explain how I would read the data from the USB "port"?

You can't.  There's no such thing from a SW point of view. ;)

> I don't know if it matters, but I am trying to read the data
> from a GPS plugged in to the USB port.

It's probably a serial device.  Try using pyserial to talk to
/dev/ttyUSB0.

-- 
Grant Edwards                   grante             Yow! Used staples are good
                                  at               with SOY SAUCE!
                               visi.com            



More information about the Python-list mailing list