Mailing List Archive

Controlling Linux serial port w/ Python ... - posixport.py (0/1)
Gerald Gutierrez <gutier@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.