Closed folkengine closed 2 months ago
bugfix/composite-schedule-calculation is a branch that is working on this issue.
No longer needed. Fixed in #619
This should be fixed with a rework of the composite schedule calcuation: https://github.com/EVerest/libocpp/pull/619
This should be fixed with a rework of the composite schedule calcuation: #619
Confirmed. #745 will include tests used to verify.
OCPP Version
OCPP1.6
Describe the bug
When attempting to determine the
Composite Schedule
in 1.6, if a Profile'schargingSchedulePeriod
begins after the start of the requested time range, even if it is within the time range, the Profile'schargingSchedulePeriod
won't be applied.To Reproduce
For example, given these two Profiles:
If you set the start of the time range to
18:01:00
the generatedComposite Schedule
will include the time range that started at18:00:00
:The breakdown is:
However, if the time range starts one second before the Profile's
chargingSchedulePeriod
, even though the Profile's period is within the time range requested, it will not be applied:This image will show a graphical breakdown of the data:
Anything else?
liboccp PR #606 has tests that include both examples shown above.