Page 1 of 1
CyberPower CP1000PFCLCD will not maintain connection
Posted: 30 Jun 2023, 02:21
by sam07
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
Code: Select all
usbconfig add_dev_quirk_vplh 0x2e51 0x0002 0x0000 0xffff UQ_HID_IGNORE
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
Re: CyberPower CP1000PFCLCD will not maintain connection
Posted: 02 Jul 2023, 04:39
by dmncstech
I too am having the same type of connection issues.
Just acquired the CP1500pfclcd and it doesn't remain connected.
It is on the approved list, the reason I ordered it.
What's the fix if anyone knows ????
Re: CyberPower CP1000PFCLCD will not maintain connection
Posted: 02 Jul 2023, 12:27
by TMroy
what did you mean it doesn't remain connected?
Re: CyberPower CP1000PFCLCD will not maintain connection
Posted: 07 Jul 2023, 02:28
by sam07
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.
Re: CyberPower CP1000PFCLCD will not maintain connection
Posted: 14 Aug 2023, 02:14
by dmncstech
After many hours of analyzing this problem I have a work-around till Terra Master fixes the issue.
Enjoy !!
Install Cron_Okm on the nas, make sure it is set for autostart
Next start a telnet session
now execute the following command
'crontab -e
in your favorite editor add the following line to Crontab
*/2 * * * * upsctl start &>/home/yoursusername/upsstatus.txt
Save it and you are done.
The way this works...
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: -------------------------------------------------