.. _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.0 EVerest ev_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
Host localhost:1883Topic 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
Expand all
Collapse all
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
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
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
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.
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.
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.
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
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)
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
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
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.
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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Messages
========
.. container:: everest-api
.. raw:: html
Message Summary Used by
receive_enableReceive enable or disable
Enables or disables the EV simulation.
receive_enable
receive_set_cp_stateReceive 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_onReceive permission to switch relays on
If false, contactor must never be switched on.
receive_allow_power_on
receive_diode_failReceive diode failure state
If true, simulator should set a diode failure.
receive_diode_fail
receive_set_ac_max_currentReceive the max AC current
Maximum AC current to be requested from the EV.
receive_set_ac_max_current
receive_set_three_phasesReceive three or one phase support
Whether the EV should indicate single or three phase support.
receive_set_three_phases
receive_set_rcd_errorSetting set RCD error.
Setting a rcd error. Only for simulation purpose.
receive_set_rcd_error
send_bsp_eventSend BSP event
Events from CP/Relais
send_bsp_event
send_bsp_measurementSend BSP Measurements
Instantaneous BSP measurements
send_bsp_measurement
send_ev_infoSend EV Info
Details about the EV if available
send_ev_info
send_raise_errorSend raise error
Signal to EVerest that an error happened.
send_raise_error
send_clear_errorSend clear error
Signal to EVerest that a previously raised error is no longer active.
send_clear_error
receive_heartbeatReceive heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
receive_heartbeat
send_communication_checkSend 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 ¶
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 ¶
BspMeasurement object ¶
object
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. enum CommunicationFaultVendorErrorVendorWarning
Error object ¶
object
Error object with type, subtype and message.
Additional properties allowed.
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. enum CommunicationFaultVendorErrorVendorWarning
message string
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_value object
Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.
text_repr string
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
-----------------------
.. container:: everest-api
.. raw:: html
BspEvent object defined in evse_board_support_API.yaml ↗ ¶
object
Event stream from ControlPilot signal/relais.
Additional properties allowed.
event string
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. enum ABCDEFPowerOnPowerOffDisconnected
ProximityPilot object defined in evse_board_support_API.yaml ↗ ¶
object
Current capability (ampacity) of the cable
Additional properties allowed.
ampacity string
required
Ampacity value of the cable assembly
enum NoneA_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.
soc number
State of charge of the vehicle's battery in percent
min 0max 100
present_voltage number
Current voltage of the vehicles battery [V]
present_current number
Current current of the vehicles battery [A]
target_voltage number
Target voltage that the vehicle requested [V]
target_current number
Target current that the vehicle requested [A]
maximum_current_limit number
Maximum current that the vehicle supports [A]
minimum_current_limit number
Charging below this limit is not energy efficient [A]
maximum_voltage_limit number
Maximum voltage that the vehicle supports [V]
maximum_power_limit number
Maximum power that the vehicle supports [W]
estimated_time_full string
Estimated time when the vehicle is fully charged in RFC3339 format
format date-time
departure_time string
Time when the vehicle intends to depart in RFC3339 format (If set by the user)
format date-time
estimated_time_bulk string
Estimated time when the vehicle finished bulk charging (e.g. 80%) in RFC3339 format
format date-time
evcc_id string
EVCC ID (typically MAC address)
pattern ^[A-Fa-f0-9]{2}(:[A-Fa-f0-9]{2}){5}$
remaining_energy_needed number
Remaining energy needed to fulfill charging goal [Wh]
battery_capacity number
Vehicle's battery capacity [Wh]
battery_full_soc number
SoC which the vehicle considers fully charged [%]
min 0max 100
battery_bulk_soc number
SoC which the vehicle considers bulk charging reached [%]
min 0max 100