ChargePoint / wireshark-v2g

Dissector for the V2G Protocols
Other
43 stars 18 forks source link

feat(dissector): allow a preference to set the exi dissector to use #39

Closed chardin-cpi closed 1 year ago

chardin-cpi commented 1 year ago

If the handshake isn't in the package trace then the dissector cann't be determined from the initial exchange and so a setting should support the exi decoder to use for the packet stream instead.

There might be a better way to do this - but this is the a first attempt.

chardin-cpi commented 1 year ago

@jhart-cpi - can you try this, i don't have a setup convenient at the moment but i think this should work - maybe there is a better way but this should let the dissector be forced instead of just using the handshake to know.

cc: @carlnorum-cpi @csteres-cpi

jhart-cpi commented 1 year ago

Preferences setting works for me:

Screenshot 2023-03-17 at 11 58 36 AM

I've tested it with various partial decodes in DIN and that works fine.

On Apple M1 Mac:

What does not work is TLS decoding. I cannot get data inside a TLS session to decode with any decoder, manual or automatic. It recognizes the format as being ISO1 and decodes the handshake properly, but it fails to decode any ISO15118-2 messages after that.

On Linux AMD64: Works.