How erikkaashoek/tinysa works
tinySA is standalone handheld spectrum-analyzer firmware. Its central workflow is configuring a sweep, acquiring RF measurements, and presenting results through the device UI and plots. The repository also contains storage/USB support, firmware updating, and MCU-specific ADC implementations. The source index confirms several module references, but many implementation files were not sampled; uncertain runtime wiring is therefore omitted. SD-card updating and the instrument’s standalone LCD workflow are documented in the README.
Main entry points: ff.c FAT filesystem · sa_core.c Sweep engine · main.c Firmware entry · fw_update.c Firmware updater
Components 20
Control and UI
- Firmware entry
main.c - Shell commands
sa_cmd.c - Menus and input
ui.c - VNA browser
vna_browser.c - Spectrum plots
plot.c - Waterfall view
waterfall.c
RF Measurement
- Sweep engine
sa_core.c - RF transceiver
si4468.c - Radio command definitions
si446x_cmd.h
Storage and Updates
- FAT filesystem
FatFs/ff.c - Disk interface
FatFs/diskio.c - USB mass storage
usb_msc.c - Firmware updater
fw_update.c
Companion Software
- Python companion
python/nanovna.py
Other components
- Instrument operator
- SD card
- LCD display
- PC user
Connections 15
- Firmware entry → Sweep engine: references
main.c - Firmware entry → Shell commands: references
main.c - Menus and input → VNA browser: names
ui.c - Sweep engine → RF transceiver: uses driver
sa_core.c - RF transceiver → Radio command definitions: uses definitions
si4468.c - FAT filesystem → Disk interface: issues disk I/O
FatFs/ff.c - Instrument operator → LCD display: views instrument
- Instrument operator → Menus and input: operates menus
- Sweep engine → Spectrum plots: presents sweep
- Spectrum plots → Waterfall view: references
plot.c - FAT filesystem → SD card: reads and writes
- USB mass storage → FAT filesystem: exposes files
- Firmware updater → FAT filesystem: loads update file
- Firmware updater → SD card: installs from
- PC user → Python companion: uses