RTS/CTS and DTR/DTS control

Mike Mike at kordik.net
Sat Jul 5 03:25:00 CEST 2003

On Fri, 04 Jul 2003 19:36:45 -0400, Peter Hansen wrote:

> Mike wrote:
>> > Is there a library in Python that will give me control over the
>> > handshaking lines directly?

I actually want to control my X10 firecracker device. I have done it in
Java (on Windows) already but now I want to do it in Python on Linux. You
control the device by wiggling the control lines with certain patterns. 

I am looking at the search page you sent to me.


>> I am running Linux, Python 2.2.2. It would be nice (not mandatory) to
>> be cross platform though.
> You call them handshaking lines, so one might infer you want to use them
> as such while doing serial communications.  Are you in fact actually
> planning to control them as discrete inputs and outputs, for some kind
> of control application? (If not, I'm curious why you want to control
> them directly.)
> There is Chris Liechti's library, which you can find with
> http://www.google.com/search?q=python+serial+port but I'm not sure it
> supports direct control of the I/Os...  if it doesn't you should be able
> to get direct control of those lines under Linux using appropriate
> fcntl.ioctl() calls, I would think, though I haven't done it myself.
> -Peter

More information about the Python-list mailing list