/api/v1/chainStatus#
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
targetstring · nullable
air, device-loopback or pl-loopback. Defaults to the target the radio
is currently configured for.
Responses
200OKapplication/json
targetrequiredstring
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_connector requiredboolean
Whether this target puts a signal on the RF connector. False for both loopback targets.
stagerequiredstring
readyrequiredboolean
nextstring · nullable
The first unmet condition and the command to run. null when ready.
conditionsrequiredarray of ConditionDRO
Every condition, in the order the bring-up needs them.
ConditionDRO · 8 fields
keyrequiredstring
Stable key — dac-source, tx-egress, …
stagerequiredstring
The stage this must be satisfied to leave.
sourcerequiredstring
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.
requiredrequiredstring
observedrequiredstring
What it is, or could not be read.
verdictrequiredstring
met / unmet / unknown. An unknown condition blocks, like an unmet one.
breaksrequiredstring
What goes wrong when it is unmet, as the symptom the operator will see.
fixrequiredstring
The command that clears it.
Request
curl "http://192.168.2.1:8080/api/v1/chain"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/chain")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/chain"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");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"
}
]
}/api/v1/chain/conditionCondition#
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
targetstring · nullable
Where the samples should go: air (default), device-loopback or
pl-loopback. Only air puts a signal on the RF connector.
profilestring · 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.
Responses
200OKapplication/json
stepsrequiredarray of string
The steps actually run, in order.
detailrequiredarray of string
What each step reported, keyed in the same order as steps.
staterequiredChainStateDRO · 7 fields
targetrequiredstring
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_connector requiredboolean
Whether this target puts a signal on the RF connector. False for both loopback targets.
stagerequiredstring
readyrequiredboolean
nextstring · nullable
The first unmet condition and the command to run. null when ready.
conditionsrequiredarray of ConditionDRO
Every condition, in the order the bring-up needs them.
ConditionDRO · 8 fields
keyrequiredstring
Stable key — dac-source, tx-egress, …
stagerequiredstring
The stage this must be satisfied to leave.
sourcerequiredstring
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.
requiredrequiredstring
observedrequiredstring
What it is, or could not be read.
verdictrequiredstring
met / unmet / unknown. An unknown condition blocks, like an unmet one.
breaksrequiredstring
What goes wrong when it is unmet, as the symptom the operator will see.
fixrequiredstring
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
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/chain/condition",
json={
"target": "string",
"profile": "string",
"rate_sps": 0,
},
)
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/chain/condition"))
.json(&serde_json::json!({
"target": "string",
"profile": "string",
"rate_sps": 0
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");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"
}
]
}
}/api/v1/chain/recoverRecover#
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
503Receiver control is not available in this daemonapplication/json
Request
curl -X POST "http://192.168.2.1:8080/api/v1/chain/recover" \
-o response.binimport requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(f"{BASE_URL}/api/v1/chain/recover")
response.raise_for_status()
data = response.contentlet base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/chain/recover"))
.send()
.await?
.error_for_status()?;
let bytes = response.bytes().await?;Response
{}