Skip to content
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

Openevse OCPP End point address updating via Steve when firmware access unavailable? #884

Open
retrocoder-78 opened this issue Jul 14, 2024 · 6 comments
Assignees
Labels
ocpp Issues relating to OCPP

Comments

@retrocoder-78
Copy link

Just looking for discussion and thoughts...

One of the major OEM evse manufactures (I know of) is working with network backend operators in this fashion, updating remotely the OCPP url via the backend which takes effect on the evse. If owners of many units per site decide to migrate backend services to a different backend operator, many units would need to be manually configured with the new OCPP url. This is potentially time consuming and by extension expensive.

Once first connection is done, firmware settings are set and a connection with Steve is established. If the WS (WSS) address ever needed to be adjusted without firmware access, it seems to me to be that,

  1. A custom build of Steve would be required. From reviewing all the OCPP documentation, I don't think a mechanisms exists to address this type of functionality. I could be wrong.

Steve does have a spot in the Charge Point Details information for the end point address. Possibly this could be used for such a functionality?

  1. The OCPP side of openevse would need to be able to handle having the websockets end point url updated via the backend after first initial connection.

Just looking for any thoughts about such a functionality or if this has been thought about in any way @matth-x .

Your time is appreciated! 😄

@jeremypoulter jeremypoulter added the ocpp Issues relating to OCPP label Aug 7, 2024
@jeremypoulter
Copy link
Collaborator

@matth-x any thoughts?

@retrocoder-78
Copy link
Author

retrocoder-78 commented Aug 8, 2024 via email

@matth-x
Copy link
Collaborator

matth-x commented Aug 8, 2024

Hi @retrocoder-78, sorry, I must somehow missed this issue.

The current provisioning scheme is to define factory defaults and then dynamically configuring the connection details via OpenEVSE dashboard or the default OCPP server.

The factory defaults are hardcoded into the firmware here:

new ConfigOptDefinition<String>(ocpp_server, "", "ocpp_server", "ows"),
new ConfigOptDefinition<String>(ocpp_chargeBoxId, "", "ocpp_chargeBoxId", "cid"),
new ConfigOptDefinition<String>(ocpp_authkey, "", "ocpp_authkey", "oky"),

If you set them to your server, OpenEVSE will initially connect to it. Using the ChangeConfiguration command, you can then update the following configs:

  • Cst_BackendUrl: OCPP server "base URL"
  • Cst_ChargeBoxId: identifier of the charger
  • AuthorizationKey: Websocket key

Actually the custom Configs are implemented the same way as the standardized configs in OpenEVSE, so Change-/ and GetConfiguration work for the connection details configs too.

@retrocoder-78
Copy link
Author

retrocoder-78 commented Aug 16, 2024 via email

@matth-x
Copy link
Collaborator

matth-x commented Aug 18, 2024

Yes, it is possible. Sorry for the confusing explanation in my previous reply.

In SteVe, you can use the ChangeConfiguration operation to update the backend URL and chargeBoxId of the OpenEVSE. In the ChangeConfiguration view, select the key type "Custom", enter "Cst_BackendUrl" in the custom configuration key field and the server address in value. Press the perform button and then, do the same with custom configuration key "Cst_ChargeBoxId" and the new value you want to assign.

To streamline this process, you could define a factory default OCPP server URL which is hardcoded on the OpenEVSE. Then, each newly deployed OpenEVSE would first connect to the factory OCPP server where you can assign the final OCPP server address comfortably via ChangeConfiguration command.

@retrocoder-78
Copy link
Author

This is great information! Thank you for the detailed explanation. I gave this a try, changing the boxid via Steve to have a change in the OpenEVSE unit. What came back from Steve is, 'not supported'. I have that boxid setup in Steve.

Any thoughts?

Screenshot from 2024-08-19 11-05-44
Screenshot from 2024-08-19 11-04-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ocpp Issues relating to OCPP
Projects
None yet
Development

No branches or pull requests

3 participants