MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

Scheduled charging on Power cut

Open Aylaas opened this issue 1 year ago • 3 comments

Hi @matth-x,

I have a test case scenario where there is an existing schedule for a charger, and power goes off. In this case, I expect my charger to retain the schedule profiles and start charging on power on, if the scheduled profile still holds good(schedule duration is valid and within the bounds). But, while testing this case, I don't see the charger starting to charge on its own on the power on and the schedule still active.

Can you please provide feedback on this test case, if valid please provide the insights on the same.

Thanks, Ayla.

Aylaas avatar Jul 01 '24 10:07 Aylaas

Hi @Aylaas, by default, MicroOcpp stores all charging schedules locally and resumes transactions after a power loss. Is there any hint that the flash access doesn't work properly?

matth-x avatar Jul 01 '24 19:07 matth-x

Hi @matth-x , After Power loss, only the latest schedule is retained. Suppose I set two profiles, one with "ChargePointMaxProfile" the next one with "TxDefaultProfile", there is power loss, on next power regain, only "TxDefaultProfile" is retained and the charge profile count is 1.

How do I retain all the schedules and read back on next power cycle. Please consider priority

Thanks

Aylaas avatar Jul 17 '24 09:07 Aylaas

This implementation normally keeps all schedules. I assume that something with the flash memory goes wrong, for example the flash goes out of memory. In this case MicroOCPP would show error messages on the log. Any suspicious messages there?

matth-x avatar Jul 28 '24 08:07 matth-x