Skip to main content
Documentation

OTA Updates

This reference defines the contract between Nexigon and the update integrations on devices: the dev.nexigon.ota.config and dev.nexigon.ota.status properties, the nexigon.ota.check command, and the requirements for an integration. For the concepts behind the contract, read Update Model. To deploy an update, follow Deploy System Updates.

The contract is stable. Compatibility describes how it evolves.

Interface

NameKindUsagePurpose
dev.nexigon.ota.configProtected propertyWritten by operatorsDesired state of the device
dev.nexigon.ota.statusPropertyWritten by the deviceActual state of the device
nexigon.ota.checkDevice commandRegistered by the device, run by operatorsRequests an immediate check

Configuration Property

dev.nexigon.ota.config overrides the update configuration built into the device image. The integration applies the property to the image defaults as a JSON merge patch: objects merge recursively, null removes a default, and any other value, including an array, replaces the default. When the property is removed, the image defaults apply again. For example, { "window": null } removes a maintenance window built into the image.

dev.nexigon.ota.config
{
  "path": "acme/gateway-os/stable",
  "window": {
    "ranges": [{ "start": "02:00", "end": "05:00" }]
  },
  "retry": {
    "maxAttempts": 3,
    "initialDelaySecs": 900,
    "maxDelaySecs": 3600,
    "cooldownSecs": 86400
  },
  "spread": { "durationSecs": 604800 }
}
FieldDescription
formatVersionFormat version of the property. Defaults to 1.
pathVersion path in the format <repository>/<package>/<version>. <repository> is a path name in the device’s organization or a repository ID. <version> is a tag, which the device tracks, or a version ID, which pins the version.
assetFilename of the file that the device installs from a version. Defaults to <system>.<extension>, where <system> is the name of the running system, such as gateway.rugixb for Rugix Ctrl.
holdHolds the device at its current version while true. Defaults to false.
windowMaintenance window restricting activation. Without a window, updates can be activated at any time.
retryRetry policy with maxAttempts, initialDelaySecs, maxDelaySecs, and cooldownSecs.
spreadSpread with durationSecs, startAt, and percentage, all optional. Without a spread, devices update without waiting.
rolloutRollout number. Integrations ignore its value. Changing it starts a new round of attempts on devices whose attempts failed.

Integrations that support retries reset the failure count when the effective configuration changes, which is why changing rollout requests new attempts.

Holding Updates

Setting hold to true keeps a device at its current version, for example to stop a faulty release from spreading further or to keep a device unchanged while you investigate a problem:

dev.nexigon.ota.config
{ "path": "acme/gateway-os/stable", "hold": true }

While held, the device starts no new update. It reports the state blocked with the code hold and without nextAttemptAt. An update in progress completes, including its reboot and commit, so a hold never leaves a device halfway between two versions. Removing the hold, or setting it to false, lets the device continue toward the target on its next check.

A hold does not stop the clock of a spread. Devices whose turn passed during the hold update once it is removed.

Integrations that do not list the hold capability ignore the setting. Check the capabilities of a device before relying on a hold.

Status Property

The integration publishes dev.nexigon.ota.status to report the effective configuration, the running version, and the progress of an update. It updates the property on every state change.

dev.nexigon.ota.status
{
  "formatVersion": 1,
  "capabilities": ["window", "retry", "checkpoints"],
  "config": {
    "path": "acme/gateway-os/stable",
    "window": { "ranges": [{ "start": "02:00", "end": "05:00" }] },
    "retry": {
      "maxAttempts": 3,
      "initialDelaySecs": 900,
      "maxDelaySecs": 3600,
      "cooldownSecs": 86400
    }
  },
  "configVersion": 7,
  "currentVersion": "2.1",
  "currentVersionId": "pkg_v_7Hq2mWbXc9RtLpZ3sNfE1k",
  "state": "failed",
  "targetVersion": "2.2",
  "targetVersionId": "pkg_v_3sLgP9eKd7XwHn2QaRt5Zm",
  "nextVersionId": "pkg_v_3sLgP9eKd7XwHn2QaRt5Zm",
  "failureCount": 1,
  "failureCode": "install-failed",
  "lastError": "rugix-ctrl update install failed",
  "nextAttemptAt": "2026-10-16T00:15:00Z",
  "updater": {
    "name": "rugix",
    "version": "1.3.0",
    "bootedSlot": "a",
    "primarySlot": "a",
    "awaitingCommit": false,
    "slots": [
      { "name": "a", "state": "booted" },
      { "name": "b", "state": "inactive" }
    ]
  }
}
FieldDescription
formatVersionFormat version of the property. Defaults to 1.
capabilitiesOptional features that the integration supports.
configEffective configuration, including the defaults that the integration applies.
configVersionVersion of dev.nexigon.ota.config that the integration last read, as returned with the property. Absent when the property does not exist.
currentVersionVersion string of the running system, as built into the image. By convention, a locked tag of the corresponding package version.
currentVersionIdPackage version of the running system, resolved by looking up currentVersion as a tag in the configured package. Absent when the tag does not resolve.
stateState of the update process.
blockedPresent when state is blocked. Contains a code and an optional human-readable message.
targetVersionVersion string of the target version, as built into its image. Integrations read it from the version’s metadata, such as imageVersion in the Rugix integration.
targetVersionIdPackage version that the configured path resolves to.
nextVersionIdPackage version that the device installs next. Differs from the target when the device must install a checkpoint first.
failureCountConsecutive failed attempts for the next version. Resets when the next version or the effective configuration in config changes, when the retry cooldown ends, or when an update succeeds.
failureCodeReason of the last failed attempt in kebab case. Present while lastError describes a failed attempt.
lastErrorError message of the last failure.
nextAttemptAtEarliest time of the next attempt while the device waits for a spread, its maintenance window, a retry delay, or a retry cooldown. Absent when the time is unknown.
updaterUpdate system that installs versions on the device, with its version and slots.

