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

Device Model - hardwired monitors #739

Merged
merged 25 commits into from
Aug 20, 2024
Merged

Conversation

AssemblyJohn
Copy link
Contributor

@AssemblyJohn AssemblyJohn commented Aug 8, 2024

Describe your changes

This PR adds the possibility of adding preconfigured or hardwired monitors in the database configuration file.

Not supported in this PR:
N07.FR.14 - requires trigger persistance in the database
N04.FR.15 - requires a re-parsing of the configuration file and an extra column in the database to know the original type of the configuration. The re-parsing of the configuration json file has to be done at runtime, and all the monitors have to be parsed and must be matched against the current database monitors based on identification criteria that also has to be persisted.

New passes on OCTT tool N test cases:
TC_N_20_CS - Tool bug was fixed, test passes
TC_N_52_CS - Tool bug was fixes, test passes

Issue ticket number and link

Closes: #640
Built on top of: #686

Checklist before requesting a review

@AssemblyJohn AssemblyJohn changed the title Feature/hardwired monitors Device Model - hardwired monitors Aug 8, 2024
@AssemblyJohn
Copy link
Contributor Author

Comments: code comments related to the spec functional requirements should be put into place

include/ocpp/v201/init_device_model_db.hpp Outdated Show resolved Hide resolved
lib/ocpp/v201/monitoring_updater.cpp Outdated Show resolved Hide resolved
lib/ocpp/v201/monitoring_updater.cpp Show resolved Hide resolved
@AssemblyJohn AssemblyJohn marked this pull request as ready for review August 9, 2024 11:07
@AssemblyJohn
Copy link
Contributor Author

Comments implemented, ready for review.

@AssemblyJohn AssemblyJohn force-pushed the feature/hardwired_monitors branch 4 times, most recently from f067889 to 3230cbb Compare August 9, 2024 12:21
@AssemblyJohn
Copy link
Contributor Author

Documentation has been added.

@Pietfried Pietfried self-assigned this Aug 12, 2024
@AssemblyJohn
Copy link
Contributor Author

Fixed for the last PR.

config/v201/component_schemas/custom/EVSE_1.json Outdated Show resolved Hide resolved
doc/ocpp_201_monitors.md Outdated Show resolved Hide resolved
doc/ocpp_201_monitors.md Outdated Show resolved Hide resolved
doc/ocpp_201_monitors.md Outdated Show resolved Hide resolved
doc/ocpp_201_monitors.md Outdated Show resolved Hide resolved
doc/ocpp_201_status.md Show resolved Hide resolved
doc/ocpp_201_status.md Show resolved Hide resolved
lib/ocpp/v201/monitoring_updater.cpp Show resolved Hide resolved
@AssemblyJohn
Copy link
Contributor Author

All comments have been implemented, a flow chart will follow explaining the monitor usage.

@AssemblyJohn AssemblyJohn force-pushed the feature/hardwired_monitors branch 5 times, most recently from ced958e to cf2a278 Compare August 13, 2024 12:14
…MS) and hardwired (not modifiable by the CSMS)

Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
… offline, since a 'fake' online status can have the consequence of events being dropped

Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
@AssemblyJohn AssemblyJohn force-pushed the feature/hardwired_monitors branch 2 times, most recently from 2a53504 to 3adb0f1 Compare August 19, 2024 13:09
Signed-off-by: AssemblyJohn <[email protected]>
Signed-off-by: AssemblyJohn <[email protected]>
@AssemblyJohn AssemblyJohn merged commit 65ef664 into main Aug 20, 2024
3 of 4 checks passed
@AssemblyJohn AssemblyJohn deleted the feature/hardwired_monitors branch August 20, 2024 10:23
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.

Variable Monitoring Backend
3 participants