ev_board_support_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestev_board_support

EVerest API definition for EV board support

API for EVerest API clients implementing ev board support.

Specification: ev_board_support_API.yaml · pionix:de:everest:ev_board_support_API

send the client publishes, EVerest consumes (6) receive EVerest publishes, the client consumes (8)

Servers

default mqtt

default local MQTT

Host
localhost:1883
Topic prefix
everest_api/1/ev_board_support/{module_id}
{module_id}

The ID of the module as defined in the EVerest config file.

Operations

Client to EVerest

send_bsp_event

send Send BSP Event
Topic
everest_api/1/ev_board_support/{module_id}/m2e/bsp_event

Direction: Module to EVerest

Message Send BSP event application/json

Message send_bsp_event

Events from CP/Relais

Payload

object BspEvent ↗

Event stream from ControlPilot signal/relais.

Definition of BspEvent

Example

Signal state A (not connected)
{
  "event": "A"
}

send_bsp_measurement

send Send BSP measurement
Topic
everest_api/1/ev_board_support/{module_id}/m2e/bsp_measurement

Direction: Module to EVerest

Message Send BSP Measurements application/json

Message send_bsp_measurement

Instantaneous BSP measurements

Payload

object BspMeasurement

Bsp Measurement

Definition of BspMeasurement

Example

Report cable ampicity of 32A and some RCD current + PWM duty cycle
{
  "proximity_pilot": {
    "ampacity": "A_32"
  },
  "rcd_current_mA": 5,
  "cp_pwm_duty_cycle": 53
}

send_ev_info

send Send EV Info
Topic
everest_api/1/ev_board_support/{module_id}/m2e/ev_info

Direction: Module to EVerest

Message Send EV Info application/json

Message send_ev_info

Details about the EV if available

Payload

object EVInfo ↗

Information about the connected EV if available

Definition of EVInfo

Example

Selection of EV information items.
{
  "soc": 67,
  "present_voltage": 390,
  "present_current": 80,
  "target_voltage": 420,
  "target_current": 80,
  "maximum_current_limit": 120,
  "minimum_current_limit": 10,
  "maximum_voltage_limit": 500,
  "evcc_id": "aa:bb:cc:dd:ee:ff",
  "battery_capacity": 77000,
  "battery_full_soc": 95
}

send_raise_error

send Send raise error
Topic
everest_api/1/ev_board_support/{module_id}/m2e/raise_error

Direction: Module to EVerest

Message Send raise error application/json

Message send_raise_error

Signal to EVerest that an error happened.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

Example

Example 1
{
  "type": "VendorError",
  "sub_type": "string",
  "message": "string"
}

send_clear_error

send Send clear error
Topic
everest_api/1/ev_board_support/{module_id}/m2e/clear_error
Message Send clear error application/json

Message send_clear_error

Signal to EVerest that a previously raised error is no longer active.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

Example

Example 1
{
  "type": "VendorError",
  "sub_type": "string",
  "message": "string"
}

send_communication_check

send Send communication check
Topic
everest_api/1/ev_board_support/{module_id}/m2e/communication_check
Message Send communication check application/json

Message send_communication_check

Signal to EVerest that communication is good or check shall be stopped

Payload

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

Example

Example 1
true

EVerest to client

receive_enable

receive Receive Enable
Topic
everest_api/1/ev_board_support/{module_id}/e2m/enable

Direction: EVerest to Module

Message Receive enable or disable application/json

Message receive_enable

Enables or disables the EV simulation.

Payload

boolean Enabled

True: enabled. False: disabled.

Example

Enable the EV.
true

receive_set_cp_state

receive Receive Set CP State
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_cp_state

Direction: EVerest to Module

Message Receive CP State application/json

Message receive_set_cp_state

Receive the CP State that should be set by the EV board support driver (controlled by S2)

Payload

string EvCpState

ControlPilot state

enumABCDE

Example

Set the CP state to A.
"A"

receive_allow_power_on

receive Receive Allow Power On
Topic
everest_api/1/ev_board_support/{module_id}/e2m/allow_power_on

Direction: EVerest to Module

Message Receive permission to switch relays on application/json

Message receive_allow_power_on

If false, contactor must never be switched on.

Payload

boolean PowerOnOff

True: allow power on, false: do not allow power on.

Example

Allow the relays to be closed.
true

receive_diode_fail

receive Receive Diode Fail
Topic
everest_api/1/ev_board_support/{module_id}/e2m/diode_fail

Direction: EVerest to Module

Message Receive diode failure state application/json

Message receive_diode_fail

If true, simulator should set a diode failure.

Payload

boolean DiodeFailure

True: Diode failure, false: no failure.

Example

Diode failure signaled
true

receive_set_ac_max_current

receive Receive Set AC max Current
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_ac_max_current

Direction: EVerest to Module

Message Receive the max AC current application/json

Message receive_set_ac_max_current

Maximum AC current to be requested from the EV.

Payload

Max current requested from the EV.

Example

EV should request 16A maximum
16

receive_set_three_phases

receive Receive Set Three Phases
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_three_phases

Direction: EVerest to Module

Message Receive three or one phase support application/json

Message receive_set_three_phases

Whether the EV should indicate single or three phase support.

Payload

True: Three phase support, False: One phase support.

Example

EV should request single phase only.
false

receive_set_rcd_error

receive Receive Set RCD error
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_rcd_error

Direction: EVerest to Module

Message Setting set RCD error. application/json

Message receive_set_rcd_error

Setting a rcd error. Only for simulation purpose.

Payload

number RCDCurrent

RCD current in mA.

Example

EV should request single phase only.
30

receive_heartbeat

receive Receive heartbeat
Topic
everest_api/1/ev_board_support/{module_id}/e2m/heartbeat

Direction: EVerest to Module

Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42

Messages

MessageSummaryUsed by
receive_enable
Receive enable or disable

Enables or disables the EV simulation.

receive_enable
receive_set_cp_state
Receive CP State

Receive the CP State that should be set by the EV board support driver (controlled by S2)

receive_set_cp_state
receive_allow_power_on
Receive permission to switch relays on

If false, contactor must never be switched on.

receive_allow_power_on
receive_diode_fail
Receive diode failure state

If true, simulator should set a diode failure.

receive_diode_fail
receive_set_ac_max_current
Receive the max AC current

Maximum AC current to be requested from the EV.

receive_set_ac_max_current
receive_set_three_phases
Receive three or one phase support

Whether the EV should indicate single or three phase support.

receive_set_three_phases
receive_set_rcd_error
Setting set RCD error.

Setting a rcd error. Only for simulation purpose.

receive_set_rcd_error
send_bsp_event
Send BSP event

Events from CP/Relais

send_bsp_event
send_bsp_measurement
Send BSP Measurements

Instantaneous BSP measurements

send_bsp_measurement
send_ev_info
Send EV Info

Details about the EV if available

send_ev_info
send_raise_error
Send raise error

Signal to EVerest that an error happened.

send_raise_error
send_clear_error
Send clear error

Signal to EVerest that a previously raised error is no longer active.

send_clear_error
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check

Schemas

Enabled boolean
boolean

True: enabled. False: disabled.

EvCpState string
string

ControlPilot state

enumABCDE
PowerOnOff boolean
boolean

True: allow power on, false: do not allow power on.

DiodeFailure boolean
boolean

True: Diode failure, false: no failure.

AcMaxCurrent number
number

Max current requested from the EV.

ThreePhaseSupport boolean
boolean

True: Three phase support, False: One phase support.

RCDCurrent number
number

RCD current in mA.

BspMeasurement object
object

Bsp Measurement

Additional properties allowed.

ErrorEnum string
string

Type of error

  • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
  • VendorError: Vendor specific error code. Will stop charging session.
  • VendorWarning: Vendor specific error code. Charging may continue.
enumCommunicationFaultVendorErrorVendorWarning
Error object
object

