Skip to content

Commit

Permalink
Updated OCPP module documentation
Browse files Browse the repository at this point in the history
* Revised existing module documentation
* Moved module documentation to doc.rst files
* Removed unused provides empty of OCPP201 module

Signed-off-by: pietfried <[email protected]>
  • Loading branch information
Pietfried committed Oct 14, 2024
1 parent 8f8a6f7 commit d2379fc
Show file tree
Hide file tree
Showing 9 changed files with 564 additions and 132 deletions.
319 changes: 289 additions & 30 deletions modules/OCPP/doc.rst

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions modules/OCPP/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
description: A OCPP charge point / charging station module, currently targeting OCPP-J 1.6
config:
ChargePointConfigPath:
description: Path to the configuration file
description: >-
Path to the ocpp configuration file. Libocpp defines a JSON schema for this file. Please refer to the documentation
of libocpp for more information about the configuration options.
type: string
default: ocpp-config.json
UserConfigPath:
description: Path to the file of the OCPP user config
description: >-
Path to the file of the OCPP user config. The user config is used as an overlay for the original config defined
by the ChargePointConfigPath. Any changes to configuration keys turned out internally or by the CSMS will be
written to the user config file.
type: string
default: user_config.json
DatabasePath:
description: Path to the persistent SQLite database folder
description: >-
Path to the persistent SQLite database directory. Please refer to the libocpp documentation for more information
about the database and its structure.
type: string
default: /tmp/ocpp_1_6_charge_point
EnableExternalWebsocketControl:
description: If true websocket can be disconnected and connected externally
description: If true websocket can be disconnected and connected externally. This parameter is for debug and testing purposes.
type: boolean
default: false
PublishChargingScheduleIntervalS:
Expand All @@ -28,11 +35,13 @@ config:
type: integer
default: 600
MessageLogPath:
description: Path to folder where logs of all OCPP messages get written to
description: Path to directory where logs of all OCPP messages are written to
type: string
default: /tmp/everest_ocpp_logs
MessageQueueResumeDelay:
description: Time (seconds) to delay resuming the message queue after reconnecting
description: >-
Time (seconds) to delay resuming the message queue after reconnecting. This parameter was introduced because
some OCTT test cases require that the first message after a reconnect is sent by the CSMS.
type: integer
default: 0
provides:
Expand Down
1 change: 0 additions & 1 deletion modules/OCPP201/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ target_compile_options(${MODULE_NAME}

target_sources(${MODULE_NAME}
PRIVATE
"main/emptyImpl.cpp"
"auth_validator/auth_token_validatorImpl.cpp"
"auth_provider/auth_token_providerImpl.cpp"
"data_transfer/ocpp_data_transferImpl.cpp"
Expand Down
2 changes: 0 additions & 2 deletions modules/OCPP201/OCPP201.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ bool OCPP201::all_evse_ready() {
}

void OCPP201::init() {
invoke_init(*p_main);
invoke_init(*p_auth_provider);
invoke_init(*p_auth_validator);

Expand Down Expand Up @@ -311,7 +310,6 @@ void OCPP201::init() {
}

void OCPP201::ready() {
invoke_ready(*p_main);
invoke_ready(*p_auth_provider);
invoke_ready(*p_auth_validator);

Expand Down
5 changes: 1 addition & 4 deletions modules/OCPP201/OCPP201.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// headers for provided interface implementations
#include <generated/interfaces/auth_token_provider/Implementation.hpp>
#include <generated/interfaces/auth_token_validator/Implementation.hpp>
#include <generated/interfaces/empty/Implementation.hpp>
#include <generated/interfaces/ocpp/Implementation.hpp>
#include <generated/interfaces/ocpp_data_transfer/Implementation.hpp>
#include <generated/interfaces/session_cost/Implementation.hpp>
Expand Down Expand Up @@ -53,7 +52,7 @@ struct Conf {
class OCPP201 : public Everest::ModuleBase {
public:
OCPP201() = delete;
OCPP201(const ModuleInfo& info, Everest::MqttProvider& mqtt_provider, std::unique_ptr<emptyImplBase> p_main,
OCPP201(const ModuleInfo& info, Everest::MqttProvider& mqtt_provider,
std::unique_ptr<auth_token_validatorImplBase> p_auth_validator,
std::unique_ptr<auth_token_providerImplBase> p_auth_provider,
std::unique_ptr<ocpp_data_transferImplBase> p_data_transfer, std::unique_ptr<ocppImplBase> p_ocpp_generic,
Expand All @@ -65,7 +64,6 @@ class OCPP201 : public Everest::ModuleBase {
std::vector<std::unique_ptr<display_messageIntf>> r_display_message, Conf& config) :
ModuleBase(info),
mqtt(mqtt_provider),
p_main(std::move(p_main)),
p_auth_validator(std::move(p_auth_validator)),
p_auth_provider(std::move(p_auth_provider)),
p_data_transfer(std::move(p_data_transfer)),
Expand All @@ -82,7 +80,6 @@ class OCPP201 : public Everest::ModuleBase {
}

Everest::MqttProvider& mqtt;
const std::unique_ptr<emptyImplBase> p_main;
const std::unique_ptr<auth_token_validatorImplBase> p_auth_validator;
const std::unique_ptr<auth_token_providerImplBase> p_auth_provider;
const std::unique_ptr<ocpp_data_transferImplBase> p_data_transfer;
Expand Down
Loading

0 comments on commit d2379fc

Please sign in to comment.