[Nut-upsdev] belkin-hid:

Peter Selinger selinger at mathstat.dal.ca
Tue Jul 31 23:59:57 UTC 2007


Blah. My formulas were precisely wrong w.r.t. what I was trying to say
about the battery test. Let me try again. 

Moreover, the OFF flag is not computed correctly by the belkin-hid
subdriver at the moment. Correct would be:

OL  = (reg22 & 0x0020) == 0 && (reg23 & 0x20) == 0
OB  = (reg22 & 0x0020) == 0 && (reg23 & 0x20) != 0
OFF = (reg22 & 0x0020) != 0 && (reg23 & 0x20) == 0

The remaining case, (reg22 & 0x0020) != 0 && (reg23 & 0x20) != 0, 
is presumably inconsistent and could be mapped to OB or OFF.

Peter Selinger wrote:
> Action                          reg 22  reg 23  beeper     reg 2e  reg 3c
> 
> initial status: UPS load off    8020    10                 00      01
> turn UPS load on                8000    10                 00      01
> pull plug                       8005    20      slow       01      00
> battery low                     8005    24      fast       ??      00
> battery empty and load auto-off a001    40                 00      00
> power returns                   8000    10                 00      01
> initiate battery test           8000    20      slow/fast  01      01
> battery test finished           8000    10                 00      01
> manually turn UPS load off      8020    10                 00      01
> 
> Here:
> register 22 is UPS.BELKINStatus.BELKINPowerStatus,
> register 23 is UPS.BELKINStatus.BELKINBatteryStatus,
> register 2e is UPS.PowerSummary.Discharging
> register 3c is UPS.PowerSummary.ACPresent



More information about the Nut-upsdev mailing list