title: Honeywell Xenon 1900 barcode reader | read data | virtual com port
body: <p>I have the following barcode reader:
  <a href="https://www.honeywellaidc.com/products/barcode-scanners/general-duty/xenon-1900g-1902g" rel="nofollow noreferrer">https://www.honeywellaidc.com/products/barcode-scanners/general-duty/xenon-1900g-1902g</a></p>
  
  <p>Installed the drivers like described below:
  <a href="http://hsm.force.com/publickb/articles/HSM_Article/How-to-get-the-scanner-to-communicate-via-virtual-COM-port-USB-serial-driver" rel="nofollow noreferrer">http://hsm.force.com/publickb/articles/HSM_Article/How-to-get-the-scanner-to-communicate-via-virtual-COM-port-USB-serial-driver</a></p>
  
  <p>And configurated the scanner to virtualize a com port. The scanner is plugged in and my device manager has detected it:</p>
  
  <p><a href="https://i.stack.imgur.com/cEabi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cEabi.png" alt="deviceManager"></a></p>
  
  <p><a href="https://i.stack.imgur.com/wrVHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wrVHA.png" alt="details"></a></p>
  
  <p>Here is my c# code:</p>
  
  <pre><code>class Program
  {
      private static SerialPort _ReaderPort = new SerialPort("COM3", 9600, Parity.None, 8, StopBits.One);
      static void Main(string[] args)
      {
          _ReaderPort.DataReceived += ReaderPortOnDataReceived;
          _ReaderPort.ErrorReceived += ReaderPortOnErrorReceived;
          _ReaderPort.Handshake = Handshake.None;
          _ReaderPort.ReadTimeout = 500;
          _ReaderPort.Encoding = Encoding.UTF8;
          _ReaderPort.Open();            
          Console.ReadLine();
      }
  
      private static void ReaderPortOnErrorReceived(object sender, SerialErrorReceivedEventArgs serialErrorReceivedEventArgs)
      {
      }
  
      private static void ReaderPortOnDataReceived(object sender, SerialDataReceivedEventArgs serialDataReceivedEventArgs)
      {
      }
  }
  </code></pre>
  
  <p>I don't even receive an event! I don't know what's wrong with my code.</p>