Ted,

Thank you for acknowledging the confusion with another participant and 
correcting the claims about the equipment and polling frequency. However, that 
confusion shows that your criticism was directed at positions I did not 
advocate, and reinforces the need to read my messages carefully before replying 
to them.

Calling my objection "victim parading" and adding sarcastic remarks does not 
constitute a technical response. If you disagree with the proposal, please 
identify specifically where it is wrong. If the personal remarks continue, I 
ask Jim to intervene as moderator to keep the discussion technical.

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. 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.

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.

Best regards,
Lucas Willian Bocchi

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

Reply via email to