system_API

version 1.1.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestSystemAPI

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

send the client publishes, EVerest consumes (10) receive EVerest publishes, the client consumes (9)

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

send Reply to update firmware request
Topic
Dynamic: the replyTo address 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
enumAcceptedRejectedAcceptedCanceledInvalidCertificateRevokedCertificate

Example

Update firmware
"Accepted"

send_reply_upload_logs

send Request to upload logs
Topic
Dynamic: the replyTo address 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

object UploadLogsResponse

Response to a upload logs request

Definition of UploadLogsResponse

Example

Upload logs
{
  "file_name": "string",
  "upload_logs_status": "Accepted"
}

send_reply_is_reset_allowed

send Send reply for is_reset_allowed
Topic
Dynamic: the replyTo address 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

boolean ResetAllowed

true if reset is allowed

Example

Reset is allowed
true

send_reply_set_system_time

send Send reply to set system time request
Topic
Dynamic: the replyTo address 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

system time set successfully
true

send_reply_get_boot_reason

send Send reply to get boot reason request
Topic
Dynamic: the replyTo address 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

string BootReason

Enum defining the boot reason

enumApplicationResetFirmwareUpdateLocalResetPowerUpRemoteResetScheduledResetTriggeredUnknownWatchdog

Example

Get boot reason
"ApplicationReset"

send_reply_configure_network

send Reply to configure network request
Topic
Dynamic: the replyTo address 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

Definition of ConfigureNetworkResponse

Examples

Processing
{
  "status": "Processing"
}
Ready
{
  "status": "Ready",
  "interface_address": "eth0"
}

send_firmware_update_status

send 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

Definition of FirmwareUpdateStatus

Example

Firmware update status
{
  "firmware_update_status": "Downloaded",
  "request_id": 0
}

send_log_status

send Send log upload 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

object LogStatus

Type defining the status of a log upload

Definition of LogStatus

Example

Log upload status
{
  "log_status": "BadMessage",
  "request_id": 0
}

send_configure_network_status

send 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

Definition of ConfigureNetworkStatus

Example

Configure network status
{
  "request_id": 0,
  "status": "Ready",
  "interface_address": "eth0"
}

send_communication_check

send 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

CommunicationCheck
true

EVerest to client

receive_request_update_firmware

receive Request to update the firmware
Topic
everest_api/1/system/{module_id}/e2m/update_firmware
Reply
Sent to $message.header#/replyTo as 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

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

    Definition of FirmwareUpdateRequest

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": {
    "request_id": 0,
    "location": "string"
  }
}

receive_allow_firmware_installation

receive Call to allow a firmware installation to proceed
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

receive Receive request to upload logs
Topic
everest_api/1/system/{module_id}/e2m/upload_logs
Reply
Sent to $message.header#/replyTo as send_reply_upload_logs.

Direction: EVerest to Module

Message Request upload logs application/json

Message receive_request_upload_logs

Request to upload logs.

Payload

object
  • 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.

    Definition of UploadLogsRequest

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": {
    "location": "string"
  }
}

receive_request_is_reset_allowed

receive Receive request for is reset allowed
Topic
everest_api/1/system/{module_id}/e2m/is_reset_allowed
Reply
Sent to $message.header#/replyTo as 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

object
  • headersobject required
    • replyTostring required

      Address to send the response to.

  • payloadstring requiredResetType

    Enum defining the type of a reset

    enumSoftHardNotSpecified

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": "Soft"
}

receive_reset

receive Call to reset the system immediately
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

object ResetRequest

request for reset

Definition of ResetRequest

Example

Minimal payload generated from the schema generated
{
  "type": "Soft",
  "scheduled": true
}

receive_request_set_system_time

receive Receive request to set the system time
Topic
everest_api/1/system/{module_id}/e2m/set_system_time
Reply
Sent to $message.header#/replyTo as 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

object
  • 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.

  • payloadstring requiredSystemTime

    system time in RFC3339 format

    format date-time

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": "2019-08-24T14:15:22Z"
}

receive_request_get_boot_reason

receive Receive request to get the boot reason
Topic
everest_api/1/system/{module_id}/e2m/get_boot_reason
Reply
Sent to $message.header#/replyTo as 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

object
  • headersobject required
    • replyTostring required

      Address to send the response to.

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  }
}

receive_request_configure_network

receive Request to configure a network interface
Topic
everest_api/1/system/{module_id}/e2m/configure_network
Reply
Sent to $message.header#/replyTo as 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

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

    Definition of ConfigureNetworkRequest

Example

Minimal payload generated from the schema generated
{
  "headers": {
    "replyTo": "string"
  },
  "payload": {
    "request_id": 0,
    "interface": "Wired0"
  }
}

receive_heartbeat

receive 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

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

MessageSummaryUsed by
receive_request_update_firmware
Request update firmware

Request to update the firmware.

receive_request_update_firmware
send_reply_update_firmware
Reply update firmware

Reply to update firmware request.

send_reply_update_firmware
receive_request_upload_logs
Request upload logs

Request to upload logs.

receive_request_upload_logs
send_reply_upload_logs
Reply upload logs

Reply to upload logs request.

send_reply_upload_logs
receive_request_is_reset_allowed
Request if reset is allowed

Request if is reset allowed. This is usually called prior to a reset request.

receive_request_is_reset_allowed
send_reply_is_reset_allowed
Reply to is reset allowed

