[Nut-upsuser] Powercom INF-800 support
abi
abi at abinet.ru
Sat May 28 16:05:18 UTC 2016
Hello.
Not listed as supported, so here is some info,
[root at vhost ~]# /usr/sbin/usbhid-ups -DD -a powercom
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
0.000000 debug level is '2'
0.001318 upsdrv_initups...
0.074753 Checking device (0529/0001) (003/002)
0.074835 Failed to open device, skipping. (Permission denied)
0.074842 Checking device (067B/2303) (003/003)
0.074853 Failed to open device, skipping. (Permission denied)
0.074858 Checking device (1D6B/0002) (003/001)
0.074867 Failed to open device, skipping. (Permission denied)
0.074873 Checking device (8087/0024) (005/002)
0.074882 Failed to open device, skipping. (Permission denied)
0.074888 Checking device (1D6B/0002) (005/001)
0.074896 Failed to open device, skipping. (Permission denied)
0.074900 Checking device (8087/0024) (006/002)
0.074905 Failed to open device, skipping. (Permission denied)
0.074908 Checking device (1D6B/0002) (006/001)
0.074913 Failed to open device, skipping. (Permission denied)
0.074917 Checking device (0D9F/0004) (006/004)
0.081556 - VendorID: 0d9f
0.081572 - ProductID: 0004
0.081576 - Manufacturer: POWERCOM Co.,LTD
0.081581 - Product: HID UPS Battery
0.081584 - Serial Number: 004-0D9F-000
0.081588 - Bus: 006
0.081591 Trying to match device
0.081603 Device matches
0.082806 HID descriptor length 996
0.118450 Report Descriptor size = 996
0.118634 Using subdriver: PowerCOM HID 0.4
0.119185 Path: UPS.PowerSummary.iProduct, Type: Feature,
ReportID: 0x01, Offset: 0, Size: 8, Value: 1
0.119939 Path: UPS.PowerSummary.iSerialNumber, Type: Feature,
ReportID: 0x02, Offset: 0, Size: 8, Value: 2
0.120552 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x05, Offset: 0, Size: 8, Value: 4
0.121180 Path: UPS.PowerSummary.Rechargeable, Type: Feature,
ReportID: 0x07, Offset: 0, Size: 8, Value: 1
0.121934 Path: UPS.PowerSummary.CapacityMode, Type: Feature,
ReportID: 0x08, Offset: 0, Size: 8, Value: 2
0.122552 Path: UPS.PowerSummary.DesignCapacity, Type: Feature,
ReportID: 0x09, Offset: 0, Size: 8, Value: 100
0.122560 Path: UPS.PowerSummary.FullChargeCapacity, Type:
Feature, ReportID: 0x09, Offset: 8, Size: 8, Value: 100
0.123181 Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
ReportID: 0x0e, Offset: 0, Size: 8, Value: 100
0.123187 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
ReportID: 0x0e, Offset: 0, Size: 8, Value: 100
0.123930 Path: UPS.PowerSummary.WarningCapacityLimit, Type:
Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 30
0.124550 Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 10
0.125176 Path: UPS.PowerSummary.ManufacturerDate, Type: Feature,
ReportID: 0x0d, Offset: 0, Size: 16, Value: 17455
0.125933 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input,
ReportID: 0x37, Offset: 0, Size: 16, Value: 800
0.125942 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature,
ReportID: 0x37, Offset: 0, Size: 16, Value: 800
0.126551 refresh_report_buffer: expected 3 bytes, but got 2 instead
0.126560 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
0.127183 Path: UPS.PowerSummary.DelayBeforeStartup, Type:
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 12336
0.127930 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature,
ReportID: 0x11, Offset: 0, Size: 16, Value: 220
0.128554 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID:
0x12, Offset: 0, Size: 16, Value: 216
0.129180 Path: UPS.PowerSummary.Temperature, Type: Feature,
ReportID: 0x2c, Offset: 0, Size: 8, Value: 35
0.129931 Path: UPS.PowerSummary.AudibleAlarmControl, Type:
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
0.130570 Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Input, ReportID: 0x0a, Offset: 0, Size: 1, Value: 0
0.130580 Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Feature, ReportID: 0x0a, Offset: 0, Size: 1, Value: 0
0.130585 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Input, ReportID: 0x0a, Offset: 1, Size: 1, Value: 0
0.130590 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0a, Offset: 1, Size: 1, Value: 0
0.130595 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Input, ReportID: 0x0a, Offset: 2, Size: 1, Value: 1
0.130600 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Feature, ReportID: 0x0a, Offset: 2, Size: 1, Value: 1
0.130605 Path: UPS.PowerSummary.PresentStatus.BatteryPresent,
Type: Input, ReportID: 0x0a, Offset: 3, Size: 1, Value: 1
0.130610 Path: UPS.PowerSummary.PresentStatus.BatteryPresent,
Type: Feature, ReportID: 0x0a, Offset: 3, Size: 1, Value: 1
0.130615 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
ReportID: 0x0a, Offset: 4, Size: 1, Value: 0
0.130620 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, ReportID: 0x0a, Offset: 4, Size: 1, Value: 0
0.130625 Path:
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input,
ReportID: 0x0a, Offset: 5, Size: 1, Value: 0
0.130630 Path:
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature,
ReportID: 0x0a, Offset: 5, Size: 1, Value: 0
0.130634 Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Input, ReportID: 0x0a, Offset: 6, Size: 1, Value: 0
0.130638 Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Feature, ReportID: 0x0a, Offset: 6, Size: 1, Value: 0
0.130643 Path:
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input,
ReportID: 0x0a, Offset: 7, Size: 1, Value: 0
0.130647 Path:
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature,
ReportID: 0x0a, Offset: 7, Size: 1, Value: 0
0.130652 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested,
Type: Input, ReportID: 0x0a, Offset: 8, Size: 1, Value: 0
0.130657 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested,
Type: Feature, ReportID: 0x0a, Offset: 8, Size: 1, Value: 0
0.130663 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Input, ReportID: 0x0a, Offset: 9, Size: 1, Value: 0
0.130670 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Feature, ReportID: 0x0a, Offset: 9, Size: 1, Value: 0
0.130678 Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
Type: Input, ReportID: 0x0a, Offset: 10, Size: 1, Value: 0
0.130685 Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
Type: Feature, ReportID: 0x0a, Offset: 10, Size: 1, Value: 0
0.130690 Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Input, ReportID: 0x0a, Offset: 11, Size: 1, Value: 0
0.130694 Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Feature, ReportID: 0x0a, Offset: 11, Size: 1, Value: 0
0.130698 Path: UPS.PowerSummary.PresentStatus.POWERCOM3, Type:
Input, ReportID: 0x0a, Offset: 15, Size: 1, Value: 0
0.130702 Path: UPS.PowerSummary.PresentStatus.POWERCOM3, Type:
Feature, ReportID: 0x0a, Offset: 15, Size: 1, Value: 0
0.131310 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x15,
Offset: 0, Size: 8, Value: 1
0.131945 Path: UPS.Battery.Initialized, Type: Feature, ReportID:
0x16, Offset: 0, Size: 8, Value: 1
0.132561 Path: UPS.Battery.ManufacturerDate, Type: Feature,
ReportID: 0x17, Offset: 0, Size: 16, Value: 17455
0.133188 Path: UPS.Battery.RemainingCapacity, Type: Feature,
ReportID: 0x18, Offset: 0, Size: 8, Value: 100
0.133926 Path: UPS.Battery.ConfigVoltage, Type: Feature,
ReportID: 0x19, Offset: 0, Size: 16, Value: 3072
0.134426 Path: UPS.Battery.Voltage, Type: Feature, ReportID:
0x1a, Offset: 0, Size: 16, Value: 2304
0.134927 Path: UPS.Battery.DelayBeforeStartup, Type: Feature,
ReportID: 0x1b, Offset: 0, Size: 32, Value: 12336
0.135436 Path: UPS.Battery.Temperature, Type: Feature, ReportID:
0x2d, Offset: 0, Size: 8, Value: 35
0.136056 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID:
0x1c, Offset: 0, Size: 16, Value: 220
0.136676 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x1d,
Offset: 0, Size: 16, Value: 216
0.137176 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x2e,
Offset: 0, Size: 16, Value: 216
0.137926 Path: UPS.Input.Frequency, Type: Feature, ReportID:
0x1e, Offset: 0, Size: 8, Value: 50
0.138428 Path: UPS.Output.ConfigCurrent, Type: Feature, ReportID:
0x2f, Offset: 0, Size: 8, Value: 3
0.138926 Path: UPS.Output.PercentLoad, Type: Feature, ReportID:
0x1f, Offset: 0, Size: 8, Value: 2
0.139426 Path: UPS.Output.ConfigVoltage, Type: Feature, ReportID:
0x20, Offset: 0, Size: 16, Value: 220
0.139926 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x21,
Offset: 0, Size: 16, Value: 216
0.140428 Path: UPS.Output.ConfigFrequency, Type: Feature,
ReportID: 0x30, Offset: 0, Size: 8, Value: 50
0.140927 Path: UPS.Output.Frequency, Type: Feature, ReportID:
0x22, Offset: 0, Size: 8, Value: 50
0.141551 Path: UPS.Output.DelayBeforeShutdown, Type: Feature,
ReportID: 0x23, Offset: 0, Size: 8, Value: 0
0.142183 Path: UPS.Output.DelayBeforeStartup, Type: Feature,
ReportID: 0x24, Offset: 0, Size: 32, Value: 12336
0.142923 refresh_report_buffer: expected 5 bytes, but got 2 instead
0.142932 Path: UPS.iName, Type: Feature, ReportID: 0x06, Offset:
0, Size: 32, Value: 5
0.143549 Path: UPS.AudibleAlarmControl, Type: Feature, ReportID:
0x25, Offset: 0, Size: 8, Value: 2
0.144174 Path: UPS.PresentStatus.Charging, Type: Feature,
ReportID: 0x26, Offset: 0, Size: 1, Value: 0
0.144180 Path: UPS.PresentStatus.Discharging, Type: Feature,
ReportID: 0x26, Offset: 1, Size: 1, Value: 0
0.144185 Path: UPS.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x26, Offset: 2, Size: 1, Value: 1
0.144189 Path: UPS.PresentStatus.BatteryPresent, Type: Feature,
ReportID: 0x26, Offset: 3, Size: 1, Value: 1
0.144193 Path: UPS.PresentStatus.BelowRemainingCapacityLimit,
Type: Feature, ReportID: 0x26, Offset: 4, Size: 1, Value: 0
0.144197 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type:
Feature, ReportID: 0x26, Offset: 5, Size: 1, Value: 0
0.144201 Path: UPS.PresentStatus.NeedReplacement, Type: Feature,
ReportID: 0x26, Offset: 6, Size: 1, Value: 0
0.144206 Path: UPS.PresentStatus.VoltageNotRegulated, Type:
Feature, ReportID: 0x26, Offset: 7, Size: 1, Value: 0
0.144210 Path: UPS.PresentStatus.ShutdownRequested, Type:
Feature, ReportID: 0x26, Offset: 8, Size: 1, Value: 0
0.144214 Path: UPS.PresentStatus.ShutdownImminent, Type: Feature,
ReportID: 0x26, Offset: 9, Size: 1, Value: 0
0.144218 Path: UPS.PresentStatus.CommunicationLost, Type:
Feature, ReportID: 0x26, Offset: 10, Size: 1, Value: 0
0.144222 Path: UPS.PresentStatus.Overload, Type: Feature,
ReportID: 0x26, Offset: 11, Size: 1, Value: 0
0.144226 Path: UPS.PresentStatus.Boost, Type: Feature, ReportID:
0x26, Offset: 12, Size: 1, Value: 0
0.144229 Path: UPS.PresentStatus.Buck, Type: Feature, ReportID:
0x26, Offset: 13, Size: 1, Value: 0
0.144233 Path: UPS.PresentStatus.Tested, Type: Feature, ReportID:
0x26, Offset: 14, Size: 1, Value: 0
0.144237 Path: UPS.PresentStatus.POWERCOM3, Type: Feature,
ReportID: 0x26, Offset: 15, Size: 1, Value: 0
0.144923 Path: UPS.ShutdownImminent, Type: Feature, ReportID:
0x27, Offset: 0, Size: 8, Value: 0
0.145556 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa0,
Offset: 0, Size: 8, Value: 0
0.146306 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa1,
Offset: 0, Size: 8, Value: 32
0.147052 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa2,
Offset: 0, Size: 8, Value: 46
0.147958 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa3,
Offset: 0, Size: 8, Value: 48
0.148825 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa4,
Offset: 0, Size: 8, Value: 32
0.149551 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa5,
Offset: 0, Size: 8, Value: 53
0.150301 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa6,
Offset: 0, Size: 8, Value: 48
0.151054 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa7,
Offset: 0, Size: 8, Value: 128
0.151927 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa8,
Offset: 0, Size: 8, Value: 251
0.152572 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xa9,
Offset: 0, Size: 8, Value: 191
0.153448 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xaa,
Offset: 0, Size: 8, Value: 255
0.154180 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xab,
Offset: 0, Size: 8, Value: 141
0.155072 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xac,
Offset: 0, Size: 8, Value: 255
0.155931 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xad,
Offset: 0, Size: 8, Value: 95
0.156548 refresh_report_buffer: expected 8 bytes, but got 2 instead
0.156558 Path: UPS.Flow.iName, Type: Feature, ReportID: 0xae,
Offset: 0, Size: 8, Value: 1
0.157190 Path: UPS.Flow.iName, Type: Feature, ReportID: 0x31,
Offset: 0, Size: 8, Value: 2
0.157950 Path: UPS.Flow.iName, Type: Feature, ReportID: 0x32,
Offset: 0, Size: 8, Value: 2
0.157969 Report descriptor retrieved (Reportlen = 996)
0.157972 Found HID device
0.157975 Detected a UPS: POWERCOM Co.,LTD/HID UPS Battery
0.158001 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Feature, ReportID: 0x0a, Offset: 2, Size: 1, Value: 1
0.158008 Path: UPS.PowerSummary.PresentStatus.BatteryPresent,
Type: Feature, ReportID: 0x0a, Offset: 3, Size: 1, Value: 1
0.158014 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, ReportID: 0x0a, Offset: 4, Size: 1, Value: 0
0.158020 Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Feature, ReportID: 0x0a, Offset: 0, Size: 1, Value: 0
0.158026 Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
Type: Feature, ReportID: 0x0a, Offset: 10, Size: 1, Value: 0
0.158032 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x0a, Offset: 1, Size: 1, Value: 0
0.158039 Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Feature, ReportID: 0x0a, Offset: 6, Size: 1, Value: 0
0.158044 Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Feature, ReportID: 0x0a, Offset: 11, Size: 1, Value: 0
0.158050 Path:
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature,
ReportID: 0x0a, Offset: 5, Size: 1, Value: 0
0.158056 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Feature, ReportID: 0x0a, Offset: 9, Size: 1, Value: 0
0.158062 Path: UPS.PresentStatus.ACPresent, Type: Feature,
ReportID: 0x26, Offset: 2, Size: 1, Value: 1
0.158068 Path: UPS.PresentStatus.BatteryPresent, Type: Feature,
ReportID: 0x26, Offset: 3, Size: 1, Value: 1
0.158074 Path: UPS.PresentStatus.BelowRemainingCapacityLimit,
Type: Feature, ReportID: 0x26, Offset: 4, Size: 1, Value: 0
0.158079 Path: UPS.PresentStatus.Boost, Type: Feature, ReportID:
0x26, Offset: 12, Size: 1, Value: 0
0.158084 Path: UPS.PresentStatus.Buck, Type: Feature, ReportID:
0x26, Offset: 13, Size: 1, Value: 0
0.158089 Path: UPS.PresentStatus.Charging, Type: Feature,
ReportID: 0x26, Offset: 0, Size: 1, Value: 0
0.158094 Path: UPS.PresentStatus.CommunicationLost, Type:
Feature, ReportID: 0x26, Offset: 10, Size: 1, Value: 0
0.158100 Path: UPS.PresentStatus.Discharging, Type: Feature,
ReportID: 0x26, Offset: 1, Size: 1, Value: 0
0.158105 Path: UPS.PresentStatus.NeedReplacement, Type: Feature,
ReportID: 0x26, Offset: 6, Size: 1, Value: 0
0.158110 Path: UPS.PresentStatus.Overload, Type: Feature,
ReportID: 0x26, Offset: 11, Size: 1, Value: 0
0.158116 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type:
Feature, ReportID: 0x26, Offset: 5, Size: 1, Value: 0
0.158121 Path: UPS.PresentStatus.ShutdownImminent, Type: Feature,
ReportID: 0x26, Offset: 9, Size: 1, Value: 0
0.158129 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
ReportID: 0x0e, Offset: 0, Size: 8, Value: 100
0.158139 Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 10
0.158146 Path: UPS.PowerSummary.WarningCapacityLimit, Type:
Feature, ReportID: 0x0b, Offset: 0, Size: 8, Value: 30
0.158153 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature,
ReportID: 0x37, Offset: 0, Size: 16, Value: 800
0.158162 Path: UPS.Battery.ManufacturerDate, Type: Feature,
ReportID: 0x17, Offset: 0, Size: 16, Value: 17455
0.158169 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x05, Offset: 0, Size: 8, Value: 4
0.159815 Path: UPS.PowerSummary.AudibleAlarmControl, Type:
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
0.159831 Path: UPS.Output.PercentLoad, Type: Feature, ReportID:
0x1f, Offset: 0, Size: 8, Value: 2
0.159840 Path: UPS.PowerSummary.ManufacturerDate, Type: Feature,
ReportID: 0x0d, Offset: 0, Size: 16, Value: 17455
0.159847 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x15,
Offset: 0, Size: 8, Value: 1
0.159856 Path: UPS.PowerSummary.DelayBeforeStartup, Type:
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 12336
0.159865 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
0.159875 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x1d,
Offset: 0, Size: 16, Value: 216
0.159882 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID:
0x1c, Offset: 0, Size: 16, Value: 220
0.159889 Path: UPS.Input.Frequency, Type: Feature, ReportID:
0x1e, Offset: 0, Size: 8, Value: 50
0.159895 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x21,
Offset: 0, Size: 16, Value: 216
0.159902 Path: UPS.Output.ConfigVoltage, Type: Feature, ReportID:
0x20, Offset: 0, Size: 16, Value: 220
0.159908 Path: UPS.Output.Frequency, Type: Feature, ReportID:
0x22, Offset: 0, Size: 8, Value: 50
0.159915 Path: UPS.PowerSummary.AudibleAlarmControl, Type:
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
0.159920 Path: UPS.PowerSummary.AudibleAlarmControl, Type:
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
0.159925 Path: UPS.PowerSummary.AudibleAlarmControl, Type:
Feature, ReportID: 0x13, Offset: 0, Size: 8, Value: 2
0.159931 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x15,
Offset: 0, Size: 8, Value: 1
0.159937 Path: UPS.PowerSummary.DelayBeforeStartup, Type:
Feature, ReportID: 0x10, Offset: 0, Size: 32, Value: 12336
0.159942 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
0.159948 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
0.159957 find_nut_info: unknown info type: load.off.delay
0.159961 find_nut_info: unknown info type: load.off.delay
0.159967 upsdrv_initinfo...
0.159972 upsdrv_updateinfo...
0.256972 Got 13 HID objects...
0.256995 Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Input, ReportID: 0x0a, Offset: 0, Size: 1, Value: 0
0.257003 Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Input, ReportID: 0x0a, Offset: 1, Size: 1, Value: 0
0.257008 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Input, ReportID: 0x0a, Offset: 2, Size: 1, Value: 1
0.257013 Path: UPS.PowerSummary.PresentStatus.BatteryPresent,
Type: Input, ReportID: 0x0a, Offset: 3, Size: 1, Value: 1
0.257018 Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
ReportID: 0x0a, Offset: 4, Size: 1, Value: 0
0.257023 Path:
UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input,
ReportID: 0x0a, Offset: 5, Size: 1, Value: 0
0.257028 Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Input, ReportID: 0x0a, Offset: 6, Size: 1, Value: 0
0.257033 Path:
UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input,
ReportID: 0x0a, Offset: 7, Size: 1, Value: 0
0.257038 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested,
Type: Input, ReportID: 0x0a, Offset: 8, Size: 1, Value: 0
0.257042 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Input, ReportID: 0x0a, Offset: 9, Size: 1, Value: 0
0.257047 Path: UPS.PowerSummary.PresentStatus.CommunicationLost,
Type: Input, ReportID: 0x0a, Offset: 10, Size: 1, Value: 0
0.257052 Path: UPS.PowerSummary.PresentStatus.Overload, Type:
Input, ReportID: 0x0a, Offset: 11, Size: 1, Value: 0
0.257056 Path: UPS.PowerSummary.PresentStatus.POWERCOM3, Type:
Input, ReportID: 0x0a, Offset: 15, Size: 1, Value: 0
0.257060 Quick update...
0.257064 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
0.257270 dstate_init: sock /var/run/nut/usbhid-ups-powercom open
on fd 8
0.257294 upsdrv_updateinfo...
0.448943 Got 1 HID objects...
0.448969 Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
ReportID: 0x0e, Offset: 0, Size: 8, Value: 100
0.448978 Quick update...
0.448984 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
[root at vhost ~]# upsc powercom
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 30
battery.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.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.data: PowerCOM HID 0.4
driver.version.internal: 0.38
input.frequency: 50.0
input.voltage: 216.0
input.voltage.nominal: 220
output.frequency: 50.0
output.voltage: 216.0
output.voltage.nominal: 220
ups.beeper.status: disabled
ups.date: 2014/01/15
ups.delay.shutdown: 20
ups.delay.start: 60
ups.load: 1
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: 740160
ups.vendorid: 0d9f
Instant commands supported on UPS [powercom]:
beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.toggle - Toggle the UPS beeper
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
test.battery.start.quick - Start a quick battery test
However I was unable to shutdown.return it. Maybe protocol is not fully
compatible?
0.145757 Initiating UPS shutdown
0.145760 upsdrv_shutdown...
0.145763 instcmd(shutdown.return, [NULL])
0.145767 powercom_shutdown_nuf: value = (null), command = 5400
0.145770 hu_find_valinfo: found 21504 (value: (null))
0.145773 Unit = 00000000, UnitExp = 0
0.145775 Exponent = 0
0.145778 PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = 0
0.155952 Report[set]: (3 bytes) => 0f 00 54
0.155981 Set report succeeded
0.155986 instcmd: SUCCEED
Every 2 sec driver outputs the following:
10.254942 upsdrv_updateinfo...
10.507035 libusb_get_interrupt: Connection timed out
10.507054 Got 0 HID objects...
10.507060 Quick update...
10.507657 refresh_report_buffer: expected 3 bytes, but got 2 instead
10.507671 Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 16, Value: 0
More information about the Nut-upsuser
mailing list