The schema marks every field as optional, so that clients can handle partial reports from older or simpler integrations. Clients treat absent fields as unknown. The requirements define which fields an integration must report.

States

The state field reports where the device is in the update lifecycle. Nexigon Hub does not enforce transitions between states.

StateMeaning
idleNo path is configured, or no update has been attempted yet.
installingThe device is downloading and installing a version.
rebootingThe device is rebooting into the new version.
committingThe device is committing the new version after a successful boot.
completedThe last update completed successfully, or the device already runs the target.
failedThe last attempt failed.
blockedThe update cannot proceed yet. blocked explains why.
rollbackThe device is rolling back to the previous version.

The resting states are idle, completed, failed, and blocked. An integration does not have to use every state. A simple integration might report only idle, installing, completed, and failed.

A rollback ends the attempt as failed with the failure code rolled-back. An integration that rolls back deliberately, for example because the new version fails a health check, reports rollback while it does so. It leaves failureCount unchanged and may describe the reason in lastError; the next check records the failure. A rollback that the device only detects after the reboot, for example because the boot loader fell back to the previous version, has no rollback state. Nexigon Agent detects rollbacks only after the reboot.

installing, rebooting, committing, and rollback belong to an attempt in progress. If the previous status reports one of them, the next check determines the outcome of the attempt from the running version. If it reports a state that the integration does not know, the integration keeps the failure count and the time of the next attempt, as for failed.

Failure Codes

A failed attempt reports a machine-readable failureCode in kebab case next to lastError. Nexigon defines the following codes. Integrations may define their own codes.

CodeMeaning
install-failedDownloading or installing the version failed.
interruptedThe installation was interrupted, for example because the device shut down.
reboot-failedRebooting into the installed version failed.
rolled-backAfter the reboot, the device runs another version than the installed one.

Blocked Codes

A blocked update reports a machine-readable code in kebab case and an optional human-readable message:

{
  "code": "awaiting-approval",
  "message": "Waiting for approval on the local display."
}

Nexigon defines the following codes. Integrations may define their own codes for conditions specific to the device, as in the example. Clients display the message, or the code if the message is absent.

CodeMeaning
holdThe configuration holds the device at its current version.
spreadA spread has not released the device yet. nextAttemptAt holds the release time, if known.
windowThe device waits for its maintenance window. nextAttemptAt holds its start.
no-update-pathThe target is unreachable without going back across a checkpoint.
unknown-current-versionThe target has a base version, but currentVersion does not resolve to a package version.
no-assetThe next version has no available file with the filename in asset.
unsupported-config-formatThe configuration has a format version that the integration does not support.

Capabilities

An integration lists the optional features that it supports in capabilities. It ignores configuration fields for features that it does not list. Clients offer settings only for listed features.

CapabilityMeaning
windowHonors window as described in Maintenance Windows.
retryHonors retry as described in Retries.
holdHonors hold as described in Holding Updates.
spreadHonors spread as described in Spreading Updates.
checkpointsPlans update paths through base versions as described in Checkpoint Releases.
assetHonors asset.

Compatibility

Within a format version, the property formats evolve compatibly. Later versions only add optional fields, states, capabilities, and codes. Readers ignore fields that they do not know and treat states, capabilities, and codes that they do not know as unknown. Integrations of earlier versions can thus read the status of later ones, for example after a device rolled back to an older system. An integration honors a configuration field that a later version adds only if it lists the corresponding capability.

Format Versions

Each property has a formatVersion, which is 1 when absent. A change that readers of earlier versions must not interpret increments it. Readers do not interpret a property with a format version that they do not support:

  • An integration does not apply such a configuration. It reports the state blocked with the code unsupported-config-format.
  • Nexigon Hub ignores such a status.

Writers use a later format version of the configuration only for integrations that list support for it through a capability, which the later version defines. This version of the contract defines format version 1.

Update System

The updater field describes the update system that installs versions on the device, such as Rugix Ctrl or RAUC:

FieldDescription
nameName of the update system, such as rugix or rauc.
versionVersion of the update system.
bootedSlotSlot that the running system booted from.
primarySlotSlot that the device boots next. Differs from bootedSlot while a version is on trial or after an installation.
awaitingCommitWhether the running system awaits its commit.
slotsSlots that hold bootable systems, each with its name and, if known, its state, its health, and the installed version.

Slot names, states, and health values are those of the update system. The Rugix integration reports boot groups as slots. The RAUC integration reports the slots that have a boot name, with the state and boot status that RAUC reports. The web interface shows this information under Status in Configure Updates.

Check Command

An integration registers the device command nexigon.ota.check to run a check on request. The web interface recognizes this exact name. It runs the command for Check Now and after deploying an update. Retry Update clears failureCount and nextAttemptAt in the status and then runs the command.

Implementing an Integration

An integration can use any updater and any language. A check typically performs these steps:

  1. Read dev.nexigon.ota.config. If it has a format version other than 1, report blocked with the code unsupported-config-format. Otherwise, merge it over the image defaults.
  2. Read the version string from the image and resolve it as a tag in the configured package to obtain currentVersionId.
  3. If the previously published status shows an attempt in progress (installing, rebooting, committing, or rollback), check whether the device runs the version it installed, nextVersionId. Commit the version if it does. Otherwise, record the attempt as failed.
  4. Resolve the configured path to the target version. If the device already runs it, report completed.
  5. Determine the next version. With checkpoint support, plan the path as described in Checkpoint Releases. Otherwise, the next version is the target.
  6. Check whether the device may attempt the update now. While held, report blocked with the code hold. Until a spread releases the device, report blocked with the code spread. During a retry delay or cooldown, keep the state failed. Otherwise, if the maintenance window is closed, report blocked with the code window. Set nextAttemptAt whenever the time of the next attempt is known.
  7. Install and activate the next version, reporting each state change.

An integration must:

  • Publish dev.nexigon.ota.status with at least currentVersion and state.
  • Use compare-and-swap for status writes: read the status version and supply it as expectedVersion when writing. On a conflict, read the new status before retrying so that a concurrent retry request is preserved.
  • Not apply a configuration with a format version other than 1.
  • List only the capabilities that it implements, and ignore the settings of other features.

An integration should also:

  • Report the effective configuration in config, including its own defaults for supported features, so that clients can show how the device behaves.
  • Report currentVersionId, targetVersionId, and nextVersionId, so that clients can link the versions to the repository.
  • Report the update system in updater, so that operators can see which slot the device boots and diagnose failed updates.
  • Emit events in the ota category at each step, so that the history of an update is visible in the device’s event log.
  • Delay scheduled checks by a random amount, so that devices whose checks are due at the same time, for example when a shared maintenance window opens, do not reach Nexigon Hub at once.

Nexigon Agent provides the commands an integration needs:

CommandPurpose
nexigon-agent device idOutput the device ID, for example to compute a spread turn.
nexigon-agent device properties get <name>Read the configuration and the previously published status.
nexigon-agent device properties set <name> <value>Publish the status.
nexigon-agent repositories versions resolve <path>Resolve a version path, such as the running version’s tag.
nexigon-agent repositories versions info <path-or-id>Read a version’s assets, metadata, tags, and base version.
nexigon-agent repositories issue-url <asset-path>Issue a download URL for an asset.
nexigon-agent events emitEmit an event.

The Rugix and RAUC integrations of Nexigon Agent implement the complete check cycle. Their source code can guide your own integration.

Repository Fields

Two fields of package versions support the OTA update contract:

  • Base versions. Checkpoints rely on the base version of each package version, baseVersionId in version details and lists. Managing Base Versions describes how to set it.
  • Tag assignment times. Each tag in the version details and version lists includes assignedAt, the time at which the tag was assigned to the version. Spreads start at this time unless the configuration sets startAt.

Sidex Schema

The properties Sidex schema defines the property formats:

schemaproperties

Types related to device properties.

record

OtaUpdateConfig

OTA update configuration (dev.nexigon.ota.config).

Desired state of a device. Integrations apply the property to defaults built into the image as a JSON merge patch (RFC 7396): objects merge recursively, null removes a default, and any other value, including an array, replaces the default.

