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.
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').
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.
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!
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').
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
Product:MS-7D20
Model:Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
Memory:15 GiB