-
Notifications
You must be signed in to change notification settings - Fork 90
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
Refactored OCMF powermeter transaction handling #640
Conversation
19a80ca
to
792a509
Compare
* Powermeter interface now contains proper user identification arguments (IS, IT, IF, IT, ID) to start the transaction * Refactored EvseManager and LemDCBM400600 modules to address the changed types * Added module config params for LemDCBM400600 : cable_id, tariff_id * Fixed test cases in LemDCBM400600 due to changes made Signed-off-by: pietfried <[email protected]>
792a509
to
e42515c
Compare
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.
Missing some documentation about why for ex. cable_id
and tariff_id
have been removed from the powermeter type and are now only local config options for the LEM powermeter
Signed-off-by: pietfried <[email protected]>
9d735d6
to
c669ff6
Compare
The |
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
That is exactly what I would like to see in the commit or PR message, so that we're able to reason about why those changes happened. |
@Pietfried The MR description explains the "what" happened, but not the "why", please extend, i.e. I have a similar question than @a-w50. |
Hi @SirVer , this response to @a-w50 request explains "why" the changes are required: #640 (comment) . Please have a look at the Rust build, which is currently failing. It looks like |
Yes, I saw that @Pietfried. My statement was more that this should go into the MR description, because it is important context for posterity and should not be buried in the discussion. |
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[email protected]>
…UserIdentificationStatus Signed-off-by: pietfried <[email protected]>
Signed-off-by: pietfried <[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.
Great, thanks for addressing the boolean. The resulting code is much better I think!
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.
👍
Exactly, that's what I was trying to say. |
Signed-off-by: pietfried <[email protected]>
Describe your changes
Refactored OCMF powermeter transaction handling:
Why changes are required:
The
cable_id
is no OCMF parameter but it is specific to the LEM powermeter and shall therefore not be an argument within the TransactionReq type. Atariff_id
is also no OCMF parameter (but Tariff Text (TT) is) and in the LEM communication protocol it is unclear how this parameter shall be set. This might require further changes in the LEM module, but it doesnt belong to the TransactionReq type.Issue ticket number and link
Checklist before requesting a review