Systems and infrastructure
CyberPower UPS
Communicate directly with supported CyberPower UPS hardware without legacy vendor software.
The problem
CyberPower’s official PowerPanel Personal software relies on legacy x86_64 drivers and proprietary runtime components, leaving Apple Silicon Macs and lightweight Linux setups without a simple, native way to read UPS telemetry or integrate it into scripts.
What I built
cyberpower-ups is a C++17 library, pure C API, and command-line utility (cpups) built by reverse-engineering the vendor communication protocol for direct USB HID and serial access.
Key capabilities
- Reads battery capacity, runtime estimate, input/output voltage, output load, AC power state, and cycle count.
- Supports JSON output (
--json) and continuous monitoring (--monitor) from thecpupsCLI, plus selected hardware controls where supported. - Installs with CMake and
pkg-configmetadata so other C and C++ programs can link against it directly.
Technical architecture
hidraw HID and POSIX serial on Linux. Windows currently ships as a portable offline build stub without physical hardware transport. Physically validated against a CyberPower CP1500PFCLCDa over USB HID on both Apple Silicon macOS and ARM64 Ubuntu.Engineering decisions
Because CyberPower’s recovered HID Feature report IDs are model-specific and a shared vendor ID does not guarantee uniform behavior across models, the repository documents exactly which hardware and transports have been physically verified versus tested offline.
Availability & notes
MIT-licensed open-source repository. Source-only releases via GitHub Releases (built with CMake 3.16+ and a C++17 compiler). Independent project, not affiliated with or supported by Cyber Power Systems, Inc.