Satellite operations simulator · Final Year Project · 2025–2026
Asterion One
A desk-scale satellite mission: resilient flight software, intermittent links and a predictive digital twin.
- Python
- NumPy
- Node.js
- Express
- WebSockets
- React
- PostgreSQL
- Docker
- GitHub Actions
01 · Problem
The software that keeps a satellite alive has to cope with things most web apps never see: the link to the ground disappears for most of the orbit, a crashed process can’t be fixed by hand, and operators need to know about a problem before it happens — and why.
Industrial mission simulators that train engineers for this cost from six to seven figures, while open-source tools are fragmented. My Final Year Project asked how much of that operational rigour can be reproduced on a Raspberry-Pi-class machine with only open-source tools.
02 · Architecture
- Flight software Python 3.11 · systemd
- FDIR state machine, watchdog recovery, telemetry generation, on-disk queue and Ed25519 command verification.
- Ground segment Node.js · Express · PostgreSQL
- REST API and WebSocket gateway, command planning and a hash-chained, tamper-evident audit log.
- Operator console React · Vite
- Five dashboard views, including a contact-window pass planner and browser-side command signing.
- Digital twin Python · NumPy
- First-order RC thermal and state-of-charge models that forecast 30 minutes ahead and explain each alert.
03 · Key decisions
DTN semantics without the heavyweight stack
Instead of a full Bundle Protocol implementation, telemetry goes through a persistent FIFO on disk with monotonically increasing sequence IDs. The ground acknowledges cumulatively, so after an outage the flight side simply replays everything above the last ACK — and duplicates are discarded by sequence number.
An explicit, testable state machine
Fault protection is a four-state machine (BOOT, NOMINAL, SAFE, CRITICAL) with named transitions. If the process dies, systemd restarts it straight into SAFE; repeated watchdog restarts escalate to CRITICAL instead of looping forever.
Physics over black boxes
The digital twin uses a first-order RC thermal model rather than an opaque ML model, so every alert comes with a causal explanation: load, temperature slope, threshold and predicted breach time.
Evidence you can re-run
A fault-injection CLI (network outage, process kill, bad signature, thermal spike) drives every experiment, and every result is reproducible from documented commands, backed by pytest and Jest suites on CI.
04 · Try it: FDIR state machine
A simplified, in-browser model of the flight software’s fault-protection logic. Inject faults and watch the spacecraft degrade gracefully; recover it step by step.
Current state
NOMINAL
All subsystems nominal. Full-rate telemetry.
Watchdog restarts
0 / 3
Event log
- T+00:00BOOTSystem boot initiated
- T+00:02BOOT→NOMINALSelf-test passed
05 · Results
0
messages lost or duplicated during a 120 s simulated outage (20 queued, 20 replayed)
215 ms
p95 command latency, against a 2,000 ms requirement
15.6 ms
to re-enter SAFE after the flight process was killed (requirement: ≤ 3 s)
≥ 15 min
thermal breach warning lead time in gate tests, with human-readable rationale
374
automated tests across ~12,000 lines of code
Three of the four fault-injection scenarios passed cleanly. The signed-command scenario was marked partial: the audit chain stayed valid, but the run exposed a distributed-observability gap that I documented as a finding rather than hide.