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

Add SignedMeterValue type powermeter types #461

Merged
merged 20 commits into from
Feb 23, 2024

Conversation

hikinggrass
Copy link
Contributor

This allows the encapsulation of additionaly metadata like the signing method, encoding method or the public key next to the signed meter data

@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from fb6938b to cc3e181 Compare December 4, 2023 12:59
@hikinggrass hikinggrass marked this pull request as ready for review December 5, 2023 17:14
Copy link
Contributor

@valentin-dimov valentin-dimov left a comment

Choose a reason for hiding this comment

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

We also need to adjust the TransactionFinished in the evse_manager interface to use the SignedMeterValue type.

types/powermeter.yaml Outdated Show resolved Hide resolved
@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from cc3e181 to 437d9e3 Compare December 7, 2023 17:23
Copy link
Contributor

@valentin-dimov valentin-dimov left a comment

Choose a reason for hiding this comment

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

Looks good, only some minor questions left

types/evse_manager.yaml Outdated Show resolved Hide resolved
types/evse_manager.yaml Outdated Show resolved Hide resolved
types/powermeter.yaml Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from 4ac9522 to a030958 Compare December 21, 2023 15:40
@hikinggrass hikinggrass requested a review from Pietfried January 8, 2024 20:31
L1:
description: AC L1 value only
type: object
$ref: /units_signed#/SignedMeterValue
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious, are there any meters out there that provide signed Voltage readings?

Same for frequency and other detailed measurements, every signed separtely.

Copy link
Contributor

Choose a reason for hiding this comment

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

After Conversation in person I understood that we don't want to limit signed values by the transactional singed values only. And the transaction values are just

Nevertheless I propose to not create types that are not used and we don't know how to use them. We can leave a comment in example how to extend it if needed.

@golovasteek
Copy link
Contributor

Looking forward for this to be applied. Preferrably reduced to "SignedMeterValues" only.

Can we push this PR forward? So that further work on the power meters can be based on it already?

@hikinggrass
Copy link
Contributor Author

Looking forward for this to be applied. Preferrably reduced to "SignedMeterValues" only.

Can we push this PR forward? So that further work on the power meters can be based on it already?

Yes, I'll rebase it and will try to restructure it a bit

@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from 8d12f73 to 76e277e Compare February 9, 2024 11:50
@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from 76e277e to b311fd1 Compare February 19, 2024 20:23
Copy link
Contributor

@Pietfried Pietfried left a comment

Choose a reason for hiding this comment

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

Requested changes do not fix changes of this PR, but fix bugs that have been introduced earlier and I'd like to see fixed in this PR

modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
modules/OCPP201/OCPP201.cpp Outdated Show resolved Hide resolved
This allows the encapsulation of additionaly metadata like the signing method, encoding method or the public key next to the signed meter data

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Only support signed values from transaction or the powermeter, not individual measurands

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
hikinggrass and others added 4 commits February 22, 2024 18:03
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Co-authored-by: Piet Gömpel <37657534+Pietfried@users.noreply.github.com>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
@hikinggrass hikinggrass force-pushed the kh-signed-meter-value-extension branch from 6f20c95 to 40f3775 Compare February 22, 2024 17:03
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
@hikinggrass hikinggrass merged commit 9b66f99 into main Feb 23, 2024
5 checks passed
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