Skip to content

Commit

Permalink
in ChargeParameterDiscoveryResponse, say dinisolationLevelType_Invali…
Browse files Browse the repository at this point in the history
…d like public chargers.
  • Loading branch information
uhi22 committed Aug 4, 2023
1 parent 9ea2f72 commit d0e2281
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/main_commandlineinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,11 @@ void encodeChargeParameterDiscoveryResponse(void) {
//dinDoc.V2G_Message.Body.ChargeParameterDiscoveryRes.AC_EVSEChargeParameter
//dinDoc.V2G_Message.Body.ChargeParameterDiscoveryRes.AC_EVSEChargeParameter_isUsed
cpdc = &dinDoc.V2G_Message.Body.ChargeParameterDiscoveryRes.DC_EVSEChargeParameter;
cpdc->DC_EVSEStatus.EVSEIsolationStatus = dinisolationLevelType_Valid;

/* https://github.com/SmartEVSE/SmartEVSE-3/issues/25#issuecomment-1666231234
Public chargers are reporting "invalid", which means, the isolation check has not
yet performed. Reporting "valid" at this step may confuse the car. */
cpdc->DC_EVSEStatus.EVSEIsolationStatus = dinisolationLevelType_Invalid;
cpdc->DC_EVSEStatus.EVSEIsolationStatus_isUsed = 1;
cpdc->DC_EVSEStatus.EVSEStatusCode = dinDC_EVSEStatusCodeType_EVSE_Ready;
cpdc->DC_EVSEStatus.NotificationMaxDelay = 0; /* expected time until the PEV reacts on the below mentioned notification. Not relevant. */
Expand Down

0 comments on commit d0e2281

Please sign in to comment.