Tinkerforge / esp32-firmware

Firmwares for ESP32 Brick and ESP32 Ethernet Brick (including firmwares for WARP/WARP2 Charger, WARP Energy Manager)
https://www.tinkerforge.com/en/doc/Hardware/Bricks/ESP32_Ethernet_Brick.html
26 stars 20 forks source link

Charge Limit can block charging forever #224

Closed borg42 closed 1 year ago

borg42 commented 1 year ago

If a car connects to a WARP Charger and is blocked from charging (by EVCC for example) and then disconnects again without ever charging, the clear_on_disconnect of slot 12 (the charge limit slot) can trigger.

If the sequence of events is right it is now possible that the charge limit module runs in a loop where the internal "was_charging" flag is set to false, while the current of slot 12 is set to 0.

In this case the charge limit module will block forever (since it waits for a charging session to start, which is not possible anymore at this point). This deadlock can only be resolved by restarting the ESP.

breitsi commented 1 year ago

Error is no longer reproducible. Thanks for your quick response