项目作者: toams69

项目描述 :
A simple tool allowing to play NMEA logs in serial port or tcp
高级语言: Rust
项目地址: git://github.com/toams69/nmea-log-player.git
创建时间: 2020-04-17T13:26:05Z
项目社区:https://github.com/toams69/nmea-log-player

开源协议:MIT License

下载


nmea-log-player

Version
Build

A simple tool allowing to play GPS logs in serial port or through tcp

Uses the nmea crate to decode the gps logs.

The first frame is send at t0 then the frequency of the rest of the frames is based on timestamp present in
the input frames.

Usage

nmea-log-player.exe [FLAGS] [OPTIONS]

FLAGS:

  1. -h, --help Prints help information
  2. -V, --version Prints version information
  3. -v, --verbose Print each read line

OPTIONS:

  1. -b, --baudrate <baudrate> Baudrate to use on the serial port [default: 9600]
  2. -r, --rate <rate> Replay factor. To increase or decrease replay speed. [default: 1.0]
  3. --serial_port <serial_port> The serial port to use to send the lines
  4. --tcp_host <tcp_host> The TCP host [default: 127.0.0.1]
  5. --tcp_port <tcp_port> The tcp port [default: 8080]

ARGS:

  1. <input_file> The file to read line by line
  2. <out_type> The type of output (could be tcp, tcp-client or serial)

Example

nmea-log-player.exe --tcp_host 127.0.0.1 --tcp_port 80 .\gps-logs-samples\logs_gps.nmea tcp

nmea-log-player.exe --serial_port COM1 .\gps-logs-samples\logs_gps.nmea serial

TODO

  • Allow to specify custom nmea parser (should define how to find the date in sentence and how to parse it).
  • Allow to specify a speed (this will allow to speed up or down the read of the file).
  • Allow to pause the replay with the space bar
  • Add UDP socket support