Open airforceixi opened 2 years ago
Hello, before we get to in-depth testing, can you please check if a local build of the current NUT master branch works for you?
Sadly, the last release was a few years ago and next one is still brewing, so there were a lot of fixes (including at least 2 merged PRs tagged as liebert) that are not yet packaged by distros.
Message ID: @.***>
@jimklimov I switched from Fedora to Ubuntu and followed the instructions in the Wiki on how to build & install the drivers from master. Appears to be the same. See below:
upsc ups@localhost
Init SSL without certificate database
device.mfr: Vertiv Co.
device.model: Liebert PSI5
device.serial: ###
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0002
driver.parameter.synchronous: no
driver.parameter.vendorid: 10AF
driver.version: 2.7.4-3723-g92ecace7
driver.version.data: Belkin/Liebert HID 0.17
driver.version.internal: 0.43
ups.mfr: Vertiv Co.
ups.model: Liebert PSI5
ups.productid: 0002
ups.serial: ###
ups.status: OB
ups.vendorid: 10af
usbhid-ups -DDDDD -a ups
Network UPS Tools - Generic HID driver 0.43 (2.7.4-3723-g92ecace7)
USB communication driver 0.33
0.000000 [D5] send_to_all: SETINFO driver.parameter.port "auto"
0.000061 [D5] send_to_all: SETINFO driver.parameter.productid "0002"
0.000086 [D5] send_to_all: SETINFO driver.parameter.vendorid "10AF"
0.000124 [D1] debug level is '5'
0.001586 [D5] send_to_all: SETINFO device.type "ups"
0.001615 [D2] Initializing an USB-connected UPS with library (null) (NUT subdriver name='USB communication driver' ver='0.33')
0.001630 [D1] upsdrv_initups (non-SHUT)...
0.434003 [D3] usb_busses=0x563fa085af10
0.434071 [D2] Checking device (1D6B/0003) (004/001)
0.434302 [D2] - VendorID: 1d6b
0.434339 [D2] - ProductID: 0003
0.434406 [D2] - Manufacturer: unknown
0.434465 [D2] - Product: unknown
0.434512 [D2] - Serial Number: unknown
0.434565 [D2] - Bus: 004
0.434594 [D2] - Device: 001
0.434646 [D2] - Device release number: 0504
0.434689 [D2] Trying to match device
0.434706 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.434724 [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
0.434741 [D2] Device does not match - skipping
0.434861 [D2] Checking device (1D6B/0002) (003/001)
0.434988 [D2] - VendorID: 1d6b
0.435011 [D2] - ProductID: 0002
0.435031 [D2] - Manufacturer: unknown
0.435050 [D2] - Product: unknown
0.435062 [D2] - Serial Number: unknown
0.435074 [D2] - Bus: 003
0.435085 [D2] - Device: 001
0.435104 [D2] - Device release number: 0504
0.435123 [D2] Trying to match device
0.435143 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.435168 [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
0.435189 [D2] Device does not match - skipping
0.435236 [D2] Checking device (8087/0024) (002/002)
0.502519 [D2] - VendorID: 8087
0.502582 [D2] - ProductID: 0024
0.502649 [D2] - Manufacturer: unknown
0.502675 [D2] - Product: unknown
0.502697 [D2] - Serial Number: unknown
0.502720 [D2] - Bus: 002
0.502758 [D2] - Device: 002
0.502785 [D2] - Device release number: 0000
0.502815 [D2] Trying to match device
0.502840 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.502884 [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
0.502924 [D2] Device does not match - skipping
0.525338 [D2] Checking device (1D6B/0002) (002/001)
0.541398 [D2] - VendorID: 1d6b
0.541445 [D2] - ProductID: 0002
0.541457 [D2] - Manufacturer: unknown
0.541471 [D2] - Product: unknown
0.541505 [D2] - Serial Number: unknown
0.541561 [D2] - Bus: 002
0.541594 [D2] - Device: 001
0.541627 [D2] - Device release number: 0504
0.541671 [D2] Trying to match device
0.541718 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.541781 [D2] match_function_subdriver (non-SHUT mode): failed to match a subdriver to vendor and/or product ID
0.541825 [D2] Device does not match - skipping
0.562864 [D2] Checking device (10AF/0002) (001/008)
0.566011 [D2] - VendorID: 10af
0.566076 [D2] - ProductID: 0002
0.566123 [D2] - Manufacturer: Vertiv Co.
0.566154 [D2] - Product: Liebert PSI5
0.566176 [D2] - Serial Number: ###
0.566205 [D2] - Bus: 001
0.566224 [D2] - Device: 008
0.566248 [D2] - Device release number: 0002
0.566267 [D2] Trying to match device
0.566309 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.566366 [D3] match_function_regex: matching a device...
0.566495 [D2] Device matches
0.566600 [D3] nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
0.566989 [D3] HID descriptor, method 1: (9 bytes) => 09 21 10 01 00 01 22 1b 00
0.567015 [D3] HID descriptor length (method 1) 27
0.567038 [D4] i=0, extra[i]=09, extra[i+1]=21
0.567055 [D3] HID descriptor, method 2: (9 bytes) => 09 21 10 01 00 01 22 1b 00
0.567067 [D3] HID descriptor length (method 2) 27
0.567078 [D2] HID descriptor length 27
0.567605 [D2] Report Descriptor size = 27
0.567632 [D3] Report Descriptor: (27 bytes) => 06 00 ff 09 01 a1 01 09 02 15 00 26 ff 00
0.567655 [D3] 75 08 95 08 81 82 09 02 95 08 91 82 c0
0.567754 Using subdriver: Belkin/Liebert HID 0.17
0.567777 [D1] 2 HID objects found
0.567797 [D4] Entering libusb_get_report
0.568044 libusb_get_report: error sending control message: Operation not permitted
0.568073 [D1] Can't retrieve Report 00: Operation not permitted
0.568093 [D5] hid_lookup_path: ff000001 -> not found in lookup table
0.568106 [D5] hid_lookup_path: ff000002 -> not found in lookup table
0.568126 [D1] Path: ff000001.ff000002, Type: Input, ReportID: 0x00, Offset: 0, Size: 8
0.568146 [D4] Entering libusb_get_report
0.568483 libusb_get_report: error sending control message: Operation not permitted
0.568507 [D1] Can't retrieve Report 00: Operation not permitted
0.568527 [D5] hid_lookup_path: ff000001 -> not found in lookup table
0.568548 [D5] hid_lookup_path: ff000002 -> not found in lookup table
0.568570 [D1] Path: ff000001.ff000002, Type: Output, ReportID: 0x00, Offset: 0, Size: 8
0.568601 [D5] send_to_all: SETINFO ups.mfr "Vertiv Co."
0.568623 [D5] send_to_all: SETINFO ups.model "Liebert PSI5"
0.568648 [D5] send_to_all: SETINFO ups.serial "###"
0.568671 [D5] send_to_all: SETINFO ups.vendorid "10af"
0.568694 [D5] send_to_all: SETINFO ups.productid "0002"
0.568714 [D2] Report descriptor retrieved (Reportlen = 27)
0.568734 [D2] Found HID device
0.568755 [D1] Detected a UPS: Vertiv Co./Liebert PSI5
0.568783 [D5] hid_lookup_usage: UPS -> 00840004
0.568805 [D5] hid_lookup_usage: BELKINBatterySystem -> 00860010
0.568831 [D5] hid_lookup_usage: BELKINCharge -> 00860039
0.568849 [D4] string_to_path: depth = 3
0.568874 [D5] hid_lookup_usage: UPS -> 00840004
0.568898 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.568927 [D5] hid_lookup_usage: RemainingCapacityLimit -> 00850029
0.568946 [D4] string_to_path: depth = 3
0.568970 [D5] hid_lookup_usage: UPS -> 00840004
0.568993 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.569023 [D5] hid_lookup_usage: WarningCapacityLimit -> 0085008c
0.569042 [D4] string_to_path: depth = 3
0.569065 [D5] hid_lookup_usage: UPS -> 00840004
0.569089 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.569117 [D5] hid_lookup_usage: RunTimeToEmpty -> 00850068
0.569160 [D4] string_to_path: depth = 3
0.569185 [D5] hid_lookup_usage: UPS -> 00840004
0.569207 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.569237 [D5] hid_lookup_usage: iDeviceChemistry -> 00850089
0.569255 [D4] string_to_path: depth = 3
0.569278 [D5] hid_lookup_usage: UPS -> 00840004
0.569299 [D5] hid_lookup_usage: BELKINBatterySystem -> 00860010
0.569323 [D5] hid_lookup_usage: BELKINVoltage -> 00860030
0.569341 [D4] string_to_path: depth = 3
0.569364 [D5] hid_lookup_usage: UPS -> 00840004
0.569383 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.569404 [D5] hid_lookup_usage: BELKINConfigBatteryVoltage -> 00860044
0.569423 [D4] string_to_path: depth = 3
0.569447 [D5] hid_lookup_usage: UPS -> 00840004
0.569467 [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
0.569490 [D5] hid_lookup_usage: BELKINInput -> 0086001a
0.569511 [D5] hid_lookup_usage: BELKINFrequency -> 00860032
0.569530 [D4] string_to_path: depth = 4
0.569553 [D5] hid_lookup_usage: UPS -> 00840004
0.569573 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.569594 [D5] hid_lookup_usage: BELKINConfigFrequency -> 00860042
0.569613 [D4] string_to_path: depth = 3
0.569635 [D5] hid_lookup_usage: UPS -> 00840004
0.569656 [D5] hid_lookup_usage: BELKINDevice -> 00860029
0.569678 [D5] hid_lookup_usage: BELKINVoltageSensitivity -> 00860074
0.569697 [D4] string_to_path: depth = 3
0.569720 [D5] hid_lookup_usage: UPS -> 00840004
0.569740 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.569760 [D5] hid_lookup_usage: BELKINHighVoltageTransfer -> 00860054
0.569779 [D4] string_to_path: depth = 3
0.569803 [D5] hid_lookup_usage: UPS -> 00840004
0.569821 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.569844 [D5] hid_lookup_usage: BELKINHighVoltageTransferMax -> 0086005d
0.569863 [D4] string_to_path: depth = 3
0.569885 [D5] hid_lookup_usage: UPS -> 00840004
0.569905 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.569927 [D5] hid_lookup_usage: BELKINHighVoltageTransferMin -> 0086005e
0.569945 [D4] string_to_path: depth = 3
0.569969 [D5] hid_lookup_usage: UPS -> 00840004
0.569988 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.570008 [D5] hid_lookup_usage: BELKINLowVoltageTransfer -> 00860053
0.570028 [D4] string_to_path: depth = 3
0.570051 [D5] hid_lookup_usage: UPS -> 00840004
0.570070 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.570091 [D5] hid_lookup_usage: BELKINLowVoltageTransferMax -> 0086005b
0.570111 [D4] string_to_path: depth = 3
0.570135 [D5] hid_lookup_usage: UPS -> 00840004
0.570153 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.570175 [D5] hid_lookup_usage: BELKINLowVoltageTransferMin -> 0086005c
0.570194 [D4] string_to_path: depth = 3
0.570218 [D5] hid_lookup_usage: UPS -> 00840004
0.570241 [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
0.570264 [D5] hid_lookup_usage: BELKINInput -> 0086001a
0.570285 [D5] hid_lookup_usage: BELKINVoltage -> 00860030
0.570304 [D4] string_to_path: depth = 4
0.570327 [D5] hid_lookup_usage: UPS -> 00840004
0.570346 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.570367 [D5] hid_lookup_usage: BELKINConfigVoltage -> 00860040
0.570386 [D4] string_to_path: depth = 3
0.570410 [D5] hid_lookup_usage: UPS -> 00840004
0.570431 [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
0.570455 [D5] hid_lookup_usage: BELKINOutput -> 0086001c
0.570477 [D5] hid_lookup_usage: BELKINFrequency -> 00860032
0.570496 [D4] string_to_path: depth = 4
0.570519 [D5] hid_lookup_usage: UPS -> 00840004
0.570539 [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
0.570561 [D5] hid_lookup_usage: BELKINOutput -> 0086001c
0.570582 [D5] hid_lookup_usage: BELKINVoltage -> 00860030
0.570602 [D4] string_to_path: depth = 4
0.570625 [D5] hid_lookup_usage: UPS -> 00840004
0.570644 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.570667 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.570685 [D4] string_to_path: depth = 3
0.570708 [D5] hid_lookup_usage: UPS -> 00840004
0.570728 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.570750 [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
0.570769 [D4] string_to_path: depth = 3
0.570792 [D5] hid_lookup_usage: UPS -> 00840004
0.570811 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.570834 [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
0.570852 [D4] string_to_path: depth = 3
0.570875 [D5] hid_lookup_usage: UPS -> 00840004
0.570896 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.570918 [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
0.570937 [D4] string_to_path: depth = 3
0.570960 [D5] hid_lookup_usage: UPS -> 00840004
0.570980 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.571001 [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
0.571020 [D4] string_to_path: depth = 3
0.571043 [D5] hid_lookup_usage: UPS -> 00840004
0.571063 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.571084 [D5] hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
0.571103 [D4] string_to_path: depth = 3
0.571126 [D5] hid_lookup_usage: UPS -> 00840004
0.571146 [D5] hid_lookup_usage: BELKINDevice -> 00860029
0.571169 [D5] hid_lookup_usage: BELKINUPSType -> 0086007c
0.571187 [D4] string_to_path: depth = 3
0.571210 [D5] hid_lookup_usage: UPS -> 00840004
0.571230 [D5] hid_lookup_usage: BELKINPowerState -> 0086002a
0.571253 [D5] hid_lookup_usage: BELKINOutput -> 0086001c
0.571274 [D5] hid_lookup_usage: BELKINPercentLoad -> 00860035
0.571293 [D4] string_to_path: depth = 4
0.571316 [D5] hid_lookup_usage: UPS -> 00840004
0.571335 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.571356 [D5] hid_lookup_usage: BELKINConfigOverloadTransfer -> 00860045
0.571375 [D4] string_to_path: depth = 3
0.571399 [D5] hid_lookup_usage: UPS -> 00840004
0.571421 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.571450 [D5] hid_lookup_usage: ManufacturerDate -> 00850085
0.571468 [D4] string_to_path: depth = 3
0.571491 [D5] hid_lookup_usage: UPS -> 00840004
0.571511 [D5] hid_lookup_usage: BELKINConfig -> 00860026
0.571532 [D5] hid_lookup_usage: BELKINConfigApparentPower -> 00860043
0.571552 [D4] string_to_path: depth = 3
0.571576 [D5] hid_lookup_usage: UPS -> 00840004
0.571599 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.571625 [D5] hid_lookup_usage: iSerialNumber -> 008400ff
0.571644 [D4] string_to_path: depth = 3
0.571667 [D5] hid_lookup_usage: UPS -> 00840004
0.571686 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.571708 [D5] hid_lookup_usage: BELKINTest -> 00860058
0.571727 [D4] string_to_path: depth = 3
0.571750 [D5] hid_lookup_usage: UPS -> 00840004
0.571770 [D5] hid_lookup_usage: BELKINDevice -> 00860029
0.571792 [D5] hid_lookup_usage: BELKINUPSType -> 0086007c
0.571811 [D4] string_to_path: depth = 3
0.571834 [D5] hid_lookup_usage: UPS -> 00840004
0.571857 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.571887 [D5] hid_lookup_usage: RemainingCapacity -> 00850066
0.571905 [D4] string_to_path: depth = 3
0.571927 [D5] hid_lookup_usage: UPS -> 00840004
0.571950 [D5] hid_lookup_usage: Input -> 0084001a
0.571973 [D5] hid_lookup_usage: Frequency -> 00840032
0.571991 [D4] string_to_path: depth = 3
0.572014 [D5] hid_lookup_usage: UPS -> 00840004
0.572036 [D5] hid_lookup_usage: Input -> 0084001a
0.572059 [D5] hid_lookup_usage: Voltage -> 00840030
0.572077 [D4] string_to_path: depth = 3
0.572099 [D5] hid_lookup_usage: UPS -> 00840004
0.572122 [D5] hid_lookup_usage: Output -> 0084001c
0.572145 [D5] hid_lookup_usage: Voltage -> 00840030
0.572163 [D4] string_to_path: depth = 3
0.572186 [D5] hid_lookup_usage: UPS -> 00840004
0.572209 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572233 [D5] hid_lookup_usage: Voltage -> 00840030
0.572251 [D4] string_to_path: depth = 3
0.572274 [D5] hid_lookup_usage: UPS -> 00840004
0.572296 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572321 [D5] hid_lookup_usage: ConfigVoltage -> 00840040
0.572338 [D4] string_to_path: depth = 3
0.572362 [D5] hid_lookup_usage: UPS -> 00840004
0.572384 [D5] hid_lookup_usage: Output -> 0084001c
0.572408 [D5] hid_lookup_usage: PercentLoad -> 00840035
0.572426 [D4] string_to_path: depth = 3
0.572450 [D5] hid_lookup_usage: UPS -> 00840004
0.572473 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572501 [D5] hid_lookup_usage: Discharging -> 00850045
0.572519 [D4] string_to_path: depth = 3
0.572542 [D5] hid_lookup_usage: UPS -> 00840004
0.572564 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572592 [D5] hid_lookup_usage: Charging -> 00850044
0.572610 [D4] string_to_path: depth = 3
0.572634 [D5] hid_lookup_usage: UPS -> 00840004
0.572656 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572681 [D5] hid_lookup_usage: ShutdownImminent -> 00840069
0.572699 [D4] string_to_path: depth = 3
0.572723 [D5] hid_lookup_usage: UPS -> 00840004
0.572745 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572775 [D5] hid_lookup_usage: ACPresent -> 008500d0
0.572793 [D4] string_to_path: depth = 3
0.572817 [D5] hid_lookup_usage: UPS -> 00840004
0.572839 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572862 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.572890 [D5] hid_lookup_usage: Discharging -> 00850045
0.572909 [D4] string_to_path: depth = 4
0.572932 [D5] hid_lookup_usage: UPS -> 00840004
0.572954 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.572976 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.573005 [D5] hid_lookup_usage: Charging -> 00850044
0.573024 [D4] string_to_path: depth = 4
0.573048 [D5] hid_lookup_usage: UPS -> 00840004
0.573069 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.573092 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.573117 [D5] hid_lookup_usage: ShutdownImminent -> 00840069
0.573154 [D4] string_to_path: depth = 4
0.573169 [D5] hid_lookup_usage: UPS -> 00840004
0.573188 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.573202 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.573227 [D5] hid_lookup_usage: ACPresent -> 008500d0
0.573248 [D4] string_to_path: depth = 4
0.573265 [D5] hid_lookup_usage: UPS -> 00840004
0.573286 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.573310 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.573339 [D5] hid_lookup_usage: NeedReplacement -> 0085004b
0.573359 [D4] string_to_path: depth = 4
0.573383 [D5] hid_lookup_usage: UPS -> 00840004
0.573406 [D5] hid_lookup_usage: PowerSummary -> 00840024
0.573430 [D5] hid_lookup_usage: PresentStatus -> 00840002
0.573461 [D5] hid_lookup_usage: BelowRemainingCapacityLimit -> 00850042
0.573481 [D4] string_to_path: depth = 4
0.573504 [D5] hid_lookup_usage: UPS -> 00840004
0.573525 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573549 [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
0.573568 [D4] string_to_path: depth = 3
0.573591 [D5] hid_lookup_usage: UPS -> 00840004
0.573613 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573636 [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
0.573655 [D4] string_to_path: depth = 3
0.573678 [D5] hid_lookup_usage: UPS -> 00840004
0.573700 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573724 [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
0.573742 [D4] string_to_path: depth = 3
0.573765 [D5] hid_lookup_usage: UPS -> 00840004
0.573787 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573811 [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
0.573829 [D4] string_to_path: depth = 3
0.573853 [D5] hid_lookup_usage: UPS -> 00840004
0.573875 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573899 [D5] hid_lookup_usage: BELKINPowerStatus -> 00860021
0.573917 [D4] string_to_path: depth = 3
0.573941 [D5] hid_lookup_usage: UPS -> 00840004
0.573962 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.573985 [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
0.574004 [D4] string_to_path: depth = 3
0.574028 [D5] hid_lookup_usage: UPS -> 00840004
0.574050 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.574073 [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
0.574093 [D4] string_to_path: depth = 3
0.574116 [D5] hid_lookup_usage: UPS -> 00840004
0.574137 [D5] hid_lookup_usage: BELKINStatus -> 00860028
0.574161 [D5] hid_lookup_usage: BELKINBatteryStatus -> 00860022
0.574181 [D4] string_to_path: depth = 3
0.574205 [D5] hid_lookup_usage: UPS -> 00840004
0.574226 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574249 [D5] hid_lookup_usage: BELKINTest -> 00860058
0.574268 [D4] string_to_path: depth = 3
0.574293 [D5] hid_lookup_usage: UPS -> 00840004
0.574314 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574337 [D5] hid_lookup_usage: BELKINTest -> 00860058
0.574356 [D4] string_to_path: depth = 3
0.574380 [D5] hid_lookup_usage: UPS -> 00840004
0.574401 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574423 [D5] hid_lookup_usage: BELKINTest -> 00860058
0.574442 [D4] string_to_path: depth = 3
0.574467 [D5] hid_lookup_usage: UPS -> 00840004
0.574487 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574510 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.574529 [D4] string_to_path: depth = 3
0.574554 [D5] hid_lookup_usage: UPS -> 00840004
0.574574 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574596 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.574615 [D4] string_to_path: depth = 3
0.574640 [D5] hid_lookup_usage: UPS -> 00840004
0.574660 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574682 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.574702 [D4] string_to_path: depth = 3
0.574725 [D5] hid_lookup_usage: UPS -> 00840004
0.574746 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574768 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.574787 [D4] string_to_path: depth = 3
0.574811 [D5] hid_lookup_usage: UPS -> 00840004
0.574831 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574854 [D5] hid_lookup_usage: BELKINAudibleAlarmControl -> 0086005a
0.574873 [D4] string_to_path: depth = 3
0.574897 [D5] hid_lookup_usage: UPS -> 00840004
0.574917 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.574939 [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
0.574959 [D4] string_to_path: depth = 3
0.574983 [D5] hid_lookup_usage: UPS -> 00840004
0.575003 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.575025 [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
0.575044 [D4] string_to_path: depth = 3
0.575067 [D5] hid_lookup_usage: UPS -> 00840004
0.575088 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.575111 [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
0.575130 [D4] string_to_path: depth = 3
0.575154 [D5] hid_lookup_usage: UPS -> 00840004
0.575175 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.575197 [D5] hid_lookup_usage: BELKINDelayBeforeStartup -> 00860056
0.575216 [D4] string_to_path: depth = 3
0.575239 [D5] hid_lookup_usage: UPS -> 00840004
0.575259 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.575282 [D5] hid_lookup_usage: BELKINDelayBeforeShutdown -> 00860057
0.575302 [D4] string_to_path: depth = 3
0.575326 [D5] hid_lookup_usage: UPS -> 00840004
0.575346 [D5] hid_lookup_usage: BELKINControls -> 00860027
0.575368 [D5] hid_lookup_usage: BELKINDelayBeforeReboot -> 00860055
0.575388 [D4] string_to_path: depth = 3
0.575415 [D2] find_nut_info: unknown info type: load.off.delay
0.575437 [D2] find_nut_info: unknown info type: load.on.delay
0.575462 [D2] find_nut_info: unknown info type: load.off.delay
0.575488 [D5] send_to_all: SETINFO driver.version "2.7.4-3723-g92ecace7"
0.575512 [D5] send_to_all: SETINFO driver.version.internal "0.43"
0.575535 [D5] send_to_all: SETINFO driver.name "usbhid-ups"
0.575554 [D1] upsdrv_initinfo...
0.575579 [D5] send_to_all: SETINFO driver.version.data "Belkin/Liebert HID 0.17"
0.575606 [D5] send_to_all: SETINFO driver.parameter.pollfreq "30"
0.575626 [D1] upsdrv_updateinfo...
0.828343 [D2] libusb_get_interrupt: Connection timed out
0.828390 [D1] Got 0 HID objects...
0.828403 [D1] Quick update...
0.828432 [D5] send_to_all: SETINFO ups.status "OB"
0.828472 [D5] send_to_all: DATAOK
0.828626 [D2] dstate_init: sock /var/run/nut/usbhid-ups-ups open on fd 5
0.828670 [D5] send_to_all: SETINFO driver.parameter.pollinterval "2"
0.828711 [D5] send_to_all: SETINFO driver.parameter.synchronous "no"
0.828771 [D5] send_to_all: SETINFO device.mfr "Vertiv Co."
0.828838 [D5] send_to_all: SETINFO device.model "Liebert PSI5"
0.828907 [D5] send_to_all: SETINFO device.serial "###"
0.828935 [D1] upsdrv_updateinfo...
1.081258 [D2] libusb_get_interrupt: Connection timed out
1.081307 [D1] Got 0 HID objects...
1.081322 [D1] Quick update...
2.830846 [D1] upsdrv_updateinfo...
3.084065 [D2] libusb_get_interrupt: Connection timed out
3.084114 [D1] Got 0 HID objects...
3.084129 [D1] Quick update...
4.832685 [D1] upsdrv_updateinfo...
5.085258 [D2] libusb_get_interrupt: Connection timed out
5.085305 [D1] Got 0 HID objects...
5.085319 [D1] Quick update...
6.834523 [D1] upsdrv_updateinfo...
7.087756 [D2] libusb_get_interrupt: Connection timed out
7.087805 [D1] Got 0 HID objects...
7.087819 [D1] Quick update...
8.836359 [D1] upsdrv_updateinfo...
9.089257 [D2] libusb_get_interrupt: Connection timed out
9.089306 [D1] Got 0 HID objects...
9.089320 [D1] Quick update...
10.838198 [D1] upsdrv_updateinfo...
11.091463 [D2] libusb_get_interrupt: Connection timed out
11.091510 [D1] Got 0 HID objects...
11.091525 [D1] Quick update...
12.840039 [D1] upsdrv_updateinfo...
13.093250 [D2] libusb_get_interrupt: Connection timed out
13.093298 [D1] Got 0 HID objects...
13.093313 [D1] Quick update...
14.841877 [D1] upsdrv_updateinfo...
15.095180 [D2] libusb_get_interrupt: Connection timed out
15.095230 [D1] Got 0 HID objects...
15.095246 [D1] Quick update...
Those "connection timed out" might be a HW problem, or might be a libusb(-0.1) issue. At least, IIRC there were a few reports where switching to libusb-1.0 branches helped. That is currently on trajectory to become part of NUT master branch, but if you're in a hurry - check the fightwarn-libusb-1.0+0.1-sysheaders branch as the currebt pinnacle.
@jimklimov I built the fightwarn-libusb-1.0+0.1-sysheaders branch using the same instructions but usbhid-ups appears to still use libusb-0.1:
Network UPS Tools - Generic HID driver 0.43 (2.7.4-4033-g1b39f976)
USB communication driver (libusb 0.1) 0.35
Do you have libusb-1.0-dev installed? Distros vary as to how they might call it though...
The new docs/config-prereq.txt lists the prerequisites on a number of platforms used by CI farm, you may want to check suggestions there.
@jimklimov I was able to install libusb-1.0-0-dev and build it again. I confirmed it's using libusb 1.0 now but the same issues persist.
Wondering if someone else (udev?) might have grabbed the USB device descriptor and not released it to the NUT driver...
Or if there is something about permissions?
Or a systems thing (controller/chipset/... preferring "bulk" I/O vs interrupts)?..
I had to modify the udev rules that came with nut to add the PID:VID of this UPS so that the commands would work to the degree they do now. Outside of that, I don't see anything else that could cause this but I'm not a developer so I'm not 100% what to look for. I have this issue with 3 of these UPSes, 2 of them connected to a Raspberry Pi and 1 connected to a laptop (for testing) and both have the same problem, so I don't think it's related to the host.
As mentioned earlier, I can provide access to my testing laptop for someone to inspect/test if there's availability.
I was able to install the Liebert Vertiv Power Assist software and that connects and reads the UPS values properly. Maybe that connectivity can be monitored for reverse engineering?
After a bit of reading up to refresh my memory, it seems that the pollonly
flag might make the difference between interrupt-driven and driver-initiated transfers.
Reverse-engineering (by way of snooping on USB wire traffic) should be possible, is occasionally mentioned in issues or PR discussions here, but I haven't done that myself so can't really walk you (or other devs) through that.
What I know is that it's possible, and should be documented somewhere :\
Running NUT 2.7.4 on Fedora 35 connecting to a Liebert PSI5-1500RM120. Does not provide any valid status information. Here are some outputs:
upsc ups@localhost
/etc/ups/ups.conf
usbhid-ups -DDDDD -a ups
I can provide remote access for dev/testing if any devs are willing/available.