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

OCPP 2.0.1 Fixes after functionality tests #371

Merged
merged 19 commits into from
Oct 8, 2024
Merged

Conversation

matth-x
Copy link
Owner

@matth-x matth-x commented Sep 12, 2024

Cumulative updates of the OCPP 2.0.1 extension.

In the course of replacing scoped enums with C-style enums, MicroOcpp::ReadingContext changes into ReadingContext and the values change from MicroOcpp::ReadingContext::SamplePeriodic (for example) to ReadingContext_SamplePeriodic

The build flag to control the number of EVSEs is misleading, because it doesn't define the actual number of EVSEs but the number of EVSE IDs starting from 0. Therefore, MO_NUM_EVSE was renamed into MO_NUM_EVSEID. For example, if MO_NUM_EVSEID=2, then the two IDs 0 and 1 exist, but there is only one actual EVSE with the ID 1.

The Request Queue deduplicates StatusNotifications since 1098e95 which is reverted in this PR. The issue is that the unit test suite triggers custom StatusNotifications, which doesn't support the API required by the Requeust Queue.

And this PR contains a number of small general improvements of the OCPP 2.0.1 extension, like MeterValue support and a port of the following API functions:

  • isTransactionActive(),
  • isTransactionRunning(),
  • getTransactionIdTag(),
  • getChargePointStatus(),
  • setConnectorPluggedInput(),
  • setEnergyMeterInput(),
  • setPowerMeterInput(),
  • addMeterValueInput(),
  • setEvseReadyInput(),
  • setOccupiedInput(),
  • isOperative()

@matth-x matth-x merged commit 41e7e9e into main Oct 8, 2024
8 checks passed
@matth-x matth-x deleted the feature/ocpp201-update branch October 8, 2024 07:13
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.

1 participant