Page 1 of 1

control serial port (com1) lines

Posted: Thu Nov 12, 2009 7:38 pm
by jitterjames
I feel like I saw a post once about this and now I can't find it.

I'd like to be able to control a home-made relay using CTS / RTS lines etc. by turning those lines on and off directly and using the +/- 12 volts generated...

Anyone have any idea how to do this? Anything in Python, c# or a program that accepts command line instructions would be fine. I just need to be able to turn those pins on and off!

Needs to work on Vista/Win7 though.

TIA for any ideas.

Re: control serial port (com1) lines

Posted: Fri Nov 13, 2009 6:54 am
by krambriw
Hi,

The siomodule for Python should have support for that

Best r Walter


....and this link has some samples

http://bytes.com/topic/python/answers/1 ... ts-control

...or this might be even better

http://blog.makezine.com/archive/2005/0 ... _or_s.html

Re: control serial port (com1) lines

Posted: Fri Nov 13, 2009 2:46 pm
by jitterjames
I looked at your links and then took another look at the serial plugin that comes with EG. Then I decided to actually test my brilliant plan before wasting too much time on figuring out how to control the pins. It seems that the com port isn't capable of putting out enough amperage for what I want to do. As soon as I attach my device to a 12V pin the voltage drops.

Oh well, it would have been a great way to make a $20 wireless relay switch to control 2 appliances. I guess I would need some kind of an amped circuit but that stuff is way over my head.

thanks for you help.

Re: control serial port (com1) lines

Posted: Sun Nov 15, 2009 7:18 am
by krambriw