diff --git a/exiConnector.py b/exiConnector.py index 90c8071..a699bf2 100644 --- a/exiConnector.py +++ b/exiConnector.py @@ -51,9 +51,20 @@ import json # remove the 8 bytes V2GTP header # 8000dbab9371d3234b71d1b981899189d191818991d26b9b3a232b30020000040040 exiHexDemoSupportedApplicationProtocolRequestIoniq="8000dbab9371d3234b71d1b981899189d191818991d26b9b3a232b30020000040040" +# Command line: +# ./OpenV2G.exe DH8000dbab9371d3234b71d1b981899189d191818991d26b9b3a232b30020000040040 + + # (2) From OpenV2G main_example.appHandshake() # 8000ebab9371d34b9b79d189a98989c1d191d191818981d26b9b3a232b30010000040001b75726e3a64696e3a37303132313a323031323a4d73674465660020000100880 exiHexDemoSupportedApplicationProtocolRequest2="8000ebab9371d34b9b79d189a98989c1d191d191818981d26b9b3a232b30010000040001b75726e3a64696e3a37303132313a323031323a4d73674465660020000100880" +# Command line: +# ./OpenV2G.exe DH8000ebab9371d34b9b79d189a98989c1d191d191818981d26b9b3a232b30010000040001b75726e3a64696e3a37303132313a323031323a4d73674465660020000100880 + +# (3) SupportedApplicationProtocolResponse +# 80400040 +# Command line: +# ./OpenV2G.exe DH80400040 # Configuration of the exi converter tool diff --git a/fsmEvse.py b/fsmEvse.py index ffd4da3..0a57f38 100644 --- a/fsmEvse.py +++ b/fsmEvse.py @@ -36,7 +36,7 @@ class fsmEvse(): exidata = removeV2GTPHeader(self.rxData) print("received exi" + prettyHexMessage(exidata)) self.rxData = [] - strConverterResult = exiDecode(exidata) + strConverterResult = exiDecode(exidata, "DH") # Decode Handshake-request print(strConverterResult) if (strConverterResult.find("ProtocolNamespace=urn:din")>0): # todo: of course we should care for schemaID and prio also here diff --git a/fsmPev.py b/fsmPev.py index 0d8ab64..4f815ae 100644 --- a/fsmPev.py +++ b/fsmPev.py @@ -41,7 +41,7 @@ class fsmPev(): exidata = removeV2GTPHeader(self.rxData) print("received exi" + prettyHexMessage(exidata)) self.rxData = [] - strConverterResult = exiDecode(exidata) + strConverterResult = exiDecode(exidata, "Dh") # Decode Handshake-response print(strConverterResult) # todo: evaluate the message # EDA for encode DIN, SessionSetupRequest