[OtaUpdateStatus] describes how the contract evolves.

  • formatVersion(from format_version)optional

    Format version of the property.

    Defaults to 1, the format that this version of the contract defines.

    integer
  • pathoptional

    Version path in the format <repository>/<package>/<version>.

    <version> is a tag or a version ID. A tag tracks the version the tag points to. A version ID pins a single version.

    string
  • assetoptional

    Filename of the asset that the device installs from a version.

    Defaults to <system>.<extension>, where <system> is the name of the running system and the update system determines the extension, such as rugixb for Rugix Ctrl and raucb for RAUC.

    string
  • holdoptional

    Hold the device at its current version.

    While set, the device starts no new update. An update in progress completes, including its activation. Defaults to false.

    boolean
  • windowoptional

    Maintenance window restricting when updates are activated.

    Updates can be activated at any time when absent.

    OtaUpdateWindow
    • rangesrequired

      Time ranges in which updates can be activated.

      An empty list never allows activation.

      array<OtaUpdateWindowRange>
      OtaUpdateWindowRange
      • daysoptional

        Days on which the range starts.

        Defaults to every day.

        array<Weekday>
        Weekday
        • Monday→ "monday"

          Value: "monday"

        • Tuesday→ "tuesday"

          Value: "tuesday"

        • Wednesday→ "wednesday"

          Value: "wednesday"

        • Thursday→ "thursday"

          Value: "thursday"

        • Friday→ "friday"

          Value: "friday"

        • Saturday→ "saturday"

          Value: "saturday"

        • Sunday→ "sunday"

          Value: "sunday"

      • startrequired

        Start of the range (inclusive).

        TimeOfDay
        string
      • endrequired

        End of the range (exclusive).

        An end at or before the start lies on the following day. A range whose end equals its start therefore spans 24 hours.

        TimeOfDay
        string
  • retryoptional

    Retry policy for failed update attempts.

    OtaUpdateRetryPolicy
    • maxAttempts(from max_attempts)optional

      Maximum number of failed attempts for a version.

      Unlimited when absent.

      integer
    • initialDelaySecs(from initial_delay_secs)optional

      Delay before the first retry in seconds.

      integer
    • maxDelaySecs(from max_delay_secs)optional

      Maximum delay between attempts in seconds.

      integer
    • cooldownSecs(from cooldown_secs)optional

      Time in seconds after reaching max_attempts before the failure count resets and a new round of attempts begins.

      Without a cooldown, the device stops attempting the version until the effective configuration changes or the failure count is cleared.

      integer
  • spreadoptional

    Spreading of updates across devices.

    Devices update without waiting when absent.

    OtaUpdateSpread
    • durationSecs(from duration_secs)optional

      Time over which updates are spread, in seconds.

      integer
    • startAt(from start_at)optional

      Start of the spread over time.

      Defaults to the time at which the tag in the configured path was assigned to its current version. Without an explicit start, updates to versions configured by version ID are not spread over time.

      Timestamp
    • percentageoptional

      Share of devices that may update, in percent.

      Raising the percentage only adds devices. Without duration_secs, it releases the update to the given share right away. With duration_secs, it caps the share of the spread over time.

      number
  • rolloutoptional

    Rollout number.

    Integrations ignore its value. Changing it changes the effective configuration, which starts a new round of attempts on devices whose attempts failed.

    integer
record

OtaUpdateWindow

Maintenance window in the device's local time.

The window restricts activation, the step that interrupts the device's operation, such as the reboot into the new version. Integrations may download and install an update outside the window if doing so does not interrupt operation.

  • rangesrequired

    Time ranges in which updates can be activated.

    An empty list never allows activation.

    array<OtaUpdateWindowRange>
    OtaUpdateWindowRange
    • daysoptional

      Days on which the range starts.

      Defaults to every day.

      array<Weekday>
      Weekday
      • Monday→ "monday"

        Value: "monday"

      • Tuesday→ "tuesday"

        Value: "tuesday"

      • Wednesday→ "wednesday"

        Value: "wednesday"

      • Thursday→ "thursday"

        Value: "thursday"

      • Friday→ "friday"

        Value: "friday"

      • Saturday→ "saturday"

        Value: "saturday"

      • Sunday→ "sunday"

        Value: "sunday"

    • startrequired

      Start of the range (inclusive).

      TimeOfDay
      string
    • endrequired

      End of the range (exclusive).

      An end at or before the start lies on the following day. A range whose end equals its start therefore spans 24 hours.

      TimeOfDay
      string
record

OtaUpdateWindowRange

Recurring time range of a maintenance window.

  • daysoptional

    Days on which the range starts.

    Defaults to every day.

    array<Weekday>
    Weekday
    • Monday→ "monday"

      Value: "monday"

    • Tuesday→ "tuesday"

      Value: "tuesday"

    • Wednesday→ "wednesday"

      Value: "wednesday"

    • Thursday→ "thursday"

      Value: "thursday"

    • Friday→ "friday"

      Value: "friday"

    • Saturday→ "saturday"

      Value: "saturday"

    • Sunday→ "sunday"

      Value: "sunday"

  • startrequired

    Start of the range (inclusive).

    TimeOfDay
    string
  • endrequired

    End of the range (exclusive).

    An end at or before the start lies on the following day. A range whose end equals its start therefore spans 24 hours.

    TimeOfDay
    string
wrapper

TimeOfDay

Time of day in the format HH:MM (24-hour clock).

string
variant

