regain 0.4.0.0 · Read the release notes

regain documentation

Pegasus Astro FocusCube3

A pure Rust USB serial driver with native NINA, shared Windows ASCOM, and Alpaca connections.

Connect the focuser

  1. Connect USB. Windows uses its built-in USB Serial Device driver.
  2. Disconnect FocusCube3 in Pegasus Unity. Closing the Unity window may leave Peg.Server.exe holding the COM port.
  3. In native NINA or ASCOM, select PulsarFab regain Pegasus FocusCube3 and open setup. Refresh, select the device, and connect for setup.
  4. For Alpaca, open /setup/v1/focuser/1/setup on your server. Find/select the focuser, connect for setup, then disconnect setup when finished.

Selection uses the USB serial number, so a changed COM number does not select a different device. A busy or missing device fails connection; it never silently falls back to a simulator.

Native setup with the physical FocusCube3, firmware 1.8.2.
Native setup with the physical FocusCube3, firmware 1.8.2. Select the image for full resolution.
Alpaca setup with the same physical FocusCube3. Neither capture uses simulation.
Alpaca setup with the same physical FocusCube3. Neither capture uses simulation. Select the image for full resolution.

Motion and settings

Which clients can share?

32-bit and 64-bit ASCOM clients share one local COM server and one serial worker. Disconnecting one client leaves others connected; the final disconnect releases the port. All clients see and control the same focuser position.

Alpaca clients also share the Alpaca server’s worker. Sharing between the native NINA provider, ASCOM server, Alpaca server, and Unity is deferred. Choose one of these to own the port. NINA can use the ASCOM driver when it needs to share with another ASCOM application.

Validation and implementation

Hardware checks used an unmounted FocusCube3 and short moves in both directions. The implementation lives in regain-fc3 and requires neither Unity nor its SDK. See protocol traces, tests, and serial ownership details.

More projects from theatr.us