ev_board_support_API¶
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
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¶
- 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
Example
{
"event": "A"
}
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
Example
{
"proximity_pilot": {
"ampacity": "A_32"
},
"rcd_current_mA": 5,
"cp_pwm_duty_cycle": 53
}
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
Example
{
"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¶
- 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
Example
{
"type": "VendorError",
"sub_type": "string",
"message": "string"
}
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
Example
{
"type": "VendorError",
"sub_type": "string",
"message": "string"
}
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
true
EVerest to client¶
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
True: enabled. False: disabled.
Example
true
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
Example
"A"
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
True: allow power on, false: do not allow power on.
Example
true
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
True: Diode failure, false: no failure.
Example
true
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
16
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
false
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
RCD current in mA.
Example
30
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
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
Enabled boolean¶
True: enabled. False: disabled.
EvCpState string¶
ControlPilot state
ABCDEPowerOnOff boolean¶
True: allow power on, false: do not allow power on.
DiodeFailure boolean¶
True: Diode failure, false: no failure.
AcMaxCurrent number¶
Max current requested from the EV.
ThreePhaseSupport boolean¶
True: Three phase support, False: One phase support.
RCDCurrent number¶
RCD current in mA.
BspMeasurement object¶
Bsp Measurement
Additional properties allowed.
-
proximity_pilotobject requiredProximityPilot ↗
Current capability of the cable
-
rcd_current_mAnumber
RCD current in mA
-
cp_pwm_duty_cyclenumber required
CP PWM Duty Cycle in percent (0-100)
ErrorEnum 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.
CommunicationFaultVendorErrorVendorWarningError 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.
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 astechInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.
- OCPP 1.6 (
-
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¶
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¶
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 ↗¶
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 ↗¶
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 ↗¶
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