On Tue, May 26, 2009 at 08:01:31AM +1000, Daniel Gruber wrote:
> This python module provides access to the serial port, with backends for
> standard Python running on Windows, Linux, BSD (possibly any POSIX
> compilant system), Jython and IronPython. The module named "serial"
> automatically selects the appropriate backend.
> 
> >>> ser = serial.Serial('/dev/tty0', 19200, timeout=1)
> >>> s = ser.read(10)        # read up to ten bytes (timeout)
> >>> ser.write("hello")      # write a string
> >>> line = ser.readline()   # read a '\n' terminated line
> >>> ser.close()
> 
> Tested on i386, macppc. Please test and comment.

tested it on i386 with my cheapo usb gps. works great. can't wait to try it 
with my sirius tuner because i'm allergic to perl

thanks!

Reply via email to