OCPP 2.0.1 made one of its biggest changes to how charging sessions are tracked. The 1.6 trio of StartTransaction, MeterValues, and StopTransaction became a single unified message type: TransactionEvent. The change was driven by years of operational experience with 1.6’s separate-messages model and the bugs it surfaced.

This article covers what TransactionEvent is, how it works, and what changed for CSMS implementers moving from 1.6.

The change in one paragraph

In OCPP 1.6, a session is bracketed by StartTransaction and StopTransaction, with MeterValues messages between them. Three message types, all carrying part of the session story, all needing to be correlated by transactionId at the CSMS. In OCPP 2.0.1, a single TransactionEvent message replaces all three. The event-type field (Started, Updated, Ended) distinguishes which moment of the session this event represents. Same data, cleaner envelope.

flowchart LR
    A[Started<br/>seqNo 0] --> B[Updated<br/>seqNo 1..n]
    B --> B
    B --> C[Ended<br/>final seqNo]
    style A fill:#e8f5e9,stroke:#2e7d32
    style C fill:#ffebee,stroke:#c62828

For background on how these messages travel and how a station connects to a CSMS, see What is OCPP. For the 1.6 model this replaces, see OCPP StartTransaction and StopTransaction.

The structure

Here is one complete session as the station sends it, on a station configured to start the transaction when the cable is connected and the driver is authorized, and to end it when either stops being true (TxStartPoint and TxStopPoint both set to PowerPathClosed; more on those below). The driver plugs in, taps a card, charges for about an hour and taps the card again to stop.

Started. The card tap completes the start condition, so the first event carries the reason, the EVSE, the idToken and the opening meter reading:

[2, "te-100", "TransactionEvent", {
  "eventType": "Started",
  "timestamp": "2026-11-28T19:00:04Z",
  "triggerReason": "Authorized",
  "seqNo": 0,
  "transactionInfo": {
    "transactionId": "6b1e3d2a-9f4c-4a8e-b7d1-0c5f2e8a9b31",
    "chargingState": "EVConnected"
  },
  "evse": { "id": 1, "connectorId": 1 },
  "idToken": { "idToken": "045A2B3C4D5E80", "type": "ISO14443" },
  "meterValue": [{
    "timestamp": "2026-11-28T19:00:04Z",
    "sampledValue": [{
      "value": 1520340,
      "context": "Transaction.Begin",
      "measurand": "Energy.Active.Import.Register",
      "unitOfMeasure": { "unit": "Wh" }
    }]
  }]
}]

The CSMS answers with the authorization result for that idToken. If the status is not Accepted, the station can stop the energy transfer:

[3, "te-100", { "idTokenInfo": { "status": "Accepted" } }]

Updated, charging begins. Five seconds later the car starts drawing current. Nothing else changed, so the event is small: no evse, no idToken, no meter values.

[2, "te-101", "TransactionEvent", {
  "eventType": "Updated",
  "timestamp": "2026-11-28T19:00:09Z",
  "triggerReason": "ChargingStateChanged",
  "seqNo": 1,
  "transactionInfo": {
    "transactionId": "6b1e3d2a-9f4c-4a8e-b7d1-0c5f2e8a9b31",
    "chargingState": "Charging"
  }
}]

Updated, periodic sample. One every sample interval, carrying the measurands configured for updates:

[2, "te-102", "TransactionEvent", {
  "eventType": "Updated",
  "timestamp": "2026-11-28T19:15:09Z",
  "triggerReason": "MeterValuePeriodic",
  "seqNo": 2,
  "transactionInfo": {
    "transactionId": "6b1e3d2a-9f4c-4a8e-b7d1-0c5f2e8a9b31",
    "chargingState": "Charging"
  },
  "meterValue": [{
    "timestamp": "2026-11-28T19:15:09Z",
    "sampledValue": [
      { "value": 1522990, "context": "Sample.Periodic", "measurand": "Energy.Active.Import.Register", "unitOfMeasure": { "unit": "Wh" } },
      { "value": 10650, "context": "Sample.Periodic", "measurand": "Power.Active.Import", "unitOfMeasure": { "unit": "W" } }
    ]
  }]
}]

