Page 1 of 1

Serial Port Listen

Posted: Fri Nov 30, 2007 12:38 pm
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.

Re: Serial Port Listen

Posted: Fri Nov 30, 2007 3:10 pm
by Bitmonster
If the protocol uses a fixed terminator, you can do it with the serial plugin.

Re: Serial Port Listen

Posted: Fri Nov 30, 2007 4:06 pm
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.

Re: Serial Port Listen

Posted: Sat Dec 01, 2007 5:41 pm
by Bitmonster
Well, the best way would be to write it as a plugin, as you have the greatest possibilities with them.