as your generic solution resulted in a driver that did not solve my problem, I decided to install VB yesterday. Now that was far from easy, which surprised me, but today I managed to build a Generic UPS SafetyMonitor following most of the specs I provided a few days ago.
The driver works with the events in the Windows Application Events Logbook (can be accessed via eventvwr).
There are three fields to be filled (the default values are those for an APC Back-UPS in combination with PowerChute):
- the event-id that specifies when the UPS is on mains (to be determined for your UPS through the eventvwr)
- the event-id that specifies when the UPS is on batteries (to be determined for your UPS through the eventvwr)
- the amount of time to wait (in the hope mains will return) until we have to stop the sequence in order to be able to shutdown properly.
If mains returns with that specified time, the driver keeps the safe mode to safe. Only after the time has expired it will turn unsafe and will not return to safe, even if mains returns before the UPS shuts the computer.
The only thing not covered is the complete shutdown of the mount, but that is done using my MountCMD tool on computer shutdown.
The driver can be found on my server: http://www.dehilster.info/docs/GenericUPS-Setup.zip
The MountCMD tool is there too: http://www.dehilster.info/docs/MountCMD.zip
I have tested this driver with SGP doing its stuff with a ZWO ASI1600MM Cool, a 10Micron GM3000 mount and the slaved LesveDome, which all parked and warmed up properly. Hopefully other people on this list will test my Generic UPS Safety Monitor driver and give some feedback on how their UPS’s work. Please note that the driver will not work until the first image has been taken (that is a documented SGP feature). If you wish to postpone imaging, it is best to have two targets in the sequence: one with a single exposure directly taken, the next target being timed.