Skip to content

Conversation

@Dominik-K
Copy link
Contributor

No description provided.

Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
…e errors

Signed-off-by: Dominik K <dominik@pionix.de>
@Pietfried
Copy link
Contributor

So far it was required to include the chargepoint_id in the configured CentralSystemURI (v16) or ocppCsmsUrl (v201, as part of the NetworkConnectionProfiles variable). This is indeed redundant so I like this initiative!

For v16 we can append the internal configuration key ChargePointId (like implemented in this PR) and for v201 we need to use the variable "Identity" from the "SecurityCtrlr", so this line is currently not correct:
https://github.com/EVerest/libocpp/blob/main/lib/ocpp/v201/charge_point.cpp#L585

Please add this to the PR.

Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K
Copy link
Contributor Author

Next I'll use a Uri::set_path to allow backwards-compatibility with current URLs which contain the CP-ID as path.

Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K Dominik-K changed the title Fix/websockets/CP-ID deprecate chargepoint-ID in CSMS-URL config-field Oct 18, 2023
@Dominik-K Dominik-K self-assigned this Oct 18, 2023
@Dominik-K Dominik-K marked this pull request as ready for review October 18, 2023 13:49
@Dominik-K Dominik-K requested a review from Pietfried October 18, 2023 13:50
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K
Copy link
Contributor Author

@Pietfried It's ready now. I'll do the returning an error/std::expected in a follow-up PR.

Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K Dominik-K force-pushed the fix/websockets/CP-ID branch from 6ed8c58 to 3af51e3 Compare November 7, 2023 14:43
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K Dominik-K changed the title deprecate chargepoint-ID in CSMS-URL config-field validate CSMS-URL: opt. schema must fit with security-profile; chargepoint-ID deprecated in URL Nov 8, 2023
@Dominik-K Dominik-K requested a review from Pietfried November 8, 2023 21:16
auto security_profile = network_connection_profile.securityProfile;
auto uri = Uri::parse_and_validate(
network_connection_profile.ocppCsmsUrl.get(),
this->device_model->get_value<std::string>(ControllerComponentVariables::SecurityCtrlrIdentity),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identity is defined as not required in OCPP2.0.1 spec (so it should be requested from storage with get_optional_value). This seems to be a problem with the spec. Lets define Identity as requried in config/ and keep requesting storage with get_value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there sth. more needed except adding Identity to required: in SecurityCtrlr.json?

Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
Signed-off-by: Dominik K <dominik@pionix.de>
@Dominik-K Dominik-K requested a review from Pietfried November 9, 2023 15:14
@Dominik-K Dominik-K merged commit 271e025 into main Nov 13, 2023
@Dominik-K Dominik-K deleted the fix/websockets/CP-ID branch November 13, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants