system_API¶
EVerest API definition for the system module
API for EVerest API client implementing the system capabilities OTA update, log upload and network configuration. Commands without arguments carry an empty JSON object ({}) as payload.
Specification: system_API.yaml · pionix:de:everest:system_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/system/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_reply_update_firmware¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_update_firmware.
Direction: Module to EVerest
Message Reply update firmware application/json
Message send_reply_update_firmware
Reply to update firmware request.
Payload
Enum for the response of an update_firmware command
- Accepted: Accepted this firmware update request. This does not mean the firmware update is successful, the system will now start the firmware update process
- Rejected: Firmware update request rejected
- AcceptedCanceled: Accepted this firmware update request, but in doing this has cancelled an ongoing firmware update
- InvalidCertificate: The certificate is invalid
- RevokedCertificate: Failure end state. The Firmware Signing certificate has been revoked
AcceptedRejectedAcceptedCanceledInvalidCertificateRevokedCertificateExample
"Accepted"
send_reply_upload_logs¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_upload_logs.
Direction: Module to EVerest
Message Reply upload logs application/json
Message send_reply_upload_logs
Reply to upload logs request.
Payload
Example
{
"file_name": "string",
"upload_logs_status": "Accepted"
}
send_reply_is_reset_allowed¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_is_reset_allowed.
Direction: Module to EVerest
Message Reply to is reset allowed application/json
Message send_reply_is_reset_allowed
Reply to is reset allowed request.
Payload
true if reset is allowed
Example
true
send_reply_set_system_time¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_set_system_time.
Direction: Module to EVerest
Message Reply to set system time application/json
Message send_reply_set_system_time
Reply to set system time request.
Payload
true if reset successful
Example
true
send_reply_get_boot_reason¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_get_boot_reason.
Direction: Module to EVerest
Message Reply to get boot reason application/json
Message send_reply_get_boot_reason
Reply to get boot reason.
Payload
Enum defining the boot reason
ApplicationResetFirmwareUpdateLocalResetPowerUpRemoteResetScheduledResetTriggeredUnknownWatchdogExample
"ApplicationReset"
send_reply_configure_network¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_configure_network.
Direction: Module to EVerest
Message Reply configure network application/json
Message send_reply_configure_network
Direct (synchronous) response to a configure network request. May answer Processing and complete later via the configure_network_status var.
Payload
object ConfigureNetworkResponse
Direct (synchronous) response to configure_network
Examples
{
"status": "Processing"
}
{
"status": "Ready",
"interface_address": "eth0"
}
send_firmware_update_status¶
- Topic
everest_api/1/system/{module_id}/m2e/firmware_update_status
Direction: Module to EVerest
Message Send firmware update status application/json
Message send_firmware_update_status
Describes the current status of a firmware update of the system
Payload
object FirmwareUpdateStatus
Type defining the status of a firmware update
Example
{
"firmware_update_status": "Downloaded",
"request_id": 0
}
send_log_status¶
- Topic
everest_api/1/system/{module_id}/m2e/log_status
Message Send log upload status application/json
Message send_log_status
Describes the current status of log upload of the system
Payload
Example
{
"log_status": "BadMessage",
"request_id": 0
}
send_configure_network_status¶
- Topic
everest_api/1/system/{module_id}/m2e/configure_network_status
Direction: Module to EVerest
Message Send configure network status application/json
Message send_configure_network_status
Asynchronous final outcome of a configure network request that was answered with Processing
Payload
object ConfigureNetworkStatus
Asynchronous final outcome of a request answered with Processing
Example
{
"request_id": 0,
"status": "Ready",
"interface_address": "eth0"
}
send_communication_check¶
- Topic
everest_api/1/system/{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_request_update_firmware¶
- Topic
everest_api/1/system/{module_id}/e2m/update_firmware- Reply
- Sent to
$message.header#/replyToas send_reply_update_firmware.
Direction: EVerest to Module
Message Request update firmware application/json
Message receive_request_update_firmware
Request to update the firmware.
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadobject requiredFirmwareUpdateRequest
Type defining a Firmware update request
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"request_id": 0,
"location": "string"
}
}
receive_allow_firmware_installation¶
- Topic
everest_api/1/system/{module_id}/e2m/allow_firmware_installation
Direction: EVerest to Module
Message Receive Allow firmware installation application/json
Message receive_allow_firmware_installation
Call to allow firmware installation to proceed
Call to allow a firmware installation to proceed. This is usually called after a firmware update has been downloaded. OCPP requires to move all EVSE to an unavailable state prior to installing new firmware. EVerest will take care of this and call this function when all EVSE are in unavailable state to signal that installation can proceed.
Payload
No payload.
Example
receive_request_upload_logs¶
- Topic
everest_api/1/system/{module_id}/e2m/upload_logs- Reply
- Sent to
$message.header#/replyToas send_reply_upload_logs.
Direction: EVerest to Module
Message Request upload logs application/json
Message receive_request_upload_logs
Request to upload logs.
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadobject requiredUploadLogsRequest
Type defining an upload logs request.
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"location": "string"
}
}
receive_request_is_reset_allowed¶
- Topic
everest_api/1/system/{module_id}/e2m/is_reset_allowed- Reply
- Sent to
$message.header#/replyToas send_reply_is_reset_allowed.
Direction: EVerest to Module
Message Request if reset is allowed application/json
Message receive_request_is_reset_allowed
Request if is reset allowed. This is usually called prior to a reset request.
Payload
-
headersobject required
-
replyTostring required
Address to send the response to.
-
Example
{
"headers": {
"replyTo": "string"
},
"payload": "Soft"
}
receive_reset¶
- Topic
everest_api/1/system/{module_id}/e2m/reset
Direction: EVerest to Module
Message Receive reset command application/json
Message receive_reset
Call to reset the system immediately
Payload
Example
{
"type": "Soft",
"scheduled": true
}
receive_request_set_system_time¶
- Topic
everest_api/1/system/{module_id}/e2m/set_system_time- Reply
- Sent to
$message.header#/replyToas send_reply_set_system_time.
Direction: EVerest to Module
Message Receive set system time request application/json
Message receive_request_set_system_time
Call to set the system time
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
Example
{
"headers": {
"replyTo": "string"
},
"payload": "2019-08-24T14:15:22Z"
}
receive_request_get_boot_reason¶
- Topic
everest_api/1/system/{module_id}/e2m/get_boot_reason- Reply
- Sent to
$message.header#/replyToas send_reply_get_boot_reason.
Direction: EVerest to Module
Message Receive get boot reason request application/json
Message receive_request_get_boot_reason
Call to get the boot reason
Payload
-
headersobject required
-
replyTostring required
Address to send the response to.
-
Example
{
"headers": {
"replyTo": "string"
}
}
receive_request_configure_network¶
- Topic
everest_api/1/system/{module_id}/e2m/configure_network- Reply
- Sent to
$message.header#/replyToas send_reply_configure_network.
Direction: EVerest to Module. A client without network-configuration support must still reply, with status NotSupported, instead of staying silent: EVerest blocks the requesting module (e.g. the OCPP connection attempt) until a reply arrives or the request times out.
Message Request configure network application/json
Message receive_request_configure_network
Request to prepare a network interface for use. Reply with status NotSupported if network configuration is not supported; do not leave the request unanswered.
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadobject requiredConfigureNetworkRequest
Request to prepare a network interface for use
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"request_id": 0,
"interface": "Wired0"
}
}
receive_heartbeat¶
- Topic
everest_api/1/system/{module_id}/e2m/heartbeat
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¶
BootReason string¶
Enum defining the boot reason
ApplicationResetFirmwareUpdateLocalResetPowerUpRemoteResetScheduledResetTriggeredUnknownWatchdogFirmwareUpdateRequest object¶
Type defining a Firmware update request
Additional properties allowed.
-
retriesinteger
This specifies how many times the system must try to download the firmware before giving up.
min 1 -
retry_interval_sinteger
The interval in seconds after which a retry may be attempted
-
request_idinteger required
The Id of this request. If the originating firmware request (e.g. from the OCPP CSMS) did not include a request_id (e.g. classic UpdateFirmware.req), a request_id of -1 is used.
-
locationstring required
URI defining the origin of the firmware
-
retrieve_timestampstring
Time when the firmware update shall be retrieved in RFC3339 format
format date-time -
install_timestampstring
Time when the firmware update shall be installed in RFC3339 format
format date-time -
signing_certificatestring
Certificate with which the firmware was signed. PEM encoded X.509 certificate
-
signaturestring
Base64 encoded firmware signature
FirmwareUpdateStatus object¶
Type defining the status of a firmware update
Additional properties allowed.
-
State describing the current status of firmware update of the system
enumDownloadedDownloadFailedDownloadingDownloadScheduledDownloadPausedIdleInstallationFailedInstallingInstalledInstallRebootingInstallScheduledInstallVerificationFailedInvalidSignatureSignatureVerified -
request_idinteger required
Id of the request. Use the request_id from the corresponding FirmwareUpdateRequest.
-
firmware_update_metadataobject FirmwareUpdateMetadata
Metadata about the firmware update
FirmwareUpdateStatusEnum string¶
State describing the current download/upload status of a firmware update of the system:
- Downloaded: Intermediate state. New firmware has been downloaded by System
- DownloadFailed: Failure end state. System failed to download firmware
- Downloading: Intermediate state. Firmware is being downloaded
- DownloadScheduled: Intermediate state. Downloading of new firmware has been scheduled
- DownloadPaused: Intermediate state. Downloading has been paused
- Idle: System is not performing firmware update related tasks
- InstallationFailed: Failure end state. Installation of new firmware has failed
- Installing: Intermediate state. Firmware is being installed
- Installed: Successful end state. New firmware has successfully been installed in System
- InstallRebooting: Intermediate state. System is about to reboot to activate new firmware
- InstallScheduled: Intermediate state. Installation of the downloaded firmware is scheduled to take place on installDateTime
- InstallVerificationFailed: Failure end state. Verification of the new firmware (e.g. using a checksum or some other means) has failed and installation will not proceed. (Final failure state)
- InvalidSignature: Failure end state. The firmware signature is not valid
- SignatureVerified: Intermediate state. Provide signature successfully verified
DownloadedDownloadFailedDownloadingDownloadScheduledDownloadPausedIdleInstallationFailedInstallingInstalledInstallRebootingInstallScheduledInstallVerificationFailedInvalidSignatureSignatureVerifiedFirmwareUpdateMetadata object¶
Type carrying metadata about a firmware update
-
disable_connectors_during_installboolean
Whether all connectors should be made unavailable (disabled) for the duration of the firmware install
default true
LogStatusEnum string¶
State describing the current status of log upload of the system:
- AcceptedCanceled: Log upload request accepted, but cancelled an ongoing log upload.
- BadMessage: A badly formatted packet or other protocol incompatibility was detected
- Idle: The system is not uploading a log file
- NotSupportedOperation: The server does not support the operation
- PermissionDenied: Insufficient permissions to perform the operation
- Uploaded: File has been uploaded successfully
- UploadFailure: Failed to upload the requested file
- Uploading: File is being uploaded
AcceptedCanceledBadMessageIdleNotSupportedOperationPermissionDeniedUploadedUploadFailureUploadingLogStatus object¶
Type defining the status of a log upload
Additional properties allowed.
-
State describing the current status of log upload of the system
enumAcceptedCanceledBadMessageIdleNotSupportedOperationPermissionDeniedUploadedUploadFailureUploading -
request_idinteger required
Id of the request. Use the request_id from the corresponding UploadLogsRequest. If the originating log request did not include a request_id (e.g. classic GetDiagnostics), a request_id of -1 shall be used.
ResetAllowed boolean¶
true if reset is allowed
ResetRequest object¶
request for reset
Additional properties allowed.
-
scheduledboolean
ResetType string¶
Enum defining the type of a reset
SoftHardNotSpecifiedSystemTime string¶
system time in RFC3339 format
SystemTimeSet boolean¶
true if reset successful
UpdateFirmwareResponse string¶
Enum for the response of an update_firmware command
- Accepted: Accepted this firmware update request. This does not mean the firmware update is successful, the system will now start the firmware update process
- Rejected: Firmware update request rejected
- AcceptedCanceled: Accepted this firmware update request, but in doing this has cancelled an ongoing firmware update
- InvalidCertificate: The certificate is invalid
- RevokedCertificate: Failure end state. The Firmware Signing certificate has been revoked
AcceptedRejectedAcceptedCanceledInvalidCertificateRevokedCertificateUploadLogsRequest object¶
Type defining an upload logs request.
Additional properties allowed.
-
retriesinteger
This specifies how many times the system must try to upload the logs before giving up.
min 1 -
retry_interval_sinteger
The interval in seconds after which an upload retry may be attempted
-
oldest_timestampstring
Oldest timestamp that should be included in the log in RFC3339 format
format date-time -
latest_timestampstring
Latest timestamp that should be included in the log in RFC3339 format
format date-time -
locationstring required
The URL of the location at the remote system where the log should be stored.
-
typestring
The type of the log (e.g. in OCPP there is the SecurityLog and the DiagnosticsLog
-
request_idinteger
The Id of this request. If the originating log request did not include a request_id (e.g. classic GetDiagnostics), the request_id is omitted.
UploadLogsResponse object¶
Response to a upload logs request
Additional properties allowed.
-
file_namestring
This contains the name of the log file that will be uploaded.
-
The log status enum
enumAcceptedRejectedAcceptedCanceled
UploadLogsStatus string¶
Enum for the upload logs status response
- Accepted: Request to upload logs has been accepted
- Rejected: Request to upload logs has been rejected
- AcceptedCanceled: Accepted this log upload, but in doing this has cancelled an ongoing log file upload
AcceptedRejectedAcceptedCanceledCommunicationCheck 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
InterfaceClassEnum string¶
Network interface class a connection is bound to. Maps 1:1 to OCPP 2.x OCPPInterfaceEnum but is protocol-neutral.
Wired0Wired1Wired2Wired3Wireless0Wireless1Wireless2Wireless3AnyAPNAuthenticationEnum string¶
APN authentication method
CHAPNONEPAPAUTOAPN object¶
Access Point Name configuration for cellular interfaces
Additional properties forbidden.
-
apnstring required
The Access Point Name as an URL
-
apn_user_namestring
APN username
-
apn_passwordstring
APN password
-
sim_pinstring
SIM card pin code
-
preferred_networkstring
Preferred network, written to the SIM card
-
use_only_preferred_networkboolean
Use only the preferred network
VPNTypeEnum string¶
Type of VPN
IKEv2IPSecL2TPPPTPOtherVPN object¶
VPN configuration
Additional properties forbidden.
-
serverstring required
VPN server address
-
userstring
VPN username, if required by the VPN type
-
groupstring
VPN group
-
passwordstring
VPN password, if required by the VPN type
-
keystring
VPN shared secret or key, if required by the VPN type
ConfigureNetworkRequest object¶
Request to prepare a network interface for use
Additional properties forbidden.
-
request_idinteger required
Caller-chosen correlation id, echoed in configure_network_status
-
Standardized interface class; the provider maps it to a concrete system interface
enumWired0Wired1Wired2Wired3Wireless0Wireless1Wireless2Wireless3Any -
interface_namestring
Optional concrete system interface name (e.g. eth0, wwan0). If present it overrides the provider's mapping of the interface class. Providers reject unknown names (status Rejected).
ConfigureNetworkStatusEnum string¶
Status of a configure network request:
- Ready: interface prepared, usable now.
- Processing: preparation started, final result follows on the configure_network_status var.
- Failed: preparation failed.
- Rejected: request invalid/refused (e.g. unknown interface_name or unmapped interface class).
- NotSupported: this provider does not implement network configuration (consumers fall back to legacy behavior).
ReadyProcessingFailedRejectedNotSupportedConfigureNetworkFinalStatusEnum string¶
Final status of a configure network request that was answered with Processing:
- Ready: interface prepared, usable now.
- Failed: preparation failed.
ReadyFailedConfigureNetworkResponse object¶
Direct (synchronous) response to configure_network
Additional properties forbidden.
-
Status of the configure network request
enumReadyProcessingFailedRejectedNotSupported -
interface_addressstring
Interface name or IP address to bind to (present when status is Ready).
ConfigureNetworkStatus object¶
Asynchronous final outcome of a request answered with Processing
Additional properties forbidden.
-
request_idinteger required
Correlation id echoed from the ConfigureNetworkRequest
-
interface_addressstring
Interface name or IP address to bind to (present when status is Ready)