On 11/17/2026 7:40 AM, Lucas Willian Bocchi wrote:

To answer your question directly about where the responsibilities belong: the 
driver knows the protocol, the equipment's limitations, and what it actually 
managed to obtain.

This is only true for custom-written drivers for specific devices.  General purpose drivers like the Microsoft USB UPS-HID are written as device-agnostic.  They can make assumptions but they don't know the equipment.  In some cases the driver authors - knowing this limitation - have installed tables of particularly egregious devices into the driver so the driver is aware of those devices limitations.

  upsd can track communication with the driver and the age of the information 
it receives. The application decides how to act when the data no longer meets 
the installation's requirements. The precise division of implementation 
responsibilities is open to discussion; the essential point is not to confuse 
them.

Keep in mind that being a proponent of custom-drivers is the road to closed-source it is what allowed for the development of the APC  Microlink protocol for APC UPSes.  We want to encourage hardware makers to follow open standards here and communicate using open protocols.

As I have already explained, I am not proposing that clicking "refresh" trigger 
a new physical query to the UPS. Acquisition can remain asynchronous, with caching and a 
polling frequency appropriate for the equipment. Querying that cache more often does not 
have to increase the frequency of communication with the device.

Here is a concrete example: the driver receives a valid frame from my NHS UPS 
reporting operation on mains power. Communication is then interrupted. The last 
known state can be retained, but after the appropriate interval has elapsed 
without further confirmation, it must not continue to be presented as 
confirmation of the current state. If another valid frame arrives with exactly 
the same values, there has been a new confirmation, even though the numbers 
have not changed. I am not claiming that this reveals when the sensor performed 
its internal measurement.

It is also important to distinguish this from Jim's objection. He discussed the 
limitations of requiring zero age or a complete reading of the equipment for 
each client query. My previous reply to him already clarified that I am not 
proposing that behavior.

When you say that the driver should be able to indicate "unavailable", I see an 
important point of agreement. Retaining the last known value and reporting that its 
current validity could not be confirmed are compatible. The exact representation needs to 
respect the protocol and client compatibility; I am not proposing inserting an arbitrary 
NULL where a number is expected.

Software does not turn limited equipment into superior hardware. But those 
limitations make honest reporting even more important. User training is not a 
substitute for indicating that communication has failed.

User training is what makes it possible to substitute in cheaper consumer gear in certain cases where "the right thing" would be to use expensive commercial gear.   That in turn serves as a check on unlimited price gouging by the vendors of commercial gear.

I will put this philosophical position to you:

The ability to drop in a Linux mailserver that will service 1000 users easily serves as a check on the unlimited spread of Microsoft 365 to all mailboxes on the Internet.  "The Right Thing" in the eyes of many corporate IT departments is "email is too complicated for us to do on-premises so we are going to let the professionals - Microsoft - handle it"  Do you think this was a smart decision in light of what happened with "the commercial professional mailboxes" 4 days ago????

I don't.  I think "user training" of those corporate IT department staffers in how email servers work and how to build them would have done quite a bit of help, here.

Ted


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

Reply via email to