UPS setup problem

VOLCA

Cadet
Joined
May 1, 2023
Messages
3
Hi!
I'm trying to connect this PM Online-UPS 2kVA model to my TrueNAS server with a USB cable (type-A USB is connected to NAS, and type-B is to UPS).
by the following code, I think my UPS port is ttyACM0.
dmesg | grep -i usb
[ 4664.591532] usb 1-3: New USB device found, idVendor=04e2, idProduct=1410, bcdDevice= 0.03 [ 4664.600541] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4664.609856] cdc_acm 1-3:1.0: ttyACM0: USB ACM device

then on the UPS setting page, I tried different drivers of APC (like genericups, usbhid-ups and apcsmart). 'usbhid-ups' and 'apcsmart' doesn't work (showing "Error: Driver not connected" when I type' upsc ups').
1683009677969.png


by using genericups driver, UPS seems to be connected. Typing 'upsc ups' returns the following results. But I tried all UPS types on this page, and none of them work correctly, UPS status didn't change when disconnecting the UPS from the main power.
root@truenas[~]# upsc ups Init SSL without certificate database device.mfr: APC device.model: Back-UPS device.type: ups driver.name: genericups driver.parameter.pollinterval: 2 driver.parameter.port: /dev/ttyACM0 driver.parameter.synchronous: no driver.parameter.upstype: 1 driver.version: 2.7.4 driver.version.internal: 1.36 ups.mfr: APC ups.model: Back-UPS ups.status: OL

Later on, I find these pages.
https://www.cyberciti.biz/faq/how-to-install-apc-ups-on-freenas-server/
https://kirishima.it/mt/2020/11/freenas_113_apc_smartups.html
APC UPS was recognized as ugen device in their NAS, and 'usbhid-ups' driver works properly.

Was my problem caused by the wrong driver? Could anyone gives me some ideas?
Thanks!

OS Version:TrueNAS-SCALE-22.02.3
Product:MS-7D20
Model:Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
Memory:15 GiB
 
Joined
Jun 2, 2019
Messages
591
Welcome!

Did you start the service on the System Settings, Services, UPS?

Screenshot 2023-05-02 at 3.57.28 AM.png


Also, did you try leaving the port set to AUTO?

BTW, UPS Reporting graphs is broken in SCALE
 
Last edited:

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Top