bg

Turning GGA Sentences from a USBL System into a Multi-Vessel Tracking Format

Data
GGA sentences for a vessel and an underwater vehicle, told apart by the reference station ID field
Industry
Offshore survey, subsea positioning
Interface
RS-232 from the USBL system; TCP or UDP output to the GIS
Product
Advanced NMEA Data Logger, Enterprise edition with the Script execute plugin
Result
Every GGA sentence is rewritten into the multi-vessel sentence the GIS accepts, with the station ID as the asset name and the checksum recomputed

The task

A survey team's GIS software can track several moving assets at once, but only when the positions arrive in one of a few sentence types: $GPWGT, the proprietary $PRAVE and $PCDLI sentences, or $HID. Their USBL positioning system outputs standard NMEA 0183 GGA sentences for both the vessel and the underwater vehicle, in the same serial stream, and tells them apart only by the reference station ID at the end of the sentence. The question was whether our software could reformat an incoming GGA sentence into one of the multi-vessel formats.

What the USBL system sends (coordinates changed):

$GPGGA,144704.862,5012.34567,N,00412.34567,W,2,00,0.4,-34.923,M,0.0,M,0.0,0001*41
$GPGGA,144706.723,5012.34591,N,00412.34602,W,2,00,0.4,-34.852,M,0.0,M,0.0,0001*42
$GPGGA,144707.683,5012.34188,N,00412.34812,W,0,00,0.1,0.000,M,0.0,M,0.0,0000*51

Station ID 0001 is the vessel, 0000 the vehicle.

The answer

Yes, with the Enterprise edition of Advanced NMEA Data Logger and the Script execute plugin. The chain is:

  1. The NMEA parser reads each GGA sentence into variables: time, latitude and hemisphere, longitude and hemisphere, fix quality, satellites, HDOP, altitude and the station ID.
  2. A short script in the Script execute plugin builds the target sentence from those variables. For $GPWGT it copies the fix status, position and altitude, puts the station ID into the asset name field, leaves course and speed empty unless the USBL system also sends VTG or RMC, adds date and time, and recomputes the NMEA checksum. The plugin accepts PascalScript, C++Script and other languages, so the format can be changed later without touching the rest of the configuration.
  3. The new sentence leaves the logger in one of two ways. The TCP Redirect plugin sends it straight to a TCP server, which suits a GIS that listens on a socket. Or the Data redirect plugin passes it to a second configuration in the same logger whose data source is a TCP or UDP client; that configuration does nothing but deliver the data. When several systems need the rewritten stream, TCP Splitter splits it across them.

The original GGA stream is still logged unchanged, so the raw positions stay available for post-processing.

What to prepare

  • The exact field list of the sentence your GIS expects, from its manual. The $GPWGT definition found online is not a published NMEA standard sentence, so the vendor's description is the reference.
  • Which GGA fields map to which target fields, and what the GIS needs in the fields GGA does not carry, such as course, speed, group ID or icon.
  • How the GIS receives data: a COM port, a TCP connection, or UDP.

Try it yourself

The trial version of Advanced NMEA Data Logger has every option described above. Configure it the same way and write to support if your device sends something different.

More customer cases