<div dir="ltr"><div>Hi NUT developers,<br><br></div>part of the 2.7.3 release, we are about to merge the below branch / PR for the bcmxcp drivers family:<br><div><a href="https://github.com/networkupstools/nut/pull/158">https://github.com/networkupstools/nut/pull/158</a><br><a href="https://github.com/networkupstools/nut/tree/pull_158_bcmxcp_rebased">https://github.com/networkupstools/nut/tree/pull_158_bcmxcp_rebased</a><br><br clear="all"><div>It has introduced the battery.charger.status variable, which is something I wanted to implement since around 2007.<br><br></div><div>However, while considering a similar implementation for usbhid-ups, and thinking a bit more broadly, this new variable tends to collide with the CHRG / DISCHRG status bits from ups.status, and adding 2 more (floating and resting).<br><br></div><div>There, we have 2 options:<br></div><div>1) Keep the legacy CHRG / DISCHRG status bits for ups.status, along with the complementary ones for battery.charger.status. And advocate (document) for the use of / switch to the latter, that is more suitable for publishing such information. All that with an impact on all the NUT driver, and a transition period to address that cleanly.<br></div><div>2) Add the 2 other status bits (FLOATING and RESTING) for ups.status, still along with the same new ones for battery.charger.status<br><br></div><div>I'm personally more in favor of (1), but the long history of NUT makes that (2) would probably be more suitable. An hybrid approach could also be: apply (2) (new status bits), and apply the transition of (1).<br><br></div><div>Feedback and comments warmly welcome.<br></div><div>Going to also push this comment on the PR #158, for the sake of completion.<br><br></div><div>cheers,<br></div><div>Arno<br></div><div>-- <br><div class="gmail_signature"><div dir="ltr">Eaton Data Center Automation - Opensource Leader<br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br></div></div>
</div></div></div>