Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:06:30+00:00 2026-05-30T12:06:30+00:00

I’m looking for opensource Delphi NMEA parser of production grade. It will be fine

  • 0

I’m looking for opensource Delphi NMEA parser of production grade.

It will be fine if it can meet critical mission requirement (I’m joking! I believe it’s not attainable using a Win32 system).

So far, I have played around with basic interfacing of a wrist GPS (Garmin Foretrex 101) through serial port using basic windows API (NMEA 0183).

I have also explored an opensource VCL component to handle experimental serial communication with an aviation model GPS (Garmin Gpsmap 196).

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:06:31+00:00Added an answer on May 30, 2026 at 12:06 pm

    I end up using TComPort and TComDataPacket from the open source TComPort package.


    ComPort setting:

      object ComPort: TComPort
        BaudRate = br4800
        Port = 'COM1'
        Parity.Bits = prNone
        StopBits = sbTwoStopBits
        DataBits = dbEight
        Events = [evRxChar, evTxEmpty, evRxFlag, evRing, evBreak, evCTS, evDSR, evError, evRLSD, evRx80Full]
        FlowControl.OutCTSFlow = False
        FlowControl.OutDSRFlow = False
        FlowControl.ControlDTR = dtrDisable
        FlowControl.ControlRTS = rtsDisable
        FlowControl.XonXoffOut = False
        FlowControl.XonXoffIn = False
        SyncMethod = smWindowSync
        OnAfterOpen = ComPortAfterOpen
        OnAfterClose = ComPortAfterClose
        Left = 904
        Top = 192
      end
    

    ComDataPacket settings:

      object ComDataPacket: TComDataPacket
        ComPort = ComPort
        StartString = '$'
        StopString = '*'
        OnPacket = ComDataPacketPacket
        Left = 808
        Top = 240
      end
    

    Excerpt of type used

    type
      // NMEA 0185's messages used
      TMsgGP = (
        msgGP,    // Unknown message
        msgGPGGA, // Global Positioning System Fix Data
        msgGPGLL, // Geographic position, Latitude and Longitude
        msgGPGSV, // Satellites in view
        msgGPRMA, // Recommended minimum specific GPS/Transit data Loran C
        msgGPRMC, // Recommended minimum specific GPS/Transit data
        msgGPZDA  // Date and time
        );
    
      // Satellite properties
      TSatellite = record
        Identification: ShortInt;
        Elevation: 0..90;
        Azimut: Smallint;
        SignLevel: Smallint;
      end;
      // Array of satellites referenced
      TSatellites = array[1..MAX_SATS] of TSatellite;
    
      // GPS status informations
      TGPSDatas = record
        Latitude: Double;
        Longitude: Double;
        HeightAboveSea: Double;
        Speed: Double;
        UTCTime: TDateTime;
        Valid: Boolean;
        NbrSats: Shortint;
        NbrSatsUsed: Shortint;
      end;
    

    ComDataPacketPacket Event handler:

    procedure TForm1.ComDataPacketPacket(Sender: TObject; const Str: string);
    var
      Resultat: TStringList;
      MsgCorrect, TypeMsg: string;
      i: Integer;
    begin
      Resultat := TStringList.Create;
      try
    
        // Split the message into different parts.
        MsgCorrect := AnsiReplaceStr('$'+Str, ',,', ' , , ');
        Resultat.Text := AnsiReplaceStr(LeftStr(MsgCorrect, Length(MsgCorrect) - 1), ',', #13#10);
    
        // Get the message type
        TypeMsg := AnsiMidStr(Resultat[0], 4, 3);
    
        case IndexMsgGP(TypeMsg) of
          msgGPGGA:
            begin
            end;
          msgGPGLL:
            begin
            end;
          msgGPGSV:
            begin
              // If there are satellites referenced in the frame
              if Resultat.Count < 4 then
                FGPSDatas.NbrSats := 0
              else
                FGPSDatas.NbrSats := StrToInteger(Resultat[3]);
    
              if Resultat[2] = '1' then
              begin
                FSatRef := 0;
    
                // Initiate satellites values
                for i := 1 to 12 do
                  with FSatellites[i] do
                  begin
                    Identification := 0;
                    Elevation := 0;
                    Azimut := 0;
                    SignLevel := 0;
                  end;
              end;
    
              i := 4;
    
              // For each referenced satellites
              while (i + 4) <= (Resultat.Count) do
              begin
                with FSatellites[FSatRef + 1] do
                begin
                  Identification := StrToInteger(Resultat[i]);
                  Elevation := StrToInteger(Resultat[i + 1]);
                  Azimut := StrToInteger(Resultat[i + 2]);
                  if Resultat[i + 3] <> '' then
                    SignLevel := StrToInteger(Resultat[i + 3])
                  else
                    SignLevel := 0;
                end;
                Inc(i, 4);
                Inc(FSatRef);
              end;
            end;
          msgGPRMA:
            begin
            end;
          msgGPRMC:
            begin
            end;
          msgGPZDA:
            begin
            end;
          else
        end;
      finally
        Resultat.Free;
      end;
    end;
    

    NMEA processing took place in the event handler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string
I need a function that will clean a strings' special characters. I do NOT
I would like to count the length of a string with PHP. The string
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.