24.04.2 UPS Report

Very vague statement when a simple command would have told you everything for sure.

  • Which specific APC model?

My model is: APC Smart-UPS SMT1500IC 1500VA with SmartConnect

I am using USB and not the network card you can put in the slot.

Not sure, I’m using the usbhid-ups driver, and my input voltage is in the screenshot

---- very clearly there is no input voltage, etc with the usbhid-ups driver ----

Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.runtime: 6780
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 27.0
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS C 1000
device.serial: XXXXXXXX
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 30
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.version: 2.8.0
driver.version.data: APC HID 0.98
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.firmware: UPS 15.1 / ID=1005
ups.mfr: American Power Conversion
ups.mfr.date: 2016/03/04
ups.model: Smart-UPS C 1000
ups.productid: 0003
ups.serial: XXXXXXXX
ups.status: OL
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.vendorid: 051d

Pretty old UPS (2016?).

They are simply not collecting or reporting the Input Voltage in that model.

that is not true. the APC software shows all parameters. it is the usbhid-ups driver that does not have all the API info built in. The APC software is closed source, so the don’t have the API details. p.s. i have a APC SmartUPS 750VA from early 90s made in europe, sold in australia, working backing in europe. that is why i buy APC. they just go on and on

  • the apc_modbus driver support from NUT is available for serial and TCP/IP
  • It is in the final stages of being available for USB
  • the ModBus protocol might support more data points.

See:

Obviously TrueNAS would need to make this available.

Not a TrueNAS issue.
The UPS is not providing those values through the standard usbhid-ups interface.

That UPS is not ModBus, it is MicroLink, which NUT does not support.

Couple google searches would have given you the final answer:

The older APC SMC series does not support Modbus. AFAIK only the most recent SMC devices with SmartConnect may also be controlled trough Modbus.

As you have noticed the SMC devices only display rudimentary data through USB-HID. For full control these devices need to be controlled through the MicroLink protocol, which is what APC’s proprietary PowerChute software is using for communication as well.

Unfortunately MicroLink is also not supported by NUT yet (see #1426).

Apcupsd does not support MicroLink either.

  • Yes you are correct this is not a TrueNAS issue, which is basic what my post says
  • ModBus is a protocol that can interact with Microlink
  • Currently NUT supports ModBus on TCP/IP and serial but not USB. This is getting implemented but requires a libmodusb modified with rtu_usb. The relevant changes are being merged into the master repo for libmodusb.

so it will work in the not so distant future is what you are saying? nice.

@rco8d I can’t give a timescale but it is being worked on now and I personally don’t think it will be too long until the work is finished, then we will have to wait for it to be updated on TrueNAS SCALE.

APC Modbus Driver page: APC_MODBUS(8)

NB: the graphs issue that the original OP posted is a TrueNAS thing.

1 Like