control serial port (com1) lines

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

control serial port (com1) lines

Post by jitterjames » Thu Nov 12, 2009 7:38 pm

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.

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: control serial port (com1) lines

Post by krambriw » Fri Nov 13, 2009 6:54 am

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

User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: control serial port (com1) lines

Post by jitterjames » Fri Nov 13, 2009 2:46 pm

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.

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: control serial port (com1) lines

Post by krambriw » Sun Nov 15, 2009 7:18 am


Post Reply