[Nut-upsuser] Weird Load and Battery Temp Readings

Bob Blackwell rc.blackwell at yahoo.ca
Fri Mar 13 23:21:31 UTC 2009


I've acquired and installed NUT 2.4.1 on a D-Link DNS323 NAS. With 
exception of Load and Battery Temp readings all works well. A upsc 
ups at localhost command returns;

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2001/09/25
battery.mfr.date: 2008/06/05
battery.runtime: 2122
battery.runtime.low: 120
battery.temperature: 3022999999999998800
battery.type: PbAc
battery.voltage: 27.9
battery.voltage.nominal: 24.0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: USB
driver.version: 2.4.1
driver.version.data: APC HID 0.93
driver.version.internal: 0.34
input.voltage: 121.0
input.voltage.nominal: 120
output.voltage: 120.0
output.voltage.nominal: 120.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 9.o2 .D
ups.firmware.aux: o2
ups.load: 
229999999999999940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
ups.mfr: American Power Conversion
ups.mfr.date: 2007/10/24
ups.model: Back-UPS RS 900
ups.productid: 0002
ups.serial: 5B0743U08220
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.vendorid: 051d


My ups.conf is;
[APC_UPS]
    driver = usbhid-ups
    port = USB
    desc = "Back-UPS RS 900"

The DNS323 has the following attributes;
- 500 Mhz Marvell 88F5181 proprietary Feroceon ARM CPU architecture 
<http://www.marvell.com/press/pressNewsDisplay.do?releaseID=544>
- linux 2.6.12.6
- RAM = Two 32 MB Nanya NT5DS16M16CS-6 <http://www.nanoamp.com/>
- 1 port USB2.0 <http://wiki.dns323.info/hardware:usb>
- U-Boot 1.7.3-5182 Bootloader 
<ftp://ftp.dlink.com/GPL/DNS-323/u-boot_1_7_3_5182.tgz>




The systems message.log contains several lines with;

Mar 13 19:16:20 DNS323_NAS user.warn kernel: usb 1-1.2: usbfs: process 
26398 (usbhid-ups) did not claim interface 0 before use



Issuing a usbhid-ups -DD -a APC_UPS reveals;

Checking device (04F9/001B) (001/006)
- VendorID: 04f9
- ProductID: 001b
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
Checking device (051D/0002) (001/004)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: American Power Conversion
- Product: Back-UPS RS 900 FW:9.o2 .D USB FW:o2
- Serial Number: 5B0743U08220
- Bus: 001
Trying to match device
Device matches
failed to claim USB device: could not claim interface 0: Device or 
resource busy
detached kernel driver from USB device...
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0c, 
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 
0x11, Offset: 0, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 
0x0f, Offset: 0, Size: 8, Value: 50.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x0d, 
Offset: 0, Size: 16, Value: 2347.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, ReportID: 
0x08, Offset: 0, Size: 16, Value: 120.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, ReportID: 0x0b, Offset: 
0, Size: 16, Value: 27.930000
Path: UPS.Battery.ConfigVoltage, Type: Feature, ReportID: 0x1f, Offset: 
0, Size: 16, Value: 24.000000
Path: UPS.Battery.Temperature, Type: Feature, ReportID: 0x1e, Offset: 0, 
Size: 16, Value: 
3022999999999998800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, 
Offset: 0, Size: 8, Value: 4.000000
Path: UPS.Battery.ManufacturerDate, Type: Feature, ReportID: 0x15, 
Offset: 0, Size: 16, Value: 14533.000000
Path: UPS.Battery.APCBattReplaceDate, Type: Feature, ReportID: 0x45, 
Offset: 0, Size: 24, Value: 599297.000000
Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x2c, Offset: 0, 
Size: 16, Value: 
200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 
0x12, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 
0x12, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: 0.000000
Path: UPS.Battery.Test, Type: Feature, ReportID: 0x16, Offset: 0, Size: 
8, Value: 6.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.ManufacturerDate, Type: Feature, ReportID: 0x35, Offset: 0, 
Size: 16, Value: 14168.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 
0x07, Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, 
ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 
0x07, Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, 
ReportID: 0x07, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 
0x07, Offset: 10, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, 
ReportID: 0x07, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: 
Feature, ReportID: 0x07, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, 
ReportID: 0x07, Offset: 3, Size: 1, Value: 1.000000
Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 
32, Value: 120.000000
Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x46, Offset: 0, 
Size: 8, Value: 120.000000
Path: UPS.Output.Voltage, Type: Feature, ReportID: 0x2b, Offset: 0, 
Size: 16, Value: 120.000000
Path: UPS.Output.ConfigVoltage, Type: Feature, ReportID: 0x2d, Offset: 
0, Size: 16, Value: 120.000000
Path: UPS.APCPanelTest, Type: Feature, ReportID: 0x32, Offset: 0, Size: 
8, Value: 0.000000
Path: UPS.APCPanelTest, Type: Feature, ReportID: 0x32, Offset: 0, Size: 
8, Value: 0.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 
0x12, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 
0x12, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: 0.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 
0x14, Offset: 0, Size: 8, Value: 2.000000
Got 1 HID objects...
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x0d, 
Offset: 0, Size: 16, Value: 2347.000000
Quick update...
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 
0x12, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, 
Offset: 0, Size: 24, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 
0x07, Offset: 2, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, 
ReportID: 0x07, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 
0x07, Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0.000000
Signal 2: exiting
upsdrv_cleanup...


Can anyone offer any suggestions as to why the readings are weird and 
how to fix this issue?
 

-- 
Bob Blackwell
Pickering, Ontario

www.afticarr.com

Organ donation can save a life. Please sign your organ donor card.




More information about the Nut-upsuser mailing list