Help us shape the future of Go! Take the 2026 Go Developer Survey

navilink

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

README

Tests

A command line tool for Locosys NaviGPS devices (GT-11/BGT-11, GT-31/BGT-31) connected via USB. It talks to the device using the NaviLink protocol to:

  • download tracks, the data log (GT-31/BGT-31), waypoints and routes as GPX
  • upload waypoints and routes from GPX
  • delete tracks, waypoints and routes

Installation

With Go installed:

go install github.com/mlange-42/navilink@latest

Pre-built binaries for Windows, Linux and macOS are available on the Releases page.

[!NOTE] On Windows, current Prolific drivers refuse to work with the PL2303HXA USB-serial chip used by NaviGPS devices. If the port can't be opened, navilink prints instructions for installing an older driver.

Usage

Switch the device to NaviLink mode and connect it. The serial port is detected automatically if it is the only one; otherwise select it with -d (e.g. -d COM4 or -d /dev/ttyUSB0).

Download the track and the data log:

navilink track get -o track.gpx
navilink log get -o log.gpx

Back up all waypoints and routes:

navilink waypoints get -o waypoints.gpx
navilink routes get -o routes.gpx

Upload routes, skipping routes that already exist on the device. Route points that are not on the device yet are uploaded as waypoints:

navilink routes put -s -i tour.gpx

Run navilink --help for all commands, and navilink <command> --help for their options.

Documentation

Credits

This is an AI-assisted port to Go of navilink.pl (GitHub) by Andreas Gohr and contributors, Copyright (c) 2007-2009, released under the BSD 3-Clause License.

License

This project is distributed under the BSD 3-Clause License, which includes the copyright notice of the original navilink.pl. The protocol specification in docs/navilink-protocol.md is a copy licensed under CC BY-SA 4.0.

Documentation

Overview

Command navilink downloads and uploads data from and to Locosys NaviGPS devices using the NaviLink protocol.

Directories

Path Synopsis
internal
gpx
Package gpx reads and writes GPX 1.0 files.
Package gpx reads and writes GPX 1.0 files.
hint
Package hint provides how-tos for known errors.
Package hint provides how-tos for known errors.
navilink
Package navilink implements the NaviLink protocol used to communicate with Locosys NaviGPS devices over a serial connection.
Package navilink implements the NaviLink protocol used to communicate with Locosys NaviGPS devices over a serial connection.
navilink/navilinktest
Package navilinktest provides an in-memory NaviGPS device for tests.
Package navilinktest provides an in-memory NaviGPS device for tests.
progress
Package progress draws a simple progress bar on a terminal.
Package progress draws a simple progress bar on a terminal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL