Page 2 of 5

Re: UPS losing connection to TOS

Posted: 04 Jun 2024, 05:33
by KWguy
ckellawan wrote: 03 Jun 2024, 01:48 Looking at my own configuration, the only IP addresses I have in the list are client computers that are also plugged into the UPS, but are not directly attached via USB. In my case, my NAS is connected to the UPS via USB. I think listing the NAS's IP, might be your issue.
Thank your reply to my issue.

In testing I have tried only the UPS connected to one TNAS via USB and not connected my other TNAS. I get the same issue... after a few minutes the TNAS loses connection to the UPS.

Good news, I heard from Terramaster tech support and they are still trying to help me.

Re: UPS losing connection to TOS

Posted: 05 Jun 2024, 21:42
by ckellawan
Not sure how I missed that, thanks.

Re: UPS losing connection to TOS

Posted: 15 Sep 2024, 17:32
by lshollis2024
I have the same disconnection problem with my TM F4-423 and my Cyberpower CP1500PFCLCD. It connects and reads the UPS info but a few minutes later the box on the ups page is unchecked. And if you click that box again it says no usb device is attached. But if you unplug the usb cable you get a message that a usb device was unplugged. Something isn’t right.

Re: UPS losing connection to TOS

Posted: 15 Sep 2024, 20:29
by KWguy
lshollis2024 wrote: 15 Sep 2024, 17:32 I have the same disconnection problem with my TM F4-423 and my Cyberpower CP1500PFCLCD. It connects and reads the UPS info but a few minutes later the box on the ups page is unchecked. And if you click that box again it says no usb device is attached. But if you unplug the usb cable you get a message that a usb device was unplugged. Something isn’t right.
Are you on TOS 5 as well?

I had the following issues with my UPS device connected to two NAS devices:
1. The fill-in UPS info was not saved;
2. The “Enable UPS support” becomes unchecked;
3. When UPS power is unplugged, the NAS enters safe move, and when the power is back, the NAS is not accessible.

They were unable to reproduce issues #1 & #2 and were trying to buy the same brand and model number for further testing. They found out the model of UPS I am using is not available in China and were unable to troubleshoot further.

They suggested I upgrade to TOS 6 beta to see if that resolved my problem. I decided against doing this until TOS6 is a fully released as a stable OS.

As frustrating as it is with the NAS software not working as it should, the UPS is still keeping my NAS devices conneced to power in case of a poer failure. The only thing I do not get is the auto shutdown after a period of time goes by.

My suggestion is you continue to work with their support department to see if they can get any further with yours than they did with mine.

Re: UPS losing connection to TOS

Posted: 16 Sep 2024, 21:31
by lshollis2024
I am on TOS 6.0.461. My UPS is on the list of compatible devices, cp1500pfclcd. The usb connection seems to time out and too thinks there is no ups attached. It looks like usb autosuspend is activated as shown here in a console window.

SteveH@TNAS-3ADB:~$ cat /sys/module/usbcore/parameters/autosuspend
2

I can't turn this off because I can't run sudo. Seems I am locked out of editing system files.
Should change usbcore.autosuspend=-1 but I can't do it.
Also found that the autodetect UPS tool gets the UPS device wrong.

The UPS is listed in the usb devices with lsusb, but the Model number is not correct. Same maker but wrong model.
The UPS (wrong model) is still listed in the connected devices with lsusb even after the system thinks there is no ups attached.
If I could edit system files I should be able to fix this.'

Re: UPS losing connection to TOS

Posted: 16 Sep 2024, 21:59
by Gremlin
lshollis2024 wrote: 16 Sep 2024, 21:31 If I could edit system files I should be able to fix this.'
No doubt (and there is more than one way to skin the proverbial). But, the next time the system updates your changes would probably be reversed and you will be back where you started.

Re: UPS losing connection to TOS

Posted: 16 Sep 2024, 22:14
by lshollis2024
There is a way to set this parameter in the /etc/defaults directory. You need to add a line usbcore.autosuspend=-1 in /etc/defaults/grub. But it looks like grub isn't being used here. I am sure that TM knows where to make this change so it will be set on reboot. All of this is documented on various linux user sites.

Re: UPS losing connection to TOS

Posted: 17 Sep 2024, 04:47
by lshollis2024
I may have found a way to stop the usb to UPS connection from disconnecting. I plugged the usb cable into the usb 2 connector that normally holds the boot loader inside the case. I extended that connection, with a ribbon cable and a new usb-female socket, to the backside of the box and then plugged the UPS cable into the usb-female socket. The system recognized the device and so far the UPS has remained connected for over 3 hours without disconnection. Normally it would drop out after about 20 min when I plugged the cable into the usb 3.2 connectors. I will believe it works if it stays connected for days. It could be something to do with the usb 2.0 devices which are not being powered down with autosuspend while the 3.2 ones are. Hopefully someone at TM can respond to this question.

Re: UPS losing connection to TOS

Posted: 17 Sep 2024, 05:22
by Gremlin
That could be a winner. I have some medical readers that only work on usb2. Might a usb2 cable between ups and nas also work?

Re: UPS losing connection to TOS

Posted: 17 Sep 2024, 06:00
by KWguy
Gremlin wrote: 17 Sep 2024, 05:22 That could be a winner. I have some medical readers that only work on usb2. Might a usb2 cable between ups and nas also work?
Following...