Closed soujini closed 10 months ago
Hi Soujini I have replicated your code and I have connected my own EV charger and I am getting the message "charger connected". However, I am unable to access the CSMS App. When open in a browser http://localhost:8080/ I am getting the message: Failed to open a WebSocket connection: invalid Connection header: keep-alive. You cannot access a WebSocket server directly with a browser. You need a WebSocket client. How Can I get the websocket client?
Hi Soujini I have replicated your code and I have connected my own EV charger and I am getting the message "charger connected". However, I am unable to access the CSMS App. When open in a browser http://localhost:8080/ I am getting the message: Failed to open a WebSocket connection: invalid Connection header: keep-alive. You cannot access a WebSocket server directly with a browser. You need a WebSocket client. How Can I get the websocket client?
Hi Jacqueline,
That is the http API server. Essentially, the above example has a route called disconnect. You can test this on postman using http://localhost:8080/disconnect or a curl command. These API's allow us remotely manage the charger functions. (Ex: You want to do a remoteStart or remoteStop from your web or mobile app.
Hey Soujini,
I'm stuck at a similar issue. However my setup is a bit different. I'm planning on connecting the http request as a websocket client to send out remote start/stop to the charge point
Hi Soujini I have replicated your code and I have connected my own EV charger and I am getting the message "charger connected". However, I am unable to access the CSMS App. When open in a browser http://localhost:8080/ I am getting the message: Failed to open a WebSocket connection: invalid Connection header: keep-alive. You cannot access a WebSocket server directly with a browser. You need a WebSocket client. How Can I get the websocket client?
Hi Jacqueline,
That is the http API server. Essentially, the above example has a route called disconnect. You can test this on postman using http://localhost:8080/disconnect or a curl command. These API's allow us remotely manage the charger functions. (Ex: You want to do a remoteStart or remoteStop from your web or mobile app.
Hi @soujini,
I manage to connect my simulated CP to your code but while trying http://localhost:8080/disconnect, all i get is 405: Method Not Allowed. I am very new to HTTP server, do shed some light for me
As this is outside the scope of this OCPP library, Python and the protocol, I'll close this for now.
Hello,
We have modified and implemented the below code to accomodate remote start transaction and we are able to control the start and stop the charger quite well.
However, we are stuck in trying to implement the below:
1) Web Interface - Using reactJS a) Has to show LIVE Status of the chargers
How do i make my web app listen to the CSMS system and get all messages for all chargers? Do i need to add to the database Boot and Status Notifications as and when the CSMS receives a message? Basically, my question is how do I achieve this to show realtime data.
2) Mobile Interface - Using Flutter a) Has to Start and Stop a transaction (Successful) b) Keep getting the meter values, time etc to show on the mobile device real time while charging.
On click of the "Start Charging" button on the mobile app, we make an API call to "localhost:8080/remoteStart", however, we just get a 200 response. How do get realtime update here to show the meter values etc.
Any help or guidance in the right direction will be very helpful. Thanks.
Here is the code of the CSMS with the HTTP API based on Github Question 86.