[Nut-upsuser] POWERCOM UPS USB : UPS Shutdown

Alexey Korobeinikov alexey at fseafood.com
Mon May 5 15:34:41 BST 2025


Hi, my UPS Model Powercom BNT400AP ( made 2017.12 ) on Linux Devuan 
Daedalus and NUT v2.8.3 (install from source tarball with "configure 
--with-usb --with-user=nut --with-group=nut --with-libusb=1.0 
--with-statepath=/run/nut --with-pidpath=/run/nut" options) didn't 
shutdown itself after OS is shuting down by signal of UPS battary is low.

ups.conf:
[UPS]
     driver = usbhid-ups
     vendorid = 0d9f
     productid = 0004
     port = auto
     pollinterval = 2
     pollfreq = 30
     offdelay = 2
     ondelay = 5
     allow_killpower
     ignorelb
     override.battery.charge.low = 70

upsc ups at localhost

battery.charge: 100
battery.charge.low: 70
battery.charge.warning: 30
battery.mfr.date: 2014/01/15
battery.runtime: 800
battery.type: PbAc
device.mfr: POWERCOM Co.,LTD
device.model: HID UPS Battery
device.serial: 004-0D9F-000
device.type: ups
driver.debug: 0
driver.flag.allow_killpower: 1
driver.flag.ignorelb: enabled
driver.name: usbhid-ups
driver.parameter.interrupt_pipe_no_events_tolerance: -1
driver.parameter.offdelay: 2
driver.parameter.ondelay: 5
driver.parameter.override.battery.charge.low: 70
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 0004
driver.parameter.synchronous: auto
driver.parameter.vendorid: 0d9f
driver.state: quiet
driver.version: 2.8.3
driver.version.data: PowerCOM HID 0.71
driver.version.internal: 0.62
driver.version.usb: libusb-1.0.26 (API: 0x01000109)
input.frequency: 50.0
input.voltage: 220.0
input.voltage.nominal: 220
output.frequency: 50.0
output.voltage: 220.0
output.voltage.nominal: 220
ups.beeper.status: enabled
ups.date: 2014/01/15
ups.delay.shutdown: 2
ups.delay.start: 5
ups.load: 0
ups.mfr: POWERCOM Co.,LTD
ups.model: HID UPS Battery
ups.productid: 0004
ups.serial: 004-0D9F-000
ups.status: OL
ups.test.result: Done and passed
ups.timer.shutdown: 0
ups.timer.start: 0
ups.vendorid: 0d9f

and also driver's command /usr/local/ups/bin/usbhid-ups -DDD -a UPS -k 
(with plug out power cord from UPS). Sorry for my english...

# /usr/local/ups/bin/usbhid-ups -DDD -a UPS -k
Network UPS Tools 2.8.3 release - Generic HID driver 0.62
USB communication driver (libusb 1.0) 0.50
   0.000001     [D1] upsdrv_makevartable...
   0.000073     [D1] Using USB implementation: libusb-1.0.26 (API: 
0x01000109)
   0.000226     [D3] main_arg: var='driver' val='usbhid-ups'
   0.000244     [D3] main_arg: var='vendorid' val='0d9f'
   0.000264     [D3] main_arg: var='productid' val='0004'
   0.000280     [D3] main_arg: var='port' val='auto'
   0.000301     [D3] main_arg: var='pollinterval' val='2'
   0.000312     [D3] main_arg: var='pollfreq' val='30'
   0.000325     [D3] main_arg: var='offdelay' val='2'
   0.000340     [D3] main_arg: var='ondelay' val='5'
   0.000353     [D3] main_arg: var='allow_killpower' val='<null>'
   0.000366     [D3] main_arg: var='ignorelb' val='<null>'
   0.000382     [D3] main_arg: var='override.battery.charge.low' val='70'
   0.000407     [D1] Network UPS Tools version 2.8.3 release built with 
gcc (Debian 12.2.0-14) 12.2.0 and configured with fla
gs: --with-usb --with-user=nut --with-group=nut --with-libusb=1.0 
--with-statepath=/run/nut --with-pidpath=/run/nut
   0.000421     [D1] debug level is '3'
   0.000731     [D1] Succeeded to become_user(nut): now UID=116 GID=121
   0.000761     Can't open /run/nut/usbhid-ups-UPS: No such file or 
directory
   0.000773     [D1] Socket dialog with the other driver instance: No 
such file or directory
   0.000783     [D1] Signalling UPS [UPS]: driver.exit (quietly, no fuss 
if no driver is running or responding)
   0.000799     Can't open /run/nut/usbhid-ups-UPS: No such file or 
directory
   0.000810     [D1] Request for other driver to exit returned code -1
   0.000822     [D1] Socket dialog with the other driver instance (may 
be absent) failed: No such file or directory
   0.000840     [D1] PID file /run/nut/usbhid-ups-UPS.pid not found; 
stat() returned -1: No such file or directory
   0.000860     [D1] upsdrv_initups (non-SHUT)...
   0.000872     [D2] Initializing an USB-connected UPS with library 
libusb-1.0.26 (API: 0x01000109) (NUT subdriver name='USB
communication driver (libusb 1.0)' ver='0.50')
   0.004760     [D2] Checking device 1 of 10 (1D6B/0001)
   0.004801     [D1] Failed to open device (1D6B/0001), skipping: Access 
denied (insufficient permissions)
   0.004810     [D2] Checking device 2 of 10 (1D6B/0002)
   0.004825     [D1] Failed to open device (1D6B/0002), skipping: Access 
denied (insufficient permissions)
   0.004833     [D2] Checking device 3 of 10 (09DA/2268)
   0.004847     [D1] Failed to open device (09DA/2268), skipping: Access 
denied (insufficient permissions)
   0.004862     [D2] Checking device 4 of 10 (0D9F/0004)
   0.019048     [D2] - VendorID: 0d9f
   0.019088     [D2] - ProductID: 0004
   0.019095     [D2] - Manufacturer: POWERCOM Co.,LTD
   0.019101     [D2] - Product: HID UPS Battery
   0.019107     [D2] - Serial Number: 004-0D9F-000
   0.019112     [D2] - Bus: 006
   0.019118     [D2] - Bus Port: 002
   0.019123     [D2] - Device: 002
   0.019129     [D2] - Device release number: 0002
   0.019134     [D2] Trying to match device
   0.019143     [D2] match_function_subdriver (non-SHUT mode): matching 
a device...
   0.019166     [D3] match_function_regex: matching a device...
   0.019243     [D2] Device matches
   0.019260     [D2] Reading configuration descriptor 1 of 1
   0.019292     [D3] libusb_kernel_driver_active() returned 0: Success
   0.019328     [D2] Claimed interface 0 successfully
   0.019343     [D3] nut_libusb_set_altinterface: skipped 
libusb_set_interface_alt_setting(udev, 0, 0)
   0.021069     [D2] Retrieved HID descriptor (expected 9, got 9)
   0.021107     [D3] HID descriptor, method 1: (9 bytes) => 09 21 00 01 
00 01 22 e4 03
   0.021115     [D3] HID descriptor length (method 1) 996
   0.021137     [D3] HID descriptor, method 2: (9 bytes) => 09 21 00 01 
00 01 22 e4 03
   0.021156     [D3] HID descriptor length (method 2) 996
   0.021166     [D2] HID descriptor length 996
   0.060079     [D2] Report Descriptor size = 996
   0.060126     [D3] Report Descriptor: (996 bytes) => 05 84 09 04 a1 01 
09 24 a1 02 85 01 09 fe
   0.060140     [D3]  79 01 75 08 95 01 15 00 26 ff 00 b1 22 85 02 09 ff 
79 02 b1 22 05 85 85 05
   0.060153     [D3]  09 89 79 04 b1 22 85 07 09 8b b1 22 85 08 09 2c 25 
03 b1 22 85 09 09 83 25
   0.060165     [D3]  64 b1 22 09 67 b1 22 85 0e 09 66 81 22 09 66 b1 a2 
85 0b 09 8c b1 22 85 0c
   0.060177     [D3]  09 29 b1 a2 85 0d 09 85 75 10 27 ff ff 00 00 b1 a2 
85 37 09 68 81 22 09 68
   0.060192     [D3]  b1 a2 05 84 85 0f 09 57 75 10 16 00 00 27 ff ff 00 
00 b1 a2 85 10 09 56 75
   0.060211     [D3]  20 16 00 00 27 9f 86 01 00 b1 a2 85 11 09 40 75 10 
16 64 00 26 f0 00 b1 22
   0.060227     [D3]  85 12 09 30 75 10 16 00 00 26 40 01 b1 a2 85 2c 09 
36 75 08 25 5a b1 a2 85
   0.060241     [D3]  13 09 5a 75 08 15 00 25 03 b1 a2 09 02 a1 02 05 85 
85 0a 09 44 75 01 15 00
   0.060256     [D3]  25 01 81 a2 09 44 b1 a2 09 45 81 a2 09 45 b1 a2 09 
d0 81 a2 09 d0 b1 a2 09
   0.060272     [D3]  d1 81 a2 09 d1 b1 a2 09 42 81 a2 09 42 b1 a2 09 43 
81 a2 09 43 b1 a2 09 4b
   0.060289     [D3]  81 a2 09 4b b1 a2 09 db 81 a2 09 db b1 a2 05 84 09 
68 81 a2 09 68 b1 a2 09
   0.060305     [D3]  69 81 a2 09 69 b1 a2 09 73 81 a2 09 73 b1 a2 09 65 
81 a2 09 65 b1 a2 95 03
   0.060321     [D3]  81 01 b1 01 95 01 06 86 ff 09 80 81 a2 09 80 b1 a2 
c0 c0 05 84 09 12 a1 00
   0.060340     [D3]  85 15 09 58 75 08 25 66 b1 a2 85 16 09 70 75 08 25 
03 b1 a2 05 85 85 17 09
   0.060364     [D3]  85 75 10 27 ff ff 00 00 b1 a2 85 18 09 66 75 08 15 
00 25 64 b1 a2 05 84 85
   0.060381     [D3]  19 09 40 75 10 16 00 0c 26 00 30 b1 22 85 1a 09 30 
75 10 16 00 09 26 00 24
   0.060400     [D3]  b1 a2 85 1b 09 56 75 20 16 00 00 27 9f 86 01 00 b1 
a2 85 2d 09 36 75 08 25
   0.060417     [D3]  5a b1 a2 c0 05 84 09 1a a1 00 85 1c 09 40 75 10 16 
64 00 26 f0 00 b1 22 85
   0.060433     [D3]  1d 09 30 75 10 16 00 00 26 40 01 b1 a2 85 2e 09 30 
75 10 16 00 00 26 40 01
   0.060450     [D3]  b1 a2 85 1e 09 32 75 08 15 00 25 46 b1 a2 c0 05 84 
09 1c a1 00 85 2f 09 41
   0.060473     [D3]  75 08 15 01 25 0c b1 22 85 1f 09 35 75 08 15 00 25 
64 b1 a2 85 20 09 40 75
   0.060488     [D3]  10 16 64 00 26 f0 00 b1 22 85 21 09 30 75 10 16 00 
00 26 40 01 b1 a2 85 30
   0.060505     [D3]  09 42 75 08 15 32 25 3c b1 22 85 22 09 32 75 08 15 
00 25 46 b1 a2 85 23 09
   0.060524     [D3]  57 75 08 15 00 25 12 b1 a2 85 24 09 56 75 20 16 00 
00 27 9f 86 01 00 b1 a2
   0.060539     [D3]  c0 05 84 85 06 09 01 79 05 b1 a2 85 25 09 5a 75 08 
15 00 25 03 b1 a2 09 02
   0.060556     [D3]  a1 02 05 85 85 26 09 44 75 01 15 00 25 01 b1 a2 09 
45 b1 a2 09 d0 b1 a2 09
   0.060573     [D3]  d1 b1 a2 09 42 b1 a2 09 43 b1 a2 09 4b b1 a2 09 db 
b1 a2 05 84 09 68 b1 a2
   0.060589     [D3]  09 69 b1 a2 09 73 b1 a2 09 65 b1 a2 09 6e b1 a2 09 
6f b1 a2 09 71 b1 a2 06
   0.060605     [D3]  86 ff 09 80 b1 a2 c0 85 27 05 84 09 69 75 08 15 00 
25 01 b1 a2 09 1e a1 00
   0.060622     [D3]  85 a0 09 01 75 08 95 07 15 00 26 ff 00 b1 03 85 a1 
09 01 75 08 95 07 15 00
   0.060638     [D3]  26 ff 00 b1 03 85 a2 09 01 75 08 95 07 15 00 26 ff 
00 b1 03 85 a3 09 01 75
   0.060656     [D3]  08 95 07 15 00 26 ff 00 b1 03 85 a4 09 01 75 08 95 
07 15 00 26 ff 00 b1 03
   0.060673     [D3]  85 a5 09 01 75 08 95 07 15 00 26 ff 00 b1 03 85 a6 
09 01 75 08 95 07 15 00
   0.060699     [D3]  26 ff 00 b1 03 85 a7 09 01 75 08 95 07 15 00 26 ff 
00 b1 03 85 a8 09 01 75
   0.060713     [D3]  08 95 07 15 00 26 ff 00 b1 03 85 a9 09 01 75 08 95 
07 15 00 26 ff 00 b1 03
   0.060740     [D3]  85 aa 09 01 75 08 95 07 15 00 26 ff 00 b1 03 85 ab 
09 01 75 08 95 07 15 00
   0.060755     [D3]  26 ff 00 b1 03 85 ac 09 01 75 08 95 07 15 00 26 ff 
00 b1 03 85 ad 09 01 75
   0.060770     [D3]  08 95 07 15 00 26 ff 00 b1 03 85 ae 09 01 75 08 95 
07 15 00 26 ff 00 b1 03
   0.060787     [D3]  85 31 09 01 75 08 95 01 15 00 26 ff 00 b1 03 85 32 
09 01 75 08 95 01 15 00
   0.060805     [D3]  26 ff 00 b1 03 c0 c0
   0.061043     Using subdriver: PowerCOM HID 0.71
   0.061061     [D1] 102 HID objects found
   0.062033     [D3] Report[get]: (2 bytes) => 01 01
   0.062074     [D1] Path: UPS.PowerSummary.iProduct, Type: Feature, 
ReportID: 0x01, Offset: 0, Size: 8, Value: 1
   0.064084     [D3] Report[get]: (2 bytes) => 02 02
   0.064125     [D1] Path: UPS.PowerSummary.iSerialNumber, Type: 
Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2
   0.066004     [D3] Report[get]: (2 bytes) => 05 04
   0.066045     [D1] Path: UPS.PowerSummary.iDeviceChemistry, Type: 
Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 4
   0.068084     [D3] Report[get]: (2 bytes) => 07 01
   0.068125     [D1] Path: UPS.PowerSummary.Rechargeable, Type: Feature, 
ReportID: 0x07, Offset: 0, Size: 8, Value: 1
   0.069990     [D3] Report[get]: (2 bytes) => 08 02
   0.070030     [D1] Path: UPS.PowerSummary.CapacityMode, Type: Feature, 
ReportID: 0x08, Offset: 0, Size: 8, Value: 2
   0.072047     [D3] Report[get]: (3 bytes) => 09 64 64
   0.072090     [D1] Path: UPS.PowerSummary.DesignCapacity, Type: 
Feature, ReportID: 0x09, Offset: 0, Size: 8, Value: 100
   0.072101     [D3] Report[buf]: (3 bytes) => 09 64 64
   0.072115     [D1] Path: UPS.PowerSummary.FullChargeCapacity, Type: 
Feature, ReportID: 0x09, Offset: 8, Size: 8, Value: 100
   0.074083     [D3] Report[get]: (2 bytes) => 0e 35
   0.074125     [D1] Path: UPS.PowerSummary.RemainingCapacity, Type: 
Input, ReportID: 0x0e, Offset: 0, Size: 8, Value: 53
   0.074135     [D3] Report[buf]: (2 bytes) => 0e 35
   0.074155     [D1] Path: UPS.PowerSummary.RemainingCapacity, Type: 
Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 53
   0.075994     [D3] Report[get]: (2 bytes) => 0b 1e
   0.076036     [D1] Path: UPS.PowerSummary.WarningCapacityLimit, Type: 
Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 3
0
   0.078056     [D3] Report[get]: (2 bytes) => 0c 0a
   0.078098     [D1] Path: UPS.PowerSummary.RemainingCapacityLimit, 
Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value:
10
   0.080000     [D3] Report[get]: (3 bytes) => 0d 2f 44
   0.080043     [D1] Path: UPS.PowerSummary.ManufacturerDate, Type: 
Feature, ReportID: 0x0d, Offset: 0, Size: 16, Value: 1745
5
   0.082004     [D3] Report[get]: (3 bytes) => 37 a0 01
   0.082048     [D1] Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, 
ReportID: 0x37, Offset: 0, Size: 16, Value: 416
   0.082062     [D3] Report[buf]: (3 bytes) => 37 a0 01
   0.082077     [D1] Path: UPS.PowerSummary.RunTimeToEmpty, Type: 
Feature, ReportID: 0x37, Offset: 0, Size: 16, Value: 416
   0.083999     [D3] Report[get]: (3 bytes) => 0f 00 00
   0.084040     [D1] Path: UPS.PowerSummary.DelayBeforeShutdown, Type: 
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
   0.086040     [D2] refresh_report_buffer: expected 5 bytes, but got 3 
instead
   0.086076     [D3] Report[err]: (3 bytes) => 10 00 00
   0.086091     [D1] Path: UPS.PowerSummary.DelayBeforeStartup, Type: 
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 0
   0.088084     [D2] refresh_report_buffer: expected 3 bytes, but got 2 
instead
   0.088121     [D3] Report[err]: (2 bytes) => 11 dc
   0.088139     [D1] Path: UPS.PowerSummary.ConfigVoltage, Type: 
Feature, ReportID: 0x11, Offset: 0, Size: 16, Value: 220
   0.090003     [D3] Report[get]: (3 bytes) => 12 dc 00
   0.090046     [D1] Path: UPS.PowerSummary.Voltage, Type: Feature, 
ReportID: 0x12, Offset: 0, Size: 16, Value: 220
   0.091999     nut_libusb_get_report: Success
   0.092042     [D1] Can't retrieve Report 2c: Success
   0.092055     [D1] Path: UPS.PowerSummary.Temperature, Type: Feature, 
ReportID: 0x2c, Offset: 0, Size: 8
   0.094001     [D3] Report[get]: (2 bytes) => 13 01
   0.094041     [D1] Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1
   0.096000     [D3] Report[get]: (3 bytes) => 0a 0a 10
   0.096041     [D1] Path: UPS.PowerSummary.PresentStatus.Charging, 
Type: Input, ReportID: 0x0a, Offset: 0, Size: 1, Value: 0
   0.096052     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096068     [D1] Path: UPS.PowerSummary.PresentStatus.Charging, 
Type: Feature, ReportID: 0x0a, Offset: 0, Size: 1, Value:
0
   0.096081     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096095     [D1] Path: UPS.PowerSummary.PresentStatus.Discharging, 
Type: Input, ReportID: 0x0a, Offset: 1, Size: 1, Value
: 1
   0.096107     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096119     [D1] Path: UPS.PowerSummary.PresentStatus.Discharging, 
Type: Feature, ReportID: 0x0a, Offset: 1, Size: 1, Val
ue: 1
   0.096152     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096167     [D1] Path: UPS.PowerSummary.PresentStatus.ACPresent, 
Type: Input, ReportID: 0x0a, Offset: 2, Size: 1, Value:
0
   0.096177     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096194     [D1] Path: UPS.PowerSummary.PresentStatus.ACPresent, 
Type: Feature, ReportID: 0x0a, Offset: 2, Size: 1, Value
: 0
   0.096204     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096218     [D1] Path: 
UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 
0x0a, Offset: 3, Size: 1, Va
lue: 1
   0.096230     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096244     [D1] Path: 
UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 
0x0a, Offset: 3, Size: 1,
Value: 1
   0.096256     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096271     [D1] Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, 
ReportID: 0x0a, Offset: 4
, Size: 1, Value: 0
   0.096282     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096304     [D1] Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x0a, Offset:
4, Size: 1, Value: 0
   0.096314     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096326     [D1] Path: 
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, 
ReportID: 0x0a, Offset: 5,
Size: 1, Value: 0
   0.096339     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096352     [D1] Path: 
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
ReportID: 0x0a, Offset: 5
, Size: 1, Value: 0
   0.096370     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096385     [D1] Path: 
UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 
0x0a, Offset: 6, Size: 1, V
alue: 0
   0.096395     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096410     [D1] Path: 
UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 
0x0a, Offset: 6, Size: 1,
Value: 0
   0.096426     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096439     [D1] Path: 
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, 
ReportID: 0x0a, Offset: 7, Size:
1, Value: 0
   0.096451     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096465     [D1] Path: 
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, 
ReportID: 0x0a, Offset: 7, Size
: 1, Value: 0
   0.096475     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096491     [D1] Path: 
UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 
0x0a, Offset: 8, Size: 1,
Value: 0
   0.096502     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.096514     [D1] Path: 
UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Feature, 
ReportID: 0x0a, Offset: 8, Size:
1, Value: 0
   0.096526     [D3] Report[buf]: (3 bytes) => 0a 0a 10

     ......

     0.162042     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xa8, Offset: 0, Size: 8, Value: 169
   0.164005     [D3] Report[get]: (8 bytes) => a9 44 27 70 2c 37 71 18
   0.164047     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xa9, Offset: 0, Size: 8, Value: 68
   0.166035     [D3] Report[get]: (8 bytes) => aa ed a8 51 5e f8 ef 3a
   0.166077     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xaa, Offset: 0, Size: 8, Value: 237
   0.168047     [D3] Report[get]: (8 bytes) => ab 0e d1 b8 29 82 b6 18
   0.168089     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xab, Offset: 0, Size: 8, Value: 14
   0.169996     [D3] Report[get]: (8 bytes) => ac d9 49 ee 67 2a 43 01
   0.170038     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xac, Offset: 0, Size: 8, Value: 217
   0.172083     [D3] Report[get]: (8 bytes) => ad 6e 88 5f c0 e7 98 43
   0.172126     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xad, Offset: 0, Size: 8, Value: 110
   0.174013     [D2] refresh_report_buffer: expected 8 bytes, but got 2 
instead
   0.174048     [D3] Report[err]: (2 bytes) => ae 00
   0.174063     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0xae, Offset: 0, Size: 8, Value: 0
   0.176006     [D3] Report[get]: (2 bytes) => 31 02
   0.176045     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0x31, Offset: 0, Size: 8, Value: 2
   0.178051     [D3] Report[get]: (2 bytes) => 32 02
   0.178090     [D1] Path: UPS.Flow.iName, Type: Feature, ReportID: 
0x32, Offset: 0, Size: 8, Value: 2
   0.178117     [D2] Report descriptor retrieved (Reportlen = 996)
   0.178127     [D2] Found HID device
   0.178139     [D3] Using default, detected or customized USB HID 
numbers: usb_config_index=0 usb_hid_rep_index=0 usb_hid_de
sc_index=0 usb_hid_ep_in=1 usb_hid_ep_out=1
   0.178158     [D1] Detected a UPS: POWERCOM Co.,LTD/HID UPS Battery
   0.178206     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178223     [D2] Path: UPS.PowerSummary.PresentStatus.ACPresent, 
Type: Feature, ReportID: 0x0a, Offset: 2, Size: 1, Value
: 0
   0.178253     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178269     [D2] Path: 
UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 
0x0a, Offset: 3, Size: 1,
Value: 1
   0.178297     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178315     [D2] Path: 
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x0a, Offset:
4, Size: 1, Value: 0
   0.178339     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178352     [D2] Path: UPS.PowerSummary.PresentStatus.Charging, 
Type: Feature, ReportID: 0x0a, Offset: 0, Size: 1, Value:
0
   0.178375     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178387     [D2] Path: 
UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, 
ReportID: 0x0a, Offset: 10, Size:
1, Value: 0
   0.178410     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178421     [D2] Path: UPS.PowerSummary.PresentStatus.Discharging, 
Type: Feature, ReportID: 0x0a, Offset: 1, Size: 1, Val
ue: 1
   0.178443     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178454     [D2] Path: 
UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 
0x0a, Offset: 6, Size: 1,
Value: 0
   0.178476     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178487     [D2] Path: UPS.PowerSummary.PresentStatus.Overload, 
Type: Feature, ReportID: 0x0a, Offset: 11, Size: 1, Value
: 0
   0.178510     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178524     [D2] Path: 
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
ReportID: 0x0a, Offset: 5
, Size: 1, Value: 0
   0.178547     [D3] Report[buf]: (3 bytes) => 0a 0a 10
   0.178557     [D2] Path: 
UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, 
ReportID: 0x0a, Offset: 9, Size: 1
, Value: 0
   0.178581     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178596     [D2] Path: UPS.PresentStatus.ACPresent, Type: Feature, 
ReportID: 0x26, Offset: 2, Size: 1, Value: 0
   0.178619     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178640     [D2] Path: UPS.PresentStatus.BatteryPresent, Type: 
Feature, ReportID: 0x26, Offset: 3, Size: 1, Value: 1
   0.178663     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178679     [D2] Path: 
UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 
0x26, Offset: 4, Size: 1,
Value: 0
   0.178707     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178719     [D2] Path: UPS.PresentStatus.Boost, Type: Feature, 
ReportID: 0x26, Offset: 12, Size: 1, Value: 1
   0.178739     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178749     [D2] Path: UPS.PresentStatus.Buck, Type: Feature, 
ReportID: 0x26, Offset: 13, Size: 1, Value: 0
   0.178770     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178781     [D2] Path: UPS.PresentStatus.Charging, Type: Feature, 
ReportID: 0x26, Offset: 0, Size: 1, Value: 0
   0.178801     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178811     [D2] Path: UPS.PresentStatus.CommunicationLost, Type: 
Feature, ReportID: 0x26, Offset: 10, Size: 1, Value: 0
   0.178836     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178848     [D2] Path: UPS.PresentStatus.Discharging, Type: Feature, 
ReportID: 0x26, Offset: 1, Size: 1, Value: 1
   0.178869     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178880     [D2] Path: UPS.PresentStatus.NeedReplacement, Type: 
Feature, ReportID: 0x26, Offset: 6, Size: 1, Value: 0
   0.178905     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178916     [D2] Path: UPS.PresentStatus.Overload, Type: Feature, 
ReportID: 0x26, Offset: 11, Size: 1, Value: 0
   0.178936     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178947     [D2] Path: UPS.PresentStatus.RemainingTimeLimitExpired, 
Type: Feature, ReportID: 0x26, Offset: 5, Size: 1, Va
lue: 0
   0.178965     [D3] Report[buf]: (3 bytes) => 26 0a 10
   0.178978     [D2] Path: UPS.PresentStatus.ShutdownImminent, Type: 
Feature, ReportID: 0x26, Offset: 9, Size: 1, Value: 0
   0.178999     [D3] Report[buf]: (2 bytes) => 0e 35
   0.179013     [D2] Path: UPS.PowerSummary.RemainingCapacity, Type: 
Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 53
   0.179063     [D3] Report[buf]: (2 bytes) => 0b 1e
   0.179076     [D2] Path: UPS.PowerSummary.WarningCapacityLimit, Type: 
Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 3
0
   0.179103     [D3] Report[buf]: (3 bytes) => 37 a0 01
   0.179116     [D2] Path: UPS.PowerSummary.RunTimeToEmpty, Type: 
Feature, ReportID: 0x37, Offset: 0, Size: 16, Value: 416
   0.179146     [D3] Report[buf]: (3 bytes) => 17 2f 44
   0.179159     [D2] Path: UPS.Battery.ManufacturerDate, Type: Feature, 
ReportID: 0x17, Offset: 0, Size: 16, Value: 17455
   0.179187     [D3] Report[buf]: (2 bytes) => 05 04
   0.179199     [D2] Path: UPS.PowerSummary.iDeviceChemistry, Type: 
Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 4
   0.182088     [D3] Report[buf]: (2 bytes) => 13 01
   0.182127     [D2] Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1
   0.182172     [D3] Report[buf]: (2 bytes) => 1f 06
   0.182187     [D2] Path: UPS.Output.PercentLoad, Type: Feature, 
ReportID: 0x1f, Offset: 0, Size: 8, Value: 6
   0.182215     [D3] Report[buf]: (3 bytes) => 0d 2f 44
   0.182230     [D2] Path: UPS.PowerSummary.ManufacturerDate, Type: 
Feature, ReportID: 0x0d, Offset: 0, Size: 16, Value: 1745
5
   0.182282     [D3] Report[buf]: (2 bytes) => 15 01
   0.182297     [D2] Path: UPS.Battery.Test, Type: Feature, ReportID: 
0x15, Offset: 0, Size: 8, Value: 1
   0.182335     [D3] Report[buf]: (5 bytes) => 10 00 00 00 00
   0.182348     [D2] Path: UPS.PowerSummary.DelayBeforeStartup, Type: 
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 0
   0.182359     [D3] powercom_startup_fun: value = 0, buf = 0
   0.182394     [D3] Report[buf]: (3 bytes) => 0f 00 00
   0.182408     [D2] Path: UPS.PowerSummary.DelayBeforeShutdown, Type: 
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
   0.182419     [D3] powercom_shutdown_fun: value = 0, buf = 0
   0.182456     [D3] Report[buf]: (3 bytes) => 1d 00 00
   0.182469     [D2] Path: UPS.Input.Voltage, Type: Feature, ReportID: 
0x1d, Offset: 0, Size: 16, Value: 0
   0.182492     [D3] Report[buf]: (3 bytes) => 1c dc 00
   0.182508     [D2] Path: UPS.Input.ConfigVoltage, Type: Feature, 
ReportID: 0x1c, Offset: 0, Size: 16, Value: 220
   0.182536     [D3] Report[buf]: (2 bytes) => 1e 32
   0.182546     [D2] Path: UPS.Input.Frequency, Type: Feature, ReportID: 
0x1e, Offset: 0, Size: 8, Value: 50
   0.182579     [D3] Report[buf]: (3 bytes) => 21 dc 00
   0.182592     [D2] Path: UPS.Output.Voltage, Type: Feature, ReportID: 
0x21, Offset: 0, Size: 16, Value: 220
   0.182617     [D3] Report[buf]: (3 bytes) => 20 dc 00
   0.182631     [D2] Path: UPS.Output.ConfigVoltage, Type: Feature, 
ReportID: 0x20, Offset: 0, Size: 16, Value: 220
   0.182658     [D3] Report[buf]: (2 bytes) => 22 32
   0.182669     [D2] Path: UPS.Output.Frequency, Type: Feature, 
ReportID: 0x22, Offset: 0, Size: 8, Value: 50
   0.182693     [D3] Report[buf]: (2 bytes) => 13 01
   0.182705     [D2] Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1
   0.182715     [D3] Adding command 'beeper.toggle' using Path 
'UPS.PowerSummary.AudibleAlarmControl'
   0.182737     [D3] Report[buf]: (2 bytes) => 13 01
   0.182750     [D2] Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1
   0.182758     [D3] Adding command 'beeper.enable' using Path 
'UPS.PowerSummary.AudibleAlarmControl'
   0.182783     [D3] Report[buf]: (2 bytes) => 13 01
   0.182795     [D2] Path: UPS.PowerSummary.AudibleAlarmControl, Type: 
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 1
   0.182809     [D3] Adding command 'beeper.disable' using Path 
'UPS.PowerSummary.AudibleAlarmControl'
   0.182835     [D3] Report[buf]: (2 bytes) => 15 01
   0.182846     [D2] Path: UPS.Battery.Test, Type: Feature, ReportID: 
0x15, Offset: 0, Size: 8, Value: 1
   0.182860     [D3] Adding command 'test.battery.start.quick' using 
Path 'UPS.Battery.Test'
   0.182882     [D3] Report[buf]: (5 bytes) => 10 00 00 00 00
   0.182895     [D2] Path: UPS.PowerSummary.DelayBeforeStartup, Type: 
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 0
   0.182904     [D3] Adding command 'load.on.delay' using Path 
'UPS.PowerSummary.DelayBeforeStartup'
   0.182927     [D3] Report[buf]: (3 bytes) => 0f 00 00
   0.182939     [D2] Path: UPS.PowerSummary.DelayBeforeShutdown, Type: 
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
   0.182947     [D3] Adding command 'shutdown.return' using Path 
'UPS.PowerSummary.DelayBeforeShutdown'
   0.182969     [D3] Report[buf]: (3 bytes) => 0f 00 00
   0.182981     [D2] Path: UPS.PowerSummary.DelayBeforeShutdown, Type: 
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
   0.182990     [D3] Adding command 'shutdown.stayoff' using Path 
'UPS.PowerSummary.DelayBeforeShutdown'
   0.184034     nut_libusb_get_report: Success
   0.184078     [D1] Can't retrieve Report 2d: Success
   0.184172     [D2] find_nut_info: unknown info type: load.off.delay
   0.184194     [D2] find_nut_info: unknown info type: load.off.delay
   0.184217     [D1] upsdrv_initinfo...
   0.184242     Initiating UPS [UPS] shutdown
   0.184257     [D1] loop_shutdown_commands: call 
do_loop_shutdown_commands() with driver-default sdcommands
   0.184267     [D1] Starting 
do_loop_shutdown_commands(shutdown.default), call depth 1...
   0.184280     [D1] upsdrv_shutdown...
   0.184289     [D1] Starting 
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff), 
cal
l depth 2...
   0.184299     [D1] instcmd(shutdown.return, [NULL])
   0.184313     [D3] instcmd: using Path 
'UPS.PowerSummary.DelayBeforeShutdown'
   0.184321     [D2] instcmd: shutdown.return requires an explicit 
parameter

   0.184331     [D1] instcmd(shutdown.reboot, [NULL])
   0.184348     [D2] find_nut_info: unknown info type: shutdown.reboot
   0.184358     [D3] instcmd: cmdname 'shutdown.reboot' not found; 
checking for alternatives
   0.184371     [D2] instcmd: info element unavailable shutdown.reboot

   0.184387     [D1] instcmd(load.off.delay, [NULL])
   0.184398     [D2] find_nut_info: unknown info type: load.off.delay
   0.184407     [D3] instcmd: cmdname 'load.off.delay' not found; 
checking for alternatives
   0.184418     [D2] instcmd: info element unavailable load.off.delay

   0.184428     [D1] instcmd(shutdown.stayoff, [NULL])
   0.184438     [D3] instcmd: using Path 
'UPS.PowerSummary.DelayBeforeShutdown'
   0.184449     [D2] instcmd: shutdown.stayoff requires an explicit 
parameter

   0.184462     [D1] Ending 
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff), 
call
depth 2: return-code 2
   0.184471     Shutdown failed!
   0.184483     [D1] set_exit_flag: raising exit flag due to signal -1
   0.184493     [D1] do_loop_shutdown_commands(): command 
'shutdown.default' was handled successfully
   0.184502     [D1] Ending do_loop_shutdown_commands(shutdown.default), 
call depth 1: return-code 0
   0.184512     UPS [UPS]: shutdown request was successful with 
'shutdown.default'
   0.184523     [D1] set_exit_flag: raising exit flag due to 
programmatic abort: EXIT_FAILURE
   0.184540     [D1] upsdrv_cleanup...
   0.184899     [D1] upsnotify: failed to notify about state 
NOTIFY_STATE_STOPPING: no notification tech defined, will not sp
am more about it
   0.184936     [D1] On systems without service units, consider `export 
NUT_QUIET_INIT_UPSNOTIFY=true`

I try to use "powercom_sdcmd_byte_order_fallback" option, with same effect.

Wat's wrong with my UPS/NUT ?
Thank You!

-- 
Oleksii Korobeinikov






More information about the Nut-upsuser mailing list