-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conversation
* 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 <[email protected]>
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dynamic?
There was a problem hiding this comment.
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 <[email protected]>
There was a problem hiding this 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
include/ocpp/v201/utils.hpp
Outdated
@@ -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); |
There was a problem hiding this comment.
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 <[email protected]>
…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 <[email protected]> Signed-off-by: Piet Gömpel <[email protected]>
Describe your changes
Issue ticket number and link
#529
Checklist before requesting a review