Weekday

Day of the week.

  • Monday→ "monday"

    Value: "monday"

  • Tuesday→ "tuesday"

    Value: "tuesday"

  • Wednesday→ "wednesday"

    Value: "wednesday"

  • Thursday→ "thursday"

    Value: "thursday"

  • Friday→ "friday"

    Value: "friday"

  • Saturday→ "saturday"

    Value: "saturday"

  • Sunday→ "sunday"

    Value: "sunday"

record

OtaUpdateRetryPolicy

Retry policy for failed update attempts.

An attempt starts when the device begins downloading a version. Failures before that, such as an unreachable Nexigon Hub, do not count as attempts. The delay between attempts starts at initial_delay_secs and doubles after each failed attempt, up to max_delay_secs.

  • maxAttempts(from max_attempts)optional

    Maximum number of failed attempts for a version.

    Unlimited when absent.

    integer
  • initialDelaySecs(from initial_delay_secs)optional

    Delay before the first retry in seconds.

    integer
  • maxDelaySecs(from max_delay_secs)optional

    Maximum delay between attempts in seconds.

    integer
  • cooldownSecs(from cooldown_secs)optional

    Time in seconds after reaching max_attempts before the failure count resets and a new round of attempts begins.

    Without a cooldown, the device stops attempting the version until the effective configuration changes or the failure count is cleared.

    integer
record

OtaUpdateSpread

Spreading of updates across devices.

Each device derives its position u from the SHA-256 hash of <device-id>/<target-version-id>: the first 8 bytes, read as a big-endian unsigned integer n, give u = floor(n / 2^11) / 2^53, which a double-precision number represents exactly. A device may start updating to the target once both of the following hold:

  • With duration_secs, its turn has begun at start + floor(duration_secs * sqrt(u)). The share of eligible devices thus grows quadratically from 0 at the start to 1 after duration_secs.
  • With percentage, its position is below percentage / 100.
  • durationSecs(from duration_secs)optional

    Time over which updates are spread, in seconds.

    integer
  • startAt(from start_at)optional

    Start of the spread over time.

    Defaults to the time at which the tag in the configured path was assigned to its current version. Without an explicit start, updates to versions configured by version ID are not spread over time.

    Timestamp
  • percentageoptional

    Share of devices that may update, in percent.

    Raising the percentage only adds devices. Without duration_secs, it releases the update to the given share right away. With duration_secs, it caps the share of the spread over time.

    number
record

OtaUpdateStatus

OTA update status (dev.nexigon.ota.status).

Actual state of a device, published by its update integration.

The integration writes the status with the version it read last (compare-and-swap), so that it does not overwrite concurrent changes. Other writers may only clear failure_count and next_attempt_at, which requests a new attempt.

Within a format version, the contract evolves compatibly. Later versions only add optional fields, states, capabilities, and codes. Readers ignore fields that they do not know and treat unknown states, capabilities, and codes as unknown. An integration honors a configuration field that a later version adds only if it reports the corresponding capability.

