Gordon Rowell
2006-Feb-08 21:24 UTC
[Nut-upsdev] 2.0.3-pre2: Spurious UPS UPS@localhost battery is
Peter Selinger wrote:> Hm. I need more information, as NUT seems to garble the values even > before I can see them. I am not so worried about the date and > temperatures (although, strangely, the battery replacement date > appears to be Sept 25, 2001, which makes no sense). But the voltage is > definitely important. > > [...] >Thanks Peter - I'll send the new info as soon as I can. Do you also want me to run this on the other model I have access to, or is this specific to my series of UPS? In case it is useful, there's another success report, with mangled battery date, in this bug: http://www.contribs.org/bugzilla/show_bug.cgi?id=352 I've asked the reporter to post the details to this list. Gordon -- Gordon Rowell Gordon.Rowell@gormand.com.au http://www.gormand.com.au Gormand Pty Ltd PO Box 239 St Pauls NSW 2031 Australia "The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little." Franklin D Roosevelt, Second Inaugural Address, 1937
Gordon Rowell
2006-Feb-09 00:34 UTC
[Nut-upsdev] 2.0.3-pre2: Spurious UPS UPS@localhost battery is
Peter Selinger wrote:> [...] > Here is what I need: > > 1) the output of "./newhidups -u root -DD -a UPS auto 2>&1 | grep > Path" again, but with the attached patch applied, and > > 2) the output of "get_descriptor 005 003 1 0 0 128 0x22 0" (or > equivalent, substitute own bus and device number instead of 005/003), > from the attached program.Attached, to avoid folding. Gordon -------------- next part -------------- /sbin/newhidups -u root -DD -a UPS auto 2>&1 | grep Path: Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1 Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 2 Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 3 Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value: 3 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 4 Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1 Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2 Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value: 100 Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value: 100 Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 100 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 100 Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value: 1 Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, Value: 1 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, Value: 50 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, Value: 10 Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, Value: 12852 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value: 352 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value: 352 Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, Value: -1 Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, Value: 0 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, Value: 120 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value: 1200 Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 1345 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, Value: 1 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value: 1 Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, Value: 1 Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, Value: 1 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.OverLoad, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.OverLoad, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, Value: 0 Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, Value: 0 Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, Value: 0 Path: UPS.Battery.Test, Type: Input, Value: 6 Path: UPS.Battery.Test, Type: Feature, Value: 6 Path: UPS.Battery.APCBattCapBeforeStartup, Type: Feature, Value: 0 Path: UPS.Battery.ff86001a, Type: Feature, Value: 0 Path: UPS.Battery.ff86001b, Type: Feature, Value: 0 Path: UPS.Battery.APCBattReplaceDate, Type: Feature, Value: 599297 Path: UPS.Battery.ManufacturerDate, Type: Feature, Value: 12852 Path: UPS.Battery.RemainingCapacity, Type: Feature, Value: 1000 Path: UPS.Battery.RemainingTimeLimit, Type: Feature, Value: 120 Path: UPS.Battery.RunTimeToEmpty, Type: Feature, Value: 352 Path: UPS.Battery.Temperature, Type: Feature, Value: 3023 Path: UPS.Battery.ConfigVoltage, Type: Feature, Value: 1200 Path: UPS.Battery.Voltage, Type: Feature, Value: 1345 Path: UPS.Battery.ff860024, Type: Feature, Value: 244 Path: UPS.Battery.ff860018, Type: Feature, Value: -2146919670 Path: UPS.Input.Voltage, Type: Feature, Value: -2146956800 Path: UPS.Input.ConfigVoltage, Type: Feature, Value: 230 Path: UPS.Input.ff860052, Type: Feature, Value: 8 Path: UPS.Input.ff860061, Type: Feature, Value: 1 Path: UPS.Input.ff860024, Type: Feature, Value: 130 Path: UPS.Output.PercentLoad, Type: Feature, Value: 650 Path: UPS.Output.00840044, Type: Feature, Value: 325 Path: UPS.Output.Frequency, Type: Feature, Value: 5000 Path: UPS.Output.Voltage, Type: Feature, Value: 2300 Path: UPS.Output.ConfigVoltage, Type: Feature, Value: 230 Path: UPS.Output.HighVoltageTransfer, Type: Feature, Value: 266 Path: UPS.Output.LowVoltageTransfer, Type: Feature, Value: 180 Path: UPS.Output.APCDelayBeforeStartup, Type: Feature, Value: 0 Path: UPS.Output.APCShutdownAfterDelay, Type: Feature, Value: 0 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, Value: -1 Path: UPS.Output.DelayBeforeStartup, Type: Feature, Value: 0 Path: UPS.Output.DelayBeforeReboot, Type: Feature, Value: 0 Path: UPS.Output.APCForceShutdown, Type: Feature, Value: 0 Path: UPS.Output.APCDelayBeforeShutdown, Type: Feature, Value: 680 Path: UPS.iProduct, Type: Feature, Value: 5 Path: UPS.iSerialNumber, Type: Feature, Value: 2 Path: UPS.iManufacturer, Type: Feature, Value: 3 Path: UPS.00840001, Type: Feature, Value: 6 Path: UPS.APC_UPS_FirmwareRevision, Type: Feature, Value: 7 Path: UPS.APC_USB_FirmwareRevision, Type: Feature, Value: 8 Path: UPS.APCPanelTest, Type: Feature, Value: 0 Path: UPS.ManufacturerDate, Type: Feature, Value: 12852 Path: UPS.ff860027, Type: Feature, Value: 0 Path: UPS.ff860028, Type: Feature, Value: 0 Path: UPS.AudibleAlarmControl, Type: Feature, Value: 2 Path: UPS.PresentStatus.Charging, Type: Input, Value: 0 Path: UPS.PresentStatus.Charging, Type: Feature, Value: 0 Path: UPS.PresentStatus.Discharging, Type: Input, Value: 0 Path: UPS.PresentStatus.Discharging, Type: Feature, Value: 0 Path: UPS.PresentStatus.ACPresent, Type: Input, Value: 1 Path: UPS.PresentStatus.ACPresent, Type: Feature, Value: 1 Path: UPS.PresentStatus.BatteryPresent, Type: Input, Value: 1 Path: UPS.PresentStatus.BatteryPresent, Type: Feature, Value: 1 Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Input, Value: 0 Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, Value: 0 Path: UPS.PresentStatus.ShutdownRequested, Type: Input, Value: 0 Path: UPS.PresentStatus.ShutdownRequested, Type: Feature, Value: 0 Path: UPS.PresentStatus.ShutdownImminent, Type: Input, Value: 0 Path: UPS.PresentStatus.ShutdownImminent, Type: Feature, Value: 0 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Input, Value: 0 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Feature, Value: 0 Path: UPS.PresentStatus.CommunicationLost, Type: Input, Value: 0 Path: UPS.PresentStatus.CommunicationLost, Type: Feature, Value: 0 Path: UPS.PresentStatus.NeedReplacement, Type: Input, Value: 0 Path: UPS.PresentStatus.NeedReplacement, Type: Feature, Value: 0 Path: UPS.PresentStatus.OverLoad, Type: Input, Value: 0 Path: UPS.PresentStatus.OverLoad, Type: Feature, Value: 0 Path: UPS.PresentStatus.VoltageNotRegulated, Type: Input, Value: 0 Path: UPS.PresentStatus.VoltageNotRegulated, Type: Feature, Value: 0 Path: UPS.PresentStatus.ff860080, Type: Input, Value: 0 Path: UPS.PresentStatus.ff860080, Type: Feature, Value: 0 Path: UPS.ff860001.ff860023, Type: Feature, Value: 0 Path: UPS.ff860001.ff860026, Type: Feature, Value: 6 Path: UPS.ff860001.ff860025, Type: Feature, Value: 50462976 Path: UPS.PowerConverter.ff860024, Type: Feature, Value: 219 upsc UPS@localhost: battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.date: 2001/09/25 battery.mfr.date: 2005/01/20 battery.runtime: 360 battery.runtime.low: 120 battery.temperature: 302.0 battery.voltage: 13.0 battery.voltage.nominal: 12.0 driver.name: newhidups driver.version: 2.0.3-pre2 driver.version.data: APC HID 0.8 driver.version.internal: 0.28 input.voltage: -6297.0 input.voltage.nominal: 230 output.voltage: 230.0 output.voltage.target.line: 230.0 ups.beeper.status: enabled ups.delay.shutdown: -1 ups.firmware: 814.s3.I ups.firmware.aux: s3 ups.load: 66.0 ups.mfr: American Power Conversion ups.mfr.date: 2005/01/20 ups.model: Back-UPS BF500 ups.serial: AB0504244053 ups.status: OL ups.test.result: No test initiated ./get_descriptor 005 002 1 0 0 128 0x22 0 Bus 005 device 002 configuration 1 interface 0 altsetting 0 endpoint 128 descriptor 0x22 index 0: 05 84 09 04 a1 01 09 24 a1 02 85 01 09 fe 79 01 75 08 95 01 15 00 26 ff 00 b1 22 85 02 09 ff 79 02 b1 22 85 03 09 fd 79 03 b1 22 05 85 85 04 09 8f 79 03 b1 22 85 05 09 89 79 04 b1 22 85 06 09 8b b1 22 09 2c b1 22 85 0e 09 83 25 64 b1 22 09 67 b1 22 85 0c 09 66 81 22 09 66 b1 a2 85 10 09 8d b1 22 09 8e b1 22 85 0f 09 8c b1 22 85 11 09 29 b1 a2 85 09 09 85 75 10 27 ff ff 00 00 b1 a2 85 0d 09 68 27 ff ff 00 00 66 01 10 55 00 81 22 09 68 b1 a2 05 84 85 12 09 57 16 ff ff 26 ff 7f b1 a2 85 13 09 55 75 18 17 ff ff ff ff 27 18 c5 13 00 b1 a2 05 85 85 08 09 2a 75 10 27 64 05 00 00 16 78 00 b1 a2 05 84 85 0a 09 40 15 00 27 ff ff 00 00 67 21 d1 f0 00 55 05 b1 22 85 0b 09 30 b1 a2 85 14 09 5a 75 08 15 01 25 03 65 00 55 00 b1 a2 09 02 a1 02 85 07 05 85 09 44 75 01 15 00 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 d1 81 a2 09 d1 b1 a2 09 42 81 a2 09 42 b1 a2 05 84 09 68 81 a2 09 68 b1 a2 09 69 81 a2 09 69 b1 a2 05 85 09 43 81 a2 09 43 b1 a2 05 84 09 73 81 a2 09 73 b1 a2 05 85 09 4b 81 a2 09 4b b1 a2 05 84 09 65 81 a2 09 65 b1 a2 05 85 09 db 81 a2 09 db b1 a2 06 86 ff 09 80 81 a2 09 80 b1 a2 95 03 81 01 b1 01 c0 c0 05 84 09 12 a1 00 85 16 09 58 75 08 95 01 25 06 81 a2 09 58 b1 a2 06 86 ff 85 17 09 19 25 5a b1 a2 85 1b 09 1a 25 03 b1 a2 85 1c 09 1b 26 ff 00 b1 a2 85 45 09 16 75 18 27 ff ff ff 00 b2 a2 01 05 85 85 15 09 85 75 10 27 ff ff 00 00 b1 a2 85 18 09 66 55 0f b1 a2 85 1a 09 2a 27 64 05 00 00 16 78 00 66 01 10 55 00 b1 a2 85 19 27 ff ff 00 00 15 00 09 68 b1 a2 05 84 85 1e 09 36 67 01 00 01 00 55 0f b1 a2 85 1f 09 40 67 21 d1 f0 00 55 05 b1 22 85 1d 09 30 b1 a2 85 47 06 86 ff 09 24 75 08 16 ea 00 26 ff 00 65 00 55 00 b1 a2 85 48 09 18 75 20 17 01 00 00 80 27 ff ff ff 7f b2 a2 01 c0 05 84 09 1a a1 00 85 20 09 30 15 00 27 ff ff 00 00 67 21 d1 f0 00 55 06 b1 a2 85 46 09 40 75 08 15 00 26 ff 00 67 21 d1 f0 00 55 07 b1 22 06 86 ff 85 21 09 52 75 08 25 0a 65 00 55 00 b1 a2 85 22 09 61 25 02 b1 a2 85 42 09 24 16 70 00 26 90 00 65 00 55 00 b1 a2 c0 05 84 09 1c a1 00 85 2c 09 35 75 10 15 00 27 ff ff 00 00 55 0f b1 a2 85 52 09 44 66 21 d1 55 07 b1 a2 85 2a 09 32 66 01 f0 55 0e b1 a2 85 2b 09 30 67 21 d1 f0 00 55 06 b1 a2 85 2d 09 40 16 e6 00 26 e6 00 55 07 b1 a2 85 23 09 54 16 00 01 26 16 01 b1 a2 85 24 09 53 16 a0 00 26 c4 00 b1 a2 06 86 ff 85 25 09 7e 15 00 27 a4 01 00 00 66 01 10 55 00 b1 a2 85 26 09 76 27 76 02 00 00 b1 a2 05 84 85 27 09 57 16 ff ff 26 ff 7f b1 a2 85 28 09 56 b1 a2 85 29 09 55 75 18 17 ff ff ff ff 27 18 c5 13 00 b1 a2 06 86 ff 85 40 09 7c 75 08 25 01 b1 a2 85 41 09 7d 75 10 16 ff ff 26 ff 7f 66 01 10 b1 a2 c0 05 84 85 2e 09 fe 79 05 75 08 15 00 26 ff 00 65 00 b1 22 85 2f 09 ff 79 02 b1 22 85 30 09 fd 79 03 b1 22 85 31 09 01 79 06 b1 a2 06 86 ff 85 34 09 42 79 07 b1 22 06 86 ff 85 37 09 79 79 08 b1 22 85 32 09 72 25 01 b1 a2 05 85 85 35 09 85 75 10 27 ff ff 00 00 b1 22 06 86 ff 85 3e 09 27 75 20 15 00 27 ff ff ff 7f b1 a2 85 3f 09 28 b1 a2 05 84 85 36 09 5a 75 08 15 01 25 03 b1 a2 09 02 a1 02 85 33 05 85 09 44 75 01 15 00 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 d1 81 a2 09 d1 b1 a2 09 42 81 a2 09 42 b1 a2 05 84 09 68 81 a2 09 68 b1 a2 09 69 81 a2 09 69 b1 a2 05 85 09 43 81 a2 09 43 b1 a2 05 84 09 73 81 a2 09 73 b1 a2 05 85 09 4b 81 a2 09 4b b1 a2 05 84 09 65 81 a2 09 65 b1 a2 05 85 09 db 81 a2 09 db b1 a2 06 86 ff 09 80 81 a2 09 80 b1 a2 95 03 81 01 b1 01 c0 06 86 ff 09 01 a1 00 85 60 09 23 75 10 95 01 15 00 27 ff ff 00 00 65 00 55 00 b1 a2 85 61 09 26 75 08 16 02 00 26 06 00 b1 a2 85 62 09 25 75 20 17 01 00 00 80 27 ff ff ff 7f b2 a2 01 c0 05 84 09 16 a1 00 85 51 06 86 ff 09 24 16 be 00 26 fe 00 95 01 75 08 b1 a2 c0 c0 .......$......y.u.....&..."....y.."....y.."......y.."....y..".....".,.". ...%d.".g."...f.".f......."..."....."...)......u.'.........h'....f..U.." .h.......W...&.......Uu......'...........*u.'d....x........@..'....g!... U.."...0.....Zu...%.e.U............Du...%....D...E...E.................. .B...B.....h...h...i...i.....C...C.....s...s.....K...K.....e...e........ ................................Xu...%....X.........%Z......%.......&... ..E..u.'.............u.'.........fU......*'d....x.f..U.....'.......h.... ...6g....U......@g!...U.."...0...G....$u....&..e.U....H..u .....'....... ........ .0..'....g!...U....F.@u...&..g!...U.."....!.Ru.%.e.U....".a%... .B.$.p.&..e.U...........,.5u...'....U....R.Df!.U....*.2f..U....+.0g!...U ....-.@...&..U....#.T...&.....$.S...&........%.~..'....f..U....&.v'v.... ....'.W...&.....(.V...).Uu......'..........@.|u.%....A.}u....&..f....... ....y.u...&..e.."./..y..".0..y..".1..y.......4.By.."....7.yy..".2.r%.... ..5..u.'....."....>.'u ..'.......?.(.....6.Zu...%........3...Du...%....D ...E...E...................B...B.....h...h...i...i.....C...C.....s...s.. ...K...K.....e...e......................................`.#u.....'....e. U....a.&u....&.....b.%u .....'...............Q....$...&....u.....
Peter Selinger
2006-Feb-09 13:37 UTC
[Nut-upsdev] 2.0.3-pre2: Spurious UPS UPS@localhost battery is
Gordon Rowell wrote:> > In case it is useful, there's another success report, with mangled > battery date, in this bug: > > http://www.contribs.org/bugzilla/show_bug.cgi?id=352 > > I've asked the reporter to post the details to this list.Actually, that bug was already fixed, so I did not strictly need that particular data. But it is always useful to have such data on file anyway. -- Peter