All docsStellar LinkRF bench · by Stellar Systems v0.4.0

API Reference

Monitor

RSSI, power and spectrum monitoring

GET/api/v1/monitor/fft

FFT#

Get a spectrum.

Computes a spectrum from the received (channel=rx, the default) or transmitted (channel=tx) samples; the optional size and window query parameters set the transform length and window. Spectrum analysis is off by default for each channel and is switched on with PUT /api/v1/monitor/fft/{channel}. When no spectrum can be produced, bins_db is empty and unavailable says why; synthetic: true marks bins generated for display rather than measured.

Responses

200OKapplication/json
sizerequired

integer · int32

≥ 0

sourcerequired

integer · int32

Which signal tap the spectrum is computed from.

≥ 0

bins_dbrequired

array of number · double

Frequency-domain magnitude samples.

syntheticrequired

boolean

True when these bins are synthesised for display rather than measured. A client must not present synthetic bins as a measurement.

channelrequired

string

Which end of the link this spectrum describes ("rx" / "tx").

enabledrequired

boolean

Whether spectrum analysis is enabled for that channel. Off by default, because each spectrum costs a capture and a transform.

sample_rate_hzrequired

integer · int64

Sample rate the block was taken at, 0 when there is no block.

≥ 0

unavailable

Unavailable · nullable

Request

curl "http://192.168.2.1:8080/api/v1/monitor/fft"

Response

{
  "size": 0,
  "source": 0,
  "bins_db": [
    0.0
  ],
  "synthetic": true,
  "channel": "string",
  "enabled": true,
  "sample_rate_hz": 0,
  "unavailable": {}
}
GET/api/v1/monitor/power

Power#

Get the signal power.

Returns the average power, in dBFS, at the currently selected measurement point (tap).

Responses

200OKapplication/json
taprequired

integer · int32

≥ 0

power_dbfsrequired

number · double

Request

curl "http://192.168.2.1:8080/api/v1/monitor/power"

Response

{
  "tap": 0,
  "power_dbfs": 0.0
}
GET/api/v1/monitor/rssi

RSSI#

Get the received signal strength.

Returns the average and instantaneous received signal strength and the detection threshold, in dBm. Use these values for relative comparisons: the absolute level is not calibrated against the antenna connector.

Responses

200OKapplication/json
average_dbmrequired

number · double

instant_dbmrequired

number · double

threshold_dbmrequired

number · double

Request

curl "http://192.168.2.1:8080/api/v1/monitor/rssi"

Response

{
  "average_dbm": 0.0,
  "instant_dbm": 0.0,
  "threshold_dbm": 0.0
}

↑↓ to moveEnter to open