EvChargingService

interface EvChargingService

An EvChargingService manages the charging of the electric vehicle at the charging station and allows the user to start the charging process and stop this process when required.

More than one EvChargingService can exist in the system at any one time, each implemented as a discoverable IVI service. Typically a EvChargingService implementation will support vehicle charging from a single specific e-Mobility Service Provider (eMSP).

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val activeSessionId: String?

ID of the active session initiated by the driver. null if there is no session ID available.

Link copied to clipboard
abstract val chargingState: ChargingState

Charging state will indicate the current status of charging.

Link copied to clipboard
abstract val emspAuthenticationStatus: EmspAuthenticationStatus

The current status of the authentication process for this eMSP.

Link copied to clipboard
abstract val emspServiceInfo: EmspServiceInfo

eMSP service information: name of the service provider and the icon associated with it.

Link copied to clipboard
abstract val sessionReceipt: Receipt?

Receipt received after the session has been completed, includes price and consumed energy.

Functions

Link copied to clipboard
abstract suspend fun startCharging(chargingStation: ChargingStation, evseId: ChargingPointId)

Initiates a charging session with the specified EVSE. The session is either terminated by the driver using the stopCharging or by the EVSE when the desired charging level is reached or the battery is full.

Link copied to clipboard
abstract suspend fun stopCharging()

Terminates an active charging session, initiated using startCharging.