.. _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.0EVerestslac
.. 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

default local MQTT

Host
localhost:1883
Topic 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
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

Provides the state enum.

Payload

string State

Provides the state enum.

enumUNMATCHEDMATCHINGMATCHED

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

boolean DLinkStatus

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

Payload

null

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

string MACAddress

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.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

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.

Payload

object Error

Error object with type, subtype and message.

Definition of Error

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.

Example

Example 1
true
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

Reset SLAC

Payload

boolean Enabled

true: start SLAC after reset, false: stop SLAC

Example

Example 1
true
.. _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.

Payload

No payload.

Example

.. _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.

Payload

No payload.

Example

.. _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.

Payload

No payload.

Example

.. _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.

Payload

No payload.

Example

.. _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.

Payload

No payload.

Example

.. _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

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_reset
Reset SLAC

Reset SLAC

receive_reset
receive_enter_bcd
Enter B/C/D

Signal pilot state change to B/C/D from A/E/F.

receive_enter_bcd
receive_leave_bcd
Leave B/C/D

Signal pilot state change to A/E/F from B/C/D.

receive_leave_bcd
receive_count_bc
B/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
send_state
SLAC state

Provides the state enum.

send_state
send_request_error_routine
Request error routine

Inform the higher layer to execute the error routine for a SLAC connection retry

send_request_error_routine
send_ev_mac_address
EV MAC address

Inform higher layers about the MAC address of the vehicle (upper case)

send_ev_mac_address
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 an error was resolved.

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
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

Provides the state enum.

enumUNMATCHEDMATCHINGMATCHED
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.

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
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