/api/v1/radio/frequencySet frequency#
Set the centre frequency.
Sets the modem's centre frequency and, unless tune_lo is false, tunes the
AD9361 local oscillator for channel (rx, tx or both, the default). Marks
the active profile as dirty.
Request body application/jsonrequired
center_frequency_hz requiredinteger · int64
channelstring
Which side to tune: "rx", "tx" or "both" (default). The RX and TX
local oscillators are independent.
tune_lo boolean
true (default) tunes the AD9361's local oscillator as well. false changes
only the modem's digital centre frequency setting.
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/frequency" \
-H "Content-Type: application/json" \
-d '{
"center_frequency_hz": 0,
"channel": "string",
"tune_lo": true
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/radio/frequency",
json={
"center_frequency_hz": 0,
"channel": "string",
"tune_lo": True,
},
)
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/radio/frequency"))
.json(&serde_json::json!({
"center_frequency_hz": 0,
"channel": "string",
"tune_lo": true
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/gainSet gain#
Set the gains.
With domain: "rf" (the default), sets the AD9361 gains in dB: the RX gain,
which switches the receiver's automatic gain control to manual, and the TX
attenuation, where 0 dB is full power and values are negative. With domain: "digital", sets the modem's digital gain stages instead. An omitted gain is
left unchanged. Marks the active profile as dirty.
Request body application/jsonrequired
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/gain" \
-H "Content-Type: application/json" \
-d '{
"rx_gain_db": 0,
"tx_gain_db": 0,
"domain": {}
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/radio/gain",
json={
"rx_gain_db": 0,
"tx_gain_db": 0,
"domain": {},
},
)
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/radio/gain"))
.json(&serde_json::json!({
"rx_gain_db": 0,
"tx_gain_db": 0,
"domain": {}
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/loopbackEnable loopback#
Enable or disable the internal loopback.
When enabled, the modem's transmit output is routed straight to its own receiver
inside the device, without passing through the AD9361. To prepare a complete
loopback or over-the-air configuration, use POST /api/v1/chain/condition.
Request body application/jsonrequired
enabledrequiredboolean
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/loopback" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/radio/loopback",
json={
"enabled": True,
},
)
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/radio/loopback"))
.json(&serde_json::json!({
"enabled": true
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/resetReset#
Return the transmit or receive chain to idle.
scope is rx, tx or all. Disarms the receive chain and/or stops the
transmit chain. It does not reset the AD9361 or change the configuration.
Request body application/jsonrequired
scoperequiredstring
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
400invalid scopeapplication/json
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/reset" \
-H "Content-Type: application/json" \
-d '{
"scope": "string"
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/radio/reset",
json={
"scope": "string",
},
)
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/radio/reset"))
.json(&serde_json::json!({
"scope": "string"
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}{}/api/v1/radio/rf/calibrateRF calibrate#
Re-initialise the AD9361 and run its TX quadrature and LO leakage calibrations.
This resets the transceiver, so the digital interface tuning is lost and
must be redone. Run it first in any conditioning sequence (/chain/condition
does so).
Responses
200OKapplication/json
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/rf/calibrate"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(f"{BASE_URL}/api/v1/radio/rf/calibrate")
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/radio/rf/calibrate"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{}/api/v1/radio/rf/killRF kill#
Emergency stop: take RF off the connector immediately.
Puts the AD9361 transmitter in its alert state first (the only step that
reliably removes RF, including LO leakage), then stops the digital transmit
chain. Every step is read back and reported by name.
This is not a toggle: to resume, condition the chain again
(stellarlinkctl chain up or POST /chain/condition).
Responses
200OKapplication/json
ensm_mode requiredstring
The transceiver state reported after the stop. alert means RF is off.
stoppedrequiredarray of string
Steps that took effect, in the order they were applied.
failedrequiredarray of string
Steps that did not take effect. Reported even when RF is off.
rf_off requiredboolean
Whether RF is off at the connector, as read back after the stop.
recoverrequiredstring
How to resume operation.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/rf/kill"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(f"{BASE_URL}/api/v1/radio/rf/kill")
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/radio/rf/kill"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"ensm_mode": "string",
"stopped": [
"string"
],
"failed": [
"string"
],
"rf_off": true,
"recover": "string"
}/api/v1/radio/rf/mode/airRF mode air#
Route the modem on air: the signal reaches the mixers and the TX port.
Unlike mode/rf, the AD9361's internal digital loopback stays open, so the
LO, gain and TX attenuation settings take effect at the RF connector.
Refused when the digital interface is not ready, unless force=true.
Responses
200OKapplication/json
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/rf/mode/air"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(f"{BASE_URL}/api/v1/radio/rf/mode/air")
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/radio/rf/mode/air"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{}/api/v1/radio/rx{chan}/armRX arm#
Arm the receive chain.
Lets received samples into the modem. chan must be 1 or 2; the device has
a single receive chain, which both values control.
Path parameters
chanrequiredstring
RX channel (1/2)
Responses
202Acceptedapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/rx<chan>/arm"import requests
BASE_URL = "http://192.168.2.1:8080"
chan = "<chan>" # RX channel (1/2)
response = requests.post(f"{BASE_URL}/api/v1/radio/rx{chan}/arm")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let chan = "<chan>"; // RX channel (1/2)
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/radio/rx{chan}/arm"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/rx{chan}/disarmRX disarm#
Disarm the receive chain.
Stops received samples from entering the modem. chan must be 1 or 2.
Path parameters
chanrequiredstring
channel number
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/rx<chan>/disarm"import requests
BASE_URL = "http://192.168.2.1:8080"
chan = "<chan>" # channel number
response = requests.post(f"{BASE_URL}/api/v1/radio/rx{chan}/disarm")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let chan = "<chan>"; // channel number
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/radio/rx{chan}/disarm"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/statusStatus#
Get the radio status.
Returns the transmit and receive chain states, the frequencies and gains, the loopback setting, the timing and carrier lock indicators, and the AD9361 local oscillator frequencies, gains and filter bandwidths read back from the transceiver.
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl "http://192.168.2.1:8080/api/v1/radio/status"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/radio/status")
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/radio/status"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/tx{chan}/startTX start#
Start the transmit chain.
Lets the modem's transmit output reach the radio; until the chain is started,
transmitted data is discarded. chan must be 1 or 2; the device has a
single transmit chain, which both values control.
Path parameters
chanrequiredstring
channel number
Responses
202Acceptedapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/tx<chan>/start"import requests
BASE_URL = "http://192.168.2.1:8080"
chan = "<chan>" # channel number
response = requests.post(f"{BASE_URL}/api/v1/radio/tx{chan}/start")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let chan = "<chan>"; // channel number
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/radio/tx{chan}/start"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}/api/v1/radio/tx{chan}/stopTX stop#
Stop the transmit chain.
Transmitted data is discarded until the chain is started again. chan must be
1 or 2.
Path parameters
chanrequiredstring
channel number
Responses
200OKapplication/json
rx_state requiredstring
tx_state requiredstring
center_frequency_hz requiredinteger · int64
rx_gain_db requiredinteger · int32
tx_gain_db requiredinteger · int32
loopbackrequiredboolean
timing_lock requiredboolean
carrier_lock requiredboolean
rx_lo_hz integer · int64 · nullable
rx_nco_offset_hz requiredinteger · int64
The receive path's digital frequency offset from the RX LO, signed, in Hz.
tx_nco_offset_hz requiredinteger · int64
The transmit path's digital frequency offset from the TX LO, signed, in Hz.
profile_center_frequency_hz requiredinteger · int64
The centre frequency declared by the applied profile. It describes the configuration, not the radio: the two differ once the radio is tuned by hand.
tx_lo_hz integer · int64 · nullable
rx_rf_gain_db number · double · nullable
The AD9361's own gain, in dB at the connector. For TX this is an attenuation.
tx_rf_gain_db number · double · nullable
rx_bandwidth_hz integer · int64 · nullable
The AD9361's analog filter bandwidth, per direction, in Hz, as read back from
the transceiver. The transceiver quantises the requested width, so this may
differ from what was requested. Always present; null when it could not be
read.
tx_bandwidth_hz integer · int64 · nullable
sample_rate_sps integer · int64 · nullable
The AD9361's sample rate, in samples per second.
Request
curl -X POST "http://192.168.2.1:8080/api/v1/radio/tx<chan>/stop"import requests
BASE_URL = "http://192.168.2.1:8080"
chan = "<chan>" # channel number
response = requests.post(f"{BASE_URL}/api/v1/radio/tx{chan}/stop")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let chan = "<chan>"; // channel number
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/radio/tx{chan}/stop"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"rx_state": "string",
"tx_state": "string",
"center_frequency_hz": 0,
"rx_gain_db": 0,
"tx_gain_db": 0,
"loopback": true,
"timing_lock": true,
"carrier_lock": true,
"rx_lo_hz": 0,
"rx_nco_offset_hz": 0,
"tx_nco_offset_hz": 0,
"profile_center_frequency_hz": 0,
"tx_lo_hz": 0,
"rx_rf_gain_db": 0.0,
"tx_rf_gain_db": 0.0,
"rx_bandwidth_hz": 0,
"tx_bandwidth_hz": 0,
"sample_rate_sps": 0
}