Matthieu CERDA
2021-Sep-21 13:09 UTC
[Nut-upsuser] Smart-UPS 1500 info though usbhid and apcsmart
Hello, I have a (trivial) question about interactions between NUT and an APC Smart-UPS 1500VA device. I found that the usbhid driver (on OpnSense, for the record) seems not to give a lot of output compared to what the manpage of apcsmart advertises: battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.runtime: 4773 battery.runtime.low: 150 battery.type: PbAc battery.voltage: 40.9 battery.voltage.nominal: 36.0 device.mfr: American Power Conversion device.model: Smart-UPS 1500 device.serial: DEADBEEFCAFECAFE device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no driver.version: 2.7.4 driver.version.data: APC HID 0.96 driver.version.internal: 0.41 ups.beeper.status: enabled ups.delay.shutdown: 20 ups.firmware: UPS 10.1 / ID=20 ups.mfr: American Power Conversion ups.mfr.date: 2020/01/26 ups.model: Smart-UPS 1500 ups.productid: 0003 ups.serial: DEADBEEFCAFECAFE ups.status: OL ups.timer.reboot: -1 ups.timer.shutdown: -1 ups.vendorid: 051d It is missing at least input / output voltage values, as well as being able to at least trigger a battery test: Instant commands supported on UPS [APC1500]: beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) shutdown.reboot - Shut down the load briefly while rebooting the UPS shutdown.stop - Stop a shutdown in progress Since, apparently, switching from USB to serial management on those requires restarting the UPS (and possibly a brain dead reset), I wanted to know if you think switching from USB to serial would yield a more complete feature set ? Thank you! -- Matthieu Cerda -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 495 bytes Desc: OpenPGP digital signature URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210921/77b1d6b6/attachment.sig>
Greg Troxel
2021-Sep-22 11:50 UTC
[Nut-upsuser] Smart-UPS 1500 info though usbhid and apcsmart
I'm far from an expert, but I would not really expect serial to work better. I would try to turn on debugging first. However, a UPS not reporting line in and line out voltage seems strange. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: not available URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210922/18d6d818/attachment.sig>
Andrea Venturoli
2021-Sep-22 12:05 UTC
[Nut-upsuser] Smart-UPS 1500 info though usbhid and apcsmart
On 9/21/21 3:09 PM, Matthieu CERDA via Nut-upsuser wrote:> Hello,Hello.> Since, apparently, switching from USB to serial management on those > requires restarting the UPS (and possibly a brain dead reset), I wanted > to know if you think switching from USB to serial would yield a more > complete feature set ?I've got a Smart-UPS 1500 attached via USB and I'm seeing the same features as you see; so I guess answer is no. As a side note, apcupsd gives me OUTPUTV (but no INPUTV) on one older (2006) Smart-UPS 1500, but it's missing on newer (~2019) ones (!!!). > battery.voltage: 40.9 > battery.voltage.nominal: 36.0 Just out of curiosity, do you have three 12V batteries inside the UPS? All the SmartUPS 1500 I've seen has two... (i.e. battery.voltage.nominal=24). bye av.