Hello Arnaud I checked out and compiled r1952.
Find below the answers, bye wildi On Thursday 03 September 2009 14:00:39 you wrote: > 2009/9/2 Markus Wildi <[email protected]> > > > Hello Arnaud > > Hi Markus, > > thanks for having cc'ed the list ;-) It was my fault, this time it appears on the list. > > I compiled the source of nut-2.4.1 and you'll > > find the output of usbhid-ups -D -a apcsmart > > below. > > > > The UPS did regularly report a self-test while > > running under apcupsd. It reports in addition > > e.g. the last reason for a on battery event. > > if apcupsd can do it, NUT can do it too ;-) Yes, indeed :-)) > the last self test report should already be available through > ups.test.result (linked to the HID path UPS.Battery.Test, with the current > value "No test initiated"). Here the result (see the whole output below): 0.379454 Path: UPS.Battery.Test, Type: Input, ReportID: 0x16, Offset: 0, Size: 8, Value: 6.000000 0.379961 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x16, Offset: 0, Size: 8, Value: 6.000000 > I've just commited a patch that adds: > - input.transfer.reason > - input.sensitivity (which is settable) I see only the variable input.sensitivity (see below). With upsrw I see [battery.charge.low] [battery.runtime.low] [input.sensitivity] [ups.delay.shutdown] > can you test the development version (Subversion trunk, r1952) to validate > this. > Some helpful info are available here: > http://buildbot.ghz.cc/~buildbot/docs/r1950-97/website/download.html > > please send back an upsc output too. obsvermes:/etc/init.d # /usr/local/ups/bin/upsc apcsm...@localhost battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.mfr.date: 2006/06/30 battery.runtime: 2160 battery.runtime.low: 120 battery.temperature: 21.1 battery.type: PbAc battery.voltage: 27.4 battery.voltage.nominal: 24.0 device.mfr: American Power Conversion device.model: Smart-UPS 750 RM device.serial: AS0627130223 device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: /dev/hiddev0 driver.version: 2.4.1-1952M driver.version.data: APC HID 0.93 driver.version.internal: 0.34 input.sensitivity: high input.voltage: 234.7 output.voltage: 234.7 output.voltage.nominal: 230.0 ups.beeper.status: disabled ups.delay.shutdown: 20 ups.firmware: 619.3.I ups.firmware.aux: 8.1 ups.load: 31.2 ups.mfr: American Power Conversion ups.mfr.date: 2006/06/30 ups.model: Smart-UPS 750 RM ups.productid: 0002 ups.serial: AS0627130223 ups.status: OL ups.test.result: No test initiated ups.timer.reboot: -1 ups.timer.shutdown: -1 ups.vendorid: 051d > > if you still see differences with apcupsd, please tell me back. It's quite > possible that I've missed something more about how APC units work. > > (...) > > > thanks for these data. > > cheers, > Arnaud Network UPS Tools - Generic HID driver 0.34 (2.4.1-1952M) USB communication driver 0.31 0.000000 debug level is '1' 0.003207 upsdrv_initups... 0.090069 Using subdriver: APC HID 0.93 0.092504 Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1.000000 0.094466 Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x02, Offset: 0, Size: 8, Value: 2.000000 0.096460 Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x03, Offset: 0, Size: 8, Value: 3.000000 0.098455 Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x04, Offset: 0, Size: 8, Value: 3.000000 0.100452 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 4.000000 0.102456 Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x06, Offset: 0, Size: 8, Value: 1.000000 0.102938 Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x06, Offset: 8, Size: 8, Value: 2.000000 0.104462 Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x0e, Offset: 0, Size: 8, Value: 100.000000 0.104932 Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x0e, Offset: 8, Size: 8, Value: 100.000000 0.106470 Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000 0.106969 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 100.000000 0.108455 Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID: 0x10, Offset: 0, Size: 8, Value: 1.000000 0.108924 Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID: 0x10, Offset: 8, Size: 8, Value: 1.000000 0.110456 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 8, Value: 50.000000 0.116625 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 10.000000 0.222510 Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, ReportID: 0x09, Offset: 0, Size: 16, Value: 13534.000000 0.224477 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0d, Offset: 0, Size: 16, Value: 2160.000000 0.225418 Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x0d, Offset: 0, Size: 16, Value: 2160.000000 0.227465 Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: -1.000000 0.229453 Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, Offset: 0, Size: 24, Value: -1.000000 0.231463 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, ReportID: 0x08, Offset: 0, Size: 24, Value: 120.000000 0.231957 Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 0x08, Offset: 0, Size: 24, Value: 120.000000 0.233456 Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 16, Value: 24.000000 0.326507 Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 0, Size: 16, Value: 27.400000 0.362493 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, ReportID: 0x14, Offset: 0, Size: 8, Value: 1.000000 0.363524 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 1.000000 0.365470 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000 0.366476 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0.000000 0.366960 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000 0.367418 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000 0.367869 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID: 0x07, Offset: 2, Size: 1, Value: 1.000000 0.368332 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 1.000000 0.368771 Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input, ReportID: 0x07, Offset: 3, Size: 1, Value: 1.000000 0.369265 Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 0x07, Offset: 3, Size: 1, Value: 1.000000 0.369715 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000 0.370185 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000 0.370681 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Input, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000 0.371212 Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: Feature, ReportID: 0x07, Offset: 5, Size: 1, Value: 0.000000 0.371665 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000 0.372124 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000 0.372577 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000 0.373045 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000 0.373496 Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input, ReportID: 0x07, Offset: 8, Size: 1, Value: 0.000000 0.373981 Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature, ReportID: 0x07, Offset: 8, Size: 1, Value: 0.000000 0.374478 Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input, ReportID: 0x07, Offset: 9, Size: 1, Value: 0.000000 0.374968 Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 0x07, Offset: 9, Size: 1, Value: 0.000000 0.375410 Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, ReportID: 0x07, Offset: 10, Size: 1, Value: 0.000000 0.375892 Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x07, Offset: 10, Size: 1, Value: 0.000000 0.376338 Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Input, ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000 0.376840 Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type: Feature, ReportID: 0x07, Offset: 11, Size: 1, Value: 0.000000 0.377294 Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x07, Offset: 12, Size: 1, Value: 0.000000 0.377760 Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, ReportID: 0x07, Offset: 12, Size: 1, Value: 0.000000 0.379454 Path: UPS.Battery.Test, Type: Input, ReportID: 0x16, Offset: 0, Size: 8, Value: 6.000000 0.379961 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x16, Offset: 0, Size: 8, Value: 6.000000 0.381444 Path: UPS.Battery.APCBattCapBeforeStartup, Type: Input, ReportID: 0x17, Offset: 0, Size: 8, Value: 0.000000 0.381950 Path: UPS.Battery.APCBattCapBeforeStartup, Type: Feature, ReportID: 0x17, Offset: 0, Size: 8, Value: 0.000000 0.383449 Path: UPS.Battery.ff86001a, Type: Input, ReportID: 0x1b, Offset: 0, Size: 8, Value: 3.000000 0.384197 Path: UPS.Battery.ff86001a, Type: Feature, ReportID: 0x1b, Offset: 0, Size: 8, Value: 3.000000 0.385452 Path: UPS.Battery.ff86001b, Type: Input, ReportID: 0x1c, Offset: 0, Size: 8, Value: 0.000000 0.385905 Path: UPS.Battery.ff86001b, Type: Feature, ReportID: 0x1c, Offset: 0, Size: 8, Value: 0.000000 0.492502 Path: UPS.Battery.ManufacturerDate, Type: Input, ReportID: 0x15, Offset: 0, Size: 16, Value: 13534.000000 0.493575 Path: UPS.Battery.ManufacturerDate, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: 13534.000000 0.495468 Path: UPS.Battery.RemainingCapacity, Type: Feature, ReportID: 0x18, Offset: 0, Size: 16, Value: 100.000000 0.497450 Path: UPS.Battery.RemainingTimeLimit, Type: Input, ReportID: 0x1a, Offset: 0, Size: 16, Value: 120.000000 0.497921 Path: UPS.Battery.RemainingTimeLimit, Type: Feature, ReportID: 0x1a, Offset: 0, Size: 16, Value: 120.000000 0.499454 Path: UPS.Battery.RunTimeToEmpty, Type: Feature, ReportID: 0x19, Offset: 0, Size: 16, Value: 2160.000000 0.582506 Path: UPS.Battery.Temperature, Type: Feature, ReportID: 0x1e, Offset: 0, Size: 16, Value: 294.200000 0.584470 Path: UPS.Battery.ConfigVoltage, Type: Feature, ReportID: 0x1f, Offset: 0, Size: 16, Value: 24.000000 0.672488 Path: UPS.Battery.Voltage, Type: Feature, ReportID: 0x1d, Offset: 0, Size: 16, Value: 27.400000 0.766514 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 16, Value: 234.700000 0.882497 Path: UPS.Input.APCLineFailCause, Type: Input, ReportID: 0x21, Offset: 0, Size: 8, Value: 5.000000 0.882610 Path: UPS.Input.APCLineFailCause, Type: Feature, ReportID: 0x21, Offset: 0, Size: 8, Value: 5.000000 0.886274 Path: UPS.Input.APCSensitivity, Type: Input, ReportID: 0x22, Offset: 0, Size: 8, Value: 2.000000 0.886421 Path: UPS.Input.APCSensitivity, Type: Feature, ReportID: 0x22, Offset: 0, Size: 8, Value: 2.000000 0.972498 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x2c, Offset: 0, Size: 16, Value: 31.200000 1.062618 Path: UPS.Output.Frequency, Type: Feature, ReportID: 0x2a, Offset: 0, Size: 16, Value: 50.000000 1.152475 Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x2b, Offset: 0, Size: 16, Value: 234.700000 1.154478 Path: UPS.Output.ConfigVoltage, Type: Input, ReportID: 0x2d, Offset: 0, Size: 16, Value: 230.000000 1.154584 Path: UPS.Output.ConfigVoltage, Type: Feature, ReportID: 0x2d, Offset: 0, Size: 16, Value: 230.000000 1.156449 Path: UPS.Output.HighVoltageTransfer, Type: Input, ReportID: 0x23, Offset: 0, Size: 16, Value: 253.000000 1.156558 Path: UPS.Output.HighVoltageTransfer, Type: Feature, ReportID: 0x23, Offset: 0, Size: 16, Value: 253.000000 1.158630 Path: UPS.Output.LowVoltageTransfer, Type: Input, ReportID: 0x24, Offset: 0, Size: 16, Value: 208.000000 1.158741 Path: UPS.Output.LowVoltageTransfer, Type: Feature, ReportID: 0x24, Offset: 0, Size: 16, Value: 208.000000 1.160450 Path: UPS.Output.APCDelayBeforeStartup, Type: Input, ReportID: 0x25, Offset: 0, Size: 16, Value: 60.000000 1.160557 Path: UPS.Output.APCDelayBeforeStartup, Type: Feature, ReportID: 0x25, Offset: 0, Size: 16, Value: 60.000000 1.162481 Path: UPS.Output.APCShutdownAfterDelay, Type: Input, ReportID: 0x26, Offset: 0, Size: 16, Value: 90.000000 1.162588 Path: UPS.Output.APCShutdownAfterDelay, Type: Feature, ReportID: 0x26, Offset: 0, Size: 16, Value: 90.000000 1.164448 Path: UPS.Output.DelayBeforeShutdown, Type: Feature, ReportID: 0x27, Offset: 0, Size: 16, Value: -1.000000 1.166473 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x28, Offset: 0, Size: 16, Value: -1.000000 1.168441 Path: UPS.Output.DelayBeforeReboot, Type: Feature, ReportID: 0x29, Offset: 0, Size: 24, Value: -1.000000 1.170457 Path: UPS.iProduct, Type: Feature, ReportID: 0x2e, Offset: 0, Size: 8, Value: 5.000000 1.172423 Path: UPS.iSerialNumber, Type: Feature, ReportID: 0x2f, Offset: 0, Size: 8, Value: 2.000000 1.174451 Path: UPS.iManufacturer, Type: Feature, ReportID: 0x30, Offset: 0, Size: 8, Value: 3.000000 1.176419 Path: UPS.iName, Type: Feature, ReportID: 0x31, Offset: 0, Size: 8, Value: 6.000000 1.178448 Path: UPS.APC_UPS_FirmwareRevision, Type: Feature, ReportID: 0x34, Offset: 0, Size: 8, Value: 7.000000 1.180445 Path: UPS.APC_USB_FirmwareRevision, Type: Feature, ReportID: 0x37, Offset: 0, Size: 8, Value: 8.000000 1.182454 Path: UPS.APCPanelTest, Type: Feature, ReportID: 0x32, Offset: 0, Size: 8, Value: 1.000000 1.296479 Path: UPS.ManufacturerDate, Type: Feature, ReportID: 0x35, Offset: 0, Size: 16, Value: 13534.000000 1.332472 Path: UPS.ff860027, Type: Feature, ReportID: 0x3e, Offset: 0, Size: 32, Value: 0.000000 1.334480 Path: UPS.ff860028, Type: Feature, ReportID: 0x3f, Offset: 0, Size: 32, Value: 0.000000 1.336430 Path: UPS.AudibleAlarmControl, Type: Input, ReportID: 0x36, Offset: 0, Size: 8, Value: 1.000000 1.336526 Path: UPS.AudibleAlarmControl, Type: Feature, ReportID: 0x36, Offset: 0, Size: 8, Value: 1.000000 1.338472 Path: UPS.PresentStatus.Charging, Type: Input, ReportID: 0x33, Offset: 0, Size: 1, Value: 0.000000 1.338577 Path: UPS.PresentStatus.Charging, Type: Feature, ReportID: 0x33, Offset: 0, Size: 1, Value: 0.000000 1.338666 Path: UPS.PresentStatus.Discharging, Type: Input, ReportID: 0x33, Offset: 1, Size: 1, Value: 0.000000 1.338755 Path: UPS.PresentStatus.Discharging, Type: Feature, ReportID: 0x33, Offset: 1, Size: 1, Value: 0.000000 1.338844 Path: UPS.PresentStatus.ACPresent, Type: Input, ReportID: 0x33, Offset: 2, Size: 1, Value: 1.000000 1.338932 Path: UPS.PresentStatus.ACPresent, Type: Feature, ReportID: 0x33, Offset: 2, Size: 1, Value: 1.000000 1.339022 Path: UPS.PresentStatus.BatteryPresent, Type: Input, ReportID: 0x33, Offset: 3, Size: 1, Value: 1.000000 1.339111 Path: UPS.PresentStatus.BatteryPresent, Type: Feature, ReportID: 0x33, Offset: 3, Size: 1, Value: 1.000000 1.339200 Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Input, ReportID: 0x33, Offset: 4, Size: 1, Value: 0.000000 1.339290 Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x33, Offset: 4, Size: 1, Value: 0.000000 1.339396 Path: UPS.PresentStatus.ShutdownRequested, Type: Input, ReportID: 0x33, Offset: 5, Size: 1, Value: 0.000000 1.339484 Path: UPS.PresentStatus.ShutdownRequested, Type: Feature, ReportID: 0x33, Offset: 5, Size: 1, Value: 0.000000 1.339572 Path: UPS.PresentStatus.ShutdownImminent, Type: Input, ReportID: 0x33, Offset: 6, Size: 1, Value: 0.000000 1.339660 Path: UPS.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x33, Offset: 6, Size: 1, Value: 0.000000 1.339750 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Input, ReportID: 0x33, Offset: 7, Size: 1, Value: 0.000000 1.339839 Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x33, Offset: 7, Size: 1, Value: 0.000000 1.339928 Path: UPS.PresentStatus.CommunicationLost, Type: Input, ReportID: 0x33, Offset: 8, Size: 1, Value: 0.000000 1.340016 Path: UPS.PresentStatus.CommunicationLost, Type: Feature, ReportID: 0x33, Offset: 8, Size: 1, Value: 0.000000 1.340106 Path: UPS.PresentStatus.NeedReplacement, Type: Input, ReportID: 0x33, Offset: 9, Size: 1, Value: 0.000000 1.340195 Path: UPS.PresentStatus.NeedReplacement, Type: Feature, ReportID: 0x33, Offset: 9, Size: 1, Value: 0.000000 1.340283 Path: UPS.PresentStatus.Overload, Type: Input, ReportID: 0x33, Offset: 10, Size: 1, Value: 0.000000 1.340369 Path: UPS.PresentStatus.Overload, Type: Feature, ReportID: 0x33, Offset: 10, Size: 1, Value: 0.000000 1.340460 Path: UPS.PresentStatus.VoltageNotRegulated, Type: Input, ReportID: 0x33, Offset: 11, Size: 1, Value: 0.000000 1.340549 Path: UPS.PresentStatus.VoltageNotRegulated, Type: Feature, ReportID: 0x33, Offset: 11, Size: 1, Value: 0.000000 1.340641 Path: UPS.PresentStatus.ff860080, Type: Input, ReportID: 0x33, Offset: 12, Size: 1, Value: 0.000000 1.340730 Path: UPS.PresentStatus.ff860080, Type: Feature, ReportID: 0x33, Offset: 12, Size: 1, Value: 0.000000 1.340917 Detected a UPS: American Power Conversion/Smart-UPS 750 RM FW:619.3.I USB FW:8.1 1.348720 upsdrv_initinfo... 1.351981 upsdrv_updateinfo... 1.414506 Got 1 HID objects... 1.442458 Quick update... 1.443118 upsdrv_updateinfo... 1.478508 Got 1 HID objects... 1.482576 Quick update... 3.442723 upsdrv_updateinfo... 3.462751 Got 1 HID objects... 3.522401 Quick update... ^C 4.175906 Signal 2: exiting 4.175983 upsdrv_cleanup... _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

