ele-dev / Huawei-PSU-Regulator

An automatic power regulator for linux systems
GNU General Public License v3.0
2 stars 0 forks source link

PSU was charging with over 2kW while the software limit was set to 1.5kW #7

Closed ele-dev closed 1 month ago

ele-dev commented 2 months ago

This issue happened recencently for the first and only time so far, but is concerning. The application was crashed already but the charger continued charging with more than 2kW. This should not be possible for multiple reasons.

  1. In the config file is a max charger power limit of 1500W defined, the software should not instruct higher power at any time
  2. When the software closes/crashes the PSU should enter offline mode after 1 min (offline mode should set output power to 0W!)
ele-dev commented 2 months ago

Latest commits introduced additional checks to be more robust against possible illegal high current commands caused by measurement timing inconsistencies.

ele-dev commented 2 months ago

It's not properly confirmed that this one time issue was actually caused by invalid high current commands, that violated the maximum power limit that existed long time before but since the bugfix, the issue has not occured again.

The issue will not be closed yet but is considered very unlikely to reoccur. A planned log file feature might provide certainty about the high current commands.

ele-dev commented 1 month ago

This issue has not reoccured ever again. There it will be closed