All docsStellar LinkRF bench · by Stellar Systems v0.4.0

API Reference

Chain

Signal chain readiness and conditioning

GET/api/v1/chain

Status#

Report whether the signal chain is ready for a target.

Lists every condition the target requires, whether each is met, what goes wrong when it is not, and the command that clears it. next names the first unmet condition.

Query parameters

target

string · nullable

air, device-loopback or pl-loopback. Defaults to the target the radio is currently configured for.

Responses

200OKapplication/json
targetrequired

string

The target these conditions were computed for.

current_target

string · nullable

What the board is wired for right now; null when the two loopback switches could not be read.

reaches_the_connectorrequired

boolean

Whether this target puts a signal on the RF connector. False for both loopback targets.

stagerequired

string

readyrequired

boolean

next

string · nullable

The first unmet condition and the command to run. null when ready.

conditionsrequired

array of ConditionDRO

Every condition, in the order the bring-up needs them.

ConditionDRO · 8 fields
keyrequired

string

Stable key — dac-source, tx-egress, …

stagerequired

string

The stage this must be satisfied to leave.

sourcerequired

string

board when the value was read back from the hardware, session when it is known only to the running daemon and is forgotten on restart.

requiredrequired

string

observedrequired

string

What it is, or could not be read.

verdictrequired

string

met / unmet / unknown. An unknown condition blocks, like an unmet one.

breaksrequired

string

What goes wrong when it is unmet, as the symptom the operator will see.

fixrequired

string

The command that clears it.

Request

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

Response

{
  "target": "string",
  "current_target": "string",
  "reaches_the_connector": true,
  "stage": "string",
  "ready": true,
  "next": "string",
  "conditions": [
    {
      "key": "string",
      "stage": "string",
      "source": "string",
      "required": "string",
      "observed": "string",
      "verdict": "string",
      "breaks": "string",
      "fix": "string"
    }
  ]
}
POST/api/v1/chain/condition

Condition#

Bring the signal chain to a target by running the missing conditioning steps.

The steps (calibration, transceiver state, digital interface tuning, profile apply, signal routing, and enabling the transmit and data paths) are run in the only order that works, skipping those already satisfied. The reply lists the steps run and the chain state read back afterwards.

Request body application/jsonrequired

target

string · nullable

Where the samples should go: air (default), device-loopback or pl-loopback. Only air puts a signal on the RF connector.

profile

string · nullable

Which profile to apply. Defaults to the profile currently applied; when none is applied and none is named, the request is refused.

rate_sps

integer · int64

AD9361 rate for the tuning step, when one is needed.

≥ 0

Responses

200OKapplication/json
stepsrequired

array of string

The steps actually run, in order.

detailrequired

array of string

What each step reported, keyed in the same order as steps.

staterequired

ChainStateDRO

ChainStateDRO · 7 fields
targetrequired

string

The target these conditions were computed for.

current_target

string · nullable

What the board is wired for right now; null when the two loopback switches could not be read.

reaches_the_connectorrequired

boolean

Whether this target puts a signal on the RF connector. False for both loopback targets.

stagerequired

string

readyrequired

boolean

next

string · nullable

The first unmet condition and the command to run. null when ready.

conditionsrequired

array of ConditionDRO

Every condition, in the order the bring-up needs them.

ConditionDRO · 8 fields
keyrequired

string

Stable key — dac-source, tx-egress, …

stagerequired

string

The stage this must be satisfied to leave.

sourcerequired

string

board when the value was read back from the hardware, session when it is known only to the running daemon and is forgotten on restart.

requiredrequired

string

observedrequired

string

What it is, or could not be read.

verdictrequired

string

met / unmet / unknown. An unknown condition blocks, like an unmet one.

breaksrequired

string

What goes wrong when it is unmet, as the symptom the operator will see.

fixrequired

string

The command that clears it.

Request

curl -X POST "http://192.168.2.1:8080/api/v1/chain/condition" \
  -H "Content-Type: application/json" \
  -d '{
  "target": "string",
  "profile": "string",
  "rate_sps": 0
}'

Response

{
  "steps": [
    "string"
  ],
  "detail": [
    "string"
  ],
  "state": {
    "target": "string",
    "current_target": "string",
    "reaches_the_connector": true,
    "stage": "string",
    "ready": true,
    "next": "string",
    "conditions": [
      {
        "key": "string",
        "stage": "string",
        "source": "string",
        "required": "string",
        "observed": "string",
        "verdict": "string",
        "breaks": "string",
        "fix": "string"
      }
    ]
  }
}
POST/api/v1/chain/recover

Recover#

Reset the receiver's synchronisation loops without rebooting.

Use when the receiver reports lock but frames are not being delimited. The reply lists what was reset and the state read back. It does not by itself prove the link is healthy: confirm with a byte-exact loopback measurement.

Responses

200What was reset, and the state read back
503Receiver control is not available in this daemonapplication/json

ApiErrorDRO

Request

curl -X POST "http://192.168.2.1:8080/api/v1/chain/recover" \
  -o response.bin

Response

{}

↑↓ to moveEnter to open