mikuso / ocpp-rpc

A Node.js client & server implementation of the WAMP-like RPC-over-websocket system defined in the OCPP-J protocols.
MIT License
97 stars 29 forks source link

The server doesn't connect with real charge point #39

Closed YassineEddyb closed 1 year ago

YassineEddyb commented 1 year ago

Hello Mikuso thanks for this amazing project.

When connecting to the server from a simulator it works fine, But when trying to connect to a real Charge Station It doesn't work, even though they are in the same network and I used my IP address to connect to the server from the Charge Point website.

I tried to lunch the server with "0.0.0.0" but no result, but when trying the same thing on a python server it works.

mikuso commented 1 year ago

Hi Yassine,

Sounds like a tricky one to solve, but I'll do my best to help.

What make and model of charging station are you using? Would you be able to show me how this is configured? (perhaps a screenshot of the charger's OCPP configuration interface)

Does the charging station collect any logs which might hint as to the problem?

YassineEddyb commented 1 year ago

The charge Station that I'm using to test my server is VOLT TIME's

Yes the charge station do have logs, I don't have the screen shot on me now but I will share them with you ASAP.

mikuso commented 1 year ago

If you have logs, please can you share them here. I think this would be the easiest way to diagnose this.

YassineEddyb commented 1 year ago

Hi sorry for the late response

I found the problem, I was trying to connect to the charge point using ethernet cable but the server was running on WSL which does not have access to the ethernet interface.

I ran the server from powershell directly and that solved the problem, thank you.

mikuso commented 1 year ago

Thanks for the follow-up. I'm glad you were able to figure out the problem. 👍