How windytan/redsea works
redsea is a command-line FM-RDS decoder: it accepts MPX audio or encoded RDS bit/group inputs, processes and decodes RDS groups, then emits JSON lines or raw hex. The graph preserves the signal-processing, group/station decoding, and TMC traffic-message branches. Some orchestration and subsystem implementations were not shown; uncertain links are dashed, and unsampled documented capabilities use their exact source directory paths.
Main entry points: station.cc Station decoder · channel.cc Channel processor · tmc.cc TMC service · input.cc MPX reader
Components 18
Input and signal
- MPX reader
src/io/input.cc - Bit and hex input
src/io/input.cc - Subcarrier DSP
src/dsp/subcarrier.cc - Block synchronizer
src/block_sync.cc
RDS decoding
- Channel processor
src/channel.cc - RDS group model
src/group.cc - Station decoder
src/station.cc - CLI options
src/options.cc - RDS tables
src/tables.cc - RDS text
src/text/rdsstring.cc
Traffic messages
- TMC service
src/tmc/tmc.cc - TMC message decoder
src/tmc/message.cc - TMC event data
src/tmc/eventdb.cc - Event definitions
src/tmc/events_data.cc - Location databases
src/tmc/locationdb.cc
Output and encoding
- JSON and hex output
src/io/output.cc - Character conversion
ext/iconvpp/iconv.hpp
Other components
- CLI user
Connections 20
- CLI user → MPX reader: provides audio
README.md - CLI user → Bit and hex input: provides RDS
README.md - MPX reader → Subcarrier DSP: feeds samples
- Bit and hex input → Channel processor: feeds bits
- Subcarrier DSP → Channel processor: yields bits
- Channel processor → Block synchronizer: pushes bits
src/channel.cc - Block synchronizer → RDS group model: forms groups
- Channel processor → RDS group model: processes groups
src/channel.cc - Channel processor → Station decoder: decodes station
src/channel.cc - Station decoder → RDS text: assembles text
src/station.cc - Station decoder → TMC service: dispatches TMC
- TMC service → TMC message decoder: decodes messages
src/tmc/tmc.cc - TMC service → TMC event data: loads event data
src/tmc/tmc.cc - TMC event data → Event definitions: reads definitions
- TMC service → Location databases: uses locations
src/tmc/tmc.cc - Station decoder → RDS tables: looks up codes
src/station.cc - Station decoder → JSON and hex output: emits decoded data
- CLI user → CLI options: sets options
- RDS text → Character conversion: converts encoding
src/text/rdsstring.cc - JSON and hex output → CLI user: prints JSON or hex
README.md