The CSMS acknowledges each Updated event with an empty payload, [3, "te-102", {}].

Ended. Three more periodic events (seqNo 3 to 5) later, the driver taps the same card. Ending the authorization breaks PowerPathClosed, so the transaction ends. The idToken appears again because it ended the authorization, and the final reading is tagged Transaction.End:

[2, "te-106", "TransactionEvent", {
  "eventType": "Ended",
  "timestamp": "2026-11-28T20:02:41Z",
  "triggerReason": "StopAuthorized",
  "seqNo": 6,
  "transactionInfo": {
    "transactionId": "6b1e3d2a-9f4c-4a8e-b7d1-0c5f2e8a9b31",
    "chargingState": "EVConnected",
    "stoppedReason": "Local"
  },
  "idToken": { "idToken": "045A2B3C4D5E80", "type": "ISO14443" },
  "meterValue": [{
    "timestamp": "2026-11-28T20:02:41Z",
    "sampledValue": [{
      "value": 1531870,
      "context": "Transaction.End",
      "measurand": "Energy.Active.Import.Register",
      "unitOfMeasure": { "unit": "Wh" }
    }]
  }]
}]

The session delivered 1,531,870 − 1,520,340 = 11,530 Wh, about 11.5 kWh in 62 minutes, close to the 10.65 kW sample. stoppedReason may be left out only when the reason is Local, so a CSMS should read a missing value as Local. chargingState is still EVConnected because the cable is still in the car; the StatusNotification for the connector goes to Available only when it is unplugged.

The fields:

  • eventType: Started, Updated, or Ended.
  • timestamp: when this event happened.
  • triggerReason: why this event was generated (Authorized, MeterValueClock, MeterValuePeriodic, EVCommunicationLost, StopAuthorized, etc.).
  • seqNo: sequence number, required on every event. The station should start it at 0 for a new transaction and must add 1 for every event after that.
  • transactionInfo: transactionId plus session state.
  • evse: which EVSE and connector. Sent only in the first event after the EV connected, not repeated.
  • idToken: the user identifier, sent once in the first event after authorization and once when authorization ends. With a start point before authorization (EVConnected, say), the Started event has no idToken and it arrives in a later Updated with triggerReason Authorized.
  • meterValue: meter readings at this point in time, using the same structure as the standalone MeterValues message.

A real Started event from Rey, the free virtual charge point, on OCPP 2.0.1:

Rey's Workbench on OCPP 2.0.1: the inspector shows a TransactionEvent Started with triggerReason Authorized, seqNo 0, a transactionId with chargingState EVConnected, evse 1 connector 1, idToken 045A2B3C4D5E80 of type ISO14443, and meterValue readings for energy and power, valid against the OCPP schema.

Why seqNo matters

The seqNo field is new compared to 1.6 and operationally valuable.

Sequence numbers within a transaction let the CSMS detect:

  • Out-of-order delivery. Event 12 arrives before event 11, so your CSMS knows to reorder.
  • Missing events. Events 10 and 12 arrive but 11 never does, so your CSMS knows to go looking for it.
  • Duplicate events. Two events share a seqNo, so your CSMS knows to deduplicate.

In OCPP 1.6, you correlated MeterValues by timestamp, which was imprecise. The seqNo in 2.0.1 gives you a clean ordering primitive.

The specification defines completeness exactly: you have the whole transaction when you have the Started event with seqNo a, the Ended event with seqNo o, and every seqNo in between. Note what it does not promise. The counter is kept per EVSE, the station only should (not must) reset it to 0 for a new transaction, and a continuously increasing counter is explicitly allowed. A CSMS that assumes Started always has seqNo 0 will flag healthy transactions as incomplete on some stations.

When Started and Ended fire: TxStartPoint and TxStopPoint

In 1.6 every charger decided for itself when a transaction began. In 2.0.1 it is configuration: the TxCtrlr variables TxStartPoint and TxStopPoint each hold a list of these conditions, and the transaction starts at the first listed condition that becomes true and ends at the first listed condition that stops being true.

ValueAs TxStartPoint, the transaction starts whenAs TxStopPoint, it ends when
ParkingBayOccupancyA vehicle is detected in the bayThe bay is empty again
EVConnectedThe cable is connected at both endsThe cable is disconnected
AuthorizedThe driver or EV is authorizedAuthorization ends (card tapped again, remote stop)
PowerPathClosedConnected AND authorizedDisconnected OR deauthorized
EnergyTransferEnergy starts flowingEnergy stops; not recommended, since a pause by the car ends the session
DataSignedThe fiscal meter has signed the start valueNo meaning; don’t use as a stop point

This is why the same session looks different on two stations. With TxStartPoint EVConnected, Started fires at plug-in with triggerReason CablePluggedIn and no idToken, and idle time before the card tap is inside the transaction. With Authorized, a driver who taps and walks away without plugging in still creates a transaction. Read both variables at boot (GetVariables on TxCtrlr) and keep them per station, because your billing start depends on them.

The triggerReason field

triggerReason tells you WHY this event was generated, which is operationally useful.

Common values:

  • Authorized. The driver or EV was just authorized.
  • CablePluggedIn. Vehicle was plugged in.
  • ChargingStateChanged. chargingState changed, for example from EVConnected to Charging or to SuspendedEV.
  • MeterValuePeriodic. Regular sample at the configured interval.
  • MeterValueClock. Clock-aligned sample (e.g. on the quarter hour).
  • StopAuthorized. The driver presented the token to stop.
  • Deauthorized. Authorization was withdrawn, for example the CSMS answered Invalid for the idToken.
  • RemoteStart and RemoteStop. Caused by RequestStartTransaction or RequestStopTransaction from the CSMS.
  • EVCommunicationLost. The cable was unplugged or communication with the EV was lost.
  • EVConnectTimeout. The driver authorized but never plugged in within the timeout.
  • EnergyLimitReached and TimeLimitReached. A limit set for the session was hit.
  • Trigger. Sent because the CSMS asked with TriggerMessage.
  • UnlockCommand. Caused by an UnlockConnector from the CSMS.
  • ResetCommand. Caused by a Reset from the CSMS.
  • AbnormalCondition. An error condition on the station.

The 2.0.1 list also has ChargingRateChanged, EVDeparted, EVDetected and SignedDataReceived. Note that Trigger is the value, not TriggerMessage.

This is genuinely useful for operational analysis. “Why did this session end?” becomes a one-field lookup rather than a heuristic from MeterValues plus StopTransaction reason.

How this maps to 1.6

A rough translation table:

OCPP 1.6OCPP 2.0.1
StartTransactionRequestTransactionEventRequest (eventType=Started)
MeterValuesRequest (during transaction)TransactionEventRequest (eventType=Updated)
StopTransactionRequestTransactionEventRequest (eventType=Ended)
MeterValuesRequest (no active transaction)MeterValuesRequest (still exists in 2.0.1 for non-transactional meter data)
StartTransactionResponse.transactionIdTransactionEventResponse no longer assigns the ID; the charger generates it, typically a UUID
StartTransactionResponse.idTagInfoTransactionEventResponse.idTokenInfo (similar structure)

A few important differences:

Charger generates transactionId. In 1.6, the CSMS issued the transactionId in StartTransactionResponse. In 2.0.1 the charger generates its own, usually a UUID. That removes an entire race condition, because the charger no longer has to wait for an identifier before it can report anything about the transaction it already started.

Authorize check happens differently. The CSMS validates the user via the AuthorizeRequest message (still separate) OR via the idToken field in TransactionEvent (Started) for some flows. The CSMS can also reject a transaction via TransactionEventResponse if needed.

No more reconciliation. The state machine is cleaner because the charger reports its current state in each event.

Migration considerations

