On 11/16/2026 4:22 AM, Lucas Bocchi via Nut-upsdev wrote:
Ted,

Your reply attributes claims to me that I did not make,

You are correct, it was not you who was running cheap UPS gear, I mistook you for Klaus Lenssen who was the original poster who was.  I apologize for that mistake.

and makes personal assumptions about my competence, experience, and equipment that you have no basis for making.

You are using victim parading in an attempt to invalidate what I said.  I'd refer you to the Monty Python skit "Repressed Citizen" in Quest for the Holy Grail for some education but I fear your funnybone may not be up to the task.  Still, I hope.

For the record, no I didn't make any sort of personal assumptions about your competence.

Yes I assumed what you implied regarding the necessity to get "accurate" readings from the analog real world at high speed to be not competent - because it is.  It's not possible to get them. That is a technical fact.

The distinction at the centre of this discussion is between a successful reading that returns an unchanged value and a failed reading that leaves an older value in the cache. Those are not equivalent.

I never said they were.  What I said is if the app author expects to ALWAYS get a valid reading from a driver when they query it - and does not respect some actual real life facts - such as it may take minutes to get a new reading - and so insists on too frequent queries of devices - and assumes there will ALWAYS be data supplied by the driver - then what else is the driver supposed to do?  If the driver is pushed to do something that's impossible then usually it returns garbage.  If it returns anything other than "a value" - such as a null - then the app isn't expecting this and the app crashes.  Returning a cached stale value is a compromise to satisfy unreasonable demands by the app author who should know better than to make impossible demands of the driver.

Greg Troxel's opinion is the driver should supply "unavailable" Which then was shot down by Jim as being unworkable.

Your opinion SEEMED to be that the driver should 'always' supply a 'valid' reading even if it's impossible for the real world to supply it.  Which is also unworkable.  If that was not the case and you have some other solution, then I probably misread what you were saying.

I will point out Lucas that your posts tend to be theory-driven, unconstrained by bringing actual real life reference devices into the discussion, and as such are rather difficult to understand what the point is you are driving at in many cases.  I find myself when reading them trying to map your idealized behavior to actual devices I've worked with before and often failing.

In an ideal world the app author would respect the real world and quit polling real world sensors too frequently - but they may elect to bring poll frequency value out as an option for the user - so you can easily end up with a situation where the app default is a poll every 5 minutes, and the app author knows more frequent polling would be pointless, and yet the user running the app is ignorant and sets the poll frequency to be every half a second because they are affronted that the real world does not conform to their bubble belief of how it should operate.

A battery voltage that remains unchanged for fifteen minutes may be perfectly valid if communication is working and the device continues to report it. The same number retained after communication has failed is not confirmation of the present state.

At no point did I ask to poll a UPS every microsecond, demand instantaneous sensor responses, or disregard the device's processing limits.

You are correct the other poster did.  My mistake.

My previous message explicitly acknowledged differences between devices, protocols, and update schedules. Explaining battery discharge curves, thermal inertia, or sensor lag does not answer the question I raised: how should software represent information whose validity it can no longer confirm?

In my EXPERIENCE with drivers written for the real world, most driver authors make the assumption it's better to return something than nothing.  I'm not saying at all that this is better than returning nothing.  I am with Greg on this - the driver SHOULD immediately return a null or some other value that's obviously bogus indicating "unavailable"  I don't see why Jim is asserting this is unworkable other than the fact that practically no app author or user would expect it.

Jim does correctly point out that there's a discrepancy here when he says:

"we have one program on the computer side getting that data (age=0 if you like) and another loop consuming and acting on it - whether in same program (mono driver/app) or another program"

In the NHS driver I developed, I handle data reception dynamically, based on the interval at which the microcontroller sends information. I do not attempt to read updates faster than it can provide them. Respecting the hardware's communication behaviour is a basic design requirement, not something I am disputing.

I agree that excessive polling can overload a device and that software must tolerate transient failures gracefully. However, whether a missed response results from overload, device scheduling, or a disconnected cable, that response has not supplied a fresh reading. Its cause matters for recovery and diagnosis; it does not make the previous value newly confirmed. Suitable timeouts and validity thresholds should reflect the hardware, rather than treating every delayed response as a catastrophic failure.

All of that is fine except what exactly are you talking about? Are you saying a suitable timeout and validity threshold IN THE APP should reflect the hardware - or suitable timeout and validity threshold's IN THE DRIVER should reflect the hardware?

So what of the case where BOTH respect the hardware - and you have a USER who incessantly clicks the "refresh" button on the app and then gets upset when he's doing it so fast he's overloading it and the apps response is to ignore the button click?

