AC test cases, worked

Fourteen illustrative AC test cases: basic PWM charging, the 5 percent start, an ISO 15118-2 EIM session, current limits by PWM and by schedule, stops by car and charger, pause and resume, cable coding by PP, Control Pilot faults, loss of communication, phases and state D, each with the checks that observe it.

About these test cases

Most of these test cases run in the analyzer: name each capture after its test case and the Batch page or the command line says pass, fail or inconclusive per file. See Running test cases.

These test cases are this tool's own illustrative plan, written from the public descriptions of the standards. They are not copies of any standard's test suite, and passing them does not make a product conformant or certified. For certification, use the official test suite and an accredited or authorised lab.

Common setup: the charger under test, a car or an EV simulator with a Control Pilot and PP circuit, a Control Pilot logger, current clamps on each phase, and a powerline sniffer for the high level cases. Values in the pass criteria come from IEC 61851-1:2017 as the default limit profile of this tool reads them; the profile names the table for each.

Signalling and start

Id and purposePreconditionsTest bodyExpected result and pass criteriaReferenceObserved by
AC-01 Basic charging with PWM onlyCharger set to basic charging, no HLC. Car without HLC, or HLC off.Plug in (A to B). Charger sets a duty cycle for 16 A. Car closes S2 (B to C). Charge 5 minutes. Car ends.PWM at 1 kHz within 980 to 1 020 Hz; plateaus inside the windows of each state; duty cycle an allowed value; drawn current at or below the duty cycle current (0.6 A per percent from 10 to 85 percent).IEC 61851-1:2017 Tables A.2, A.4, A.8CP-01, CP-02, CP-03, PW-01, PW-02; PF-01 to PF-03 name a missing diode, an open pilot or a short
AC-02 5 percent start for HLCCharger set to HLC. Car with ISO 15118.Plug in. Charger sets 5 percent. Wait for SLAC.Duty cycle inside the digital communication window (3 to 7 percent) before the first CM_SLAC_PARM.REQ; SLAC completes.IEC 61851-1:2017 Table A.8; ISO 15118-3CP-03, CP-04, SL-01; SEC-01, SEC-02 and SEC-04 on the match
AC-03 ISO 15118-2 AC session with EIMHLC, EIM, backend accepts the card. Demo ac-ok.Plug in, present the card during Authorization, charge, stop from the car.Messages in state machine order; one answer per request, all OK and in time; offered energy mode and payment option used; car in state C at the right step; nominal duty after 5 percent passes through X1.ISO 15118-2; ISO 15118-3SQ-01, SQ-02, SQ-05, SQ-06, SQ-07, TIM-01, TIM-04, CP-06, CP-07

A negative variant of AC-03 is in the demos: ac-failed, where the charger refuses the charge parameters, and ocpp-rejected, where the backend refuses the card and the charger keeps the car at Ongoing.

Current control

Id and purposePreconditionsTest bodyExpected result and pass criteriaReferenceObserved by
AC-04 Limit change by PWMAC-01 running at 32 A.Charger lowers the duty cycle to the value for 10 A. After 2 minutes, back to 32 A.The car is at or below the new limit within the settling time (5 s in the default profile) and stays there.IEC 61851-1:2017 Table A.6, sequence 6PW-01, CP-03
AC-05 Limit change by scheduleAC-03 running. Backend can send a charging profile.Backend lowers the limit (OCPP SetChargingProfile). Charger asks the car to renegotiate, or lowers its announced maximum current.Car answers a ReNegotiation notification in time; PowerDelivery uses a schedule tuple the charger sent; drawn current follows the new limit.ISO 15118-2 schedules; OCPP smart chargingSQ-09, SQ-08, PW-01
AC-06 Cable rating by PPAdapters with the coding resistors 1 500, 680, 220 and 100 ohm, plus 50 ohm and open.Plug each adapter, start charging, read the duty cycle.Duty cycle never above the cable rating (13, 20, 32, 63 A). Below 60 ohm or above 4 500 ohm the charger does not supply.IEC 61851-1:2017 Table B.2PP-01, PW-01; PF-04 for the open adapter
AC-07 Three phase and single phaseThree phase charger. One car charging on three phases, one on one phase.Run AC-01 with each car. For an ISO 15118-20 car with asymmetric AC, request different currents per phase.Each phase at or below the permitted current; a per phase request answered per phase.IEC 61851-1; ISO 15118-20 ACPW-01, IS20-10

For the schedule limit the analyzer divides PMax by the nominal voltage and by the number of phases that carried load, so a single phase car on a three phase charger is judged against the right current.

Stops, pause and resume

Id and purposePreconditionsTest bodyExpected result and pass criteriaReferenceObserved by
AC-08 Stop by the carAC-01 or AC-03 charging.Stop from the car. With HLC the car sends PowerDeliveryReq Stop first.Current below 1 A before the car opens S2; charger opens its contactor within 100 ms of C to B (SAE J1772 allows 3 s); with HLC, the car opens S2 after PowerDelivery Stop.IEC 61851-1:2017 Table A.6, sequences 7 and 8.1PW-03, CP-08
AC-09 Stop by the chargerAC-01 or AC-03 charging.Stop from the backend or the stop button.Basic: the car stops drawing current within 3 s of the charger request. HLC: the charger sends EVSENotification StopCharging and the car sends PowerDeliveryReq Stop in time.IEC 61851-1:2017 Table A.6, sequences 9.1 and 10.1; ISO 15118-2PW-03, SQ-09
AC-10 Pause and resumeAC-03 charging.Car ends with SessionStopReq ChargingSession Pause. After 2 minutes, the session resumes.Resumed session reuses the previous SessionID; no current during the pause.ISO 15118-2SQ-11, PW-03

Faults and unusual states

Id and purposePreconditionsTest bodyExpected result and pass criteriaReferenceObserved by
AC-11 Control Pilot short (state E) and charger fault (state F)AC-01 in state B, then in state C.Short CP to PE for 2 s. Separately, trigger an internal fault of the charger.No energy while in E; contactor open. The charger signals F for its own fault; F must not appear during normal energy transfer.IEC 61851-1:2017 Table A.4CP-02, CP-09, PW-03
AC-12 No SLAC after 5 percentCharger in HLC mode. Car or simulator that does not start SLAC.Plug in and wait.The charger leaves 5 percent through state E or F before it retries, within the times of ISO 15118-3.ISO 15118-3 V2G3-M06-07CP-05, SL-07
AC-13 Loss of communication while chargingAC-03 charging.Disconnect the powerline coupling, or block TCP, for 30 s.Both sides detect the loss by their timeouts and bring current to zero; the charger does not keep supplying at the last limit without communication.ISO 15118-2 timing tablesTIM-01, TIM-03, TC-02, PW-03
AC-14 Ventilation request (state D)Car simulator that can present the state D resistor.Plug in, present state D instead of C.The charger does what its documentation states: supply with ventilation, or refuse. The plateau sits in the state D window (2 to 4 V).IEC 61851-1:2017 Table A.4CP-02
AC-15 Reactive power setpointISO 15118-20 AC car and charger; a charger or charger simulator that sets EVSETargetReactivePower.Charge, set a reactive power target (per phase if the car charges asymmetrically), then change it.The car reports EVPresentReactivePower and reaches each new target within the settling time; the tolerance is the site grid code, as ISO 15118-20 sets none.ISO 15118-20 AC_ChargeLoopReq and AC_ChargeLoopResIS20-11

Three values above are flagged verify in the default profile: the ISO 15118-3 retry times of AC-12 (TT_EVSE_SLAC_init 20 to 50 s, T_step_EF 3 to 5 s), and the message timeouts of AC-13. What the charger must do after a loss of communication (end the session or fall back) was not confirmed for this article; judge it against the product documentation.

Interoperability plans cover the same ground from the driver side: the ChargeX plan has cases for a lost pilot signal, a cut cable, a broken latch and a complete loss of charger power, idle and during power transfer.

In this tool

Load the capture with the Control Pilot log of the same session (a CSV with state, duty cycle, frequency, plateau voltages, phase currents and PP resistance) and align the two. The CP tab shows the states and duty cycles, the Power tab the currents against the permitted current with the limit that bound it, and the Timers tab each measured interval against its limit. Checks that need both files are marked as depending on alignment. The demo ac-ok contains such a pair.

Sources