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

Feature/test data and fixes #276

Merged

Conversation

martinbachmanndesignwerk
Copy link
Contributor

This PR replaces #232
Everything is rebased and changes requested by @tropxy are implemented

@martinbachmanndesignwerk martinbachmanndesignwerk force-pushed the feature/test_data_and_fixes branch from 8f9f8bd to 3c37f43 Compare July 11, 2023 19:10
Comment on lines 289 to 291
await self.evse_controller.set_status_secc_session(
ServiceStatus.STARTING
)
Copy link
Contributor

Choose a reason for hiding this comment

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

We currently use ServiceStatus to indicate starting and stopping of the entire iso15118_service in our pro version. I see the intention here is to indicate starting and stopping of charging sessions instead. Could you add a new enum SessionStatus along the lines of SESSION_STARTED, SESSION_ENDED for this, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've checked if this status is relevant in our code. But it is not. We can remove the whole function.

@@ -315,6 +318,7 @@ async def end_current_session(
)
await cancel_task(self.tcp_server_handler)
await cancel_task(self.comm_sessions[peer_ip_address][1])
await self.evse_controller.set_status_secc_session(ServiceStatus.STOPPING)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above - SessionStatus.SESSION_ENDED here?

Copy link
Contributor

@shalinnijel2 shalinnijel2 left a comment

Choose a reason for hiding this comment

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

Thank you for you contribution. :)

@@ -188,6 +195,13 @@ async def set_status(self, status: ServiceStatus) -> None:
"""
raise NotImplementedError

@abstractmethod
async def set_status_secc_session(self, status: ServiceStatus) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

The type here would also need updating to the new enum.

Comment on lines 215 to 217
async def set_status_secc_session(self, status: ServiceStatus) -> None:
pass

Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above.

Comment on lines +488 to 493
There are EVs that sometimes send values below zero
(e.g. Skoda Enyaq).
"""

_min_limit: int = -10
unit: Literal[UnitSymbol.AMPERE] = Field(None, alias="Unit")
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity - when does this usually happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can happen when charging starts. I don't know why but some times they request a negative current as first current demand request.

@martinbachmanndesignwerk martinbachmanndesignwerk force-pushed the feature/test_data_and_fixes branch from a977800 to eeb271c Compare July 20, 2023 10:05
@martinbachmanndesignwerk
Copy link
Contributor Author

@shalinnijel2 I've rebased everything and removed the set_status_secc_session function

@shalinnijel2 shalinnijel2 merged commit ee6a7ee into EcoG-io:master Jul 25, 2023
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