Before a real charger connects to your CSMS, you want to know it boots cleanly, refuses the cards it should, records every charge, and sends commands the charger understands. This is a checklist of 88 test cases for doing that, grouped in nine categories, with the OCPP version each one applies to: 74 cases on OCPP 1.6, 77 on 2.0.1 and 86 on 2.1.

You can work through it with any test charger. It is also exactly the list that the Test suite in Rey, the free virtual charge point, runs against your CSMS, one result per case. How to test your CSMS with Rey’s Test suite walks through a run.

How to read the tables

Each table has four columns:

  • Test: a short name. The names match Rey’s Test suite, so you can find each case there.
  • Started by: who sends the first message.
    • Charger: the charger sends a request and checks your CSMS’s answer. Rey runs these by itself.
    • Charger, then CSMS: the charger sends, and your CSMS has to follow up by itself, for example by signing a certificate and sending it back.
    • CSMS: only a CSMS can start it, so a test tool waits for your CSMS to send the right message and checks it. In Rey these are the “Your turn” steps.
  • Passes when: what has to happen for the case to pass.
  • Versions: All means OCPP 1.6, 2.0.1 and 2.1.

Where the message names differ between versions, the table gives both: 1.6 first, then 2.0.1 and 2.1 (written 2.x).

CategoryOCPP 1.6OCPP 2.0.1OCPP 2.1
Start-up899
Cards101010
Charging888
Remote control766
Smart charging6711
Configuration and reset81011
Charger certificates666
Plug & Charge161620
Errors555
Total747786

Start-up

The first minute of a charger’s life: the boot, the heartbeat, connector statuses and coming back after a dropped connection. A CSMS that fails here never gets to the rest. The BootNotification guide and the heartbeat and connection lifecycle cover the messages.

TestStarted byPasses whenVersions
Boot acceptedChargerYour CSMS answers BootNotification with Accepted, a heartbeat interval and its current time.All
Heartbeat answered with the timeChargerThe Heartbeat answer carries a currentTime less than 5 minutes off the charger’s clock.All
Every connector status acceptedChargerYour CSMS takes a StatusNotification for every status the version defines (nine on 1.6, five on 2.x) without an error.All
Reconnect after a dropped connectionChargerAfter the connection drops, the charger can connect again and its new BootNotification is Accepted.All
Reconnect without a new bootChargerAfter a reconnect, a Heartbeat sent before any BootNotification is answered.2.0.1, 2.1
Wrong password refusedChargerA connection with a made-up charger ID and a wrong password is refused with HTTP 401. Only for a CSMS that checks passwords (security profile 1 or 2).All
CSMS asks for a BootNotificationCSMSYour CSMS sends TriggerMessage for BootNotification and accepts the boot that follows.All
CSMS asks for a StatusNotificationCSMSYour CSMS sends TriggerMessage for StatusNotification and accepts the status without an error.All
CSMS asks for a HeartbeatCSMSYour CSMS sends TriggerMessage for Heartbeat and answers the Heartbeat with its time.All

Cards

Authorization with RFID cards: the answers your CSMS gives for good and bad cards, card groups, and the local list a charger uses when it’s offline.

TestStarted byPasses whenVersions
Accepted cardChargerAuthorize for a card your CSMS knows is answered Accepted.All
Unknown card refusedChargerA card your CSMS has never seen is refused: Invalid on 1.6, Unknown or Invalid on 2.x.All
Blocked card refusedChargerA blocked card gets Blocked, and no charge starts.All
Expired card refusedChargerA card whose validity has ended gets Expired.All
Blocked card in a transaction startChargerA charge started with a blocked card and no Authorize first, as after a time offline, is answered with status Blocked: in idTagInfo (StartTransaction, 1.6) or idTokenInfo (TransactionEvent Started, 2.x).All
Two cards of the same groupChargerTwo cards of one group get the same parentIdTag (1.6) or groupIdToken (2.x), so either card can stop the other’s charge.All
Send the full local listCSMSYour CSMS sends SendLocalList with updateType Full, a version above 0 and valid entries.All
Send a change to the local listCSMSYour CSMS sends a Differential update with a higher version than the full list.All
Read the local list versionCSMSYour CSMS sends GetLocalListVersion.All
Clear the card cacheCSMSYour CSMS sends a valid ClearCache. Rey keeps no card cache, which OCPP allows, so it answers Rejected.All

Charging

A whole charge, from start to stop, and the different ways a charge can end. The charging session message flow shows the full sequence.

TestStarted byPasses whenVersions
Start and stop recordedChargerA whole charge goes through: StartTransaction gets a transactionId and Accepted, and StopTransaction is answered (1.6); TransactionEvent Started and Ended are answered without an error (2.x).All
Each charge gets its own transaction IDChargerTwo charges in a row get two different transactionId values.1.6
Transaction events in orderChargerStarted, two Updated and Ended for one transaction are all answered without an error.2.0.1, 2.1
Meter values during a chargeChargerEnergy, power and current sent during a charge are answered without an error: MeterValues (1.6), TransactionEvent Updated (2.x).All
Meter values at the endChargerThe final reading, with decimals, is answered without an error: meterStop and transactionData (1.6), a Transaction.End meter value (2.x).All
Stop by unpluggingChargerA charge that ends because the car was unplugged (EVDisconnected) is answered without an error.All
Stop with the same cardChargerA charge stopped by tapping the same card again is answered without an error.All
Fault during a chargeChargerA charge ended by a ground fault, and the Faulted status after it, are answered without an error.All
CSMS asks for meter valuesCSMSDuring a charge, your CSMS sends TriggerMessage for MeterValues and accepts the values.All

Remote control

What your CSMS can do from a distance, as an app or a support desk would. Remote start and stop explains the messages.

TestStarted byPasses whenVersions
Remote startCSMSYour CSMS sends RemoteStartTransaction (1.6) or RequestStartTransaction (2.x), the charge starts and your CSMS accepts the transaction.All
Remote start with a power limitCSMSThe remote start carries a TxProfile, the charge starts and the charger holds that profile.All
Remote stopCSMSYour CSMS sends RemoteStopTransaction (1.6) or RequestStopTransaction (2.x) naming the running transaction, and accepts the stop.All
Remote start while charging is refusedCSMSYour CSMS sends a remote start to a connector that is already charging; the charger refuses it and the first charge goes on.All
Unlock connectorCSMSYour CSMS sends UnlockConnector for connector 1.1.6
Take the charger out of serviceCSMSYour CSMS sends ChangeAvailability Inoperative and accepts the Unavailable status that follows.All
Put the charger back in serviceCSMSYour CSMS sends ChangeAvailability Operative and accepts the Available status that follows.All

Smart charging

Charging profiles: a limit on one charge, a default for every charge, a cap on the whole charger, and stacking. Testing SetChargingProfile (coming soon) goes into each one.

TestStarted byPasses whenVersions
Limit on a running chargeCSMSYour CSMS sends SetChargingProfile with a TxProfile for the running transaction, and the charger accepts it.All
Default limit for new chargesCSMSYour CSMS sends a TxDefaultProfile, and the charger accepts it.All
Charger-wide maximumCSMSYour CSMS sends a ChargePointMaxProfile on connector 0 (1.6) or a ChargingStationMaxProfile on EVSE 0 (2.x), and the charger accepts it.All
A higher stack level on topCSMSA second TxDefaultProfile with a higher stackLevel is accepted, and the charger keeps both.All
Clear a limitCSMSClearChargingProfile removes at least one profile and is answered Accepted.All
Read the combined scheduleCSMSYour CSMS sends GetCompositeSchedule and gets a schedule back.All
Read the stored profilesCSMSYour CSMS sends GetChargingProfiles and accepts the ReportChargingProfiles that follows.2.0.1, 2.1
A bidirectional car’s charging needsCharger, then CSMSYour CSMS allows DC_BPT for the card in its Authorize answer, answers NotifyEVChargingNeeds with Accepted, Processing or NoChargingProfile, and after Accepted sends a TxProfile the charger accepts.2.1
Set the power with a setpointCSMSYour CSMS sends a TxProfile for the transaction with operation mode CentralSetpoint, and the charger runs at the setpoint, within what it and the car can do. Below zero, the car gives power back.2.1
Change the setpoint of a Dynamic profileCSMSAfter a Dynamic TxProfile with CentralSetpoint, your CSMS sends UpdateDynamicSchedule with a new setpoint, and the charger follows it.2.1
Allow bidirectional power during a chargeCSMSYour CSMS sends NotifyAllowedEnergyTransfer for the running transaction, allowing at least one energy transfer.2.1

The first three cases run a car that gives power back over ISO 15118-20 with TLS 1.3, so the charger needs its -20 V2G root and SECC certificate first. A CSMS that doesn’t allow DC_BPT for the card can’t run them: Rey marks them Not supported. Watch for one failure in particular: allowing DC_BPT in Authorize, then answering NotifyEVChargingNeeds with Rejected, which ends the session. Testing OCPP 2.1 bidirectional charging covers the messages.

Configuration and reset

Reading and changing the charger’s settings, including the ones it won’t let you change, and the reset types. On 1.6 settings are flat keys; on 2.x they are variables in the device model.

TestStarted byPasses whenVersions
Read every settingCSMSYour CSMS reads the whole configuration: GetConfiguration without keys (1.6), or GetBaseReport with every NotifyReport part accepted (2.x).All
Read chosen settingsCSMSYour CSMS asks for at least one named setting: GetConfiguration with keys (1.6) or GetVariables (2.x).All
Read a custom reportCSMSYour CSMS sends GetReport for chosen variables; the charger answers Accepted (or EmptyResultSet when nothing matches), and your CSMS accepts every NotifyReport part.2.0.1, 2.1
Change a settingCSMSYour CSMS changes the heartbeat interval with ChangeConfiguration (1.6) or SetVariables (2.x), and the charger starts using the new value.All
Changing a read-only setting is refusedCSMSYour CSMS tries to change a read-only setting, and the charger answers Rejected.All
An unknown settingCSMSYour CSMS tries to change a setting the charger doesn’t have, and the charger answers NotSupported (1.6) or UnknownComponent (2.x).All
Soft resetCSMSYour CSMS sends Reset Soft (1.6) or OnIdle (2.x), and accepts the BootNotification after the restart.All
Hard resetCSMSYour CSMS sends Reset Hard (1.6) or Immediate (2.x), and accepts the BootNotification after the restart.All
Reset during a chargeCSMSYour CSMS resets the charger during a charge, then accepts both the end of the charge and the BootNotification after the restart.All
Reset when the charge is overCSMSYour CSMS sends Reset OnIdle during a charge; the charger answers Scheduled, keeps charging until the driver ends the charge, then restarts. Your CSMS accepts the end of the charge and the BootNotification, and the reset didn’t cut the charge short.2.0.1, 2.1
Reset that keeps the chargeCSMSYour CSMS sends Reset ImmediateAndResume during a charge, accepts both TransactionEvent Updated messages (ResetCommand, then TxResumed) and the BootNotification, and the charge goes on with the same transactionId.2.1

Charger certificates

The charger’s own certificates, the ones security profile 3 uses: signing, renewing, installing roots, listing and deleting. On 1.6 these messages come from the Security Whitepaper extension. OCPP security profiles explains where they fit.

TestStarted byPasses whenVersions
Sign the charger’s certificateCharger, then CSMSYour CSMS accepts the charger’s certificate request (SignCertificate), then delivers a certificate in CertificateSigned that the charger accepts.All
CSMS asks for a new charger certificateCSMSYour CSMS starts the renewal itself, with ExtendedTriggerMessage (1.6) or TriggerMessage (2.x), and the new certificate is accepted.All
Install a root certificateCSMSYour CSMS installs a CSMS or manufacturer root with InstallCertificate, and the charger accepts it.All
List installed certificatesCSMSYour CSMS sends GetInstalledCertificateIds.All
Delete a certificateCSMSYour CSMS deletes a certificate the charger holds with DeleteCertificate.All
Delete a certificate the charger does not haveCSMSYour CSMS asks to delete a certificate the charger doesn’t hold, and the charger answers NotFound.All

Plug & Charge

Contract checks, the charger’s V2G certificates and contract installation through your CSMS. The cases come in two editions, and where it matters, the name says which:

  • ISO 15118-2: P-256 keys, TLS 1.2 between the car and the charger.
  • ISO 15118-20: P-521 keys, TLS 1.3, where the car also shows its vehicle certificate. Ed448 is not covered.

ISO 15118-20 is part of OCPP 2.1. On OCPP 1.6 and 2.0.1, the cases marked † go beyond what OCPP specifies: 2.0.1 and the 1.6 Plug & Charge application note cover ISO 15118-2 only. Skip them if your CSMS doesn’t do -20 on those versions. On 1.6, every Plug & Charge message travels inside DataTransfer, as that application note describes.

For the contract cases, your CSMS has to trust the test contracts’ roots: import them as contract (MO) roots first. Testing OCPP Plug & Charge covers the ISO 15118-2 flow and testing ISO 15118-20 Plug & Charge on OCPP 2.1 the -20 one.

TestStarted byPasses whenVersions
Install a V2G root · ISO 15118-2CSMSYour CSMS installs a P-256 V2G root with InstallCertificate, and the charger accepts it.All
Install an MO rootCSMSYour CSMS installs a contract (MO) root, so the charger can check contracts itself.All
List the V2G certificatesCSMSYour CSMS asks which V2G certificates the charger holds, and the answer includes the root it installed.All
Sign the V2G (SECC) certificate · ISO 15118-2Charger, then CSMSYour CSMS signs the charger’s P-256 request and delivers a chain from the new certificate up to the V2G root.All
CSMS asks for a V2G certificate · ISO 15118-2CSMSYour CSMS sends TriggerMessage SignV2GCertificate, and the new certificate is accepted.All
Certificate status (OCSP)ChargerYour CSMS answers GetCertificateStatus for the charger’s V2G certificates with Accepted and an OCSP response.All
A valid contract is accepted · ISO 15118-2ChargerAuthorize for a valid contract is Accepted, and the charge starts.All
A revoked contract is refused · ISO 15118-2ChargerA revoked contract is refused: certificateStatus CertificateRevoked, or the idToken is not Accepted.All
An expired contract is refused · ISO 15118-2ChargerAn expired contract is refused: certificateStatus CertificateExpired, or the idToken is not Accepted.All
Install a contract through your CSMS · ISO 15118-2ChargerFor a car with no contract, your CSMS answers Get15118EVCertificate (Install) with Accepted and a contract the car accepts.All
Delete a V2G rootCSMSYour CSMS deletes a V2G root the charger holds.All
Install a V2G root · ISO 15118-20CSMSYour CSMS installs a P-521 V2G root, and the charger accepts it.All †
Sign the V2G (SECC) certificate · ISO 15118-20Charger, then CSMSYour CSMS signs the charger’s P-521 request (V2G20Certificate on 2.1, V2GCertificate before) and delivers a chain to the -20 V2G root.All †
A valid contract is accepted · ISO 15118-20ChargerAuthorize for a valid -20 contract is Accepted, and the charge starts.All †
A revoked contract is refused · ISO 15118-20ChargerA revoked -20 contract is refused: CertificateRevoked, or the idToken is not Accepted.All †
An expired contract is refused · ISO 15118-20ChargerAn expired -20 contract is refused: CertificateExpired, or the idToken is not Accepted.All †
Install a contract through your CSMS · ISO 15118-20ChargerFor a -20 car with no contract, your CSMS answers Get15118EVCertificate (Install) with Accepted and a contract the car accepts.2.1
CSMS asks for a V2G certificate · ISO 15118-20CSMSYour CSMS sends TriggerMessage SignV2G20Certificate, and the new P-521 certificate is accepted.2.1
Install a root for the car’s vehicle certificateCSMSYour CSMS installs an OEMRootCertificate, which the charger uses to check a car’s vehicle certificate.2.1
Status of the car’s vehicle certificatesChargerYour CSMS answers GetCertificateChainStatus with a status for every certificate in the car’s chain. Failed counts as an answer, since a CSMS may not reach the OCSP address in a test certificate.2.1

-20 contract installation is a 2.1 case only, because a -20 answer doesn’t fit the 5600 characters OCPP 1.6 and 2.0.1 allow for it.

Errors

How your CSMS handles messages it should refuse, and whether it answers quickly enough. Common OCPP errors explained covers the CALLERROR codes.

TestStarted byPasses whenVersions
Unknown action gets NotImplementedChargerA request with a made-up action name gets CALLERROR NotImplemented.All
Missing fields refusedChargerAuthorize without its card field gets a CALLERROR for a format, occurrence, protocol or type problem.All
A broken message does not break the connectionChargerAfter text that isn’t valid JSON, the connection stays open and the next Heartbeat is answered.All
DataTransfer to an unknown vendorChargerDataTransfer with a vendor ID your CSMS doesn’t know is answered UnknownVendorId.All
Answers within 5 secondsChargerThree Heartbeats in a row are each answered within 5 seconds.All

What this list doesn’t cover

  • Chargers and cars. These are CSMS cases; the charger and the car are the test tool.
  • Conformance. Passing them shows how your CSMS behaves with a charger. It is not a conformance test or a certification.
  • Load. One charger at a time.
  • DER control, tariffs and costs, and battery swap. Rey doesn’t simulate them, so there are no cases for them either.

Run the whole list against your CSMS

Every case above is in the Test suite of Rey. Connect Rey to your CSMS on a public wss:// address with a test charger ID, open Test suite, and choose Quick check, Automatic only, Full, or Custom to pick single categories or cases. The “CSMS” cases become Your turn steps: Rey shows what to send from your CSMS, gives you 2 minutes and checks what arrives. How to test your CSMS with Rey’s Test suite walks through a run, and the Rey handbook covers every screen.