Mailing List Archive

Controlling Linux serial port w/ Python ...
Hi all.

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?

Thanks for any help.

Gerald.

Please forward replies to gutier@intergate.bc.ca.
Controlling Linux serial port w/ Python ... [ In reply to ]
Gerald Gutierrez <gutier@intergate.bc.ca> writes:

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

What about the Serial-Programming-HOWTO ?

It describes how to do it in C, but my guess is it's pretty similar in Python.

Greetings,

Stephan