How telesphoreo/anchor works
Anchor is a cross-platform tray application that turns supported Anker Solix stations into a software UPS. Users configure and scan for a station, connect over Bluetooth, and monitor AC input and battery; sustained low battery while on battery power starts a cancellable countdown and ultimately a graceful shutdown. The graph includes the BLE protocol and platform transports, plus tray settings, status, update, and platform shutdown capabilities documented or indexed in the supplied evidence. Unsampled modules are represented only where the tree or README supports them; dashed edges mark unverified runtime wiring.
Main entry points: TrayAppContext.cs Tray coordinator · UpsMonitor.cs UPS monitor · SettingsWindow.cs Settings and scan UI · SolixDeviceFactory.cs Device factory
Components 26
Tray application
- Application startup
src/AnchorTray/Program.cs - Configuration
src/AnchorTray/AppConfig.cs - Tray coordinator
src/AnchorTray/TrayAppContext.cs - Settings and scan UI
src/AnchorTray/SettingsWindow.cs - Status UI
src/AnchorTray/StatusWindow.cs - Countdown UI
src/AnchorTray/CountdownWindow.cs - Update checker
src/AnchorTray/Updater.cs - File log
src/AnchorTray/FileLog.cs
Solix Bluetooth
- BLE scanner
src/SolixBle/SolixScanner.cs - Discovered station
src/SolixBle/DiscoveredDevice.cs - Device factory
src/SolixBle/SolixDeviceFactory.cs - Station model drivers
src/SolixBle/Devices - Solix device session
src/SolixBle/SolixBleDevice.cs - Session negotiation
src/SolixBle/NegotiatedSession.cs - Protocol frames
src/SolixBle/SolixFrame.cs - GATT link
src/SolixBle/IGattLink.cs - Linux BlueZ transport
src/SolixBle/Platform/Linux - Windows BLE transport
src/SolixBle/Platform/Windows
Shutdown policy
- UPS monitor
src/AnchorTray/UpsMonitor.cs - Policy state machine
src/AnchorTray/PolicyEngine.cs
Platform services
- Graceful shutdown
src/AnchorTray/Platform - Notifications
src/AnchorTray/Platform - Login registration
src/AnchorTray/Platform
Other components
- User
- Solix power station
- Host operating system
Connections 32
- User → Settings and scan UI: configures
README.md - Application startup → Configuration: loads
src/AnchorTray/Program.cs - Application startup → Tray coordinator: starts
src/AnchorTray/Program.cs - Application startup → Login registration: registers login
- Settings and scan UI → Configuration: saves settings
README.md - Settings and scan UI → BLE scanner: scans
src/AnchorTray/SettingsWindow.cs - BLE scanner → Discovered station: returns results
src/SolixBle/SolixScanner.cs - Discovered station → Device factory: selects model
README.md - UPS monitor → Device factory: creates device
src/AnchorTray/UpsMonitor.cs - Device factory → Station model drivers: selects driver
src/SolixBle/SolixDeviceFactory.cs - Device factory → Solix device session: creates generic
src/SolixBle/SolixDeviceFactory.cs - UPS monitor → BLE scanner: scans devices
src/AnchorTray/UpsMonitor.cs - Solix device session → GATT link: connects through
src/SolixBle/SolixBleDevice.cs - Solix device session → Session negotiation: negotiates session
src/SolixBle/SolixBleDevice.cs - Session negotiation → Protocol frames: builds packets
src/SolixBle/NegotiatedSession.cs - Linux BlueZ transport → GATT link: implements
src/SolixBle/Platform/Linux/BlueZGattLink.cs - Windows BLE transport → GATT link: implements
src/SolixBle/Platform/Windows/WinRtGattLink.cs - Linux BlueZ transport → Solix power station: exchanges BLE
README.md - Windows BLE transport → Solix power station: exchanges BLE
README.md - UPS monitor → Solix device session: reads telemetry
src/AnchorTray/UpsMonitor.cs - UPS monitor → Policy state machine: updates policy
src/AnchorTray/UpsMonitor.cs - Policy state machine → Countdown UI: triggers countdown
README.md - Tray coordinator → UPS monitor: starts monitoring
src/AnchorTray/TrayAppContext.cs - Tray coordinator → Settings and scan UI: opens settings
src/AnchorTray/TrayAppContext.cs - Tray coordinator → Status UI: updates status
src/AnchorTray/TrayAppContext.cs - Tray coordinator → Countdown UI: shows countdown
src/AnchorTray/TrayAppContext.cs - Tray coordinator → Update checker: checks updates
src/AnchorTray/TrayAppContext.cs - Tray coordinator → Graceful shutdown: requests shutdown
src/AnchorTray/TrayAppContext.cs - Graceful shutdown → Host operating system: shuts down gracefully
README.md - Tray coordinator → Notifications: notifies user
src/AnchorTray/TrayAppContext.cs - Tray coordinator → File log: writes events
src/AnchorTray/TrayAppContext.cs - UPS monitor → File log: logs decisions
src/AnchorTray/UpsMonitor.cs