title: How to detect signals at the serial COM1 port?
body: <p>I have a infrared device (both transmitter and receiver). I've connected the receiver to the serial COM port and I send IR signals using the transmitter.</p>
  
  <p>I'd like to monitor theese signals and whenever there is no signal, invoke another thread (sms sending code).</p>
  
  <p>If I check the signals on hiperterminal, I get some unreadable values.</p>
  
  <p>What should I look for as a <code>NO CARRIER</code> value to see if there is no data being recieved so I execute the second thread?</p>
  
  <p>e.g</p>
  
  <pre><code>if(signals!=null)
  {
      //do nothin
  } 
  else
  {
      //thread2();
  }
  </code></pre>