On Mon, Jul 12, 2010 at 4:13 PM, Arjen de Korte <nut+users at
de-korte.org> wrote:> Citeren Michelle Wright <michelle.wright at gmail.com>:
>
>> $ upsc upsname
>> battery.charge.low: 38
>> battery.charge.warning: 38
>> battery.type: PbAc
>> device.mfr: Emerson Network Power
>> device.model: LiebertPSP
>> device.serial:
>> device.type: ups
>> driver.name: usbhid-ups
>> driver.parameter.pollfreq: 30
>> driver.parameter.pollinterval: 2
>> driver.parameter.port: auto
>> driver.parameter.vendorid: 10af
>> driver.version: 2.4.3
>> driver.version.data: Belkin HID 0.12
>> driver.version.internal: 0.34
>> ups.mfr: Emerson Network Power
>> ups.model: LiebertPSP
>> ups.productid: 0001
>> ups.serial:
>> ups.status: OB
>
> OB = On Battery
Fair enough!
>> ups.vendorid: 10af
>>
>> /etc/nut/ups.conf
>> [upsname]
>> ??????? driver = usbhid-ups
>> ??????? port = auto
>> ??????? vendorid = 10af
>
> Remove the 'vendorid' line. It isn't needed.
Removed and tried again. I did not have this originally but added it
after a bit of (unsuccessful) googling.
>> ??????? desc = "Server UPS"
>>
>> In /var/log/daemon and also the cgi web interface it thinks it is
>> running on battery though!
>
> That's what 'ups.status' is telling too, so I'm not
surprised about that.
> Are you absolutely sure you plugged the device in a live outlet? If you
are,
> running
Yes it's definitely plugged in. I sat there and unplugged it etc to test
things.
> ? ?/path/to/usbhid-ups -DDD -a upsname
>
> might give us something to work with. Make sure you stop all drivers before
> running this.
$ sudo /lib/nut/usbhid-ups -DDD -a maxfun
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
? 0.000000 ? ? debug level is '3'
? 0.000361 ? ? upsdrv_initups...
? 0.170031 ? ? Checking device (1D6B/0001) (005/001)
? 0.170088 ? ? - VendorID: 1d6b
? 0.170099 ? ? - ProductID: 0001
? 0.170108 ? ? - Manufacturer: unknown
? 0.170116 ? ? - Product: unknown
? 0.170125 ? ? - Serial Number: unknown
? 0.170133 ? ? - Bus: 005
? 0.170142 ? ? Trying to match device
? 0.170161 ? ? Device does not match - skipping
? 0.170175 ? ? Checking device (1D6B/0001) (004/001)
? 0.170204 ? ? - VendorID: 1d6b
? 0.170215 ? ? - ProductID: 0001
? 0.170223 ? ? - Manufacturer: unknown
? 0.170232 ? ? - Product: unknown
? 0.170241 ? ? - Serial Number: unknown
? 0.170249 ? ? - Bus: 004
? 0.170257 ? ? Trying to match device
? 0.170266 ? ? Device does not match - skipping
? 0.170279 ? ? Checking device (1D6B/0001) (003/001)
? 0.170306 ? ? - VendorID: 1d6b
? 0.170316 ? ? - ProductID: 0001
? 0.170325 ? ? - Manufacturer: unknown
? 0.170333 ? ? - Product: unknown
? 0.170341 ? ? - Serial Number: unknown
? 0.170350 ? ? - Bus: 003
? 0.170358 ? ? Trying to match device
? 0.170367 ? ? Device does not match - skipping
? 0.170379 ? ? Checking device (10AF/0001) (002/002)
? 0.211964 ? ? - VendorID: 10af
? 0.211978 ? ? - ProductID: 0001
? 0.211987 ? ? - Manufacturer: Emerson Network Power
? 0.211996 ? ? - Product: LiebertPSP
? 0.212004 ? ? - Serial Number:
? 0.212013 ? ? - Bus: 002
? 0.212021 ? ? Trying to match device
? 0.212032 ? ? Device matches
? 0.222967 ? ? HID descriptor, method 1: (9 bytes) => 09 21 01 10 00 01 22 ff
01
? 0.222984 ? ? HID descriptor, method 2: (9 bytes) => 09 21 01 10 00 01 22 ff
01
? 0.222994 ? ? HID descriptor length 511
? 0.289977 ? ? Report Descriptor size = 511
? 0.289996 ? ? Report Descriptor: (511 bytes) => 05 84 09 04 a1 01 05 84
09 24 a1 02 85 01
? 0.290014 ? ? ?05 84 09 fe 79 01 75 08 95 01 15 00 26 ff 00 65 00 b1 03
85 02 05 84 09 ff
? 0.290031 ? ? ?79 02 75 08 95 01 15 00 26 ff 00 65 00 b1 03 85 03 05 84
09 fd 79 13 75 08
? 0.290048 ? ? ?95 01 15 00 26 ff 00 65 00 b1 03 85 04 05 85 09 8f 79 13
75 08 95 01 15 00
? 0.290065 ? ? ?26 ff 00 65 00 b1 03 85 08 05 85 09 89 79 04 75 08 95 01
15 00 26 ff 00 65
? 0.290082 ? ? ?00 b1 03 85 06 05 85 09 8b 09 2c 75 08 95 02 15 00 26 ff
00 65 00 b1 03 85
? 0.290099 ? ? ?0c 05 85 09 66 75 08 95 01 15 00 26 ff 00 65 00 b1 83 09
66 81 83 85 0d 05
? 0.290116 ? ? ?85 09 83 75 08 95 01 15 00 26 ff 00 65 00 b1 03 85 0e 05
85 09 67 75 08 95
? 0.290133 ? ? ?01 15 00 26 ff 00 65 00 b1 03 85 0f 05 85 09 8c 75 08 95
01 15 00 26 ff 00
? 0.290150 ? ? ?65 00 b1 03 85 10 05 85 09 8d 09 8e 75 08 95 02 15 00 26
ff 00 65 00 b1 03
? 0.290167 ? ? ?85 11 05 85 09 29 75 08 95 01 15 00 26 ff 00 65 00 b1 03
85 11 05 85 09 29
? 0.290183 ? ? ?81 03 85 1d 05 84 09 30 75 10 95 01 15 00 27 ff ff 00 00
67 21 d1 f0 00 55
? 0.290200 ? ? ?ff b1 03 85 1f 05 84 09 40 75 10 95 01 15 00 27 ff ff 00
00 67 21 d1 f0 00
? 0.290217 ? ? ?55 ff b1 03 05 84 09 02 a1 02 85 07 05 85 09 44 75 01 15
00 25 01 55 00 b1
? 0.290234 ? ? ?83 09 44 81 83 09 45 b1 83 09 45 81 83 09 d0 b1 83 09 d0
81 83 09 d1 b1 83
? 0.290251 ? ? ?09 d1 81 83 09 42 81 83 09 42 b1 83 05 84 09 69 81 83 09
69 b1 83 05 85 09
? 0.290267 ? ? ?4b 81 83 09 4b b1 83 95 01 25 00 b1 03 09 4b 81 03 c0 c0
05 84 09 1c a1 00
? 0.290284 ? ? ?85 2b 05 84 09 30 75 10 95 01 15 00 27 ff ff 00 00 67 21
d1 f0 00 55 ff b1
? 0.290301 ? ? ?83 85 2c 05 84 09 35 75 08 15 00 26 ff 00 66 00 00 55 00
b1 83 c0 09 1a a1
? 0.290317 ? ? ?00 85 20 09 30 75 10 15 00 27 ff ff 00 00 75 10 67 21 d1
f0 00 55 ff b1 83
? 0.290333 ? ? ?85 38 09 32 75 10 15 00 27 ff ff 00 00 66 01 f0 55 00
b1 83 c0 c0
? 0.290392 ? ? Using subdriver: Belkin HID 0.12
? 0.293949 ? ? Report[get]: (2 bytes) => 01 01
? 0.294064 ? ? Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID:
0x01, Offset: 0, Size: 8, Value: 1.000000
? 0.297949 ? ? Report[get]: (2 bytes) => 02 02
? 0.298019 ? ? Path: UPS.PowerSummary.iSerialNumber, Type: Feature,
ReportID: 0x02, Offset: 0, Size: 8, Value: 2.000000
? 0.301948 ? ? Report[get]: (2 bytes) => 03 13
? 0.302013 ? ? Path: UPS.PowerSummary.iManufacturer, Type: Feature,
ReportID: 0x03, Offset: 0, Size: 8, Value: 19.000000
? 0.305947 ? ? Report[get]: (2 bytes) => 04 13
? 0.306011 ? ? Path: UPS.PowerSummary.iOEMInformation, Type: Feature,
ReportID: 0x04, Offset: 0, Size: 8, Value: 19.000000
? 0.309946 ? ? Report[get]: (2 bytes) => 08 04
? 0.309963 ? ? Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x08, Offset: 0, Size: 8, Value: 4.000000
? 0.313945 ? ? Report[get]: (3 bytes) => 06 01 02
? 0.313962 ? ? Path: UPS.PowerSummary.Rechargeable, Type: Feature,
ReportID: 0x06, Offset: 0, Size: 8, Value: 1.000000
? 0.314012 ? ? Report[buf]: (3 bytes) => 06 01 02
? 0.314026 ? ? Path: UPS.PowerSummary.CapacityMode, Type: Feature,
ReportID: 0x06, Offset: 8, Size: 8, Value: 2.000000
? 0.317943 ? ? Report[get]: (2 bytes) => 0c 64
? 0.317960 ? ? Path: UPS.PowerSummary.RemainingCapacity, Type: Feature,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000
? 0.318014 ? ? Report[buf]: (2 bytes) => 0c 64
? 0.318029 ? ? Path: UPS.PowerSummary.RemainingCapacity, Type: Input,
ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000
? 0.321943 ? ? Report[get]: (2 bytes) => 0d 64
? 0.321960 ? ? Path: UPS.PowerSummary.DesignCapacity, Type: Feature,
ReportID: 0x0d, Offset: 0, Size: 8, Value: 100.000000
? 0.325943 ? ? Report[get]: (2 bytes) => 0e 64
? 0.325960 ? ? Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature,
ReportID: 0x0e, Offset: 0, Size: 8, Value: 100.000000
? 0.329941 ? ? Report[get]: (2 bytes) => 0f 26
? 0.329959 ? ? Path: UPS.PowerSummary.WarningCapacityLimit, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 8, Value: 38.000000
? 0.333941 ? ? Report[get]: (3 bytes) => 10 01 01
? 0.333958 ? ? Path: UPS.PowerSummary.CapacityGranularity1, Type:
Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 1.000000
? 0.334010 ? ? Report[buf]: (3 bytes) => 10 01 01
? 0.334025 ? ? Path: UPS.PowerSummary.CapacityGranularity2, Type:
Feature, ReportID: 0x10, Offset: 8, Size: 8, Value: 1.000000
? 0.337940 ? ? Report[get]: (2 bytes) => 11 26
? 0.337957 ? ? Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 38.000000
? 0.338012 ? ? Report[buf]: (2 bytes) => 11 26
? 0.338027 ? ? Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Input, ReportID: 0x11, Offset: 0, Size: 8, Value: 38.000000
? 0.341940 ? ? Report[get]: (3 bytes) => 1d 8b 00
? 0.341960 ? ? Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID:
0x1d, Offset: 0, Size: 16, Value: 0.000001
? 0.345939 ? ? Report[get]: (3 bytes) => 1f 0c 00
? 0.345956 ? ? Path: UPS.PowerSummary.ConfigVoltage, Type: Feature,
ReportID: 0x1f, Offset: 0, Size: 16, Value: 0.000000
? 0.349940 ? ? Report[get]: (2 bytes) => 07 0d
? 0.349958 ? ? Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000
? 0.350004 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350020 ? ? Path: UPS.PowerSummary.PresentStatus.Charging, Type:
Input, ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000
? 0.350032 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350046 ? ? Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
? 0.350057 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350070 ? ? Path: UPS.PowerSummary.PresentStatus.Discharging, Type:
Input, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
? 0.350081 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350095 ? ? Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 0.000000
? 0.350106 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350120 ? ? Path: UPS.PowerSummary.PresentStatus.ACPresent, Type:
Input, ReportID: 0x07, Offset: 2, Size: 1, Value: 0.000000
? 0.350131 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350145 ? ? Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type:
Feature, ReportID: 0x07, Offset: 3, Size: 1, Value: 0.000000
? 0.350156 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350170 ? ? Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type:
Input, ReportID: 0x07, Offset: 3, Size: 1, Value: 0.000000
? 0.350181 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350195 ? ? Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Input, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
? 0.350207 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350220 ? ? Path:
UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
? 0.350232 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350246 ? ? Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Input, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000
? 0.350257 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350271 ? ? Path: UPS.PowerSummary.PresentStatus.ShutdownImminent,
Type: Feature, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000
? 0.350282 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350296 ? ? Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Input, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000
? 0.350307 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350321 ? ? Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Feature, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000
? 0.350333 ? ? Report[buf]: (2 bytes) => 07 0d
? 0.350346 ? ? Path: UPS.PowerSummary.PresentStatus.NeedReplacement,
Type: Input, ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
? 0.353937 ? ? Report[get]: (3 bytes) => 2b 63 09
? 0.353954 ? ? Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x2b,
Offset: 0, Size: 16, Value: 0.000024
? 0.357939 ? ? Report[get]: (2 bytes) => 2c 05
? 0.357957 ? ? Path: UPS.Output.PercentLoad, Type: Feature, ReportID:
0x2c, Offset: 0, Size: 8, Value: 5.000000
? 0.361937 ? ? Report[get]: (3 bytes) => 20 68 09
? 0.361954 ? ? Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20,
Offset: 0, Size: 16, Value: 0.000024
? 0.365937 ? ? Report[get]: (3 bytes) => 38 f5 01
? 0.365955 ? ? Path: UPS.Input.Frequency, Type: Feature, ReportID: 0x38,
Offset: 0, Size: 16, Value: 501.000000
? 0.366026 ? ? Report descriptor retrieved (Reportlen = 511)
? 0.366038 ? ? Found HID device
? 0.366047 ? ? Detected a UPS: Emerson Network Power/LiebertPSP
? 0.366080 ? ? Report[buf]: (2 bytes) => 11 26
? 0.366093 ? ? Path: UPS.PowerSummary.RemainingCapacityLimit, Type:
Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 38.000000
? 0.366116 ? ? Report[buf]: (2 bytes) => 0f 26
? 0.366128 ? ? Path: UPS.PowerSummary.WarningCapacityLimit, Type:
Feature, ReportID: 0x0f, Offset: 0, Size: 8, Value: 38.000000
? 0.366158 ? ? Report[buf]: (2 bytes) => 08 04
? 0.366170 ? ? Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature,
ReportID: 0x08, Offset: 0, Size: 8, Value: 4.000000
? 0.377248 ? ? find_nut_info: unknown info type: load.off.delay
? 0.377262 ? ? find_nut_info: unknown info type: load.on.delay
? 0.377273 ? ? find_nut_info: unknown info type: load.off.delay
? 0.377290 ? ? upsdrv_initinfo...
? 0.377306 ? ? upsdrv_updateinfo...
? 0.629891 ? ? libusb_get_interrupt: Connection timed out
? 0.629913 ? ? Got 0 HID objects...
? 0.629922 ? ? Quick update...
? 0.630075 ? ? dstate_init: sock /var/run/nut/usbhid-ups-maxfun open on fd 5
? 0.630102 ? ? upsdrv_updateinfo...
? 0.881839 ? ? libusb_get_interrupt: Connection timed out
? 0.881854 ? ? Got 0 HID objects...
? 0.881863 ? ? Quick update...
? 2.631855 ? ? upsdrv_updateinfo...
? 2.883461 ? ? libusb_get_interrupt: Connection timed out
? 2.883476 ? ? Got 0 HID objects...
? 2.883485 ? ? Quick update...
? 4.633609 ? ? upsdrv_updateinfo...
? 4.885084 ? ? libusb_get_interrupt: Connection timed out
? 4.885098 ? ? Got 0 HID objects...
? 4.885107 ? ? Quick update...
? 6.635361 ? ? upsdrv_updateinfo...
? 6.887707 ? ? libusb_get_interrupt: Connection timed out
? 6.887722 ? ? Got 0 HID objects...
? 6.887731 ? ? Quick update...
? 8.637115 ? ? upsdrv_updateinfo...
? 8.889332 ? ? libusb_get_interrupt: Connection timed out
? 8.889347 ? ? Got 0 HID objects...
? 8.889356 ? ? Quick update...
?10.638875 ? ? upsdrv_updateinfo...
?10.890958 ? ? libusb_get_interrupt: Connection timed out
?10.890977 ? ? Got 0 HID objects...
?10.890987 ? ? Quick update...
?12.640624 ? ? upsdrv_updateinfo...
?12.892576 ? ? libusb_get_interrupt: Connection timed out
?12.892591 ? ? Got 0 HID objects...
?12.892601 ? ? Quick update...
?14.641975 ? ? upsdrv_updateinfo...
?14.894201 ? ? libusb_get_interrupt: Connection timed out
?14.894216 ? ? Got 0 HID objects...
?14.894226 ? ? Quick update...
?16.643726 ? ? upsdrv_updateinfo...
?16.895820 ? ? libusb_get_interrupt: Connection timed out
?16.895836 ? ? Got 0 HID objects...
?16.895845 ? ? Quick update...
(( and repeat ))
Thanks for your help.
Michelle