From Norwegian peil, a bearing; radiopeiling is radio direction finding.
Nearby transmitters, loudest first. Peil lists the Wi-Fi and Bluetooth devices, aircraft and drones around a vehicle or a building, with each one's kind, strength, vendor and tracker network. It reads what other programs already receive (an Android phone's scans; on a laptop, Kismet and readsb) and keeps metadata only, never anyone's communications. Download.
Note
Experimental. The tests and CI run on synthetic input only. Read Use and privacy before running it.
- The GPL sensor tier stays across a process boundary. Kismet and readsb are programs Peil reads, never links; CI's
denyjob holds every crate to a license allowlist (ADR-0001). - Every radio field is hostile input. Parsers check ranges and reject a line by number and reason, never value;
unsafeis forbidden, and every parser is fuzzed in CI. - Same feed, same bytes. A saved session replays to identical output (
live_gives_the_same_bytes_twice), through later builds too (ADR-0002); property tests check each live answer against a batch run. - One core, two front ends. The Rust core is the
peilcommand on Linux and, built for arm64, a child process of the Android app: no JNI (ADR-0004). - Personal data kept out by design. Events never hold a device's name or the networks a phone asks for; the bundled FAA registry leaves out registrants who are people.
- Checkable downloads. Static Linux binaries and an APK signed in CI, with SHA-256 sums, a pinned certificate fingerprint and each linked crate's license.
- List what's transmitting: each emitter's kind, signal band (strength, never distance), vendor, tracker network and Wi-Fi security (ADR-0006).
- The app, on Android 12 or later, draws them as a ring and a list;
peil describeprints them. - Aircraft from readsb, with their FAA registration in the US, and drones from their BLE Remote ID adverts, with distance and bearing from the vehicle (ADR-0007).
- Mark your own devices to hide them; the guide has the rest.
- The app, on Android 12 or later, draws them as a ring and a list;
- Point toward a BLE device such as a tracker in your car: turn in place, and the ring or camera view shows where it read strongest, coarsely (CHANGELOG.md).
- Add a laptop:
peil linksends Kismet's devices and readsb's aircraft to the app over USB tethering (guide). - Keep and replay a session: the phone keeps each session's raw lines;
peil livereplays a saved feed, and the app orpeil summarytells what it came to. - One rule so far: a device heard during the vehicle's stops at two places is flagged (
persistence.places). - Install a release:
peilfor Linux on x86_64 and aarch64, and the signed APK (CHANGELOG.md).
Experimental, released as tagged versions; tests and CI run on synthetic input only. Not built yet: the gpsd adapter and Kismet's event stream. Nor are linking a BLE device across address rotations or the bridge to vehicle data. rtl_433 is unscheduled; tire-pressure sensors are not pursued. Each ADR's Status line says what's built.
sensor tier (separate programs) Peil
------------------------------- ------------------------------------------
the phone's scans Wi-Fi, BLE, GNSS --.
Kismet REST --+--> sources -> the feed (raw lines, one clock)
readsb aircraft list --+ |
gpsd JSON (next) --' v live, or replayed
normalized events -> the emitter picture
|
the app, the peil command
Peil talks to the sensor tier only across a process boundary and links none of its code (ADR-0001).
Rust 1.85 or newer. These run on the synthetic fixtures, so no radio is needed:
cargo test --workspace
cargo run -p sensio-cli -- describe crates/sensio-core/tests/fixtures/drive_wifi.jsonl
cargo run -p sensio-cli -- live crates/sensio-core/tests/fixtures/drive.feed
cargo run -p sensio-cli -- summary crates/sensio-core/tests/fixtures/drive.feed
cargo deny check # licenses, bans, sources, advisories (from cargo install cargo-deny)Fuzz targets for every parser of untrusted input are in fuzz/, a crate of its own that needs a nightly toolchain and cargo-fuzz.
The Android app needs a JDK (17 or newer), the Android SDK with an NDK, and the Rust target aarch64-linux-android. build-core.sh builds the core and places it where the app packages it:
rustup target add aarch64-linux-android
export ANDROID_SDK_ROOT=<the SDK>
android/build-core.sh
cd android && ./gradlew assembleDebug testDebugUnitTestOne JSON object per line (ADR-0002): t_ns on the session clock, the source program, and the receiver that saw it, so a phone and a laptop in the same car are told apart.
{"t_ns":1800000000000000000,"source":"android","receiver":"phone","kind":"gnss_fix","lat_deg":60.0,"lon_deg":10.0,"course_deg":90.0}
{"t_ns":1800000001000000000,"source":"kismet","receiver":"laptop","kind":"ble_advert","addr":"aa:aa:aa:00:00:01","rssi_dbm":-58}
{"t_ns":1800000002000000000,"source":"android","receiver":"phone","kind":"wifi_ap","bssid":"cc:cc:cc:00:00:01","ssid":"example-hotspot","freq_mhz":2437,"rssi_dbm":-61}
{"t_ns":1800000003000000000,"source":"kismet","receiver":"laptop","kind":"wifi_client","addr":"dd:dd:dd:00:00:01","bssid":"cc:cc:cc:00:00:01","freq_mhz":5180,"rssi_dbm":-70}
{"t_ns":1800000004000000000,"source":"readsb","receiver":"laptop","kind":"aircraft","address":"bbbb01","heard_as":"adsb_icao","callsign":"TEST01","alt_baro_ft":3500,"lat_deg":60.01,"lon_deg":10.02,"signal_dbfs":-21.4}A Wi-Fi station carries its address and the network it's on, never what it sent or the network names it asks for; a device's name is never kept, since it's often a person's. A rejected line is reported by line, column and reason, never by its value.
peil live reads sensio.feed/1, the file the app saves, and answers with sensio.verdicts/1: the emitter picture and each radio's coverage at each request in it (ADR-0005). The stream ends stopped when the feed closes with an end line, and cut when it doesn't.
{"type":"start","schema":"sensio.feed/1","app":"fixture","boot_ns":1000000000}
{"type":"clock","boot_ns":1000000000,"utc_ns":1799999999000000000,"basis":"gnss"}
{"type":"line","seq":1,"boot_ns":2000000000,"source":"sensio","raw":"{\"kind\":\"gnss_fix\",\"lat_deg\":60.0,\"lon_deg\":10.0}"}
{"type":"judge","boot_ns":3000000000}
{"type":"end","boot_ns":4000000000}Peil is for checking what's transmitting nearby for unusual RF activity. Receiving radio signals is legal in most places; decoding the contents of other people's communications often isn't, and Peil doesn't try. Where Peil transmits, such as an active BLE scan or a request to a vehicle's own ECUs, it does so only through certified hardware used within its certification. It never interferes with, disrupts or impersonates other devices: no jamming, no deauthentication, no spoofing. Find mode's camera view shows the back camera's picture on the screen only; nothing it sees is saved or analyzed. Its recordings hold other people's device identifiers and your own movements, so treat them as personal data: keep them local, and don't publish raw recordings.
| Doc | Contents |
|---|---|
| docs/guide.md | Using the app, the laptop link and the peil command |
| docs/adr/ | The decisions, each with what's built |
| CHANGELOG.md | Each release's changes and the versioning rules |
| THIRD_PARTY_NOTICES.md | The programs Peil works with and the crates it links, with their licenses |
| SECURITY.md | Reporting a vulnerability, and what's in scope |
Licensed under either of
- the Apache License, Version 2.0 (LICENSE-APACHE), or
- the MIT License (LICENSE-MIT),
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Peil by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Third-party programs Peil works with keep their own licenses; see THIRD_PARTY_NOTICES.md.