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: SessionSetupReq in -20 had the wrong V2GTP type #183

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

shalinnijel2
Copy link
Contributor

@shalinnijel2 shalinnijel2 commented Dec 22, 2022

SessionSetupReq was being sent from EVCC with the wrong V2GTP type 0x8001 (ISOV20PayloadTypes.SAP). Updated evcc/../sap_states.py to set next_payload_type to be ISOV20PayloadTypes.MAINSTREAM

This went unnoticed till now because the schema to be used for decoding the exi was first decided based on the protocol set in comm_session. Plus the fallback for unmatched v2gtp type was ISOV20PayloadTypes.MAINSTREAM and this unintentionally patched the issue at the secc end.

https://github.com/SwitchEV/iso15118/blob/2b146b483996863e82fca111db33dabf39f293fc/iso15118/shared/comm_session.py#L141

https://github.com/SwitchEV/iso15118/blob/2b146b483996863e82fca111db33dabf39f293fc/iso15118/shared/comm_session.py#L142

@shalinnijel2 shalinnijel2 merged commit c714f1a into master Jan 26, 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.

2 participants