eaton-ats16-nm2-mib.c: fix mul coef. for ambient.temperature and humidity#1173
eaton-ats16-nm2-mib.c: fix mul coef. for ambient.temperature and humidity#1173aquette merged 3 commits intonetworkupstools:masterfrom FrancoisRegisDegott-eaton:patch-1
Conversation
aquette
left a comment
There was a problem hiding this comment.
Lgtm. Would be worth testing on more than 1 unit to be sure
|
Does this apply to all devices? IIRC at least in some other drivers, we had a problem of multipliers adjusted between firmware versions, so we have to either require that hardware is flashed to newest FW, or to adapt in the driver to devices in the field, by some mapping functions etc. like "if (version < X) then ... else..." I do hope this one is not a case like that? :) |
|
I agree. But its not easy to check regression related to fw/MIB version... |
|
For the data dump above, is the humidity really "4.5%" as in a desert (and not a moderate 45% in the range okay for electronic devices -- too dry means lots of static!), and temperature a freezing "2.6" not "26" degrees (Celsius, I suppose)? Combining the two... many people died in Sahara unexpectedly freezing at nights, not hiding in shadows during the day, but those nights also allowed them to collect condensed water so it was not too dry at that time ;) |
|
Also, whatever coefficient is used, shouldn't "high" and "low" use the same? I wonder if those high watermarks can tell us whether to divide by 10 (something over 100% certainly should be, at least...) |
|
And regarding FW/MIB versions, can you get in touch with HW team or their changelogs, I suppose there would be a couple of values (or ranges) in the end to check for?.. |
jimklimov
left a comment
There was a problem hiding this comment.
Per comments above, seems to me that additional work is needed here. Or please prove me wrong :)
|
hereby confirming that Jeff's above dump is on ATS16 with NM2 and EMP002 backward compat (exposed like the legacy EMP001). Finally confirming that the new Eaton Sensor MIB exposes temperature and humidity in "tenthOfDegXXX" (Kelvin, Celsius or Farhenheit), as per TemperatureUnitType OID |
No description provided.