convertcandumps

command
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Convertcandumps reads, converts, and writes NMEA 2000 dump files. Supports accessing input through a URL (with local caching) or local file. Writes to a local file.

The flags are:

-url specifies the URL for the remote input, OR
-inputPath specifies the local file system path to the input file
-inputFormat specifies the input format (one of raw, n2k, CAN, ydr)
-outputFormat specifies the output format (one of raw, n2k)
-outputPath specifies the local file system output path. ".<fileTypeOut>" will be appended
-groupByPGN sorts the output logs, grouped by PGN, which can be useful for testing

Overview:

read input into contents of struct inputType
convert input type to canonical packets type
initialize a struct of outputType with packets from inputType struct
write the (transformed) contents to filePathOut
grouped by PGN if groupByPgns option specified

Jump to

Keyboard shortcuts

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