Newbie: Python & Serial Port question
Grant Edwards
grante at visi.com
Thu Dec 1 09:38:31 EST 2005
On 2005-11-30, Sanjay Arora <sanjay.k.arora at gmail.com> wrote:
> Am a python newbie. Does python have a native way to communicate with a
> PC serial port?
Yes. Under Unix you can use os.open() os.read() os.write() and
the termios module.
> I found that pyserial needs java.
No it doesn't.
> I am using Linux..CentOS 4.2, to be exact, no java installed
> and zilch/no/none/maybe never experience of java too.
You don't need Java.
> I have an application where I want to resd logs from the
> serial port of an EPABX and log them to a postgreSQL database.
> What's the best way to do this using python?
Use pyserial and a database interface module.
> Does anyone know of an existing software/python library/module
> for this?
Sorry.
--
Grant Edwards grante Yow! I'm ANN LANDERS!! I
at can SHOPLIFT!!
visi.com
More information about the Python-list
mailing list