Sunday, August 7, 2011

RTS2 UPS

Sooner or later, especially where our telescope is located, we are going to have power problems. At our location the main problem is dirty power or lack of power. We run two UPS in parallel, one for the dome and the other for the rest of the electronics.

The UPS for the dome is a large 220V which should be overkill for the dome and have long run-time. The UPS for the electronics is much smaller thus having the least run-time of either UPS. RTS2 monitors the smaller UPS via NUT. This will allow for the PC to start shutting down and can even be off/UPS dead and as long as dome has received the "close" command it will continue to close regardless of the PC or the smaller UPS.

The hardest part in allowing RTS2 to monitor UPS systems is configuring NUT. This lead to a wild goose chase in finding the USB path. Udev wasn't creating a symlink so a udev rule wrote for the UPS generated symlink of /dev/upsCP1500.




For those with a CyberPower CP1500C use this udev rule
SUBSYSTEM=="usb", ATTRS{idVendor}=="0764", ATTRS{idProduct}
=="0501", SYMLINK+="upsCP1500"

No comments:

Post a Comment