communicate with serial port (ttyS0)

Emile van Sebille emile at fenx.com
Mon Jul 1 10:53:36 EDT 2002


"Shaun Schulze" <shaunschulze at yahoo.com> wrote in message
news:mailman.1025531703.8944.python-list at python.org...
> Hi
>
> I am running Debian/Linux kernel 2.4.17.
> I need to communicate between custom hardware and my
> python script via a serial port, eg. ttyS0, at
> 115.2kb/s.
> I would like to know how to receive and send data to
> and from the serial port. I would also like to know
> how to set the baud rate of the serial port to
> 115,2kb/s. If anyone has some examples it will also be
> much appreciated.
>

You'll find some pointers in the FAQ at:

http://www.python.org/cgi-bin/faqw.py?query=serial+port&querytype=simple
&casefold=yes&req=search

Check as well on google -- ISTM there are now some additional options,
although the date on the faq entry is current...

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list