-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPP server fail to send commands to the charging stations when two connections are established #2906
Comments
@sebastianasen: FYI. Any clue? |
@sfeilmeier That's really unfortunate. We've started using it, so if we send a patch from our side, would you consider reviewing it? |
Hello @katsuya see my PR :) Please tell us if it works for you ! |
does it work @katsuya ? |
Sure. I just wanted to point out that we are currently not working on this issue. If there is a working and reviewed patch, I'll of course merge it. |
Hello @katsuya could you already test my PRs ? |
I previously reported that there might be some odd behavior related to multithreading (#2908 (comment)). However, after testing over the weekend in an environment where the Wi-Fi connection was intermittently dropping, we confirmed that there are no other issues aside from the two we have already reported (this issue #2906 and #2909). All other problems were related to the OCPP client side. After testing the patch this weekend, I have a few concerns and will comment on them individually. @Sn0w3y |
Yes but my PRs should fix the 2 Issues :D did they? |
@Sn0w3y I left a comment on the PR (#2908 (review)). Could you take a look when you have time? |
Description
When two connections are established to the same
charge point A
, the following bug occurs, causing OpenEMS to fail in properly handling the previous connection:connection B
is established, and alostSession
is triggered inactiveEvcSessions
forconnection A
, it incorrectly affectscharge point A
as a whole. This results inconnection B
malfunctioning as well.The following issues should be addressed (resolving the first issue alone might be sufficient):
activeEvcSessions
.openems/io.openems.edge.evcs.ocpp.server/src/io/openems/edge/evcs/ocpp/server/MyJsonServer.java
Line 105 in 263377b
lostSession
for thecharge point
referenced by the new connection is not invoked.openems/io.openems.edge.evcs.ocpp.server/src/io/openems/edge/evcs/ocpp/server/MyJsonServer.java
Line 117 in 263377b
charge point
fromocppSessions
associated with the new connection.openems/io.openems.edge.evcs.ocpp.server/src/io/openems/edge/evcs/ocpp/server/MyJsonServer.java
Line 128 in 263377b
Screenshots
No response
Operating System
Ubuntu
How to reproduce the Error?
charge point A
to the OCPP server.charge point A
and the OCPP server without disconnecting the first connection.The text was updated successfully, but these errors were encountered: