Re: [Apcupsd-users] Communications with UPS ups0 restored messages
Brought to you by:
adk0212
|
From: Ted M. <te...@mi...> - 2022-11-17 00:34:31
|
This only happens on certain USB chipsets in certain motherboards and certain APC UPSes. And it is not limited to APC upses. I have for example a NVR setup that has 2 USB security cams on it. It works fine if the cams are in specific ports. But different ports one of the cams will start dropping out. I moved both cams to a newer PC and they both became unreliable This was under the latest version of Ubuntu. Eventually I wiped and reload the original hardware with the latest Ubuntu version and put the cams back on the ports they were happy with and both are running fine right now. There has been a ton of attention in the past paid to the USB driver you can dig through the list archives. Unless a developer has hardware that acts like this there won't be any attention paid to this problem. The "Communications restored" messages are valuable because they tell you that the USB channel on your PC is not reliable when used on that USB. You don't want to miss a power loss message that comes through right when the USB system is down so don't use that USB port. Some people have taken old Raspberry Pis and turned them into apcupsd servers that act as network servers and are plugged into the UPS via USB. Cost of one of these off Ebay is around $30 for an older RP2 Ted On 11/16/2022 6:57 AM, Shawn Heisey wrote: > I see a number of "Communications with UPS ups0 restored" messages > from apcupsd. But almost never see the "lost" message unless > communication really is lost, which happens when I unplug the USB cable. > > Some time ago, I looked into the code, and discovered this was because > it takes steps to not send the "lost" message unless it really is > lost. But it doesn't apply any similar check for the "restored" message. > > I tried to modify the code so that it will only send the "restored" > message in cases where a "lost" message had been sent previously, but > none of my attempts to do that actually worked. > > So I have a feature/change request: Only send "communication > restored" when a "communication lost" message has been sent. Logging > both events even when it is determined they are not real is fine, as > long as no email is sent and syslog doesn't send a console message. > > Thanks, > Shawn > > > > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > |