OCPP smart charging is how a CSMS controls the power a charger delivers: how much, on which connector, and when. The CSMS sends charging profiles with SetChargingProfile, the charger combines them into one schedule, and that schedule caps the current or power the vehicle can draw. It is the mechanism under load balancing, time-of-use charging and demand response in any OCPP network.
It is also the part of OCPP where “supported” is least likely to mean what you assume. In 1.6 smart charging is an optional feature profile rather than core, so a charger can be compliant without it, and a datasheet that says “smart charging: yes” is not a statement anyone had to prove. The gap only shows up when you send a profile and measure whether the power actually changed.
This page covers what the profiles are, the exact rules for combining them (which are widely misquoted), a complete example message, and the gotchas that cost operators time.
How OCPP smart charging works
A charging profile says: limit charging according to this schedule, for this purpose, at this stack level, during this validity window. The CSMS installs profiles on the charger with SetChargingProfile, and the charger answers Accepted or Rejected. Profiles stay on the charger until they expire, are replaced, or are removed with ClearChargingProfile; a TxProfile also goes when its transaction ends.
The charger never applies one profile in isolation. At each moment it works out a composite schedule from every valid profile and any local limits it has, and that composite is what caps delivery. Two separate rules produce it: one for profiles of the same purpose, one for combining different purposes. Both are below.
flowchart TD
A[ChargePointMaxProfile<br/>whole charger cap] --> D[Composite limit<br/>= minimum of the two]
B[TxDefaultProfile<br/>default per session] --> X{TxProfile<br/>present?}
C[TxProfile<br/>this session] --> X
X -->|Yes: TxProfile| D
X -->|No: TxDefaultProfile| D
D --> E[Delivered power]
style D fill:#0c590c,stroke:#0c590c,color:#fff
The three profile purposes
OCPP 1.6 defines three purposes, each with its own connector rules.
ChargePointMaxProfile. The limit for the whole charger, shared by all its connectors. It can only be set on connector 0. On a two-connector charger, a 60 A ChargePointMaxProfile means 60 A for both sessions combined, not 60 A each. Use it to enforce the charger’s share of a site’s capacity.
TxDefaultProfile. The default limit for new transactions. Set on connector 0 it applies to every connector; set on a specific connector it replaces the connector-0 default for that connector only. Use it for standing policy, such as reduced power during the day.
TxProfile. A limit for one running transaction. It can only be set on a connector greater than 0, it overrules TxDefaultProfile for the duration of that transaction, and it should be deleted when the transaction stops. If no transaction is running on that connector, the charger must discard the profile and return an error status. A RemoteStartTransaction can also carry a TxProfile, so the session starts already limited.
How profile stacking works
Rule one: within a purpose, the highest stackLevel wins. You can install several profiles with the same purpose to describe a calendar: a weekly TxDefaultProfile at stackLevel 0, and a holiday exception at stackLevel 1. At any moment the valid profile (by validFrom and validTo) with the highest stackLevel prevails. Two profiles with the same purpose and stackLevel are not meant to coexist. In 1.6 sending a second one replaces the first. In 2.0.1 a profile replaces only the one with the same id (K01.FR.05), and the CSMS must not send a profile whose stackLevel, purpose and EVSE match another installed profile with an overlapping validity period (K01.FR.06). For TxProfile the rule is instead the same stackLevel and transactionId (K01.FR.39).
Rule two: across purposes, TxProfile replaces TxDefaultProfile, and ChargePointMaxProfile caps the result. The 1.6 specification says the final limits for a transaction come from merging ChargePointMaxProfile with the TxProfile, or with the TxDefaultProfile if there is no TxProfile, taking the minimum value in each time interval.
A worked example on one connector:
- ChargePointMaxProfile: 60 A.
- TxDefaultProfile: 32 A during peak hours, 48 A off-peak.
- TxProfile for the running session: 40 A.
The TxProfile overrules the default, so the 32 A and 48 A values do not apply to this session at all. The limit is min(60, 40) = 40 A, peak or off-peak. Remove the TxProfile and the session falls back to the default: 32 A at peak, min(60, 48) = 48 A off-peak.
The common misreading is “the charger takes the minimum of every profile”, which would give 32 A at peak. Firmware does not always follow the specification here either. One manufacturer’s OCPP developer documentation, for example, states that the lowest limit wins even between TxDefaultProfile and TxProfile (checked November 2026). Test which rule your hardware applies before you build optimisation logic on top of it.
The schedule inside a profile
Each profile carries a ChargingSchedule with the actual limits:
- chargingRateUnit:
A(current) orW(power). Which units a 1.6 charger accepts is in itsChargingScheduleAllowedChargingRateUnitconfiguration key. - chargingSchedulePeriod: an ordered list of periods, each with a startPeriod in seconds from the schedule start, a limit, and optionally numberPhases, which defaults to 3 when omitted.
- duration: how long the schedule runs, in seconds. After that the charger falls back to the next applicable profile.
- startSchedule: the absolute start time, for Absolute and Recurring profiles.
- minChargingRate: optional. The lowest rate at which charging is still efficient for this vehicle, so a balancing algorithm can choose to pause rather than trickle.
Profiles also have a chargingProfileKind: Absolute (fixed start time), Recurring (repeats Daily or Weekly) or Relative (starts when the transaction starts).
A complete OCPP 1.6 SetChargingProfile payload, limiting a running transaction on connector 1 to 16 A for an hour, then 32 A, then 24 A:
{
"connectorId": 1,
"csChargingProfiles": {
"chargingProfileId": 101,
"transactionId": 4711,
"stackLevel": 0,
"chargingProfilePurpose": "TxProfile",
"chargingProfileKind": "Absolute",
"chargingSchedule": {
"startSchedule": "2026-11-04T18:00:00Z",
"duration": 14400,
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{ "startPeriod": 0, "limit": 16.0 },
{ "startPeriod": 3600, "limit": 32.0 },
{ "startPeriod": 10800, "limit": 24.0 }
]
}
}
}
In 2.0.1 the same request takes an evseId instead of connectorId, the profile field is chargingProfile, each schedule needs its own id, and a profile can hold up to three schedules so the station can offer the vehicle alternatives over ISO 15118.
Reading the composite schedule with GetCompositeSchedule
Because the charger does the combining, the CSMS cannot know the limit in force just from the profiles it sent. GetCompositeSchedule asks the charger to calculate it: you pass a connector (1.6) or EVSE (2.0.1), a duration and optionally a unit, and the charger returns the combined schedule from all active profiles and local limits. In 1.6, asking for connector 0 returns the total expected energy flow for the whole charger.
The specification notes that the result is only indicative for that moment. Local balancing or a second connector becoming active can change it a minute later. Use it to debug stacking surprises and to audit that the profiles you think are installed actually are.
Worked example: four profiles, one composite schedule
The single-number example above hides the part that trips people up: the profiles have schedules, so the winner changes during the session. Here is a full OCPP 2.0.1 setup on a two-EVSE station, with a transaction running on EVSE 1 and EVSE 2 idle. All times are UTC and all limits are in amps.
| Profile id | Purpose | stackLevel | evseId | Kind | Schedule |
|---|---|---|---|---|---|
| 1 | ChargingStationMaxProfile | 0 | 0 | Recurring, Daily | 48 A, but 32 A from 18:00 to 22:00 (the building’s evening load) |
| 10 | TxDefaultProfile | 0 | 0 | Recurring, Daily | 32 A, but 16 A from 17:00 to 21:00 (peak tariff) |
| 11 | TxDefaultProfile | 1 | 0 | Absolute | 24 A from 18:30 for 30 minutes (a one-off exception) |
| 20 | TxProfile | 0 | 1 | Absolute | 40 A from 17:00, 20 A from 17:30, duration one hour |
The daily default, profile 10, as the CSMS sends it. A Recurring profile needs a startSchedule; the charger repeats the 24-hour schedule from that point every day, so startPeriod 61200 is 17:00:
[2, "scp-10", "SetChargingProfile", {
"evseId": 0,
"chargingProfile": {
"id": 10,
"stackLevel": 0,
"chargingProfilePurpose": "TxDefaultProfile",
"chargingProfileKind": "Recurring",
"recurrencyKind": "Daily",
"chargingSchedule": [{
"id": 1,
"startSchedule": "2026-11-01T00:00:00Z",
"duration": 86400,
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{ "startPeriod": 0, "limit": 32.0 },
{ "startPeriod": 61200, "limit": 16.0 },
{ "startPeriod": 75600, "limit": 32.0 }
]
}]
}
}]
The per-session profile 20. In 2.0.1 the transactionId sits inside chargingProfile and is the string id from TransactionEvent, not an integer as in 1.6:
[2, "scp-20", "SetChargingProfile", {
"evseId": 1,
"chargingProfile": {
"id": 20,
"stackLevel": 0,
"chargingProfilePurpose": "TxProfile",
"chargingProfileKind": "Absolute",
"transactionId": "b1c0d6e2-7f4a-4f1e-9a33-5c2d8e0f1a77",
"chargingSchedule": [{
"id": 1,
"startSchedule": "2026-11-28T17:00:00Z",
"duration": 3600,
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{ "startPeriod": 0, "limit": 40.0 },
{ "startPeriod": 1800, "limit": 20.0 }
]
}]
}
}]
Now apply the two rules interval by interval for EVSE 1:
| Interval | Station max (id 1) | Leading TxDefaultProfile | TxProfile (id 20) | Composite limit | ”Minimum of everything” |
|---|---|---|---|---|---|
| 17:00 to 17:30 | 48 A | 16 A (id 10) | 40 A | 40 A | 16 A |
| 17:30 to 18:00 | 48 A | 16 A (id 10) | 20 A | 20 A | 16 A |
| 18:00 to 18:30 | 32 A | 16 A (id 10) | expired | 16 A | 16 A |
| 18:30 to 19:00 | 32 A | 24 A (id 11, stack 1) | expired | 24 A | 16 A |
| 19:00 to 19:30 | 32 A | 16 A (id 10) | expired | 16 A | 16 A |
Row by row:
- 17:00 to 18:00. The TxProfile overrules the default, so the 16 A peak limit does not apply to this session, even though it is lower. The station maximum is 48 A, so the TxProfile’s own values come through: 40 A, then 20 A.
- 18:00. The TxProfile’s one-hour duration runs out. The K01 use case remarks in the OCPP 2.0.1 specification spell out what happens next: the session falls back to the lowest of the active TxDefaultProfile and ChargingStationMaxProfile, here min(16, 32) = 16 A. That is also why the spec recommends leaving
durationout of a TxProfile, so it lasts until the transaction ends. - 18:30. Profile 11 has a period defined for this time and a higher stack level than profile 10, so it leads the TxDefaultProfile purpose. Within one purpose the higher stack wins outright, even when its limit is higher: 24 A, not 16 A.
- 19:00. Profile 11’s 30 minutes are over, and profile 10 leads again.
The last column is what you get if you take the minimum of every installed profile, the misreading described above: a flat 16 A that ignores the session limit and the exception. If a charger’s delivered current matches that column, its firmware applies the wrong rule.
Ask the charger at 17:00 for the next two and a half hours on EVSE 1:
[2, "gcs-1", "GetCompositeSchedule", { "duration": 9000, "chargingRateUnit": "A", "evseId": 1 }]
A charger that follows the specification answers with the bold column:
[3, "gcs-1", {
"status": "Accepted",
"schedule": {
"evseId": 1,
"duration": 9000,
"scheduleStart": "2026-11-28T17:00:00Z",
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{ "startPeriod": 0, "limit": 40.0 },
{ "startPeriod": 1800, "limit": 20.0 },
{ "startPeriod": 3600, "limit": 16.0 },
{ "startPeriod": 5400, "limit": 24.0 },
{ "startPeriod": 7200, "limit": 16.0 }
]
}
}]
Three things to know when you compare a real answer with your prediction:
- Compare values per time, not the number of periods. Some firmware starts a new period at every boundary of any profile, for example at 18:00 for the station maximum, even where the composite value would not change. Merge adjacent periods with equal limits before diffing. Periods may also carry
numberPhases. - The station maximum is shared. If EVSE 2 starts charging, the 48 A or 32 A is split between both EVSEs and EVSE 1’s composite can drop below the table. Ask with
evseId0 to see what the whole station expects to draw from the grid. - No transaction, no TxProfile. OCPP 2.0.1 requires a station asked about an idle EVSE to calculate as if a transaction were running with the TxDefaultProfile (K08.FR.06). On older firmware an idle EVSE may return only the station maximum.
The same request on OCPP 1.6 targets connectorId 1, and the answer puts connectorId and scheduleStart at the top level with the periods in a single chargingSchedule object:
[3, "gcs-1", {
"status": "Accepted",
"connectorId": 1,
"scheduleStart": "2026-11-28T17:00:00Z",
"chargingSchedule": {
"duration": 9000,
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{ "startPeriod": 0, "limit": 40.0 },
{ "startPeriod": 1800, "limit": 20.0 },
{ "startPeriod": 3600, "limit": 16.0 },
{ "startPeriod": 5400, "limit": 24.0 },
{ "startPeriod": 7200, "limit": 16.0 }
]
}
}]
The 1.6 text states the merge per transaction (TxProfile, or TxDefaultProfile when there is none). The 18:00 row, where a TxProfile’s duration ends while its transaction carries on, is the first one to test on a 1.6 charger before you depend on it.
Practical use cases
Load balancing across a site. OCPP itself has no site object; the CSMS (or a local controller) does the arithmetic. With 100 kW available and 20 chargers rated 11 kW, it updates each charger’s ChargePointMaxProfile as cars arrive: at two cars each can take its full 11 kW, at ten each gets 10 kW, at twenty each gets 5 kW.
Time-of-use charging. A Recurring TxDefaultProfile with a Daily recurrence caps power during expensive hours and lifts it overnight, with no per-session work for the CSMS.
Demand response. When the grid operator signals an event, the CPO’s CSMS pushes lower TxProfiles to active sessions for its duration. A roaming partner cannot send OCPP to someone else’s chargers; an eMSP that wants to influence a session asks the CPO through the OCPI ChargingProfiles module, and the CPO’s CSMS turns that into OCPP.
Solar self-consumption. The controller tracks generation and adjusts the profile so the charger draws more when solar output is high.
What changed in OCPP 2.0.1 and 2.1
2.0.1 keeps the model and renames parts of it. ChargePointMaxProfile becomes ChargingStationMaxProfile, and a fourth purpose, ChargingStationExternalConstraints, represents limits imposed from outside the CSMS, such as a local energy management system. Profiles target an EVSE, with EVSE 0 meaning the whole station. New messages let the CSMS read installed profiles back (GetChargingProfiles, ReportChargingProfiles), learn about external limits (NotifyChargingLimit, ClearedChargingLimit), and receive the vehicle’s needs over ISO 15118 (NotifyEVChargingNeeds). The 1.6 configuration keys become variables in the device model. Smart charging is still optional: it is a functional block a station may or may not implement.
2.1 adds the PriorityCharging and LocalGeneration purposes, dynamic schedules the CSMS can update during a session, and bidirectional charging. The OCPP version comparison covers the rest of what each release changes.
If you are building smart-charging logic today, target 2.0.1. 1.6 smart charging works, but you will spend more time discovering what each charger actually implemented.
Common pitfalls
Accepted is not applied. SetChargingProfile returns Accepted and the power draw never changes. Accepted means the charger parsed and stored the profile. Measure delivered power against the limit before you trust it.
Exceeding the charger’s limits. A 1.6 charger publishes its limits as configuration keys: ChargeProfileMaxStackLevel, ChargingScheduleMaxPeriods, MaxChargingProfilesInstalled and ChargingScheduleAllowedChargingRateUnit. A profile with more periods or a higher stack level than allowed gets Rejected. Read the keys with GetConfiguration and validate before sending.
TxProfile with no transaction. It is discarded by design. Use TxDefaultProfile for limits that should apply to the next session.
Replacing a profile with a future validFrom. The charger replaces the old profile immediately and reverts to default behaviour until validFrom is reached. The specification recommends a start time in the past to avoid the gap.
Schedules that run out. A schedule with duration 3600 stops limiting after an hour and the charger falls back to the next applicable profile. If you wanted a standing limit, use a Recurring profile or omit the duration.
Wrong unit. limit: 11 with unit W is 11 watts, not 11 kilowatts. Current limits also accept at most one decimal place in 1.6.
Phase confusion. A 16 A limit on three phases is three times the power of 16 A on one. Set numberPhases to match the installation rather than relying on the default of 3.
Two controllers, one charger. A CSMS and a local load controller both pushing profiles at the same stack level will overwrite each other. Give each a purpose or stack level of its own, or pick one source of truth.
A checklist for CSMS and firmware teams
For the CSMS:
- Store smart-charging capability per model and firmware version, read from the configuration keys, and re-check after firmware updates.
- Validate every profile against those limits before sending it.
- Verify a sample of sessions against measured energy, not just the Accepted response.
- Call GetCompositeSchedule when debugging, and periodically in production to catch profiles that disappeared.
- Decide which system owns which purpose and stack level when a local controller is present, and write it down.
For charger firmware:
- Implement the combination rule as the specification states it: TxProfile overrules TxDefaultProfile, ChargePointMaxProfile caps both.
- Report configuration keys that match what the firmware really supports.
- Apply mid-session profile changes without interrupting the session.
- Return an accurate composite schedule, including local limits.
- Fall back cleanly when a schedule expires.
You can exercise SetChargingProfile handling in a CSMS without hardware using the free virtual charge point. It applies the profiles your CSMS sends to the simulated power, charts the composite schedule for the next hour, and reports each change back, so you can see whether a profile limits the charge the way you meant. It also rejects a profile above the stack level or number of periods it advertises in its configuration, so you can check that your scheduler reads those limits.

The honest summary
OCPP smart charging is well designed on paper. Profiles, stack levels and a defined combination rule let a site cap, a default policy and a per-session limit coexist without anyone negotiating. The difficulty is that the result is computed inside the charger, by firmware that may have misread the same rule many integrators misread.
So design around observability. Know the real rule (TxProfile replaces the default, the charger maximum caps the result), check which rule each charger model actually applies, and use GetCompositeSchedule rather than inferring the limit from what you sent. A smart-charging deployment without that loop finds its stacking mistakes on the energy bill.