Serial Input Buffer Size??
I am trying to write a program to read GPS data coming from a balloon payload and use it to point my antennas to stay with the balloon.
My problem is I wrote the program assuming the input buffer would contain a whole set of GPS NEMA sentences (GGA, GSA, RMC, etc).
But no matter what I do when I read the buffer I only get something like this:
Which is not a buffer size of 4096 the default. So, I changed the buffer size to 16384.
When I was counting on something like this:
Can anyone tell me how I can read in more data?? or If it is not possible??
In my Main.Designer.cs file I have:
this.serialInput.BaudRate = 1200;
this.serialInput.DiscardNull = true;
this.serialInput.ReadBufferSize = 16384;
I try and read it it like this:
// Check if serial port is open
// Read buffer into a string
string inputBuffer = serialInput.ReadExisting();
... Using Microsoft Visual C# 2008 Express Edition
|All times are GMT +5.5. The time now is 01:47.|