search for: remainingcapacitypercent

Displaying 3 results from an estimated 3 matches for "remainingcapacitypercent".

2023 Nov 15
1
What is the arduino sub-driver intended to be used for?
...is to provide a common abstraction while at the same time providing full access -- and these two goals are not entirely compatible. I would say that nut probably should have different variables for the different modes, and read the mode field, and then write the content of RemainingCapacity into RemainingCapacityPercent if mode is 2. Just writing without checking risks some other UPS having its mAh remaining value put in a field that data consumers think is %. I could be way off, but if so hopefully that's obvious!
2023 Nov 15
1
What is the arduino sub-driver intended to be used for?
...abstraction while at the same time providing full access -- and these > two goals are not entirely compatible. > > I would say that nut probably should have different variables for the > different modes, and read the mode field, and then write the content of > RemainingCapacity into RemainingCapacityPercent if mode is 2. > > Just writing without checking risks some other UPS having its mAh > remaining value put in a field that data consumers think is %. > > I could be way off, but if so hopefully that's obvious! > > -------------- next part -------------- An HTML attachment wa...
2023 Nov 15
2
What is the arduino sub-driver intended to be used for?
Making progress on this PR. I have question about storing and checking state in a subdriver HID Power Devices can a "UPS.PowerSummary.CapacityMode" value. According to the spec, the values are: 0: maH 1: mwH 2: percent (%) 3: Boolean support only (OK or failed) Grep'ing the source, nothing makes use of this now (some subdrivers have it mapped to