ORION-RF is a bench/laboratory signal-testing instrument for ESP32-S3. It is built for authorized RF and wireless engineering, education, and security research in a controlled environment — characterizing radios, measuring the spectrum, and testing the resilience of your own devices on your own bench.
It is not a consumer or field device. Every feature is intended to be exercised against equipment you own or are explicitly authorized to test, inside an RF-controlled space (e.g. a shielded enclosure / RF test bench), with transmit features kept off the air.
- ✅ Authorized lab testing only — on hardware you own or have written permission to test.
- ✅ Controlled RF environment — keep transmit/interference features inside a shielded enclosure or on a wired/attenuated test link so no third-party or licensed spectrum is affected.
- ✅ Education & research — understanding wireless protocols, RF capture/replay, HID, NFC.
- ❌ Not for use against devices, networks, or people you do not own or are not authorized to test, and not for operation on open/public airwaves.
Operating radio transmitters may be regulated in your jurisdiction (e.g. FCC / CE / local spectrum rules). The operator is solely responsible for lawful, authorized use. This project is provided for legitimate testing and research under the terms of its LICENSE; the authors accept no liability for misuse.
All features are intended for laboratory signal testing against owned/authorized equipment.
- BLE scanning
- WiFi scanning
- WiFi analyzer (spectrum/channel activity)
- RF capture (WIP)
- RF replay (planned)
- BLE interference testing
- Bluetooth interference testing
- WiFi interference testing
These exercise a device-under-test's resilience to RF interference on the 2.4 GHz band and are meant for a shielded bench only.
- BadUSB keyboard emulation (HID input testing)
- BLE mouse emulation
- System information
- Hardware diagnostics
- Device restart
- ESP32-S3 N16R8
- 2x NRF24L01 Module
- 2x CC1101 Module
- PN532 NFC Module
- MicroSD card Module
- TP4056 Charging Module
- OLED display
- Battery-powered portable setup
Note: the firmware is being rewritten from the Arduino/PlatformIO build to Rust on
stdESP-IDF. The table below reflects the feature set (parity target for the rewrite). SeeCLAUDE.mdfor the rewrite architecture and phased plan.
| Feature | Status |
|---|---|
| BLE Scan | Working |
| WiFi Scan | Working |
| WiFi Analyzer | Working |
| BadUSB | Working |
| BLE Mouse | Working |
| BLE Interference Test | Working |
| Bluetooth Interference Test | Working |
| WiFi Interference Test | Working |
| RF Capture | WIP |
| RF Replay | WIP |
| SD Card Support | Planned |
| Emulator | Planned |
| NFC | WIP |
The easiest way to install ORION-RF is through the web installer.
- Connect your ESP32-S3 to your computer using a USB cable.
- Open the installer page:
- Click Connect and select your device.
- Click Install and wait for the flashing process to complete.
- Reboot the device if required.
Google Chrome, Microsoft Edge, and other Chromium-based browsers are recommended. It may or may not work on Firefox based browsers.
git clone https://github.com/krolyxon/orion-rf.git
cd orion-rfThe Rust rewrite targets std ESP-IDF on Xtensa (xtensa-esp32s3-espidf), which needs the
Espressif Rust toolchain (espup + the esp rustup channel), the ESP-IDF v5.5.3 SDK, and
espflash/ldproxy.
-
Prerequisites —
rustup, plus the host packages ESP-IDF needs to build. On Arch:sudo pacman -S --needed git wget flex bison gperf python \ cmake ninja ccache dfu-util libusb libffi openssl pkgconf(
pkgconf+ thesystemdlibudev library — part of a base Arch install — are whatespflashlinks against on Linux.) -
Install
espupand set up theesptoolchain:cargo install espup --locked espup install
This installs the
esprustc toolchain intoRUSTUP_HOME(shared across projects) and writes a~/export-esp.sh. You do not need that script for this repo —LIBCLANG_PATHis already set in.cargo/config.toml, so you can delete it (see Cleaning Up below). -
Install the flasher and linker shim:
cargo install espflash ldproxy --locked
-
Build from the repo root — the ESP-IDF SDK (~4.4 GB) downloads into
./.embuild/on the first build and is reused afterwards:cargo build --release
This project is configured to stay self-contained — the heavy, project-specific pieces live inside the repo instead of cluttering your home directory:
- ESP-IDF SDK + its tools (~4.4 GB) install into
./.embuild/(not~/.espressif), because.cargo/config.tomlsetsESP_IDF_TOOLS_INSTALL_DIR = "workspace". Already gitignored. LIBCLANG_PATH(needed bybindgen) is set in.cargo/config.toml's[env]block, so you do not need tosource ~/export-esp.sh— a plaincargo buildpicks it up. If you ranespup installand it created~/export-esp.sh, you can delete it. The path is version-pinned; after anespup update, bump theesp-clangversion segment in.cargo/config.toml.- The
esprustc toolchain (~1.8 GB) is a normal rustup toolchain and lives inRUSTUP_HOME(e.g.~/.local/share/rustup/toolchains/esp). It is intentionally shared across all ESP projects —rust-toolchain.toml(channel = "esp") selects it automatically.
cargo run --release # builds and flashes + opens the serial monitor
cargo build --release # build onlyDuring the rewrite, the Rust and Arduino firmwares live side by side in one repo. The Rust tree is primary (at the root, where most Rust projects put it); the Arduino tree is kept only as a 1:1 parity reference and is removed once the rewrite is verified on hardware.
orion-rf/
├── src/ # Rust firmware (active) — Cargo reads this
├── src-arduino/ # original Arduino firmware (reference only)
├── lib-arduino/ # Arduino libraries (renamed from lib/ to be explicit)
├── Cargo.toml build.rs rust-toolchain.toml sdkconfig.defaults
└── platformio.ini # points PlatformIO at the -arduino/ trees
The two build systems don't collide because each is told where to look:
| Firmware | Command | Reads |
|---|---|---|
| Rust (active) | cargo build / cargo run |
src/, Cargo.toml |
| Arduino (reference) | pio run / pio run -t upload |
src-arduino/, lib-arduino/ |
PlatformIO is redirected to the renamed trees via the [platformio] section of
platformio.ini:
[platformio]
src_dir = src-arduino
lib_dir = lib-arduinoThe Arduino build is retained only for parity reference and will be deleted in a final cleanup commit once the Rust firmware is verified on hardware.
Error: Failed to list cmake-file-api reply directory/No such file or directory— usually a stale ESP-IDF build dir after moving files or switching toolchains. Do a clean rebuild:rm -rf target .embuild cargo build --release
To reclaim space, work from least to most destructive:
# 1. Project build artifacts (safe; regenerated on next build)
cargo clean # removes ./target
rm -rf .embuild # removes the project's ESP-IDF SDK + tools (~4.4 GB)
rm -rf .pio .cache # legacy PlatformIO + clangd caches
# 2. Stray file espup may have dropped in your home dir (not used by this project)
rm -f ~/export-esp.shBecause everything project-specific lives under the repo, deleting the repo directory removes the SDK and build output with it. The only things left outside are the shared, global installs:
# 3. Global toolchains — ONLY if you have no other ESP projects
espup uninstall # removes the `esp` rustup toolchain (~1.8 GB)
cargo uninstall espflash ldproxy # remove the flasher/linker helpers