26 lines
888 B
Plaintext
26 lines
888 B
Plaintext
From: morse at harborcom.net (Kevin Dahlhausen)
|
|
Date: Thu, 22 Apr 1999 11:28:33 GMT
|
|
Subject: Controlling Linux serial port w/ Python ... - posixport.py (0/1)
|
|
References: <924762349.809295488@news.intergate.bc.ca>
|
|
Message-ID: <371f0721.156454028@news.oh.verio.com>
|
|
X-UID: 1617
|
|
|
|
Gerald Gutierrez <gutier at intergate.bc.ca> wrote:
|
|
|
|
>I'd like to do some modem I/O via Python. Mostly, the interactions would be
|
|
>similar to what "chat" in the ppp package may do; send/recv data, flipping DTR,
|
|
>setting speed, etc.
|
|
>
|
|
>I understand that POSIX termios, for which Python has a binding, may be able to
|
|
>do this. Can someone point me to an example somewhere? Alternatively, can
|
|
>someone direct me to where this type of information is available?
|
|
|
|
Here's some code that will get you partially there.
|
|
It doesn't handle the control lines though.
|
|
|
|
|
|
|
|
|
|
|
|
|