nmea

package
v0.0.0-...-64332c0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

NMEA simulator

NMEA packet generator to be used to simulate an NMEA device.

The generator takes a file with a predefined NMEA route as input, and sends the data parsed from the file to the specified network receiver.

Main program / exexutables

Can be found in this repository located under
https://github.com/RaaLabs/shipsimulator/tree/master/nmea/cmd/nmeagenerator

The binary in the repository is compiled for amd64 linux architecture.

The flags available are:

 -address string
    The network host and port to send to, like localhost:8888 (default "localhost:8888")
  -delay int
    The delay to wait between each send of data given in Micro Seconds. Default is 1000000 (1 Second) (default 1000000)
  -file string
    The name of the the NMEA file to read (default "./output.nmea")
  -loop
    loop over again, and again, and again, and again,...........
Run and generate some output locally for testing

Start a TCP network listener on port 8888

nc -l localhost 8888

Start a generator that will generate and send packages every 500ms

go run ./cmd/nmeagenerator/main.go --delay=500000 --file=../cmd/nmeagenerator/output.nmea

References

To generate routes use the tool on the web page below.

https://nmeagen.org/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(nmeaFile string, address string, delay int, loop bool) *server

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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