How sp5wwp/m17_anl works
M17_ANL is a half-duplex M17 radio analyser: a host sends AT commands over UART, firmware configures the radio and sends or receives 93-byte frames, and Linux software reads received frames for display or optional voice playback. The Linux entry point initializes Codec2; the repository also contains Codec2, OFDM, and quantization modules. Firmware and Linux source excerpts are partial, so links between unsampled signal-processing modules are not asserted.
Main entry points: Src/main.c Radio application · linux/main.c Serial analyser · stm32l0xx_hal.c STM32 HAL · radio_config.h Radio settings
Components 11
Radio firmware
- Radio application
firmware/Src/main.c - Radio settings
firmware/Inc/radio_config.h
MCU hardware layer
- STM32 HAL
firmware/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal.c - STM32 device layer
firmware/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l011xx.h
Linux analyser
- Serial analyser
linux/main.c
Signal processing
- Codec2 codec
linux/codec2.c - OFDM processing
linux/ofdm.c - Audio quantization
linux/quantise.c - Codec codebooks
linux
Other components
- Serial host
- Radio link
Connections 8
- Serial host → Radio application: sends AT commands
- Radio application → Serial host: returns frames
- Radio application → Radio settings: uses settings
firmware/Src/main.c - Radio application → STM32 HAL: calls HAL
firmware/Src/main.c - STM32 HAL → STM32 device layer: accesses registers
- Radio application → Radio link: sends and receives
- Serial analyser → Serial host: reads UART frames
- Serial analyser → Codec2 codec: initializes codec
linux/main.c