[Nut-upsuser] persistent "low battery" condition

Graham Menhennitt
2015-01-09T04:43:33Z

Hello Nutters,

I'm running nut 2.7.2 on FreeBSD 10-stable (via the FreeBSD port) with
an APC Back-UPS CS 350 connected via USB. I get persistent (every few
minutes) messages logged "battery is low" but I don't understand
why. I
don't think it's for the reason described in the FAQ (but I'm not
100%
sure).

In the trace output I can see that UPS.PowerSummary.RunTimeToEmpty is
usually around 150 - 170 seconds. Occasionally it drops to 105. I don't
see any reason why the load would be changing significantly. In any
case, I've set the threshold to 90 seconds in ups.conf.

See below for debug info.

If somebody could offer suggestions on how to fix it, I'd be very grateful.

Thanks in advance,
    Graham

ups.conf:

    [maxwell]
            driver = usbhid-ups
            port = auto
            override.battery.runtime.low = 90


uspc output:

    battery.charge: 100
    battery.charge.low: 10
    battery.charge.warning: 50
    battery.date: 2005/04/07
    battery.mfr.date: 2005/04/07
    battery.runtime: 165
    battery.runtime.low: 90
    battery.temperature: 29.2
    battery.type: PbAc
    battery.voltage: 13.5
    battery.voltage.nominal: 12.0
    device.mfr: American Power Conversion
    device.model: Back-UPS CS 350
    device.serial: BB0515022057
    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: APC HID 0.95
    driver.version.internal: 0.38
    input.sensitivity: medium
    input.transfer.high: 266
    input.transfer.low: 180
    input.voltage: 250.0
    input.voltage.nominal: 230
    output.frequency: 49.0
    output.voltage: 230.0
    output.voltage.nominal: 230.0
    ups.beeper.status: enabled
    ups.delay.shutdown: 20
    ups.delay.start: 30
    ups.firmware: 807.q5.I
    ups.firmware.aux: q5
    ups.load: 71.0
    ups.mfr: American Power Conversion
    ups.mfr.date: 2005/04/07
    ups.model: Back-UPS CS 350
    ups.productid: 0002
    ups.realpower.nominal: 210
    ups.serial: BB0515022057
    ups.status: OL
    ups.test.result: No test initiated
    ups.timer.reboot: 0
    ups.timer.shutdown: -1
    ups.timer.start: 0
    ups.vendorid: 051d

tail of /var/log/ups.log:

    20150109 134451 100 248.0 53.0 [OL] NA NA
    20150109 134951 100 248.0 47.0 [OL] NA NA
    20150109 135451 100 248.0 54.0 [OL] NA NA
    20150109 135951 100 248.0 50.0 [OL] NA NA
    20150109 140451 100 248.0 73.0 [OL] NA NA
    20150109 140951 100 248.0 77.0 [OL LB] NA NA
    20150109 141451 100 248.0 72.0 [OL] NA NA
    20150109 141951 100 248.0 72.0 [OL] NA NA
    20150109 142451 100 250.0 73.0 [OL] NA NA
    20150109 142951 100 250.0 68.0 [OL] NA NA
    20150109 143451 100 250.0 67.0 [OL] NA NA
    20150109 143951 100 250.0 68.0 [OL] NA NA
    20150109 144451 100 250.0 65.0 [OL] NA NA
    20150109 144951 100 248.0 70.0 [OL] NA NA
    20150109 145451 100 250.0 72.0 [OL] NA NA
    20150109 145951 100 248.0 71.0 [OL] NA NA
    20150109 150451 100 250.0 66.0 [OL] NA NA
    20150109 150951 100 250.0 72.0 [OL] NA NA
    20150109 151451 100 250.0 66.0 [OL] NA NA
    20150109 151951 100 250.0 73.0 [OL] NA NA

output of /usr/local/libexec/nut/usbhid-ups -a maxell -DD at a time when
low battery is reported:

    161.408239     refresh_report_buffer: expected 5 bytes, but got 3
    instead
     161.408313     Path: UPS.Input.Voltage, Type: Feature, ReportID:
    0x20, Offset: 0, Size: 32, Value: 250
     161.419115     Path: UPS.Input.ConfigVoltage, Type: Feature,
    ReportID: 0x46, Offset: 0, Size: 8, Value: 230
     161.428351     Path: UPS.Output.Voltage, Type: Feature, ReportID:
    0x2b, Offset: 0, Size: 16, Value: 230
     161.439089     refresh_report_buffer: expected 3 bytes, but got 2
    instead
     161.439167     Path: UPS.Output.ConfigVoltage, Type: Feature,
    ReportID: 0x2d, Offset: 0, Size: 16, Value: 230
     161.448260     Path: UPS.Output.Frequency, Type: Feature, ReportID:
    0x2a, Offset: 0, Size: 16, Value: 50
     163.098638     upsdrv_updateinfo...
     163.183571     Got 1 HID objects...
     163.183657     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input,
    ReportID: 0x0d, Offset: 0, Size: 16, Value: 105
     163.183686     Quick update...
     163.190347     Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
    Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: -1
     163.201247     Path: UPS.PowerSummary.DelayBeforeReboot, Type:
    Feature, ReportID: 0x13, Offset: 0, Size: 24, Value: 0
     163.210345     Path: UPS.Output.DelayBeforeStartup, Type: Feature,
    ReportID: 0x28, Offset: 0, Size: 16, Value: 0
     163.221472     Path: UPS.PowerSummary.PresentStatus.ACPresent,
    Type: Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 1
     163.221585     Path: UPS.PowerSummary.PresentStatus.Discharging,
    Type: Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0
     163.221614     Path: UPS.PowerSummary.PresentStatus.Charging, Type:
    Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0
     163.221643     Path:
    UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
    Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0
     165.108555     upsdrv_updateinfo...
     165.231693     Got 1 HID objects...
     165.231811     Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input,
    ReportID: 0x0d, Offset: 0, Size: 16, Value: 142
     165.231841     Quick update...
     165.238711     Path: UPS.PowerSummary.DelayBeforeShutdown, Type:
    Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: -1
     165.247693     Path: UPS.PowerSummary.DelayBeforeReboot, Type:
    Feature, ReportID: 0x13, Offset: 0, Size: 24, Value: 0
     165.258711     Path: UPS.Output.DelayBeforeStartup, Type: Feature,
    ReportID: 0x28, Offset: 0, Size: 16, Value: 0
     165.267595     Path: UPS.PowerSummary.PresentStatus.ACPresent,
    Type: Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 1
     165.267702     Path: UPS.PowerSummary.PresentStatus.Discharging,
    Type: Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0
     165.267731     Path: UPS.PowerSummary.PresentStatus.Charging, Type:
    Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0
     165.267760     Path:
    UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
    Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0


-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150109/09aeaad8/attachment-0001.html>