[Nut-upsuser] There is no voltage information
Jim Klimov
jimklimov+nut at gmail.com
Wed Mar 20 20:10:23 GMT 2024
Thanks.
Can you please also check (e.g. with ldd `which usbhid-ups`) which
`libusb` variant (1.0 or 0.1) was the 2.7.4 version of the driver running
with?
I wonder if the two generations of that library got something
differently?..
The commit I mentioned -
https://github.com/networkupstools/nut/commit/207fed2282 - which added the
exponent checks, was from 2012 and should be in 2.7.4 as well :-\
Checked: it is -
https://github.com/networkupstools/nut/blob/v2.7.4/drivers/belkin-hid.c#L157-L194
Are the two tests running on otherwise the same HW/OS setup?
Jim
On Wed, Mar 20, 2024 at 9:01 PM Juan Carlos Fischer <
juancarlos.fischer at gmail.com> wrote:
> Hello!
> Thanks for answering.
> This is the result using version 2.7.4:
>
> Network UPS Tools - UPS driver controller 2.7.4
> Network UPS Tools - Generic HID driver 0.41 (2.7.4)
> USB communication driver 0.33
> Using subdriver: Belkin/Liebert HID 0.17
>
> battery.charge: 100
> battery.charge.low: 38
> battery.charge.warning: 38
> battery.type: PbAc
> battery.voltage: 13.9
> battery.voltage.nominal: 12.0
> device.mfr: Emerson Network Power
> device.model: LiebertPSA
> device.serial:
> device.type: ups
> driver.name: usbhid-ups
> driver.parameter.bus: 001
> driver.parameter.pollfreq: 30
> driver.parameter.pollinterval: 2
> driver.parameter.port: auto
> driver.parameter.productid: 0001
> driver.parameter.synchronous: no
> driver.parameter.vendorid: 10AF
> driver.version: 2.7.4
> driver.version.data: Belkin/Liebert HID 0.17
> driver.version.internal: 0.41
> input.frequency: 50.0
> input.voltage: 221.8
> output.voltage: 222.6
> ups.load: 8
> ups.mfr: Emerson Network Power
> ups.model: LiebertPSA
> ups.productid: 0001
> ups.serial:
> ups.status: OL CHRG
> ups.vendorid: 10af
>
> Regards,
>
> Juan Carlos
>
> On Wed, Mar 20, 2024 at 4:22 PM Jim Klimov <jimklimov+nut at gmail.com>
> wrote:
>
>> Hello,
>>
>> For clarity: what changed with the move from NUT v2.7.4 to 2.8.0 - the
>> warnings "became reported", or the highlighted values became zeroes (and
>> were valid non-zero numbers with older NUT - so a regression)?
>>
>> It seems the message is specific to the subdriver and comes from commit
>> 207fed2282 and a change to the method involved was just recently
>> experimentally proposed in
>> https://github.com/networkupstools/nut/issues/2271 discussion comments
>> (refinement to consider merging as a pull request pending).
>>
>> Thanks,
>> Jim
>>
>> On Wed, Mar 20, 2024 at 3:33 PM Juan Carlos Fischer via Nut-upsuser <
>> nut-upsuser at alioth-lists.debian.net> wrote:
>>
>>> Hello everyone
>>>
>>> I'm using: Raspberry Pi 4 Model B Rev 1.5 8 GB "Debian GNU/Linux 12
>>> (bookworm)"
>>>
>>> It all started when I updated from version 2.7.4 to version 2.8.0 and
>>> the consequences were the following:
>>>
>>> pi at raspberrypi:~ $ sudo upsdrvctl start
>>>
>>> Network UPS Tools - UPS driver controller 2.8.0
>>> Network UPS Tools - Generic HID driver 0.47 (2.8.0)
>>> USB communication driver (libusb 1.0) 0.43
>>> Using subdriver: Belkin/Liebert HID 0.18
>>> LineVoltage exponent looks wrong, but not correcting.
>>> LineVoltage exponent looks wrong, but not correcting.
>>> LineVoltage exponent looks wrong, but not correcting.
>>> ConfigVoltage exponent looks wrong, but not correcting.
>>>
>>> pi at raspberrypi:~ $ upsc Liebert
>>>
>>> Init SSL without certificate database
>>> battery.charge: 100
>>> battery.charge.low: 38
>>> battery.charge.warning: 38
>>> battery.type: PbAc
>>>
>>> *battery.voltage: 0.0 <------------battery.voltage.nominal: 0.0
>>> <----------*
>>> device.mfr: Emerson Network Power
>>> device.model: LiebertPSA
>>> device.serial:
>>> device.type: ups
>>> driver.name: usbhid-ups
>>> driver.parameter.bus: 001
>>> driver.parameter.pollfreq: 30
>>> driver.parameter.pollinterval: 15
>>> driver.parameter.port: auto
>>> driver.parameter.productid: 0001
>>> driver.parameter.synchronous: auto
>>> driver.parameter.vendorid: 10AF
>>> driver.version: 2.8.0
>>> driver.version.data: Belkin/Liebert HID 0.18
>>> driver.version.internal: 0.47
>>> driver.version.usb: libusb-1.0.26 (API: 0x1000109)
>>> input.frequency: 49.9
>>>
>>> *input.voltage: 0.0 <---------------output.voltage: 0.0
>>> <--------------*
>>> ups.load: 9
>>> ups.mfr: Emerson Network Power
>>> ups.model: LiebertPSA
>>> ups.productid: 0001
>>> ups.serial:
>>> ups.status: OL CHRG
>>> ups.vendorid: 10af
>>>
>>> Except for those marked, all values are correct.
>>>
>>> Any help would be appreciated.
>>>
>>> Regards,
>>>
>>> Juan Carlos
>>>
>>> _______________________________________________
>>> Nut-upsuser mailing list
>>> Nut-upsuser at alioth-lists.debian.net
>>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20240320/771fc66c/attachment.htm>
More information about the Nut-upsuser
mailing list