A change that readers of earlier versions must not interpret increments the format version of the property. Readers do not interpret a property with a format version that they do not support. An integration does not apply such a configuration and reports the blocked code unsupported-config-format. Writers use a later format version of the configuration only for integrations that report support for it through a capability, which the later version defines.

  • formatVersion(from format_version)optional

    Format version of the property.

    Defaults to 1, the format that this version of the contract defines.

    integer
  • capabilitiesoptional

    Optional features of the OTA update contract that the integration supports.

    array<OtaUpdateCapability>
    OtaUpdateCapability
    • Hold→ "hold"

      The integration honors config.hold.

      Value: "hold"

    • Asset→ "asset"

      The integration honors config.asset.

      Value: "asset"

    • Window→ "window"

      The integration honors config.window.

      Value: "window"

    • Retry→ "retry"

      The integration honors config.retry.

      Value: "retry"

    • Spread→ "spread"

      The integration honors config.spread.

      Value: "spread"

    • Checkpoints→ "checkpoints"

      The integration installs checkpoints according to base versions.

      Value: "checkpoints"

    • Otherfallback

      Capability that a later version defines.

      Any value that selects no other case, as is.

      string
  • configoptional

    Effective configuration, including the defaults the integration applies.

    OtaUpdateConfig
    • formatVersion(from format_version)optional

      Format version of the property.

      Defaults to 1, the format that this version of the contract defines.

      integer
    • pathoptional

      Version path in the format <repository>/<package>/<version>.

      <version> is a tag or a version ID. A tag tracks the version the tag points to. A version ID pins a single version.

      string
    • assetoptional

      Filename of the asset that the device installs from a version.

      Defaults to <system>.<extension>, where <system> is the name of the running system and the update system determines the extension, such as rugixb for Rugix Ctrl and raucb for RAUC.

      string
    • holdoptional

      Hold the device at its current version.

      While set, the device starts no new update. An update in progress completes, including its activation. Defaults to false.

      boolean
    • windowoptional

      Maintenance window restricting when updates are activated.

      Updates can be activated at any time when absent.

      OtaUpdateWindow
      • rangesrequired

        Time ranges in which updates can be activated.

        An empty list never allows activation.

        array<OtaUpdateWindowRange>
        OtaUpdateWindowRange
        • daysoptional

          Days on which the range starts.

          Defaults to every day.

          array<Weekday>
          Weekday
          • Monday→ "monday"

            Value: "monday"

          • Tuesday→ "tuesday"

            Value: "tuesday"

          • Wednesday→ "wednesday"

            Value: "wednesday"

          • Thursday→ "thursday"

            Value: "thursday"

          • Friday→ "friday"

            Value: "friday"

          • Saturday→ "saturday"

            Value: "saturday"

          • Sunday→ "sunday"

            Value: "sunday"

        • startrequired

          Start of the range (inclusive).

          TimeOfDay
          string
        • endrequired

          End of the range (exclusive).

          An end at or before the start lies on the following day. A range whose end equals its start therefore spans 24 hours.

          TimeOfDay
          string
    • retryoptional

      Retry policy for failed update attempts.

      OtaUpdateRetryPolicy
      • maxAttempts(from max_attempts)optional

        Maximum number of failed attempts for a version.

        Unlimited when absent.

        integer
      • initialDelaySecs(from initial_delay_secs)optional

        Delay before the first retry in seconds.

        integer
      • maxDelaySecs(from max_delay_secs)optional

        Maximum delay between attempts in seconds.

        integer
      • cooldownSecs(from cooldown_secs)optional

        Time in seconds after reaching max_attempts before the failure count resets and a new round of attempts begins.

        Without a cooldown, the device stops attempting the version until the effective configuration changes or the failure count is cleared.

        integer
    • spreadoptional

      Spreading of updates across devices.

      Devices update without waiting when absent.

      OtaUpdateSpread
      • durationSecs(from duration_secs)optional

        Time over which updates are spread, in seconds.

        integer
      • startAt(from start_at)optional

        Start of the spread over time.

        Defaults to the time at which the tag in the configured path was assigned to its current version. Without an explicit start, updates to versions configured by version ID are not spread over time.

        Timestamp
      • percentageoptional

        Share of devices that may update, in percent.

        Raising the percentage only adds devices. Without duration_secs, it releases the update to the given share right away. With duration_secs, it caps the share of the spread over time.

        number
    • rolloutoptional

      Rollout number.

      Integrations ignore its value. Changing it changes the effective configuration, which starts a new round of attempts on devices whose attempts failed.

      integer
  • configVersion(from config_version)optional

    Version of the dev.nexigon.ota.config property that the integration last read.

    Absent when the property does not exist. The version changes with every write to the device's own value and whenever a profile revision that sets the property is applied to the device, even with an unchanged value.

    integer (i64)
  • currentVersion(from current_version)optional

    Version string of the running system, as built into the image.

    By convention, a locked tag of the corresponding package version.

    string
  • currentVersionId(from current_version_id)optional

    Package version of the running system.

    Resolved by looking up current_version as a tag in the configured package. Absent when the tag does not resolve.

    PackageVersionIdstring
  • stateoptional

    Current state of the update process.

    OtaUpdateState
    • Idle→ "idle"

      No path is configured, or no update has been attempted yet.

      Value: "idle"

    • Installing→ "installing"

      An update is being installed.

      Value: "installing"

    • Rebooting→ "rebooting"

      The device is rebooting into the new version.

      Value: "rebooting"

    • Committing→ "committing"

      Committing the new version after a successful reboot.

      Value: "committing"

    • Completed→ "completed"

      The last update completed successfully, or the device already runs the target.

      Value: "completed"

    • Failed→ "failed"

      The last update failed.

      Value: "failed"

    • Blocked→ "blocked"

      The update cannot proceed yet. See blocked for the reason.

      Value: "blocked"

    • Rollback→ "rollback"

      The device is rolling back to the previous version, for example because the new version failed a health check.

      Value: "rollback"

    • Otherfallback

      State that a later version defines.

      Any value that selects no other case, as is.

      string
  • blockedoptional

    Why the update is blocked. Present when state is blocked.

    OtaUpdateBlocked
    • coderequired

      Machine-readable reason.

      OtaUpdateBlockedCode
      • Hold→ "hold"

        The configuration holds the device at its current version.

        Value: "hold"

      • Spread→ "spread"

        The device waits for its turn in a spread or is outside the released percentage.

        Value: "spread"

      • Window→ "window"

        The device waits for its maintenance window.

        Value: "window"

      • NoUpdatePath→ "no-update-path"

        The target is unreachable without going back across a checkpoint.

        Value: "no-update-path"

      • UnknownCurrentVersion→ "unknown-current-version"

        The target has a base version, but current_version does not resolve to a package version.

        Value: "unknown-current-version"

      • NoAsset→ "no-asset"

        The next version has no available asset with the filename in config.asset.

        Value: "no-asset"

      • UnsupportedConfigFormat→ "unsupported-config-format"

        The configuration has a format version that the integration does not support.

        Value: "unsupported-config-format"

      • Otherfallback

        Code in kebab case that a later version or the integration defines, for conditions specific to the device, such as awaiting-approval.

        Any value that selects no other case, as is.

        string
    • messageoptional

      Human-readable explanation.

      string
  • targetVersion(from target_version)optional

    Version string of the target version, as built into its image.

    string
  • targetVersionId(from target_version_id)optional

    Package version that the configured path resolves to.

    PackageVersionIdstring
  • nextVersionId(from next_version_id)optional

    Package version that the device installs next.

    Differs from target_version_id when the device must install a checkpoint before the target.

    PackageVersionIdstring
  • failureCount(from failure_count)optional

    Number of consecutive failed attempts for the next version.

    Resets to zero when the next version or the effective configuration in config changes, when the retry cooldown ends, when an update succeeds, or when another writer clears it.

    integer
  • failureCode(from failure_code)optional

    Machine-readable reason of the last failed attempt.

    Present while last_error describes a failed attempt.

    OtaUpdateFailureCode
    • InstallFailed→ "install-failed"

      Downloading or installing the version failed.

      Value: "install-failed"

    • Interrupted→ "interrupted"

      The installation was interrupted, for example because the device shut down.

      Value: "interrupted"

    • RebootFailed→ "reboot-failed"

      Rebooting into the installed version failed.

      Value: "reboot-failed"

    • RolledBack→ "rolled-back"

      After the reboot, the device runs another version than the installed one.

      Value: "rolled-back"

    • Otherfallback

      Code in kebab case that a later version or the integration defines.

      Any value that selects no other case, as is.

      string
  • lastError(from last_error)optional

    Error message of the last failure, if any.

    string
  • nextAttemptAt(from next_attempt_at)optional

    Earliest time of the next attempt.

    Set while the device waits for a spread, a maintenance window, a retry delay, or a retry cooldown. Absent when the time of the next attempt is unknown or no further attempt is scheduled.

    Timestamp
  • updateroptional

    Update system that installs versions on the device.

    OtaUpdater
    • namerequired

      Name of the update system, such as rugix or rauc.

      string
    • versionoptional

      Version of the update system.

      string
    • bootedSlot(from booted_slot)optional

      Slot that the running system booted from.

      string
    • primarySlot(from primary_slot)optional

      Slot that the device boots from next.

      Differs from booted_slot when the device runs a version on trial or has installed a version that it has not booted yet.

      string
    • awaitingCommit(from awaiting_commit)optional

      Whether the running system awaits its commit.

      boolean
    • slotsoptional

      Slots that the update system installs versions into.

      array<OtaUpdaterSlot>
      OtaUpdaterSlot
      • namerequired

        Name of the slot.

        string
      • stateoptional

        State of the slot, such as booted or inactive.

        string
      • healthoptional

        Health of the slot, such as good or bad.

        string
      • versionoptional

        Version installed in the slot, if the update system records it.

        string
