Index | Thread | Search

From:
Walter Alejandro Iglesias <wai@roquesor.com>
Subject:
Re: upd(4): add more sensors (load, power..)
To:
Landry Breuil <landry@openbsd.org>
Cc:
tech@openbsd.org
Date:
Tue, 19 Nov 2024 10:19:10 +0100

Download raw body.

Thread
On Sat, Nov 16, 2024 at 12:30:47PM +0100, Landry Breuil wrote:
> so if you have an upd(4) somewhere and you have sensors, i'll be glad to
> know if:
> - you get more sensors and they make sense
> - you get values that make more sense than before
> - you had a value for RunTimeToEmpty that made sense and now doesn't
>   (same for AtRateTimeToEmpty/AtRateTimeToFull if you have them)
> - it now breaks/detaches/reattaches
> 

Eaton 3S 550

Before:

hw.sensors.upd0.indicator0=Off (Charging), OK
hw.sensors.upd0.indicator1=On (Discharging), OK
hw.sensors.upd0.indicator2=Off (NeedReplacement), OK
hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK
hw.sensors.upd0.indicator4=Off (ACPresent), OK
hw.sensors.upd0.indicator5=Off (Overload), OK
hw.sensors.upd0.percent0=99.00% (RemainingCapacity), OK
hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
hw.sensors.upd0.timedelta0=243299.000000 secs (RunTimeToEmpty), OK

After:

hw.sensors.upd0.volt0=828.00 VDC (VoltageDc), OK
hw.sensors.upd0.power0=1980.00 W (ConfigApparentPower), OK
hw.sensors.upd0.indicator0=Off (Charging), OK
hw.sensors.upd0.indicator1=On (Discharging), OK
hw.sensors.upd0.indicator2=Off (NeedReplacement), OK
hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK
hw.sensors.upd0.indicator4=Off (ACPresent), OK
hw.sensors.upd0.indicator5=Off (Overload), OK
hw.sensors.upd0.percent0=97.00% (RemainingCapacity), OK
hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
hw.sensors.upd0.percent2=26.00% (PercentLoad), OK
hw.sensors.upd0.timedelta0=815.043600 secs (RunTimeToEmpty), OK


With your patch RunTimeToEmpty now tells the true.

I guess PercentLoad is ok.

Regarding VoltageDc and ConfigApparentPower I don't know what they mean.