Skip to content

Difficulty Setting Charging Profile After Clearing an Existing Profile for Dynamic Load Balancing #62

@maneshwarantino

Description

@maneshwarantino

Hello Mikuso,

I am encountering an issue when trying to set a charging profile dynamically during an ongoing charging session. Specifically, after clearing an existing profile, I'm finding it challenging to set a new profile, which is crucial for my dynamic load balancing logic.

My Load Balancing Logic:

Determine the Load Balancing Requirement:

  • Initially, I fetch the charging station's status to see if load balancing is activated.
  • If load balancing is enabled, I proceed to fetch all the active charging sessions for the station.

Calculate the Available and Current Load:

  • I calculate the available load for the charging station and also the load currently being outputted by all active charging points.
  • Then, I loop through the list of active charging sessions to determine which one started first. The intention behind this is to prioritize and potentially avoid load balancing for the earliest charging session.

Apply Load Balancing Logic:

  • If the total current load and the calculated load for a new session exceed the available load, load balancing is triggered.
  • For each active charging client, I attempt to clear their existing charging profile using makeClearChargingProfileRequest.
  • Post clearing, I try to set a new charging profile using makeSetChargingProfileRequest with a new, calculated limit.

The crux of the problem lies here:

  • After successfully clearing the profile during an active session, setting a new profile isn't succeeding.

Questions:

  1. Is my load balancing logic sound concerning the workings of OCPP and the library? If not, please provide guidance on any modifications or best practices.

  2. Why might the setting of a new profile fail after clearing an existing one during an ongoing session? Are there any intricacies or restrictions in the OCPP standard or this library that I might be overlooking?

I appreciate any assistance or insights you can offer.
This functionality is pivotal to our system's performance and user experience.
Thank you in advance!

Logs and what kind of different profiles and scenarios I have tried till now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions