Do not use EVSE ID to create the Connector ID!
MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIUtilsService.ts
@@ -605,7 +605,7 @@ export default class OCPIUtilsService {
break;
}
return {
- id: RoamingUtils.buildEvseID(countryID, partyID, chargingStation, connector.connectorId),
+ id: RoamingUtils.buildEvseConnectorID(countryID, partyID, chargingStation, connector.connectorId),
standard: type,
format: format,
voltage: voltage,

MODIFY
src/utils/RoamingUtils.ts
src/utils/RoamingUtils.ts
@@ -22,6 +22,11 @@ export default class RoamingUtils {
return evseID.replace(/[\W_]+/g, '*').toUpperCase();
}
+ public static buildEvseConnectorID(countryCode: string, partyId: string, chargingStation: ChargingStation, connectorID: number): string {
+ const evseID = `${RoamingUtils.buildOperatorName(countryCode, partyId)}*E${chargingStation.id}*${connectorID}`;
+ return evseID.replace(/[\W_]+/g, '*').toUpperCase();
+ }
+
public static buildEvseUID(chargingStation: ChargingStation, connectorID: number): string {
// connectors are grouped in the same evse when the connectors cannot charge in parallel
const connector = Utils.getConnectorFromID(chargingStation, connectorID);

Do not use EVSE ID to create the Connector ID!