CostUpdated
Sends the running cost of a transaction to the station so it can show the driver.
- Version
- OCPP 2.0.1
- Direction
- CSMS → Charge Point
- Functional block
- Tariff and Cost
New in 2.0.1. The CSMS computes the cost — it holds the tariff — and pushes the running total so the station can display it live during a session.
It is purely for display. Nothing about billing depends on the station receiving it.
Request
| Field | Type | Required | Description |
|---|---|---|---|
totalCost | decimal | Required | The running total, in the currency configured on the station. |
transactionId | string | Required | The transaction this cost applies to. |
json
[2, "19223201", "CostUpdated", {
"totalCost": 4.35,
"transactionId": "a1b2c3d4-0001"
}]Response
No fields — the payload is an empty object {}.
json
[3, "19223201", {}]Implementation notes
The currency is not in this message. It comes from the TariffCostCtrlr component's Currency variable, so a station configured with the wrong currency displays a plausible and wrong number.
How often to send is a tradeoff — every meter sample is a lot of traffic on a cellular link for a display update.