How satlab/bbctl works
BlueBox is a USB ground-station control and telemetry system for the AAUSAT3 CubeSat. Its principal workflow receives radio frames through the BlueBox, deframes them with FEC, parses valid beacon payloads, and exposes packet and tracking information to a browser. The repository also includes radio-control operations and spacecraft pass/Doppler tracking. The README documents bbctl’s USB/libusb role; the server wiring is less clear from the sampled files, so uncertain runtime links are dashed. The FEC C modules are surfaced through Python’s PacketHandler.
Main entry points: receiver.py Packet receiver · fec.py Frame handler · bbsrv Web service · tracker.py Pass tracker
Components 18
Radio control
- bbctl CLI
bbctl - BlueBox radio
- USB radio API
bluebox.py
Telemetry pipeline
- Packet receiver
web/receiver.py - Frame handler
fec.py - Beacon parser
web/beacon.py - Packet records
web/receiver.py
Error correction
- Viterbi codec
fec/viterbi.c - Reed-Solomon codec
fec/rs.c - RS parameters
fec/rs.h - CCSDS randomizer
fec/randomizer.c
Pass tracking
- Pass tracker
web/tracker.py - Orbit calculations
Web display
- Web service
web/bbsrv - Telemetry dashboard
web/js/bb.js - Dashboard page
web/pages/index.html
Other components
- Ground-station operator
- Ground-station browser
Connections 18
- Ground-station operator → bbctl CLI: controls
README - bbctl CLI → BlueBox radio: controls over USB
README - USB radio API → BlueBox radio: transfers radio commands
bluebox.py - Packet receiver → USB radio API: receives frames
web/receiver.py - Packet receiver → Frame handler: deframes
web/receiver.py - Frame handler → Viterbi codec: decodes
fec.py - Frame handler → Reed-Solomon codec: corrects errors
fec.py - Frame handler → CCSDS randomizer: derandomizes
fec.py - Packet receiver → Beacon parser: parses payload
web/receiver.py - Packet receiver → Packet records: appends
web/receiver.py - Reed-Solomon codec → RS parameters: uses definitions
fec/rs.c - Pass tracker → Orbit calculations: computes passes
web/tracker.py - Pass tracker → USB radio API: sets frequency
web/tracker.py - Ground-station browser → Telemetry dashboard: loads dashboard
- Telemetry dashboard → Web service: requests telemetry and tracking
web/js/bb.js - Dashboard page → Telemetry dashboard: uses scripts
- Web service → Packet records: serves packets
- Web service → Pass tracker: serves tracking data