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.

Serial Port Listen

Got a good idea? You can suggest new features here.
Post Reply
felix
Posts: 3
Joined: Wed Apr 18, 2007 8:48 am

Serial Port Listen

Post by felix »

Hi. I have been watching the development with interrest and hardly missed any daily update.
Particularly, I am an RS232 fan when it comes to control (two-way) and I couldn't find a feature that will "listen" to the incoming data on a serial port.

More precisely, is there any chance to get some events tiggered by the serial data, without polling?
Let's take a plasma... I can change the input with EG, and then I know to poll and receive the answer to update my input status on the user interface. I would like EG to know and to perform the same update even if I change the input using the Plasma front buttons, knowing that the plasma sends the same string out on serial.

Many thanks, Felix.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Serial Port Listen

Post by Bitmonster »

If the protocol uses a fixed terminator, you can do it with the serial plugin.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
felix
Posts: 3
Joined: Wed Apr 18, 2007 8:48 am

Re: Serial Port Listen

Post by felix »

I see... The protocol doesn't use a fixed terminator...
This is where I actually included my question in "feature requests" section and I will be looking forward to it, should there be possibility, time and willingness to implement a different way of capturing data not necessarily based on terminators.

I assume that once I get the string enabling the "Generate events on incoming data" I will be able to extract the string from eg.Event.suffix and match it with a list of pre-defined constants, right?
All the previously posted refferences indicate the "Serial Read Data" method and eg.result as the way to get the string data, which doesn't do my job since it needs to be triggered.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Serial Port Listen

Post by Bitmonster »

Well, the best way would be to write it as a plugin, as you have the greatest possibilities with them.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply