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 enable switch, Variables and Transactions #247

Merged
merged 24 commits into from
Feb 27, 2024
Merged

Conversation

matth-x
Copy link
Owner

@matth-x matth-x commented Jan 7, 2024

Edit: Add first modules for OCPP 2.0.1

This PR adds basic support for Variables (non-persistent) and Transactions (evaluation only).

All OCPP 2.0.1 features are in a development stage. They are managed in the master branch of this repository as well to facilitate the interoperability with the continuously maintained OCPP 1.6 functionality. By default, the new OCPP 2.0.1 features are not compiled into the firmware so there is no firmware size overhead. To enable them, set the build flag MO_ENABLE_V201 to 1. Then the host system can select the OCPP version during the initialization of MicroOcpp via the ProtocolVersion parameter.

Added:

  • Type ProtocolVersion selects v1.6 or v2.0.1
  • Build flag MO_ENABLE_V201 is used to exclude new data structures so that the WIP causes no firmware size overhead when only v1.6 will be used
  • BootNotification and StatusNotification was patched to see the impact of protocolVersion and MO_ENABLE_V201 in real code
  • Basic Variables implementation
  • Basic OCPP 2.0.1 Transaction implementation

Old, before edit: MicroOcpp will be upgraded with OCPP 2.0.1 in incremental steps on the master branch. The purpose of this evaluation branch is to make a proof-of-concept of the step-by-step development of v2.0.1 while not breaking any of the existing v1.6 features.

@matth-x matth-x marked this pull request as ready for review February 27, 2024 20:22
@matth-x matth-x changed the title OCPP 2.0.1 incremental upgrade OCPP 2.0.1 enable switch, Variables and Transactions Feb 27, 2024
@matth-x matth-x merged commit 010abf8 into master Feb 27, 2024
5 checks passed
@matth-x matth-x deleted the eval/ocpp201 branch March 3, 2024 18:24
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