Discussion started here: https://openinverter.org/forum/viewtopic.php?p=82256#p82256
Current implementation: The inlet voltage is either taken from the charging station (EvsePresentVoltage) or from the hardware input.
Improvement idea: If hardware voltage measuring device is present, make a plausibilization between the hardware input and the EvsePresentVoltage. Raise an error and stop charging if the difference is too big (e.g. 20V).
Steps for implementation:
- create a parameter InletVoltageToleranceHwEvse ("Inlet voltage tolerance between hardware input and EvsePresentVoltage). Default 20V.
- if the inletVoltageSource is configured to hardware input, compare it with the EvsePresentVoltage
- plausibilization makes most sense in states PreCharge and CurrentDemand. Define, whether these shall be the only states or whether there are other states, where the plausibilization makes sense
- Set a senseful abortReason (and maybe a red blink code?) to give the user the chance to understand the root cause of a problem.