Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

RS232 via TCP

If you have a question or need help, this is the place to be.
Post Reply
CaM
Posts: 3
Joined: Thu Jun 11, 2009 10:28 am

RS232 via TCP

Post by CaM »

hi, has anyone been able to send RS232 commands via TCP?

The serial pluging only does com ports.

I can use Hyperterminal to send commands ok; but Hyperterminal does not work on the command line.

thanks

CaM
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: RS232 via TCP

Post by jinxdone »

You lost me there.. send RS232 commands via TCP? Do you have an ethernet <-> Serial converter or..?

If you do then it's just a matter of making a TCP client script that knows how to talk to your device, it should be pretty simple since I suspect this is just a straight forward telnet type deal. Take a look at the vlc plugin, zoom player plugin, lirc client, web server or any of the other plugins that use tcp/ip for some examples. It's not that difficult but you'll have to program it yourself.

Keywords for what you are looking are: python, asynchat, asyncore.

PS. Depending on how simple your protocol is might even get away with using something like netcat and piping some data through it for a super-simple command line implementation. (though the the real EG plugin will be much nicer if you decide to go that way)

-jinxdone
CaM
Posts: 3
Joined: Thu Jun 11, 2009 10:28 am

Re: RS232 via TCP

Post by CaM »

hi, my projector allows control via TCP.

This works the same way as serial (RS232) but I specify an IP and port instead of a COM.

I will do some coding :)

thanks for your help.

CaM
Wagner
Posts: 3
Joined: Sun Aug 23, 2009 4:15 am

Re: RS232 via TCP

Post by Wagner »

CaM wrote:hi, has anyone been able to send RS232 commands via TCP?

The serial pluging only does com ports.

I can use Hyperterminal to send commands ok; but Hyperterminal does not work on the command line.
That would be called... telnet, or at least a dumb text socket. I do not see a plugin for this currently, however it should be fairly trivial to write a plugin for that.
Post Reply