If you’re a CSMS migrating from 1.6 to 2.0.1, the TransactionEvent change requires real engineering:

Unified message handler. Your old StartTransaction handler, MeterValues handler, and StopTransaction handler need to merge into a TransactionEvent handler that dispatches on eventType.

TransactionId source change. Your old code assumed it generated transactionId; new code consumes the charger-generated ID.

Sequence number handling. Add logic to track seqNo per transaction and handle out-of-order or missing events.

State machine restructuring. The resulting state machine in your CSMS is simpler, but getting there means rewriting state transitions rather than renaming them.

Backward compatibility. A CSMS serving a mixed fleet runs 1.6 and 2.0.1 side by side for as long as the oldest hardware is in the ground, which is measured in years. Your transaction storage layer therefore has to handle both message families and normalise them into one internal model.

Reconciliation jobs. Update them to handle TransactionEvent (Ended) seqNo as the closure signal rather than StopTransaction.

A reasonable migration plan: implement TransactionEvent handling in parallel with continued 1.6 support, route per-charger based on the OCPP version negotiated, gradually onboard new chargers to 2.0.1 while existing 1.6 chargers continue to work. For a broader view of what else differs between the versions you are bridging, see the OCPP version comparison.

Common implementation pitfalls

A few things to watch for.

Treating Started, Updated, and Ended as completely separate messages. They share transactionId; treat them as parts of the same transaction lifecycle. Your handler should fetch existing transaction state for Updated and Ended events.

Ignoring the chargingState field. transactionInfo.chargingState (Charging, EVConnected, SuspendedEV, SuspendedEVSE, Idle) is genuinely useful. Use it to track session state without re-deriving from meter readings.

Expecting evse in every event. It is sent only in the first event after the EV connected. Store it from the Started event and look it up by transactionId afterwards.

Ignoring the offline flag. Events the station queued while it was offline carry "offline": true and arrive in a burst on reconnect. Don’t send a TxProfile or a cost limit in reply to one of them as if the session were live; check the flag first.

Not handling seqNo gaps. A missing seqNo means a TransactionEvent was lost in transit. Your code should know how to recover (a TriggerMessage to ask for it, or accept the gap with a flag for later review).

Not handling out-of-order events. Two Updated events may arrive in reverse order. Use seqNo to order them, not arrival time.

Treating idToken as required in every event. idToken appears once after authorization and once when authorization ends, not in every event, and with an early TxStartPoint it is not in Started at all. Your code should handle all of these cases.

What chargers should do

For OCPP 2.0.1 charger firmware:

  • Generate unique transactionId. UUID is the conventional choice. Persist locally so a charger reboot doesn’t generate duplicate IDs.
  • Increment seqNo strictly. Add 1 per event and never skip; starting each transaction at 0 makes the CSMS’s job easier.
  • Buffer events on disconnect. If the WebSocket dies mid-session, buffer TransactionEvents locally and replay on reconnect.
  • Report chargingState accurately. Don’t lazily set it to “Charging” if the actual state is “SuspendedEV.”
  • Set triggerReason accurately. It’s diagnostic gold for operators; don’t always set it to a generic value.

What this means in practice

For a developer working on either side, the OCPP 2.0.1 TransactionEvent change is one of the bigger structural shifts from 1.6. It rewards careful design with cleaner state machines and easier reconciliation, and it demands real migration work in exchange. The data semantics are unchanged: meter readings, timestamps, transactionId tracking, and billing math all mean what they meant before. The envelope is different enough that renaming functions will not get you there.

For operations teams, TransactionEvent provides better diagnostic information (triggerReason, seqNo, chargingState) that improves debuggability. The investment in implementing 2.0.1 pays back partly in this improved observability.

The honest summary

OCPP 2.0.1’s TransactionEvent is one of the cleanest improvements over 1.6. The unified message type, sequence numbers, and explicit trigger reasons make production systems easier to build and debug. The migration from 1.6 is meaningful engineering work but the result is durable. If you’re building new OCPP code today, TransactionEvent is the right model to design around.