• CommentAuthorD. Saylor
    • CommentTimeMar 25th 2015
     
    I'm trying to determine if the NMEAGps is able to function with a stream from a UDP port. (The stream is pumped by us.)

    I have the following unit test to try to verify the NMEAGps working with a stream, but it does not work. It does not fire the Update event. The NMEAData is a dump from a GPS tool. Is there something I'm missing in order to get NMEAGps to work with a stream?

    [TestMethod]
    public async Task Test_NMEAMemoryStream()
    {
    var memoryStream = new MemoryStream();

    var nmeaGps = new NMEAGps(memoryStream);

    nmeaGps.PowerUp();

    var gpsUpdated = false;

    nmeaGps.Update += (s, e) => gpsUpdated = true;

    await Task.Delay(2000);

    var bytes = Encoding.ASCII.GetBytes(Resources.NMEAData);

    var streamWriter = new StreamWriter(memoryStream);

    streamWriter.Write(bytes);
    streamWriter.Flush();
    memoryStream.Position = 0;

    await Task.Delay(2000);

    Assert.IsTrue(gpsUpdated);
    }
  1.  
    Hi D Saylor,

    Is the stream from your UDP port standard NMEA GPS sentences? Are you able to provide an example of the input stream? You can send it directly to us via gbsupport@telogis.com.

    Thanks,

    April
    • CommentAuthorD. Saylor
    • CommentTimeMar 26th 2015
     
    I've sent the file to the email address your reply came through as s*************@telogis.com. If you need it sent to a different address please let me know.

    The file is standard NMEA data. The viewer we used to record the data indicated that it had a fix on the position. The location is in Concord, CA.
    • CommentAuthorD. Saylor
    • CommentTimeMar 26th 2015
     
    Hello,

    I've sent it to both of those email addresses. Can you confirm receipt?

    Best,
    David
  2.  
    Got it. Will take a look and get back to you! :)

    April