variant

OtaUpdateCapability

Optional feature of the OTA update contract.

  • Hold→ "hold"

    The integration honors config.hold.

    Value: "hold"

  • Asset→ "asset"

    The integration honors config.asset.

    Value: "asset"

  • Window→ "window"

    The integration honors config.window.

    Value: "window"

  • Retry→ "retry"

    The integration honors config.retry.

    Value: "retry"

  • Spread→ "spread"

    The integration honors config.spread.

    Value: "spread"

  • Checkpoints→ "checkpoints"

    The integration installs checkpoints according to base versions.

    Value: "checkpoints"

  • Otherfallback

    Capability that a later version defines.

    Any value that selects no other case, as is.

    string
variant

OtaUpdateState

OTA update state.

The resting states are idle, completed, failed, and blocked. The integration remains in one of these until the next check begins or the blocking condition clears.

A rollback ends the attempt as failed with the failure code rolled-back. An integration that rolls back deliberately, for example because the new version fails a health check, reports rollback while it does so. It leaves failure_count unchanged and may describe the reason in last_error; the next check records the failure. A rollback that the device only detects after the reboot, for example because the boot loader fell back to the previous version, has no rollback state.

installing, rebooting, committing, and rollback belong to an attempt in progress. If the previous status reports one of them, the next check determines the outcome of the attempt from the running version. If it reports a state that the integration does not know, the integration keeps the failure count and the time of the next attempt, like for failed.

  • Idle→ "idle"

    No path is configured, or no update has been attempted yet.

    Value: "idle"

  • Installing→ "installing"

    An update is being installed.

    Value: "installing"

  • Rebooting→ "rebooting"

    The device is rebooting into the new version.

    Value: "rebooting"

  • Committing→ "committing"

    Committing the new version after a successful reboot.

    Value: "committing"

  • Completed→ "completed"

    The last update completed successfully, or the device already runs the target.

    Value: "completed"

  • Failed→ "failed"

    The last update failed.

    Value: "failed"

  • Blocked→ "blocked"

    The update cannot proceed yet. See blocked for the reason.

    Value: "blocked"

  • Rollback→ "rollback"

    The device is rolling back to the previous version, for example because the new version failed a health check.

    Value: "rollback"

  • Otherfallback

    State that a later version defines.

    Any value that selects no other case, as is.

    string
