All docsStellar LinkRF bench · by Stellar Systems v0.4.0

API Reference

System

Health, version, capabilities and clocks

GET/api/v1/health

Health#

Check that the daemon is alive.

Returns {"status": "ok"} whenever the daemon is serving requests. It does not check the radio: use /api/v1/chain for that.

Responses

200Process is aliveapplication/json
statusrequired

string

Request

curl "http://192.168.2.1:8080/api/v1/health"

Response

{
  "status": "string"
}
GET/api/v1/metrics

Metrics#

The daemon's Prometheus metrics, as JSON, on the API port.

The same metrics as the Prometheus exposition on the observability port, in a form a browser client can use directly. Returns 404 when this daemon has no metrics exporter, rather than an empty list.

Responses

200OKapplication/json

array of MetricFamilyDRO

404Not found

Request

curl "http://192.168.2.1:8080/api/v1/metrics"

Response

[
  {}
]
GET/api/v1/system/capabilities

Capabilities#

Get device capabilities.

Lists the supported modulations and symbol rates, the number of receive and transmit channels, and whether the daemon is running in simulation mode (mock).

Responses

200OKapplication/json
modulationsrequired

array of string

Supported modulations (strings matching the profile enum).

rx_channelsrequired

integer · int32

Number of RX channels exposed by the platform.

≥ 0

tx_channelsrequired

integer · int32

Number of TX channels exposed by the platform.

≥ 0

mockrequired

boolean

true when the daemon runs against simulated hardware.

symbol_ratesrequired

array of SymbolRateDRO

The symbol rates this modem supports, plus the ones it cannot produce (listed with available: false and the bound they hit).

The set is fixed by the hardware: each rate is the AD9361 sample rate divided by 4 samples per symbol and by an interpolation factor of 1 to 32. Clients should offer these values rather than a free-form rate.

SymbolRateDRO · 6 fields
baudrequired

number · double

The exact rate in baud. May be fractional (e.g. 39 062.5); it is not rounded.

labelrequired

string

As an operator writes it, e.g. "39.063 ksym/s".

availablerequired

boolean

False when this rate cannot be produced at all.

ad9361_rate_sps

integer · int64 · nullable

What the AD9361 must be clocked at to realise it. null when unavailable.

≥ 0

interp

integer · int32 · nullable

The interpolation factor that realises it. null when unavailable.

≥ 0

unavailable_reason

string · nullable

Which bound it hits. Present exactly when available is false.

Request

curl "http://192.168.2.1:8080/api/v1/system/capabilities"

Response

{
  "modulations": [
    "string"
  ],
  "rx_channels": 0,
  "tx_channels": 0,
  "mock": true,
  "symbol_rates": [
    {
      "baud": 0.0,
      "label": "string",
      "available": true,
      "ad9361_rate_sps": 0,
      "interp": 0,
      "unavailable_reason": "string"
    }
  ]
}
GET/api/v1/system/clocks

Clocks#

Get clock status.

Reports the device's main clocks. enable and prepare tell whether a clock is running; rate_hz is a nominal value reported even for a stopped clock. available is false when clock information cannot be read on this system.

Responses

200OKapplication/json
availablerequired

boolean

False when the clock tree cannot be read on this system, which is distinct from an empty clock list.

sourcerequired

string

clocksrequired

array of ClockDRO

ClockDRO · 4 fields
namerequired

string

enablerequired

integer · int32

Non-zero when the clock is enabled. Use this, not rate_hz, to tell whether the clock runs.

≥ 0

preparerequired

integer · int32

Authoritative: non-zero means it is prepared.

≥ 0

rate_hzrequired

integer · int64

Nominal rate in Hz, computed from the parent clock and dividers. Reported even when the clock is stopped: informational only.

≥ 0

Request

curl "http://192.168.2.1:8080/api/v1/system/clocks"

Response

{
  "available": true,
  "source": "string",
  "clocks": [
    {
      "name": "string",
      "enable": 0,
      "prepare": 0,
      "rate_hz": 0
    }
  ]
}
GET/api/v1/system/status

Status#

Get system status.

Returns the daemon uptime, the hardware access mode, and the health of the daemon's services.

Responses

200OKapplication/json
uptime_secondsrequired

integer · int64

≥ 0

pl_driverrequired

string

Hardware access mode: mock when the daemon runs without the radio hardware, otherwise the identifier of the hardware driver in use.

servicesrequired

array of ServiceStatusDRO

ServiceStatusDRO · 2 fields
namerequired

string

healthyrequired

boolean

storagerequired

StorageDRO

StorageDRO · 4 fields
run_reportsrequired

StorageLocationDRO

StorageLocationDRO · 3 fields
path

string · nullable

null when this is not kept at all.

persistentrequired

boolean

false when it is lost at the next reboot; note then says why.

note

string · nullable

run_reports_keptrequired

integer

How many runs keep their full report; older runs keep their summary only.

≥ 0

run_reports_max_bytes

integer · int64 · nullable

The space the full reports may take, in bytes, when bounded.

≥ 0

campaign_staterequired

StorageLocationDRO

StorageLocationDRO · 3 fields
path

string · nullable

null when this is not kept at all.

persistentrequired

boolean

false when it is lost at the next reboot; note then says why.

note

string · nullable

Request

curl "http://192.168.2.1:8080/api/v1/system/status"

Response

{
  "uptime_seconds": 0,
  "pl_driver": "string",
  "services": [
    {
      "name": "string",
      "healthy": true
    }
  ],
  "storage": {
    "run_reports": {
      "path": "string",
      "persistent": true,
      "note": "string"
    },
    "run_reports_kept": 0,
    "run_reports_max_bytes": 0,
    "campaign_state": {
      "path": "string",
      "persistent": true,
      "note": "string"
    }
  }
}
GET/api/v1/version

Version#

Get version information.

Returns the daemon version, the API version, the release identifier, and the identifier of the hardware design loaded on the device.

Responses

200OKapplication/json
firmwarerequired

string

Version of the stellarlinkd daemon.

apirequired

string

API contract version (v1).

fpga

string · nullable

Identifier of the hardware image currently loaded on the device, read live. null in simulation (mock) mode.

releaserequired

string

Release this daemon was built for, or "unreleased". It should equal the release you deployed.

auth_requiredrequired

boolean

Whether changes (POST, PUT, DELETE) and the transmit stream need an API token on this unit ([api] auth_required). Lets a client — the web console first — ask for a token instead of failing on a 401.

Request

curl "http://192.168.2.1:8080/api/v1/version"

Response

{
  "firmware": "string",
  "api": "string",
  "fpga": "string",
  "release": "string",
  "auth_required": true
}

↑↓ to moveEnter to open