.. _everest_api_slac_API:
#########
slac\_API
#########
.. container:: everest-api overview
.. raw:: html
version 1.1.0AsyncAPI 3.0.0
content type application/jsonlicense Apache-2.0 EVerest slac
.. container:: lead
EVerest API definition for SLAC
API for EVerest API clients implementing SLAC. Commands without arguments carry an empty JSON object ({}) as payload.
.. raw:: html
Specification: slac_API.yaml · pionix:de:everest:slac_API
send
the client publishes, EVerest consumes (7)
receive
EVerest publishes, the client consumes (8)
Servers
=======
.. container:: everest-api
.. raw:: html
default mqtt
Host localhost:1883Topic prefix everest_api/1/slac/{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_slac_API_op_send_state:
send\_state
~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send state
Topic
everest_api/1/slac/{module_id}/m2e/state
Direction: Module to EVerest
.. raw:: html
Message SLAC state application/json
Message send_state
Payload
enum UNMATCHEDMATCHINGMATCHED
Example
Example state MATCHED
"MATCHED"
.. _everest_api_slac_API_op_send_dlink_ready:
send\_dlink\_ready
~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send dlink_ready
Topic
everest_api/1/slac/{module_id}/m2e/dlink_ready
Direction: Module to EVerest
.. raw:: html
Message Dlink ready application/json
Message send_dlink_ready
Inform higher layers about a change in data link status. Emits true if link was set up and false when the link is shut down.
Payload
Inform higher layers about a change in data link status. Emits true if link was set up and false when the link is shut down.
Example
Example dlink_ready true
true
.. _everest_api_slac_API_op_send_request_error_routine:
send\_request\_error\_routine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send request_error_routine
Topic
everest_api/1/slac/{module_id}/m2e/request_error_routine
Direction: Module to EVerest
.. raw:: html
Message Request error routine application/json
Message send_request_error_routine
Inform the higher layer to execute the error routine for a SLAC connection retry
Example
Minimal payload generated from the schema generated
null
.. _everest_api_slac_API_op_send_ev_mac_address:
send\_ev\_mac\_address
~~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send ev_mac_address
Topic
everest_api/1/slac/{module_id}/m2e/ev_mac_address
Direction: Module to EVerest
.. raw:: html
Message EV MAC address application/json
Message send_ev_mac_address
Inform higher layers about the MAC address of the vehicle (upper case)
Payload
Inform higher layers about the MAC address of the vehicle (upper case)
pattern ^[A-F0-9]{2}(:[A-F0-9]{2}){5}$
Example
Example MAC address
"AA:BB:CC:DD:EE:FF"
.. _everest_api_slac_API_op_send_raise_error:
send\_raise\_error
~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send raise error
Topic
everest_api/1/slac/{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 error message
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
.. _everest_api_slac_API_op_send_clear_error:
send\_clear\_error
~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send clear error
Topic
everest_api/1/slac/{module_id}/m2e/clear_error
.. raw:: html
Message Send clear error application/json
Message send_clear_error
Signal to EVerest that an error was resolved.
Example
Signal to EVerest that a previously raised error is no longer active.
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
.. _everest_api_slac_API_op_send_communication_check:
send\_communication\_check
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op send
.. raw:: html
send
Send communication check
Topic
everest_api/1/slac/{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_slac_API_op_receive_reset:
receive\_reset
~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive reset
Topic
everest_api/1/slac/{module_id}/e2m/reset
Direction: EVerest to Module
.. raw:: html
Message Reset SLAC application/json
Message receive_reset
Payload
true: start SLAC after reset, false: stop SLAC
.. _everest_api_slac_API_op_receive_enter_bcd:
receive\_enter\_bcd
~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive enter_bcd
Topic
everest_api/1/slac/{module_id}/e2m/enter_bcd
Direction: EVerest to Module
.. raw:: html
Message Enter B/C/D application/json
Message receive_enter_bcd
Signal pilot state change to B/C/D from A/E/F.
.. _everest_api_slac_API_op_receive_leave_bcd:
receive\_leave\_bcd
~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive leave_bcd
Topic
everest_api/1/slac/{module_id}/e2m/leave_bcd
Direction: EVerest to Module
.. raw:: html
Message Leave B/C/D application/json
Message receive_leave_bcd
Signal pilot state change to A/E/F from B/C/D.
.. _everest_api_slac_API_op_receive_count_bc:
receive\_count\_bc
~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive count_bc
Topic
everest_api/1/slac/{module_id}/e2m/count_bc
Direction: EVerest to Module
.. raw:: html
Message B/C transition count application/json
Message receive_count_bc
Running count of Control-Pilot B->C transitions in the current session, pushed by EvseManager on every edge and reset to 0 at plug-in. SLAC uses the delta over the CM_VALIDATE toggle window as the number of BCB toggles the EV performed.
Payload
Running count of Control-Pilot B->C transitions in the current session.
Example
Second B->C edge of the session
2
.. _everest_api_slac_API_op_receive_dlink_terminate:
receive\_dlink\_terminate
~~~~~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive dlink_terminate
Topic
everest_api/1/slac/{module_id}/e2m/dlink_terminate
Direction: EVerest to Module
.. raw:: html
Message Dlink terminate application/json
Message receive_dlink_terminate
Terminate the data link and become UNMATCHED.
.. _everest_api_slac_API_op_receive_dlink_error:
receive\_dlink\_error
~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive dlink_error
Topic
everest_api/1/slac/{module_id}/e2m/dlink_error
Direction: EVerest to Module
.. raw:: html
Message Dlink error application/json
Message receive_dlink_error
Terminate the data link and restart the matching process.
.. _everest_api_slac_API_op_receive_dlink_pause:
receive\_dlink\_pause
~~~~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive dlink_pause
Topic
everest_api/1/slac/{module_id}/e2m/dlink_pause
Direction: EVerest to Module
.. raw:: html
Message Dlink pause application/json
Message receive_dlink_pause
Request power saving mode, while staying MATCHED.
.. _everest_api_slac_API_op_receive_heartbeat:
receive\_heartbeat
~~~~~~~~~~~~~~~~~~
.. container:: everest-api op receive
.. raw:: html
receive
Receive heartbeat
Topic
everest_api/1/slac/{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_resetReset SLAC
Reset SLAC
receive_reset
receive_enter_bcdEnter B/C/D
Signal pilot state change to B/C/D from A/E/F.
receive_enter_bcd
receive_leave_bcdLeave B/C/D
Signal pilot state change to A/E/F from B/C/D.
receive_leave_bcd
receive_count_bcB/C transition count
Running count of Control-Pilot B->C transitions in the current session, pushed by EvseManager on every edge and reset to 0 at plug-in. SLAC uses the delta over the CM_VALIDATE toggle window as the number of BCB toggles the EV performed.
receive_count_bc
receive_dlink_terminateDlink terminate
Terminate the data link and become UNMATCHED.
receive_dlink_terminate
receive_dlink_errorDlink error
Terminate the data link and restart the matching process.
receive_dlink_error
receive_dlink_pauseDlink pause
Request power saving mode, while staying MATCHED.
receive_dlink_pause
send_stateSLAC state
Provides the state enum.
send_state
send_dlink_readyDlink ready
Inform higher layers about a change in data link status. Emits true if link was set up and false when the link is shut down.
send_dlink_ready
send_request_error_routineRequest error routine
Inform the higher layer to execute the error routine for a SLAC connection retry
send_request_error_routine
send_ev_mac_addressEV MAC address
Inform higher layers about the MAC address of the vehicle (upper case)
send_ev_mac_address
send_raise_errorSend raise error
Signal to EVerest that an error happened.
send_raise_error
send_clear_errorSend clear error
Signal to EVerest that an error was resolved.
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
BcTransitionCount integer ¶
integer
Running count of Control-Pilot B->C transitions in the current session.
Enabled boolean ¶
boolean
true: start SLAC after reset, false: stop SLAC
State string ¶
string
enum UNMATCHEDMATCHINGMATCHED
DLinkStatus boolean ¶
boolean
Inform higher layers about a change in data link status. Emits true if link was set up and false when the link is shut down.
MACAddress string ¶
string
Inform higher layers about the MAC address of the vehicle (upper case)
pattern ^[A-F0-9]{2}(:[A-F0-9]{2}){5}$
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 additional information about the error OCPP 1.6: Sets info on MREC errors and vendorId otherwise OCPP 2.x: Sets techInfo
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
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
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