Discuss, seek assistance, and report issues related to hardware components, such as hardware platforms, memory, network ports, power supplies, UPS systems, and so on.
I've verified this device is on the supported list but also found that there's an issue with the usbhid-ups driver as I've had similar issues with a pfsense firewall running NUT.
There is a workaround for pfsense (FreeBSD) of running the following command
usbconfig is not a recognized command by TOS, is there an updated or dev branch of usbhid-ups that you can get and integrate into a new update that has the issue patched out
Here's a link to an updated (dev) version of the driver https://forum.netgate.com/assets/upload ... hid-ups.gz
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
The NAS only recognizes the UPS for a couple minutes after a reboot or the UPS's USB cable being disconnected and reconnected. Then the UPS information section under hardware and power reverts to UPS not connected.
Every 2 minutes the system will execute "upsctl start" now since this is a background task
we add the following &>/home/yoursusername/upsstatus.txt to send all output to a status file you can manually verify that it is working
and avoid any errors with output to console from a script. Whenever you check the upsstatus file the time and dates should never be
more than 2 minutes old. If you have a mapped drive to this location, you can check the status from Windows.
This file is overwritten so it will not grow.
Conversely you can also use the following command to check it from a telnet session.
execute upscmd -l "uspname" from telnet session and you will see this.
Instant commands supported on UPS [ups]:
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)
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.battery.start.deep - Start a deep battery test
test.battery.start.quick - Start a quick battery test
test.battery.stop - Stop the battery test
if you look at the contents of upsstatus.txt what you should see is as follows. I have replaced my actual username with "yourusername"
"
2023-08-14 01:45:01 01:45:01.886 [INFO] /work/PKGS/Assembly/tosdeamon/cmd/upsctl/main.go:85: -------------------------------------------------
2023-08-14 01:45:01 01:45:01.886 [INFO] /work/PKGS/Assembly/tosdeamon/cmd/upsctl/main.go:88: first admin user: dmncstech
2023-08-14 01:45:04 01:45:04.887 [INFO] /work/PKGS/Assembly/tosdeamon/cmd/upsctl/main.go:181: got action: start
[DEBUG /bin/bash -c upsdrvctl stop;upsdrvctl -u yourusername start]
[DEBUG Using subdriver: CyberPower HID 0.4
]
[DEBUG /bin/bash -c upsmon -c stop;killall -9 upsmon;upsmon -u yourusername]
[DEBUG killall: upsmon: no process killed
kill: No such process
Using power down flag file /etc/killpower
UPS: ups@localhost (master) (power value 1)
]
[DEBUG /bin/bash -c /usr/sbin/upsd -c stop;killall -9 upsd;/usr/sbin/upsd -u yourusername]
[DEBUG killall: upsd: no process killed
fopen /var/run/upsd/upsd.pid: No such file or directory
listening on 0.0.0.0 port 3493
/var/state/ups is world readable
Connected to UPS [ups]: usbhid-ups-ups
/etc/upsd.users is world readable
]
2023-08-14 01:45:14 01:45:14.770 [INFO] /work/PKGS/Assembly/tosdeamon/cmd/upsctl/main.go:196: -------------------------------------------------