Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPP2.0.1: Device model access for EVSE and Connector specific variables #553

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented Apr 5, 2024

Describe your changes

  • Implemented DM access for EVSE and Connector
  • Enhanced integrity check of device model by checking correct number of EVSE and Connectors
  • DM Availability state and Power is updated at runtime

Issue ticket number and link

#529

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

* Enhanced integrity check of device model by checking correct number of EVSE and Connectors
* DM Availability state and Power is updated at runtime

Signed-off-by: pietfried <pietgoempel@gmail.com>
@Pietfried Pietfried linked an issue Apr 5, 2024 that may be closed by this pull request
@Pietfried Pietfried marked this pull request as ready for review April 8, 2024 11:12
const Component& CustomizationCtrlr = {"CustomizationCtrlr"};
const Component& DeviceDataCtrlr = {"DeviceDataCtrlr"};
const Component& DisplayMessageCtrlr = {"DisplayMessageCtrlr"};
const Component& EVSE = {"EVSE"};
const Component& ISO15118Ctrlr = {"ISO15118Ctrlr"};
const Component& ISO15118Ctrlr = {"ISO15118Ctrlr"}; // dynamic?
Copy link
Contributor

Choose a reason for hiding this comment

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

dynamic?

Copy link
Contributor Author

@Pietfried Pietfried Apr 8, 2024

Choose a reason for hiding this comment

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

A question to self :D Will possibly need to be dynamic based on nr of evses in the future, will remove for now

Signed-off-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
Copy link
Contributor

@marcemmers marcemmers left a comment

Choose a reason for hiding this comment

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

Small suggestion, looks pretty useful overall!
Nice to see the availability also being managed by libocpp

@@ -61,6 +61,9 @@ std::string generate_token_hash(const IdToken& token);
/// \return DateTime type timestamp
ocpp::DateTime align_timestamp(const DateTime timestamp, std::chrono::seconds align_interval);

/// \brief Returns the total Power_Active_Import value from the \p meter_value or 0 if it is not present
float get_total_power_active_import(const MeterValue& meter_value);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to return an optional here if not found. A power of 0W is a very valid value when idle.

Signed-off-by: pietfried <pietgoempel@gmail.com>
@Pietfried Pietfried merged commit 6399842 into main Apr 10, 2024
4 checks passed
@Pietfried Pietfried mentioned this pull request Apr 10, 2024
3 tasks
folkengine pushed a commit to US-JOET/libocpp that referenced this pull request Apr 15, 2024
…les (EVerest#553)

* Implemented dm access for EVSE and Connector
* Enhanced integrity check of device model by checking correct number of EVSE and Connectors
* DM Availability state and Power is updated at runtime
---------

Signed-off-by: pietfried <pietgoempel@gmail.com>
Signed-off-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
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.

Device Model access for EVSE and Connector specific variables
3 participants