Comments (2)
Good catch, thanks!
Regarding the value, at least conceptually, IIRC the idea was that some UPSes report the voltage of the battery pack (e.g. 12V nominal of a PbAc 6-cell assembly), some report the overall voltage of their 2 or 4 battery packs (e.g. 24nominal/28-ish max or 48/56-ish V) in larger UPSes that house several battery bricks inside, and some apparently have some way of reporting a cell (small single-digit volts; say a typical PbAc cell has 2V and 6 of those are in one pack).
IIRC the flag was about this: if the device reports, say, 2V as its native voltage, we could multiply that by the amount of cells per pack to get 12V in one pack, and e.g. by 4 "battery.packs" to know the resulting voltage as applicable to that device's overall power cell combination topology.
I am not sure OTOH if that idea was completed (e.g. with a setting to tell the amount of cells in a pack), though, now that I'm trying to remember those PRs (not at a computer now).
from nut.
Yes, some UPSs report the voltage of a single pack. However, that was previously handled with the number of packs setting in the same way that it is handled in the now obsolete blazer driver.
The conditional in qx_multiply_battvolt() tells the tale:
if (!battery_voltage_reports_one_pack || batt.packs < 2)
/* (We assume by default that) this device already reports
* the sum-total voltage for the battery assembly - so just
* pass it on unmodified.
The effective else clause returns the voltage multiplied by the number of battery packs.
The battery_voltage_reports_one_pack
flag is not used anywhere else, so I honestly don't see a reason for it to exist.
from nut.
Related Issues (20)
- The dictionary in NUT sources also stores keywords for spell-checking nut-website
- Armac UPS uses trinary logic. Sometimes. HOT 1
- NDE+systemd: `nut-driver@devicename` unit instances do not auto-reload with NUT v2.8.2 when `ups.conf` is edited HOT 8
- The `nut-driver-enumerator.sh` script (NDE) would benefit from a CI mock service backend
- ups.status contains TEST even after ups-selftest is finished (SNMP)
- Version 2.8.2 breaks listening on anything more than localhost HOT 15
- Refactor: Unify config options for `apc_modbus` and other Modbus drivers (at least)
- Refactor: min/max voltage settings to guesstimate battery charge remaining runtime - promote `runtimecal` as one common solution/pattern
- Refactor: boolean settings not treated as booleans
- Revise driver man pages to include all known options (and their data types)
- usbhid-ups: Complete the `onlinedischarge_log_throttle_hovercharge` option support
- RFE: Enhance `upsd` to `LISTEN host:port` with one colon-separated parameter token HOT 1
- Works with Forza FX-2200LCD using nutdrv_qx driver HOT 1
- [HCL] GE Critical Power - VH Series UL - supported by snmp-ups (mib = ietf) HOT 3
- Libraries not found (Ubuntu 24.04 Server arm) HOT 8
- NUT for Windows: add help/usage to the CLI wrapper `nut.exe`
- nutwriter.hpp / -Wmaybe-uninitialized warning HOT 2
- `pijuice` driver uses `status_set()` unidiomatically
- C++20 compiler complaints HOT 4
- Add S/N to ups.conf and nut breaks HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nut.