-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add random delay according to UK smart charging regulations
to EvseManager and API modules. The feature is disabled by default. It can be controlled at runtime using the random_delay implementation. Includes changes required by changed type of composite schedules in libocpp from ChargingSchedule to EnhancedChargingSchedule, which includes stackLevel in EnhancedChargingSchedulePeriods Signed-off-by: Cornelius Claussen <[email protected]>
- Loading branch information
1 parent
2456abb
commit 3609946
Showing
19 changed files
with
487 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
description: >- | ||
This interface provides functions for a random delay feature as required by the UK smart charging regulations | ||
The logic whether to use a random delay or not is not included in EvseManager, a different module can use this | ||
interface to enable/disable the feature during runtime and cancel a running random delay. | ||
This always applies to all connectors of this EVSE. | ||
By default, on start up, random delays are disabled. | ||
cmds: | ||
enable: | ||
description: Call to enable the random delay feature | ||
disable: | ||
description: Call to enable the random delay feature | ||
cancel: | ||
description: Cancels a running random delay. The effect is the same as if the time expired just now. | ||
set_duration_s: | ||
description: Set the maximum duration of the random delay. Default is 600 seconds. | ||
arguments: | ||
value: | ||
description: Maximum duration in seconds | ||
type: integer | ||
vars: | ||
countdown_s: | ||
description: Countdown of the currently running random delay in seconds. If it is 0, no random delay is active. | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ Charger::~Charger() { | |
} | ||
|
||
void Charger::main_thread() { | ||
|
||
// Enable CP output | ||
bsp->enable(true); | ||
|
||
|
Oops, something went wrong.