question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SetChargingProfile results in FormationValidation Error

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
TVoldencommented, Sep 13, 2018

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 😃

1reaction
TVoldencommented, Sep 13, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found