Skip to content

Conversation

@andcaspe
Copy link

Describe your changes

I’ve recently run into the same problem reported here with fragment encoding of the eMAID / EMAIDType. Specifically, the EXI stream produced by Josev does not match what the autogenerated code produces, causing interoperability issues.

I explored possible solutions and ended up implementing a workaround inspired by how OpenV2G handles it.

Instead of resolving the EXI grammar issue directly (which I understand is quite complex), I chose the following workaround:

  • Defined static templates where the OpenV2G–autogenerated code is placed.
  • Made the eMAID type reference these templates when generating fragments.

This is essentially a copy/paste of OpenV2G’s solution into the autogenerated code, so it doesn’t fully fix the root cause at the grammar level. But it does align the output with the expected EXI stream and passes interoperability checks

Issue ticket number and link

Refer to #60

In addition, I have tested this solution on the following branch, where I have defined a new test case of eMAIDtype:

image

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

andreu.castillo added 7 commits September 10, 2025 15:40
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
Signed-off-by: andreu.castillo <cp.andreu97@gmail.com>
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