Error object with type, subtype and message.

Additional properties allowed.

  • typestring requiredErrorEnum

    Type of error

    • CommunicationFault: The communication to the hardware or underlying driver is lost or has errors.
    • VendorError: Vendor specific error code. Will stop charging session.
    • VendorWarning: Vendor specific error code. Charging may continue.
    enumCommunicationFaultVendorErrorVendorWarning
  • sub_typestring

    The subtype of the error

  • messagestring

    Optional free-text detail about this specific occurrence of the error, e.g. a measured value or a diagnostic string from the hardware. Unlike the fixed per-error-type description, this is chosen by the caller. If an OCPP module is part of the EVerest configuration, the message is forwarded to the CSMS:

    • OCPP 1.6 (StatusNotification.req):
    • MREC errors: sent as info, truncated to 50 characters. Omitted entirely when the message is empty.
    • all other errors: sent as vendorId, truncated to 255 characters.
    • OCPP 2.x (NotifyEvent.req): sent as techInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
  • trigger_valueobject

    Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.

    • text_reprstring

      Text representation of the value as the raising entity would print it, including a unit where one applies, e.g. 85.3 degC. EVerest passes it on as is and does not parse it. Longer values are truncated to 2500 characters.

      max length 2500
CommunicationCheck boolean
boolean

Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.

HeartBeatId integer
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Schemas from other APIs

BspEvent object defined in evse_board_support_API.yaml ↗
object

Event stream from ControlPilot signal/relais.

Additional properties allowed.

  • eventstring required
    • A-F: CP states as defined in IEC61851-1
    • PowerOn: Hardware confirms that contactors switched on correctly (typically mirror contacts indicated successful switch on)
    • PowerOff: Hardware confirms that contactors switched off correctly and are not welded (typically mirror contacts indicated successful switch off)
    • Disconnected: Only used on EV side: Not connected to a charging station. Do not use on EVSE side.
    enumABCDEFPowerOnPowerOffDisconnected
ProximityPilot object defined in evse_board_support_API.yaml ↗
object

Current capability (ampacity) of the cable

Additional properties allowed.

  • ampacitystring required

    Ampacity value of the cable assembly

    enumNoneA_13A_20A_32A_63_3ph_70_1ph
EVInfo object defined in evse_manager_consumer_API.yaml ↗
object

Information about the connected EV if available

Additional properties allowed.

  • socnumber

    State of charge of the vehicle's battery in percent

    min 0max 100
  • present_voltagenumber

    Current voltage of the vehicles battery [V]

  • present_currentnumber

    Current current of the vehicles battery [A]

  • target_voltagenumber

    Target voltage that the vehicle requested [V]

  • target_currentnumber

    Target current that the vehicle requested [A]

  • maximum_current_limitnumber

    Maximum current that the vehicle supports [A]

  • minimum_current_limitnumber

    Charging below this limit is not energy efficient [A]

  • maximum_voltage_limitnumber

    Maximum voltage that the vehicle supports [V]

  • maximum_power_limitnumber

    Maximum power that the vehicle supports [W]

  • estimated_time_fullstring

    Estimated time when the vehicle is fully charged in RFC3339 format

    format date-time
  • departure_timestring

    Time when the vehicle intends to depart in RFC3339 format (If set by the user)

    format date-time
  • estimated_time_bulkstring

    Estimated time when the vehicle finished bulk charging (e.g. 80%) in RFC3339 format

    format date-time
  • evcc_idstring

    EVCC ID (typically MAC address)

    pattern ^[A-Fa-f0-9]{2}(:[A-Fa-f0-9]{2}){5}$
  • remaining_energy_needednumber

    Remaining energy needed to fulfill charging goal [Wh]

  • battery_capacitynumber

    Vehicle's battery capacity [Wh]

  • battery_full_socnumber

    SoC which the vehicle considers fully charged [%]

    min 0max 100
  • battery_bulk_socnumber

    SoC which the vehicle considers bulk charging reached [%]

    min 0max 100