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: make sure central system always responds to chargepoint requests #16279

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

andig
Copy link
Member

@andig andig commented Sep 22, 2024

Refs #15677. Follow-up to #15950.

@andig andig added bug Something isn't working devices Specific device support labels Sep 22, 2024
return cp.OnBootNotification(request)
res := &core.BootNotificationConfirmation{
CurrentTime: types.Now(),
Interval: 60,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das ist in dem Fall wahrscheinlich etwas lang.
hier auch Timeout verwenden?
Ist ja dann das Retry-Intervall des CP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eigentlich sollte der PR keine Funktion ändern- das ist schon immer so. Können wir aber gerne separat anpassen.

Copy link
Member

@premultiply premultiply Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vorher wurde aber nie mit Pending sondern immer mit Accepted (am CP) geantwortet.
Das ist ein entscheidender Unterschied in der Bedeutung von Interval.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die Pending Antwort ist jetzt komplett neu. Ich habs im master auf Timeout geändert (genauso wie accepted). Vorher gabs da gar nichts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted sollte wie vorher (am LP) auf 60s bleiben, da sonst manche Boxen mit dem Hearbeat-Intervall < 60s Probleme haben.
Im Fall von Pending ist die Bedeutung von Interval: aber eben nicht "Hearbeat-Interval" sondern "Retry-Interval". Also etwas anderes.
Da ist Timeout sinnvoll.

@andig andig merged commit 034b324 into master Sep 23, 2024
6 checks passed
@andig andig deleted the fix/ocpp-cs-not-sending-response branch September 23, 2024 06:59
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