Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial Communications

Status
Not open for further replies.

fergmj

Programmer
Feb 21, 2001
276
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top