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.

event reciever and socket connection

If you have a question or need help, this is the place to be.
Post Reply
Drabert
Posts: 19
Joined: Wed Feb 18, 2009 8:30 am

event reciever and socket connection

Post by Drabert »

im a complete newbie so please be gentle. I am trying to create a socket connection from my Phillips Pronto remote with EventGhost. I currently have even ghost working through the serial port on the computer, but would like to be able to connect to the computer via TCP/IP. I can get event ghost to work with the sender on another computer so i know the problem lies with my remote control, but i was hoping someone would be able to give me some direction.

the current script i have the remote doing is

Code: Select all

var socket = new TCPSocket(true);
socket.connect('192.168.1.106', 5001, 3000);
socket.write("quintessence\n\r");
socket.close();
i know EG has the option for a password but i am leaving it blank now to see if that is causing the problem. Is there something simple that i am missing to get a TCP/IP connection to my computer or is much more complicated than i think it is

Thanks for any help!

my current version of EG is 3.6.1487
i am using a windows XP computer with SP2 and the firewall disabled

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

Re: event reciever and socket connection

Post by jinxdone »

Hi, and welcome.

The network sender/receiver plugins do have a simple handshake protocol to follow, take a look at the network sender plugin code, If you can replicate that exactly it'll work just fine. On the downside it does require a bit more than just opening the socket and sending a string.

Some time ago somebody made a simpler UDP broadcast sender/receiver plugin, perhaps something like that would be easier to make on the pronto remote?
Post Reply