Controlling Linux serial port w/ Python ... - posixport.py (0/1)
Kevin Dahlhausen
morse at harborcom.net
Thu Apr 22 07:28:33 EDT 1999
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.
More information about the Python-list
mailing list