diff --git a/plugins/channelrx/udpsrc/udpsrc.cpp b/plugins/channelrx/udpsrc/udpsrc.cpp index 64b0689eb..25689e017 100644 --- a/plugins/channelrx/udpsrc/udpsrc.cpp +++ b/plugins/channelrx/udpsrc/udpsrc.cpp @@ -790,7 +790,8 @@ void UDPSrc::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respon void UDPSrc::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) { - response.getUdpSrcReport()->setChannelPowerDb(CalcDb::dbPower(getMagSq())); + response.getUdpSrcReport()->setChannelPowerDb(CalcDb::dbPower(getInMagSq())); + response.getUdpSrcReport()->setOutputPowerDb(CalcDb::dbPower(getMagSq())); response.getUdpSrcReport()->setSquelch(m_squelchOpen ? 1 : 0); response.getUdpSrcReport()->setInputSampleRate(m_inputSampleRate); } diff --git a/plugins/channeltx/udpsink/udpsink.cpp b/plugins/channeltx/udpsink/udpsink.cpp index 3390f0257..374d5cf2d 100644 --- a/plugins/channeltx/udpsink/udpsink.cpp +++ b/plugins/channeltx/udpsink/udpsink.cpp @@ -744,6 +744,9 @@ void UDPSink::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respo void UDPSink::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) { + response.getUdpSinkReport()->setInputPowerDb(CalcDb::dbPower(getInMagSq())); response.getUdpSinkReport()->setChannelPowerDb(CalcDb::dbPower(getMagSq())); + response.getUdpSinkReport()->setSquelch(m_squelchOpen ? 1 : 0); + response.getUdpSinkReport()->setBufferGauge(getBufferGauge()); response.getUdpSinkReport()->setChannelSampleRate(m_outputSampleRate); } diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 5ba6c571f..64864120e 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -3627,6 +3627,19 @@ margin-bottom: 20px; "format" : "float", "description" : "power transmitted in channel (dB)" }, + "inputPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "power received from UDP stream (dB)" + }, + "squelch" : { + "type" : "integer", + "description" : "squelch status (1 if open else 0)" + }, + "bufferGauge" : { + "type" : "integer", + "description" : "buffer R/W balance indicator" + }, "channelSampleRate" : { "type" : "integer" } @@ -3707,11 +3720,16 @@ margin-bottom: 20px; }; defs.UDPSrcReport = { "properties" : { - "channelPowerDB" : { + "outputPowerDB" : { "type" : "number", "format" : "float", "description" : "power transmitted in channel (dB)" }, + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "power received in channel (dB)" + }, "squelch" : { "type" : "integer", "description" : "squelch status (1 if open else 0)" @@ -4087,7 +4105,7 @@ margin-bottom: 20px;
This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube
This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube