A browser front end for the Ham Radio Village DEF CON 34 fox — a Seeed XIAO ESP32-C3 driving a NiceRF SA868 radio module. With this project's firmware on it, the fox becomes a receiver you control from the page: tune 2 m or 70 cm, watch signal strength, scan channels, decode a fox's Morse ID and SSTV pictures from the audio, log it all. With transmit enabled in the firmware and a license, it keys, sends Morse, and runs as a beacon.
What works where
Connecting to a fox uses Web Serial, which only some browsers have. Everything else runs anywhere.
| Device | Connect to a fox | Audio in (decoders, listen) | Audio out (SSTV send) | Compass (bearing) | Location stamps |
|---|---|---|---|---|---|
| Laptop or desktop · Chrome, Edge | yes | yes | yes, with an output device choice | no compass | coarse (Wi-Fi) |
| Android phone or tablet · Chrome, with a USB-OTG cable | yes | yes (a USB sound card through an OTG hub beside the fox; listen on the phone speaker) | yes, through the same sound card | yes | GPS |
| ChromeOS | yes | yes | yes | usually not | varies |
| iPhone or iPad · Safari (Apple allows no other engine) | no — Web Serial does not exist on iOS | yes | no fox to key | after a permission tap | GPS |
| Firefox, any platform | no | yes | no fox to key | varies | varies |
The simulated fox (Try without hardware) and session replay work in every browser, so the page can be shown or a hunt reviewed on anything.
What the firmware can and cannot do
- As downloaded it is receive-only.
TX_ENABLED = Falseat the top ofcode.py; with it false nothing in the file can key the transmitter, and no license is needed to use it. - With
TX_ENABLED = Truethe transmit commands exist, behind a stored callsign, per-session arming, and a timer on every key-down that the board enforces itself. It still boots in receive. A license is required. - The SA868 fitted (VHF, UHF or dual-band) is a setting kept on the board; the page's Module dropdown sets it once.
- Signal strength is the module's RSSI byte, 0–255, uncalibrated: a relative "warmer / colder" instrument, not a dBm meter.
- The audio decoders do not use the fox's microcontroller at all: a wire from the SA868's
AF_OUTpad to a sound card gives the page the audio. See the README for the wiring. - A second optional wire, from the SA868's
SQpad toD2, lets the firmware (0.4.0+) time carrier edges itself; the page's burst countdown then comes from those. It is off until declared on the page, so a fox without the wire never reads the pin. - Morse can be sent as a keyed carrier (firmware 0.6.0, How Morse goes on the air); a receiving fox with the SQ wire decodes it itself, so the text arrives over the console with no audio path. Bench → Squelch timing measures how fast the module's squelch follows the carrier, which sets the usable speed.
- Two foxes on the bench are two tabs or two laptops, one each: a browser drives one serial port at a time.
- This page is a demonstration of hunting — the number climbs as you walk toward the transmitting fox — not a direction finder; a single uncalibrated RSSI byte through one antenna cannot locate anything on its own.
- The page has three layouts: Bench (every section and window), Hunt (one column for a phone and a yagi, with a what-to-do-now line), and Setup (the event's channels, this fox's stored settings and wires, this page's settings, the firmware installer — set once).
- Audio is optional and layered: nothing over USB needs it; a sound card on the fox's
AF_OUTadds the decoders, noise quieting and a Listen output; a sound card intoMIC_INadds SSTV pictures from the fox. Any other radio's headphone jack feeds the decoders too. See the README's Which wire does what.
What the page keeps, and what it asks for
- Nothing leaves the browser. There is no server; the page is static files. Settings live in this browser's local storage. Logs exist only while the page is open unless you save them.
- Microphone — asked for only when you start audio. The page asks for echo cancellation, automatic gain and noise suppression off (they ruin Morse timing and SSTV tones) and shows what the browser actually granted. Audio is decoded in memory and never stored; decoded text and pictures are saved only when you click Save.
- Location — off by default. When on, a badge shows, the fix's accuracy and age are displayed, a fix older than 15 s is not used, and lat/lon/accuracy go into their own columns of the log.
- Compass — asked for only when you press the Compass button in the Hunt section (iOS asks; Android Chrome just provides it). The heading slider works without one.
- USB serial — the browser's chooser shows the fox; the page refuses a device that does not answer like this firmware.
Running it yourself, and offline
- Locally. The page is static files with no build step. Clone or download the repo, serve the folder (
python -m http.server 8000, or any static server), openhttp://localhost:8000/. Web Serial works onlocalhost, so a real fox can be used this way; openingindex.htmlstraight from the disk does not work because module scripts don't load fromfile://. - On your own site. Copy the folder as it is. Web Serial, the microphone, location and the compass all need HTTPS (or localhost); a plain
http://host will show the page but cannot connect to anything. - Offline. After one visit over HTTPS or localhost, a service worker keeps the page, its scripts, the firmware file and this page cached, so it loads with no network — a hunt rarely has signal. The cache is refreshed in the background when the network is there; a new version is picked up on the next load.
Credits and licenses
The page (index.html, js/, css/) is GPL-2.0-only and began from the page kit of tinysa-web and nanovna-web (console framing, sidebar, plot base). The firmware (firmware/code.py) is GPL-3.0-only and is written to the dc34fox board, whose attribution chain is HamRadioVillage/dc34fox ← c0ldbru/fox ← Bradan Lane STUDIO ← N8HR/YAFB. Not affiliated with NiceRF or Seeed.
Maintained by LC Linkous. Issues and hunt-day oddities: the tracker.