variant

OtaUpdateFailureCode

Reason of a failed update attempt.

  • InstallFailed→ "install-failed"

    Downloading or installing the version failed.

    Value: "install-failed"

  • Interrupted→ "interrupted"

    The installation was interrupted, for example because the device shut down.

    Value: "interrupted"

  • RebootFailed→ "reboot-failed"

    Rebooting into the installed version failed.

    Value: "reboot-failed"

  • RolledBack→ "rolled-back"

    After the reboot, the device runs another version than the installed one.

    Value: "rolled-back"

  • Otherfallback

    Code in kebab case that a later version or the integration defines.

    Any value that selects no other case, as is.

    string
record

OtaUpdateBlocked

Information about a blocked update.

  • coderequired

    Machine-readable reason.

    OtaUpdateBlockedCode
    • Hold→ "hold"

      The configuration holds the device at its current version.

      Value: "hold"

    • Spread→ "spread"

      The device waits for its turn in a spread or is outside the released percentage.

      Value: "spread"

    • Window→ "window"

      The device waits for its maintenance window.

      Value: "window"

    • NoUpdatePath→ "no-update-path"

      The target is unreachable without going back across a checkpoint.

      Value: "no-update-path"

    • UnknownCurrentVersion→ "unknown-current-version"

      The target has a base version, but current_version does not resolve to a package version.

      Value: "unknown-current-version"

    • NoAsset→ "no-asset"

      The next version has no available asset with the filename in config.asset.

      Value: "no-asset"

    • UnsupportedConfigFormat→ "unsupported-config-format"

      The configuration has a format version that the integration does not support.

      Value: "unsupported-config-format"

    • Otherfallback

      Code in kebab case that a later version or the integration defines, for conditions specific to the device, such as awaiting-approval.

      Any value that selects no other case, as is.

      string
  • messageoptional

    Human-readable explanation.

    string
variant

OtaUpdateBlockedCode

Reason of a blocked update.

  • Hold→ "hold"

    The configuration holds the device at its current version.

    Value: "hold"

  • Spread→ "spread"

    The device waits for its turn in a spread or is outside the released percentage.

    Value: "spread"

  • Window→ "window"

    The device waits for its maintenance window.

    Value: "window"

  • NoUpdatePath→ "no-update-path"

    The target is unreachable without going back across a checkpoint.

    Value: "no-update-path"

  • UnknownCurrentVersion→ "unknown-current-version"

    The target has a base version, but current_version does not resolve to a package version.

    Value: "unknown-current-version"

  • NoAsset→ "no-asset"

    The next version has no available asset with the filename in config.asset.

    Value: "no-asset"

  • UnsupportedConfigFormat→ "unsupported-config-format"

    The configuration has a format version that the integration does not support.

    Value: "unsupported-config-format"

  • Otherfallback

    Code in kebab case that a later version or the integration defines, for conditions specific to the device, such as awaiting-approval.

    Any value that selects no other case, as is.

    string
record

OtaUpdater

Update system that installs versions on a device, such as Rugix Ctrl or RAUC.

Slot names, states, and health values are those of the update system.

  • namerequired

    Name of the update system, such as rugix or rauc.

    string
  • versionoptional

    Version of the update system.

    string
  • bootedSlot(from booted_slot)optional

    Slot that the running system booted from.

    string
  • primarySlot(from primary_slot)optional

    Slot that the device boots from next.

    Differs from booted_slot when the device runs a version on trial or has installed a version that it has not booted yet.

    string
  • awaitingCommit(from awaiting_commit)optional

    Whether the running system awaits its commit.

    boolean
  • slotsoptional

    Slots that the update system installs versions into.

    array<OtaUpdaterSlot>
    OtaUpdaterSlot
    • namerequired

      Name of the slot.

      string
    • stateoptional

      State of the slot, such as booted or inactive.

      string
    • healthoptional

      Health of the slot, such as good or bad.

      string
    • versionoptional

      Version installed in the slot, if the update system records it.

      string
record

OtaUpdaterSlot

Slot of an update system.

  • namerequired

    Name of the slot.

    string
  • stateoptional

    State of the slot, such as booted or inactive.

    string
  • healthoptional

    Health of the slot, such as good or bad.

    string
  • versionoptional

    Version installed in the slot, if the update system records it.

    string