Stage: ending a session

How a session winds down in order: PowerDelivery Stop, the current ramping to zero, welding detection on DC, SessionStop with Terminate or Pause, and the Control Pilot back to B and then A. What a clean end looks like and what breaks it.

What the stage does

  • Either side can start the end. The car sends PowerDeliveryReq with ChargeProgress Stop on its own (full battery, driver request) or because the charger asked, with EVSENotification StopCharging in ISO 15118-2 or an EVSE notification in ISO 15118-20. In DIN SPEC 70121 the request carries ReadyToChargeState false.
  • The current has to reach zero before any contactor opens under load. The car returns to state B after the PowerDelivery Stop exchange (CP-08) and stops drawing current within pw.currentZeroTimeS (PW-03).
  • On DC the car then runs welding detection: it watches EVSEPresentVoltage fall to confirm that its own contactors really opened and did not weld.
  • SessionStopReq closes the V2G session, and the TCP connection closes after SessionStopRes. Unplugging takes the Control Pilot to state A.

The messages

  1. EV: PowerDeliveryReq, ChargeProgress Stop
  2. EVSE: PowerDeliveryRes, OK; the output ramps down
  3. EV: CP state C to B, the car opens S2
  4. EV: WeldingDetectionReq, DC only, repeated
  5. EVSE: WeldingDetectionRes, EVSEPresentVoltage falling
  6. EV: SessionStopReq, ChargingSession Terminate or Pause
  7. EVSE: SessionStopRes, OK
  8. both: TCP connection closed
  9. EV: CP state B to A, unplugged
StepDIN SPEC 70121ISO 15118-2ISO 15118-20
Stop requestPowerDeliveryReq, ReadyToChargeState falsePowerDeliveryReq, ChargeProgress StopPowerDeliveryReq, ChargeProgress Stop
Welding check (DC)WeldingDetectionReq and ResWeldingDetectionReq and ResDC_WeldingDetectionReq with EVProcessing, and Res
Session endSessionStopReq, no parameterSessionStopReq, ChargingSession Terminate or PauseSessionStopReq, ChargingSession Terminate, Pause or ServiceRenegotiation, optional EVTerminationCode

Pausing versus terminating

  • Terminate ends the session for good. A new plug-in starts a new session with a new SessionID.
  • Pause keeps the session. The car may come back later, without unplugging, and resume with the same SessionID in SessionSetupReq (SQ-11).
  • In ISO 15118-20 the charger can ask for a pause; a session it asked to pause should end with ChargingSession Pause and not Terminate (IS20-06). ServiceRenegotiation returns to service selection without leaving the session.
TimerLimit profile keyProfile default
Current to near zero after PowerDelivery Stop or C to Bpw.currentZeroTimeS3 s
Charger opens its contactor after the car goes from C to Bpw.switchOpenAfterCToBS0.1 s (SAE J1772 profile: 3 s)
PowerDeliveryRes Stop to the C to B change (CP-08)cp.transition.maxDelayAfterPowerDeliveryStopS250 ms
PowerDelivery responsetim.msgTimeoutLongS5 s
WeldingDetection and SessionStop responsestim.msgTimeoutS2 s

The B to C delay and the message timeouts are flagged for verification in the limit profile, and so is the 3 s of the SAE J1772 profile. The current and switch times come from IEC 61851-1:2017 Table A.6.

What usually breaks

  • The TCP connection closes, or is reset, before SessionStopRes (TC-02). The charge may be complete, but the session did not end cleanly.
  • Current keeps flowing after PowerDelivery Stop or the change to state B (PW-03), which strains the contactors.
  • SessionStop or PowerDelivery Stop answered with a FAILED code after a completed charge. The verdict keeps it apart from a charge cut short.
  • Welding detection never sees the voltage fall: the output of the charger is not discharged, or a contactor of the car is welded.
  • The car never leaves state C, or the Control Pilot goes to E or F on the way out; the connector may then stay locked.
  • A pause read as an end, or the other way round: the car resumes with a new SessionID, or the charger has already dropped the old one.

The symptom page is The session does not end cleanly; a stop in the middle of charging is covered in The session stops during charging.

In the analyzer

  • Stage strip: Stop, from PowerDelivery Stop to an OK SessionStopRes, then Unplug, which passes when the Control Pilot reaches state A.
  • Checks: CP-08 and PW-03 for the switch and the current, TC-02 for the connection, SQ-05 for a refused step, IS20-06 and SQ-11 for pausing and resuming.
  • Power tab: the current falling after the stop. CP state lane: C to B, then B to A.
  • Verdicts: Completed normally for a clean end; EV stopped early, EVSE stopped or Connection lost otherwise.

Sources

  • DIN SPEC 70121:2014-12, PowerDelivery, WeldingDetection and SessionStop
  • ISO 15118-2:2014, PowerDelivery, WeldingDetection, SessionStop, pause and resume
  • ISO 15118-20:2022, PowerDelivery, DC_WeldingDetection, SessionStop, pausing and EVTerminationCode
  • IEC 61851-1:2017, Table A.6, sequences 7, 8.1, 9.1 and 10.1
  • IEC 61851-23, discharge of the output and unlocking on DC
  • ChargeX Consortium: ev-charge-seq-state, Argonne National Laboratory, Apache-2.0: PlantUML sequence diagrams of SAE J1772, ISO 15118-2 and ISO 15118-20 with OCPP 1.6J, 2.0.1 and 2.1, including the end of the session and the backend messages beside it