# aluntzer/radtel architecture

> Architecture diagram of the GitHub repository aluntzer/radtel, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aluntzer/radtel
- Repository: https://github.com/aluntzer/radtel

## Overview

This is client/server control software for small radio telescopes. The client presents telescope, spectrometer, sky, observation, history, status, chat, and video interfaces; users configure acquisition or issue pointing commands, and the server routes control to a hardware or simulator plugin and returns status/data. The README documents these capabilities and the plugin model. The excerpts show both process entry points and client initialization; most widget, packet-routing, and backend dispatch links are not sampled, so those relationships are marked unverified rather than asserted as direct calls.

Main entry points: [`src/client/gui.c`](https://github.com/aluntzer/radtel/blob/master/src/client/gui.c) (Client GUI), [`src/server/backend.c`](https://github.com/aluntzer/radtel/blob/master/src/server/backend.c) (Backend API), [`src/client/net.c`](https://github.com/aluntzer/radtel/blob/master/src/client/net.c) (Client networking), [`src/server/net.c`](https://github.com/aluntzer/radtel/blob/master/src/server/net.c) (Server networking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client application"]
  node_client_main["Client startup<br/>[main.c]"]
  node_gui["Client GUI<br/>[gui.c]"]
  node_client_network["Client networking<br/>[net.c]"]
  node_signals["Client signals<br/>[signals.c]"]
end

subgraph group_client_views["Telescope interfaces"]
  node_sky["Sky view<br/>[sky.c]"]
  node_telescope["Telescope controls"]
  node_radio["Spectrometer controls"]
  node_spectrum["Spectrum display<br/>[spectrum.c]"]
  node_history["Spectrum history<br/>[history.c]"]
  node_observation["Observation programs<br/>[obs_assist_cross.c]"]
  node_status["Telescope status<br/>[sys_status.c]"]
  node_chat["Chat and log<br/>[chatlog.c]"]
  node_video["Video stream<br/>[video.c]"]
  node_xyplot["Plot widget<br/>[xyplot.c]"]
end

subgraph group_protocol["Command protocol"]
  node_protocol["Packet protocol<br/>[protocol.c]"]
end

subgraph group_server["Server runtime"]
  node_server_main["Server startup<br/>[main.c]"]
  node_server_network["Server networking<br/>[net.c]"]
  node_request_handlers["Request handlers<br/>[proc_pr_control.c]"]
  node_backend_api["Backend API<br/>[backend.c]"]
end

subgraph group_drivers["Hardware and simulation"]
  node_simulator["Telescope simulator<br/>[rt_sim.c]"]
  node_srt_spectrometer["SRT spectrometer<br/>[srt_spectrometer.c]"]
  node_srt_drive["SRT drive<br/>[srt_drive.c]"]
  node_md01["MD01 drive<br/>[md01_rot2prog.c]"]
  node_sdr14["SDR14 receiver<br/>[sdr14.c]"]
end

node_user(("Telescope operator"))
node_coordinates["Coordinate conversion<br/>[coordinates.c]"]

node_client_main -->|"initializes"| node_signals
node_client_main -->|"builds"| node_gui
node_client_main -->|"initializes"| node_client_network
node_client_main -->|"handles shutdown"| node_signals
node_user -.->|"operates"| node_gui
node_gui -.->|"presents"| node_sky
node_gui -.->|"presents"| node_telescope
node_gui -.->|"presents"| node_radio
node_gui -.->|"presents"| node_spectrum
node_gui -.->|"presents"| node_history
node_gui -.->|"presents"| node_observation
node_gui -.->|"presents"| node_status
node_gui -.->|"presents"| node_chat
node_gui -.->|"presents"| node_video
node_spectrum -.->|"plots with"| node_xyplot
node_sky -.->|"converts coordinates"| node_coordinates
node_telescope -.->|"sends controls"| node_client_network
node_radio -.->|"sends configuration"| node_client_network
node_client_network -.->|"exchanges packets"| node_protocol
node_client_network -.->|"communicates with"| node_server_network
node_server_main -->|"loads plugins"| node_backend_api
node_server_main -->|"starts"| node_server_network
node_server_network -.->|"dispatches requests"| node_request_handlers
node_server_network -.->|"uses packets"| node_protocol
node_request_handlers -.->|"requests control"| node_backend_api
node_backend_api -.->|"dispatches to plugin"| node_simulator
node_backend_api -.->|"dispatches to plugin"| node_srt_spectrometer
node_backend_api -.->|"dispatches to plugin"| node_srt_drive
node_backend_api -.->|"dispatches to plugin"| node_md01
node_backend_api -.->|"dispatches to plugin"| node_sdr14
node_server_network -.->|"returns status and data"| node_client_network

click node_client_main "https://github.com/aluntzer/radtel/blob/master/src/client/main.c"
click node_gui "https://github.com/aluntzer/radtel/blob/master/src/client/gui.c"
click node_client_network "https://github.com/aluntzer/radtel/blob/master/src/client/net.c"
click node_signals "https://github.com/aluntzer/radtel/blob/master/src/client/sig/signals.c"
click node_sky "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/sky/sky.c"
click node_telescope "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/telescope/telescope_pos_ctrl.c"
click node_radio "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/radio/radio_acq_freq_range_ctrl.c"
click node_spectrum "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/spectrum/spectrum.c"
click node_history "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/history/history.c"
click node_observation "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/obs_assist/obs_assist_cross.c"
click node_status "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/sys_status/sys_status.c"
click node_chat "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/chatlog/chatlog.c"
click node_video "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/video/video.c"
click node_protocol "https://github.com/aluntzer/radtel/blob/master/src/net/protocol.c"
click node_server_main "https://github.com/aluntzer/radtel/blob/master/src/server/main.c"
click node_server_network "https://github.com/aluntzer/radtel/blob/master/src/server/net.c"
click node_request_handlers "https://github.com/aluntzer/radtel/blob/master/src/server/proc/proc_pr_control.c"
click node_backend_api "https://github.com/aluntzer/radtel/blob/master/src/server/backend.c"
click node_simulator "https://github.com/aluntzer/radtel/blob/master/src/server/backends/SIM/rt_sim.c"
click node_srt_spectrometer "https://github.com/aluntzer/radtel/blob/master/src/server/backends/SRT/srt_spectrometer.c"
click node_srt_drive "https://github.com/aluntzer/radtel/blob/master/src/server/backends/SRT/srt_drive.c"
click node_md01 "https://github.com/aluntzer/radtel/blob/master/src/server/backends/MD01/md01_rot2prog.c"
click node_sdr14 "https://github.com/aluntzer/radtel/blob/master/src/server/backends/SDR14/sdr14.c"
click node_coordinates "https://github.com/aluntzer/radtel/blob/master/src/util/coordinates.c"
click node_xyplot "https://github.com/aluntzer/radtel/blob/master/src/client/widgets/xyplot/xyplot.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client_main,node_gui,node_client_network,node_signals toneBlue
class node_sky,node_telescope,node_radio,node_spectrum,node_history,node_observation,node_status,node_chat,node_video,node_xyplot toneAmber
class node_protocol toneMint
class node_server_main,node_server_network,node_request_handlers,node_backend_api toneRose
class node_simulator,node_srt_spectrometer,node_srt_drive,node_md01,node_sdr14,node_user toneIndigo
class node_coordinates toneTeal
```

## Components

### Client application

- [Client startup](https://github.com/aluntzer/radtel/blob/master/src/client/main.c): `src/client/main.c`
- [Client GUI](https://github.com/aluntzer/radtel/blob/master/src/client/gui.c): `src/client/gui.c`
- [Client networking](https://github.com/aluntzer/radtel/blob/master/src/client/net.c): `src/client/net.c`
- [Client signals](https://github.com/aluntzer/radtel/blob/master/src/client/sig/signals.c): `src/client/sig/signals.c`

### Telescope interfaces

- [Sky view](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/sky/sky.c): `src/client/widgets/sky/sky.c`
- [Telescope controls](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/telescope/telescope_pos_ctrl.c): `src/client/widgets/telescope/telescope_pos_ctrl.c`
- [Spectrometer controls](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/radio/radio_acq_freq_range_ctrl.c): `src/client/widgets/radio/radio_acq_freq_range_ctrl.c`
- [Spectrum display](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/spectrum/spectrum.c): `src/client/widgets/spectrum/spectrum.c`
- [Spectrum history](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/history/history.c): `src/client/widgets/history/history.c`
- [Observation programs](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/obs_assist/obs_assist_cross.c): `src/client/widgets/obs_assist/obs_assist_cross.c`
- [Telescope status](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/sys_status/sys_status.c): `src/client/widgets/sys_status/sys_status.c`
- [Chat and log](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/chatlog/chatlog.c): `src/client/widgets/chatlog/chatlog.c`
- [Video stream](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/video/video.c): `src/client/widgets/video/video.c`
- [Plot widget](https://github.com/aluntzer/radtel/blob/master/src/client/widgets/xyplot/xyplot.c): `src/client/widgets/xyplot/xyplot.c`

### Command protocol

- [Packet protocol](https://github.com/aluntzer/radtel/blob/master/src/net/protocol.c): `src/net/protocol.c`

### Server runtime

- [Server startup](https://github.com/aluntzer/radtel/blob/master/src/server/main.c): `src/server/main.c`
- [Server networking](https://github.com/aluntzer/radtel/blob/master/src/server/net.c): `src/server/net.c`
- [Request handlers](https://github.com/aluntzer/radtel/blob/master/src/server/proc/proc_pr_control.c): `src/server/proc/proc_pr_control.c`
- [Backend API](https://github.com/aluntzer/radtel/blob/master/src/server/backend.c): `src/server/backend.c`

### Hardware and simulation

- [Telescope simulator](https://github.com/aluntzer/radtel/blob/master/src/server/backends/SIM/rt_sim.c): `src/server/backends/SIM/rt_sim.c`
- [SRT spectrometer](https://github.com/aluntzer/radtel/blob/master/src/server/backends/SRT/srt_spectrometer.c): `src/server/backends/SRT/srt_spectrometer.c`
- [SRT drive](https://github.com/aluntzer/radtel/blob/master/src/server/backends/SRT/srt_drive.c): `src/server/backends/SRT/srt_drive.c`
- [MD01 drive](https://github.com/aluntzer/radtel/blob/master/src/server/backends/MD01/md01_rot2prog.c): `src/server/backends/MD01/md01_rot2prog.c`
- [SDR14 receiver](https://github.com/aluntzer/radtel/blob/master/src/server/backends/SDR14/sdr14.c): `src/server/backends/SDR14/sdr14.c`

### Other components

- **Telescope operator**
- [Coordinate conversion](https://github.com/aluntzer/radtel/blob/master/src/util/coordinates.c): `src/util/coordinates.c`

## Connections

- Client startup → Client signals: initializes (evidence: `src/client/main.c`)
- Client startup → Client GUI: builds (evidence: `src/client/main.c`)
- Client startup → Client networking: initializes (evidence: `src/client/main.c`)
- Client startup → Client signals: handles shutdown (evidence: `src/client/main.c`)
- Telescope operator → Client GUI: operates
- Client GUI → Sky view: presents
- Client GUI → Telescope controls: presents
- Client GUI → Spectrometer controls: presents
- Client GUI → Spectrum display: presents
- Client GUI → Spectrum history: presents
- Client GUI → Observation programs: presents
- Client GUI → Telescope status: presents
- Client GUI → Chat and log: presents
- Client GUI → Video stream: presents
- Spectrum display → Plot widget: plots with
- Sky view → Coordinate conversion: converts coordinates
- Telescope controls → Client networking: sends controls
- Spectrometer controls → Client networking: sends configuration
- Client networking → Packet protocol: exchanges packets
- Client networking → Server networking: communicates with
- Server startup → Backend API: loads plugins (evidence: `src/server/main.c`)
- Server startup → Server networking: starts (evidence: `src/server/main.c`)
- Server networking → Request handlers: dispatches requests
- Server networking → Packet protocol: uses packets
- Request handlers → Backend API: requests control
- Backend API → Telescope simulator: dispatches to plugin
- Backend API → SRT spectrometer: dispatches to plugin
- Backend API → SRT drive: dispatches to plugin
- Backend API → MD01 drive: dispatches to plugin
- Backend API → SDR14 receiver: dispatches to plugin
- Server networking → Client networking: returns status and data