Likewise, applications should handle unavailable data without crashing. That is an argument for explicit error handling and a clear validity contract, not for making an old value indistinguishable from a current reading. Keeping the last known value can be useful. Presenting it with its age and validity is different from silently treating it as current.

Ultimately in the driver and app and the hardware chain this ends up in front of the user.  The user is the end consumer of the data the system produces.  if the user is hell bent on getting a new updated readout every second, and the app is displaying this extra data of age and validity, and because the hardware cannot supply a fresh reading every second the app is basically telling the user "no, your NOT going to get the reading every second and here's the validity data saying NO"  well then my experience with consumer users is they throw temper tantrums and claim the app is broken.

Which is precisely why the cyberpower UPS and it's driver that the originator of this thread was complaining about, lies and just supplies stale data.  It's a cheap UPS and the crappy-ass windows app supplied with it lies like a dog because the typical user buying such cheap gear is exactly the type that normally does not understand or care about the real world.

The example of a slowly changing battery temperature also does not resolve the operational risk of an old "online" status persisting after mains power has failed and communication has been lost. Different variables have different tolerances. I am not asking for perfect knowledge of the physical world; I am asking for the most accurate information the equipment can provide, including an honest indication when its current state is unknown.

Your assumptions about a $50 CyberPower UPS, and your contrast between office programmers and people who work on real equipment, are misplaced. I have worked with Internet service providers for more than twenty years. I climb towers over sixty metres high and maintain my own equipment. I am not describing a purely theoretical requirement from behind a desk. More importantly, nobody should have to provide a professional biography to have a technical argument addressed respectfully. Neither of us is entitled to talk down to the other.

I was the technical manager for an ISP for 12 years, we ran a full BGP table and the rest of it.  I am not doing that now because as you may know since you have worked with ISPs, the world's major telephone companies finally pulled their collective heads out of their asses that telephone lines were going to be replaced with data, and in the 2000's went on a buying spree acquiring private ISPs, and today there are no ISPs left, there are only telephone and cable companies.  Your grandfathers Bell Telephone is today's ISP.  And I had no interest in working for a telephone company when the number came up for my employer. Particularly since the telephone company that replace his ISP didn't do it by being polite and buying him out they just squished him.  Most ISP's today are like Big Oil.  It's kind of sad in a way because when me and my generation developed The Internet we had high ideals and we thought it would be different.  But it's Baby Bell all over again just more greedy if possible.

Prior to that I spend a decade in the software industry working with office programmers.  My Resume and bio is online you can look it up if you don't believe me.  Your experience is lucky IMHO if all the programmers you worked with were competent about anything outside of pure coding.  That's probably why so many of them are being laid off nowadays.  They blame AI for it but there's always been a lot of tunnel-vision coders out there.

I don't demand a professional biography from people I just listen to what they say and it's generally pretty easy to figure out after a while if they know what they are talking about.

What a consumer application hides behind a green icon does not establish what is appropriate for a critical remote installation.

Absolutely true.  But the Cyberpower UPS that started this _is_absolutely_ a consumer piece of kit and consumer app that comes with it.

Nor does saying "this is how real software is written" establish that a particular design is correct. Different operational requirements deserve configurable policies, not assumptions about what all users should accept.

That is why I proposed an explicit option, with behaviour appropriate to each driver, rather than imposing my requirements on everyone. If other users want to retain stale values, they should be able to do so, with their status made clear. My environment requires that stale values not be relied upon as current telemetry.

When the NHS driver I needed did not exist, I developed it. I am willing to implement and test improvements, and I welcome concrete technical criticism and contributions. You are equally welcome to propose or implement an alternative. Let us compare the actual behaviourand allow users to choose what fits their needs. Neither your preferences nor mine should be treated as universally superior.

It is interesting that this discussion is happening in the NUT forum - because NUT is one of those programs out there that attempts to convert consumer gear into something usable for a critical remote installation.

For example:

A consumer UPS is something like an APC BackUPS 1050 that supplies data via USB HID.

A commercial UPS is something like an APC SmartUPS rack mounted 1500 with a SNIP-compatible management card in it.

The difference in price is around $1000

But NUT treats both of these the same.

In certain cases - you can buy the cheap BackUPS and convert it from consumer use to commercial use - using NUT

But, when you boil it down ultimately a BackUPS is just a consumer UPS.  No matter how good NUT is, it can't overcome this. There are certain things that will never change between the 2 units.

This issue I think is at the real heart of the discussion.

I don't have an answer for this other than user training - which often involves popping people's bubbles.  And people are in general not happy when you tell them "no, really, that cheap $50 UPS  of yours is not as good as that $1500 UPS no matter what the software app tells you"

Ted


_______________________________________________
Nut-upsdev mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to