소개
A Blazingly Fast Minimal Serial Monitor with serial plottter TUI and more
디자인 및 미디어What you can do
- BLE Support - Stream data wirelessly via Nordic UART Service (NUS).
- Dual Monitor Side-by-Side View - View two serial ports simultaneously in a split-pane TUI with independent scrollbars and auto-split logging.
- Read & Write Serial Data - Monitor incoming data and send commands.
- Instant Mode Hot-Swapping - Seamlessly toggle between Monitor and Plotter via Ctrl+P.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalComChan (Communication Channel)

A Blazingly Fast Serial Monitor for Embedded Systems and Serial Communication
For detailed instructions with images and videos, take a look at comchan's
wiki
Installation
Choose your preferred installation method:
From crates.io
[!NOTE] The easiest way to install ComChan is via
cargo install
# Install from source (Standard Braille Engine)
cargo install comchan
# Install with Hardware-Accelerated 3D support (Ratty Terminal),BLE and Rhai scripting
cargo install comchan --features ratty,ble,rhai
Verify the installation:
comchan --version
From AUR
For Arch Linux users, ComChan is available in the AUR (thanks to orhun!):
# ComChan with default features (No 3D/BLE)
## Using yay
yay -S comchan
## Using paru
paru -S comchan
# ComChan with 3D (no BLE)
## Using yay
yay -S comchan-ratty
## Using paru
paru -S comchan-ratty
The Binary
# Using binstall (Has ratty and BLE)
cargo binstall comchan
# AUR
yay -S comchan-bin
paru -S comchan-bin
[!NOTE] The binary is packaged with the
ratty,bleandrhaifeatures enabled, which means you can install the binary if your machine is unable to compilecomchanwith theratty,bleandrhaifeatures.
Using elda
comchan can also be installed using
elda
elda i https://github.com/Vaishnav-Sabari-Girish/ComChan
[!NOTE] Credits for
eldago to Rikona
From source
Build from source for the latest development version:
# Clone from GitHub
git clone https://github.com/Vaishnav-Sabari-Girish/ComChan.git
# Build and run with all features
cd ComChan
cargo run --release --features ble,ratty,rhai -- --version
🪄 Magic Workflow (Powered by Grimoire)
ComChan uses Grimoire as its official task runner to make building, running, and installing completely effortless. Grimoire provides interactive Terminal UI menus so you never have to memorize Cargo feature flags again!
If you have Grimoire installed (cargo install grim), you can cast these spells
(tasks) directly in the cloned repository:
# Compile the project (Interactive prompt for 'ratty' / 'ble' features)
grim cast build # You can also use grim run (cast and run are the same commands)
# Run the project locally
grim cast run --simulate
# Install the binary directly to ~/.cargo/bin/ (Interactive feature prompt)
grim cast install
# Clean all build artifacts
grim cast clean
To view all the commands, refer to the Grimoire.toml or
just run
grim sigils # Or grim list
CLI Usage
Blazingly Fast Minimal Serial Monitor with Plotting
Usage: comchan [OPTIONS]
Options:
--completions <COMPLETIONS> Generate Shell completions
-p, --port <PORT> Serial port to connect to (or 'BLE_STREAM' for Bluetooth)
--ble Start ComChan in Bluetooth Low Energy (BLE) stream mode
-r, --baud <BAUD> Baud Rate of the Serial Monitor
-l, --log <LOG_FILE> Log data into a file
-v, --verbose Enable verbose output
--plot Launch the serial plotter
-c, --config <CONFIG_FILE> Path to config file
-x, --hex Display incoming data in hex dump format
--script <SCRIPT> Run a Rhai script (.rhai) on every received line
-h, --help Print help
-V, --version Print version
# ... (and many more)
Common Commands
BLE Streaming (Nordic UART Service)
ComChan supports streaming data wirelessly from BLE-enabled embedded devices (like the nRF52 series) using the standard Nordic UART Service (NUS).
# Start ComChan in BLE mode to scan and connect to a peripheral
comchan --ble
ComChan will scan for devices, prompt you to select your target, and
automatically subscribe to the NUS TX characteristic. You can seamlessly switch
between the raw monitor and the plotter (--plot) using Ctrl+P while the BLE
stream is active.
Basic Serial Monitor
comchan -p /dev/ttyUSB0 -r 115200
Dual Monitor Side-by-Side View
Monitor two serial ports simultaneously in a split-pane TUI. Perfect for debugging UART/CAN bridges or inter-microcontroller communication.
comchan -p /dev/ttyUSB0 /dev/ttyUSB1 -r 115200
# Test it out using the built-in simulator!
comchan --simulate -p mock1 mock2
[!TIP] The dual monitor features independent pane auto-scrolling. Press
?at any time to open the interactive help modal for shortcuts to switch active panes, scroll through history, and more. Logging (--log) and CSV streaming (--csv) will also automatically split into two separate files to prevent data mixing!
RTT & Defmt Debug Probe Mode
Bypass physical UART serial ports entirely! ComChan can stream zero-latency logs directly from your microcontroller's memory via SWD.
comchan --rtt --elf path/to/firmware.elf --chip nRF52840_xxAA
Plotter & 3D Spatial Telemetry
Visualize sensor data in real-time. Use Tab or 2 to toggle between the 2D
Line Chart and the 3D Telemetry Dashboard.
comchan --port /dev/ttyUSB0 --baud 115200 --plot
Scripting (Rhai)
ComChan can run a Rhai script on every line it receives, so
you can parse custom protocols, transform values, react to data and send
replies without recompiling. Scripting is optional and needs the rhai
feature (cargo install comchan --features rhai).
comchan -p /dev/ttyUSB0 -r 115200 --script telemetry.rhai
# Try it without hardware
comchan --simulate --plot --script examples/scripting/telemetry.rhai
fn on_serial(line) {
if !line.starts_with("Temperature:") { return; }
let raw = line.split(":")[1];
raw.trim();
let temp = parse_float(raw);
comchan::plot("temp_c", temp);
if temp > 40.0 {
comchan::log("too hot: " + temp);
comchan::write("FAN:ON\n");
}
}
See examples/scripting/telemetry.rhai
for a fuller version with error handling and state.
fn on_serial(line)- required. Called for every complete line (ANSI codes stripped).fn on_start()- optional. Called once after the script loads.comchan::log(message)- print a message (also written to--log).comchan::write(data)- send raw text over the serial port. Include the\nyourself if the device needs it.comchan::plot(name, value)- add a value to a named plot series.this- a map that persists between calls, for keeping state.
[!NOTE] Scripts work in the plotter (
--plot) with every input, and in the normal monitor for serial and--simulate. They are not supported in--tuior dual-port mode yet. In the normal monitorplotvalues only go to the--csvfile, whose columns are fixed by the first row written. Each call is limited to 1,000,000 operations so a runaway script cannot freeze ComChan.
Features
Current Features ✅
- BLE Support - Stream data wirelessly via Nordic UART Service (NUS).
- Dual Monitor Side-by-Side View - View two serial ports simultaneously in a split-pane TUI with independent scrollbars and auto-split logging.
- Read & Write Serial Data - Monitor incoming data and send commands.
- Instant Mode Hot-Swapping - Seamlessly toggle between Monitor and Plotter
via
Ctrl+P. - RTT & Defmt Support - Stream logs via SWD/J-Link directly from memory.
- Auto-Recovery & Graceful Exit - Robust handling of connection drops and hardware resets.
- Terminal-Based Serial Plotter - Visualize sensor values with auto-scaling.
Now supports the following chart types:
- Line Chart (Default)
- Bar Chart
- Scatter Plot
- Histogram
- 3D Spatial Telemetry (IMU) - Real-time 3D rotation dashboard.
- Real-Time Session Replay - Replay previously recorded
.logor.csvfiles. - Continuous CSV Streaming - Stream parsed numeric data to CSV on-the-fly.
- Hex Dump View - Inspect raw binary payloads with
--hexor--hex-pretty. - Export Plot to SVG - Save visualizations as high-quality SVGs.
- Hardware Simulation - Generate mock sensor data for testing without hardware.
- Rhai Scripting - Parse custom protocols, transform and plot values and
reply over serial with a
.rhaiscript (--script, needs therhaifeature). - Detach from running session: Users can now detach from a running session,
flash new code and return to the session without having to run
comchanfrom scratch.
Stargazers over time (Graph)
🧠 (mostly) Brain made
This project was NOT vibe-coded BUT AI is still involved in some parts of it.
- Generating test code: Because it's something I always skip so I would rather have some AI generated tests than none at all.
- Micro-improvements: I have used AI as an advisor to improve some bits of code here and there. Big refactors or new features are done by my hand though.
관련 프로젝트 살펴보기
불러오는 중…