How reticulum-spb/rsreticulum-modem works
rsReticulum ALSA modem is a single-instance, half-duplex packet-radio plugin plus calibration and OTA benchmark utilities. The main workflow is host packet send → plugin → modem service → PHY/audio frontend → radio; receive audio follows the reverse boundary through PHY decode and packet delivery to the host. The README documents the ALSA/GPIO boundary and frame format; source excerpts confirm service and plugin responsibilities. Some subsystem links rely on README or SOURCE INDEX references because their implementation excerpts were not provided.
Main entry points: service.c Modem service · phy_rx.c PHY decoder · plugin.c ALSA plugin · frontend.c ALSA and PTT
Components 20
Host Integration
- ALSA plugin
plugins/alsa/plugin.c - Host bridge
plugins/common/host.c
Service and Frontend
- Modem service
src/service/service.c - ALSA and PTT
src/frontends/alsa/frontend.c - Audio RX
src/service/audio_rx.c - Streaming PHY RX
src/service/phy_stream_rx.c
Radio PHY
- PHY decoder
src/modem/phy_rx.c - PHY encoder
src/modem/phy_tx.c - Frame acquisition
src/phy/acquisition.c - PSK and channel DSP
src/phy
Packet Processing
- Fragmentation and reassembly
src/framing/fragmentation.c - Frame and PHY header
src/framing - FEC coding
src/fec/fec.c
Configuration and Tools
- Modem configuration
src/config/yaml.c - Burst detector
src/support/burst_detector.c - TX equalization
src/support/tx_eq.c - Radio calibration
tools/modem_calibrate.c - OTA benchmark
tools/modem_ota_benchmark.c
Other components
- rsReticulum host
- Half-duplex radio
Connections 24
- rsReticulum host → ALSA plugin: sends packets
- ALSA plugin → Modem service: creates and calls
plugins/alsa/plugin.c - ALSA plugin → Host bridge: bridges callbacks
plugins/alsa/plugin.c - Modem service → rsReticulum host: delivers packets
- Modem service → ALSA and PTT: controls frontend
- ALSA and PTT → Modem service: submits audio
- ALSA and PTT → Half-duplex radio: plays and captures
- Modem service → PHY encoder: encodes bursts
src/service/service.c - Modem service → PHY decoder: decodes audio
src/service/service.c - Modem service → Fragmentation and reassembly: reassembles frames
src/service/service.c - Audio RX → Modem service: feeds audio
- Streaming PHY RX → Frame acquisition: detects frames
src/service/phy_stream_rx.c - Streaming PHY RX → PHY decoder: decodes payloads
src/service/phy_stream_rx.c - PHY decoder → Frame and PHY header: parses frame header
src/modem/phy_rx.c - PHY encoder → FEC coding: encodes protected blocks
- PHY decoder → FEC coding: decodes protected blocks
- PSK and channel DSP → Frame acquisition: supports synchronization
- Modem service → Modem configuration: uses settings
- Modem configuration → Burst detector: configures detection
- Modem configuration → TX equalization: provides TX taps
- Radio calibration → TX equalization: designs equalizer
tools/modem_calibrate.c - Radio calibration → Half-duplex radio: measures radio path
- OTA benchmark → Modem service: sends test packets
tools/modem_ota_benchmark.c - OTA benchmark → Streaming PHY RX: runs receive tests
tools/modem_ota_benchmark.c