title: Timeouts in C# serial port
body: <p>I am using the <code>C#</code> Serial port library for communicating with a sensor and PC .
  I am frequently getting timeouts with the <code>SerialPort.Read()</code> method even though there is data in there.  I used serial sniffers to check that I am receiving all the packet at the port but some how .NET does not pick all of them and times out.  I am reading bytes and the bytes I am receiving is 2112 less than the serial port buffer size.  I tried multiple things and now thinking of using native <code>C/C++</code> and calling it in <code>C#</code>.  Can someone share more thoughts or used native <code>C/C++</code> code in <code>C#</code>.</p>