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: fix generating unique transactionId #15951

Merged
merged 7 commits into from
Sep 14, 2024
Merged

Ocpp: fix generating unique transactionId #15951

merged 7 commits into from
Sep 14, 2024

Conversation

premultiply
Copy link
Member

@premultiply premultiply commented Sep 7, 2024

TransactionIds must be unique on a CS.
Especially because we use them to find the corresponding connector within StopTransaction.

This PR moves the generation from the connector to the CS itself and also ensures that they are unique even after a restart of evcc. This avoids assigning the same transaction IDs on different connectors or stations.

  • generate and use CS-wide unique transactions
  • fix the handling of offline transactions
  • never try to decline idTags from former offline transactions (we always accecpt any idTag for authentication)

@premultiply premultiply marked this pull request as ready for review September 7, 2024 14:55
@premultiply premultiply added bug Something isn't working devices Specific device support labels Sep 7, 2024
@andig andig merged commit cbafc3e into master Sep 14, 2024
6 checks passed
@andig andig deleted the fix/ocpp-transaction branch September 14, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devices Specific device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants