matth-x / MicroOcppSimulator

GNU General Public License v3.0
76 stars 26 forks source link

ChargePointMaxProfile not respected if charging with multiple connectors #21

Open rpseng opened 1 month ago

rpseng commented 1 month ago

Hello, thanks again for this amazing tool.

As per the OCPP 1.6 spec (section 3.13.1, pg 20) ChargePointMaxProfile can only be set at Charge Point ConnectorId 0. Additionally, it should limit the power or current to be shared by all connectors of the Charge Point. What I have experienced is that ChargePointMaxProfile is currently being applied in a per connector basis and not shared by all connectors.

If I set a limit of 5000 W, the total load is 10000 W: image

Perhaps more important is to check if the same occurs with MicroOcpp.

matth-x commented 1 month ago

True, good finding! I missed that part completely when creating the Simulator. It needs an additional internal load balancer to handle ChargePointMaxProfiles.

This indeed reflects the behavior of the MicroOcpp core library. MicroOcpp does not come with an internal load balancer, but assumes that the host firmware implements it (which would be the Simulator here). I definitely need to point that out in the documentation there too, thanks for the reminder.