slac_API¶
EVerest API definition for SLAC
API for EVerest API clients implementing SLAC. Commands without arguments carry an empty JSON object ({}) as payload.
Specification: slac_API.yaml · pionix:de:everest:slac_API
Servers¶
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¶
Client to EVerest¶
send_state¶
- Topic
everest_api/1/slac/{module_id}/m2e/state
Direction: Module to EVerest
Message SLAC state application/json
send_dlink_ready¶
- Topic
everest_api/1/slac/{module_id}/m2e/dlink_ready
Direction: Module to EVerest
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
true
send_request_error_routine¶
- Topic
everest_api/1/slac/{module_id}/m2e/request_error_routine
Direction: Module to EVerest
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
Example
null
send_ev_mac_address¶
- Topic
everest_api/1/slac/{module_id}/m2e/ev_mac_address
Direction: Module to EVerest
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)
Example
"AA:BB:CC:DD:EE:FF"
send_raise_error¶
- Topic
everest_api/1/slac/{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": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
send_clear_error¶
- Topic
everest_api/1/slac/{module_id}/m2e/clear_error
Message Send clear error application/json
Message send_clear_error
Signal to EVerest that an error was resolved.
Payload
Example
{
"type": "CommunicationFault",
"sub_type": "string",
"message": "string"
}
send_communication_check¶
- Topic
everest_api/1/slac/{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_reset¶
- Topic
everest_api/1/slac/{module_id}/e2m/reset
Direction: EVerest to Module
Message Reset SLAC application/json
Message receive_reset
Reset SLAC
Payload
true: start SLAC after reset, false: stop SLAC
Example
true
receive_enter_bcd¶
- Topic
everest_api/1/slac/{module_id}/e2m/enter_bcd
Direction: EVerest to Module
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
receive_leave_bcd¶
- Topic
everest_api/1/slac/{module_id}/e2m/leave_bcd
Direction: EVerest to Module
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
receive_count_bc¶
- Topic
everest_api/1/slac/{module_id}/e2m/count_bc
Direction: EVerest to Module
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
2
receive_dlink_terminate¶
- Topic
everest_api/1/slac/{module_id}/e2m/dlink_terminate
Direction: EVerest to Module
Message Dlink terminate application/json
Message receive_dlink_terminate
Terminate the data link and become UNMATCHED.
Payload
No payload.
Example
receive_dlink_error¶
- Topic
everest_api/1/slac/{module_id}/e2m/dlink_error
Direction: EVerest to Module
Message Dlink error application/json
Message receive_dlink_error
Terminate the data link and restart the matching process.
Payload
No payload.
Example
receive_dlink_pause¶
- Topic
everest_api/1/slac/{module_id}/e2m/dlink_pause
Direction: EVerest to Module
Message Dlink pause application/json
Message receive_dlink_pause
Request power saving mode, while staying MATCHED.
Payload
No payload.
Example
receive_heartbeat¶
- Topic
everest_api/1/slac/{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¶
BcTransitionCount integer¶
Running count of Control-Pilot B->C transitions in the current session.
Enabled boolean¶
true: start SLAC after reset, false: stop SLAC
State string¶
Provides the state enum.
UNMATCHEDMATCHINGMATCHEDDLinkStatus 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¶
Inform higher layers about the MAC address of the vehicle (upper case)
Error 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
Sub-type of the error.
-
messagestring
Optional additional information about the error OCPP 1.6: Sets
infoon MREC errors andvendorIdotherwise OCPP 2.x: SetstechInfo -
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
-
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.'
CommunicationFaultVendorErrorVendorWarningCommunicationCheck 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