Help Needed: Connecting Siemens VersiCharge AC Charger to Server on Same Wi-Fi Network
Closed this issue · 12 comments
I need to connect a real Siemens charger, the VersiCharge AC. It's connected to the same Wi-Fi network as the server. Can you explain how I should do it?
I have connected the charger to the Wi-Fi network, configured a user tag, and created the charger within the server along with the ID of the tag that had been enabled for the charger. However, when I pass the tag and unlock the charger to charge, it does not show as connected on the web page
I have to configure something on the charger besides the Wi-Fi connection?
You need to configure the URL of your server in your charger. It is basically the same like with the simulator. It is not enough just to use the same wifi connection/network.
From googling it seems that Siemens doesn't allow you to configure that yourself:
https://monta.com/uk/help-center/siemens-versicharge-installation-guide/
They state that you need to contact the support and they reconfigure your charger - probably via their cloud connection.
I would have to send an email to support requesting the change to this address if the server is hosted locally: ws://localhost:9019/OCPP/{charger_id}. Once they confirm the change, I will need to create the charger and its tags within the database, similar to what I would do in the simulator. Finally, I will assign the admin tag to the charger to add user tags. When a user tag is passed, will it connect?
And also, another thing please, I've noticed that the charger only accepts WSS connections. Would I need to change something in the code?
"localhost" means the same computer which would be the charger. That's wrong. Please try to setup the server and simulator on different machines, You need an IP address or DNS name in your network.
WS vs. WSS is the same like http and https. Your server (OCPP.Core server) needs an SSL certificate for https connections. Please ask Siemens if this is really necessary. If you are working in a private network this seems not really necessary.
They have already changed my WebSocket address and they have set it to my OCPP server's address, where I have the database, which is this: ws://DESKTOP-8F4O9RJ:9019/OCPP. I have also added the charger with its ID to the database, as well as the tags, as I have shown you. However, I don't understand why it's not working.
Please check the message dump. All incoming and outgoing messages are written there as files (with default configuration). Are there any files? If not, the communication does not work. You can also check the log files on the server. You should see requests and processing information there.
If you see activity: clear the dump directory and then present your card to the charger. You should see an authorization request and the answer from the server.
I've already checked the logs folder, and there are no records of communication between the charger and the server. It's worth mentioning that I have both admin and user cards. The charger manual instructs me to swipe the admin card to set up a user card. I've done this, but when I try the user card, it beeps but doesn't unlock.
Did you solve the problem? To me it sounds like configuration oder network issues (like firewall). When the server shows no activity this has a very high probability.
Yes, I managed to solve the problem. I spoke with the Siemens team and told them to change the WS URL and use the IP instead of the server name. Then everything worked perfectly. Thank you very much for responding and for the help.