Giter Site home page Giter Site logo

Comments (2)

jimklimov avatar jimklimov commented on July 22, 2024

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.

dennypage avatar dennypage commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.