sap-labs-france / ev-server

The Open e-Mobility Charging Station management backend server (check also ev-dashboard and ev-mobile)
https://open-e-mobility.fr/
Apache License 2.0
148 stars 137 forks source link

Hubject OICP connection #4234

Open UBT-FJ opened 4 months ago

UBT-FJ commented 4 months ago

Hello,

anybody did this?

There are the endpoints in the code but don't know how to connect to them!

Is it possible to connect only through the CPO Identification? which it requires only the:

UBT-FJ commented 4 months ago

Hello,

I came back since I think I need a little more help about this!

I found a small issue about the create Roaming Connections and posted here: https://github.com/sap-labs-france/ev-dashboard/issues/3553#issuecomment-2124615873

But still facing the issue about the Service URL, which is required by Hubject to send remote start/stop.

I found some code in the server, and added the config to start the OICP server but cant seem to find the proper way on how to do this.

UBT-FJ commented 4 months ago

It is really strange that none of the contributors are ever replying to any of the issues! "at leaast mine :("

How can we have the solution setup if not from their help?

UBT-FJ commented 4 months ago

I'm going to write here my journey for this and hopefully I will also help somebody else!

I managed to get the Service URL, from the CPOService file, this: public static readonly PATH = '/:protocol/:role/:version/:tenantSubdomain/api/oicp/:module/:endpointVersion/providers/:providerID/:endpoint/:endpointAction?'; So I made the actual URL like this: https://OICPserverdomain/https/cpo/v1/germany (the rest comes directly from Hubject)

And the communication now is ok.

Another problem is that when I try to do remote start I get Remote Start rejected by Charging Station and in the server I get this Cannot read properties of undefined (reading 'length') I think that is because of this idTag that OICP uses and I cant add it in the rfid list: "idTag": "NOTAGID-OICPREMOTE"

And also the local users cant start the charging process for the Public chargers! getting the User does not belong to the local organization although the user is in that organization. If I disable that charger as public that user can start charging!

nawikre1 commented 3 months ago

i am sorry i cannot contribute...i am also searching my a** of for information on this csms....but appertently you have to do everyhting yourself...hahahaha I am now starting my journey with Hubject. I will follow this and you are helping me for sure.

UBT-FJ commented 3 months ago

Good luck, please share your experience.