GetChargingProfiles
SmartCharging CSMS->CS
OCPP 2.0.1
Sent by the CSMS to retrieve charging profiles currently installed on the Charging Station.
Quick Reference
Required Fields
requestId integer Request ID used to correlate ReportChargingProfiles responses
chargingProfile ChargingProfileCriterionType Filter criteria for profiles to retrieve
Optional Fields
evseId integer Filter profiles by EVSE ID
Example Payload
{
"requestId": 1,
"chargingProfile": {
"chargingProfilePurpose": "TxDefaultProfile"
}
} Example Full Frame
[
2,
"msg-001",
"GetChargingProfiles",
{
"requestId": 1,
"chargingProfile": {
"chargingProfilePurpose": "TxDefaultProfile"
}
}
]
Format: [MessageType, MessageId, Action, Payload]
Overview
GetChargingProfiles requests a list of charging profiles currently stored on the Charging Station. The results are delivered asynchronously via ReportChargingProfiles messages.
Expected Response
Initial: status: Accepted or NoProfiles
Then, profiles are delivered via ReportChargingProfiles messages with matching requestId.
Usage Notes
- Filter by
chargingProfilePurpose,stackLevel, orchargingProfileIdwithin the criteria object NoProfilesmeans no profiles matched the given criteria (not an error)
Testing Tips
- Request all profiles and verify each one was previously set with SetChargingProfile
- Test with a specific purpose filter and verify only matching profiles are returned
Common Errors
PropertyConstraintViolation
Cause: chargingProfile object is missing
Solution: chargingProfile criteria object is required, even if it contains no filters