Skip to content

About

Very simple tee like application for serial port written in rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serial Port Forwarder and Logger

A simple Rust program to forward stdin to a serial port and the serial port's output to stdout in real-time. It also logs all files to log file located in current directory.

Features

  • Serial port forwarding: Data from stdin is sent to the serial port, and data from the serial port is sent to stdout.
  • Logging: All communication is saved to a file for later inspection.

Usage

Prerequisites

  • Rust installed on your system.
  • Access to the serial port device.

Run the Program

  1. Clone the repository and navigate to the project directory:

  2. Build the program:

    cargo build --release
  3. Run the executable with the following arguments:

    ./target/release/serial-forwarder <port> <baud_rate> 

    For example:

    ./target/release/serial-forwarder /dev/ttyUSB0 115200 

Arguments

  • <port>: The serial port to communicate with (e.g., /dev/ttyUSB0 on Linux).
  • <baud_rate>: The baud rate for the serial communication (e.g., 9600, 115200).

About

Very simple tee like application for serial port written in rust

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages