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

EvseManager: Fix bug where HLC is not stopped on unexpected CP state #669

Merged
merged 2 commits into from
May 7, 2024

Conversation

FaHaGit
Copy link
Contributor

@FaHaGit FaHaGit commented May 6, 2024

Before the HLC session was not stopped by the EvseManager module in case of an unexpected CP state transition while charging. Now the HLC session is stopped in case of a CP state transition C/D -> B/E/F.

Describe your changes

Implemented CPEvent::BCDtoEF event. Stop HLC session in case of CP state transition C/D -> B/E/F.

Issue ticket number and link

#668

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@FaHaGit
Copy link
Contributor Author

FaHaGit commented May 6, 2024

I would be happy if it could be tested again independently of me. I am not completly sure if the new event state CPEvent::BCDtoEF could lead to unexpected behavior.

Before the HLC session was not stopped by the EvseManager module in case
of an unexpected CP state transition while charging. Now the HLC session
is stopped in case of a CP state transition C/D -> B/E/F.

Signed-off-by: Fabian Hartung <[email protected]>
@corneliusclaussen corneliusclaussen force-pushed the bugfix/stop_hlc_on_unexpected_cp_state branch from c215d50 to 5f508a9 Compare May 7, 2024 09:25
@corneliusclaussen
Copy link
Contributor

I would be happy if it could be tested again independently of me. I am not completly sure if the new event state CPEvent::BCDtoEF could lead to unexpected behavior.

Don't really have the time to test this at the moment, but it looks good to me. As far as I can see the additional BCDtoEF will not cause side effects. It will trigger a SLAC->leaveBCD, but this does not do anything as far as I can see in the slac implementation.

Copy link
Contributor

@SebaLukas SebaLukas left a comment

Choose a reason for hiding this comment

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

👍

@FaHaGit FaHaGit merged commit d71bc43 into main May 7, 2024
5 checks passed
@FaHaGit FaHaGit deleted the bugfix/stop_hlc_on_unexpected_cp_state branch May 7, 2024 10:15
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.

3 participants