.. _everest_api_evse_board_support_API: ######################### evse\_board\_support\_API ######################### .. container:: everest-api overview .. raw:: html
Specification: evse_board_support_API.yaml · pionix:de:everest:evse_board_support_API
default mqtt
default local MQTT
localhost:1883everest_api/1/evse_board_support/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
everest_api/1/evse_board_support/{module_id}/m2e/eventapplication/jsonMessage send_event
Event from ControlPilot signal/out relais
Payload
Example
{
"event": "A"
}
everest_api/1/evse_board_support/{module_id}/m2e/ac_nr_of_phasesapplication/jsonMessage send_ac_nr_of_phases
Instantaneous phase count available to car
Values outside 1..3 are rejected with a log warning. Not required at start: the initial phase count comes from max_phase_count_import of the capabilities.
Payload
Example
3
everest_api/1/evse_board_support/{module_id}/m2e/capabilitiesapplication/jsonMessage send_capabilities
Hardware capabilities/limits. Publish them once after start, before the first charging session: on AC, EVerest does not offer current before it has them, and on AC and DC they set connector_type and supports_cp_state_E. Publish them again whenever a limit changes, e.g. when the maximum current drops because the hardware gets too hot.
Payload
Example
{
"max_current_A_import": 5,
"min_current_A_import": 1,
"max_phase_count_import": 3,
"min_phase_count_import": 1,
"max_current_A_export": 10,
"min_current_A_export": 1,
"max_phase_count_export": 3,
"min_phase_count_export": 1,
"supports_changing_phases_during_charging": true,
"max_plug_temperature_C": 80,
"supports_cp_state_E": true,
"connector_type": "IEC62196Type2Cable"
}
everest_api/1/evse_board_support/{module_id}/m2e/ac_pp_ampacityapplication/jsonMessage send_ac_pp_ampacity
Current carrying capacity of the connected cable in ampere for AC charging with a socket. Publish whenever it changes. This has no meaning for DC or AC charging with a fixed attached cable, it does not need to be implemented and the returned value is not used in those cases.
Payload
Example
{
"ampacity": "None"
}
everest_api/1/evse_board_support/{module_id}/m2e/request_stop_transactionapplication/jsonMessage send_request_stop_transaction
Publish to stop the transaction gracefully (e.g. user pressed the stop button)
Payload
Request for a stop transaction containing the reason and an optional id tag
Example
{
"reason": "Local"
}
replyTo address from the request's headers.
Answers receive_request_reset.application/jsonMessage send_reply_reset
Reply to provided topic.
Payload
Success: true, failure: false
Example
true
everest_api/1/evse_board_support/{module_id}/m2e/rcd_currentapplication/jsonMessage send_rcd_current
Residual current in mA. Note that this does not trigger anything, it is merely for reporting.
Payload
Electrical current in milliampere (mA)
Example
1
everest_api/1/evse_board_support/{module_id}/m2e/raise_errorapplication/jsonMessage send_raise_error
Signal to EVerest that an error happened.
Payload
Errors for the evse_board_support interface. All error codes that begin with MREC needs to be implemented to fulfill the Minimum Required Error Codes defined by the ChargeX consortium: https://inl.gov/content/uploads/2023/07/ChargeX_MREC_Rev5_09.12.23.pdf
Example
{
"type": "DiodeFault",
"sub_type": "string",
"message": "string"
}
everest_api/1/evse_board_support/{module_id}/m2e/clear_errorapplication/jsonMessage send_clear_error
Signal to EVerest that a previously raised error is no longer active.
Payload
Errors for the evse_board_support interface. All error codes that begin with MREC needs to be implemented to fulfill the Minimum Required Error Codes defined by the ChargeX consortium: https://inl.gov/content/uploads/2023/07/ChargeX_MREC_Rev5_09.12.23.pdf
Example
{
"type": "DiodeFault",
"sub_type": "string",
"message": "string"
}
everest_api/1/evse_board_support/{module_id}/m2e/communication_checkapplication/jsonMessage 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_api/1/evse_board_support/{module_id}/e2m/enableapplication/jsonMessage receive_enable
Enables or disables the charging port. Typically disabled results in control pilot state F. It must not accept cars for new charging sessions if disabled.
Payload
True: enabled. False: disabled.
Example
true
everest_api/1/evse_board_support/{module_id}/e2m/pwm_onapplication/jsonMessage receive_pwm_on
Turns PWM on with duty cycle (in percent)
EVerest only requests duty cycles strictly between 0 and 100 (5 % for high level communication, 10 % for 6 A up to 97 % for 80 A). State X1 (no current available, PWM off) is requested with cp_state_X1 and state F with cp_state_F, never as a duty cycle of 100 or 0 here.
Payload
PWM duty cycle in percent, strictly between 0 and 100. EVerest requests 100 % (X1) and 0 % (F) through cp_state_X1 and cp_state_F instead.
Example
100
everest_api/1/evse_board_support/{module_id}/e2m/cp_state_X1application/jsonMessage receive_cp_state_X1
Turn PWM off and set CP to constant high voltage (state X1)
Payload
No payload.
Example
everest_api/1/evse_board_support/{module_id}/e2m/cp_state_Fapplication/jsonMessage receive_cp_state_F
Turn PWM off with error F (constant negative voltage)
Payload
No payload.
Example
everest_api/1/evse_board_support/{module_id}/e2m/cp_state_Eapplication/jsoneverest_api/1/evse_board_support/{module_id}/e2m/allow_power_onapplication/jsonMessage receive_allow_power_on
Sets allow_power_on flag. If false, relays must never be switched on.
Payload
Flag and context for switching power on/off. In some architectures e.g. DC power train needs to know whether it should switch on with limited current or full current on the output contactors.
Example
{
"allow_power_on": true,
"reason": "DCCableCheck"
}
everest_api/1/evse_board_support/{module_id}/e2m/ac_switch_three_phases_while_chargingapplication/jsonMessage receive_ac_switch_three_phases_while_charging
Optional, in case of doubt do not implement. Report in hardware_capabilites if this command is supported. This command switches between one and three phase operation during an active charging session. Some cars can be permanently destroyed by that, so the bsp needs to implement a special sequence for the switching. The exact sequence can be defined by the BSP, but one example would be a C2->C1->B1->F->B1->B2->C2 or similar. Use with caution.
Payload
Example
"ThreePhases"
everest_api/1/evse_board_support/{module_id}/e2m/ac_overcurrent_limitapplication/jsonMessage receive_ac_overcurrent_limit
Many chargers implement a fast over current shutdown directly in the hardware that triggers if the EV draws more current than the PWM allows. If the hardware does not have this functionality, just ignore this command. Do not use it to set the PWM duty cycle. Otherwise this command reports a value that should be used for the overcurrent detection. A margin needs to be added to avoid false triggers. Do not use the PWM duty cycle to infer the current limit in the BSP, as this will not work with HLC.
Payload
Electrical current in ampere (A)
Example
15
everest_api/1/evse_board_support/{module_id}/e2m/self_testapplication/jsonMessage receive_self_test
Executes a self test of the RCD. If it fails, an error of type Selftest should be raised.
Payload
No payload.
Example
everest_api/1/evse_board_support/{module_id}/e2m/reset$message.header#/replyTo as send_reply_reset.application/jsonMessage receive_request_reset
Resets the RCD after a trigger. May not be supported by actual hardware.
Payload
The topic to which to send the reply
Example
{
"headers": {
"replyTo": "everest_api/1/{interface_type}/{module_id}/e2m/{operation_name}/{uuid}"
}
}
everest_api/1/evse_board_support/{module_id}/e2m/lockapplication/jsoneverest_api/1/evse_board_support/{module_id}/e2m/unlockapplication/jsonMessage receive_unlock
Unlock connector lock. (e.g. normal unlock or enforced by OCPP)
Payload
No payload.
Example
everest_api/1/evse_board_support/{module_id}/e2m/heartbeatapplication/jsonMessage 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
Number of active phases for AC charging
ThreePhasesSinglePhaseEvent stream from ControlPilot signal/relais.
Additional properties allowed.
ABCDEFPowerOnPowerOffDisconnectedElectrical current in milliampere (mA)
True: enabled. False: disabled.
Hardware capabilities / limits
Additional properties allowed.
Maximum current (ampere) the hardware can handle (import from grid)
Minimum current (ampere) the hardware can use to charge. Values below may be set but may result in pause instead. (import from grid)
Max nr of phases the hardware can use (import from grid)
Minimum nr of phases the hardware can use (import from grid)
Maximum current (ampere) the hardware can handle (export to grid)
Minimum current (ampere) the hardware can use to charge. Values below may be set but may result in pause instead. (export to grid)
Max nr of phases the hardware can use (export to grid)
Minimum nr of phases the hardware can use (export to grid)
Indicates whether changing number of phases is supported during charging (true) or not (false)
Indicates whether setting Control Pilot to state E is supported (true) or not (false). Treated as false when omitted.
Type of charging connector available at this EVSE
IEC62196Type2CableIEC62196Type2SocketcCCS1cCCS2cTeslacNACScG105cMCSElectrical current in ampere (A)
Number of phases
Flag and context for switching power on/off. In some architectures e.g. DC power train needs to know whether it should switch on with limited current or full current on the output contactors.
Additional properties allowed.
Allow switching on (true) or force switching off (false)
Reason for switching on/off
DCCableCheckDCPreChargeFullPowerChargingPowerOffCurrent capability (ampacity) of the cable
Additional properties allowed.
Ampacity value of the cable assembly
NoneA_13A_20A_32A_63_3ph_70_1phPWM duty cycle in percent, strictly between 0 and 100. EVerest requests 100 % (X1) and 0 % (F) through cp_state_X1 and cp_state_F instead.
Success: true, failure: false
Type of error
The ConnectorLock errors and MREC1ConnectorLockFailure are raised on the connector_lock interface, Selftest, DC and AC on ac_rcd, all others on evse_board_support. EvseManager sees connector_lock and ac_rcd errors only if its connector_lock and ac_rcd requirements are connected to this module. Only MREC3HighTemperature, MREC18CableOverTempDerate and VendorWarning let charging continue.
DiodeFaultVentilationNotAvailableBrownOutEnergyManagementPermanentFaultMREC2GroundFailureMREC3HighTemperatureMREC4OverCurrentFailureMREC5OverVoltageMREC6UnderVoltageMREC8EmergencyStopMREC10InvalidVehicleModeMREC14PilotFaultMREC15PowerLossMREC17EVSEContactorFaultMREC18CableOverTempDerateMREC19CableOverTempStopMREC20PartialInsertionMREC23ProximityFaultMREC24ConnectorVoltageHighMREC25BrokenLatchMREC26CutCableConnectorLockCapNotChargedConnectorLockUnexpectedOpenConnectorLockUnexpectedCloseConnectorLockFailedLockConnectorLockFailedUnlockMREC1ConnectorLockFailureSelftestDCACTiltDetectedWaterIngressDetectedEnclosureOpenVendorErrorVendorWarningErrors for the evse_board_support interface. All error codes that begin with MREC needs to be implemented to fulfill the Minimum Required Error Codes defined by the ChargeX consortium: https://inl.gov/content/uploads/2023/07/ChargeX_MREC_Rev5_09.12.23.pdf
Additional properties allowed.
Type of error
The ConnectorLock errors and MREC1ConnectorLockFailure are raised on the connector_lock interface, Selftest, DC and AC on ac_rcd, all others on evse_board_support. EvseManager sees connector_lock and ac_rcd errors only if its connector_lock and ac_rcd requirements are connected to this module. Only MREC3HighTemperature, MREC18CableOverTempDerate and VendorWarning let charging continue.
DiodeFaultVentilationNotAvailableBrownOutEnergyManagementPermanentFaultMREC2GroundFailureMREC3HighTemperatureMREC4OverCurrentFailureMREC5OverVoltageMREC6UnderVoltageMREC8EmergencyStopMREC10InvalidVehicleModeMREC14PilotFaultMREC15PowerLossMREC17EVSEContactorFaultMREC18CableOverTempDerateMREC19CableOverTempStopMREC20PartialInsertionMREC23ProximityFaultMREC24ConnectorVoltageHighMREC25BrokenLatchMREC26CutCableConnectorLockCapNotChargedConnectorLockUnexpectedOpenConnectorLockUnexpectedCloseConnectorLockFailedLockConnectorLockFailedUnlockMREC1ConnectorLockFailureSelftestDCACTiltDetectedWaterIngressDetectedEnclosureOpenVendorErrorVendorWarningThe subtype of the error
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:
StatusNotification.req):info, truncated to 50 characters. Omitted entirely when the message is empty.vendorId, truncated to 255 characters.NotifyEvent.req): sent as techInfo, truncated to 500 characters. When the message is empty, the error description is sent instead.Optional value that caused this specific occurrence of the error, e.g. the measurement that crossed a limit.
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.
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.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Contains the certificate information
Additional properties allowed.
Used algorithms for the hashes provided
SHA256SHA384SHA512Hashed value of the Issuer Distinguished Name
Hashed value of the issuers public key
The serial number of the certificate
This contains the responder URL
Type for a custom id token with a free-form type
Additional properties allowed.
Arbitrary value of the IdToken
Custom type of the token
Type for an id token
Additional properties allowed.
Arbitrary value of the IdToken: This has to be printable case insensitive ascii
Type of the token
CentraleMAIDMacAddressISO14443ISO15693KeyCodeLocalNoAuthorizationA list of additional custom id tokens than can be used for providing additional information for validation
Type for a custom id token with a free-form type
Type for IdToken provided by auth token providers. Contains additional information about the IdToken like the source and purpose
Additional properties allowed.
Id of the authorization request of this token. Could be used to put remoteStartId of OCPP2.0.1
Authorization type of the token.
OCPPRFIDAutochargePlugAndChargeBankCardA list of connector ids to which the authorization can be assigned
Indicates that the id token is already validated by the provider
The X.509 certificated presented by EV and encoded in PEM format
Contains the information needed to verify the EV Contract Certificate via OCSP
An array of contract certificate infos
Request for a stop transaction containing the reason and an optional id tag
Additional properties allowed.
Reason for stopping the transaction
EmergencyStopEVDisconnectedHardResetLocalOtherPowerLossRebootRemoteSoftResetUnlockCommandDeAuthorizedEnergyLimitReachedGroundFaultLocalOutOfCreditMasterPassOvercurrentFaultPowerQualitySOCLimitReachedStoppedByEVTimeLimitReachedTimeoutReqEnergyTransferRejectedEVSEDisabledId tag that was used to stop the transaction. Only present if transaction was stopped locally.