[Nut-upsdev] Bug#501087: nut: support for a tripplite avr750u
Arjen de Korte
nut+devel at de-korte.org
Sat Oct 4 16:19:08 UTC 2008
Citeren Charles Lepple <clepple at gmail.com>:
> Going out on a limb here, maybe it's something that we have to
> explicitly poll (versus waiting for it to be reported on the interrupt
> pipe), for the times when it is below 100%.
The usbhid-ups driver polls for practically all variables. The polling
frequency is determined by a flag that is passed in the HID2NUT lookup
table:
(default) - every 'pollfreq' seconds (default: 30)
HU_FLAG_QUICK_POLL - every 'pollinterval' seconds (default: 2)
HU_FLAG_SEMI_STATIC - when something has been written to the UPS
HU_FLAG_STATIC - only at startup
In the current 'tripplite-hid' subdriver, the 'battery.charge' has no
special flags assigned, so it will be polled every 'pollfreq' seconds.
Depending on the accuracy of the charge calculation and the load that
is applied, it is quite possible that there is basically nothing
reported between 100% and 0%.
Best regards, Arjen
--
Please keep list traffic on the list
More information about the Nut-upsdev
mailing list