Advanced NMEA Data Logger

NMEA to OPC. How to get GPS data through the OPC interface?

Problem scenario:

Does your NMEA software support an OPC Interface (

Sample NMEA data from GPS and Sounder:



  • Advanced NMEA Data Logger Professional, Enterprise or a trial version;

It is assumed that:

You've created a configuration (using the "Green Plus" button) in the main window and configured communication parameters (baud rate, number of data bits, flow control, etc.) in the NMEA data logger and can receive any data without communication errors.


Selecting NMEA sentences of GPS and the sounder

GPS devices output several sentences that begin with GPGLL, GPGGA, GPVTG, or GPRMC. "GP" means that this is data from a GPS device. "SD" - sounder. GLL, GGA, RMC, DBT - NMEA sentence names. We may process and extract only the following NMEA sentences because these sentences contain all necessary data

- GGA (GPS fix data) contains GPS coordinates: latitude, longitude, altitude;
- VTG (Vector track speed over the ground) contains speed in km/h;
- DBT (Depth below transducer) provides sounder data (depth below keel) in meters.

You may easily find a detailed description of all NMEA sentences on Google.

Configuring the NMEA parser

Now, we are ready for configuring modules. First, we should configure the NMEA parser (fig. 1, 2). Now, please, open a configuration window of the NMEA parser plugin (click the "Setup" button near a drop-down box fig. 1, pos.1). The dialog window will appear on the desktop (fig. 2).

Selecting NMEA parser
Fig.1. NMEA data parser

NMEA parser: Common settings
Fig.2. NMEA data parser. Common settings

You may use the default settings here because our NMEA devices output standard NMEA sentences. On the next page (fig. 3), you should unselect all sentences except three sentences: DBT, GGA, and VTG (fig. 3, pos. 1).

NMEA parser: Sentences
Fig.3. NMEA data parser. NMEA sentences

Please, click the "OK" button and close the configuration window of the parser.

Activating OPC server

We are going to the next stage.

1. Activate the OPC server, using the checkbox before the plugin name (fig. 4);
2.Open the configuration window of the OPC Server plugin (fig. 5) by selecting the module in the list and clicking the "Setup" button on the "Data Export" tab.

Activating the OPC server
Fig.4. Activating the OPC server

OPC server
Fig.5. OPC server. Connection parameters

Here you can see the OPC server name and GUID. Using these parameters, you can connect from an OPC client to the OPC server. Go to the "Predeclared items" tab and click the "Import all" button (fig. 6, pos. 1). The OPC server will import all OPC tag names from the parser. If you select other NMEA sentences in the parser later, click the "Import all" button again.

OPC server. Predeclared items
Fig.6. OPC server. OPC tag names

Getting variable names for NMEA data: GPS latitude, longitude, altitude, speed, and sounder data

Click the "OK" button twice and close all configuration windows. All plugins will be activated. Now, the NMEA parser and the OPC server are ready, and we can test it. Connect your device and power it on and try to receive data packets with NMEA data. When data appear in the main window, you can open a configuration window of the OPC server and watch all available OPC tags (fig. 7). Each NMEA sentence will be spli into several parser items. All parser items will be automatically converted to OPC tags. You may select necessary data in the OPC client by selecting corresponding OPC tags.

OPC server. Active OPC tags
Fig.7. OPC server. Active OPC tags

We've configured the NMEA parser, and it prepares several parser items. Their names you may see on the fig.7. You can simultaneously export these parser items to any database (MS SQL, MySQL or Access) or Excel.