Newbie: Python & Serial Port question

Kinsley Turner kingsleyturner at westpac.com.au
Wed Nov 30 22:27:05 EST 2005



python-list-bounces+kingsleyturner=westpac.com.au at python.org wrote on 
30/11/2005 07:48:39 PM:

> 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?


You can't just open the serial port like a file?

Perhaps you'd need to set the correct port parameters
with some other app, but it should be do-able.


-kt



















(non-removable, sorry)
--


Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.


This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.



More information about the Python-list mailing list