Reply to is reset allowed request.

send_reply_is_reset_allowed
receive_request_set_system_time
Receive set system time request

Call to set the system time

receive_request_set_system_time
send_reply_set_system_time
Reply to set system time

Reply to set system time request.

send_reply_set_system_time
receive_request_get_boot_reason
Receive get boot reason request

Call to get the boot reason

receive_request_get_boot_reason
send_reply_get_boot_reason
Reply to get boot reason

Reply to get boot reason.

send_reply_get_boot_reason
receive_request_configure_network
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.

receive_request_configure_network
send_reply_configure_network
Reply configure network

Direct (synchronous) response to a configure network request. May answer Processing and complete later via the configure_network_status var.

send_reply_configure_network
receive_allow_firmware_installation
Receive Allow firmware installation

Call to allow firmware installation to proceed

receive_allow_firmware_installation
receive_reset
Receive reset command

Call to reset the system immediately

receive_reset
send_firmware_update_status
Send firmware update status

Describes the current status of a firmware update of the system

send_firmware_update_status
send_log_status
Send log upload status

Describes the current status of log upload of the system

send_log_status
send_configure_network_status
Send configure network status

Asynchronous final outcome of a configure network request that was answered with Processing

send_configure_network_status
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

BootReason string
string

Enum defining the boot reason

enumApplicationResetFirmwareUpdateLocalResetPowerUpRemoteResetScheduledResetTriggeredUnknownWatchdog
FirmwareUpdateRequest object
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
object

Type defining the status of a firmware update

Additional properties allowed.

  • firmware_update_statusstring requiredFirmwareUpdateStatusEnum

    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

    Definition of FirmwareUpdateMetadata

FirmwareUpdateStatusEnum string
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
enumDownloadedDownloadFailedDownloadingDownloadScheduledDownloadPausedIdleInstallationFailedInstallingInstalledInstallRebootingInstallScheduledInstallVerificationFailedInvalidSignatureSignatureVerified
FirmwareUpdateMetadata object
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
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
enumAcceptedCanceledBadMessageIdleNotSupportedOperationPermissionDeniedUploadedUploadFailureUploading
LogStatus object
object

Type defining the status of a log upload

Additional properties allowed.

  • log_statusstring requiredLogStatusEnum

    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
boolean

true if reset is allowed

ResetRequest object
object

request for reset

Additional properties allowed.

  • typestring ResetType

    type of the reset (Soft or Hard)

    enumSoftHardNotSpecified
  • scheduledboolean
ResetType string
string

Enum defining the type of a reset

enumSoftHardNotSpecified
SystemTime string
string

system time in RFC3339 format

format date-time
SystemTimeSet boolean
boolean

true if reset successful

UpdateFirmwareResponse string
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
enumAcceptedRejectedAcceptedCanceledInvalidCertificateRevokedCertificate
UploadLogsRequest object
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
object

Response to a upload logs request

Additional properties allowed.

  • file_namestring

    This contains the name of the log file that will be uploaded.

  • upload_logs_statusstring requiredUploadLogsStatus

    The log status enum

    enumAcceptedRejectedAcceptedCanceled
UploadLogsStatus string
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
enumAcceptedRejectedAcceptedCanceled
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

InterfaceClassEnum string
string

Network interface class a connection is bound to. Maps 1:1 to OCPP 2.x OCPPInterfaceEnum but is protocol-neutral.

enumWired0Wired1Wired2Wired3Wireless0Wireless1Wireless2Wireless3Any
APNAuthenticationEnum string
string

APN authentication method

enumCHAPNONEPAPAUTO
APN object
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

  • apn_authenticationstring APNAuthenticationEnum

    Authentication method

    enumCHAPNONEPAPAUTO
VPNTypeEnum string
string

Type of VPN

enumIKEv2IPSecL2TPPPTPOther
VPN object
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

  • typestring requiredVPNTypeEnum

    Type of VPN

    enumIKEv2IPSecL2TPPPTPOther
ConfigureNetworkRequest object
object

Request to prepare a network interface for use

Additional properties forbidden.

  • request_idinteger required

    Caller-chosen correlation id, echoed in configure_network_status

  • interfacestring requiredInterfaceClassEnum

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

  • apnobject APN

    Access Point Name configuration for cellular interfaces

    Definition of APN

  • vpnobject VPN

    VPN configuration

    Definition of VPN

ConfigureNetworkStatusEnum string
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).
enumReadyProcessingFailedRejectedNotSupported
ConfigureNetworkFinalStatusEnum string
string

Final status of a configure network request that was answered with Processing:

  • Ready: interface prepared, usable now.
  • Failed: preparation failed.
enumReadyFailed
ConfigureNetworkResponse object
object

Direct (synchronous) response to configure_network

Additional properties forbidden.

  • statusstring requiredConfigureNetworkStatusEnum

    Status of the configure network request

    enumReadyProcessingFailedRejectedNotSupported
  • interface_addressstring

    Interface name or IP address to bind to (present when status is Ready).

ConfigureNetworkStatus object
object

Asynchronous final outcome of a request answered with Processing

Additional properties forbidden.

  • request_idinteger required

    Correlation id echoed from the ConfigureNetworkRequest

  • statusstring requiredConfigureNetworkFinalStatusEnum

    Final state, Ready or Failed

    enumReadyFailed
  • interface_addressstring

    Interface name or IP address to bind to (present when status is Ready)