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

Fix:service detail res #144

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Fix:service detail res #144

merged 3 commits into from
Nov 22, 2022

Conversation

ikaratass
Copy link
Collaborator

@ikaratass ikaratass commented Oct 10, 2022

fix AB#2821

checks if the requested services ids in ServiceDetailReq are ids that were offered by the SECC in ServiceDiscoveryRes. if not, FAILED_SERVICE_ID_INVALID is returned.

Comment on lines 426 to 437
self.stop_state_machine(
f"[V2G2-425] {service_detail_req.service_id} is not offered",
message,
ResponseCode.FAILED_SERVICE_ID_INVALID,
)
return
Copy link
Contributor

Choose a reason for hiding this comment

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

This is no reason to stop the communication. we just need to communicate that that service ID is invalid and continue waiting for the next ServiceDetailReq or the next state

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@ikaratass ikaratass force-pushed the fix/ServiceDetailRes branch from 5f92ce4 to 6137fc9 Compare October 12, 2022 16:25
@ikaratass ikaratass requested a review from tropxy October 12, 2022 16:42
@ikaratass ikaratass changed the title Fix/service detail res Fix:service detail res Oct 12, 2022
@ikaratass ikaratass force-pushed the fix/ServiceDetailRes branch from 4bd8dd6 to 46da79f Compare November 2, 2022 10:37
shalinnijel2
shalinnijel2 previously approved these changes Nov 4, 2022
tests/secc/states/test_iso15118_2_states.py Show resolved Hide resolved
tests/secc/states/test_iso15118_2_states.py Show resolved Hide resolved
@ikaratass ikaratass force-pushed the fix/ServiceDetailRes branch 2 times, most recently from 571fa9a to 2d25484 Compare November 21, 2022 22:27
tropxy
tropxy previously approved these changes Nov 22, 2022
@ikaratass ikaratass force-pushed the fix/ServiceDetailRes branch from df58534 to 2a5093b Compare November 22, 2022 17:26
@ikaratass ikaratass merged commit a344002 into master Nov 22, 2022
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