SetChargingProfile results in FormationValidation Error
See original GitHub issueI’m trying to send a SetChargingProfile Command to the station via the lib, but I’m getting a FormationValidation Error back. It might be the stations problem or me/the lib sending a wrong message/part of the message. Anyone else seeing a similar issue?
I’m testing with a eBee station.
Message sent to the station:
[
2,
"faa4aaaf-5dad-482e-8353-6d5bc613e39e",
"SetChargingProfile",
{
"chargingProfile": {
"chargingProfileId": 0,
"chargingProfileKind": "Relative",
"chargingProfilePurpose": "TxProfile",
"chargingSchedule": {
"chargingRateUnit": "A",
"chargingSchedulePeriod": [
{
"limit": 9.0,
"numberPhases": 3,
"startPeriod": 0
}
]
},
"stackLevel": 0,
"transactionId": 2
},
"connectorId": 1
}
]
Response from the station:
[
4,
"faa4aaaf-5dad-482e-8353-6d5bc613e39e",
"FormationViolation",
"Command parsing error",
{}
]
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Open Charge Point Protocol 1.6
return an error status in SetChargingProfile.conf. The final schedule constraints that apply to a transaction are determined by merging the profiles with.
Read more >The java-oca-ocpp from ChargeTimeEU - GithubHelp
SetChargingProfile results in FormationValidation Error. I'm trying to send a SetChargingProfile Command to the station via the lib, but I'm getting a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @froehr
I think you are spot on the money! I can even see that the Xml parser is instructed to call it csChargingProfiles: https://github.com/ChargeTimeEU/Java-OCA-OCPP/blob/master/ocpp-v1_6/src/main/java/eu/chargetime/ocpp/model/smartcharging/SetChargingProfileRequest.java#L90
Could it be as simple as to rename the field to getCsChargingProfiles/setCsChargingProfiles? Can I get you guys to test it? I don’t have any equipment to test against. If it works, I’ll accept it in as a PR 😃
Hi Steve,
I can try to check the message up against the OCPP specs. I know there’s some rules to follow when it comes to the profile.
Thomas