Αrchive: Connecting APC Smart UPS 1500 in FreeNAS 11.2 via USB - VincentSaelzler/HomeLab GitHub Wiki

Archive Notice

This page doesn't reflect the current status of the master branch. It's still great documentation, so I kept it around!

References

FreeNAS User Guide

Steps Taken

Plug in USB, and look for device name in logs.

ugen0.5: <American Power Conversion Smart-UPS 1500 RM FW617.3.D USB FW8.1> at usbus0

Initial attempt. Gave the device an identifier that I knew I had created. Wasn't sure what to put for Port or Hostname or Driver / Remote Host. These connection refused errors repeatedly show up in the logs. I believe the error rate matches the default polling frequency of 2 seconds.

Identifier: old-smart-1500
Driver / Remote Host: APC ups 1 Smart-UPS (apcsmart)
Port or Hostname: ugen0.5
=>
upsmon[7435]: UPS [old-smart-1500]: connect failed: Connection failure: Connection refused

Got a more specific suggestion on what to call the device, but still get same error.

Identifier: old-smart-1500
Driver / Remote Host: APC ups 1 Smart-UPS (apcsmart)
Port or Hostname: /dev/ugen0.5
=>
upsmon[7435]: UPS [old-smart-1500]: connect failed: Connection failure: Connection refused

Trying a USB version of the driver. The connection refused errors seem to have stopped; I'll take that as progress. Got a different error when trying to start the service.

Identifier: old-smart-1500
Driver / Remote Host: APC ups 2 Smart-UPS USB USB (usbhid-ups)
Port or Hostname: /dev/ugen0.5
=>
smartd[11056]: Configuration file /usr/local/etc/smartd.conf parsed but has no entries

Rebooted, then Whoops! I realized the last error message was caused because I was trying to start the smart service, not the UPS service.

It works!

# upsc old-smart-1500
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2006/10/17
battery.runtime: 6000
battery.runtime.low: 120
battery.temperature: 25.6
battery.type: PbAc
battery.voltage: 27.7
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS 1500 RM
device.serial: AS0643130730
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen0.5
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: APC HID 0.96
driver.version.internal: 0.41
input.sensitivity: high
input.transfer.high: 127
input.transfer.low: 106
input.voltage: 123.8
output.frequency: 60.0
output.voltage: 123.8
output.voltage.nominal: 120.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 617.3.D
ups.firmware.aux: 8.1
ups.load: 7.8
ups.mfr: American Power Conversion
ups.mfr.date: 2006/10/17
ups.model: Smart-UPS 1500 RM
ups.productid: 0002
ups.serial: AS0643130730
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
ups.vendorid: 051d