How martin-p/openv2g works
OpenV2G is a C implementation of basic ISO/IEC 15118 vehicle-to-grid communication, with EXI serialization support for application-handshake messages, DIN 70121, ISO 15118-2:2013 and :2016, and optional XML signature data. The principal represented workflow is encoding or decoding schema-shaped messages through EXI channels; the README also identifies V2GTP transport support. The excerpts and index establish some generated-code dependencies, but do not show a complete application-level session flow or all schema codecs, so those links are not inferred.
Main entry points: EncoderChannel.c Encoder channel · appHandEXIDatatypesEncoder.c Handshake encoder · appHandEXIDatatypesDecoder.c Handshake decoder · DecoderChannel.c Decoder channel
Components 19
Protocol schemas
- Handshake types
src/appHandshake/appHandEXIDatatypes.h - Handshake encoder
src/appHandshake/appHandEXIDatatypesEncoder.c - Handshake decoder
src/appHandshake/appHandEXIDatatypesDecoder.c - DIN types
src/din/dinEXIDatatypes.h - DIN encoder
src/din/dinEXIDatatypesEncoder.c - ISO1 types
src/iso1/iso1EXIDatatypes.h - ISO2 types
src/iso2/iso2EXIDatatypes.h - Signature types
src/xmldsig/xmldsigEXIDatatypes.h - Signature encoder
src/xmldsig/xmldsigEXIDatatypesEncoder.c - Signature decoder
src/xmldsig/xmldsigEXIDatatypesDecoder.c
EXI serialization
- Encoder channel
src/codec/EncoderChannel.c - Decoder channel
src/codec/DecoderChannel.c - EXI header encoder
src/codec/EXIHeaderEncoder.c - EXI header decoder
src/codec/EXIHeaderDecoder.c - Bit output
src/codec/BitOutputStream.c - Bit input
src/codec/BitInputStream.c - Codec support
src/codec
V2G transport
- V2GTP framing
src/transport/v2gtp.c
Other components
- V2G peer
Connections 14
- Handshake encoder → Encoder channel: encodes through
src/appHandshake/appHandEXIDatatypesEncoder.c - Handshake encoder → EXI header encoder: uses header
src/appHandshake/appHandEXIDatatypesEncoder.c - Handshake decoder → Decoder channel: decodes through
src/appHandshake/appHandEXIDatatypesDecoder.c - Handshake decoder → EXI header decoder: uses header
src/appHandshake/appHandEXIDatatypesDecoder.c - DIN encoder → Encoder channel: encodes through
src/din/dinEXIDatatypesEncoder.c - DIN encoder → EXI header encoder: uses header
src/din/dinEXIDatatypesEncoder.c - Signature encoder → Encoder channel: encodes through
src/xmldsig/xmldsigEXIDatatypesEncoder.c - Signature encoder → EXI header encoder: uses header
src/xmldsig/xmldsigEXIDatatypesEncoder.c - Signature decoder → Decoder channel: decodes through
src/xmldsig/xmldsigEXIDatatypesDecoder.c - Signature decoder → EXI header decoder: uses header
src/xmldsig/xmldsigEXIDatatypesDecoder.c - Encoder channel → Bit output: writes bits
src/codec/EncoderChannel.c - Decoder channel → Bit input: reads bits
src/codec/DecoderChannel.c - V2G peer → Handshake encoder: provides messages
- V2G peer → Handshake decoder: receives messages