ANN: pySerial - a mulitplatform serial port library (Win32, Linux, Jython)
seems that others too want to use the serial port from python... here's my module (python license). The current version is 1.12.
from the readme/homepage:
pySerial -------- This module capsulates the access for the serial port. It provides backends for stadard Python running on Windows, Linux, BSD (possibly any POSIX compilant system) and Jython. The module named "serial" automaticaly selects the appropriate backed.
(C) 2001-2002 Chris Liechti email@example.com
Features -------- - same class based interface on all supported platforms - port numbering starts at zero, no need to know the port name in the user program - port string can be specified if access through numbering is inappropriate - support for diffrent bytesizes, stopbits, parity and flow control with RTS/CTS and/or xon/xoff - working with or without receive timeout - file like API with "read" and "write" - The files in this package are 100% pure Python. They depend on non standard but common packages on Windows (win32all) and Jython (JavaComm). POSIX (Linux, BSD) uses only modules from the standard python distribution) - The port is set up for binary transmission. No NULL byte stripping, CR-LF translation etc. (which are many times enabled for POSIX.) This makes this module universally useful.
more details on the Homepage: http://pyserial.sourceforge.net/