I am developing an app that will reside on a computer that has a 16 port DigiBoard providing 16 serial com ports.
The Serial Ports will be listening for characters from other apps. I am looking for a way to trigger several things when a character is received in the com port:
First, when I get a character in say COM Port 1, I want to make sure it is the correct character for the app it is monitoring. We have an app that sends out the letter "a" every second to let us know it is alive. I want to check that I received a valid letter.
Second, I want to be able to say "I haven't received anything in xx seconds." For instance if I don't get anything in the serial port in 10 seconds on this machine, I want to be able to have that trigger a series of events:
Can someone tell me how I can match up the info that I get in from the MSCOMM component and how to set this up (9600,8,1,N) and how to set the second instance mentioned above?
Thanks
fergmj
The Serial Ports will be listening for characters from other apps. I am looking for a way to trigger several things when a character is received in the com port:
First, when I get a character in say COM Port 1, I want to make sure it is the correct character for the app it is monitoring. We have an app that sends out the letter "a" every second to let us know it is alive. I want to check that I received a valid letter.
Second, I want to be able to say "I haven't received anything in xx seconds." For instance if I don't get anything in the serial port in 10 seconds on this machine, I want to be able to have that trigger a series of events:
Can someone tell me how I can match up the info that I get in from the MSCOMM component and how to set this up (9600,8,1,N) and how to set the second instance mentioned above?
Thanks
fergmj