Skip to content

riello (or main?): refactor to runtimecal logic and configuration options #1842

@jimklimov

Description

@jimklimov

PR #1692 (for issue #1685) introduced "a localcalculation option to compute battery.runtime and battery.charge if the device provides bogus values", for the riello_usb driver.

This issue aims to track further improvements upon that development:

UPDATE: Possibly makes sense to generalize this part to all the drivers, via main.c or similar. If the devices do not report their charges and runtimes, users may still want some ballpark values -- and some drivers probably do make and report their guesses, probably in some inconsistent manner across the board. This should probably be pluggable (e.g. research attached to #1027 stressed how different battery chemistries have different non-linear relations of voltage vs. "charge" and remaining runtime under different loads => discharge tempos). See also https://en.wikipedia.org/wiki/Comparison_of_commercial_battery_types

Metadata

Metadata

Assignees

No one assigned

    Labels

    RielloRiello UPS devices (serial, usb), usually with a variant of Qx protocolShutdowns and overrides and battery level triggersIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involveddocumentationenhancementimpacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions