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).
| Category | OCPP 1.6 | OCPP 2.0.1 | OCPP 2.1 |
|---|---|---|---|
| Start-up | 8 | 9 | 9 |
| Cards | 10 | 10 | 10 |
| Charging | 8 | 8 | 8 |
| Remote control | 7 | 6 | 6 |
| Smart charging | 6 | 7 | 11 |
| Configuration and reset | 8 | 10 | 11 |
| Charger certificates | 6 | 6 | 6 |
| Plug & Charge | 16 | 16 | 20 |
| Errors | 5 | 5 | 5 |
| Total | 74 | 77 | 86 |
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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Boot accepted | Charger | Your CSMS answers BootNotification with Accepted, a heartbeat interval and its current time. | All |
| Heartbeat answered with the time | Charger | The Heartbeat answer carries a currentTime less than 5 minutes off the charger’s clock. | All |
| Every connector status accepted | Charger | Your 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 connection | Charger | After the connection drops, the charger can connect again and its new BootNotification is Accepted. | All |
| Reconnect without a new boot | Charger | After a reconnect, a Heartbeat sent before any BootNotification is answered. | 2.0.1, 2.1 |
| Wrong password refused | Charger | A 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 BootNotification | CSMS | Your CSMS sends TriggerMessage for BootNotification and accepts the boot that follows. | All |
| CSMS asks for a StatusNotification | CSMS | Your CSMS sends TriggerMessage for StatusNotification and accepts the status without an error. | All |
| CSMS asks for a Heartbeat | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Accepted card | Charger | Authorize for a card your CSMS knows is answered Accepted. | All |
| Unknown card refused | Charger | A card your CSMS has never seen is refused: Invalid on 1.6, Unknown or Invalid on 2.x. | All |
| Blocked card refused | Charger | A blocked card gets Blocked, and no charge starts. | All |
| Expired card refused | Charger | A card whose validity has ended gets Expired. | All |
| Blocked card in a transaction start | Charger | A 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 group | Charger | Two 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 list | CSMS | Your CSMS sends SendLocalList with updateType Full, a version above 0 and valid entries. | All |
| Send a change to the local list | CSMS | Your CSMS sends a Differential update with a higher version than the full list. | All |
| Read the local list version | CSMS | Your CSMS sends GetLocalListVersion. | All |
| Clear the card cache | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Start and stop recorded | Charger | A 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 ID | Charger | Two charges in a row get two different transactionId values. | 1.6 |
| Transaction events in order | Charger | Started, two Updated and Ended for one transaction are all answered without an error. | 2.0.1, 2.1 |
| Meter values during a charge | Charger | Energy, power and current sent during a charge are answered without an error: MeterValues (1.6), TransactionEvent Updated (2.x). | All |
| Meter values at the end | Charger | The final reading, with decimals, is answered without an error: meterStop and transactionData (1.6), a Transaction.End meter value (2.x). | All |
| Stop by unplugging | Charger | A charge that ends because the car was unplugged (EVDisconnected) is answered without an error. | All |
| Stop with the same card | Charger | A charge stopped by tapping the same card again is answered without an error. | All |
| Fault during a charge | Charger | A charge ended by a ground fault, and the Faulted status after it, are answered without an error. | All |
| CSMS asks for meter values | CSMS | During 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Remote start | CSMS | Your CSMS sends RemoteStartTransaction (1.6) or RequestStartTransaction (2.x), the charge starts and your CSMS accepts the transaction. | All |
| Remote start with a power limit | CSMS | The remote start carries a TxProfile, the charge starts and the charger holds that profile. | All |
| Remote stop | CSMS | Your CSMS sends RemoteStopTransaction (1.6) or RequestStopTransaction (2.x) naming the running transaction, and accepts the stop. | All |
| Remote start while charging is refused | CSMS | Your CSMS sends a remote start to a connector that is already charging; the charger refuses it and the first charge goes on. | All |
| Unlock connector | CSMS | Your CSMS sends UnlockConnector for connector 1. | 1.6 |
| Take the charger out of service | CSMS | Your CSMS sends ChangeAvailability Inoperative and accepts the Unavailable status that follows. | All |
| Put the charger back in service | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Limit on a running charge | CSMS | Your CSMS sends SetChargingProfile with a TxProfile for the running transaction, and the charger accepts it. | All |
| Default limit for new charges | CSMS | Your CSMS sends a TxDefaultProfile, and the charger accepts it. | All |
| Charger-wide maximum | CSMS | Your 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 top | CSMS | A second TxDefaultProfile with a higher stackLevel is accepted, and the charger keeps both. | All |
| Clear a limit | CSMS | ClearChargingProfile removes at least one profile and is answered Accepted. | All |
| Read the combined schedule | CSMS | Your CSMS sends GetCompositeSchedule and gets a schedule back. | All |
| Read the stored profiles | CSMS | Your CSMS sends GetChargingProfiles and accepts the ReportChargingProfiles that follows. | 2.0.1, 2.1 |
| A bidirectional car’s charging needs | Charger, then CSMS | Your 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 setpoint | CSMS | Your 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 profile | CSMS | After 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 charge | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Read every setting | CSMS | Your CSMS reads the whole configuration: GetConfiguration without keys (1.6), or GetBaseReport with every NotifyReport part accepted (2.x). | All |
| Read chosen settings | CSMS | Your CSMS asks for at least one named setting: GetConfiguration with keys (1.6) or GetVariables (2.x). | All |
| Read a custom report | CSMS | Your 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 setting | CSMS | Your 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 refused | CSMS | Your CSMS tries to change a read-only setting, and the charger answers Rejected. | All |
| An unknown setting | CSMS | Your CSMS tries to change a setting the charger doesn’t have, and the charger answers NotSupported (1.6) or UnknownComponent (2.x). | All |
| Soft reset | CSMS | Your CSMS sends Reset Soft (1.6) or OnIdle (2.x), and accepts the BootNotification after the restart. | All |
| Hard reset | CSMS | Your CSMS sends Reset Hard (1.6) or Immediate (2.x), and accepts the BootNotification after the restart. | All |
| Reset during a charge | CSMS | Your 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 over | CSMS | Your 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 charge | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Sign the charger’s certificate | Charger, then CSMS | Your 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 certificate | CSMS | Your CSMS starts the renewal itself, with ExtendedTriggerMessage (1.6) or TriggerMessage (2.x), and the new certificate is accepted. | All |
| Install a root certificate | CSMS | Your CSMS installs a CSMS or manufacturer root with InstallCertificate, and the charger accepts it. | All |
| List installed certificates | CSMS | Your CSMS sends GetInstalledCertificateIds. | All |
| Delete a certificate | CSMS | Your CSMS deletes a certificate the charger holds with DeleteCertificate. | All |
| Delete a certificate the charger does not have | CSMS | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Install a V2G root · ISO 15118-2 | CSMS | Your CSMS installs a P-256 V2G root with InstallCertificate, and the charger accepts it. | All |
| Install an MO root | CSMS | Your CSMS installs a contract (MO) root, so the charger can check contracts itself. | All |
| List the V2G certificates | CSMS | Your CSMS asks which V2G certificates the charger holds, and the answer includes the root it installed. | All |
| Sign the V2G (SECC) certificate · ISO 15118-2 | Charger, then CSMS | Your 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-2 | CSMS | Your CSMS sends TriggerMessage SignV2GCertificate, and the new certificate is accepted. | All |
| Certificate status (OCSP) | Charger | Your CSMS answers GetCertificateStatus for the charger’s V2G certificates with Accepted and an OCSP response. | All |
| A valid contract is accepted · ISO 15118-2 | Charger | Authorize for a valid contract is Accepted, and the charge starts. | All |
| A revoked contract is refused · ISO 15118-2 | Charger | A revoked contract is refused: certificateStatus CertificateRevoked, or the idToken is not Accepted. | All |
| An expired contract is refused · ISO 15118-2 | Charger | An expired contract is refused: certificateStatus CertificateExpired, or the idToken is not Accepted. | All |
| Install a contract through your CSMS · ISO 15118-2 | Charger | For a car with no contract, your CSMS answers Get15118EVCertificate (Install) with Accepted and a contract the car accepts. | All |
| Delete a V2G root | CSMS | Your CSMS deletes a V2G root the charger holds. | All |
| Install a V2G root · ISO 15118-20 | CSMS | Your CSMS installs a P-521 V2G root, and the charger accepts it. | All † |
| Sign the V2G (SECC) certificate · ISO 15118-20 | Charger, then CSMS | Your 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-20 | Charger | Authorize for a valid -20 contract is Accepted, and the charge starts. | All † |
| A revoked contract is refused · ISO 15118-20 | Charger | A revoked -20 contract is refused: CertificateRevoked, or the idToken is not Accepted. | All † |
| An expired contract is refused · ISO 15118-20 | Charger | An expired -20 contract is refused: CertificateExpired, or the idToken is not Accepted. | All † |
| Install a contract through your CSMS · ISO 15118-20 | Charger | For 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-20 | CSMS | Your CSMS sends TriggerMessage SignV2G20Certificate, and the new P-521 certificate is accepted. | 2.1 |
| Install a root for the car’s vehicle certificate | CSMS | Your CSMS installs an OEMRootCertificate, which the charger uses to check a car’s vehicle certificate. | 2.1 |
| Status of the car’s vehicle certificates | Charger | Your 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.
| Test | Started by | Passes when | Versions |
|---|---|---|---|
| Unknown action gets NotImplemented | Charger | A request with a made-up action name gets CALLERROR NotImplemented. | All |
| Missing fields refused | Charger | Authorize without its card field gets a CALLERROR for a format, occurrence, protocol or type problem. | All |
| A broken message does not break the connection | Charger | After text that isn’t valid JSON, the connection stays open and the next Heartbeat is answered. | All |
| DataTransfer to an unknown vendor | Charger | DataTransfer with a vendor ID your CSMS doesn’t know is answered UnknownVendorId. | All |
| Answers within 5 seconds | Charger | Three 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.