Simple tinySA to Workbench converter
Go to file
Dandaedre 03503eebbc
Rust CI tiny-wb passed CI.
Gitea/tiny-wb/pipeline/head This commit looks good Details
release: bump 0.1.4
2026-10-08 12:52:10 +02:00
.cargo ci: exclude dependency sources and summarize coverage output 2026-10-05 01:02:50 +02:00
assets Adds some Icons, an .ignore file and wrap for paragraphs 2024-09-27 08:30:40 -05:00
config feat: add interactive CSV plot navigation 2026-10-07 16:15:26 +02:00
docs feat: add live plot navigation and peak overlay 2026-10-08 12:51:59 +02:00
examples feat: support tinySA Ultra+ ZS406 2026-10-07 10:03:05 +02:00
release fix: configure Cross release dependencies 2026-10-05 12:16:22 +02:00
scripts feat: support tinySA Ultra+ ZS406 2026-10-07 10:03:05 +02:00
src feat: add live plot navigation and peak overlay 2026-10-08 12:51:59 +02:00
tests fix: validate CSV before logger startup 2026-10-07 16:48:26 +02:00
.gitignore test: add guided hardware validation 2026-10-05 01:53:10 +02:00
.ignore Adds some Icons, an .ignore file and wrap for paragraphs 2024-09-27 08:30:40 -05:00
AGENTS.md docs: define code structure documentation and verification standards 2026-10-04 22:10:14 +02:00
Cargo.lock release: bump 0.1.4 2026-10-08 12:52:10 +02:00
Cargo.toml release: bump 0.1.4 2026-10-08 12:52:10 +02:00
Jenkinsfile ci: verify core library builds and mock server integration 2026-10-04 23:00:58 +02:00
LICENSE
…
README.md feat: add live plot navigation and peak overlay 2026-10-08 12:51:59 +02:00
build.rs feat: expose portable library connections and mock tinySA devices 2026-10-04 23:00:25 +02:00
deny.toml ci: document project and harden Rust checks 2026-10-04 17:17:56 +02:00
release.sh fix: configure Cross release dependencies 2026-10-05 12:16:22 +02:00
rust-release.toml fix: configure Cross release dependencies 2026-10-05 12:16:22 +02:00
rustfmt.toml Cleaned up the TODOs and cleared up the codebase 2024-09-26 09:00:45 -05:00
task.md feat: add live scan mode 2026-10-08 09:39:05 +02:00

README.md

tiny-wb

tiny-wb version Test status Line coverage

tiny-wb is an interactive terminal application for acquiring a frequency sweep from a tinySA over its USB serial console, plotting the result, and exporting it as CSV. It is intended for tinySA users who want a repeatable scan workflow and for Rust applications that need its reusable acquisition library.

Support status

  • tinySA Basic low and high inputs are supported through 960 MHz, subject to the instrument's path limits.
  • tinySA Ultra-family detection and acquisition are implemented for the shared 0.1–800 MHz normal range. A detected Ultra+ ZS406 additionally supports its 0.1–900 MHz normal range and explicit opt-in Ultra mode through 5.4 GHz.
  • ZS407 extended mode and harmonic-mode reception remain unsupported. Hardware validation proves communications and framing, not RF frequency/level accuracy.

See the compatibility matrix and Ultra support scope before relying on a particular model, range, or mode.

Requirements

  • Rust 1.88.0 or newer
  • For acquisition, a powered tinySA Basic, Ultra, or Ultra+ and a data-capable USB cable
  • For acquisition, permission to open the instrument's serial port

Do not connect an unknown RF source directly to a tinySA. Use suitable external attenuation for transmitters and a DC block where a DC component may be present. Read the safe-operation guidance before connecting a signal.

Build and run

From the repository root:

cargo run --release

Use cargo run --release -- --live to confirm the usual connection and scan settings, then display repeated complete sweeps until stopped. Number keys select average/hold/decay traces, s saves the visible buffer, and q, Escape, or Enter stops, resumes the instrument, saves once more, and exits.

On Linux the serial device is commonly /dev/ttyACM0; on Windows it appears as a COM port. If the port cannot be opened, follow the serial-permission guidance.

Use Left/Right or h/l to select a field, Up/Down or k/j to change it, or type digits to edit a selected start/stop frequency in MHz or the point count. Enter applies a typed value (press it again to advance), Backspace removes a digit, and Escape cancels an active edit. Otherwise Enter advances and q or Escape quits. A successful scan displays a trace and writes a collision-safe scan_*.csv file in the current directory. CSV frequencies are in MHz and levels are in dBm.

Open an existing tiny-wb CSV directly in the interactive renderer without enumerating or connecting to a device:

cargo run --release -- --view scan.csv
# The shorter `cargo run --release -- scan.csv` is equivalent.

On a plot, use +/= and - to zoom, Left/Right or h/l to pan, and 0 or Home to restore the full frequency range. These controls also work during live capture. Press m to toggle a box showing the strongest visible sample's level and frequency. Plot bindings are configurable under [ui.bindings]. After an acquired scan, r immediately repeats the same scan and n returns to the prefilled scan-parameter editor.

Configuration and documentation

The selected settings are saved to config.toml, or to the path in TINY_WB_CONFIG. Start with the commented default configuration and consult the configuration guide for validation, units, output, and logging settings.

Development

The core protocol, transport, acquisition, and CSV code can be tested without a terminal or physical instrument:

cargo fmt --all -- --check
cargo test --locked --all-targets --all-features
cargo clippy --locked --all-targets --all-features -- -D warnings

Run the complete local CI sequence in Security, dependency policy, and MSRV. See the architecture guide, testing guide, and contributor instructions before changing behavior.

Support

Report bugs in the project issue tracker. Include the details from the reproducible bug-report checklist.

License

tiny-wb is available under the MIT License.