Newbie: Python & Serial Port question

S

Sanjay Arora

Am a python newbie. Does python have a native way to communicate with a
PC serial port? I found that pyserial needs java.

I am using Linux..CentOS 4.2, to be exact, no java installed and
zilch/no/none/maybe never experience of java too.

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? Does anyone know of an existing software/python
library/module for this?

Please help.

With best regards.
Sanjay.
 
G

Grant Edwards

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top