The firmware will be responsible for closing the shutter on detection of low battery volts. Support for this is needed within the ASCOM driver (and other clients) to:
Set the low battery detection threshold, using the new @BWS,nnnn command. The battery voltage as reported in the :BVnnn# notifications are in raw Analog-to-Digital Units (ADUs). 1023 maps to 15 volts, decreasing linearly to 0 ADU = 0 volts. There will be up to 5% tolerance in components and any solution must allow for this inherent variability.
Inform the user when low voltage is detected. The firmware will emit :Volts# notifications in addition to :BVnnn notifications when the voltage is below the set threshold. Normal operation can be resumed when no :Volts# notification is received for a time interval (consider making the interval user-configurable with a default of 60 seconds; notifications are sent every 30 seconds).
Not allow opening of the shutter when a low volts condition is detected. Simply ignore open commands (don't throw an error).
Not freak out when the shutter automatically closes due to low voltage
See also: https://github.com/nexdome/Firmware/issues/29
The firmware will be responsible for closing the shutter on detection of low battery volts. Support for this is needed within the ASCOM driver (and other clients) to:
@BWS,nnnn
command. The battery voltage as reported in the:BVnnn#
notifications are in raw Analog-to-Digital Units (ADUs). 1023 maps to 15 volts, decreasing linearly to 0 ADU = 0 volts. There will be up to 5% tolerance in components and any solution must allow for this inherent variability.:Volts#
notifications in addition to:BVnnn
notifications when the voltage is below the set threshold. Normal operation can be resumed when no:Volts#
notification is received for a time interval (consider making the interval user-configurable with a default of 60 seconds; notifications are sent every 30 seconds).