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

ActiveMonitoringBase not correctly implemented #893

Open
robert-s-ubi opened this issue Dec 2, 2024 · 1 comment
Open

ActiveMonitoringBase not correctly implemented #893

robert-s-ubi opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
advanced DM OCPP 2.0.1 Advanced device management Certfication Profile

Comments

@robert-s-ubi
Copy link

OCPP Version

OCPP2.0.1

Describe the bug

The OCPP 2.0.1 "ActiveMonitoringBase" is intended to be a BASE, not an enable level. Specifically, custom monitors can be set on top of the HardwiredOnly and FactoryDefault monitoring bases.

However, monitoring_updater.cpp seems to handle it as a "class enable" setting, which is not correct. Correctly handling the monitoring base is a bit more complex:

  • persist the monitoring base, the custom monitors AND the cleared pre-configured monitors
  • on reboot, reconstruct the active monitors from the monitoring base, the cleared pre-configured monitors and the added custom monitors
  • on SetMonitoringBase with HardwiredOnly or FactoryDefault, remove all custom monitors (and all persisted "clearings" of pre-configured monitors)
  • on SetMonitoringBase with ALL, restore all FactoryDefault monitors which have not been replaced by a custom monitor

To Reproduce

No response

Anything else?

No response

@Pietfried Pietfried added the advanced DM OCPP 2.0.1 Advanced device management Certfication Profile label Dec 2, 2024
@AssemblyJohn
Copy link
Contributor

Thank you for the report, we're on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced DM OCPP 2.0.1 Advanced device management Certfication Profile
Projects
None yet
Development

No branches or pull requests

3 participants