.. _everest_api_ev_board_support_API: ####################### ev\_board\_support\_API ####################### .. container:: everest-api overview .. raw:: html
version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestev_board_support
.. container:: lead EVerest API definition for EV board support API for EVerest API clients implementing ev board support. .. raw:: html

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 ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_ev_board_support_API_op_send_bsp_event: send\_bsp\_event ~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send BSP Event
Topic
everest_api/1/ev_board_support/{module_id}/m2e/bsp_event
Direction: Module to EVerest .. raw:: html
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"
      }
.. _everest_api_ev_board_support_API_op_send_bsp_measurement: send\_bsp\_measurement ~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send BSP measurement
Topic
everest_api/1/ev_board_support/{module_id}/m2e/bsp_measurement
Direction: Module to EVerest .. raw:: html
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
      }
.. _everest_api_ev_board_support_API_op_send_ev_info: send\_ev\_info ~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send EV Info
Topic
everest_api/1/ev_board_support/{module_id}/m2e/ev_info
Direction: Module to EVerest .. raw:: html
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
      }
.. _everest_api_ev_board_support_API_op_send_raise_error: send\_raise\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send raise error
Topic
everest_api/1/ev_board_support/{module_id}/m2e/raise_error
Direction: Module to EVerest .. raw:: html
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"
      }
.. _everest_api_ev_board_support_API_op_send_clear_error: send\_clear\_error ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send clear error
Topic
everest_api/1/ev_board_support/{module_id}/m2e/clear_error
.. raw:: html
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"
      }
.. _everest_api_ev_board_support_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/ev_board_support/{module_id}/m2e/communication_check
.. raw:: html
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 ----------------- .. _everest_api_ev_board_support_API_op_receive_enable: receive\_enable ~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Enable
Topic
everest_api/1/ev_board_support/{module_id}/e2m/enable
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_set_cp_state: receive\_set\_cp\_state ~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Set CP State
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_cp_state
Direction: EVerest to Module .. raw:: html
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"
.. _everest_api_ev_board_support_API_op_receive_allow_power_on: receive\_allow\_power\_on ~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Allow Power On
Topic
everest_api/1/ev_board_support/{module_id}/e2m/allow_power_on
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_diode_fail: receive\_diode\_fail ~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Diode Fail
Topic
everest_api/1/ev_board_support/{module_id}/e2m/diode_fail
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_set_ac_max_current: receive\_set\_ac\_max\_current ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Set AC max Current
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_ac_max_current
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_set_three_phases: receive\_set\_three\_phases ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Set Three Phases
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_three_phases
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_set_rcd_error: receive\_set\_rcd\_error ~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive Set RCD error
Topic
everest_api/1/ev_board_support/{module_id}/e2m/set_rcd_error
Direction: EVerest to Module .. raw:: html
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
.. _everest_api_ev_board_support_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/ev_board_support/{module_id}/e2m/heartbeat
Direction: EVerest to Module .. raw:: html
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 ======== .. container:: everest-api .. raw:: html
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 ======= .. container:: everest-api .. raw:: html
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.

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 ----------------------- .. container:: everest-api .. raw:: html
BspEvent object defined in evse_board_support_API.yaml ↗
object

Event stream from ControlPilot signal/relais.

Additional properties allowed.

ProximityPilot object defined in evse_board_support_API.yaml ↗
object

Current capability (ampacity) of the cable

Additional properties allowed.

EVInfo object defined in evse_manager_consumer_API.yaml ↗
object

Information about the connected EV if available

Additional properties allowed.