diff --git a/CMakeLists.txt b/CMakeLists.txt index f305ae707..2621e1212 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,8 @@ option(RX_SAMPLE_24BIT "Internal 24 bit Rx DSP" ON) option(BUILD_SERVER "Build Server" ON) option(BUILD_GUI "Build GUI" ON) option(BUILD_BENCH "Build benchmark" ON) +option(BUILD_MCP_BRIDGE "Build the Claude Desktop stdio bridge for the MCP server feature" ON) +option(BUILD_MCP_BUNDLE "Package the MCP bridge as a Claude Desktop extension bundle" ON) option(HIDE_CONSOLE "Hide console when running GUI on Windows" ON) option(BUNDLE "Enable distribution bundle" OFF) set(ARCH_OPT "native" CACHE STRING "Specify instruction set to use. Will be passed directly as `-march` or `/arch:` argument on supported compilers. \ @@ -227,6 +229,7 @@ option(ENABLE_FEATURE_SID "Enable feature sid plugin" ON) option(ENABLE_FEATURE_MORSEDECODER "Enable feature morsedecoder plugin" ON) option(ENABLE_FEATURE_DENOISER "Enable feature denoiser plugin" ON) option(ENABLE_FEATURE_FREQDISPLAY "Enable feature freqdisplay plugin" ON) +option(ENABLE_FEATURE_MCPSERVER "Enable feature mcpserver plugin" ON) # on windows always build external libraries if(WIN32) @@ -1102,6 +1105,12 @@ if (BUILD_BENCH) add_subdirectory(sdrbench) endif() +# Standalone, and not built by default: only a release that ships a Claude Desktop +# extension bundle needs it +if (BUILD_MCP_BRIDGE OR BUILD_MCP_BUNDLE) + add_subdirectory(plugins/feature/mcpserver/bridge) +endif() + if (BUILD_GUI) add_subdirectory(sdrgui) add_subdirectory(plugins plugins) diff --git a/CMakePresets.json b/CMakePresets.json index 70fc2c96b..d46985f98 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -66,6 +66,7 @@ "ENABLE_XTRX": "ON", "ENABLE_USRP": "ON", "BUILD_SERVER": "OFF", + "BUILD_MCP_BUNDLE": "ON", "CMAKE_PREFIX_PATH": "C:/Qt/5.15.2/msvc2019_64;C:/Applications/boost_1_81_0" }, "warnings": { @@ -91,7 +92,7 @@ "binaryDir": "${sourceDir}/build-qt6", "cacheVariables": { "ENABLE_QT6": "ON", - "CMAKE_PREFIX_PATH": "C:/Qt/6.7.3/msvc2022_64;C:/Applications/boost_1_81_0" + "CMAKE_PREFIX_PATH": "C:/Qt/6.11.2/msvc2022_64;C:/Applications/boost_1_81_0" } } ], diff --git a/cmake/cpack/CMakeLists.txt b/cmake/cpack/CMakeLists.txt index e8ff38b3f..f6a1ea605 100644 --- a/cmake/cpack/CMakeLists.txt +++ b/cmake/cpack/CMakeLists.txt @@ -354,6 +354,25 @@ elseif(WIN32 OR MINGW) ExecWait '$INSTDIR\\\\${VCREDIST_FILE} /passive /norestart' Delete '$INSTDIR\\\\${VCREDIST_FILE}' ") + + # The Claude Desktop extension, in a file of its own: CPack writes + # CPACK_NSIS_EXTRA_INSTALL_COMMANDS into CPackConfig.cmake without escaping it, so the + # commands themselves cannot contain a quote + if(MCPBRIDGE_BUNDLE_NAME) + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/claude_extension.nsh.in" + "${CMAKE_BINARY_DIR}/claude_extension.nsh" + @ONLY + ) + # NSIS !include does not take forward slashes, and CPack writes this string into + # CPackConfig.cmake raw, so each separator has to survive being read back as CMake + file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/claude_extension.nsh" MCPBRIDGE_NSH) + string(REPLACE "\\" "\\\\" MCPBRIDGE_NSH "${MCPBRIDGE_NSH}") + list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS " + !include '${MCPBRIDGE_NSH}' + ") + endif() + set(CPACK_NSIS_CREATE_ICONS_EXTRA "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\SDRangel.lnk' '$INSTDIR\\\\sdrangel.exe'") set(CPACK_NSIS_DELETE_ICONS_EXTRA diff --git a/cmake/cpack/claude_extension.nsh.in b/cmake/cpack/claude_extension.nsh.in new file mode 100644 index 000000000..0d8fc980e --- /dev/null +++ b/cmake/cpack/claude_extension.nsh.in @@ -0,0 +1,41 @@ +; Offers the Claude Desktop extension, when Claude Desktop is installed. +; +; Claude registers no .mcpb file association, and the packaged (MSIX) build has no execution +; alias, so the only way to hand it a bundle is to run its executable with the bundle as an +; argument. Both the .exe and the MSIX build write the claude:// protocol handler to HKCU +; with a real path to that executable, which is where it is found here. +; +; Claude shows its own install dialog, with its own warning about what an extension can do, +; so this only asks whether to open it. +; +; Included from CPACK_NSIS_EXTRA_INSTALL_COMMANDS. Kept in a file of its own because CPack +; writes that variable into CPackConfig.cmake unescaped, so it cannot contain a quote. + +IfFileExists "$INSTDIR\@MCPBRIDGE_BUNDLE_NAME@" 0 mcpbDone + + ReadRegStr $R0 HKCU "Software\Classes\claude\shell\open\command" "" + StrCmp $R0 "" mcpbDone + + ; The value is "" "%1". Take what the first pair of quotes holds + StrCpy $R5 $R0 1 ; the opening quote, to compare against and to quote with later + StrCpy $R1 $R0 "" 1 + StrCpy $R2 0 + + mcpbScan: + StrCpy $R3 $R1 1 $R2 + StrCmp $R3 $R5 mcpbFound + StrCmp $R3 "" mcpbDone ; no closing quote: not a shape we understand, leave it alone + IntOp $R2 $R2 + 1 + Goto mcpbScan + + mcpbFound: + StrCpy $R4 $R1 $R2 + + ; The path carries the version of the Claude that wrote it, so an update that has not been + ; launched since can leave it pointing at a directory that is gone + IfFileExists "$R4" 0 mcpbDone + + MessageBox MB_YESNO|MB_ICONQUESTION "Install the SDRangel extension for Claude Desktop?$\r$\n$\r$\nThis lets Claude control SDRangel. Claude will ask you to confirm." IDNO mcpbDone + Exec '"$R4" "$INSTDIR\@MCPBRIDGE_BUNDLE_NAME@"' + +mcpbDone: diff --git a/doc/img/MCPServer_plugin.png b/doc/img/MCPServer_plugin.png new file mode 100644 index 000000000..91e2bd800 Binary files /dev/null and b/doc/img/MCPServer_plugin.png differ diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 6506ace2e..3f0abbc72 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -153,6 +153,19 @@ else () endmacro() endif (LINUX) +set(COPY_HEADERS_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/copy_headers.cmake") + +# macro that mirrors the headers of a directory into another one, for the libraries whose sources +# include them by a subdirectory name that is not in the library's own tree. Unlike makeCopyDir this +# is safe when the destination is inside the source, and it runs on every build rather than only +# when the destination is missing at configure time: an external project that re-clones wipes the +# copy, and a configure time check would leave it gone until the next configure +macro(makeCopyHeaders src dest target) + add_custom_command(TARGET ${target} POST_BUILD + COMMAND ${CMAKE_COMMAND} -DSRC=${src} -DDEST=${dest} -P ${COPY_HEADERS_SCRIPT} + COMMENT "copy headers ${src} -> ${dest}") +endmacro() + if (WIN32) if (VS2015) if (CMAKE_SIZEOF_VOID_P EQUAL 8) @@ -731,7 +744,7 @@ if (NOT LIBSERIALDV_FOUND OR LIBSERIALDV_EXTERNAL) set(LIBSERIALDV_EXTERNAL ON CACHE INTERNAL "") set(LIBSERIALDV_INCLUDE_DIR "${source_dir}" CACHE INTERNAL "") if (WIN32) - makeCopyDir("${source_dir}" "${source_dir}/dsp" serialdv) + makeCopyHeaders("${source_dir}" "${source_dir}/dsp" serialdv) install(FILES "${SDRANGEL_BINARY_BIN_DIR}/serialdv${CMAKE_SHARED_LIBRARY_SUFFIX}" DESTINATION "${INSTALL_LIB_DIR}") elseif (LINUX) # because sdrbase/dsp/dvserialworker.h use dsp/dvcontroller.h @@ -1478,7 +1491,7 @@ if (WIN32 OR APPLE) set(LIBAIRSPY_EXTERNAL ON CACHE INTERNAL "") set(LIBAIRSPY_INCLUDE_DIR "${source_dir}/libairspy/src" CACHE INTERNAL "") if (WIN32) - makeCopyDir("${source_dir}/libairspy/src" "${source_dir}/libairspy/src/libairspy" airspy) + makeCopyHeaders("${source_dir}/libairspy/src" "${source_dir}/libairspy/src/libairspy" airspy) makeCopy("${binary_dir}/../airspy-tools/src/airspy${CMAKE_SHARED_LIBRARY_SUFFIX}" "${SDRANGEL_BINARY_BIN_DIR}/airspy${CMAKE_SHARED_LIBRARY_SUFFIX}" airspy) install(FILES "${SDRANGEL_BINARY_BIN_DIR}/airspy${CMAKE_SHARED_LIBRARY_SUFFIX}" DESTINATION "${INSTALL_LIB_DIR}") elseif (APPLE) @@ -1520,7 +1533,7 @@ if (WIN32 OR APPLE) set(LIBAIRSPYHF_EXTERNAL ON CACHE INTERNAL "") set(LIBAIRSPYHF_INCLUDE_DIR "${source_dir}/libairspyhf/src" CACHE INTERNAL "") if (WIN32) - makeCopyDir("${source_dir}/libairspyhf/src" "${source_dir}/libairspyhf/src/libairspyhf" airspyhf) + makeCopyHeaders("${source_dir}/libairspyhf/src" "${source_dir}/libairspyhf/src/libairspyhf" airspyhf) install(FILES "${SDRANGEL_BINARY_BIN_DIR}/airspyhf${CMAKE_SHARED_LIBRARY_SUFFIX}" DESTINATION "${INSTALL_LIB_DIR}") elseif (APPLE) set(LIBAIRSPYHF_LIBRARIES "${binary_dir}/libairspyhf/src/libairspyhf${CMAKE_SHARED_LIBRARY_SUFFIX}" CACHE INTERNAL "") @@ -1566,7 +1579,7 @@ if (WIN32 OR APPLE) set(LIBHACKRF_INCLUDE_DIR "${source_dir}/host/libhackrf" CACHE INTERNAL "") if (WIN32) # include "libhackrf/hackrf.h" - makeCopyDir("${source_dir}/host/libhackrf/src" "${source_dir}/host/libhackrf/libhackrf" hackrf) + makeCopyHeaders("${source_dir}/host/libhackrf/src" "${source_dir}/host/libhackrf/libhackrf" hackrf) install(FILES "${SDRANGEL_BINARY_BIN_DIR}/hackrf${CMAKE_SHARED_LIBRARY_SUFFIX}" DESTINATION "${INSTALL_LIB_DIR}") elseif (APPLE) set(LIBHACKRF_LIBRARIES "${binary_dir}/src/libhackrf${CMAKE_SHARED_LIBRARY_SUFFIX}" CACHE INTERNAL "") diff --git a/external/copy_headers.cmake b/external/copy_headers.cmake new file mode 100644 index 000000000..9594ce17e --- /dev/null +++ b/external/copy_headers.cmake @@ -0,0 +1,16 @@ +# Mirrors the headers of one directory into another, so that sources including a library by a +# subdirectory name it does not have in its own tree - , - +# resolve. Only the files directly in SRC are copied and no subdirectory is descended into, so a +# destination inside SRC does not end up copying itself. +# +# Run as: cmake -DSRC= -DDEST= -P copy_headers.cmake + +file(GLOB headers "${SRC}/*.h" "${SRC}/*.hpp") + +file(MAKE_DIRECTORY "${DEST}") + +if (headers) + # file(COPY) skips a file that is already there with the same timestamp, so repeating this on + # every build costs no rebuilds + file(COPY ${headers} DESTINATION "${DEST}") +endif () diff --git a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp index c510b7cc1..791198a99 100644 --- a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp +++ b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp @@ -329,7 +329,7 @@ void BeamSteeringCWMod::webapiUpdateChannelSettings( SWGSDRangel::SWGChannelSettings& response) { if (channelSettingsKeys.contains("steerDegrees")) { - settings.m_rgbColor = response.getBeamSteeringCwModSettings()->getSteerDegrees(); + settings.m_steerDegrees = response.getBeamSteeringCwModSettings()->getSteerDegrees(); } if (channelSettingsKeys.contains("rgbColor")) { @@ -485,7 +485,11 @@ void BeamSteeringCWMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(2); // MIMO sink swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("BeamSteeringCWSource")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "BeamSteeringCWSource"; + } else { + swgChannelSettings->setChannelType(new QString("BeamSteeringCWSource")); + } swgChannelSettings->setBeamSteeringCwModSettings(new SWGSDRangel::SWGBeamSteeringCWModSettings()); SWGSDRangel::SWGBeamSteeringCWModSettings *swgBeamSteeringCWSettings = swgChannelSettings->getBeamSteeringCwModSettings(); @@ -498,7 +502,11 @@ void BeamSteeringCWMod::webapiFormatChannelSettings( swgBeamSteeringCWSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgBeamSteeringCWSettings->setTitle(new QString(settings.m_title)); + if (swgBeamSteeringCWSettings->getTitle()) { + *swgBeamSteeringCWSettings->getTitle() = settings.m_title; + } else { + swgBeamSteeringCWSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgBeamSteeringCWSettings->setLog2Interp(settings.m_log2Interp); diff --git a/plugins/channelmimo/doa2/doa2.cpp b/plugins/channelmimo/doa2/doa2.cpp index debc61704..024c8d513 100644 --- a/plugins/channelmimo/doa2/doa2.cpp +++ b/plugins/channelmimo/doa2/doa2.cpp @@ -201,7 +201,11 @@ void DOA2::applySettings(const QStringList& settingsKeys, const DOA2Settings& se sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void DOA2::handleInputMessages() @@ -602,7 +606,11 @@ void DOA2::webapiFormatChannelSettings( swgChannelSettings->setDirection(2); // MIMO sink swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("DOA2")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "DOA2"; + } else { + swgChannelSettings->setChannelType(new QString("DOA2")); + } swgChannelSettings->setDoa2Settings(new SWGSDRangel::SWGDOA2Settings()); SWGSDRangel::SWGDOA2Settings *swgDOA2Settings = swgChannelSettings->getDoa2Settings(); @@ -612,7 +620,11 @@ void DOA2::webapiFormatChannelSettings( swgDOA2Settings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDOA2Settings->setTitle(new QString(settings.m_title)); + if (swgDOA2Settings->getTitle()) { + *swgDOA2Settings->getTitle() = settings.m_title; + } else { + swgDOA2Settings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgDOA2Settings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelmimo/doa2/doa2webapiadapter.cpp b/plugins/channelmimo/doa2/doa2webapiadapter.cpp index 19e8b12a9..a8640baf2 100644 --- a/plugins/channelmimo/doa2/doa2webapiadapter.cpp +++ b/plugins/channelmimo/doa2/doa2webapiadapter.cpp @@ -46,7 +46,11 @@ void DOA2WebAPIAdapter::webapiFormatChannelSettings( { response.getDoa2Settings()->setCorrelationType((int) settings.m_correlationType); response.getDoa2Settings()->setRgbColor(settings.m_rgbColor); - response.getDoa2Settings()->setTitle(new QString(settings.m_title)); + if (response.getDoa2Settings()->getTitle()) { + *response.getDoa2Settings()->getTitle() = settings.m_title; + } else { + response.getDoa2Settings()->setTitle(new QString(settings.m_title)); + } // scope SWGSDRangel::SWGGLScope *swgScope = new SWGSDRangel::SWGGLScope(); @@ -72,7 +76,11 @@ void DOA2WebAPIAdapter::webapiFormatChannelSettings( swgScope->getTracesData()->back()->setStreamIndex(traceIt->m_streamIndex); swgScope->getTracesData()->back()->setOfs(traceIt->m_ofs); swgScope->getTracesData()->back()->setProjectionType((int) traceIt->m_projectionType); - swgScope->getTracesData()->back()->setTextOverlay(new QString(traceIt->m_textOverlay)); + if (swgScope->getTracesData()->back()->getTextOverlay()) { + *swgScope->getTracesData()->back()->getTextOverlay() = traceIt->m_textOverlay; + } else { + swgScope->getTracesData()->back()->setTextOverlay(new QString(traceIt->m_textOverlay)); + } swgScope->getTracesData()->back()->setTraceColor(qColorToInt(traceIt->m_traceColor)); swgScope->getTracesData()->back()->setTraceColorB(traceIt->m_traceColorB); swgScope->getTracesData()->back()->setTraceColorG(traceIt->m_traceColorG); diff --git a/plugins/channelmimo/interferometer/interferometer.cpp b/plugins/channelmimo/interferometer/interferometer.cpp index 93299598e..070ea1d15 100644 --- a/plugins/channelmimo/interferometer/interferometer.cpp +++ b/plugins/channelmimo/interferometer/interferometer.cpp @@ -742,7 +742,11 @@ void Interferometer::webapiFormatChannelSettings( swgChannelSettings->setDirection(2); // MIMO sink swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("Interferometer")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "Interferometer"; + } else { + swgChannelSettings->setChannelType(new QString("Interferometer")); + } swgChannelSettings->setInterferometerSettings(new SWGSDRangel::SWGInterferometerSettings()); SWGSDRangel::SWGInterferometerSettings *swgInterferometerSettings = swgChannelSettings->getInterferometerSettings(); @@ -752,7 +756,11 @@ void Interferometer::webapiFormatChannelSettings( swgInterferometerSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgInterferometerSettings->setTitle(new QString(settings.m_title)); + if (swgInterferometerSettings->getTitle()) { + *swgInterferometerSettings->getTitle() = settings.m_title; + } else { + swgInterferometerSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgInterferometerSettings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelmimo/interferometer/interferometerwebapiadapter.cpp b/plugins/channelmimo/interferometer/interferometerwebapiadapter.cpp index 70a5e6d66..55cbb7350 100644 --- a/plugins/channelmimo/interferometer/interferometerwebapiadapter.cpp +++ b/plugins/channelmimo/interferometer/interferometerwebapiadapter.cpp @@ -48,7 +48,11 @@ void InterferometerWebAPIAdapter::webapiFormatChannelSettings( { response.getInterferometerSettings()->setCorrelationType((int) settings.m_correlationType); response.getInterferometerSettings()->setRgbColor(settings.m_rgbColor); - response.getInterferometerSettings()->setTitle(new QString(settings.m_title)); + if (response.getInterferometerSettings()->getTitle()) { + *response.getInterferometerSettings()->getTitle() = settings.m_title; + } else { + response.getInterferometerSettings()->setTitle(new QString(settings.m_title)); + } // scope SWGSDRangel::SWGGLScope *swgScope = new SWGSDRangel::SWGGLScope(); @@ -74,7 +78,11 @@ void InterferometerWebAPIAdapter::webapiFormatChannelSettings( swgScope->getTracesData()->back()->setStreamIndex(traceIt->m_streamIndex); swgScope->getTracesData()->back()->setOfs(traceIt->m_ofs); swgScope->getTracesData()->back()->setProjectionType((int) traceIt->m_projectionType); - swgScope->getTracesData()->back()->setTextOverlay(new QString(traceIt->m_textOverlay)); + if (swgScope->getTracesData()->back()->getTextOverlay()) { + *swgScope->getTracesData()->back()->getTextOverlay() = traceIt->m_textOverlay; + } else { + swgScope->getTracesData()->back()->setTextOverlay(new QString(traceIt->m_textOverlay)); + } swgScope->getTracesData()->back()->setTraceColor(qColorToInt(traceIt->m_traceColor)); swgScope->getTracesData()->back()->setTraceColorB(traceIt->m_traceColorB); swgScope->getTracesData()->back()->setTraceColorG(traceIt->m_traceColorG); diff --git a/plugins/channelrx/chanalyzer/chanalyzer.cpp b/plugins/channelrx/chanalyzer/chanalyzer.cpp index 93c64bbc7..ba4d7da43 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzer.cpp @@ -279,13 +279,29 @@ int ChannelAnalyzer::webapiSettingsPutPatch( ChannelAnalyzerSettings settings = m_settings; webapiUpdateChannelSettings(settings, channelSettingsKeys, response); - MsgConfigureChannelAnalyzer *msg = MsgConfigureChannelAnalyzer::create(settings, channelSettingsKeys, force); + // Map API names to setting names + QStringList settingsKeys = channelSettingsKeys; + static const QList> renamed = { + {"frequency", "inputFrequencyOffset"}, + {"spanLog2", "log2Decim"}, + {"downSample", "rationalDownSample"}, + {"downSamplerRate", "rationalDownSamplerRate"} + }; + + for (const auto& pair : renamed) + { + if (settingsKeys.contains(pair.first) && !settingsKeys.contains(pair.second)) { + settingsKeys.append(pair.second); + } + } + + MsgConfigureChannelAnalyzer *msg = MsgConfigureChannelAnalyzer::create(settings, settingsKeys, force); m_inputMessageQueue.push(msg); qDebug("ChannelAnalyzer::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureChannelAnalyzer *msgToGUI = MsgConfigureChannelAnalyzer::create(settings, channelSettingsKeys, force); + MsgConfigureChannelAnalyzer *msgToGUI = MsgConfigureChannelAnalyzer::create(settings, settingsKeys, force); m_guiMessageQueue->push(msgToGUI); } @@ -299,13 +315,13 @@ void ChannelAnalyzer::webapiUpdateChannelSettings( const QStringList& channelSettingsKeys, SWGSDRangel::SWGChannelSettings& response) { - if (channelSettingsKeys.contains("inputFrequencyOffset")) { + if (channelSettingsKeys.contains("inputFrequencyOffset") || channelSettingsKeys.contains("frequency")) { settings.m_inputFrequencyOffset = response.getChannelAnalyzerSettings()->getFrequency(); } - if (channelSettingsKeys.contains("rationalDownSample ")) { + if (channelSettingsKeys.contains("rationalDownSample") || channelSettingsKeys.contains("downSample")) { settings.m_rationalDownSample = response.getChannelAnalyzerSettings()->getDownSample() != 0; } - if (channelSettingsKeys.contains("rationalDownSamplerRate")) { + if (channelSettingsKeys.contains("rationalDownSamplerRate") || channelSettingsKeys.contains("downSamplerRate")) { settings.m_rationalDownSamplerRate = response.getChannelAnalyzerSettings()->getDownSampleRate(); } if (channelSettingsKeys.contains("bandwidth")) { @@ -552,7 +568,11 @@ void ChannelAnalyzer::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setChannelAnalyzerSettings(new SWGSDRangel::SWGChannelAnalyzerSettings()); SWGSDRangel::SWGChannelAnalyzerSettings *swgChannelAnalyzerSettings = swgChannelSettings->getChannelAnalyzerSettings(); @@ -613,7 +633,11 @@ void ChannelAnalyzer::webapiFormatChannelSettings( swgChannelAnalyzerSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgChannelAnalyzerSettings->setTitle(new QString(settings.m_title)); + if (swgChannelAnalyzerSettings->getTitle()) { + *swgChannelAnalyzerSettings->getTitle() = settings.m_title; + } else { + swgChannelAnalyzerSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex")) { swgChannelAnalyzerSettings->setStreamIndex(settings.m_streamIndex); @@ -622,7 +646,11 @@ void ChannelAnalyzer::webapiFormatChannelSettings( swgChannelAnalyzerSettings->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); } if (channelSettingsKeys.contains("reverseAPIAddress")) { - swgChannelAnalyzerSettings->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + if (swgChannelAnalyzerSettings->getReverseApiAddress()) { + *swgChannelAnalyzerSettings->getReverseApiAddress() = settings.m_reverseAPIAddress; + } else { + swgChannelAnalyzerSettings->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + } } if (channelSettingsKeys.contains("reverseAPIPort")) { swgChannelAnalyzerSettings->setReverseApiPort(settings.m_reverseAPIPort); diff --git a/plugins/channelrx/chanalyzer/chanalyzerbaseband.cpp b/plugins/channelrx/chanalyzer/chanalyzerbaseband.cpp index 8169228b6..56ee66ffe 100644 --- a/plugins/channelrx/chanalyzer/chanalyzerbaseband.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzerbaseband.cpp @@ -161,7 +161,11 @@ void ChannelAnalyzerBaseband::applySettings(const ChannelAnalyzerSettings& setti } m_sink.applySettings(settings, settingsKeys, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int ChannelAnalyzerBaseband::getChannelSampleRate() const diff --git a/plugins/channelrx/channelpower/channelpower.cpp b/plugins/channelrx/channelpower/channelpower.cpp index be84d6fda..5d4f724d8 100644 --- a/plugins/channelrx/channelpower/channelpower.cpp +++ b/plugins/channelrx/channelpower/channelpower.cpp @@ -479,7 +479,11 @@ void ChannelPower::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("ChannelPower")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "ChannelPower"; + } else { + swgChannelSettings->setChannelType(new QString("ChannelPower")); + } swgChannelSettings->setChannelPowerSettings(new SWGSDRangel::SWGChannelPowerSettings()); SWGSDRangel::SWGChannelPowerSettings *swgChannelPowerSettings = swgChannelSettings->getChannelPowerSettings(); @@ -507,7 +511,11 @@ void ChannelPower::webapiFormatChannelSettings( swgChannelPowerSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgChannelPowerSettings->setTitle(new QString(settings.m_title)); + if (swgChannelPowerSettings->getTitle()) { + *swgChannelPowerSettings->getTitle() = settings.m_title; + } else { + swgChannelPowerSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgChannelPowerSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodadsb/adsbdemod.cpp b/plugins/channelrx/demodadsb/adsbdemod.cpp index e6ae5b4e4..d03bfcd0c 100644 --- a/plugins/channelrx/demodadsb/adsbdemod.cpp +++ b/plugins/channelrx/demodadsb/adsbdemod.cpp @@ -467,23 +467,63 @@ void ADSBDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& res response.getAdsbDemodSettings()->setRemoveTimeout(settings.m_removeTimeout); response.getAdsbDemodSettings()->setFeedEnabled(settings.m_feedEnabled ? 1 : 0); response.getAdsbDemodSettings()->setExportClientEnabled(settings.m_exportClientEnabled ? 1 : 0); - response.getAdsbDemodSettings()->setExportClientHost(new QString(settings.m_exportClientHost)); + if (response.getAdsbDemodSettings()->getExportClientHost()) { + *response.getAdsbDemodSettings()->getExportClientHost() = settings.m_exportClientHost; + } else { + response.getAdsbDemodSettings()->setExportClientHost(new QString(settings.m_exportClientHost)); + } response.getAdsbDemodSettings()->setExportClientPort(settings.m_exportClientPort); response.getAdsbDemodSettings()->setExportClientFormat((int) settings.m_exportClientFormat); response.getAdsbDemodSettings()->setExportServerEnabled(settings.m_exportServerEnabled ? 1 : 0); response.getAdsbDemodSettings()->setExportServerPort(settings.m_exportServerPort); response.getAdsbDemodSettings()->setImportEnabled(settings.m_importEnabled ? 1 : 0); - response.getAdsbDemodSettings()->setImportHost(new QString(settings.m_importHost)); - response.getAdsbDemodSettings()->setImportUsername(new QString(settings.m_importClientId)); - response.getAdsbDemodSettings()->setImportPassword(new QString(settings.m_importClientSecret)); - response.getAdsbDemodSettings()->setImportParameters(new QString(settings.m_importParameters)); + if (response.getAdsbDemodSettings()->getImportHost()) { + *response.getAdsbDemodSettings()->getImportHost() = settings.m_importHost; + } else { + response.getAdsbDemodSettings()->setImportHost(new QString(settings.m_importHost)); + } + if (response.getAdsbDemodSettings()->getImportUsername()) { + *response.getAdsbDemodSettings()->getImportUsername() = settings.m_importClientId; + } else { + response.getAdsbDemodSettings()->setImportUsername(new QString(settings.m_importClientId)); + } + if (response.getAdsbDemodSettings()->getImportPassword()) { + *response.getAdsbDemodSettings()->getImportPassword() = settings.m_importClientSecret; + } else { + response.getAdsbDemodSettings()->setImportPassword(new QString(settings.m_importClientSecret)); + } + if (response.getAdsbDemodSettings()->getImportParameters()) { + *response.getAdsbDemodSettings()->getImportParameters() = settings.m_importParameters; + } else { + response.getAdsbDemodSettings()->setImportParameters(new QString(settings.m_importParameters)); + } response.getAdsbDemodSettings()->setImportPeriod(settings.m_importPeriod); - response.getAdsbDemodSettings()->setImportMinLatitude(new QString(settings.m_importMinLatitude)); - response.getAdsbDemodSettings()->setImportMaxLatitude(new QString(settings.m_importMaxLatitude)); - response.getAdsbDemodSettings()->setImportMinLongitude(new QString(settings.m_importMinLongitude)); - response.getAdsbDemodSettings()->setImportMaxLongitude(new QString(settings.m_importMaxLongitude)); + if (response.getAdsbDemodSettings()->getImportMinLatitude()) { + *response.getAdsbDemodSettings()->getImportMinLatitude() = settings.m_importMinLatitude; + } else { + response.getAdsbDemodSettings()->setImportMinLatitude(new QString(settings.m_importMinLatitude)); + } + if (response.getAdsbDemodSettings()->getImportMaxLatitude()) { + *response.getAdsbDemodSettings()->getImportMaxLatitude() = settings.m_importMaxLatitude; + } else { + response.getAdsbDemodSettings()->setImportMaxLatitude(new QString(settings.m_importMaxLatitude)); + } + if (response.getAdsbDemodSettings()->getImportMinLongitude()) { + *response.getAdsbDemodSettings()->getImportMinLongitude() = settings.m_importMinLongitude; + } else { + response.getAdsbDemodSettings()->setImportMinLongitude(new QString(settings.m_importMinLongitude)); + } + if (response.getAdsbDemodSettings()->getImportMaxLongitude()) { + *response.getAdsbDemodSettings()->getImportMaxLongitude() = settings.m_importMaxLongitude; + } else { + response.getAdsbDemodSettings()->setImportMaxLongitude(new QString(settings.m_importMaxLongitude)); + } response.getAdsbDemodSettings()->setRgbColor(settings.m_rgbColor); - response.getAdsbDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getAdsbDemodSettings()->getLogFilename()) { + *response.getAdsbDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getAdsbDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getAdsbDemodSettings()->setLogEnabled(settings.m_logEnabled); if (response.getAdsbDemodSettings()->getTitle()) { @@ -545,7 +585,11 @@ void ADSBDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons if (m_targetAzElValid) { - response.getAdsbDemodReport()->setTargetName(new QString(m_targetName)); + if (response.getAdsbDemodReport()->getTargetName()) { + *response.getAdsbDemodReport()->getTargetName() = m_targetName; + } else { + response.getAdsbDemodReport()->setTargetName(new QString(m_targetName)); + } response.getAdsbDemodReport()->setTargetAzimuth(m_targetAzimuth); response.getAdsbDemodReport()->setTargetElevation(m_targetElevation); response.getAdsbDemodReport()->setTargetRange(m_targetRange); @@ -555,12 +599,31 @@ void ADSBDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons for (const auto& report : m_aircraftReport) { SWGSDRangel::SWGADSBDemodAircraftState *aircraftState = new SWGSDRangel::SWGADSBDemodAircraftState(); - aircraftState->setIcao(new QString(report.m_icao)); - aircraftState->setCallsign(new QString(report.m_callsign)); - aircraftState->setLatitude(report.m_latitude); - aircraftState->setLongitude(report.m_longitude); - aircraftState->setAltitude(report.m_altitude); - aircraftState->setGroundSpeed(report.m_groundSpeed); + if (aircraftState->getIcao()) { + *aircraftState->getIcao() = report.m_icao; + } else { + aircraftState->setIcao(new QString(report.m_icao)); + } + if (aircraftState->getCallsign()) { + *aircraftState->getCallsign() = report.m_callsign; + } else { + aircraftState->setCallsign(new QString(report.m_callsign)); + } + // Only fields that have been received are set, so that unknown ones are left out of the + // JSON rather than reported as zero, which is a real position, altitude and speed + if (report.m_positionValid) + { + aircraftState->setLatitude(report.m_latitude); + aircraftState->setLongitude(report.m_longitude); + } + + if (report.m_altitudeValid) { + aircraftState->setAltitude(report.m_altitude); + } + + if (report.m_groundSpeedValid) { + aircraftState->setGroundSpeed(report.m_groundSpeed); + } list->append(aircraftState); } } diff --git a/plugins/channelrx/demodadsb/adsbdemod.h b/plugins/channelrx/demodadsb/adsbdemod.h index bee77c58a..7820c341d 100644 --- a/plugins/channelrx/demodadsb/adsbdemod.h +++ b/plugins/channelrx/demodadsb/adsbdemod.h @@ -75,6 +75,11 @@ public: float m_longitude; int m_altitude; int m_groundSpeed; + // Which of the above have been received. Zero is a valid position, altitude and + // speed, so a reader cannot otherwise tell a value apart from one not yet known + bool m_positionValid; + bool m_altitudeValid; + bool m_groundSpeedValid; }; QList& getReport() { return m_report; } diff --git a/plugins/channelrx/demodadsb/adsbdemodgui.cpp b/plugins/channelrx/demodadsb/adsbdemodgui.cpp index fb71bbb66..d5b7f645f 100644 --- a/plugins/channelrx/demodadsb/adsbdemodgui.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodgui.cpp @@ -50,6 +50,7 @@ #include "util/units.h" #include "util/morse.h" #include "util/profiler.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/crightclickenabler.h" #include "gui/clickablelabel.h" @@ -7771,7 +7772,10 @@ void ADSBDemodGUI::sendAircraftReport() aircraft->m_latitude, aircraft->m_longitude, aircraft->m_altitude, - aircraft->m_groundspeed + aircraft->m_groundspeed, + aircraft->m_positionValid, + aircraft->m_altitudeValid, + aircraft->m_groundspeedValid }; report.append(aircraftReport); @@ -8086,7 +8090,7 @@ void ADSBDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "ADS-B", error); + MessageDialog::critical(this, "ADS-B", error); } ui->adsbData->blockSignals(false); m_loadingData = false; @@ -8098,7 +8102,7 @@ void ADSBDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "ADS-B", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "ADS-B", QString("Failed to open file %1").arg(fileNames[0])); } } } @@ -8124,7 +8128,7 @@ void ADSBDemodGUI::downloadProgress(qint64 bytesRead, qint64 totalBytes) void ADSBDemodGUI::downloadError(const QString& error) { - QMessageBox::critical(this, "ADS-B", error); + MessageDialog::critical(this, "ADS-B", error); if (m_progressDialog) { m_progressDialog->close(); diff --git a/plugins/channelrx/demodais/aisdemod.cpp b/plugins/channelrx/demodais/aisdemod.cpp index 61ee2de4e..3c745e8e1 100644 --- a/plugins/channelrx/demodais/aisdemod.cpp +++ b/plugins/channelrx/demodais/aisdemod.cpp @@ -29,9 +29,11 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" #include "dsp/dspcommands.h" +#include "util/db.h" #include "device/deviceapi.h" #include "util/ais.h" #include "maincore.h" @@ -322,7 +324,11 @@ void AISDemod::applySettings(const AISDemodSettings& settings, const QStringList } } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray AISDemod::serialize() const @@ -386,6 +392,27 @@ int AISDemod::webapiWorkspaceGet( return 200; } +int AISDemod::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setAisDemodReport(new SWGSDRangel::SWGAISDemodReport()); + response.getAisDemodReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void AISDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + double magsqAvg, magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + + response.getAisDemodReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + response.getAisDemodReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); +} + int AISDemod::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, @@ -495,10 +522,18 @@ void AISDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getAisDemodSettings()->setFmDeviation(settings.m_fmDeviation); response.getAisDemodSettings()->setCorrelationThreshold(settings.m_correlationThreshold); response.getAisDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getAisDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getAisDemodSettings()->getUdpAddress()) { + *response.getAisDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getAisDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getAisDemodSettings()->setUdpPort(settings.m_udpPort); response.getAisDemodSettings()->setUdpFormat((int)settings.m_udpFormat); - response.getAisDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getAisDemodSettings()->getLogFilename()) { + *response.getAisDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getAisDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getAisDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getAisDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -600,7 +635,11 @@ void AISDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("AISDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "AISDemod"; + } else { + swgChannelSettings->setChannelType(new QString("AISDemod")); + } swgChannelSettings->setAisDemodSettings(new SWGSDRangel::SWGAISDemodSettings()); SWGSDRangel::SWGAISDemodSettings *swgAISDemodSettings = swgChannelSettings->getAisDemodSettings(); @@ -625,7 +664,11 @@ void AISDemod::webapiFormatChannelSettings( swgAISDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgAISDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgAISDemodSettings->getUdpAddress()) { + *swgAISDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgAISDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgAISDemodSettings->setUdpPort(settings.m_udpPort); @@ -634,7 +677,11 @@ void AISDemod::webapiFormatChannelSettings( swgAISDemodSettings->setUdpFormat((int)settings.m_udpFormat); } if (channelSettingsKeys.contains("logFilename") || force) { - swgAISDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgAISDemodSettings->getLogFilename()) { + *swgAISDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgAISDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgAISDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -646,7 +693,11 @@ void AISDemod::webapiFormatChannelSettings( swgAISDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgAISDemodSettings->setTitle(new QString(settings.m_title)); + if (swgAISDemodSettings->getTitle()) { + *swgAISDemodSettings->getTitle() = settings.m_title; + } else { + swgAISDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgAISDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodais/aisdemod.h b/plugins/channelrx/demodais/aisdemod.h index 85174b033..d92829531 100644 --- a/plugins/channelrx/demodais/aisdemod.h +++ b/plugins/channelrx/demodais/aisdemod.h @@ -151,6 +151,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage); + static void webapiFormatChannelSettings( SWGSDRangel::SWGChannelSettings& response, const AISDemodSettings& settings); @@ -189,6 +193,7 @@ private: virtual bool handleMessage(const Message& cmd); void applySettings(const AISDemodSettings& settings, const QStringList& settingsKeys, bool force = false); void sendSampleRateToDemodAnalyzer(); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QList& channelSettingsKeys, const AISDemodSettings& settings, bool force); void webapiFormatChannelSettings( const QList& channelSettingsKeys, diff --git a/plugins/channelrx/demodais/aisdemodbaseband.cpp b/plugins/channelrx/demodais/aisdemodbaseband.cpp index 6f57c20fa..18ed53922 100644 --- a/plugins/channelrx/demodais/aisdemodbaseband.cpp +++ b/plugins/channelrx/demodais/aisdemodbaseband.cpp @@ -173,6 +173,11 @@ void AISDemodBaseband::applySettings(const AISDemodSettings& settings, const QSt } } +int AISDemodBaseband::getChannelSampleRate() const +{ + return m_channelizer->getChannelSampleRate(); +} + void AISDemodBaseband::setBasebandSampleRate(int sampleRate) { m_channelizer->setBasebandSampleRate(sampleRate); diff --git a/plugins/channelrx/demodais/aisdemodbaseband.h b/plugins/channelrx/demodais/aisdemodbaseband.h index 34a84b8e4..a6e32ac98 100644 --- a/plugins/channelrx/demodais/aisdemodbaseband.h +++ b/plugins/channelrx/demodais/aisdemodbaseband.h @@ -75,6 +75,7 @@ public: void getMagSqLevels(double& avg, double& peak, int& nbSamples) { m_sink.getMagSqLevels(avg, peak, nbSamples); } + int getChannelSampleRate() const; void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); } void setBasebandSampleRate(int sampleRate); ScopeVis *getScopeSink() { return &m_scopeSink; } diff --git a/plugins/channelrx/demodais/aisdemodgui.cpp b/plugins/channelrx/demodais/aisdemodgui.cpp index 3e1336e80..211554725 100644 --- a/plugins/channelrx/demodais/aisdemodgui.cpp +++ b/plugins/channelrx/demodais/aisdemodgui.cpp @@ -41,6 +41,7 @@ #include "util/csv.h" #include "util/db.h" #include "util/mmsi.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -1076,7 +1077,7 @@ void AISDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "AIS Demod", error); + MessageDialog::critical(this, "AIS Demod", error); } m_loadingData = false; ui->messages->setSortingEnabled(true); @@ -1086,7 +1087,7 @@ void AISDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "AIS Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "AIS Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodam/amdemod.cpp b/plugins/channelrx/demodam/amdemod.cpp index fb868b396..f66b6a004 100644 --- a/plugins/channelrx/demodam/amdemod.cpp +++ b/plugins/channelrx/demodam/amdemod.cpp @@ -589,7 +589,11 @@ void AMDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("AMDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "AMDemod"; + } else { + swgChannelSettings->setChannelType(new QString("AMDemod")); + } swgChannelSettings->setAmDemodSettings(new SWGSDRangel::SWGAMDemodSettings()); SWGSDRangel::SWGAMDemodSettings *swgAMDemodSettings = swgChannelSettings->getAmDemodSettings(); @@ -614,7 +618,11 @@ void AMDemod::webapiFormatChannelSettings( swgAMDemodSettings->setSquelch(settings.m_squelch); } if (channelSettingsKeys.contains("title") || force) { - swgAMDemodSettings->setTitle(new QString(settings.m_title)); + if (swgAMDemodSettings->getTitle()) { + *swgAMDemodSettings->getTitle() = settings.m_title; + } else { + swgAMDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("volume") || force) { swgAMDemodSettings->setVolume(settings.m_volume); @@ -623,7 +631,11 @@ void AMDemod::webapiFormatChannelSettings( swgAMDemodSettings->setBandpassEnable(settings.m_bandpassEnable ? 1 : 0); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgAMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgAMDemodSettings->getAudioDeviceName()) { + *swgAMDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgAMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("pll") || force) { swgAMDemodSettings->setPll(settings.m_pll); diff --git a/plugins/channelrx/demodapt/aptdemod.cpp b/plugins/channelrx/demodapt/aptdemod.cpp index 0cb4b24cb..4628bb56e 100644 --- a/plugins/channelrx/demodapt/aptdemod.cpp +++ b/plugins/channelrx/demodapt/aptdemod.cpp @@ -283,7 +283,11 @@ void APTDemod::applySettings(const QStringList& settingsKeys, const APTDemodSett webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray APTDemod::serialize() const @@ -482,7 +486,11 @@ void APTDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getAptDemodSettings()->setChannels((int)settings.m_channels); response.getAptDemodSettings()->setDecodeEnabled(settings.m_decodeEnabled); response.getAptDemodSettings()->setAutoSave(settings.m_autoSave); - response.getAptDemodSettings()->setAutoSavePath(new QString(settings.m_autoSavePath)); + if (response.getAptDemodSettings()->getAutoSavePath()) { + *response.getAptDemodSettings()->getAutoSavePath() = settings.m_autoSavePath; + } else { + response.getAptDemodSettings()->setAutoSavePath(new QString(settings.m_autoSavePath)); + } response.getAptDemodSettings()->setAutoSaveMinScanLines(settings.m_autoSaveMinScanLines); response.getAptDemodSettings()->setSaveCombined(settings.m_saveCombined); response.getAptDemodSettings()->setSaveSeparate(settings.m_saveSeparate); @@ -490,7 +498,11 @@ void APTDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getAptDemodSettings()->setScanlinesPerImageUpdate(settings.m_scanlinesPerImageUpdate); response.getAptDemodSettings()->setTransparencyThreshold(settings.m_transparencyThreshold); response.getAptDemodSettings()->setOpacityThreshold(settings.m_opacityThreshold); - response.getAptDemodSettings()->setPalettes(new QString(settings.m_palettes.join(";"))); + if (response.getAptDemodSettings()->getPalettes()) { + *response.getAptDemodSettings()->getPalettes() = settings.m_palettes.join(";"); + } else { + response.getAptDemodSettings()->setPalettes(new QString(settings.m_palettes.join(";"))); + } response.getAptDemodSettings()->setPalette(settings.m_palette); response.getAptDemodSettings()->setHorizontalPixelsPerDegree(settings.m_horizontalPixelsPerDegree); response.getAptDemodSettings()->setVerticalPixelsPerDegree(settings.m_verticalPixelsPerDegree); @@ -582,7 +594,11 @@ void APTDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("APTDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "APTDemod"; + } else { + swgChannelSettings->setChannelType(new QString("APTDemod")); + } swgChannelSettings->setAptDemodSettings(new SWGSDRangel::SWGAPTDemodSettings()); SWGSDRangel::SWGAPTDemodSettings *swgAPTDemodSettings = swgChannelSettings->getAptDemodSettings(); @@ -625,7 +641,11 @@ void APTDemod::webapiFormatChannelSettings( swgAPTDemodSettings->setAutoSave(settings.m_autoSave); } if (channelSettingsKeys.contains("autoSavePath") || force) { - swgAPTDemodSettings->setAutoSavePath(new QString(settings.m_autoSavePath)); + if (swgAPTDemodSettings->getAutoSavePath()) { + *swgAPTDemodSettings->getAutoSavePath() = settings.m_autoSavePath; + } else { + swgAPTDemodSettings->setAutoSavePath(new QString(settings.m_autoSavePath)); + } } if (channelSettingsKeys.contains("autoSaveMinScanLines") || force) { swgAPTDemodSettings->setAutoSaveMinScanLines(settings.m_autoSaveMinScanLines); @@ -649,7 +669,11 @@ void APTDemod::webapiFormatChannelSettings( swgAPTDemodSettings->setOpacityThreshold(settings.m_opacityThreshold); } if (channelSettingsKeys.contains("palettes") || force) { - swgAPTDemodSettings->setPalettes(new QString(settings.m_palettes.join(";"))); + if (swgAPTDemodSettings->getPalettes()) { + *swgAPTDemodSettings->getPalettes() = settings.m_palettes.join(";"); + } else { + swgAPTDemodSettings->setPalettes(new QString(settings.m_palettes.join(";"))); + } } if (channelSettingsKeys.contains("palette") || force) { swgAPTDemodSettings->setPalette(settings.m_palette); @@ -670,7 +694,11 @@ void APTDemod::webapiFormatChannelSettings( swgAPTDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgAPTDemodSettings->setTitle(new QString(settings.m_title)); + if (swgAPTDemodSettings->getTitle()) { + *swgAPTDemodSettings->getTitle() = settings.m_title; + } else { + swgAPTDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgAPTDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodapt/aptdemodgui.cpp b/plugins/channelrx/demodapt/aptdemodgui.cpp index ba3a8b960..36c6e9516 100644 --- a/plugins/channelrx/demodapt/aptdemodgui.cpp +++ b/plugins/channelrx/demodapt/aptdemodgui.cpp @@ -37,6 +37,7 @@ #include "ui_aptdemodgui.h" #include "plugin/pluginapi.h" #include "util/db.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -526,12 +527,12 @@ void APTDemodGUI::on_saveImage_clicked() { qDebug() << "APT: Saving image to " << fileNames; if (!m_image.save(fileNames[0])) { - QMessageBox::critical(this, "APT Demodulator", QString("Failed to save image to %1").arg(fileNames[0])); + MessageDialog::critical(this, "APT Demodulator", QString("Failed to save image to %1").arg(fileNames[0])); } } else { - QMessageBox::critical(this, "APT Demodulator", QString("Please specify a filename with an extension such as .png or .jpg")); + MessageDialog::critical(this, "APT Demodulator", QString("Please specify a filename with an extension such as .png or .jpg")); } } } diff --git a/plugins/channelrx/demodatv/atvdemodbaseband.cpp b/plugins/channelrx/demodatv/atvdemodbaseband.cpp index e1e1668ab..119cb38f3 100644 --- a/plugins/channelrx/demodatv/atvdemodbaseband.cpp +++ b/plugins/channelrx/demodatv/atvdemodbaseband.cpp @@ -159,7 +159,11 @@ void ATVDemodBaseband::applySettings(const QStringList& settingsKeys, const ATVD } m_sink.applySettings(settingsKeys, settings, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int ATVDemodBaseband::getChannelSampleRate() const diff --git a/plugins/channelrx/demodatv/atvdemodwebapiadapter.cpp b/plugins/channelrx/demodatv/atvdemodwebapiadapter.cpp index d523752a6..3ca3f0377 100644 --- a/plugins/channelrx/demodatv/atvdemodwebapiadapter.cpp +++ b/plugins/channelrx/demodatv/atvdemodwebapiadapter.cpp @@ -72,8 +72,16 @@ void ATVDemodWebAPIAdapter::webapiFormatChannelSettings( response.getAtvDemodSettings()->setIntNumberOfLines(settings.m_nbLines); response.getAtvDemodSettings()->setNbLinesIndex(ATVDemodSettings::getNumberOfLinesIndex(settings.m_nbLines)); response.getAtvDemodSettings()->setRgbColor(settings.m_rgbColor); - response.getAtvDemodSettings()->setTitle(new QString(settings.m_title)); - response.getAtvDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getAtvDemodSettings()->getTitle()) { + *response.getAtvDemodSettings()->getTitle() = settings.m_title; + } else { + response.getAtvDemodSettings()->setTitle(new QString(settings.m_title)); + } + if (response.getAtvDemodSettings()->getUdpAddress()) { + *response.getAtvDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getAtvDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getAtvDemodSettings()->setUdpPort(settings.m_udpPort); } diff --git a/plugins/channelrx/demodbfm/bfmdemod.cpp b/plugins/channelrx/demodbfm/bfmdemod.cpp index 451a64548..47f42ed63 100644 --- a/plugins/channelrx/demodbfm/bfmdemod.cpp +++ b/plugins/channelrx/demodbfm/bfmdemod.cpp @@ -540,10 +540,12 @@ void BFMDemod::webapiFormatRDSReport(SWGSDRangel::SWGRDSReport *report) report->setPid(new QString(str(boost::format("%04X") % getRDSParser()->m_pi_program_identification).c_str())); report->setPiType(new QString(getRDSParser()->pty_table[getRDSParser()->m_pi_program_type].c_str())); report->setPiCoverage(new QString(getRDSParser()->coverage_area_codes[getRDSParser()->m_pi_area_coverage_index].c_str())); - report->setProgServiceName(new QString(getRDSParser()->m_g0_program_service_name)); + // RDS pads these to a fixed width, which is a transport detail rather than part of the + // name, and the radio text ends with a carriage return + report->setProgServiceName(new QString(QString(getRDSParser()->m_g0_program_service_name_complete).trimmed())); report->setMusicSpeech(new QString((getRDSParser()->m_g0_music_speech ? "Music" : "Speech"))); report->setMonoStereo(new QString((getRDSParser()->m_g0_mono_stereo ? "Mono" : "Stereo"))); - report->setRadioText(new QString(getRDSParser()->m_g2_radiotext)); + report->setRadioText(new QString(QString(getRDSParser()->m_g2_radiotext).trimmed())); std::string time = str(boost::format("%4i-%02i-%02i %02i:%02i (%+.1fh)")\ % (1900 + getRDSParser()->m_g4_year) % getRDSParser()->m_g4_month % getRDSParser()->m_g4_day % getRDSParser()->m_g4_hours % getRDSParser()->m_g4_minutes % getRDSParser()->m_g4_local_time_offset); report->setTime(new QString(time.c_str())); @@ -620,7 +622,11 @@ void BFMDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setBfmDemodSettings(new SWGSDRangel::SWGBFMDemodSettings()); SWGSDRangel::SWGBFMDemodSettings *swgBFMDemodSettings = swgChannelSettings->getBfmDemodSettings(); @@ -663,10 +669,18 @@ void BFMDemod::webapiFormatChannelSettings( swgBFMDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgBFMDemodSettings->setTitle(new QString(settings.m_title)); + if (swgBFMDemodSettings->getTitle()) { + *swgBFMDemodSettings->getTitle() = settings.m_title; + } else { + swgBFMDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgBFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgBFMDemodSettings->getAudioDeviceName()) { + *swgBFMDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgBFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgBFMDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodbfm/bfmdemodsink.cpp b/plugins/channelrx/demodbfm/bfmdemodsink.cpp index 690623de3..2c72a7939 100644 --- a/plugins/channelrx/demodbfm/bfmdemodsink.cpp +++ b/plugins/channelrx/demodbfm/bfmdemodsink.cpp @@ -376,5 +376,9 @@ void BFMDemodSink::applySettings(const QStringList& settingsKeys, const BFMDemod m_squelchLevel = std::pow(10.0, settings.m_squelch / 10.0); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } diff --git a/plugins/channelrx/demodbfm/rdsparser.cpp b/plugins/channelrx/demodbfm/rdsparser.cpp index b0dde7186..b629eb264 100644 --- a/plugins/channelrx/demodbfm/rdsparser.cpp +++ b/plugins/channelrx/demodbfm/rdsparser.cpp @@ -283,6 +283,8 @@ void RDSParser::clearAllFields() m_g0_count = 0; std::memset(m_g0_program_service_name, ' ', sizeof(m_g0_program_service_name)); m_g0_program_service_name[sizeof(m_g0_program_service_name) - 1] = '\0'; + std::memset(m_g0_program_service_name_complete, ' ', sizeof(m_g0_program_service_name_complete)); + m_g0_program_service_name_complete[sizeof(m_g0_program_service_name_complete) - 1] = '\0'; m_g0_psn_bitmap = 0; m_g0_traffic_announcement = false; m_g0_music_speech = false; @@ -492,6 +494,10 @@ void RDSParser::decode_type0(unsigned int *group, bool B) m_g0_program_service_name[segment_address * 2 + 1] = group[3] & 0xff; m_g0_psn_bitmap |= 1<A.11: AF bandwidth This is the AF bandwidth in kHz. It can be varied continuously between 1 and 20 kHz in steps of 1 kHz. diff --git a/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp b/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp index 34d7d36d7..bddc7f512 100644 --- a/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp +++ b/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp @@ -863,8 +863,16 @@ void ChirpChatDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& re response.getChirpChatDemodReport()->setHeaderCrcStatus(m_lastMsgHeaderCRC); response.getChirpChatDemodReport()->setPayloadParityStatus(m_lastMsgPayloadParityStatus); response.getChirpChatDemodReport()->setPayloadCrcStatus(m_lastMsgPayloadCRC); - response.getChirpChatDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); - response.getChirpChatDemodReport()->setMessageString(new QString(m_lastMsgString)); + if (response.getChirpChatDemodReport()->getMessageTimestamp()) { + *response.getChirpChatDemodReport()->getMessageTimestamp() = m_lastMsgTimestamp; + } else { + response.getChirpChatDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); + } + if (response.getChirpChatDemodReport()->getMessageString()) { + *response.getChirpChatDemodReport()->getMessageString() = m_lastMsgString; + } else { + response.getChirpChatDemodReport()->setMessageString(new QString(m_lastMsgString)); + } response.getChirpChatDemodReport()->setDecoding(getDemodActive() ? 1 : 0); response.getChirpChatDemodReport()->setMessageBytes(new QList); @@ -937,7 +945,11 @@ void ChirpChatDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setChirpChatDemodSettings(new SWGSDRangel::SWGChirpChatDemodSettings()); SWGSDRangel::SWGChirpChatDemodSettings *swgChirpChatDemodSettings = swgChannelSettings->getChirpChatDemodSettings(); @@ -989,7 +1001,11 @@ void ChirpChatDemod::webapiFormatChannelSettings( swgChirpChatDemodSettings->setSendViaUdp(settings.m_sendViaUDP ? 1 : 0); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgChirpChatDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgChirpChatDemodSettings->getUdpAddress()) { + *swgChirpChatDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgChirpChatDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("updPort") || force) { swgChirpChatDemodSettings->setUdpPort(settings.m_udpPort); @@ -1001,7 +1017,11 @@ void ChirpChatDemod::webapiFormatChannelSettings( swgChirpChatDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgChirpChatDemodSettings->setTitle(new QString(settings.m_title)); + if (swgChirpChatDemodSettings->getTitle()) { + *swgChirpChatDemodSettings->getTitle() = settings.m_title; + } else { + swgChirpChatDemodSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_spectrumGUI && (channelSettingsKeys.contains("spectrunConfig") || force)) diff --git a/plugins/channelrx/demoddab/dabdemod.cpp b/plugins/channelrx/demoddab/dabdemod.cpp index 0e8bec89a..b0daca5d6 100644 --- a/plugins/channelrx/demoddab/dabdemod.cpp +++ b/plugins/channelrx/demoddab/dabdemod.cpp @@ -32,12 +32,16 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" +#include "SWGDABDemodReport.h" #include "SWGDABDemodSettings.h" +#include "SWGDABProgram.h" #include "dsp/dspcommands.h" #include "device/deviceapi.h" #include "settings/serializable.h" +#include "util/db.h" #include "maincore.h" MESSAGE_CLASS_DEFINITION(DABDemod::MsgConfigureDABDemod, Message) @@ -60,7 +64,19 @@ const char * const DABDemod::m_channelId = "DABDemod"; DABDemod::DABDemod(DeviceAPI *deviceAPI) : ChannelAPI(m_channelIdURI, ChannelAPI::StreamSingleSink), m_deviceAPI(deviceAPI), - m_basebandSampleRate(0) + m_basebandSampleRate(0), + m_centerFrequency(0), + m_reportSync(false), + m_reportSNR(0), + m_reportFrequencyOffset(0), + m_reportEnsembleId(0), + m_reportAudioActive(false), + m_reportBitrate(0), + m_reportFrameQuality(0), + m_reportReedSolomonQuality(0), + m_reportAACQuality(0), + m_reportFIBQuality(0), + m_reportTII(0) { setObjectName(m_channelId); @@ -136,6 +152,8 @@ void DABDemod::start() { qDebug("DABDemod::start"); + clearReport(); + m_basebandSink->reset(); m_basebandSink->startWork(); m_thread.start(); @@ -153,6 +171,7 @@ void DABDemod::stop() m_basebandSink->stopWork(); m_thread.quit(); m_thread.wait(); + clearReport(); } bool DABDemod::handleMessage(const Message& cmd) @@ -168,6 +187,9 @@ bool DABDemod::handleMessage(const Message& cmd) else if (DSPSignalNotification::match(cmd)) { DSPSignalNotification& notif = (DSPSignalNotification&) cmd; + if ((m_basebandSampleRate != notif.getSampleRate()) || (m_centerFrequency != notif.getCenterFrequency())) { + clearReport(); + } m_basebandSampleRate = notif.getSampleRate(); m_centerFrequency = notif.getCenterFrequency(); // Forward to the sink @@ -184,6 +206,15 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABSystemData::match(cmd)) { MsgDABSystemData& report = (MsgDABSystemData&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportSync = report.getSync(); + m_reportSNR = report.getSNR(); + m_reportFrequencyOffset = report.getFrequencyOffset(); + if (!m_reportSync) { + m_reportAudioActive = false; + } + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABSystemData(report)); @@ -194,6 +225,12 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABProgramQuality::match(cmd)) { MsgDABProgramQuality& report = (MsgDABProgramQuality&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportFrameQuality = report.getFrames(); + m_reportReedSolomonQuality = report.getRS(); + m_reportAACQuality = report.getAAC(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABProgramQuality(report)); @@ -204,6 +241,10 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABFIBQuality::match(cmd)) { MsgDABFIBQuality& report = (MsgDABFIBQuality&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportFIBQuality = report.getPercent(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABFIBQuality(report)); @@ -214,6 +255,10 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABSampleRate::match(cmd)) { MsgDABSampleRate& report = (MsgDABSampleRate&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportAudioActive = report.getSampleRate() > 0; + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABSampleRate(report)); @@ -224,6 +269,11 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABEnsembleName::match(cmd)) { MsgDABEnsembleName& report = (MsgDABEnsembleName&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportEnsembleName = report.getName(); + m_reportEnsembleId = report.getId(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABEnsembleName(report)); @@ -234,6 +284,10 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABProgramName::match(cmd)) { MsgDABProgramName& report = (MsgDABProgramName&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportPrograms.insert(report.getId(), report.getName()); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABProgramName(report)); @@ -245,6 +299,14 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABProgramData::match(cmd)) { MsgDABProgramData& report = (MsgDABProgramData&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportAudioActive = true; + m_reportBitrate = report.getBitrate(); + m_reportAudio = report.getAudio(); + m_reportLanguage = report.getLanguage(); + m_reportProgramType = report.getProgramType(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABProgramData(report)); @@ -255,6 +317,10 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABData::match(cmd)) { MsgDABData& report = (MsgDABData&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportData = report.getData(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABData(report)); @@ -275,6 +341,10 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABTII::match(cmd)) { MsgDABTII& report = (MsgDABTII&)cmd; + { + QMutexLocker locker(&m_reportMutex); + m_reportTII = report.getTII(); + } if (getMessageQueueToGUI()) { getMessageQueueToGUI()->push(new MsgDABTII(report)); @@ -285,6 +355,7 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABReset::match(cmd)) { MsgDABReset& report = (MsgDABReset&)cmd; + clearReport(); m_basebandSink->getInputMessageQueue()->push(new MsgDABReset(report)); return true; @@ -292,6 +363,7 @@ bool DABDemod::handleMessage(const Message& cmd) else if (MsgDABResetService::match(cmd)) { MsgDABResetService& report = (MsgDABResetService&)cmd; + clearProgramReport(); m_basebandSink->getInputMessageQueue()->push(new MsgDABResetService(report)); return true; @@ -326,6 +398,12 @@ void DABDemod::applySettings(const QStringList& settingsKeys, const DABDemodSett { qDebug() << "DABDemod::applySettings:" << settings.getDebugString(settingsKeys, force); + if ((settings.m_inputFrequencyOffset != m_settings.m_inputFrequencyOffset) || force) { + clearReport(); + } else if (settings.m_program != m_settings.m_program) { + clearProgramReport(); + } + QList reverseAPIKeys; if ((settings.m_inputFrequencyOffset != m_settings.m_inputFrequencyOffset) || force) { @@ -374,7 +452,11 @@ void DABDemod::applySettings(const QStringList& settingsKeys, const DABDemodSett webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray DABDemod::serialize() const @@ -429,6 +511,123 @@ int DABDemod::webapiSettingsGet( return 200; } +int DABDemod::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setDabDemodReport(new SWGSDRangel::SWGDABDemodReport()); + response.getDabDemodReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void DABDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + SWGSDRangel::SWGDABDemodReport *report = response.getDabDemodReport(); + double magsqAvg; + double magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + report->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + report->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); + report->setAudioSampleRate(m_basebandSink->getAudioSampleRate()); + if (report->getSelectedProgram()) { + *report->getSelectedProgram() = m_settings.m_program.trimmed(); + } else { + report->setSelectedProgram(new QString(m_settings.m_program.trimmed())); + } + + QMutexLocker locker(&m_reportMutex); + report->setSync(m_reportSync ? 1 : 0); + report->setSnr(m_reportSNR); + report->setFrequencyOffset(m_reportFrequencyOffset); + // DAB labels are a fixed 16 characters, space padded + if (report->getEnsembleName()) { + *report->getEnsembleName() = m_reportEnsembleName.trimmed(); + } else { + report->setEnsembleName(new QString(m_reportEnsembleName.trimmed())); + } + report->setEnsembleId(m_reportEnsembleId); + + for (auto it = m_reportPrograms.cbegin(); it != m_reportPrograms.cend(); ++it) + { + SWGSDRangel::SWGDABProgram *program = new SWGSDRangel::SWGDABProgram(); + program->init(); + if (program->getName()) { + *program->getName() = it.value().trimmed(); + } else { + program->setName(new QString(it.value().trimmed())); + } + program->setId(it.key()); + report->getPrograms()->append(program); + } + + report->setAudioActive(m_reportAudioActive ? 1 : 0); + report->setBitrate(m_reportBitrate); + if (report->getAudio()) { + *report->getAudio() = m_reportAudio.trimmed(); + } else { + report->setAudio(new QString(m_reportAudio.trimmed())); + } + if (report->getLanguage()) { + *report->getLanguage() = m_reportLanguage.trimmed(); + } else { + report->setLanguage(new QString(m_reportLanguage.trimmed())); + } + if (report->getProgramType()) { + *report->getProgramType() = m_reportProgramType.trimmed(); + } else { + report->setProgramType(new QString(m_reportProgramType.trimmed())); + } + report->setFrameQuality(m_reportFrameQuality); + report->setReedSolomonQuality(m_reportReedSolomonQuality); + report->setAacQuality(m_reportAACQuality); + report->setFibQuality(m_reportFIBQuality); + report->setTii(m_reportTII); + if (report->getData()) { + *report->getData() = m_reportData.trimmed(); + } else { + report->setData(new QString(m_reportData.trimmed())); + } +} + +void DABDemod::clearProgramReport() +{ + QMutexLocker locker(&m_reportMutex); + m_reportAudioActive = false; + m_reportBitrate = 0; + m_reportAudio.clear(); + m_reportLanguage.clear(); + m_reportProgramType.clear(); + m_reportFrameQuality = 0; + m_reportReedSolomonQuality = 0; + m_reportAACQuality = 0; + m_reportData.clear(); +} + +void DABDemod::clearReport() +{ + QMutexLocker locker(&m_reportMutex); + m_reportSync = false; + m_reportSNR = 0; + m_reportFrequencyOffset = 0; + m_reportEnsembleName.clear(); + m_reportEnsembleId = 0; + m_reportPrograms.clear(); + m_reportAudioActive = false; + m_reportBitrate = 0; + m_reportAudio.clear(); + m_reportLanguage.clear(); + m_reportProgramType.clear(); + m_reportFrameQuality = 0; + m_reportReedSolomonQuality = 0; + m_reportAACQuality = 0; + m_reportFIBQuality = 0; + m_reportTII = 0; + m_reportData.clear(); +} + int DABDemod::webapiWorkspaceGet( SWGSDRangel::SWGWorkspaceInfo& response, QString& errorMessage) @@ -522,10 +721,18 @@ void DABDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp { response.getDabDemodSettings()->setInputFrequencyOffset(settings.m_inputFrequencyOffset); response.getDabDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); - response.getDabDemodSettings()->setProgram(new QString(settings.m_program)); + if (response.getDabDemodSettings()->getProgram()) { + *response.getDabDemodSettings()->getProgram() = settings.m_program; + } else { + response.getDabDemodSettings()->setProgram(new QString(settings.m_program)); + } response.getDabDemodSettings()->setVolume(settings.m_volume); response.getDabDemodSettings()->setAudioMute(settings.m_audioMute); - response.getDabDemodSettings()->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (response.getDabDemodSettings()->getAudioDeviceName()) { + *response.getDabDemodSettings()->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + response.getDabDemodSettings()->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } response.getDabDemodSettings()->setRgbColor(settings.m_rgbColor); if (response.getDabDemodSettings()->getTitle()) { @@ -611,7 +818,11 @@ void DABDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("DABDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "DABDemod"; + } else { + swgChannelSettings->setChannelType(new QString("DABDemod")); + } swgChannelSettings->setDabDemodSettings(new SWGSDRangel::SWGDABDemodSettings()); SWGSDRangel::SWGDABDemodSettings *swgDABDemodSettings = swgChannelSettings->getDabDemodSettings(); @@ -624,7 +835,11 @@ void DABDemod::webapiFormatChannelSettings( swgDABDemodSettings->setRfBandwidth(settings.m_rfBandwidth); } if (channelSettingsKeys.contains("program") || force) { - swgDABDemodSettings->setProgram(new QString(settings.m_program)); + if (swgDABDemodSettings->getProgram()) { + *swgDABDemodSettings->getProgram() = settings.m_program; + } else { + swgDABDemodSettings->setProgram(new QString(settings.m_program)); + } } if (channelSettingsKeys.contains("volume") || force) { swgDABDemodSettings->setVolume(settings.m_volume); @@ -633,13 +848,21 @@ void DABDemod::webapiFormatChannelSettings( swgDABDemodSettings->setAudioMute(settings.m_audioMute); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgDABDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgDABDemodSettings->getAudioDeviceName()) { + *swgDABDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgDABDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgDABDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDABDemodSettings->setTitle(new QString(settings.m_title)); + if (swgDABDemodSettings->getTitle()) { + *swgDABDemodSettings->getTitle() = settings.m_title; + } else { + swgDABDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgDABDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demoddab/dabdemod.h b/plugins/channelrx/demoddab/dabdemod.h index 962e2e5d3..370656760 100644 --- a/plugins/channelrx/demoddab/dabdemod.h +++ b/plugins/channelrx/demoddab/dabdemod.h @@ -22,6 +22,8 @@ #include #include +#include +#include #include #include "dsp/basebandsamplesink.h" @@ -381,6 +383,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage); + static void webapiFormatChannelSettings( SWGSDRangel::SWGChannelSettings& response, const DABDemodSettings& settings); @@ -410,12 +416,34 @@ private: int m_basebandSampleRate; //!< stored from device message used when starting baseband sink qint64 m_centerFrequency; + mutable QMutex m_reportMutex; + bool m_reportSync; + int m_reportSNR; + int m_reportFrequencyOffset; + QString m_reportEnsembleName; + int m_reportEnsembleId; + QMap m_reportPrograms; + bool m_reportAudioActive; + int m_reportBitrate; + QString m_reportAudio; + QString m_reportLanguage; + QString m_reportProgramType; + int m_reportFrameQuality; + int m_reportReedSolomonQuality; + int m_reportAACQuality; + int m_reportFIBQuality; + int m_reportTII; + QString m_reportData; + QNetworkAccessManager *m_networkManager; QNetworkRequest m_networkRequest; virtual bool handleMessage(const Message& cmd); void applySettings(const QStringList& settingsKeys, const DABDemodSettings& settings, bool force = false); void sendSampleRateToDemodAnalyzer(); + void clearReport(); + void clearProgramReport(); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QList& channelSettingsKeys, const DABDemodSettings& settings, bool force); void webapiFormatChannelSettings( const QList& channelSettingsKeys, diff --git a/plugins/channelrx/demoddab/dabdemodbaseband.h b/plugins/channelrx/demoddab/dabdemodbaseband.h index 7d36bee57..cd59ef2d8 100644 --- a/plugins/channelrx/demoddab/dabdemodbaseband.h +++ b/plugins/channelrx/demoddab/dabdemodbaseband.h @@ -79,6 +79,7 @@ public: double getMagSq() const { return m_sink.getMagSq(); } bool isRunning() const { return m_running; } int getAudioSampleRate() const { return m_sink.getAudioSampleRate(); } + int getChannelSampleRate() const { return m_sink.getChannelSampleRate(); } void setFifoLabel(const QString& label) { m_sampleFifo.setLabel(label); } void setAudioFifoLabel(const QString& label) { m_sink.setAudioFifoLabel(label); } diff --git a/plugins/channelrx/demoddab/dabdemodsink.cpp b/plugins/channelrx/demoddab/dabdemodsink.cpp index 49a9f1adb..92d59551e 100644 --- a/plugins/channelrx/demoddab/dabdemodsink.cpp +++ b/plugins/channelrx/demoddab/dabdemodsink.cpp @@ -633,7 +633,11 @@ void DABDemodSink::applySettings(const QStringList& settingsKeys, const DABDemod } } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } // Can't call setProgram directly from callback, so we get here via a message diff --git a/plugins/channelrx/demoddab/dabdemodsink.h b/plugins/channelrx/demoddab/dabdemodsink.h index 96c2a9617..da28ee88a 100644 --- a/plugins/channelrx/demoddab/dabdemodsink.h +++ b/plugins/channelrx/demoddab/dabdemodsink.h @@ -53,6 +53,7 @@ public: void applyAudioSampleRate(int sampleRate); void applyDABAudioSampleRate(int sampleRate); int getAudioSampleRate() const { return m_audioSampleRate; } + int getChannelSampleRate() const { return m_channelSampleRate; } AudioFifo *getAudioFifo() { return &m_audioFifo; } void setAudioFifoLabel(const QString& label) { m_audioFifo.setLabel(label); } diff --git a/plugins/channelrx/demoddatv/datvdemod.cpp b/plugins/channelrx/demoddatv/datvdemod.cpp index 2e971cb67..54bda4c82 100644 --- a/plugins/channelrx/demoddatv/datvdemod.cpp +++ b/plugins/channelrx/demoddatv/datvdemod.cpp @@ -220,7 +220,11 @@ void DATVDemod::applySettings(const QList& settingsKeys, const DATVDemo sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } uint32_t DATVDemod::getNumberOfDeviceStreams() const @@ -538,7 +542,11 @@ void DATVDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("DATVDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "DATVDemod"; + } else { + swgChannelSettings->setChannelType(new QString("DATVDemod")); + } swgChannelSettings->setDatvDemodSettings(new SWGSDRangel::SWGDATVDemodSettings()); SWGSDRangel::SWGDATVDemodSettings *swgDATVDemodSettings = swgChannelSettings->getDatvDemodSettings(); @@ -548,7 +556,11 @@ void DATVDemod::webapiFormatChannelSettings( swgDATVDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDATVDemodSettings->setTitle(new QString(settings.m_title)); + if (swgDATVDemodSettings->getTitle()) { + *swgDATVDemodSettings->getTitle() = settings.m_title; + } else { + swgDATVDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("rfBandwidth") || force) { swgDATVDemodSettings->setRfBandwidth(settings.m_rfBandwidth); @@ -578,7 +590,11 @@ void DATVDemod::webapiFormatChannelSettings( swgDATVDemodSettings->setAudioMute(settings.m_audioMute ? 1 : 0); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgDATVDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgDATVDemodSettings->getAudioDeviceName()) { + *swgDATVDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgDATVDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("symbolRate") || force) { swgDATVDemodSettings->setSymbolRate(settings.m_symbolRate); @@ -614,7 +630,11 @@ void DATVDemod::webapiFormatChannelSettings( swgDATVDemodSettings->setVideoMute(settings.m_videoMute ? 1 : 0); } if (channelSettingsKeys.contains("udpTSAddress") || force) { - swgDATVDemodSettings->setUdpTsAddress(new QString(settings.m_udpTSAddress)); + if (swgDATVDemodSettings->getUdpTsAddress()) { + *swgDATVDemodSettings->getUdpTsAddress() = settings.m_udpTSAddress; + } else { + swgDATVDemodSettings->setUdpTsAddress(new QString(settings.m_udpTSAddress)); + } } if (channelSettingsKeys.contains("udpTSPort") || force) { swgDATVDemodSettings->setUdpTsPort(settings.m_udpTSPort); diff --git a/plugins/channelrx/demoddatv/datvdemodwebapiadapter.cpp b/plugins/channelrx/demoddatv/datvdemodwebapiadapter.cpp index b2d6a240b..55de5a345 100644 --- a/plugins/channelrx/demoddatv/datvdemodwebapiadapter.cpp +++ b/plugins/channelrx/demoddatv/datvdemodwebapiadapter.cpp @@ -52,7 +52,11 @@ void DATVDemodWebAPIAdapter::webapiFormatChannelSettings( const DATVDemodSettings& settings) { response.getDatvDemodSettings()->setAllowDrift(settings.m_allowDrift ? 1 : 0); - response.getDatvDemodSettings()->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (response.getDatvDemodSettings()->getAudioDeviceName()) { + *response.getDatvDemodSettings()->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + response.getDatvDemodSettings()->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } response.getDatvDemodSettings()->setAudioMute(settings.m_audioMute ? 1 : 0); response.getDatvDemodSettings()->setAudioVolume(settings.m_audioVolume); response.getDatvDemodSettings()->setCenterFrequency(settings.m_centerFrequency); @@ -68,9 +72,17 @@ void DATVDemodWebAPIAdapter::webapiFormatChannelSettings( response.getDatvDemodSettings()->setRollOff(settings.m_rollOff); response.getDatvDemodSettings()->setStandard((int) settings.m_standard); response.getDatvDemodSettings()->setSymbolRate(settings.m_symbolRate); - response.getDatvDemodSettings()->setTitle(new QString(settings.m_title)); + if (response.getDatvDemodSettings()->getTitle()) { + *response.getDatvDemodSettings()->getTitle() = settings.m_title; + } else { + response.getDatvDemodSettings()->setTitle(new QString(settings.m_title)); + } response.getDatvDemodSettings()->setUdpTs(settings.m_udpTS ? 1 : 0); - response.getDatvDemodSettings()->setUdpTsAddress(new QString(settings.m_udpTSAddress)); + if (response.getDatvDemodSettings()->getUdpTsAddress()) { + *response.getDatvDemodSettings()->getUdpTsAddress() = settings.m_udpTSAddress; + } else { + response.getDatvDemodSettings()->setUdpTsAddress(new QString(settings.m_udpTSAddress)); + } response.getDatvDemodSettings()->setUdpTsPort(settings.m_udpTSPort); response.getDatvDemodSettings()->setVideoMute(settings.m_videoMute ? 1 : 0); response.getDatvDemodSettings()->setViterbi(settings.m_viterbi ? 1 : 0); diff --git a/plugins/channelrx/demoddsc/dscdemod.cpp b/plugins/channelrx/demoddsc/dscdemod.cpp index aa11eab92..36f2aa49b 100644 --- a/plugins/channelrx/demoddsc/dscdemod.cpp +++ b/plugins/channelrx/demoddsc/dscdemod.cpp @@ -509,11 +509,23 @@ void DSCDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getDscDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getDscDemodSettings()->setFilterInvalid(settings.m_filterInvalid); response.getDscDemodSettings()->setFilterColumn(settings.m_filterColumn); - response.getDscDemodSettings()->setFilter(new QString(settings.m_filter)); + if (response.getDscDemodSettings()->getFilter()) { + *response.getDscDemodSettings()->getFilter() = settings.m_filter; + } else { + response.getDscDemodSettings()->setFilter(new QString(settings.m_filter)); + } response.getDscDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getDscDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getDscDemodSettings()->getUdpAddress()) { + *response.getDscDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getDscDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getDscDemodSettings()->setUdpPort(settings.m_udpPort); - response.getDscDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getDscDemodSettings()->getLogFilename()) { + *response.getDscDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getDscDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getDscDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getDscDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -624,7 +636,11 @@ void DSCDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("DSCDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "DSCDemod"; + } else { + swgChannelSettings->setChannelType(new QString("DSCDemod")); + } swgChannelSettings->setDscDemodSettings(new SWGSDRangel::SWGDSCDemodSettings()); SWGSDRangel::SWGDSCDemodSettings *swgDSCDemodSettings = swgChannelSettings->getDscDemodSettings(); @@ -643,19 +659,31 @@ void DSCDemod::webapiFormatChannelSettings( swgDSCDemodSettings->setFilterColumn(settings.m_filterColumn); } if (channelSettingsKeys.contains("filter") || force) { - swgDSCDemodSettings->setFilter(new QString(settings.m_filter)); + if (swgDSCDemodSettings->getFilter()) { + *swgDSCDemodSettings->getFilter() = settings.m_filter; + } else { + swgDSCDemodSettings->setFilter(new QString(settings.m_filter)); + } } if (channelSettingsKeys.contains("udpEnabled") || force) { swgDSCDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgDSCDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgDSCDemodSettings->getUdpAddress()) { + *swgDSCDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgDSCDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgDSCDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgDSCDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgDSCDemodSettings->getLogFilename()) { + *swgDSCDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgDSCDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgDSCDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -667,7 +695,11 @@ void DSCDemod::webapiFormatChannelSettings( swgDSCDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDSCDemodSettings->setTitle(new QString(settings.m_title)); + if (swgDSCDemodSettings->getTitle()) { + *swgDSCDemodSettings->getTitle() = settings.m_title; + } else { + swgDSCDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgDSCDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demoddsc/dscdemodgui.cpp b/plugins/channelrx/demoddsc/dscdemodgui.cpp index f4b7cfe1c..812ee6462 100644 --- a/plugins/channelrx/demoddsc/dscdemodgui.cpp +++ b/plugins/channelrx/demoddsc/dscdemodgui.cpp @@ -40,6 +40,7 @@ #include "util/csv.h" #include "util/db.h" #include "util/mmsi.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/decimaldelegate.h" #include "dsp/dspengine.h" @@ -1174,12 +1175,12 @@ void DSCDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "DSC Demod", error); + MessageDialog::critical(this, "DSC Demod", error); } } else { - QMessageBox::critical(this, "DSC Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "DSC Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demoddsd/dsddemod.cpp b/plugins/channelrx/demoddsd/dsddemod.cpp index 54a1ffb77..11c6d1998 100644 --- a/plugins/channelrx/demoddsd/dsddemod.cpp +++ b/plugins/channelrx/demoddsd/dsddemod.cpp @@ -333,7 +333,11 @@ void DSDDemod::applySettings(const QStringList& settingsKeys, const DSDDemodSett sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray DSDDemod::serialize() const @@ -657,12 +661,20 @@ void DSDDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response response.getDsdDemodReport()->setPllLocked(getDecoder().getSymbolPLLLocked() ? 1 : 0); response.getDsdDemodReport()->setSlot1On(getDecoder().getVoice1On() ? 1 : 0); response.getDsdDemodReport()->setSlot2On(getDecoder().getVoice2On() ? 1 : 0); - response.getDsdDemodReport()->setSyncType(new QString(getDecoder().getFrameTypeText())); + if (response.getDsdDemodReport()->getSyncType()) { + *response.getDsdDemodReport()->getSyncType() = getDecoder().getFrameTypeText(); + } else { + response.getDsdDemodReport()->setSyncType(new QString(getDecoder().getFrameTypeText())); + } response.getDsdDemodReport()->setInLevel(getDecoder().getInLevel()); response.getDsdDemodReport()->setCarierPosition(getDecoder().getCarrierPos()); response.getDsdDemodReport()->setZeroCrossingPosition(getDecoder().getZeroCrossingPos()); response.getDsdDemodReport()->setSyncRate(getDecoder().getSymbolSyncQuality()); - response.getDsdDemodReport()->setStatusText(new QString(updateAndGetStatusText())); + if (response.getDsdDemodReport()->getStatusText()) { + *response.getDsdDemodReport()->getStatusText() = updateAndGetStatusText(); + } else { + response.getDsdDemodReport()->setStatusText(new QString(updateAndGetStatusText())); + } } void DSDDemod::webapiReverseSendSettings(const QList& channelSettingsKeys, const DSDDemodSettings& settings, bool force) @@ -725,7 +737,11 @@ void DSDDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setDsdDemodSettings(new SWGSDRangel::SWGDSDDemodSettings()); SWGSDRangel::SWGDSDDemodSettings *swgDSDDemodSettings = swgChannelSettings->getDsdDemodSettings(); @@ -780,10 +796,18 @@ void DSDDemod::webapiFormatChannelSettings( swgDSDDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDSDDemodSettings->setTitle(new QString(settings.m_title)); + if (swgDSDDemodSettings->getTitle()) { + *swgDSDDemodSettings->getTitle() = settings.m_title; + } else { + swgDSDDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgDSDDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgDSDDemodSettings->getAudioDeviceName()) { + *swgDSDDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgDSDDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("highPassFilter") || force) { swgDSDDemodSettings->setHighPassFilter(settings.m_highPassFilter ? 1 : 0); diff --git a/plugins/channelrx/demoddsd/dsdstatustextdialog.cpp b/plugins/channelrx/demoddsd/dsdstatustextdialog.cpp index a8da2e932..98e33cc23 100644 --- a/plugins/channelrx/demoddsd/dsdstatustextdialog.cpp +++ b/plugins/channelrx/demoddsd/dsdstatustextdialog.cpp @@ -28,6 +28,8 @@ #include #include +#include "gui/messagedialog.h" + DSDStatusTextDialog::DSDStatusTextDialog(QWidget* parent) : QDialog(parent), ui(new Ui::DSDStatusTextDialog) @@ -84,7 +86,7 @@ void DSDStatusTextDialog::on_saveLog_clicked() } else { - QMessageBox::information(this, tr("Message"), tr("Cannot open file for writing")); + MessageDialog::information(this, tr("Message"), tr("Cannot open file for writing")); } } diff --git a/plugins/channelrx/demodendoftrain/endoftraindemod.cpp b/plugins/channelrx/demodendoftrain/endoftraindemod.cpp index 407af94d4..997ca1301 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemod.cpp +++ b/plugins/channelrx/demodendoftrain/endoftraindemod.cpp @@ -484,9 +484,17 @@ void EndOfTrainDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSetting response.getEndOfTrainDemodSettings()->setInputFrequencyOffset(settings.m_inputFrequencyOffset); response.getEndOfTrainDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getEndOfTrainDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getEndOfTrainDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getEndOfTrainDemodSettings()->getUdpAddress()) { + *response.getEndOfTrainDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getEndOfTrainDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getEndOfTrainDemodSettings()->setUdpPort(settings.m_udpPort); - response.getEndOfTrainDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getEndOfTrainDemodSettings()->getLogFilename()) { + *response.getEndOfTrainDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getEndOfTrainDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getEndOfTrainDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getEndOfTrainDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -584,7 +592,11 @@ void EndOfTrainDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("EndOfTrainDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "EndOfTrainDemod"; + } else { + swgChannelSettings->setChannelType(new QString("EndOfTrainDemod")); + } swgChannelSettings->setEndOfTrainDemodSettings(new SWGSDRangel::SWGEndOfTrainDemodSettings()); SWGSDRangel::SWGEndOfTrainDemodSettings *swgEndOfTrainDemodSettings = swgChannelSettings->getEndOfTrainDemodSettings(); @@ -603,13 +615,21 @@ void EndOfTrainDemod::webapiFormatChannelSettings( swgEndOfTrainDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgEndOfTrainDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgEndOfTrainDemodSettings->getUdpAddress()) { + *swgEndOfTrainDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgEndOfTrainDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgEndOfTrainDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgEndOfTrainDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgEndOfTrainDemodSettings->getLogFilename()) { + *swgEndOfTrainDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgEndOfTrainDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgEndOfTrainDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -621,7 +641,11 @@ void EndOfTrainDemod::webapiFormatChannelSettings( swgEndOfTrainDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgEndOfTrainDemodSettings->setTitle(new QString(settings.m_title)); + if (swgEndOfTrainDemodSettings->getTitle()) { + *swgEndOfTrainDemodSettings->getTitle() = settings.m_title; + } else { + swgEndOfTrainDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgEndOfTrainDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp b/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp index c8da03e6b..67dc28089 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp +++ b/plugins/channelrx/demodendoftrain/endoftraindemodgui.cpp @@ -34,6 +34,7 @@ #include "plugin/pluginapi.h" #include "util/csv.h" #include "util/db.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" #include "dsp/glscopesettings.h" @@ -728,12 +729,12 @@ void EndOfTrainDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "End-Of-Train Demod", error); + MessageDialog::critical(this, "End-Of-Train Demod", error); } } else { - QMessageBox::critical(this, "End-Of-Train Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "End-Of-Train Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodfreedv/freedvdemod.cpp b/plugins/channelrx/demodfreedv/freedvdemod.cpp index f21d4ced9..e0687f46a 100644 --- a/plugins/channelrx/demodfreedv/freedvdemod.cpp +++ b/plugins/channelrx/demodfreedv/freedvdemod.cpp @@ -542,7 +542,11 @@ void FreeDVDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setFreeDvDemodSettings(new SWGSDRangel::SWGFreeDVDemodSettings()); SWGSDRangel::SWGFreeDVDemodSettings *swgFreeDVDemodSettings = swgChannelSettings->getFreeDvDemodSettings(); @@ -573,10 +577,18 @@ void FreeDVDemod::webapiFormatChannelSettings( swgFreeDVDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFreeDVDemodSettings->setTitle(new QString(settings.m_title)); + if (swgFreeDVDemodSettings->getTitle()) { + *swgFreeDVDemodSettings->getTitle() = settings.m_title; + } else { + swgFreeDVDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgFreeDVDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgFreeDVDemodSettings->getAudioDeviceName()) { + *swgFreeDVDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgFreeDVDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgFreeDVDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodft8/ft8demod.cpp b/plugins/channelrx/demodft8/ft8demod.cpp index 26cbf4627..377c787e0 100644 --- a/plugins/channelrx/demodft8/ft8demod.cpp +++ b/plugins/channelrx/demodft8/ft8demod.cpp @@ -392,13 +392,26 @@ int FT8Demod::webapiSettingsPutPatch( FT8DemodSettings settings = m_settings; webapiUpdateChannelSettings(settings, channelSettingsKeys, response); - MsgConfigureFT8Demod *msg = MsgConfigureFT8Demod::create(channelSettingsKeys, settings, force); + // The filter keys set one entry of the filter bank, and the settings are applied by key + // name with the bank copied as a whole under its own, so that is the key to pass on + QStringList settingsKeys = channelSettingsKeys; + + for (const char *key : {"rfBandwidth", "lowCutoff", "spanLog2", "fftWindow"}) + { + if (settingsKeys.contains(key) && !settingsKeys.contains("filterBank")) + { + settingsKeys.append("filterBank"); + break; + } + } + + MsgConfigureFT8Demod *msg = MsgConfigureFT8Demod::create(settingsKeys, settings, force); m_inputMessageQueue.push(msg); qDebug("FT8Demod::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureFT8Demod *msgToGUI = MsgConfigureFT8Demod::create(channelSettingsKeys, settings, force); + MsgConfigureFT8Demod *msgToGUI = MsgConfigureFT8Demod::create(settingsKeys, settings, force); m_guiMessageQueue->push(msgToGUI); } @@ -429,7 +442,7 @@ void FT8Demod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("lowCutoff")) { settings.m_filterBank[settings.m_filterIndex].m_lowCutoff = response.getFt8DemodSettings()->getLowCutoff(); } - if (channelSettingsKeys.contains("fftWimdow")) { + if (channelSettingsKeys.contains("fftWindow")) { settings.m_filterBank[settings.m_filterIndex].m_fftWindow = (FFTWindow::Function) response.getFt8DemodSettings()->getFftWindow(); } if (channelSettingsKeys.contains("volume")) { @@ -539,9 +552,21 @@ void FT8Demod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getFt8DemodSettings()->setOsdLdpcThreshold(settings.m_osdLDPCThreshold); response.getFt8DemodSettings()->setUseOsd(settings.m_verifyOSD ? 1 : 0); response.getFt8DemodSettings()->setEnablePskReporter(settings.m_enablePSKReporter ? 1 : 0); - response.getFt8DemodSettings()->setPskReporterCallsign(new QString(settings.m_pskReporterCallsign)); - response.getFt8DemodSettings()->setPskReporterLocator(new QString(settings.m_pskReporterLocator)); - response.getFt8DemodSettings()->setPskReporterSoftware(new QString(settings.m_pskReporterSoftware)); + if (response.getFt8DemodSettings()->getPskReporterCallsign()) { + *response.getFt8DemodSettings()->getPskReporterCallsign() = settings.m_pskReporterCallsign; + } else { + response.getFt8DemodSettings()->setPskReporterCallsign(new QString(settings.m_pskReporterCallsign)); + } + if (response.getFt8DemodSettings()->getPskReporterLocator()) { + *response.getFt8DemodSettings()->getPskReporterLocator() = settings.m_pskReporterLocator; + } else { + response.getFt8DemodSettings()->setPskReporterLocator(new QString(settings.m_pskReporterLocator)); + } + if (response.getFt8DemodSettings()->getPskReporterSoftware()) { + *response.getFt8DemodSettings()->getPskReporterSoftware() = settings.m_pskReporterSoftware; + } else { + response.getFt8DemodSettings()->setPskReporterSoftware(new QString(settings.m_pskReporterSoftware)); + } response.getFt8DemodSettings()->setRgbColor(settings.m_rgbColor); if (response.getFt8DemodSettings()->getTitle()) { @@ -683,7 +708,11 @@ void FT8Demod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setFt8DemodSettings(new SWGSDRangel::SWGFT8DemodSettings()); SWGSDRangel::SWGFT8DemodSettings *swgFT8DemodSettings = swgChannelSettings->getFt8DemodSettings(); @@ -741,19 +770,35 @@ void FT8Demod::webapiFormatChannelSettings( swgFT8DemodSettings->setEnablePskReporter(settings.m_enablePSKReporter ? 1 : 0); } if (channelSettingsKeys.contains("pskReporterCallsign") || force) { - swgFT8DemodSettings->setPskReporterCallsign(new QString(settings.m_pskReporterCallsign)); + if (swgFT8DemodSettings->getPskReporterCallsign()) { + *swgFT8DemodSettings->getPskReporterCallsign() = settings.m_pskReporterCallsign; + } else { + swgFT8DemodSettings->setPskReporterCallsign(new QString(settings.m_pskReporterCallsign)); + } } if (channelSettingsKeys.contains("pskReporterLocator") || force) { - swgFT8DemodSettings->setPskReporterLocator(new QString(settings.m_pskReporterLocator)); + if (swgFT8DemodSettings->getPskReporterLocator()) { + *swgFT8DemodSettings->getPskReporterLocator() = settings.m_pskReporterLocator; + } else { + swgFT8DemodSettings->setPskReporterLocator(new QString(settings.m_pskReporterLocator)); + } } if (channelSettingsKeys.contains("pskReporterSoftware") || force) { - swgFT8DemodSettings->setPskReporterSoftware(new QString(settings.m_pskReporterSoftware)); + if (swgFT8DemodSettings->getPskReporterSoftware()) { + *swgFT8DemodSettings->getPskReporterSoftware() = settings.m_pskReporterSoftware; + } else { + swgFT8DemodSettings->setPskReporterSoftware(new QString(settings.m_pskReporterSoftware)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgFT8DemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFT8DemodSettings->setTitle(new QString(settings.m_title)); + if (swgFT8DemodSettings->getTitle()) { + *swgFT8DemodSettings->getTitle() = settings.m_title; + } else { + swgFT8DemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgFT8DemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodils/ilsdemod.cpp b/plugins/channelrx/demodils/ilsdemod.cpp index 64feafc27..111ccc463 100644 --- a/plugins/channelrx/demodils/ilsdemod.cpp +++ b/plugins/channelrx/demodils/ilsdemod.cpp @@ -587,19 +587,43 @@ void ILSDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& resp response.getIlsDemodSettings()->setAverage(settings.m_average); response.getIlsDemodSettings()->setDdmUnits((int) settings.m_ddmUnits); response.getIlsDemodSettings()->setIdentThreshold(settings.m_identThreshold); - response.getIlsDemodSettings()->setIdent(new QString(settings.m_ident)); - response.getIlsDemodSettings()->setRunway(new QString(settings.m_runway)); + if (response.getIlsDemodSettings()->getIdent()) { + *response.getIlsDemodSettings()->getIdent() = settings.m_ident; + } else { + response.getIlsDemodSettings()->setIdent(new QString(settings.m_ident)); + } + if (response.getIlsDemodSettings()->getRunway()) { + *response.getIlsDemodSettings()->getRunway() = settings.m_runway; + } else { + response.getIlsDemodSettings()->setRunway(new QString(settings.m_runway)); + } response.getIlsDemodSettings()->setTrueBearing(settings.m_trueBearing); - response.getIlsDemodSettings()->setLatitude(new QString(settings.m_latitude)); - response.getIlsDemodSettings()->setLatitude(new QString(settings.m_latitude)); + if (response.getIlsDemodSettings()->getLatitude()) { + *response.getIlsDemodSettings()->getLatitude() = settings.m_latitude; + } else { + response.getIlsDemodSettings()->setLatitude(new QString(settings.m_latitude)); + } + if (response.getIlsDemodSettings()->getLatitude()) { + *response.getIlsDemodSettings()->getLatitude() = settings.m_latitude; + } else { + response.getIlsDemodSettings()->setLatitude(new QString(settings.m_latitude)); + } response.getIlsDemodSettings()->setElevation(settings.m_elevation); response.getIlsDemodSettings()->setGlidePath(settings.m_glidePath); response.getIlsDemodSettings()->setRefHeight(settings.m_refHeight); response.getIlsDemodSettings()->setCourseWidth(settings.m_courseWidth); response.getIlsDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getIlsDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getIlsDemodSettings()->getUdpAddress()) { + *response.getIlsDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getIlsDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getIlsDemodSettings()->setUdpPort(settings.m_udpPort); - response.getIlsDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getIlsDemodSettings()->getLogFilename()) { + *response.getIlsDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getIlsDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getIlsDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getIlsDemodSettings()->setRgbColor(settings.m_rgbColor); @@ -672,7 +696,11 @@ void ILSDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response response.getIlsDemodReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); response.getIlsDemodReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); - response.getIlsDemodReport()->setIdent(new QString(m_ident)); + if (response.getIlsDemodReport()->getIdent()) { + *response.getIlsDemodReport()->getIdent() = m_ident; + } else { + response.getIlsDemodReport()->setIdent(new QString(m_ident)); + } response.getIlsDemodReport()->setDeviation(m_angle); response.getIlsDemodReport()->setSdm(m_sdm); response.getIlsDemodReport()->setDdm(m_ddm); @@ -715,7 +743,11 @@ void ILSDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("ILSDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "ILSDemod"; + } else { + swgChannelSettings->setChannelType(new QString("ILSDemod")); + } swgChannelSettings->setIlsDemodSettings(new SWGSDRangel::SWGILSDemodSettings()); SWGSDRangel::SWGILSDemodSettings *swgILSDemodSettings = swgChannelSettings->getIlsDemodSettings(); @@ -752,19 +784,35 @@ void ILSDemod::webapiFormatChannelSettings( swgILSDemodSettings->setIdentThreshold(settings.m_identThreshold); } if (channelSettingsKeys.contains("ident") || force) { - swgILSDemodSettings->setIdent(new QString(settings.m_ident)); + if (swgILSDemodSettings->getIdent()) { + *swgILSDemodSettings->getIdent() = settings.m_ident; + } else { + swgILSDemodSettings->setIdent(new QString(settings.m_ident)); + } } if (channelSettingsKeys.contains("runway") || force) { - swgILSDemodSettings->setRunway(new QString(settings.m_runway)); + if (swgILSDemodSettings->getRunway()) { + *swgILSDemodSettings->getRunway() = settings.m_runway; + } else { + swgILSDemodSettings->setRunway(new QString(settings.m_runway)); + } } if (channelSettingsKeys.contains("trueBearing") || force) { swgILSDemodSettings->setTrueBearing(settings.m_trueBearing); } if (channelSettingsKeys.contains("latitude") || force) { - swgILSDemodSettings->setLatitude(new QString(settings.m_latitude)); + if (swgILSDemodSettings->getLatitude()) { + *swgILSDemodSettings->getLatitude() = settings.m_latitude; + } else { + swgILSDemodSettings->setLatitude(new QString(settings.m_latitude)); + } } if (channelSettingsKeys.contains("longitude") || force) { - swgILSDemodSettings->setLongitude(new QString(settings.m_longitude)); + if (swgILSDemodSettings->getLongitude()) { + *swgILSDemodSettings->getLongitude() = settings.m_longitude; + } else { + swgILSDemodSettings->setLongitude(new QString(settings.m_longitude)); + } } if (channelSettingsKeys.contains("elevation") || force) { swgILSDemodSettings->setElevation(settings.m_elevation); @@ -782,13 +830,21 @@ void ILSDemod::webapiFormatChannelSettings( swgILSDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgILSDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgILSDemodSettings->getUdpAddress()) { + *swgILSDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgILSDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgILSDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgILSDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgILSDemodSettings->getLogFilename()) { + *swgILSDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgILSDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgILSDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -797,7 +853,11 @@ void ILSDemod::webapiFormatChannelSettings( swgILSDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgILSDemodSettings->setTitle(new QString(settings.m_title)); + if (swgILSDemodSettings->getTitle()) { + *swgILSDemodSettings->getTitle() = settings.m_title; + } else { + swgILSDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgILSDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp b/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp index 5c38195b9..1e5865d8c 100644 --- a/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp +++ b/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp @@ -475,9 +475,17 @@ void InmarsatDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& response.getInmarsatDemodSettings()->setRrcRolloff(settings.m_rrcRolloff); response.getInmarsatDemodSettings()->setPllBandwidth(settings.m_pllBW); response.getInmarsatDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getInmarsatDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getInmarsatDemodSettings()->getUdpAddress()) { + *response.getInmarsatDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getInmarsatDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getInmarsatDemodSettings()->setUdpPort(settings.m_udpPort); - response.getInmarsatDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getInmarsatDemodSettings()->getLogFilename()) { + *response.getInmarsatDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getInmarsatDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getInmarsatDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getInmarsatDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -575,7 +583,11 @@ void InmarsatDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("InmarsatDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "InmarsatDemod"; + } else { + swgChannelSettings->setChannelType(new QString("InmarsatDemod")); + } swgChannelSettings->setInmarsatDemodSettings(new SWGSDRangel::SWGInmarsatDemodSettings()); SWGSDRangel::SWGInmarsatDemodSettings *swgInmarsatDemodSettings = swgChannelSettings->getInmarsatDemodSettings(); @@ -597,13 +609,21 @@ void InmarsatDemod::webapiFormatChannelSettings( swgInmarsatDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgInmarsatDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgInmarsatDemodSettings->getUdpAddress()) { + *swgInmarsatDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgInmarsatDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgInmarsatDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgInmarsatDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgInmarsatDemodSettings->getLogFilename()) { + *swgInmarsatDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgInmarsatDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgInmarsatDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -615,7 +635,11 @@ void InmarsatDemod::webapiFormatChannelSettings( swgInmarsatDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgInmarsatDemodSettings->setTitle(new QString(settings.m_title)); + if (swgInmarsatDemodSettings->getTitle()) { + *swgInmarsatDemodSettings->getTitle() = settings.m_title; + } else { + swgInmarsatDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgInmarsatDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodinmarsat/inmarsatdemodgui.cpp b/plugins/channelrx/demodinmarsat/inmarsatdemodgui.cpp index a2ba444f6..a0a384dcb 100644 --- a/plugins/channelrx/demodinmarsat/inmarsatdemodgui.cpp +++ b/plugins/channelrx/demodinmarsat/inmarsatdemodgui.cpp @@ -36,6 +36,7 @@ #include "util/db.h" #include "util/units.h" #include "util/osndb.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialogpositioner.h" #include "dsp/glscopesettings.h" @@ -1947,12 +1948,12 @@ void InmarsatDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "Inmarsat Demod", error); + MessageDialog::critical(this, "Inmarsat Demod", error); } } else { - QMessageBox::critical(this, "Inmarsat Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Inmarsat Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodm17/m17demod.cpp b/plugins/channelrx/demodm17/m17demod.cpp index 5743efbf1..46285c615 100644 --- a/plugins/channelrx/demodm17/m17demod.cpp +++ b/plugins/channelrx/demodm17/m17demod.cpp @@ -631,7 +631,11 @@ void M17Demod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setM17DemodSettings(new SWGSDRangel::SWGM17DemodSettings()); SWGSDRangel::SWGM17DemodSettings *swgM17DemodSettings = swgChannelSettings->getM17DemodSettings(); @@ -671,10 +675,18 @@ void M17Demod::webapiFormatChannelSettings( swgM17DemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgM17DemodSettings->setTitle(new QString(settings.m_title)); + if (swgM17DemodSettings->getTitle()) { + *swgM17DemodSettings->getTitle() = settings.m_title; + } else { + swgM17DemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgM17DemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgM17DemodSettings->getAudioDeviceName()) { + *swgM17DemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgM17DemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("highPassFilter") || force) { swgM17DemodSettings->setHighPassFilter(settings.m_highPassFilter ? 1 : 0); diff --git a/plugins/channelrx/demodm17/m17statustextdialog.cpp b/plugins/channelrx/demodm17/m17statustextdialog.cpp index 28f4b3883..849779aa4 100644 --- a/plugins/channelrx/demodm17/m17statustextdialog.cpp +++ b/plugins/channelrx/demodm17/m17statustextdialog.cpp @@ -28,6 +28,8 @@ #include #include +#include "gui/messagedialog.h" + M17StatusTextDialog::M17StatusTextDialog(QWidget* parent) : QDialog(parent), ui(new Ui::M17StatusTextDialog) @@ -84,7 +86,7 @@ void M17StatusTextDialog::on_saveLog_clicked() } else { - QMessageBox::information(this, tr("Message"), tr("Cannot open file for writing")); + MessageDialog::information(this, tr("Message"), tr("Cannot open file for writing")); } } diff --git a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp index 44d9a0448..4825a20b7 100644 --- a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp +++ b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp @@ -1476,10 +1476,26 @@ void MeshcoreDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& res response.getMeshcoreDemodReport()->setHeaderCrcStatus(m_lastMsgHeaderCRC); response.getMeshcoreDemodReport()->setPayloadParityStatus(m_lastMsgPayloadParityStatus); response.getMeshcoreDemodReport()->setPayloadCrcStatus(m_lastMsgPayloadCRC); - response.getMeshcoreDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); - response.getMeshcoreDemodReport()->setMessageString(new QString(m_lastMsgString)); - response.getMeshcoreDemodReport()->setFrameType(new QString(m_lastFrameType)); - response.getMeshcoreDemodReport()->setChannelType(new QString(m_lastMsgPipelineName)); + if (response.getMeshcoreDemodReport()->getMessageTimestamp()) { + *response.getMeshcoreDemodReport()->getMessageTimestamp() = m_lastMsgTimestamp; + } else { + response.getMeshcoreDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); + } + if (response.getMeshcoreDemodReport()->getMessageString()) { + *response.getMeshcoreDemodReport()->getMessageString() = m_lastMsgString; + } else { + response.getMeshcoreDemodReport()->setMessageString(new QString(m_lastMsgString)); + } + if (response.getMeshcoreDemodReport()->getFrameType()) { + *response.getMeshcoreDemodReport()->getFrameType() = m_lastFrameType; + } else { + response.getMeshcoreDemodReport()->setFrameType(new QString(m_lastFrameType)); + } + if (response.getMeshcoreDemodReport()->getChannelType()) { + *response.getMeshcoreDemodReport()->getChannelType() = m_lastMsgPipelineName; + } else { + response.getMeshcoreDemodReport()->setChannelType(new QString(m_lastMsgPipelineName)); + } response.getMeshcoreDemodReport()->setDecoding(getDemodActive() ? 1 : 0); response.getMeshcoreDemodReport()->setMessageBytes(new QList); @@ -1552,7 +1568,11 @@ void MeshcoreDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setMeshcoreDemodSettings(new SWGSDRangel::SWGMeshcoreDemodSettings()); SWGSDRangel::SWGMeshcoreDemodSettings *swgMeshcoreDemodSettings = swgChannelSettings->getMeshcoreDemodSettings(); @@ -1595,7 +1615,11 @@ void MeshcoreDemod::webapiFormatChannelSettings( swgMeshcoreDemodSettings->setSendJsonViaUdp(settings.m_sendJsonViaUDP ? 1 : 0); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgMeshcoreDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgMeshcoreDemodSettings->getUdpAddress()) { + *swgMeshcoreDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgMeshcoreDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgMeshcoreDemodSettings->setUdpPort(settings.m_udpPort); @@ -1607,7 +1631,11 @@ void MeshcoreDemod::webapiFormatChannelSettings( swgMeshcoreDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgMeshcoreDemodSettings->setTitle(new QString(settings.m_title)); + if (swgMeshcoreDemodSettings->getTitle()) { + *swgMeshcoreDemodSettings->getTitle() = settings.m_title; + } else { + swgMeshcoreDemodSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_spectrumGUI && (channelSettingsKeys.contains("spectrumConfig") || force)) diff --git a/plugins/channelrx/demodmeshcore/meshcorekeysdialog.cpp b/plugins/channelrx/demodmeshcore/meshcorekeysdialog.cpp index 7e49137b7..c1e3209e5 100644 --- a/plugins/channelrx/demodmeshcore/meshcorekeysdialog.cpp +++ b/plugins/channelrx/demodmeshcore/meshcorekeysdialog.cpp @@ -20,6 +20,8 @@ #include "ui_meshcorekeysdialog.h" #include "meshcorepacket.h" +#include "gui/messagedialog.h" + MeshcoreKeysDialog::MeshcoreKeysDialog(QWidget *parent) : QDialog(parent), ui(new Ui::MeshcoreKeysDialog) @@ -53,7 +55,7 @@ void MeshcoreKeysDialog::accept() { if (!validateCurrentInput()) { - QMessageBox::warning(this, tr("Invalid Keys"), tr("Fix the Meshcore key list before saving.")); + MessageDialog::warning(this, tr("Invalid Keys"), tr("Fix the Meshcore key list before saving.")); return; } diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp index 3a9ba0f2f..245d4c979 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp @@ -1406,10 +1406,26 @@ void MeshtasticDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& r response.getMeshtasticDemodReport()->setHeaderCrcStatus(m_lastMsgHeaderCRC); response.getMeshtasticDemodReport()->setPayloadParityStatus(m_lastMsgPayloadParityStatus); response.getMeshtasticDemodReport()->setPayloadCrcStatus(m_lastMsgPayloadCRC); - response.getMeshtasticDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); - response.getMeshtasticDemodReport()->setMessageString(new QString(m_lastMsgString)); - response.getMeshtasticDemodReport()->setFrameType(new QString(m_lastFrameType)); - response.getMeshtasticDemodReport()->setChannelType(new QString(m_lastMsgPipelineName)); + if (response.getMeshtasticDemodReport()->getMessageTimestamp()) { + *response.getMeshtasticDemodReport()->getMessageTimestamp() = m_lastMsgTimestamp; + } else { + response.getMeshtasticDemodReport()->setMessageTimestamp(new QString(m_lastMsgTimestamp)); + } + if (response.getMeshtasticDemodReport()->getMessageString()) { + *response.getMeshtasticDemodReport()->getMessageString() = m_lastMsgString; + } else { + response.getMeshtasticDemodReport()->setMessageString(new QString(m_lastMsgString)); + } + if (response.getMeshtasticDemodReport()->getFrameType()) { + *response.getMeshtasticDemodReport()->getFrameType() = m_lastFrameType; + } else { + response.getMeshtasticDemodReport()->setFrameType(new QString(m_lastFrameType)); + } + if (response.getMeshtasticDemodReport()->getChannelType()) { + *response.getMeshtasticDemodReport()->getChannelType() = m_lastMsgPipelineName; + } else { + response.getMeshtasticDemodReport()->setChannelType(new QString(m_lastMsgPipelineName)); + } response.getMeshtasticDemodReport()->setDecoding(getDemodActive() ? 1 : 0); response.getMeshtasticDemodReport()->setMessageBytes(new QList); @@ -1482,7 +1498,11 @@ void MeshtasticDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setMeshtasticDemodSettings(new SWGSDRangel::SWGMeshtasticDemodSettings()); SWGSDRangel::SWGMeshtasticDemodSettings *swgMeshtasticDemodSettings = swgChannelSettings->getMeshtasticDemodSettings(); @@ -1525,7 +1545,11 @@ void MeshtasticDemod::webapiFormatChannelSettings( swgMeshtasticDemodSettings->setSendJsonViaUdp(settings.m_sendJsonViaUDP ? 1 : 0); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgMeshtasticDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgMeshtasticDemodSettings->getUdpAddress()) { + *swgMeshtasticDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgMeshtasticDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgMeshtasticDemodSettings->setUdpPort(settings.m_udpPort); @@ -1537,7 +1561,11 @@ void MeshtasticDemod::webapiFormatChannelSettings( swgMeshtasticDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgMeshtasticDemodSettings->setTitle(new QString(settings.m_title)); + if (swgMeshtasticDemodSettings->getTitle()) { + *swgMeshtasticDemodSettings->getTitle() = settings.m_title; + } else { + swgMeshtasticDemodSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_spectrumGUI && (channelSettingsKeys.contains("spectrumConfig") || force)) diff --git a/plugins/channelrx/demodmeshtastic/meshtastickeysdialog.cpp b/plugins/channelrx/demodmeshtastic/meshtastickeysdialog.cpp index 8218605f1..7c8b2a988 100644 --- a/plugins/channelrx/demodmeshtastic/meshtastickeysdialog.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtastickeysdialog.cpp @@ -20,6 +20,8 @@ #include "ui_meshtastickeysdialog.h" #include "meshtasticpacket.h" +#include "gui/messagedialog.h" + MeshtasticKeysDialog::MeshtasticKeysDialog(QWidget *parent) : QDialog(parent), ui(new Ui::MeshtasticKeysDialog) @@ -53,7 +55,7 @@ void MeshtasticKeysDialog::accept() { if (!validateCurrentInput()) { - QMessageBox::warning(this, tr("Invalid Keys"), tr("Fix the Meshtastic key list before saving.")); + MessageDialog::warning(this, tr("Invalid Keys"), tr("Fix the Meshtastic key list before saving.")); return; } diff --git a/plugins/channelrx/demodnavtex/navtexdemod.cpp b/plugins/channelrx/demodnavtex/navtexdemod.cpp index 0335635a4..265eacb7c 100644 --- a/plugins/channelrx/demodnavtex/navtexdemod.cpp +++ b/plugins/channelrx/demodnavtex/navtexdemod.cpp @@ -493,12 +493,28 @@ void NavtexDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& r response.getNavtexDemodSettings()->setInputFrequencyOffset(settings.m_inputFrequencyOffset); response.getNavtexDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getNavtexDemodSettings()->setNavArea(settings.m_navArea); - response.getNavtexDemodSettings()->setFilterStation(new QString(settings.m_filterStation)); - response.getNavtexDemodSettings()->setFilterType(new QString(settings.m_filterType)); + if (response.getNavtexDemodSettings()->getFilterStation()) { + *response.getNavtexDemodSettings()->getFilterStation() = settings.m_filterStation; + } else { + response.getNavtexDemodSettings()->setFilterStation(new QString(settings.m_filterStation)); + } + if (response.getNavtexDemodSettings()->getFilterType()) { + *response.getNavtexDemodSettings()->getFilterType() = settings.m_filterType; + } else { + response.getNavtexDemodSettings()->setFilterType(new QString(settings.m_filterType)); + } response.getNavtexDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getNavtexDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getNavtexDemodSettings()->getUdpAddress()) { + *response.getNavtexDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getNavtexDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getNavtexDemodSettings()->setUdpPort(settings.m_udpPort); - response.getNavtexDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getNavtexDemodSettings()->getLogFilename()) { + *response.getNavtexDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getNavtexDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getNavtexDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getNavtexDemodSettings()->setRgbColor(settings.m_rgbColor); @@ -608,7 +624,11 @@ void NavtexDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("NavtexDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "NavtexDemod"; + } else { + swgChannelSettings->setChannelType(new QString("NavtexDemod")); + } swgChannelSettings->setNavtexDemodSettings(new SWGSDRangel::SWGNavtexDemodSettings()); SWGSDRangel::SWGNavtexDemodSettings *swgNavtexDemodSettings = swgChannelSettings->getNavtexDemodSettings(); @@ -624,22 +644,38 @@ void NavtexDemod::webapiFormatChannelSettings( swgNavtexDemodSettings->setNavArea(settings.m_navArea); } if (channelSettingsKeys.contains("filterStation") || force) { - swgNavtexDemodSettings->setFilterStation(new QString(settings.m_filterStation)); + if (swgNavtexDemodSettings->getFilterStation()) { + *swgNavtexDemodSettings->getFilterStation() = settings.m_filterStation; + } else { + swgNavtexDemodSettings->setFilterStation(new QString(settings.m_filterStation)); + } } if (channelSettingsKeys.contains("filterType") || force) { - swgNavtexDemodSettings->setFilterType(new QString(settings.m_filterType)); + if (swgNavtexDemodSettings->getFilterType()) { + *swgNavtexDemodSettings->getFilterType() = settings.m_filterType; + } else { + swgNavtexDemodSettings->setFilterType(new QString(settings.m_filterType)); + } } if (channelSettingsKeys.contains("udpEnabled") || force) { swgNavtexDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgNavtexDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgNavtexDemodSettings->getUdpAddress()) { + *swgNavtexDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgNavtexDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgNavtexDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgNavtexDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgNavtexDemodSettings->getLogFilename()) { + *swgNavtexDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgNavtexDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgNavtexDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -648,7 +684,11 @@ void NavtexDemod::webapiFormatChannelSettings( swgNavtexDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgNavtexDemodSettings->setTitle(new QString(settings.m_title)); + if (swgNavtexDemodSettings->getTitle()) { + *swgNavtexDemodSettings->getTitle() = settings.m_title; + } else { + swgNavtexDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgNavtexDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodnavtex/navtexdemodgui.cpp b/plugins/channelrx/demodnavtex/navtexdemodgui.cpp index d08b1908c..c44fa249f 100644 --- a/plugins/channelrx/demodnavtex/navtexdemodgui.cpp +++ b/plugins/channelrx/demodnavtex/navtexdemodgui.cpp @@ -35,6 +35,7 @@ #include "plugin/pluginapi.h" #include "util/csv.h" #include "util/db.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/decimaldelegate.h" #include "dsp/dspengine.h" @@ -850,12 +851,12 @@ void NavtexDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "Navtex Demod", error); + MessageDialog::critical(this, "Navtex Demod", error); } } else { - QMessageBox::critical(this, "Navtex Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Navtex Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodnfm/nfmdemod.cpp b/plugins/channelrx/demodnfm/nfmdemod.cpp index e202ee680..92c4fc289 100644 --- a/plugins/channelrx/demodnfm/nfmdemod.cpp +++ b/plugins/channelrx/demodnfm/nfmdemod.cpp @@ -605,7 +605,11 @@ void NFMDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setNfmDemodSettings(new SWGSDRangel::SWGNFMDemodSettings()); SWGSDRangel::SWGNFMDemodSettings *swgNFMDemodSettings = swgChannelSettings->getNfmDemodSettings(); @@ -648,13 +652,21 @@ void NFMDemod::webapiFormatChannelSettings( swgNFMDemodSettings->setSquelchGate(settings.m_squelchGate); } if (channelSettingsKeys.contains("title") || force) { - swgNFMDemodSettings->setTitle(new QString(settings.m_title)); + if (swgNFMDemodSettings->getTitle()) { + *swgNFMDemodSettings->getTitle() = settings.m_title; + } else { + swgNFMDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("volume") || force) { swgNFMDemodSettings->setVolume(settings.m_volume); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgNFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgNFMDemodSettings->getAudioDeviceName()) { + *swgNFMDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgNFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgNFMDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodpacket/packetdemod.cpp b/plugins/channelrx/demodpacket/packetdemod.cpp index 0d06026ca..bc8b70f11 100644 --- a/plugins/channelrx/demodpacket/packetdemod.cpp +++ b/plugins/channelrx/demodpacket/packetdemod.cpp @@ -494,9 +494,17 @@ void PacketDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& r response.getPacketDemodSettings()->setMode((int) settings.m_mode); response.getPacketDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getPacketDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getPacketDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getPacketDemodSettings()->getUdpAddress()) { + *response.getPacketDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getPacketDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getPacketDemodSettings()->setUdpPort(settings.m_udpPort); - response.getPacketDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getPacketDemodSettings()->getLogFilename()) { + *response.getPacketDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getPacketDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getPacketDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getPacketDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -594,7 +602,11 @@ void PacketDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("PacketDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "PacketDemod"; + } else { + swgChannelSettings->setChannelType(new QString("PacketDemod")); + } swgChannelSettings->setPacketDemodSettings(new SWGSDRangel::SWGPacketDemodSettings()); SWGSDRangel::SWGPacketDemodSettings *swgPacketDemodSettings = swgChannelSettings->getPacketDemodSettings(); @@ -619,13 +631,21 @@ void PacketDemod::webapiFormatChannelSettings( swgPacketDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgPacketDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgPacketDemodSettings->getUdpAddress()) { + *swgPacketDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgPacketDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgPacketDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgPacketDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgPacketDemodSettings->getLogFilename()) { + *swgPacketDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgPacketDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgPacketDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -637,7 +657,11 @@ void PacketDemod::webapiFormatChannelSettings( swgPacketDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgPacketDemodSettings->setTitle(new QString(settings.m_title)); + if (swgPacketDemodSettings->getTitle()) { + *swgPacketDemodSettings->getTitle() = settings.m_title; + } else { + swgPacketDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgPacketDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodpacket/packetdemodgui.cpp b/plugins/channelrx/demodpacket/packetdemodgui.cpp index 42a4b8149..d0f3331f1 100644 --- a/plugins/channelrx/demodpacket/packetdemodgui.cpp +++ b/plugins/channelrx/demodpacket/packetdemodgui.cpp @@ -36,6 +36,7 @@ #include "plugin/pluginapi.h" #include "util/csv.h" #include "util/db.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" #include "gui/dialogpositioner.h" @@ -719,12 +720,12 @@ void PacketDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "Packet Demod", error); + MessageDialog::critical(this, "Packet Demod", error); } } else { - QMessageBox::critical(this, "Packet Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Packet Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodpager/pagerdemod.cpp b/plugins/channelrx/demodpager/pagerdemod.cpp index b0a682642..9f01a7ea2 100644 --- a/plugins/channelrx/demodpager/pagerdemod.cpp +++ b/plugins/channelrx/demodpager/pagerdemod.cpp @@ -485,9 +485,17 @@ void PagerDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& re response.getPagerDemodSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getPagerDemodSettings()->setFmDeviation(settings.m_fmDeviation); response.getPagerDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getPagerDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getPagerDemodSettings()->getUdpAddress()) { + *response.getPagerDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getPagerDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getPagerDemodSettings()->setUdpPort(settings.m_udpPort); - response.getPagerDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getPagerDemodSettings()->getLogFilename()) { + *response.getPagerDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getPagerDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getPagerDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getPagerDemodSettings()->setRgbColor(settings.m_rgbColor); @@ -598,7 +606,11 @@ void PagerDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("PagerDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "PagerDemod"; + } else { + swgChannelSettings->setChannelType(new QString("PagerDemod")); + } swgChannelSettings->setPagerDemodSettings(new SWGSDRangel::SWGPagerDemodSettings()); SWGSDRangel::SWGPagerDemodSettings *swgPagerDemodSettings = swgChannelSettings->getPagerDemodSettings(); @@ -623,13 +635,21 @@ void PagerDemod::webapiFormatChannelSettings( swgPagerDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgPagerDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgPagerDemodSettings->getUdpAddress()) { + *swgPagerDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgPagerDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgPagerDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgPagerDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgPagerDemodSettings->getLogFilename()) { + *swgPagerDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgPagerDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgPagerDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -638,7 +658,11 @@ void PagerDemod::webapiFormatChannelSettings( swgPagerDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgPagerDemodSettings->setTitle(new QString(settings.m_title)); + if (swgPagerDemodSettings->getTitle()) { + *swgPagerDemodSettings->getTitle() = settings.m_title; + } else { + swgPagerDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgPagerDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodpager/pagerdemodgui.cpp b/plugins/channelrx/demodpager/pagerdemodgui.cpp index a76582cfc..1e1ea6811 100644 --- a/plugins/channelrx/demodpager/pagerdemodgui.cpp +++ b/plugins/channelrx/demodpager/pagerdemodgui.cpp @@ -36,6 +36,7 @@ #include "util/db.h" #include "util/csv.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/crightclickenabler.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" @@ -897,12 +898,12 @@ void PagerDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "Pager Demod", error); + MessageDialog::critical(this, "Pager Demod", error); } } else { - QMessageBox::critical(this, "Pager Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Pager Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp index ced5182f4..65758e3d8 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp @@ -29,9 +29,11 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" #include "dsp/dspcommands.h" +#include "util/db.h" #include "device/deviceapi.h" #include "maincore.h" @@ -413,6 +415,27 @@ int RadiosondeDemod::webapiWorkspaceGet( return 200; } +int RadiosondeDemod::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setRadiosondeDemodReport(new SWGSDRangel::SWGRadiosondeDemodReport()); + response.getRadiosondeDemodReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void RadiosondeDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + double magsqAvg, magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + + response.getRadiosondeDemodReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + response.getRadiosondeDemodReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); +} + int RadiosondeDemod::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, @@ -519,9 +542,17 @@ void RadiosondeDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSetting response.getRadiosondeDemodSettings()->setFmDeviation(settings.m_fmDeviation); response.getRadiosondeDemodSettings()->setCorrelationThreshold(settings.m_correlationThreshold); response.getRadiosondeDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getRadiosondeDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getRadiosondeDemodSettings()->getUdpAddress()) { + *response.getRadiosondeDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getRadiosondeDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getRadiosondeDemodSettings()->setUdpPort(settings.m_udpPort); - response.getRadiosondeDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getRadiosondeDemodSettings()->getLogFilename()) { + *response.getRadiosondeDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getRadiosondeDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getRadiosondeDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getRadiosondeDemodSettings()->setUseFileTime(settings.m_useFileTime); @@ -623,7 +654,11 @@ void RadiosondeDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("RadiosondeDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "RadiosondeDemod"; + } else { + swgChannelSettings->setChannelType(new QString("RadiosondeDemod")); + } swgChannelSettings->setRadiosondeDemodSettings(new SWGSDRangel::SWGRadiosondeDemodSettings()); SWGSDRangel::SWGRadiosondeDemodSettings *swgRadiosondeDemodSettings = swgChannelSettings->getRadiosondeDemodSettings(); @@ -648,13 +683,21 @@ void RadiosondeDemod::webapiFormatChannelSettings( swgRadiosondeDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgRadiosondeDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgRadiosondeDemodSettings->getUdpAddress()) { + *swgRadiosondeDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgRadiosondeDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgRadiosondeDemodSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("logFilename") || force) { - swgRadiosondeDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgRadiosondeDemodSettings->getLogFilename()) { + *swgRadiosondeDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgRadiosondeDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgRadiosondeDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -666,7 +709,11 @@ void RadiosondeDemod::webapiFormatChannelSettings( swgRadiosondeDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRadiosondeDemodSettings->setTitle(new QString(settings.m_title)); + if (swgRadiosondeDemodSettings->getTitle()) { + *swgRadiosondeDemodSettings->getTitle() = settings.m_title; + } else { + swgRadiosondeDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRadiosondeDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodradiosonde/radiosondedemod.h b/plugins/channelrx/demodradiosonde/radiosondedemod.h index 093fae449..90daacce7 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemod.h +++ b/plugins/channelrx/demodradiosonde/radiosondedemod.h @@ -154,6 +154,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage); + static void webapiFormatChannelSettings( SWGSDRangel::SWGChannelSettings& response, const RadiosondeDemodSettings& settings); @@ -194,6 +198,7 @@ private: virtual bool handleMessage(const Message& cmd); void applySettings(const QStringList& settingsKeys, const RadiosondeDemodSettings& settings, bool force = false); void sendSampleRateToDemodAnalyzer(); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QStringList& channelSettingsKeys, const RadiosondeDemodSettings& settings, bool force); void webapiFormatChannelSettings( const QStringList& channelSettingsKeys, diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.cpp b/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.cpp index fca7a4b3a..cbe904997 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.cpp @@ -172,6 +172,11 @@ void RadiosondeDemodBaseband::applySettings(const QStringList& settingsKeys, con } } +int RadiosondeDemodBaseband::getChannelSampleRate() const +{ + return m_channelizer->getChannelSampleRate(); +} + void RadiosondeDemodBaseband::setBasebandSampleRate(int sampleRate) { m_channelizer->setBasebandSampleRate(sampleRate); diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.h b/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.h index 37854b178..0b66b6df7 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.h +++ b/plugins/channelrx/demodradiosonde/radiosondedemodbaseband.h @@ -75,6 +75,7 @@ public: void getMagSqLevels(double& avg, double& peak, int& nbSamples) { m_sink.getMagSqLevels(avg, peak, nbSamples); } + int getChannelSampleRate() const; void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); } void setBasebandSampleRate(int sampleRate); ScopeVis *getScopeSink() { return &m_scopeSink; } diff --git a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp index 081e4508d..0515c3bfa 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemodgui.cpp @@ -35,6 +35,7 @@ #include "util/csv.h" #include "util/db.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/datetimedelegate.h" #include "gui/decimaldelegate.h" @@ -913,12 +914,12 @@ void RadiosondeDemodGUI::on_logOpen_clicked() } else { - QMessageBox::critical(this, "Radiosonde Demod", error); + MessageDialog::critical(this, "Radiosonde Demod", error); } } else { - QMessageBox::critical(this, "Radiosonde Demod", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radiosonde Demod", QString("Failed to open file %1").arg(fileNames[0])); } } } diff --git a/plugins/channelrx/demodrtty/rttydemod.cpp b/plugins/channelrx/demodrtty/rttydemod.cpp index 28018e042..f50637209 100644 --- a/plugins/channelrx/demodrtty/rttydemod.cpp +++ b/plugins/channelrx/demodrtty/rttydemod.cpp @@ -340,7 +340,11 @@ void RttyDemod::applySettings(const QStringList& settingsKeys, const RttyDemodSe } } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void RttyDemod::sendSampleRateToDemodAnalyzer() @@ -532,7 +536,11 @@ void RttyDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& res response.getRttyDemodSettings()->setBaudRate(settings.m_baudRate); response.getRttyDemodSettings()->setFrequencyShift(settings.m_frequencyShift); response.getRttyDemodSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getRttyDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getRttyDemodSettings()->getUdpAddress()) { + *response.getRttyDemodSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getRttyDemodSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getRttyDemodSettings()->setUdpPort(settings.m_udpPort); response.getRttyDemodSettings()->setCharacterSet(settings.m_characterSet); response.getRttyDemodSettings()->setSuppressCrlf(settings.m_suppressCRLF); @@ -540,7 +548,11 @@ void RttyDemod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& res response.getRttyDemodSettings()->setMsbFirst(settings.m_msbFirst); response.getRttyDemodSettings()->setSpaceHigh(settings.m_spaceHigh); response.getRttyDemodSettings()->setSquelch(settings.m_squelch); - response.getRttyDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + if (response.getRttyDemodSettings()->getLogFilename()) { + *response.getRttyDemodSettings()->getLogFilename() = settings.m_logFilename; + } else { + response.getRttyDemodSettings()->setLogFilename(new QString(settings.m_logFilename)); + } response.getRttyDemodSettings()->setLogEnabled(settings.m_logEnabled); response.getRttyDemodSettings()->setRgbColor(settings.m_rgbColor); @@ -650,7 +662,11 @@ void RttyDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("RttyDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "RttyDemod"; + } else { + swgChannelSettings->setChannelType(new QString("RttyDemod")); + } swgChannelSettings->setRttyDemodSettings(new SWGSDRangel::SWGRTTYDemodSettings()); SWGSDRangel::SWGRTTYDemodSettings *swgRttyDemodSettings = swgChannelSettings->getRttyDemodSettings(); @@ -672,7 +688,11 @@ void RttyDemod::webapiFormatChannelSettings( swgRttyDemodSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgRttyDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgRttyDemodSettings->getUdpAddress()) { + *swgRttyDemodSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgRttyDemodSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgRttyDemodSettings->setUdpPort(settings.m_udpPort); @@ -696,7 +716,11 @@ void RttyDemod::webapiFormatChannelSettings( swgRttyDemodSettings->setSquelch(settings.m_squelch); } if (channelSettingsKeys.contains("logFilename") || force) { - swgRttyDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + if (swgRttyDemodSettings->getLogFilename()) { + *swgRttyDemodSettings->getLogFilename() = settings.m_logFilename; + } else { + swgRttyDemodSettings->setLogFilename(new QString(settings.m_logFilename)); + } } if (channelSettingsKeys.contains("logEnabled") || force) { swgRttyDemodSettings->setLogEnabled(settings.m_logEnabled); @@ -705,7 +729,11 @@ void RttyDemod::webapiFormatChannelSettings( swgRttyDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRttyDemodSettings->setTitle(new QString(settings.m_title)); + if (swgRttyDemodSettings->getTitle()) { + *swgRttyDemodSettings->getTitle() = settings.m_title; + } else { + swgRttyDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRttyDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodssb/ssbdemod.cpp b/plugins/channelrx/demodssb/ssbdemod.cpp index f91b570d7..4c5378f96 100644 --- a/plugins/channelrx/demodssb/ssbdemod.cpp +++ b/plugins/channelrx/demodssb/ssbdemod.cpp @@ -379,13 +379,26 @@ int SSBDemod::webapiSettingsPutPatch( SSBDemodSettings settings = m_settings; webapiUpdateChannelSettings(settings, channelSettingsKeys, response); - MsgConfigureSSBDemod *msg = MsgConfigureSSBDemod::create(channelSettingsKeys, settings, force); + // The filter keys set one entry of the filter bank, and the settings are applied by key + // name with the bank copied as a whole under its own, so that is the key to pass on + QStringList settingsKeys = channelSettingsKeys; + + for (const char *key : {"rfBandwidth", "lowCutoff", "spanLog2", "fftWindow"}) + { + if (settingsKeys.contains(key) && !settingsKeys.contains("filterBank")) + { + settingsKeys.append("filterBank"); + break; + } + } + + MsgConfigureSSBDemod *msg = MsgConfigureSSBDemod::create(settingsKeys, settings, force); m_inputMessageQueue.push(msg); qDebug("SSBDemod::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureSSBDemod *msgToGUI = MsgConfigureSSBDemod::create(channelSettingsKeys, settings, force); + MsgConfigureSSBDemod *msgToGUI = MsgConfigureSSBDemod::create(settingsKeys, settings, force); m_guiMessageQueue->push(msgToGUI); } @@ -414,7 +427,7 @@ void SSBDemod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("lowCutoff")) { settings.m_filterBank[settings.m_filterIndex].m_lowCutoff = response.getSsbDemodSettings()->getLowCutoff(); } - if (channelSettingsKeys.contains("fftWimdow")) { + if (channelSettingsKeys.contains("fftWindow")) { settings.m_filterBank[settings.m_filterIndex].m_fftWindow = (FFTWindow::Function) response.getSsbDemodSettings()->getFftWindow(); } if (channelSettingsKeys.contains("volume")) { @@ -447,6 +460,9 @@ void SSBDemod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("agcThresholdGate")) { settings.m_agcThresholdGate = response.getSsbDemodSettings()->getAgcThresholdGate(); } + if (channelSettingsKeys.contains("dnrScheme")) { + settings.m_dnrScheme = response.getSsbDemodSettings()->getDnrScheme(); + } if (channelSettingsKeys.contains("dnr")) { settings.m_dnr = response.getSsbDemodSettings()->getDnr() != 0; } @@ -684,7 +700,11 @@ void SSBDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setSsbDemodSettings(new SWGSDRangel::SWGSSBDemodSettings()); SWGSDRangel::SWGSSBDemodSettings *swgSSBDemodSettings = swgChannelSettings->getSsbDemodSettings(); @@ -757,10 +777,18 @@ void SSBDemod::webapiFormatChannelSettings( swgSSBDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgSSBDemodSettings->setTitle(new QString(settings.m_title)); + if (swgSSBDemodSettings->getTitle()) { + *swgSSBDemodSettings->getTitle() = settings.m_title; + } else { + swgSSBDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgSSBDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgSSBDemodSettings->getAudioDeviceName()) { + *swgSSBDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgSSBDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgSSBDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodvor/vordemod.cpp b/plugins/channelrx/demodvor/vordemod.cpp index de214741b..a09de93f5 100644 --- a/plugins/channelrx/demodvor/vordemod.cpp +++ b/plugins/channelrx/demodvor/vordemod.cpp @@ -300,7 +300,11 @@ void VORDemod::applySettings(const QStringList& settingsKeys, const VORDemodSett sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray VORDemod::serialize() const @@ -617,7 +621,11 @@ void VORDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("VORDemod")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "VORDemod"; + } else { + swgChannelSettings->setChannelType(new QString("VORDemod")); + } swgChannelSettings->setVorDemodSettings(new SWGSDRangel::SWGVORDemodSettings()); SWGSDRangel::SWGVORDemodSettings *swgVORDemodSettings = swgChannelSettings->getVorDemodSettings(); @@ -642,13 +650,21 @@ void VORDemod::webapiFormatChannelSettings( swgVORDemodSettings->setIdentBandpassEnable(settings.m_identBandpassEnable); } if (channelSettingsKeys.contains("title") || force) { - swgVORDemodSettings->setTitle(new QString(settings.m_title)); + if (swgVORDemodSettings->getTitle()) { + *swgVORDemodSettings->getTitle() = settings.m_title; + } else { + swgVORDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("volume") || force) { swgVORDemodSettings->setVolume(settings.m_volume); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgVORDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgVORDemodSettings->getAudioDeviceName()) { + *swgVORDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgVORDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgVORDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodvormc/vordemodmc.cpp b/plugins/channelrx/demodvormc/vordemodmc.cpp index 5eee7ae17..315cf2edd 100644 --- a/plugins/channelrx/demodvormc/vordemodmc.cpp +++ b/plugins/channelrx/demodvormc/vordemodmc.cpp @@ -508,7 +508,11 @@ void VORDemodMC::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("VORDemodMC")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "VORDemodMC"; + } else { + swgChannelSettings->setChannelType(new QString("VORDemodMC")); + } swgChannelSettings->setVorDemodMcSettings(new SWGSDRangel::SWGVORDemodMCSettings()); SWGSDRangel::SWGVORDemodMCSettings *swgVORDemodSettings = swgChannelSettings->getVorDemodMcSettings(); @@ -524,13 +528,21 @@ void VORDemodMC::webapiFormatChannelSettings( swgVORDemodSettings->setSquelch(settings.m_squelch); } if (channelSettingsKeys.contains("title") || force) { - swgVORDemodSettings->setTitle(new QString(settings.m_title)); + if (swgVORDemodSettings->getTitle()) { + *swgVORDemodSettings->getTitle() = settings.m_title; + } else { + swgVORDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("volume") || force) { swgVORDemodSettings->setVolume(settings.m_volume); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgVORDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgVORDemodSettings->getAudioDeviceName()) { + *swgVORDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgVORDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgVORDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/demodvormc/vordemodmcgui.cpp b/plugins/channelrx/demodvormc/vordemodmcgui.cpp index a06c812f7..b7dd95e33 100644 --- a/plugins/channelrx/demodvormc/vordemodmcgui.cpp +++ b/plugins/channelrx/demodvormc/vordemodmcgui.cpp @@ -37,6 +37,7 @@ #include "util/db.h" #include "util/morse.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" #include "gui/crightclickenabler.h" @@ -1026,7 +1027,7 @@ void VORDemodMCGUI::downloadFinished(const QString& filename, bool success) else { qDebug() << "VORDemodMCGUI::downloadFinished: Failed: " << filename; - QMessageBox::warning(this, "Download failed", QString("Failed to download %1").arg(filename)); + MessageDialog::warning(this, "Download failed", QString("Failed to download %1").arg(filename)); } if (closeDialog && m_progressDialog) { diff --git a/plugins/channelrx/demodwfm/wfmdemod.cpp b/plugins/channelrx/demodwfm/wfmdemod.cpp index 7386b43b5..b2552c864 100644 --- a/plugins/channelrx/demodwfm/wfmdemod.cpp +++ b/plugins/channelrx/demodwfm/wfmdemod.cpp @@ -564,7 +564,11 @@ void WFMDemod::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setWfmDemodSettings(new SWGSDRangel::SWGWFMDemodSettings()); SWGSDRangel::SWGWFMDemodSettings *swgWFMDemodSettings = swgChannelSettings->getWfmDemodSettings(); @@ -592,10 +596,18 @@ void WFMDemod::webapiFormatChannelSettings( swgWFMDemodSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgWFMDemodSettings->setTitle(new QString(settings.m_title)); + if (swgWFMDemodSettings->getTitle()) { + *swgWFMDemodSettings->getTitle() = settings.m_title; + } else { + swgWFMDemodSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgWFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgWFMDemodSettings->getAudioDeviceName()) { + *swgWFMDemodSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgWFMDemodSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgWFMDemodSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/filesink/filesink.cpp b/plugins/channelrx/filesink/filesink.cpp index 8d4a4d06e..33f8697dc 100644 --- a/plugins/channelrx/filesink/filesink.cpp +++ b/plugins/channelrx/filesink/filesink.cpp @@ -726,7 +726,11 @@ void FileSink::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setFileSinkSettings(new SWGSDRangel::SWGFileSinkSettings()); SWGSDRangel::SWGFileSinkSettings *swgFileSinkSettings = swgChannelSettings->getFileSinkSettings(); @@ -736,13 +740,21 @@ void FileSink::webapiFormatChannelSettings( swgFileSinkSettings->setInputFrequencyOffset(settings.m_inputFrequencyOffset); } if (channelSettingsKeys.contains("fileRecordName")) { - swgFileSinkSettings->setFileRecordName(new QString(settings.m_fileRecordName)); + if (swgFileSinkSettings->getFileRecordName()) { + *swgFileSinkSettings->getFileRecordName() = settings.m_fileRecordName; + } else { + swgFileSinkSettings->setFileRecordName(new QString(settings.m_fileRecordName)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgFileSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFileSinkSettings->setTitle(new QString(settings.m_title)); + if (swgFileSinkSettings->getTitle()) { + *swgFileSinkSettings->getTitle() = settings.m_title; + } else { + swgFileSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgFileSinkSettings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelrx/filesink/filesinkgui.cpp b/plugins/channelrx/filesink/filesinkgui.cpp index 82e91e045..adbcb4c4a 100644 --- a/plugins/channelrx/filesink/filesinkgui.cpp +++ b/plugins/channelrx/filesink/filesinkgui.cpp @@ -23,6 +23,7 @@ #include "device/deviceuiset.h" #include "device/deviceapi.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -143,7 +144,7 @@ bool FileSinkGUI::handleMessage(const Message& message) const FileSinkMessages::MsgReportSquelch& report = (FileSinkMessages::MsgReportSquelch&) message; qDebug("FileSinkGUI::handleMessage: FileSinkMessages::MsgReportRecording: %s", report.getOpen() ? "on" : "off"); - blockSignals(true); + ui->record->blockSignals(true); if (report.getOpen()) { @@ -156,7 +157,7 @@ bool FileSinkGUI::handleMessage(const Message& message) ui->record->setChecked(false); } - blockSignals(false); + ui->record->blockSignals(false); return true; } else if (FileSinkMessages::MsgReportRecordFileName::match(message)) @@ -168,7 +169,7 @@ bool FileSinkGUI::handleMessage(const Message& message) else if (FileSinkMessages::MsgReportRecordFileError::match(message)) { const FileSinkMessages::MsgReportRecordFileError& report = (FileSinkMessages::MsgReportRecordFileError&) message; - QMessageBox::critical(this, tr("File Error"), report.getMessage()); + MessageDialog::critical(this, tr("File Error"), report.getMessage()); return true; } else diff --git a/plugins/channelrx/filesink/filesinksink.cpp b/plugins/channelrx/filesink/filesinksink.cpp index 675ce05b7..4c696793d 100644 --- a/plugins/channelrx/filesink/filesinksink.cpp +++ b/plugins/channelrx/filesink/filesinksink.cpp @@ -285,18 +285,17 @@ void FileSinkSink::applySettings(const QStringList& settingsKeys, const FileSink << "force: " << force; QString fileRecordName = settings.m_fileRecordName; + QFileInfo fileInfo(settings.m_fileRecordName); + QString extension = fileInfo.suffix(); + if (extension.isEmpty()) { + fileRecordName.append(".sdriq"); + } else if ((extension != "sdriq") && (extension != "wav")) { + fileRecordName.chop(extension.size()); + fileRecordName.append("sdriq"); + } - if ((settingsKeys.contains("fileRecordName") && (settings.m_fileRecordName != m_settings.m_fileRecordName)) || force) + if ((settingsKeys.contains("fileRecordName") || force) && (fileRecordName != m_settings.m_fileRecordName)) { - QFileInfo fileInfo(settings.m_fileRecordName); - QString extension = fileInfo.suffix(); - if (extension.isEmpty()) { - fileRecordName.append(".sdriq"); - } else if ((extension != "sdriq") && (extension != "wav")) { - fileRecordName.chop(extension.size()); - fileRecordName.append("sdriq"); - } - QString fileBase; FileRecordInterface::RecordType recordType = FileRecordInterface::guessTypeFromFileName(fileRecordName, fileBase); @@ -336,7 +335,9 @@ void FileSinkSink::applySettings(const QStringList& settingsKeys, const FileSink m_settings.applySettings(settingsKeys, settings); } - m_settings.m_fileRecordName = fileRecordName; + if (settingsKeys.contains("fileRecordName") || force) { + m_settings.m_fileRecordName = fileRecordName; + } } void FileSinkSink::squelchRecording(bool squelchOpen) diff --git a/plugins/channelrx/freqscanner/freqscanner.cpp b/plugins/channelrx/freqscanner/freqscanner.cpp index 081c8a4b3..b29957194 100644 --- a/plugins/channelrx/freqscanner/freqscanner.cpp +++ b/plugins/channelrx/freqscanner/freqscanner.cpp @@ -994,13 +994,21 @@ int FreqScanner::webapiSettingsPutPatch( FreqScannerSettings settings = m_settings; webapiUpdateChannelSettings(settings, channelSettingsKeys, response); - MsgConfigureFreqScanner *msg = MsgConfigureFreqScanner::create(settings, channelSettingsKeys, force); + // The web API calls the frequency list "frequencies", but everything downstream of here + // keys it as "frequencySettings". Without the alias the list is parsed and then dropped + // when the settings are merged, leaving the scanner with nothing to scan. + QStringList settingsKeys = channelSettingsKeys; + if (settingsKeys.contains("frequencies") && !settingsKeys.contains("frequencySettings")) { + settingsKeys.append("frequencySettings"); + } + + MsgConfigureFreqScanner *msg = MsgConfigureFreqScanner::create(settings, settingsKeys, force); m_inputMessageQueue.push(msg); qDebug("FreqScanner::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureFreqScanner *msgToGUI = MsgConfigureFreqScanner::create(settings, channelSettingsKeys, force); + MsgConfigureFreqScanner *msgToGUI = MsgConfigureFreqScanner::create(settings, settingsKeys, force); m_guiMessageQueue->push(msgToGUI); } @@ -1078,6 +1086,27 @@ void FreqScanner::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("threshold")) { settings.m_threshold = response.getFreqScannerSettings()->getThreshold(); } + if (channelSettingsKeys.contains("channel")) { + settings.m_channel = *response.getFreqScannerSettings()->getChannel(); + } + if (channelSettingsKeys.contains("scanTime")) { + settings.m_scanTime = response.getFreqScannerSettings()->getScanTime(); + } + if (channelSettingsKeys.contains("retransmitTime")) { + settings.m_retransmitTime = response.getFreqScannerSettings()->getRetransmitTime(); + } + if (channelSettingsKeys.contains("tuneTime")) { + settings.m_tuneTime = (int) response.getFreqScannerSettings()->getTuneTime(); + } + if (channelSettingsKeys.contains("priority")) { + settings.m_priority = (FreqScannerSettings::Priority) response.getFreqScannerSettings()->getPriority(); + } + if (channelSettingsKeys.contains("measurement")) { + settings.m_measurement = (FreqScannerSettings::Measurement) response.getFreqScannerSettings()->getMeasurement(); + } + if (channelSettingsKeys.contains("mode")) { + settings.m_mode = (FreqScannerSettings::Mode) response.getFreqScannerSettings()->getMode(); + } if (channelSettingsKeys.contains("frequencies")) { settings.m_frequencySettings.clear(); @@ -1088,6 +1117,7 @@ void FreqScanner::webapiUpdateChannelSettings( { FreqScannerSettings::FrequencySettings freqSetting; freqSetting.m_frequency = frequency->getFrequency(); + freqSetting.m_enabled = frequency->getEnabled() != 0; if (frequency->getNotes()) { freqSetting.m_notes = *frequency->getNotes(); } @@ -1175,6 +1205,19 @@ void FreqScanner::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& r response.getFreqScannerSettings()->setChannelShift(settings.m_channelShift); response.getFreqScannerSettings()->setThreshold(settings.m_threshold); + if (response.getFreqScannerSettings()->getChannel()) { + *response.getFreqScannerSettings()->getChannel() = settings.m_channel; + } else { + response.getFreqScannerSettings()->setChannel(new QString(settings.m_channel)); + } + + response.getFreqScannerSettings()->setScanTime(settings.m_scanTime); + response.getFreqScannerSettings()->setRetransmitTime(settings.m_retransmitTime); + response.getFreqScannerSettings()->setTuneTime(settings.m_tuneTime); + response.getFreqScannerSettings()->setPriority((int) settings.m_priority); + response.getFreqScannerSettings()->setMeasurement((int) settings.m_measurement); + response.getFreqScannerSettings()->setMode((int) settings.m_mode); + QList *frequencies = createFrequencyList(settings); if (response.getFreqScannerSettings()->getFrequencies()) { *response.getFreqScannerSettings()->getFrequencies() = *frequencies; @@ -1282,7 +1325,11 @@ void FreqScanner::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("FreqScanner")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "FreqScanner"; + } else { + swgChannelSettings->setChannelType(new QString("FreqScanner")); + } swgChannelSettings->setFreqScannerSettings(new SWGSDRangel::SWGFreqScannerSettings()); SWGSDRangel::SWGFreqScannerSettings *swgFreqScannerSettings = swgChannelSettings->getFreqScannerSettings(); @@ -1300,6 +1347,31 @@ void FreqScanner::webapiFormatChannelSettings( if (channelSettingsKeys.contains("threshold") || force) { swgFreqScannerSettings->setThreshold(settings.m_threshold); } + if (channelSettingsKeys.contains("channel") || force) { + if (swgFreqScannerSettings->getChannel()) { + *swgFreqScannerSettings->getChannel() = settings.m_channel; + } else { + swgFreqScannerSettings->setChannel(new QString(settings.m_channel)); + } + } + if (channelSettingsKeys.contains("scanTime") || force) { + swgFreqScannerSettings->setScanTime(settings.m_scanTime); + } + if (channelSettingsKeys.contains("retransmitTime") || force) { + swgFreqScannerSettings->setRetransmitTime(settings.m_retransmitTime); + } + if (channelSettingsKeys.contains("tuneTime") || force) { + swgFreqScannerSettings->setTuneTime(settings.m_tuneTime); + } + if (channelSettingsKeys.contains("priority") || force) { + swgFreqScannerSettings->setPriority((int) settings.m_priority); + } + if (channelSettingsKeys.contains("measurement") || force) { + swgFreqScannerSettings->setMeasurement((int) settings.m_measurement); + } + if (channelSettingsKeys.contains("mode") || force) { + swgFreqScannerSettings->setMode((int) settings.m_mode); + } if (channelSettingsKeys.contains("frequencies") || force) { QList *frequencies = createFrequencyList(settings); swgFreqScannerSettings->setFrequencies(frequencies); @@ -1309,7 +1381,11 @@ void FreqScanner::webapiFormatChannelSettings( swgFreqScannerSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFreqScannerSettings->setTitle(new QString(settings.m_title)); + if (swgFreqScannerSettings->getTitle()) { + *swgFreqScannerSettings->getTitle() = settings.m_title; + } else { + swgFreqScannerSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgFreqScannerSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/freqscanner/freqscannergui.cpp b/plugins/channelrx/freqscanner/freqscannergui.cpp index d990b4ffa..f354df7af 100644 --- a/plugins/channelrx/freqscanner/freqscannergui.cpp +++ b/plugins/channelrx/freqscanner/freqscannergui.cpp @@ -30,6 +30,7 @@ #include "dsp/dspengine.h" #include "dsp/dspcommands.h" #include "ui_freqscannergui.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" #include "gui/tabletapandhold.h" @@ -95,10 +96,10 @@ bool FreqScannerGUI::handleMessage(const Message& message) } else { m_settings.applySettings(cfg.getSettingsKeys(), cfg.getSettings()); } - blockApplySettings(true); + bool blocked = blockApplySettings(true); m_channelMarker.updateSettings(static_cast(m_settings.m_channelMarker)); displaySettings(); - blockApplySettings(false); + blockApplySettings(blocked); return true; } else if (DSPSignalNotification::match(message)) @@ -377,25 +378,25 @@ void FreqScannerGUI::on_voiceSquelchType_currentIndexChanged(int index) if (m_settings.m_voiceSquelchType == FreqScannerSettings::VoiceSquelchType::VoiceLsb) { - blockApplySettings(true); + bool blocked = blockApplySettings(true); m_settings.m_channelBandwidth = 3000; ui->channelBandwidth->setValue(m_settings.m_channelBandwidth); m_settings.m_channelShift = 1500; ui->channelShift->setValue(m_settings.m_channelShift); settingsKeys.append("channelBandwidth"); settingsKeys.append("channelShift"); - blockApplySettings(false); + blockApplySettings(blocked); } else if (m_settings.m_voiceSquelchType == FreqScannerSettings::VoiceSquelchType::VoiceUsb) { - blockApplySettings(true); + bool blocked = blockApplySettings(true); m_settings.m_channelBandwidth = 3000; ui->channelBandwidth->setValue(m_settings.m_channelBandwidth); m_settings.m_channelShift = -1500; ui->channelShift->setValue(m_settings.m_channelShift); settingsKeys.append("channelBandwidth"); settingsKeys.append("channelShift"); - blockApplySettings(false); + blockApplySettings(blocked); } applySettings(settingsKeys); @@ -599,9 +600,11 @@ FreqScannerGUI::~FreqScannerGUI() delete ui; } -void FreqScannerGUI::blockApplySettings(bool block) +bool FreqScannerGUI::blockApplySettings(bool block) { + bool blocked = !m_doApplySettings; m_doApplySettings = !block; + return blocked; } void FreqScannerGUI::applySetting(const QString& settingsKey) @@ -638,7 +641,7 @@ void FreqScannerGUI::displaySettings() setWindowTitle(m_channelMarker.getTitle()); setTitle(m_channelMarker.getTitle()); - blockApplySettings(true); + bool blocked = blockApplySettings(true); int channelIndex = ui->channels->findText(m_settings.m_channel); if (channelIndex >= 0) { ui->channels->setCurrentIndex(channelIndex); @@ -688,7 +691,7 @@ void FreqScannerGUI::displaySettings() getRollupContents()->restoreState(m_rollupState); updateAbsoluteCenterFrequency(); - blockApplySettings(false); + blockApplySettings(blocked); } void FreqScannerGUI::leaveEvent(QEvent* event) @@ -795,7 +798,7 @@ void FreqScannerGUI::on_addRange_clicked() new DialogPositioner(&dialog, false); if (dialog.exec()) { - blockApplySettings(true); + bool blocked = blockApplySettings(true); for (const auto f : dialog.m_frequencies) { FreqScannerSettings::FrequencySettings frequencySettings; @@ -803,7 +806,7 @@ void FreqScannerGUI::on_addRange_clicked() frequencySettings.m_enabled = true; addRow(frequencySettings); } - blockApplySettings(false); + blockApplySettings(blocked); applySetting("frequencySettings"); } } @@ -920,7 +923,7 @@ void FreqScannerGUI::on_importFreqs_clicked() if (error.isEmpty()) { // Clear existing entries - blockApplySettings(true); + bool blocked = blockApplySettings(true); ui->table->setRowCount(0); int freqCol = colIndexes.value("Freq (Hz)"); @@ -951,20 +954,20 @@ void FreqScannerGUI::on_importFreqs_clicked() } updateAnnotations(); - blockApplySettings(false); + blockApplySettings(blocked); applySetting("frequencySettings"); } else { QString actualColNames = colIndexes.keys().join(" "); QString expectedColNames = colNames.join(" "); - QMessageBox::critical(this, "Frequency Scanner", QString("Failed to read expected header in CSV file. %1 != %2").arg(actualColNames).arg(expectedColNames)); + MessageDialog::critical(this, "Frequency Scanner", QString("Failed to read expected header in CSV file. %1 != %2").arg(actualColNames).arg(expectedColNames)); return; } } else { - QMessageBox::warning(this, "Frequency Scanner", QString("Failed to open file %1").arg(filename)); + MessageDialog::warning(this, "Frequency Scanner", QString("Failed to open file %1").arg(filename)); } } } @@ -1005,7 +1008,7 @@ void FreqScannerGUI::on_exportFreqs_clicked() } else { - QMessageBox::warning(this, "Frequency Scanner", QString("Failed to open file %1").arg(filename)); + MessageDialog::warning(this, "Frequency Scanner", QString("Failed to open file %1").arg(filename)); } } } diff --git a/plugins/channelrx/freqscanner/freqscannergui.h b/plugins/channelrx/freqscanner/freqscannergui.h index edb7d5f7a..737a0a887 100644 --- a/plugins/channelrx/freqscanner/freqscannergui.h +++ b/plugins/channelrx/freqscanner/freqscannergui.h @@ -88,7 +88,7 @@ private: explicit FreqScannerGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent = 0); virtual ~FreqScannerGUI(); - void blockApplySettings(bool block); + bool blockApplySettings(bool block); void applySetting(const QString& settingsKey); void applySettings(const QStringList& settingsKeys, bool force = false); void applyAllSettings(); diff --git a/plugins/channelrx/freqtracker/freqtracker.cpp b/plugins/channelrx/freqtracker/freqtracker.cpp index ea51ea21e..99f71a521 100644 --- a/plugins/channelrx/freqtracker/freqtracker.cpp +++ b/plugins/channelrx/freqtracker/freqtracker.cpp @@ -593,7 +593,11 @@ void FreqTracker::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("FreqTracker")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "FreqTracker"; + } else { + swgChannelSettings->setChannelType(new QString("FreqTracker")); + } swgChannelSettings->setFreqTrackerSettings(new SWGSDRangel::SWGFreqTrackerSettings()); SWGSDRangel::SWGFreqTrackerSettings *swgFreqTrackerSettings = swgChannelSettings->getFreqTrackerSettings(); @@ -615,7 +619,11 @@ void FreqTracker::webapiFormatChannelSettings( swgFreqTrackerSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFreqTrackerSettings->setTitle(new QString(settings.m_title)); + if (swgFreqTrackerSettings->getTitle()) { + *swgFreqTrackerSettings->getTitle() = settings.m_title; + } else { + swgFreqTrackerSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("spanLog2") || force) { swgFreqTrackerSettings->setSpanLog2(settings.m_spanLog2); diff --git a/plugins/channelrx/heatmap/heatmap.cpp b/plugins/channelrx/heatmap/heatmap.cpp index b8d86b72b..3d3d8b3bc 100644 --- a/plugins/channelrx/heatmap/heatmap.cpp +++ b/plugins/channelrx/heatmap/heatmap.cpp @@ -29,9 +29,11 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" #include "dsp/dspcommands.h" +#include "util/db.h" #include "device/deviceapi.h" MESSAGE_CLASS_DEFINITION(HeatMap::MsgConfigureHeatMap, Message) @@ -267,6 +269,27 @@ int HeatMap::webapiWorkspaceGet( return 200; } +int HeatMap::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setHeatMapReport(new SWGSDRangel::SWGHeatMapReport()); + response.getHeatMapReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void HeatMap::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + double magsqAvg, magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + + response.getHeatMapReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + response.getHeatMapReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); +} + int HeatMap::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, @@ -365,7 +388,11 @@ void HeatMap::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respo response.getHeatMapSettings()->setRfBandwidth(settings.m_rfBandwidth); response.getHeatMapSettings()->setMinPower(settings.m_minPower); response.getHeatMapSettings()->setMaxPower(settings.m_maxPower); - response.getHeatMapSettings()->setColorMapName(new QString(settings.m_colorMapName)); + if (response.getHeatMapSettings()->getColorMapName()) { + *response.getHeatMapSettings()->getColorMapName() = settings.m_colorMapName; + } else { + response.getHeatMapSettings()->setColorMapName(new QString(settings.m_colorMapName)); + } response.getHeatMapSettings()->setMode((int) settings.m_mode); response.getHeatMapSettings()->setPulseThreshold(settings.m_pulseThreshold); response.getHeatMapSettings()->setAveragePeriodUs(settings.m_averagePeriodUS); @@ -469,7 +496,11 @@ void HeatMap::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("HeatMap")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "HeatMap"; + } else { + swgChannelSettings->setChannelType(new QString("HeatMap")); + } swgChannelSettings->setHeatMapSettings(new SWGSDRangel::SWGHeatMapSettings()); SWGSDRangel::SWGHeatMapSettings *swgHeatMapSettings = swgChannelSettings->getHeatMapSettings(); @@ -488,7 +519,11 @@ void HeatMap::webapiFormatChannelSettings( swgHeatMapSettings->setMaxPower(settings.m_maxPower); } if (channelSettingsKeys.contains("colorMapName") || force) { - swgHeatMapSettings->setColorMapName(new QString(settings.m_colorMapName)); + if (swgHeatMapSettings->getColorMapName()) { + *swgHeatMapSettings->getColorMapName() = settings.m_colorMapName; + } else { + swgHeatMapSettings->setColorMapName(new QString(settings.m_colorMapName)); + } } if (channelSettingsKeys.contains("mode") || force) { swgHeatMapSettings->setMode((int) settings.m_mode); @@ -506,7 +541,11 @@ void HeatMap::webapiFormatChannelSettings( swgHeatMapSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgHeatMapSettings->setTitle(new QString(settings.m_title)); + if (swgHeatMapSettings->getTitle()) { + *swgHeatMapSettings->getTitle() = settings.m_title; + } else { + swgHeatMapSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgHeatMapSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/heatmap/heatmap.h b/plugins/channelrx/heatmap/heatmap.h index fccea7329..a17dbfc32 100644 --- a/plugins/channelrx/heatmap/heatmap.h +++ b/plugins/channelrx/heatmap/heatmap.h @@ -121,6 +121,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage); + static void webapiFormatChannelSettings( SWGSDRangel::SWGChannelSettings& response, const HeatMapSettings& settings); @@ -164,6 +168,7 @@ private: virtual bool handleMessage(const Message& cmd); void applySettings(const QStringList& settingsKeys, const HeatMapSettings& settings, bool force = false); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QList& channelSettingsKeys, const HeatMapSettings& settings, bool force); void webapiFormatChannelSettings( const QList& channelSettingsKeys, diff --git a/plugins/channelrx/heatmap/heatmapbaseband.cpp b/plugins/channelrx/heatmap/heatmapbaseband.cpp index 7bcfb177e..f45e4db5f 100644 --- a/plugins/channelrx/heatmap/heatmapbaseband.cpp +++ b/plugins/channelrx/heatmap/heatmapbaseband.cpp @@ -174,6 +174,11 @@ void HeatMapBaseband::applySettings(const QStringList& settingsKeys, const HeatM } } +int HeatMapBaseband::getChannelSampleRate() const +{ + return m_channelizer->getChannelSampleRate(); +} + void HeatMapBaseband::setBasebandSampleRate(int sampleRate) { m_channelizer->setBasebandSampleRate(sampleRate); diff --git a/plugins/channelrx/heatmap/heatmapbaseband.h b/plugins/channelrx/heatmap/heatmapbaseband.h index 8ff45e425..df087594c 100644 --- a/plugins/channelrx/heatmap/heatmapbaseband.h +++ b/plugins/channelrx/heatmap/heatmapbaseband.h @@ -83,6 +83,7 @@ public: } void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); } void setBasebandSampleRate(int sampleRate); + int getChannelSampleRate() const; ScopeVis *getScopeSink() { return &m_scopeSink; } void setChannel(ChannelAPI *channel); double getMagSq() const { return m_sink.getMagSq(); } diff --git a/plugins/channelrx/heatmap/heatmapgui.cpp b/plugins/channelrx/heatmap/heatmapgui.cpp index 462f686d3..14e8731f2 100644 --- a/plugins/channelrx/heatmap/heatmapgui.cpp +++ b/plugins/channelrx/heatmap/heatmapgui.cpp @@ -38,6 +38,7 @@ #include "util/colormap.h" #include "util/db.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -314,7 +315,7 @@ void HeatMapGUI::on_writeCSV_clicked() QFile file(fileNames[0]); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Heat Map", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Heat Map", QString("Failed to open file %1").arg(fileNames[0])); return; } QTextStream out(&file); @@ -351,7 +352,7 @@ void HeatMapGUI::on_readCSV_clicked() QFile file(fileNames[0]); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Heat Map", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Heat Map", QString("Failed to open file %1").arg(fileNames[0])); return; } QTextStream in(&file); @@ -382,7 +383,7 @@ void HeatMapGUI::on_readCSV_clicked() { QString actualColNames = colIndexes.keys().join(" "); QString expectedColNames = colNames.join(" "); - QMessageBox::critical(this, "Heat Map", QString("Failed to read expected header in CSV file. %1 != %2").arg(actualColNames).arg(expectedColNames)); + MessageDialog::critical(this, "Heat Map", QString("Failed to read expected header in CSV file. %1 != %2").arg(actualColNames).arg(expectedColNames)); return; } } @@ -400,7 +401,7 @@ void HeatMapGUI::on_writeImage_clicked() { if (!m_image.save(fileNames[0])) { - QMessageBox::critical(this, "Heat Map", QString("Failed to save image to %1").arg(fileNames[0])); + MessageDialog::critical(this, "Heat Map", QString("Failed to save image to %1").arg(fileNames[0])); return; } } @@ -977,7 +978,7 @@ void HeatMapGUI::createImage(int width, int height) catch (std::bad_alloc&) { m_image = QImage(); - QMessageBox::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(m_width).arg(m_height)); + MessageDialog::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(m_width).arg(m_height)); } } @@ -1295,7 +1296,7 @@ void HeatMapGUI::createMap() catch (std::bad_alloc&) { deleteMap(); - QMessageBox::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(m_width).arg(m_height)); + MessageDialog::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(m_width).arg(m_height)); } on_clearHeatMap_clicked(); @@ -1442,7 +1443,7 @@ void HeatMapGUI::resizeMap(int x, int y) delete[] powerMaxPeak; delete[] powerMinPeak; delete[] powerPathLoss; - QMessageBox::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(newWidth).arg(newHeight)); + MessageDialog::critical(this, "Heat Map", QString("Failed to allocate memory (width=%1 height=%2)").arg(newWidth).arg(newHeight)); } } } @@ -1537,7 +1538,7 @@ void HeatMapGUI::addToPowerSeries(QDateTime dateTime, double average, double pul } catch (std::bad_alloc&) { - QMessageBox::critical(this, "Heat Map", QString("Failed to allocate memory for chart series")); + MessageDialog::critical(this, "Heat Map", QString("Failed to allocate memory for chart series")); ui->displayChart->setChecked(false); } } diff --git a/plugins/channelrx/localsink/localsink.cpp b/plugins/channelrx/localsink/localsink.cpp index e510a0af1..c96fc6575 100644 --- a/plugins/channelrx/localsink/localsink.cpp +++ b/plugins/channelrx/localsink/localsink.cpp @@ -395,7 +395,11 @@ void LocalSink::applySettings(const LocalSinkSettings& settings, const QListsetDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setLocalSinkSettings(new SWGSDRangel::SWGLocalSinkSettings()); SWGSDRangel::SWGLocalSinkSettings *swgLocalSinkSettings = swgChannelSettings->getLocalSinkSettings(); @@ -691,7 +699,11 @@ void LocalSink::webapiFormatChannelSettings( swgLocalSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgLocalSinkSettings->setTitle(new QString(settings.m_title)); + if (swgLocalSinkSettings->getTitle()) { + *swgLocalSinkSettings->getTitle() = settings.m_title; + } else { + swgLocalSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgLocalSinkSettings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelrx/noisefigure/noisefigure.cpp b/plugins/channelrx/noisefigure/noisefigure.cpp index a6f15f185..34a009ba2 100644 --- a/plugins/channelrx/noisefigure/noisefigure.cpp +++ b/plugins/channelrx/noisefigure/noisefigure.cpp @@ -31,9 +31,11 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" #include "dsp/dspcommands.h" +#include "util/db.h" #include "device/deviceapi.h" #include "settings/serializable.h" #include "util/interpolation.h" @@ -562,7 +564,11 @@ void NoiseFigure::applySettings(const QStringList& settingsKeys, const NoiseFigu webapiReverseSendSettings(reverseAPIKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray NoiseFigure::serialize() const @@ -607,6 +613,27 @@ int NoiseFigure::webapiWorkspaceGet( return 200; } +int NoiseFigure::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setNoiseFigureReport(new SWGSDRangel::SWGNoiseFigureReport()); + response.getNoiseFigureReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void NoiseFigure::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + double magsqAvg, magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + + response.getNoiseFigureReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + response.getNoiseFigureReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); +} + int NoiseFigure::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, @@ -802,7 +829,11 @@ void NoiseFigure::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("NoiseFigure")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "NoiseFigure"; + } else { + swgChannelSettings->setChannelType(new QString("NoiseFigure")); + } swgChannelSettings->setNoiseFigureSettings(new SWGSDRangel::SWGNoiseFigureSettings()); SWGSDRangel::SWGNoiseFigureSettings *swgNoiseFigureSettings = swgChannelSettings->getNoiseFigureSettings(); @@ -833,25 +864,53 @@ void NoiseFigure::webapiFormatChannelSettings( swgNoiseFigureSettings->setStep(settings.m_step); } if (channelSettingsKeys.contains("list") || force) { - swgNoiseFigureSettings->setList(new QString(settings.m_sweepList)); + if (swgNoiseFigureSettings->getList()) { + *swgNoiseFigureSettings->getList() = settings.m_sweepList; + } else { + swgNoiseFigureSettings->setList(new QString(settings.m_sweepList)); + } } if (channelSettingsKeys.contains("setting") || force) { - swgNoiseFigureSettings->setSetting(new QString(settings.m_setting)); + if (swgNoiseFigureSettings->getSetting()) { + *swgNoiseFigureSettings->getSetting() = settings.m_setting; + } else { + swgNoiseFigureSettings->setSetting(new QString(settings.m_setting)); + } } if (channelSettingsKeys.contains("visaDevice") || force) { - swgNoiseFigureSettings->setVisaDevice(new QString(settings.m_visaDevice)); + if (swgNoiseFigureSettings->getVisaDevice()) { + *swgNoiseFigureSettings->getVisaDevice() = settings.m_visaDevice; + } else { + swgNoiseFigureSettings->setVisaDevice(new QString(settings.m_visaDevice)); + } } if (channelSettingsKeys.contains("powerOnSCPI") || force) { - swgNoiseFigureSettings->setPowerOnScpi(new QString(settings.m_powerOnSCPI)); + if (swgNoiseFigureSettings->getPowerOnScpi()) { + *swgNoiseFigureSettings->getPowerOnScpi() = settings.m_powerOnSCPI; + } else { + swgNoiseFigureSettings->setPowerOnScpi(new QString(settings.m_powerOnSCPI)); + } } if (channelSettingsKeys.contains("powerOffSCPI") || force) { - swgNoiseFigureSettings->setPowerOffScpi(new QString(settings.m_powerOffSCPI)); + if (swgNoiseFigureSettings->getPowerOffScpi()) { + *swgNoiseFigureSettings->getPowerOffScpi() = settings.m_powerOffSCPI; + } else { + swgNoiseFigureSettings->setPowerOffScpi(new QString(settings.m_powerOffSCPI)); + } } if (channelSettingsKeys.contains("powerOnCommand") || force) { - swgNoiseFigureSettings->setPowerOnCommand(new QString(settings.m_powerOnCommand)); + if (swgNoiseFigureSettings->getPowerOnCommand()) { + *swgNoiseFigureSettings->getPowerOnCommand() = settings.m_powerOnCommand; + } else { + swgNoiseFigureSettings->setPowerOnCommand(new QString(settings.m_powerOnCommand)); + } } if (channelSettingsKeys.contains("powerOffCommand") || force) { - swgNoiseFigureSettings->setPowerOffCommand(new QString(settings.m_powerOffCommand)); + if (swgNoiseFigureSettings->getPowerOffCommand()) { + *swgNoiseFigureSettings->getPowerOffCommand() = settings.m_powerOffCommand; + } else { + swgNoiseFigureSettings->setPowerOffCommand(new QString(settings.m_powerOffCommand)); + } } if (channelSettingsKeys.contains("powerDelay") || force) { swgNoiseFigureSettings->setPowerDelay(settings.m_powerDelay); @@ -860,7 +919,11 @@ void NoiseFigure::webapiFormatChannelSettings( swgNoiseFigureSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgNoiseFigureSettings->setTitle(new QString(settings.m_title)); + if (swgNoiseFigureSettings->getTitle()) { + *swgNoiseFigureSettings->getTitle() = settings.m_title; + } else { + swgNoiseFigureSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgNoiseFigureSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/noisefigure/noisefigure.h b/plugins/channelrx/noisefigure/noisefigure.h index 80c5858ba..5fa766fda 100644 --- a/plugins/channelrx/noisefigure/noisefigure.h +++ b/plugins/channelrx/noisefigure/noisefigure.h @@ -224,6 +224,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage); + static void webapiFormatChannelSettings( SWGSDRangel::SWGChannelSettings& response, const NoiseFigureSettings& settings); @@ -264,6 +268,7 @@ private: virtual bool handleMessage(const Message& cmd); void applySettings(const QStringList& settingsKeys, const NoiseFigureSettings& settings, bool force = false); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QList& channelSettingsKeys, const NoiseFigureSettings& settings, bool force); void webapiFormatChannelSettings( const QList& channelSettingsKeys, diff --git a/plugins/channelrx/noisefigure/noisefigurebaseband.cpp b/plugins/channelrx/noisefigure/noisefigurebaseband.cpp index e915adb48..a0a153742 100644 --- a/plugins/channelrx/noisefigure/noisefigurebaseband.cpp +++ b/plugins/channelrx/noisefigure/noisefigurebaseband.cpp @@ -165,6 +165,11 @@ void NoiseFigureBaseband::applySettings(const QStringList& settingsKeys, const N } } +int NoiseFigureBaseband::getChannelSampleRate() const +{ + return m_channelizer->getChannelSampleRate(); +} + void NoiseFigureBaseband::setBasebandSampleRate(int sampleRate) { m_channelizer->setBasebandSampleRate(sampleRate); diff --git a/plugins/channelrx/noisefigure/noisefigurebaseband.h b/plugins/channelrx/noisefigure/noisefigurebaseband.h index f820ffc6d..255dbbf11 100644 --- a/plugins/channelrx/noisefigure/noisefigurebaseband.h +++ b/plugins/channelrx/noisefigure/noisefigurebaseband.h @@ -75,6 +75,7 @@ public: } void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); } void setBasebandSampleRate(int sampleRate); + int getChannelSampleRate() const; void setChannel(ChannelAPI *channel); double getMagSq() const { return m_sink.getMagSq(); } bool isRunning() const { return m_running; } diff --git a/plugins/channelrx/noisefigure/noisefiguregui.cpp b/plugins/channelrx/noisefigure/noisefiguregui.cpp index 23cb28c8f..149716c14 100644 --- a/plugins/channelrx/noisefigure/noisefiguregui.cpp +++ b/plugins/channelrx/noisefigure/noisefiguregui.cpp @@ -29,6 +29,7 @@ #include "ui_noisefiguregui.h" #include "plugin/pluginapi.h" #include "util/db.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/decimaldelegate.h" #include "gui/dialogpositioner.h" @@ -287,7 +288,7 @@ bool NoiseFigureGUI::handleMessage(const Message& message) m_runningTest = false; QString errorMessage = report.getErrorMessage(); if (!errorMessage.isEmpty()) { - QMessageBox::critical(this, "Noise Figure", errorMessage); + MessageDialog::critical(this, "Noise Figure", errorMessage); } return true; } @@ -406,7 +407,7 @@ void NoiseFigureGUI::on_startStop_clicked() // Check we have at least on ENR value if (m_settings.m_enr.size() < 1) { - QMessageBox::critical(this, "Noise Figure", "You must enter the ENR of the noise source for at least one frequency"); + MessageDialog::critical(this, "Noise Figure", "You must enter the ENR of the noise source for at least one frequency"); return; } // Clear current results if starting a test @@ -435,7 +436,7 @@ void NoiseFigureGUI::on_saveResults_clicked() qDebug() << "NoiseFigureGUI: Saving results to " << fileNames; QFile file(fileNames[0]); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Noise Figure", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Noise Figure", QString("Failed to open file %1").arg(fileNames[0])); return; } QTextStream out(&file); @@ -467,7 +468,7 @@ void NoiseFigureGUI::on_openReference_clicked() m_refFilename = fileNames[0]; QFile file(m_refFilename); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Noise Figure", QString("Failed to open file %1").arg(m_refFilename)); + MessageDialog::critical(this, "Noise Figure", QString("Failed to open file %1").arg(m_refFilename)); return; } QTextStream in(&file); diff --git a/plugins/channelrx/radioastronomy/radioastronomy.cpp b/plugins/channelrx/radioastronomy/radioastronomy.cpp index 3aeec05e5..107b19211 100644 --- a/plugins/channelrx/radioastronomy/radioastronomy.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomy.cpp @@ -30,11 +30,13 @@ #include #include "SWGChannelSettings.h" +#include "SWGChannelReport.h" #include "SWGWorkspaceInfo.h" #include "SWGChannelActions.h" #include "SWGRadioAstronomyActions.h" #include "dsp/dspcommands.h" +#include "util/db.h" #include "device/deviceapi.h" #include "channel/channelwebapiutils.h" #include "settings/serializable.h" @@ -854,6 +856,27 @@ int RadioAstronomy::webapiWorkspaceGet( return 200; } +int RadioAstronomy::webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setRadioAstronomyReport(new SWGSDRangel::SWGRadioAstronomyReport()); + response.getRadioAstronomyReport()->init(); + webapiFormatChannelReport(response); + return 200; +} + +void RadioAstronomy::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response) +{ + double magsqAvg, magsqPeak; + int nbMagsqSamples; + getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples); + + response.getRadioAstronomyReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); + response.getRadioAstronomyReport()->setChannelSampleRate(m_basebandSink->getChannelSampleRate()); +} + int RadioAstronomy::webapiSettingsPutPatch( bool force, const QStringList& channelSettingsKeys, @@ -964,10 +987,10 @@ void RadioAstronomy::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("sweep1Delay")) { settings.m_sweep1Delay = response.getRadioAstronomySettings()->getSweep1Delay(); } - if (channelSettingsKeys.contains("sweep12Start")) { + if (channelSettingsKeys.contains("sweep2Start")) { settings.m_sweep2Start = response.getRadioAstronomySettings()->getSweep2Start(); } - if (channelSettingsKeys.contains("sweep12Stop")) { + if (channelSettingsKeys.contains("sweep2Stop")) { settings.m_sweep2Stop = response.getRadioAstronomySettings()->getSweep2Stop(); } if (channelSettingsKeys.contains("sweep2Step")) { @@ -1017,14 +1040,30 @@ void RadioAstronomy::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings response.getRadioAstronomySettings()->setIntegration(settings.m_integration); response.getRadioAstronomySettings()->setFftSize(settings.m_fftSize); response.getRadioAstronomySettings()->setFftWindow((int)settings.m_fftWindow); - response.getRadioAstronomySettings()->setFilterFreqs(new QString(settings.m_filterFreqs)); + if (response.getRadioAstronomySettings()->getFilterFreqs()) { + *response.getRadioAstronomySettings()->getFilterFreqs() = settings.m_filterFreqs; + } else { + response.getRadioAstronomySettings()->setFilterFreqs(new QString(settings.m_filterFreqs)); + } - response.getRadioAstronomySettings()->setStarTracker(new QString(settings.m_starTracker)); - response.getRadioAstronomySettings()->setRotator(new QString(settings.m_rotator)); + if (response.getRadioAstronomySettings()->getStarTracker()) { + *response.getRadioAstronomySettings()->getStarTracker() = settings.m_starTracker; + } else { + response.getRadioAstronomySettings()->setStarTracker(new QString(settings.m_starTracker)); + } + if (response.getRadioAstronomySettings()->getRotator()) { + *response.getRadioAstronomySettings()->getRotator() = settings.m_rotator; + } else { + response.getRadioAstronomySettings()->setRotator(new QString(settings.m_rotator)); + } response.getRadioAstronomySettings()->setRunMode((int)settings.m_runMode); response.getRadioAstronomySettings()->setSweepStartAtTime((int)settings.m_sweepStartAtTime); - response.getRadioAstronomySettings()->setSweepStartDateTime(new QString(settings.m_sweepStartDateTime.toString(Qt::ISODate))); + if (response.getRadioAstronomySettings()->getSweepStartDateTime()) { + *response.getRadioAstronomySettings()->getSweepStartDateTime() = settings.m_sweepStartDateTime.toString(Qt::ISODate); + } else { + response.getRadioAstronomySettings()->setSweepStartDateTime(new QString(settings.m_sweepStartDateTime.toString(Qt::ISODate))); + } response.getRadioAstronomySettings()->setSweepType((int)settings.m_sweepType); response.getRadioAstronomySettings()->setSweep1Start(settings.m_sweep1Start); response.getRadioAstronomySettings()->setSweep1Stop(settings.m_sweep1Stop); @@ -1119,7 +1158,11 @@ void RadioAstronomy::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("RadioAstronomy")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "RadioAstronomy"; + } else { + swgChannelSettings->setChannelType(new QString("RadioAstronomy")); + } swgChannelSettings->setRadioAstronomySettings(new SWGSDRangel::SWGRadioAstronomySettings()); SWGSDRangel::SWGRadioAstronomySettings *swgRadioAstronomySettings = swgChannelSettings->getRadioAstronomySettings(); @@ -1144,14 +1187,26 @@ void RadioAstronomy::webapiFormatChannelSettings( swgRadioAstronomySettings->setRfBandwidth((int)settings.m_fftWindow); } if (channelSettingsKeys.contains("filterFreqs") || force) { - swgRadioAstronomySettings->setFilterFreqs(new QString(settings.m_filterFreqs)); + if (swgRadioAstronomySettings->getFilterFreqs()) { + *swgRadioAstronomySettings->getFilterFreqs() = settings.m_filterFreqs; + } else { + swgRadioAstronomySettings->setFilterFreqs(new QString(settings.m_filterFreqs)); + } } if (channelSettingsKeys.contains("starTracker") || force) { - swgRadioAstronomySettings->setStarTracker(new QString(settings.m_starTracker)); + if (swgRadioAstronomySettings->getStarTracker()) { + *swgRadioAstronomySettings->getStarTracker() = settings.m_starTracker; + } else { + swgRadioAstronomySettings->setStarTracker(new QString(settings.m_starTracker)); + } } if (channelSettingsKeys.contains("rotator") || force) { - swgRadioAstronomySettings->setRotator(new QString(settings.m_rotator)); + if (swgRadioAstronomySettings->getRotator()) { + *swgRadioAstronomySettings->getRotator() = settings.m_rotator; + } else { + swgRadioAstronomySettings->setRotator(new QString(settings.m_rotator)); + } } if (channelSettingsKeys.contains("runMode") || force) { @@ -1161,7 +1216,11 @@ void RadioAstronomy::webapiFormatChannelSettings( swgRadioAstronomySettings->setSweepStartAtTime((int)settings.m_sweepStartAtTime); } if (channelSettingsKeys.contains("sweepStartDateTime") || force) { - swgRadioAstronomySettings->setSweepStartDateTime(new QString(settings.m_sweepStartDateTime.toString(Qt::ISODate))); + if (swgRadioAstronomySettings->getSweepStartDateTime()) { + *swgRadioAstronomySettings->getSweepStartDateTime() = settings.m_sweepStartDateTime.toString(Qt::ISODate); + } else { + swgRadioAstronomySettings->setSweepStartDateTime(new QString(settings.m_sweepStartDateTime.toString(Qt::ISODate))); + } } if (channelSettingsKeys.contains("sweepType") || force) { swgRadioAstronomySettings->setSweepType(settings.m_sweepType); @@ -1195,7 +1254,11 @@ void RadioAstronomy::webapiFormatChannelSettings( swgRadioAstronomySettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRadioAstronomySettings->setTitle(new QString(settings.m_title)); + if (swgRadioAstronomySettings->getTitle()) { + *swgRadioAstronomySettings->getTitle() = settings.m_title; + } else { + swgRadioAstronomySettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRadioAstronomySettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/radioastronomy/radioastronomy.h b/plugins/channelrx/radioastronomy/radioastronomy.h index ea2af8dc5..01e3bd667 100644 --- a/plugins/channelrx/radioastronomy/radioastronomy.h +++ b/plugins/channelrx/radioastronomy/radioastronomy.h @@ -426,6 +426,10 @@ public: SWGSDRangel::SWGChannelSettings& response, QString& errorMessage) override; + virtual int webapiReportGet( + SWGSDRangel::SWGChannelReport& response, + QString& errorMessage) override; + virtual int webapiActionsPost( const QStringList& channelActionsKeys, SWGSDRangel::SWGChannelActions& query, @@ -486,6 +490,7 @@ private: virtual bool handleMessage(const Message& cmd); void applySettings(const QStringList& settingsKeys, const RadioAstronomySettings& settings, bool force = false); + void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response); void webapiReverseSendSettings(const QList& channelSettingsKeys, const RadioAstronomySettings& settings, bool force); void webapiFormatChannelSettings( const QList& channelSettingsKeys, diff --git a/plugins/channelrx/radioastronomy/radioastronomybaseband.cpp b/plugins/channelrx/radioastronomy/radioastronomybaseband.cpp index 9e1905a63..a64c37101 100644 --- a/plugins/channelrx/radioastronomy/radioastronomybaseband.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomybaseband.cpp @@ -192,6 +192,11 @@ void RadioAstronomyBaseband::applySettings(const QStringList& settingsKeys, cons } } +int RadioAstronomyBaseband::getChannelSampleRate() const +{ + return m_channelizer->getChannelSampleRate(); +} + void RadioAstronomyBaseband::setBasebandSampleRate(int sampleRate) { m_channelizer->setBasebandSampleRate(sampleRate); diff --git a/plugins/channelrx/radioastronomy/radioastronomybaseband.h b/plugins/channelrx/radioastronomy/radioastronomybaseband.h index 22be38336..f6bf54ee4 100644 --- a/plugins/channelrx/radioastronomy/radioastronomybaseband.h +++ b/plugins/channelrx/radioastronomy/radioastronomybaseband.h @@ -74,6 +74,7 @@ public: } void setMessageQueueToChannel(MessageQueue *messageQueue) { m_sink.setMessageQueueToChannel(messageQueue); } void setBasebandSampleRate(int sampleRate); + int getChannelSampleRate() const; void setChannel(ChannelAPI *channel); double getMagSq() const { return m_sink.getMagSq(); } bool isRunning() const { return m_running; } diff --git a/plugins/channelrx/radioastronomy/radioastronomygui.cpp b/plugins/channelrx/radioastronomy/radioastronomygui.cpp index 0aae52abc..458a8b676 100644 --- a/plugins/channelrx/radioastronomy/radioastronomygui.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomygui.cpp @@ -44,6 +44,7 @@ #include "util/interpolation.h" #include "util/png.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "dsp/dspengine.h" #include "gui/timedelegate.h" @@ -1500,7 +1501,7 @@ void RadioAstronomyGUI::savePowerData(const QString& filename) { QFile file(filename); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(filename)); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(filename)); return; } QTextStream out(&file); @@ -1784,7 +1785,7 @@ void RadioAstronomyGUI::saveSpectrumData(const QString& filename) { QFile file(filename); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(filename)); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(filename)); return; } QTextStream out(&file); @@ -1882,7 +1883,7 @@ void RadioAstronomyGUI::on_loadSpectrumData_clicked() { QFile file(fileNames[0]); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to open file %1").arg(fileNames[0])); return; } @@ -1997,7 +1998,7 @@ void RadioAstronomyGUI::on_loadSpectrumData_clicked() } else { - QMessageBox::critical(this, "Radio Astronomy", QString("Missing required columns in file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radio Astronomy", QString("Missing required columns in file %1").arg(fileNames[0])); return; } } @@ -5316,7 +5317,7 @@ void RadioAstronomyGUI::on_savePowerChartImage_clicked() QPainter painter(&image); ui->powerChart->render(&painter); if (!image.save(fileNames[0])) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to save image to %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to save image to %1").arg(fileNames[0])); } } } @@ -5336,7 +5337,7 @@ void RadioAstronomyGUI::on_saveSpectrumChartImage_clicked() QPainter painter(&image); ui->spectrumChart->render(&painter); if (!image.save(fileNames[0])) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to save image to %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to save image to %1").arg(fileNames[0])); } } } @@ -5369,7 +5370,7 @@ void RadioAstronomyGUI::on_saveSpectrumChartImages_clicked() apng.addImage(image); } if (!apng.save(fileNames[0])) { - QMessageBox::critical(this, "Radio Astronomy", QString("Failed to write to file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Radio Astronomy", QString("Failed to write to file %1").arg(fileNames[0])); } } } @@ -6378,7 +6379,7 @@ void RadioAstronomyGUI::on_startStop_clicked(bool checked) } if (!errorMessage.isEmpty()) { - QMessageBox::warning(this, + MessageDialog::warning(this, tr("Invalid Sweep Configuration"), errorMessage); diff --git a/plugins/channelrx/radioclock/radioclock.cpp b/plugins/channelrx/radioclock/radioclock.cpp index b6e3cd7d7..9401aed96 100644 --- a/plugins/channelrx/radioclock/radioclock.cpp +++ b/plugins/channelrx/radioclock/radioclock.cpp @@ -470,8 +470,16 @@ void RadioClock::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respon response.getRadioClockReport()->setChannelPowerDb(CalcDb::dbPower(magsqAvg)); response.getRadioClockReport()->setChannelSampleRate(RadioClockSettings::RADIOCLOCK_CHANNEL_SAMPLE_RATE); - response.getRadioClockReport()->setDate(new QString(m_dateTime.date().toString())); - response.getRadioClockReport()->setTime(new QString(m_dateTime.time().toString())); + if (response.getRadioClockReport()->getDate()) { + *response.getRadioClockReport()->getDate() = m_dateTime.date().toString(); + } else { + response.getRadioClockReport()->setDate(new QString(m_dateTime.date().toString())); + } + if (response.getRadioClockReport()->getTime()) { + *response.getRadioClockReport()->getTime() = m_dateTime.time().toString(); + } else { + response.getRadioClockReport()->setTime(new QString(m_dateTime.time().toString())); + } } void RadioClock::webapiReverseSendSettings(const QList& channelSettingsKeys, const RadioClockSettings& settings, bool force) @@ -520,7 +528,11 @@ void RadioClock::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString("RadioClock")); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = "RadioClock"; + } else { + swgChannelSettings->setChannelType(new QString("RadioClock")); + } swgChannelSettings->setRadioClockSettings(new SWGSDRangel::SWGRadioClockSettings()); SWGSDRangel::SWGRadioClockSettings *swgRadioClockSettings = swgChannelSettings->getRadioClockSettings(); @@ -551,7 +563,11 @@ void RadioClock::webapiFormatChannelSettings( swgRadioClockSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRadioClockSettings->setTitle(new QString(settings.m_title)); + if (swgRadioClockSettings->getTitle()) { + *swgRadioClockSettings->getTitle() = settings.m_title; + } else { + swgRadioClockSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRadioClockSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/remotesink/remotesink.cpp b/plugins/channelrx/remotesink/remotesink.cpp index d5dd0353d..2956a6167 100644 --- a/plugins/channelrx/remotesink/remotesink.cpp +++ b/plugins/channelrx/remotesink/remotesink.cpp @@ -318,7 +318,11 @@ void RemoteSink::applySettings(const QStringList& settingsKeys, const RemoteSink sendChannelSettings(pipes, reverseAPIKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } if (frequencyOffsetChange) { calculateFrequencyOffset(); @@ -604,7 +608,11 @@ void RemoteSink::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setRemoteSinkSettings(new SWGSDRangel::SWGRemoteSinkSettings()); SWGSDRangel::SWGRemoteSinkSettings *swgRemoteSinkSettings = swgChannelSettings->getRemoteSinkSettings(); @@ -620,7 +628,11 @@ void RemoteSink::webapiFormatChannelSettings( swgRemoteSinkSettings->setDeviceCenterFrequency(settings.m_deviceCenterFrequency); } if (channelSettingsKeys.contains("dataAddress") || force) { - swgRemoteSinkSettings->setDataAddress(new QString(settings.m_dataAddress)); + if (swgRemoteSinkSettings->getDataAddress()) { + *swgRemoteSinkSettings->getDataAddress() = settings.m_dataAddress; + } else { + swgRemoteSinkSettings->setDataAddress(new QString(settings.m_dataAddress)); + } } if (channelSettingsKeys.contains("dataPort") || force) { swgRemoteSinkSettings->setDataPort(settings.m_dataPort); @@ -629,7 +641,11 @@ void RemoteSink::webapiFormatChannelSettings( swgRemoteSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRemoteSinkSettings->setTitle(new QString(settings.m_title)); + if (swgRemoteSinkSettings->getTitle()) { + *swgRemoteSinkSettings->getTitle() = settings.m_title; + } else { + swgRemoteSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgRemoteSinkSettings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp index 4f7c3ae57..46ad2907d 100644 --- a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp +++ b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp @@ -570,7 +570,11 @@ void RemoteTCPSink::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setRemoteTcpSinkSettings(new SWGSDRangel::SWGRemoteTCPSinkSettings()); SWGSDRangel::SWGRemoteTCPSinkSettings *swgRemoteTCPSinkSettings = swgChannelSettings->getRemoteTcpSinkSettings(); @@ -589,7 +593,11 @@ void RemoteTCPSink::webapiFormatChannelSettings( swgRemoteTCPSinkSettings->setSampleBits(settings.m_sampleBits); } if (channelSettingsKeys.contains("dataAddress") || force) { - swgRemoteTCPSinkSettings->setDataAddress(new QString(settings.m_dataAddress)); + if (swgRemoteTCPSinkSettings->getDataAddress()) { + *swgRemoteTCPSinkSettings->getDataAddress() = settings.m_dataAddress; + } else { + swgRemoteTCPSinkSettings->setDataAddress(new QString(settings.m_dataAddress)); + } } if (channelSettingsKeys.contains("dataPort") || force) { swgRemoteTCPSinkSettings->setDataPort(settings.m_dataPort); @@ -601,7 +609,11 @@ void RemoteTCPSink::webapiFormatChannelSettings( swgRemoteTCPSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRemoteTCPSinkSettings->setTitle(new QString(settings.m_title)); + if (swgRemoteTCPSinkSettings->getTitle()) { + *swgRemoteTCPSinkSettings->getTitle() = settings.m_title; + } else { + swgRemoteTCPSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRemoteTCPSinkSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/remotetcpsink/remotetcpsinkgui.cpp b/plugins/channelrx/remotetcpsink/remotetcpsinkgui.cpp index 863fe575f..cddc2be5f 100644 --- a/plugins/channelrx/remotetcpsink/remotetcpsinkgui.cpp +++ b/plugins/channelrx/remotetcpsink/remotetcpsinkgui.cpp @@ -21,6 +21,7 @@ #include #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/basicchannelsettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -281,7 +282,7 @@ bool RemoteTCPSinkGUI::handleMessage(const Message& message) { const RemoteTCPSink::MsgError& msg = (const RemoteTCPSink::MsgError&) message; QString error = msg.getError(); - QMessageBox::warning(this, "RemoteTCPSink", error, QMessageBox::Ok); + MessageDialog::warning(this, "RemoteTCPSink", error, QMessageBox::Ok); return true; } else diff --git a/plugins/channelrx/sigmffilesink/sigmffilesink.cpp b/plugins/channelrx/sigmffilesink/sigmffilesink.cpp index 08bf4e126..5d826ea2d 100644 --- a/plugins/channelrx/sigmffilesink/sigmffilesink.cpp +++ b/plugins/channelrx/sigmffilesink/sigmffilesink.cpp @@ -364,7 +364,11 @@ void SigMFFileSink::applySettings(const QStringList& settingsKeys, const SigMFFi sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void SigMFFileSink::record(bool record) @@ -724,7 +728,11 @@ void SigMFFileSink::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setSigMfFileSinkSettings(new SWGSDRangel::SWGSigMFFileSinkSettings()); SWGSDRangel::SWGSigMFFileSinkSettings *swgSigMFFileSinkSettings = swgChannelSettings->getSigMfFileSinkSettings(); @@ -734,13 +742,21 @@ void SigMFFileSink::webapiFormatChannelSettings( swgSigMFFileSinkSettings->setInputFrequencyOffset(settings.m_inputFrequencyOffset); } if (channelSettingsKeys.contains("fileRecordName")) { - swgSigMFFileSinkSettings->setTitle(new QString(settings.m_fileRecordName)); + if (swgSigMFFileSinkSettings->getTitle()) { + *swgSigMFFileSinkSettings->getTitle() = settings.m_fileRecordName; + } else { + swgSigMFFileSinkSettings->setTitle(new QString(settings.m_fileRecordName)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgSigMFFileSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgSigMFFileSinkSettings->setTitle(new QString(settings.m_title)); + if (swgSigMFFileSinkSettings->getTitle()) { + *swgSigMFFileSinkSettings->getTitle() = settings.m_title; + } else { + swgSigMFFileSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Decim") || force) { swgSigMFFileSinkSettings->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/channelrx/sigmffilesink/sigmffilesinkgui.cpp b/plugins/channelrx/sigmffilesink/sigmffilesinkgui.cpp index b747d04c1..e76d227f2 100644 --- a/plugins/channelrx/sigmffilesink/sigmffilesinkgui.cpp +++ b/plugins/channelrx/sigmffilesink/sigmffilesinkgui.cpp @@ -129,7 +129,7 @@ bool SigMFFileSinkGUI::handleMessage(const Message& message) const SigMFFileSinkMessages::MsgReportSquelch& report = (SigMFFileSinkMessages::MsgReportSquelch&) message; qDebug("SigMFFileSinkGUI::handleMessage: FileSinkMessages::MsgReportRecording: %s", report.getOpen() ? "on" : "off"); - blockSignals(true); + ui->record->blockSignals(true); if (report.getOpen()) { @@ -142,7 +142,7 @@ bool SigMFFileSinkGUI::handleMessage(const Message& message) ui->record->setChecked(false); } - blockSignals(false); + ui->record->blockSignals(false); return true; } else if (SigMFFileSink::MsgReportStartStop::match(message)) diff --git a/plugins/channelrx/sigmffilesink/sigmffilesinksink.cpp b/plugins/channelrx/sigmffilesink/sigmffilesinksink.cpp index a27bb1de9..a7b2cfa77 100644 --- a/plugins/channelrx/sigmffilesink/sigmffilesinksink.cpp +++ b/plugins/channelrx/sigmffilesink/sigmffilesinksink.cpp @@ -246,26 +246,24 @@ void SigMFFileSinkSink::applySettings(const QStringList& settingsKeys, const Sig { qDebug() << "SigMFFileSinkSink::applySettings:" << settings.getDebugString(settingsKeys, force); - QString fileRecordName = settings.m_fileRecordName; + QStringList dotBreakout = settings.m_fileRecordName.split(QLatin1Char('.')); - if ((settingsKeys.contains("fileRecordName") && (settings.m_fileRecordName != m_settings.m_fileRecordName)) || force) - { - QStringList dotBreakout = settings.m_fileRecordName.split(QLatin1Char('.')); - - if (dotBreakout.size() > 1) { - QString extension = dotBreakout.last(); + if (dotBreakout.size() > 1) { + QString extension = dotBreakout.last(); - if (extension != "sigmf-meta") { - dotBreakout.last() = "sigmf-meta"; - } - } - else - { - dotBreakout.append("sigmf-meta"); + if (extension != "sigmf-meta") { + dotBreakout.last() = "sigmf-meta"; } + } + else + { + dotBreakout.append("sigmf-meta"); + } - fileRecordName = dotBreakout.join(QLatin1Char('.')); + QString fileRecordName = dotBreakout.join(QLatin1Char('.')); + if ((settingsKeys.contains("fileRecordName") || force) && (fileRecordName != m_settings.m_fileRecordName)) + { QString fileBase; FileRecordInterface::RecordType recordType = FileRecordInterface::guessTypeFromFileName(fileRecordName, fileBase); @@ -302,7 +300,9 @@ void SigMFFileSinkSink::applySettings(const QStringList& settingsKeys, const Sig m_settings.applySettings(settingsKeys, settings); } - m_settings.m_fileRecordName = fileRecordName; + if (settingsKeys.contains("fileRecordName") || force) { + m_settings.m_fileRecordName = fileRecordName; + } } void SigMFFileSinkSink::squelchRecording(bool squelchOpen) diff --git a/plugins/channelrx/udpsink/udpsink.cpp b/plugins/channelrx/udpsink/udpsink.cpp index 5b076565c..6480bdddf 100644 --- a/plugins/channelrx/udpsink/udpsink.cpp +++ b/plugins/channelrx/udpsink/udpsink.cpp @@ -221,7 +221,11 @@ void UDPSink::applySettings(const QStringList& settingsKeys, const UDPSinkSettin sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray UDPSink::serialize() const @@ -550,7 +554,11 @@ void UDPSink::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setUdpSinkSettings(new SWGSDRangel::SWGUDPSinkSettings()); SWGSDRangel::SWGUDPSinkSettings *swgUDPSinkSettings = swgChannelSettings->getUdpSinkSettings(); @@ -599,7 +607,11 @@ void UDPSink::webapiFormatChannelSettings( swgUDPSinkSettings->setVolume(settings.m_volume); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgUDPSinkSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgUDPSinkSettings->getUdpAddress()) { + *swgUDPSinkSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgUDPSinkSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgUDPSinkSettings->setUdpPort(settings.m_udpPort); @@ -611,7 +623,11 @@ void UDPSink::webapiFormatChannelSettings( swgUDPSinkSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgUDPSinkSettings->setTitle(new QString(settings.m_title)); + if (swgUDPSinkSettings->getTitle()) { + *swgUDPSinkSettings->getTitle() = settings.m_title; + } else { + swgUDPSinkSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgUDPSinkSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/wdsprx/wdsprx.cpp b/plugins/channelrx/wdsprx/wdsprx.cpp index 215158c3e..079fa17ba 100644 --- a/plugins/channelrx/wdsprx/wdsprx.cpp +++ b/plugins/channelrx/wdsprx/wdsprx.cpp @@ -381,13 +381,20 @@ int WDSPRx::webapiSettingsPutPatch( WDSPRxSettings settings = m_settings; webapiUpdateChannelSettings(settings, channelSettingsKeys, response); - MsgConfigureWDSPRx *msg = MsgConfigureWDSPRx::create(channelSettingsKeys, settings, force); + // Map API names to setting names + QStringList settingsKeys = channelSettingsKeys; + + if (settingsKeys.contains("rfBandwidth") && !settingsKeys.contains("highCutoff")) { + settingsKeys.append("highCutoff"); + } + + MsgConfigureWDSPRx *msg = MsgConfigureWDSPRx::create(settingsKeys, settings, force); m_inputMessageQueue.push(msg); qDebug("WDSPRx::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureWDSPRx *msgToGUI = MsgConfigureWDSPRx::create(channelSettingsKeys, settings, force); + MsgConfigureWDSPRx *msgToGUI = MsgConfigureWDSPRx::create(settingsKeys, settings, force); m_guiMessageQueue->push(msgToGUI); } @@ -586,7 +593,7 @@ void WDSPRx::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("lowCutoff")) { settings.m_profiles[settings.m_profileIndex].m_lowCutoff = response.getWdspRxSettings()->getLowCutoff(); } - if (channelSettingsKeys.contains("fftWimdow")) { + if (channelSettingsKeys.contains("fftWindow")) { settings.m_profiles[settings.m_profileIndex].m_fftWindow = response.getWdspRxSettings()->getFftWindow(); } if (channelSettingsKeys.contains("rgbColor")) { @@ -863,7 +870,11 @@ void WDSPRx::webapiFormatChannelSettings( swgChannelSettings->setDirection(0); // Single sink (Rx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setWdspRxSettings(new SWGSDRangel::SWGWDSPRxSettings()); SWGSDRangel::SWGWDSPRxSettings *swgWDSPRxSettings = swgChannelSettings->getWdspRxSettings(); @@ -1059,10 +1070,18 @@ void WDSPRx::webapiFormatChannelSettings( swgWDSPRxSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgWDSPRxSettings->setTitle(new QString(settings.m_title)); + if (swgWDSPRxSettings->getTitle()) { + *swgWDSPRxSettings->getTitle() = settings.m_title; + } else { + swgWDSPRxSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgWDSPRxSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgWDSPRxSettings->getAudioDeviceName()) { + *swgWDSPRxSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgWDSPRxSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgWDSPRxSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channelrx/wdsprx/wdsprxsettings.cpp b/plugins/channelrx/wdsprx/wdsprxsettings.cpp index b69622198..15f2c26e0 100644 --- a/plugins/channelrx/wdsprx/wdsprxsettings.cpp +++ b/plugins/channelrx/wdsprx/wdsprxsettings.cpp @@ -757,6 +757,19 @@ void WDSPRxSettings::applySettings(const QStringList& settingsKeys, const WDSPRx if (settingsKeys.contains("profileIndex")) { m_profileIndex = settings.m_profileIndex; } + + if (settingsKeys.contains("spanLog2")) { + m_profiles[settings.m_profileIndex].m_spanLog2 = settings.m_profiles[settings.m_profileIndex].m_spanLog2; + } + if (settingsKeys.contains("highCutoff")) { + m_profiles[settings.m_profileIndex].m_highCutoff = settings.m_profiles[settings.m_profileIndex].m_highCutoff; + } + if (settingsKeys.contains("lowCutoff")) { + m_profiles[settings.m_profileIndex].m_lowCutoff = settings.m_profiles[settings.m_profileIndex].m_lowCutoff; + } + if (settingsKeys.contains("fftWindow")) { + m_profiles[settings.m_profileIndex].m_fftWindow = settings.m_profiles[settings.m_profileIndex].m_fftWindow; + } } QString WDSPRxSettings::getDebugString(const QStringList& settingsKeys, bool force) const diff --git a/plugins/channeltx/filesource/filesource.cpp b/plugins/channeltx/filesource/filesource.cpp index 73f2596a9..551e90ea9 100644 --- a/plugins/channeltx/filesource/filesource.cpp +++ b/plugins/channeltx/filesource/filesource.cpp @@ -256,7 +256,11 @@ void FileSource::applySettings(const QStringList& settingsKeys, const FileSource sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void FileSource::validateFilterChainHash(FileSourceSettings& settings) @@ -514,19 +518,35 @@ void FileSource::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respon QTime t(0, 0, 0, 0); t = t.addSecs(t_sec); t = t.addMSecs(t_msec); - response.getFileSourceReport()->setElapsedTime(new QString(t.toString("HH:mm:ss.zzz"))); + if (response.getFileSourceReport()->getElapsedTime()) { + *response.getFileSourceReport()->getElapsedTime() = t.toString("HH:mm:ss.zzz"); + } else { + response.getFileSourceReport()->setElapsedTime(new QString(t.toString("HH:mm:ss.zzz"))); + } qint64 startingTimeStampMsec = startingTimeStamp * 1000LL; QDateTime dt = QDateTime::fromMSecsSinceEpoch(startingTimeStampMsec); dt = dt.addSecs(t_sec); dt = dt.addMSecs(t_msec); - response.getFileSourceReport()->setAbsoluteTime(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + if (response.getFileSourceReport()->getAbsoluteTime()) { + *response.getFileSourceReport()->getAbsoluteTime() = dt.toString("yyyy-MM-dd HH:mm:ss.zzz"); + } else { + response.getFileSourceReport()->setAbsoluteTime(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + } QTime recordLength(0, 0, 0, 0); recordLength = recordLength.addSecs(fileRecordLength); - response.getFileSourceReport()->setDurationTime(new QString(recordLength.toString("HH:mm:ss"))); + if (response.getFileSourceReport()->getDurationTime()) { + *response.getFileSourceReport()->getDurationTime() = recordLength.toString("HH:mm:ss"); + } else { + response.getFileSourceReport()->setDurationTime(new QString(recordLength.toString("HH:mm:ss"))); + } - response.getFileSourceReport()->setFileName(new QString(m_settings.m_fileName)); + if (response.getFileSourceReport()->getFileName()) { + *response.getFileSourceReport()->getFileName() = m_settings.m_fileName; + } else { + response.getFileSourceReport()->setFileName(new QString(m_settings.m_fileName)); + } response.getFileSourceReport()->setFileSampleRate(fileSampleRate); response.getFileSourceReport()->setFileSampleSize(fileSampleSize); response.getFileSourceReport()->setSampleRate(m_basebandSampleRate); @@ -593,7 +613,11 @@ void FileSource::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setFileSourceSettings(new SWGSDRangel::SWGFileSourceSettings()); SWGSDRangel::SWGFileSourceSettings *swgFileSourceSettings = swgChannelSettings->getFileSourceSettings(); @@ -612,7 +636,11 @@ void FileSource::webapiFormatChannelSettings( swgFileSourceSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFileSourceSettings->setTitle(new QString(settings.m_title)); + if (swgFileSourceSettings->getTitle()) { + *swgFileSourceSettings->getTitle() = settings.m_title; + } else { + swgFileSourceSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgFileSourceSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/filesource/filesourcebaseband.cpp b/plugins/channeltx/filesource/filesourcebaseband.cpp index cdfd01427..8a034a7d2 100644 --- a/plugins/channeltx/filesource/filesourcebaseband.cpp +++ b/plugins/channeltx/filesource/filesourcebaseband.cpp @@ -198,7 +198,11 @@ void FileSourceBaseband::applySettings(const QStringList& settingsKeys, const Fi } m_source.applySettings(settingsKeys, settings, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int FileSourceBaseband::getChannelSampleRate() const diff --git a/plugins/channeltx/localsource/localsource.cpp b/plugins/channeltx/localsource/localsource.cpp index 8180fec56..da3ca869d 100644 --- a/plugins/channeltx/localsource/localsource.cpp +++ b/plugins/channeltx/localsource/localsource.cpp @@ -314,7 +314,11 @@ void LocalSource::applySettings(const QStringList& settingsKeys, const LocalSour sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void LocalSource::validateFilterChainHash(LocalSourceSettings& settings) @@ -547,7 +551,11 @@ void LocalSource::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setLocalSourceSettings(new SWGSDRangel::SWGLocalSourceSettings()); SWGSDRangel::SWGLocalSourceSettings *swgLocalSourceSettings = swgChannelSettings->getLocalSourceSettings(); @@ -560,7 +568,11 @@ void LocalSource::webapiFormatChannelSettings( swgLocalSourceSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgLocalSourceSettings->setTitle(new QString(settings.m_title)); + if (swgLocalSourceSettings->getTitle()) { + *swgLocalSourceSettings->getTitle() = settings.m_title; + } else { + swgLocalSourceSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("log2Interp") || force) { swgLocalSourceSettings->setLog2Interp(settings.m_log2Interp); diff --git a/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp b/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp index a16dac6c8..4a96860d2 100644 --- a/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp +++ b/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp @@ -217,7 +217,11 @@ void IEEE_802_15_4_Mod::applySettings(const QStringList& settingsKeys, const IEE sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray IEEE_802_15_4_Mod::serialize() const @@ -483,7 +487,11 @@ void IEEE_802_15_4_Mod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSetti response.getIeee802154ModSettings()->setBbNoise(settings.m_bbNoise ? 1 : 0); response.getIeee802154ModSettings()->setWriteToFile(settings.m_writeToFile ? 1 : 0); response.getIeee802154ModSettings()->setSpectrumRate(settings.m_spectrumRate); - response.getIeee802154ModSettings()->setData(new QString(settings.m_data)); + if (response.getIeee802154ModSettings()->getData()) { + *response.getIeee802154ModSettings()->getData() = settings.m_data; + } else { + response.getIeee802154ModSettings()->setData(new QString(settings.m_data)); + } response.getIeee802154ModSettings()->setRgbColor(settings.m_rgbColor); if (response.getIeee802154ModSettings()->getTitle()) { @@ -615,7 +623,11 @@ void IEEE_802_15_4_Mod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setIeee802154ModSettings(new SWGSDRangel::SWGIEEE_802_15_4_ModSettings()); SWGSDRangel::SWGIEEE_802_15_4_ModSettings *swgIEEE_802_15_4_ModSettings = swgChannelSettings->getIeee802154ModSettings(); @@ -676,13 +688,21 @@ void IEEE_802_15_4_Mod::webapiFormatChannelSettings( swgIEEE_802_15_4_ModSettings->setSpectrumRate(settings.m_spectrumRate); } if (channelSettingsKeys.contains("data") || force) { - swgIEEE_802_15_4_ModSettings->setData(new QString(settings.m_data)); + if (swgIEEE_802_15_4_ModSettings->getData()) { + *swgIEEE_802_15_4_ModSettings->getData() = settings.m_data; + } else { + swgIEEE_802_15_4_ModSettings->setData(new QString(settings.m_data)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgIEEE_802_15_4_ModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgIEEE_802_15_4_ModSettings->setTitle(new QString(settings.m_title)); + if (swgIEEE_802_15_4_ModSettings->getTitle()) { + *swgIEEE_802_15_4_ModSettings->getTitle() = settings.m_title; + } else { + swgIEEE_802_15_4_ModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgIEEE_802_15_4_ModSettings->setStreamIndex(settings.m_streamIndex); @@ -691,7 +711,11 @@ void IEEE_802_15_4_Mod::webapiFormatChannelSettings( swgIEEE_802_15_4_ModSettings->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); } if (channelSettingsKeys.contains("reverseAPIAddress") || force) { - swgIEEE_802_15_4_ModSettings->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + if (swgIEEE_802_15_4_ModSettings->getReverseApiAddress()) { + *swgIEEE_802_15_4_ModSettings->getReverseApiAddress() = settings.m_reverseAPIAddress; + } else { + swgIEEE_802_15_4_ModSettings->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + } } if (channelSettingsKeys.contains("reverseAPIPort") || force) { swgIEEE_802_15_4_ModSettings->setReverseApiPort(settings.m_reverseAPIPort); @@ -724,7 +748,11 @@ void IEEE_802_15_4_Mod::webapiFormatChannelSettings( swgIEEE_802_15_4_ModSettings->setUdpBytesFormat(settings.m_udpBytesFormat ? 1 : 0); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgIEEE_802_15_4_ModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgIEEE_802_15_4_ModSettings->getUdpAddress()) { + *swgIEEE_802_15_4_ModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgIEEE_802_15_4_ModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgIEEE_802_15_4_ModSettings->setUdpPort(settings.m_udpPort); diff --git a/plugins/channeltx/modais/aismod.cpp b/plugins/channeltx/modais/aismod.cpp index 68f6e447d..27e3ab039 100644 --- a/plugins/channeltx/modais/aismod.cpp +++ b/plugins/channeltx/modais/aismod.cpp @@ -359,7 +359,11 @@ void AISMod::applySettings(const QStringList& settingsKeys, const AISModSettings sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray AISMod::serialize() const @@ -689,7 +693,11 @@ void AISMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respon response.getAisModSettings()->setReverseApiChannelIndex(settings.m_reverseAPIChannelIndex); response.getAisModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getAisModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getAisModSettings()->getUdpAddress()) { + *response.getAisModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getAisModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getAisModSettings()->setUdpPort(settings.m_udpPort); if (settings.m_channelMarker) @@ -787,7 +795,11 @@ void AISMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setAisModSettings(new SWGSDRangel::SWGAISModSettings()); SWGSDRangel::SWGAISModSettings *swgAISModSettings = swgChannelSettings->getAisModSettings(); @@ -839,7 +851,11 @@ void AISMod::webapiFormatChannelSettings( swgAISModSettings->setMsgType((int) settings.m_msgType); } if (channelSettingsKeys.contains("mmsi")) { - swgAISModSettings->setMmsi(new QString(settings.m_mmsi)); + if (swgAISModSettings->getMmsi()) { + *swgAISModSettings->getMmsi() = settings.m_mmsi; + } else { + swgAISModSettings->setMmsi(new QString(settings.m_mmsi)); + } } if (channelSettingsKeys.contains("status")) { swgAISModSettings->setStatus((int) settings.m_status); @@ -860,7 +876,11 @@ void AISMod::webapiFormatChannelSettings( swgAISModSettings->setHeading(settings.m_heading); } if (channelSettingsKeys.contains("data")) { - swgAISModSettings->setData(new QString(settings.m_data)); + if (swgAISModSettings->getData()) { + *swgAISModSettings->getData() = settings.m_data; + } else { + swgAISModSettings->setData(new QString(settings.m_data)); + } } if (channelSettingsKeys.contains("bt")) { swgAISModSettings->setBt(settings.m_bt); @@ -872,7 +892,11 @@ void AISMod::webapiFormatChannelSettings( swgAISModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgAISModSettings->setTitle(new QString(settings.m_title)); + if (swgAISModSettings->getTitle()) { + *swgAISModSettings->getTitle() = settings.m_title; + } else { + swgAISModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgAISModSettings->setStreamIndex(settings.m_streamIndex); @@ -881,7 +905,11 @@ void AISMod::webapiFormatChannelSettings( swgAISModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgAISModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgAISModSettings->getUdpAddress()) { + *swgAISModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgAISModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgAISModSettings->setUdpPort(settings.m_udpPort); diff --git a/plugins/channeltx/modais/aismodbaseband.cpp b/plugins/channeltx/modais/aismodbaseband.cpp index 38959ebaf..b3ded200b 100644 --- a/plugins/channeltx/modais/aismodbaseband.cpp +++ b/plugins/channeltx/modais/aismodbaseband.cpp @@ -199,7 +199,11 @@ void AISModBaseband::applySettings(const QStringList& settingsKeys, const AISMod m_source.applySettings(settingsKeys, settings, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int AISModBaseband::getChannelSampleRate() const diff --git a/plugins/channeltx/modais/aismodsource.cpp b/plugins/channeltx/modais/aismodsource.cpp index 398a47ce7..00709458c 100644 --- a/plugins/channeltx/modais/aismodsource.cpp +++ b/plugins/channeltx/modais/aismodsource.cpp @@ -339,7 +339,11 @@ void AISModSource::applySettings(const QStringList& settingsKeys, const AISModSe addTXPacket(settings.m_data); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } // Precalculate FM sensensity and linear gain to save doing it in the loop m_samplesPerSymbol = AISModSettings::AISMOD_SAMPLE_RATE / m_settings.m_baud; diff --git a/plugins/channeltx/modam/ammod.cpp b/plugins/channeltx/modam/ammod.cpp index eb5149a04..1a2feba19 100644 --- a/plugins/channeltx/modam/ammod.cpp +++ b/plugins/channeltx/modam/ammod.cpp @@ -345,7 +345,11 @@ void AMMod::applySettings(const QStringList& settingsKeys, const AMModSettings& sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray AMMod::serialize() const @@ -702,7 +706,11 @@ void AMMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setAmModSettings(new SWGSDRangel::SWGAMModSettings()); SWGSDRangel::SWGAMModSettings *swgAMModSettings = swgChannelSettings->getAmModSettings(); @@ -718,7 +726,11 @@ void AMMod::webapiFormatChannelSettings( swgAMModSettings->setModAfInput((int) settings.m_modAFInput); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgAMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgAMModSettings->getAudioDeviceName()) { + *swgAMModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgAMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("playLoop") || force) { swgAMModSettings->setPlayLoop(settings.m_playLoop ? 1 : 0); @@ -730,7 +742,11 @@ void AMMod::webapiFormatChannelSettings( swgAMModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgAMModSettings->setTitle(new QString(settings.m_title)); + if (swgAMModSettings->getTitle()) { + *swgAMModSettings->getTitle() = settings.m_title; + } else { + swgAMModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("toneFrequency") || force) { swgAMModSettings->setToneFrequency(settings.m_toneFrequency); diff --git a/plugins/channeltx/modatv/atvmod.cpp b/plugins/channeltx/modatv/atvmod.cpp index 69d748e7f..87ab166c8 100644 --- a/plugins/channeltx/modatv/atvmod.cpp +++ b/plugins/channeltx/modatv/atvmod.cpp @@ -288,7 +288,11 @@ void ATVMod::applySettings(const QStringList& settingsKeys, const ATVModSettings sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray ATVMod::serialize() const @@ -651,7 +655,11 @@ void ATVMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setAtvModSettings(new SWGSDRangel::SWGATVModSettings()); SWGSDRangel::SWGATVModSettings *swgATVModSettings = swgChannelSettings->getAtvModSettings(); @@ -712,13 +720,21 @@ void ATVMod::webapiFormatChannelSettings( swgATVModSettings->setShowOverlayText(settings.m_showOverlayText ? 1 : 0); } if (channelSettingsKeys.contains("overlayText") || force) { - swgATVModSettings->setOverlayText(new QString(settings.m_overlayText)); + if (swgATVModSettings->getOverlayText()) { + *swgATVModSettings->getOverlayText() = settings.m_overlayText; + } else { + swgATVModSettings->setOverlayText(new QString(settings.m_overlayText)); + } } if (channelSettingsKeys.contains("rgbColor") || force) { swgATVModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgATVModSettings->setTitle(new QString(settings.m_title)); + if (swgATVModSettings->getTitle()) { + *swgATVModSettings->getTitle() = settings.m_title; + } else { + swgATVModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgATVModSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/modchirpchat/chirpchatmod.cpp b/plugins/channeltx/modchirpchat/chirpchatmod.cpp index 0093ed49b..1b5165244 100644 --- a/plugins/channeltx/modchirpchat/chirpchatmod.cpp +++ b/plugins/channeltx/modchirpchat/chirpchatmod.cpp @@ -739,7 +739,11 @@ void ChirpChatMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& response.getChirpChatModSettings()->setMessageRepeat(settings.m_messageRepeat); response.getChirpChatModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getChirpChatModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getChirpChatModSettings()->getUdpAddress()) { + *response.getChirpChatModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getChirpChatModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getChirpChatModSettings()->setUdpPort(settings.m_udpPort); response.getChirpChatModSettings()->setInvertRamps(settings.m_invertRamps ? 1 : 0); @@ -864,7 +868,11 @@ void ChirpChatMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setChirpChatModSettings(new SWGSDRangel::SWGChirpChatModSettings()); SWGSDRangel::SWGChirpChatModSettings *swgChirpChatModSettings = swgChannelSettings->getChirpChatModSettings(); @@ -907,46 +915,98 @@ void ChirpChatMod::webapiFormatChannelSettings( swgChirpChatModSettings->setHasHeader(settings.m_hasHeader ? 1 : 0); } if (channelSettingsKeys.contains("myCall") || force) { - swgChirpChatModSettings->setMyCall(new QString(settings.m_myCall)); + if (swgChirpChatModSettings->getMyCall()) { + *swgChirpChatModSettings->getMyCall() = settings.m_myCall; + } else { + swgChirpChatModSettings->setMyCall(new QString(settings.m_myCall)); + } } if (channelSettingsKeys.contains("urCall") || force) { - swgChirpChatModSettings->setUrCall(new QString(settings.m_urCall)); + if (swgChirpChatModSettings->getUrCall()) { + *swgChirpChatModSettings->getUrCall() = settings.m_urCall; + } else { + swgChirpChatModSettings->setUrCall(new QString(settings.m_urCall)); + } } if (channelSettingsKeys.contains("myLoc") || force) { - swgChirpChatModSettings->setMyLoc(new QString(settings.m_myLoc)); + if (swgChirpChatModSettings->getMyLoc()) { + *swgChirpChatModSettings->getMyLoc() = settings.m_myLoc; + } else { + swgChirpChatModSettings->setMyLoc(new QString(settings.m_myLoc)); + } } if (channelSettingsKeys.contains("myRpt") || force) { - swgChirpChatModSettings->setMyRpt(new QString(settings.m_myRpt)); + if (swgChirpChatModSettings->getMyRpt()) { + *swgChirpChatModSettings->getMyRpt() = settings.m_myRpt; + } else { + swgChirpChatModSettings->setMyRpt(new QString(settings.m_myRpt)); + } } if (channelSettingsKeys.contains("messageType") || force) { swgChirpChatModSettings->setMessageType((int) settings.m_messageType); } if (channelSettingsKeys.contains("beaconMessage") || force) { - swgChirpChatModSettings->setBeaconMessage(new QString(settings.m_beaconMessage)); + if (swgChirpChatModSettings->getBeaconMessage()) { + *swgChirpChatModSettings->getBeaconMessage() = settings.m_beaconMessage; + } else { + swgChirpChatModSettings->setBeaconMessage(new QString(settings.m_beaconMessage)); + } } if (channelSettingsKeys.contains("cqMessage") || force) { - swgChirpChatModSettings->setCqMessage(new QString(settings.m_cqMessage)); + if (swgChirpChatModSettings->getCqMessage()) { + *swgChirpChatModSettings->getCqMessage() = settings.m_cqMessage; + } else { + swgChirpChatModSettings->setCqMessage(new QString(settings.m_cqMessage)); + } } if (channelSettingsKeys.contains("replyMessage") || force) { - swgChirpChatModSettings->setReplyMessage(new QString(settings.m_replyMessage)); + if (swgChirpChatModSettings->getReplyMessage()) { + *swgChirpChatModSettings->getReplyMessage() = settings.m_replyMessage; + } else { + swgChirpChatModSettings->setReplyMessage(new QString(settings.m_replyMessage)); + } } if (channelSettingsKeys.contains("reportMessage") || force) { - swgChirpChatModSettings->setReportMessage(new QString(settings.m_reportMessage)); + if (swgChirpChatModSettings->getReportMessage()) { + *swgChirpChatModSettings->getReportMessage() = settings.m_reportMessage; + } else { + swgChirpChatModSettings->setReportMessage(new QString(settings.m_reportMessage)); + } } if (channelSettingsKeys.contains("replyReportMessage") || force) { - swgChirpChatModSettings->setReplyReportMessage(new QString(settings.m_replyReportMessage)); + if (swgChirpChatModSettings->getReplyReportMessage()) { + *swgChirpChatModSettings->getReplyReportMessage() = settings.m_replyReportMessage; + } else { + swgChirpChatModSettings->setReplyReportMessage(new QString(settings.m_replyReportMessage)); + } } if (channelSettingsKeys.contains("rrrMessage") || force) { - swgChirpChatModSettings->setRrrMessage(new QString(settings.m_rrrMessage)); + if (swgChirpChatModSettings->getRrrMessage()) { + *swgChirpChatModSettings->getRrrMessage() = settings.m_rrrMessage; + } else { + swgChirpChatModSettings->setRrrMessage(new QString(settings.m_rrrMessage)); + } } if (channelSettingsKeys.contains("message73") || force) { - swgChirpChatModSettings->setMessage73(new QString(settings.m_73Message)); + if (swgChirpChatModSettings->getMessage73()) { + *swgChirpChatModSettings->getMessage73() = settings.m_73Message; + } else { + swgChirpChatModSettings->setMessage73(new QString(settings.m_73Message)); + } } if (channelSettingsKeys.contains("qsoTextMessage") || force) { - swgChirpChatModSettings->setQsoTextMessage(new QString(settings.m_qsoTextMessage)); + if (swgChirpChatModSettings->getQsoTextMessage()) { + *swgChirpChatModSettings->getQsoTextMessage() = settings.m_qsoTextMessage; + } else { + swgChirpChatModSettings->setQsoTextMessage(new QString(settings.m_qsoTextMessage)); + } } if (channelSettingsKeys.contains("textMessage") || force) { - swgChirpChatModSettings->setTextMessage(new QString(settings.m_textMessage)); + if (swgChirpChatModSettings->getTextMessage()) { + *swgChirpChatModSettings->getTextMessage() = settings.m_textMessage; + } else { + swgChirpChatModSettings->setTextMessage(new QString(settings.m_textMessage)); + } } if (channelSettingsKeys.contains("bytesMessage") || force) @@ -969,7 +1029,11 @@ void ChirpChatMod::webapiFormatChannelSettings( swgChirpChatModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgChirpChatModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgChirpChatModSettings->getUdpAddress()) { + *swgChirpChatModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgChirpChatModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgChirpChatModSettings->setUdpPort(settings.m_udpPort); @@ -982,7 +1046,11 @@ void ChirpChatMod::webapiFormatChannelSettings( swgChirpChatModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgChirpChatModSettings->setTitle(new QString(settings.m_title)); + if (swgChirpChatModSettings->getTitle()) { + *swgChirpChatModSettings->getTitle() = settings.m_title; + } else { + swgChirpChatModSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_channelMarker && (channelSettingsKeys.contains("channelMarker") || force)) diff --git a/plugins/channeltx/moddatv/datvmod.cpp b/plugins/channeltx/moddatv/datvmod.cpp index 73ef86ef9..84c133720 100644 --- a/plugins/channeltx/moddatv/datvmod.cpp +++ b/plugins/channeltx/moddatv/datvmod.cpp @@ -272,7 +272,11 @@ void DATVMod::applySettings(const QStringList& settingsKeys, const DATVModSettin sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray DATVMod::serialize() const @@ -473,15 +477,35 @@ void DATVMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respo response.getDatvModSettings()->setSymbolRate(settings.m_symbolRate); response.getDatvModSettings()->setRollOff(settings.m_rollOff); response.getDatvModSettings()->setTsSource(settings.m_source); - response.getDatvModSettings()->setImageFileName(new QString(settings.m_imageFileName)); + if (response.getDatvModSettings()->getImageFileName()) { + *response.getDatvModSettings()->getImageFileName() = settings.m_imageFileName; + } else { + response.getDatvModSettings()->setImageFileName(new QString(settings.m_imageFileName)); + } response.getDatvModSettings()->setImageOverlayTimestamp(settings.m_imageOverlayTimestamp ? 1 : 0); - response.getDatvModSettings()->setImageServiceProvider(new QString(settings.m_imageServiceProvider)); - response.getDatvModSettings()->setImageServiceName(new QString(settings.m_imageServiceName)); + if (response.getDatvModSettings()->getImageServiceProvider()) { + *response.getDatvModSettings()->getImageServiceProvider() = settings.m_imageServiceProvider; + } else { + response.getDatvModSettings()->setImageServiceProvider(new QString(settings.m_imageServiceProvider)); + } + if (response.getDatvModSettings()->getImageServiceName()) { + *response.getDatvModSettings()->getImageServiceName() = settings.m_imageServiceName; + } else { + response.getDatvModSettings()->setImageServiceName(new QString(settings.m_imageServiceName)); + } response.getDatvModSettings()->setImageCodec((int)settings.m_imageCodec); - response.getDatvModSettings()->setTsFileName(new QString(settings.m_tsFileName)); + if (response.getDatvModSettings()->getTsFileName()) { + *response.getDatvModSettings()->getTsFileName() = settings.m_tsFileName; + } else { + response.getDatvModSettings()->setTsFileName(new QString(settings.m_tsFileName)); + } response.getDatvModSettings()->setTsFilePlayLoop(settings.m_tsFilePlayLoop ? 1 : 0); response.getDatvModSettings()->setTsFilePlay(settings.m_tsFilePlay ? 1 : 0); - response.getDatvModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getDatvModSettings()->getUdpAddress()) { + *response.getDatvModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getDatvModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getDatvModSettings()->setUdpPort(settings.m_udpPort); response.getDatvModSettings()->setChannelMute(settings.m_channelMute ? 1 : 0); @@ -615,7 +639,11 @@ void DATVMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setDatvModSettings(new SWGSDRangel::SWGDATVModSettings()); SWGSDRangel::SWGDATVModSettings *swgDATVModSettings = swgChannelSettings->getDatvModSettings(); @@ -646,22 +674,38 @@ void DATVMod::webapiFormatChannelSettings( swgDATVModSettings->setRollOff(settings.m_rollOff); } if (channelSettingsKeys.contains("imageFileName") || force) { - swgDATVModSettings->setImageFileName(new QString(settings.m_imageFileName)); + if (swgDATVModSettings->getImageFileName()) { + *swgDATVModSettings->getImageFileName() = settings.m_imageFileName; + } else { + swgDATVModSettings->setImageFileName(new QString(settings.m_imageFileName)); + } } if (channelSettingsKeys.contains("imageOverlayTimestamp") || force) { swgDATVModSettings->setImageOverlayTimestamp(settings.m_imageOverlayTimestamp ? 1 : 0); } if (channelSettingsKeys.contains("imageServiceProvider") || force) { - swgDATVModSettings->setImageServiceProvider(new QString(settings.m_imageServiceProvider)); + if (swgDATVModSettings->getImageServiceProvider()) { + *swgDATVModSettings->getImageServiceProvider() = settings.m_imageServiceProvider; + } else { + swgDATVModSettings->setImageServiceProvider(new QString(settings.m_imageServiceProvider)); + } } if (channelSettingsKeys.contains("imageServiceName") || force) { - swgDATVModSettings->setImageServiceName(new QString(settings.m_imageServiceName)); + if (swgDATVModSettings->getImageServiceName()) { + *swgDATVModSettings->getImageServiceName() = settings.m_imageServiceName; + } else { + swgDATVModSettings->setImageServiceName(new QString(settings.m_imageServiceName)); + } } if (channelSettingsKeys.contains("imageCodec") || force) { swgDATVModSettings->setImageCodec((int) settings.m_imageCodec); } if (channelSettingsKeys.contains("tsFileName") || force) { - swgDATVModSettings->setTsFileName(new QString(settings.m_tsFileName)); + if (swgDATVModSettings->getTsFileName()) { + *swgDATVModSettings->getTsFileName() = settings.m_tsFileName; + } else { + swgDATVModSettings->setTsFileName(new QString(settings.m_tsFileName)); + } } if (channelSettingsKeys.contains("tsFilePlayLoop") || force) { swgDATVModSettings->setTsFilePlayLoop(settings.m_tsFilePlayLoop ? 1 : 0); @@ -670,7 +714,11 @@ void DATVMod::webapiFormatChannelSettings( swgDATVModSettings->setTsFilePlay(settings.m_tsFilePlay ? 1 : 0); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgDATVModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgDATVModSettings->getUdpAddress()) { + *swgDATVModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgDATVModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgDATVModSettings->setUdpPort(settings.m_udpPort); @@ -682,7 +730,11 @@ void DATVMod::webapiFormatChannelSettings( swgDATVModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgDATVModSettings->setTitle(new QString(settings.m_title)); + if (swgDATVModSettings->getTitle()) { + *swgDATVModSettings->getTitle() = settings.m_title; + } else { + swgDATVModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgDATVModSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/moddatv/datvmodbaseband.cpp b/plugins/channeltx/moddatv/datvmodbaseband.cpp index aceda4bb0..15bbceaee 100644 --- a/plugins/channeltx/moddatv/datvmodbaseband.cpp +++ b/plugins/channeltx/moddatv/datvmodbaseband.cpp @@ -204,7 +204,11 @@ bool DATVModBaseband::handleMessage(const Message& cmd) void DATVModBaseband::applySettings(const QStringList& settingsKeys, const DATVModSettings& settings, bool force) { m_source.applySettings(settingsKeys, settings, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int DATVModBaseband::getChannelSampleRate() const diff --git a/plugins/channeltx/moddatv/datvmodsource.cpp b/plugins/channeltx/moddatv/datvmodsource.cpp index cb4c18a57..90a21b163 100644 --- a/plugins/channeltx/moddatv/datvmodsource.cpp +++ b/plugins/channeltx/moddatv/datvmodsource.cpp @@ -902,7 +902,11 @@ void DATVModSource::applySettings(const QStringList& settingsKeys, const DATVMod m_tsGenerator.set_codec(settings.m_imageCodec); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } if (m_settings.m_symbolRate > 0) m_samplesPerSymbol = m_channelSampleRate/m_settings.m_symbolRate; diff --git a/plugins/channeltx/modfreedv/freedvmod.cpp b/plugins/channeltx/modfreedv/freedvmod.cpp index b722a1e30..3a7a242c7 100644 --- a/plugins/channeltx/modfreedv/freedvmod.cpp +++ b/plugins/channeltx/modfreedv/freedvmod.cpp @@ -303,7 +303,11 @@ void FreeDVMod::applySettings(const QStringList& settingsKeys, const FreeDVModSe sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray FreeDVMod::serialize() const @@ -658,7 +662,11 @@ void FreeDVMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setFreeDvModSettings(new SWGSDRangel::SWGFreeDVModSettings()); SWGSDRangel::SWGFreeDVModSettings *swgFreeDVModSettings = swgChannelSettings->getFreeDvModSettings(); @@ -689,7 +697,11 @@ void FreeDVMod::webapiFormatChannelSettings( swgFreeDVModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgFreeDVModSettings->setTitle(new QString(settings.m_title)); + if (swgFreeDVModSettings->getTitle()) { + *swgFreeDVModSettings->getTitle() = settings.m_title; + } else { + swgFreeDVModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("freeDVMode") || force) { swgFreeDVModSettings->setFreeDvMode((int) settings.m_freeDVMode); @@ -698,7 +710,11 @@ void FreeDVMod::webapiFormatChannelSettings( swgFreeDVModSettings->setModAfInput((int) settings.m_modAFInput); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgFreeDVModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgFreeDVModSettings->getAudioDeviceName()) { + *swgFreeDVModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgFreeDVModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgFreeDVModSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/modm17/m17mod.cpp b/plugins/channeltx/modm17/m17mod.cpp index e70c4eb8f..141ebc3fe 100644 --- a/plugins/channeltx/modm17/m17mod.cpp +++ b/plugins/channeltx/modm17/m17mod.cpp @@ -532,6 +532,9 @@ void M17Mod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("aprsVia")) { settings.m_aprsVia = *response.getM17ModSettings()->getAprsVia(); } + if (channelSettingsKeys.contains("aprsData")) { + settings.m_aprsData = *response.getM17ModSettings()->getAprsData(); + } if (channelSettingsKeys.contains("aprsInsertPosition")) { settings.m_aprsInsertPosition = response.getM17ModSettings()->getAprsInsertPosition() != 0; } @@ -643,6 +646,12 @@ void M17Mod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respon response.getM17ModSettings()->setAprsVia(new QString(settings.m_aprsVia)); } + if (response.getM17ModSettings()->getAprsData()) { + *response.getM17ModSettings()->getAprsData() = settings.m_aprsData; + } else { + response.getM17ModSettings()->setAprsData(new QString(settings.m_aprsData)); + } + response.getM17ModSettings()->setAprsInsertPosition(settings.m_aprsInsertPosition ? 1 : 0); if (settings.m_channelMarker) @@ -741,7 +750,11 @@ void M17Mod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setM17ModSettings(new SWGSDRangel::SWGM17ModSettings()); SWGSDRangel::SWGM17ModSettings *swgM17ModSettings = swgChannelSettings->getM17ModSettings(); @@ -772,7 +785,11 @@ void M17Mod::webapiFormatChannelSettings( swgM17ModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title")) { - swgM17ModSettings->setTitle(new QString(settings.m_title)); + if (swgM17ModSettings->getTitle()) { + *swgM17ModSettings->getTitle() = settings.m_title; + } else { + swgM17ModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("m17Mode")) { swgM17ModSettings->setM17Mode((int) settings.m_m17Mode); @@ -784,10 +801,18 @@ void M17Mod::webapiFormatChannelSettings( swgM17ModSettings->setPacketType((int) settings.m_packetType); } if (channelSettingsKeys.contains("audioDeviceName")) { - swgM17ModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgM17ModSettings->getAudioDeviceName()) { + *swgM17ModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgM17ModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("feedbackAudioDeviceName")) { - swgM17ModSettings->setFeedbackAudioDeviceName(new QString(settings.m_feedbackAudioDeviceName)); + if (swgM17ModSettings->getFeedbackAudioDeviceName()) { + *swgM17ModSettings->getFeedbackAudioDeviceName() = settings.m_feedbackAudioDeviceName; + } else { + swgM17ModSettings->setFeedbackAudioDeviceName(new QString(settings.m_feedbackAudioDeviceName)); + } } if (channelSettingsKeys.contains("feedbackVolumeFactor")) { swgM17ModSettings->setFeedbackVolumeFactor(settings.m_feedbackVolumeFactor); @@ -799,10 +824,18 @@ void M17Mod::webapiFormatChannelSettings( swgM17ModSettings->setStreamIndex(settings.m_streamIndex); } if (channelSettingsKeys.contains("sourceCall")) { - swgM17ModSettings->setSourceCall(new QString(settings.m_sourceCall)); + if (swgM17ModSettings->getSourceCall()) { + *swgM17ModSettings->getSourceCall() = settings.m_sourceCall; + } else { + swgM17ModSettings->setSourceCall(new QString(settings.m_sourceCall)); + } } if (channelSettingsKeys.contains("destCall")) { - swgM17ModSettings->setDestCall(new QString(settings.m_destCall)); + if (swgM17ModSettings->getDestCall()) { + *swgM17ModSettings->getDestCall() = settings.m_destCall; + } else { + swgM17ModSettings->setDestCall(new QString(settings.m_destCall)); + } } if (channelSettingsKeys.contains("insertPosition")) { swgM17ModSettings->setInsertPosition(settings.m_insertPosition ? 1 : 0); @@ -811,7 +844,11 @@ void M17Mod::webapiFormatChannelSettings( swgM17ModSettings->setCan(settings.m_can); } if (channelSettingsKeys.contains("smsText")) { - swgM17ModSettings->setSmsText(new QString(settings.m_smsText)); + if (swgM17ModSettings->getSmsText()) { + *swgM17ModSettings->getSmsText() = settings.m_smsText; + } else { + swgM17ModSettings->setSmsText(new QString(settings.m_smsText)); + } } if (channelSettingsKeys.contains("loopPacket")) { swgM17ModSettings->setLoopPacket(settings.m_loopPacket ? 1 : 0); @@ -820,13 +857,25 @@ void M17Mod::webapiFormatChannelSettings( swgM17ModSettings->setLoopPacketInterval(settings.m_loopPacketInterval); } if (channelSettingsKeys.contains("aprsCallsign")) { - swgM17ModSettings->setAprsCallsign(new QString(settings.m_aprsCallsign)); + if (swgM17ModSettings->getAprsCallsign()) { + *swgM17ModSettings->getAprsCallsign() = settings.m_aprsCallsign; + } else { + swgM17ModSettings->setAprsCallsign(new QString(settings.m_aprsCallsign)); + } } if (channelSettingsKeys.contains("aprsTo")) { - swgM17ModSettings->setAprsTo(new QString(settings.m_aprsTo)); + if (swgM17ModSettings->getAprsTo()) { + *swgM17ModSettings->getAprsTo() = settings.m_aprsTo; + } else { + swgM17ModSettings->setAprsTo(new QString(settings.m_aprsTo)); + } } if (channelSettingsKeys.contains("aprsVia")) { - swgM17ModSettings->setAprsVia(new QString(settings.m_aprsVia)); + if (swgM17ModSettings->getAprsVia()) { + *swgM17ModSettings->getAprsVia() = settings.m_aprsVia; + } else { + swgM17ModSettings->setAprsVia(new QString(settings.m_aprsVia)); + } } if (channelSettingsKeys.contains("aprsInsertPosition")) { swgM17ModSettings->setAprsInsertPosition(settings.m_aprsInsertPosition ? 1 : 0); diff --git a/plugins/channeltx/modmeshcore/meshcoremod.cpp b/plugins/channeltx/modmeshcore/meshcoremod.cpp index 08172c896..0a45a083e 100644 --- a/plugins/channeltx/modmeshcore/meshcoremod.cpp +++ b/plugins/channeltx/modmeshcore/meshcoremod.cpp @@ -600,7 +600,11 @@ void MeshcoreMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& r response.getMeshcoreModSettings()->setMessageRepeat(settings.m_messageRepeat); response.getMeshcoreModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getMeshcoreModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getMeshcoreModSettings()->getUdpAddress()) { + *response.getMeshcoreModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getMeshcoreModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getMeshcoreModSettings()->setUdpPort(settings.m_udpPort); response.getMeshcoreModSettings()->setInvertRamps(settings.m_invertRamps ? 1 : 0); @@ -725,7 +729,11 @@ void MeshcoreMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setMeshcoreModSettings(new SWGSDRangel::SWGMeshcoreModSettings()); SWGSDRangel::SWGMeshcoreModSettings *swgMeshcoreModSettings = swgChannelSettings->getMeshcoreModSettings(); @@ -759,7 +767,11 @@ void MeshcoreMod::webapiFormatChannelSettings( swgMeshcoreModSettings->setNbParityBits(settings.m_nbParityBits); } if (channelSettingsKeys.contains("textMessage") || force) { - swgMeshcoreModSettings->setTextMessage(new QString(settings.m_textMessage)); + if (swgMeshcoreModSettings->getTextMessage()) { + *swgMeshcoreModSettings->getTextMessage() = settings.m_textMessage; + } else { + swgMeshcoreModSettings->setTextMessage(new QString(settings.m_textMessage)); + } } if (channelSettingsKeys.contains("messageRepeat") || force) { @@ -770,7 +782,11 @@ void MeshcoreMod::webapiFormatChannelSettings( swgMeshcoreModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgMeshcoreModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgMeshcoreModSettings->getUdpAddress()) { + *swgMeshcoreModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgMeshcoreModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgMeshcoreModSettings->setUdpPort(settings.m_udpPort); @@ -783,7 +799,11 @@ void MeshcoreMod::webapiFormatChannelSettings( swgMeshcoreModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgMeshcoreModSettings->setTitle(new QString(settings.m_title)); + if (swgMeshcoreModSettings->getTitle()) { + *swgMeshcoreModSettings->getTitle() = settings.m_title; + } else { + swgMeshcoreModSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_channelMarker && (channelSettingsKeys.contains("channelMarker") || force)) diff --git a/plugins/channeltx/modmeshtastic/meshtasticmod.cpp b/plugins/channeltx/modmeshtastic/meshtasticmod.cpp index cb88c5727..6840495d2 100644 --- a/plugins/channeltx/modmeshtastic/meshtasticmod.cpp +++ b/plugins/channeltx/modmeshtastic/meshtasticmod.cpp @@ -563,7 +563,11 @@ void MeshtasticMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& response.getMeshtasticModSettings()->setMessageRepeat(settings.m_messageRepeat); response.getMeshtasticModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getMeshtasticModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getMeshtasticModSettings()->getUdpAddress()) { + *response.getMeshtasticModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getMeshtasticModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getMeshtasticModSettings()->setUdpPort(settings.m_udpPort); response.getMeshtasticModSettings()->setInvertRamps(settings.m_invertRamps ? 1 : 0); @@ -688,7 +692,11 @@ void MeshtasticMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setMeshtasticModSettings(new SWGSDRangel::SWGMeshtasticModSettings()); SWGSDRangel::SWGMeshtasticModSettings *swgMeshtasticModSettings = swgChannelSettings->getMeshtasticModSettings(); @@ -722,7 +730,11 @@ void MeshtasticMod::webapiFormatChannelSettings( swgMeshtasticModSettings->setNbParityBits(settings.m_nbParityBits); } if (channelSettingsKeys.contains("textMessage") || force) { - swgMeshtasticModSettings->setTextMessage(new QString(settings.m_textMessage)); + if (swgMeshtasticModSettings->getTextMessage()) { + *swgMeshtasticModSettings->getTextMessage() = settings.m_textMessage; + } else { + swgMeshtasticModSettings->setTextMessage(new QString(settings.m_textMessage)); + } } if (channelSettingsKeys.contains("messageRepeat") || force) { @@ -733,7 +745,11 @@ void MeshtasticMod::webapiFormatChannelSettings( swgMeshtasticModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgMeshtasticModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgMeshtasticModSettings->getUdpAddress()) { + *swgMeshtasticModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgMeshtasticModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgMeshtasticModSettings->setUdpPort(settings.m_udpPort); @@ -746,7 +762,11 @@ void MeshtasticMod::webapiFormatChannelSettings( swgMeshtasticModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgMeshtasticModSettings->setTitle(new QString(settings.m_title)); + if (swgMeshtasticModSettings->getTitle()) { + *swgMeshtasticModSettings->getTitle() = settings.m_title; + } else { + swgMeshtasticModSettings->setTitle(new QString(settings.m_title)); + } } if (settings.m_channelMarker && (channelSettingsKeys.contains("channelMarker") || force)) diff --git a/plugins/channeltx/modnfm/nfmmod.cpp b/plugins/channeltx/modnfm/nfmmod.cpp index f1baba7b1..6a1fbc261 100644 --- a/plugins/channeltx/modnfm/nfmmod.cpp +++ b/plugins/channeltx/modnfm/nfmmod.cpp @@ -380,7 +380,11 @@ void NFMMod::applySettings(const QStringList& settingsKeys, const NFMModSettings sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray NFMMod::serialize() const @@ -765,7 +769,11 @@ void NFMMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setNfmModSettings(new SWGSDRangel::SWGNFMModSettings()); SWGSDRangel::SWGNFMModSettings *swgNFMModSettings = swgChannelSettings->getNfmModSettings(); @@ -781,7 +789,11 @@ void NFMMod::webapiFormatChannelSettings( swgNFMModSettings->setModAfInput((int) settings.m_modAFInput); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgNFMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgNFMModSettings->getAudioDeviceName()) { + *swgNFMModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgNFMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("playLoop") || force) { swgNFMModSettings->setPlayLoop(settings.m_playLoop ? 1 : 0); @@ -799,7 +811,11 @@ void NFMMod::webapiFormatChannelSettings( swgNFMModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgNFMModSettings->setTitle(new QString(settings.m_title)); + if (swgNFMModSettings->getTitle()) { + *swgNFMModSettings->getTitle() = settings.m_title; + } else { + swgNFMModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("toneFrequency") || force) { swgNFMModSettings->setToneFrequency(settings.m_toneFrequency); diff --git a/plugins/channeltx/modpacket/packetmod.cpp b/plugins/channeltx/modpacket/packetmod.cpp index 3aaea86df..b1dc4a224 100644 --- a/plugins/channeltx/modpacket/packetmod.cpp +++ b/plugins/channeltx/modpacket/packetmod.cpp @@ -238,7 +238,11 @@ void PacketMod::applySettings(const QStringList& settingsKeys, const PacketModSe sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray PacketMod::serialize() const @@ -445,6 +449,9 @@ void PacketMod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("polynomial")) { settings.m_polynomial = response.getPacketModSettings()->getPolynomial(); } + if (channelSettingsKeys.contains("pulseShaping")) { + settings.m_pulseShaping = response.getPacketModSettings()->getPulseShaping() != 0; + } if (channelSettingsKeys.contains("beta")) { settings.m_beta = response.getPacketModSettings()->getBeta(); } @@ -628,7 +635,11 @@ void PacketMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& res response.getPacketModSettings()->setBeta(settings.m_beta); response.getPacketModSettings()->setSymbolSpan(settings.m_symbolSpan); response.getPacketModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getPacketModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getPacketModSettings()->getUdpAddress()) { + *response.getPacketModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getPacketModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getPacketModSettings()->setUdpPort(settings.m_udpPort); response.getPacketModSettings()->setRgbColor(settings.m_rgbColor); @@ -746,7 +757,11 @@ void PacketMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setPacketModSettings(new SWGSDRangel::SWGPacketModSettings()); SWGSDRangel::SWGPacketModSettings *swgPacketModSettings = swgChannelSettings->getPacketModSettings(); @@ -837,16 +852,32 @@ void PacketMod::webapiFormatChannelSettings( swgPacketModSettings->setSpectrumRate(settings.m_spectrumRate); } if (channelSettingsKeys.contains("callsign")) { - swgPacketModSettings->setCallsign(new QString(settings.m_callsign)); + if (swgPacketModSettings->getCallsign()) { + *swgPacketModSettings->getCallsign() = settings.m_callsign; + } else { + swgPacketModSettings->setCallsign(new QString(settings.m_callsign)); + } } if (channelSettingsKeys.contains("to")) { - swgPacketModSettings->setTo(new QString(settings.m_to)); + if (swgPacketModSettings->getTo()) { + *swgPacketModSettings->getTo() = settings.m_to; + } else { + swgPacketModSettings->setTo(new QString(settings.m_to)); + } } if (channelSettingsKeys.contains("via")) { - swgPacketModSettings->setVia(new QString(settings.m_via)); + if (swgPacketModSettings->getVia()) { + *swgPacketModSettings->getVia() = settings.m_via; + } else { + swgPacketModSettings->setVia(new QString(settings.m_via)); + } } if (channelSettingsKeys.contains("data")) { - swgPacketModSettings->setData(new QString(settings.m_data)); + if (swgPacketModSettings->getData()) { + *swgPacketModSettings->getData() = settings.m_data; + } else { + swgPacketModSettings->setData(new QString(settings.m_data)); + } } if (channelSettingsKeys.contains("bpf") || force) { swgPacketModSettings->setBpf(settings.m_bpf ? 1 : 0); @@ -876,7 +907,11 @@ void PacketMod::webapiFormatChannelSettings( swgPacketModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgPacketModSettings->setTitle(new QString(settings.m_title)); + if (swgPacketModSettings->getTitle()) { + *swgPacketModSettings->getTitle() = settings.m_title; + } else { + swgPacketModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgPacketModSettings->setStreamIndex(settings.m_streamIndex); @@ -885,7 +920,11 @@ void PacketMod::webapiFormatChannelSettings( swgPacketModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgPacketModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgPacketModSettings->getUdpAddress()) { + *swgPacketModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgPacketModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgPacketModSettings->setUdpPort(settings.m_udpPort); diff --git a/plugins/channeltx/modpsk31/psk31mod.cpp b/plugins/channeltx/modpsk31/psk31mod.cpp index 28934c72c..4fdae2cdf 100644 --- a/plugins/channeltx/modpsk31/psk31mod.cpp +++ b/plugins/channeltx/modpsk31/psk31mod.cpp @@ -364,6 +364,9 @@ void PSK31::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("text")) { settings.m_text = *response.getPsk31ModSettings()->getText(); } + if (channelSettingsKeys.contains("pulseShaping")) { + settings.m_pulseShaping = response.getPsk31ModSettings()->getPulseShaping() != 0; + } if (channelSettingsKeys.contains("beta")) { settings.m_beta = response.getPsk31ModSettings()->getBeta(); } @@ -502,7 +505,11 @@ void PSK31::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respons response.getPsk31ModSettings()->setPostfixCrlf(settings.m_postfixCRLF); response.getPsk31ModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getPsk31ModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getPsk31ModSettings()->getUdpAddress()) { + *response.getPsk31ModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getPsk31ModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getPsk31ModSettings()->setUdpPort(settings.m_udpPort); response.getPsk31ModSettings()->setRgbColor(settings.m_rgbColor); @@ -620,7 +627,11 @@ void PSK31::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setPsk31ModSettings(new SWGSDRangel::SWGPSK31ModSettings()); SWGSDRangel::SWGPSK31ModSettings *swgPSK31ModSettings = swgChannelSettings->getPsk31ModSettings(); @@ -651,7 +662,11 @@ void PSK31::webapiFormatChannelSettings( swgPSK31ModSettings->setRfNoise(settings.m_rfNoise ? 1 : 0); } if (channelSettingsKeys.contains("text")) { - swgPSK31ModSettings->setText(new QString(settings.m_text)); + if (swgPSK31ModSettings->getText()) { + *swgPSK31ModSettings->getText() = settings.m_text; + } else { + swgPSK31ModSettings->setText(new QString(settings.m_text)); + } } if (channelSettingsKeys.contains("beta")) { swgPSK31ModSettings->setBeta(settings.m_beta); @@ -669,7 +684,11 @@ void PSK31::webapiFormatChannelSettings( swgPSK31ModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgPSK31ModSettings->setTitle(new QString(settings.m_title)); + if (swgPSK31ModSettings->getTitle()) { + *swgPSK31ModSettings->getTitle() = settings.m_title; + } else { + swgPSK31ModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgPSK31ModSettings->setStreamIndex(settings.m_streamIndex); @@ -678,7 +697,11 @@ void PSK31::webapiFormatChannelSettings( swgPSK31ModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgPSK31ModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgPSK31ModSettings->getUdpAddress()) { + *swgPSK31ModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgPSK31ModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgPSK31ModSettings->setUdpPort(settings.m_udpPort); diff --git a/plugins/channeltx/modrtty/rttymod.cpp b/plugins/channeltx/modrtty/rttymod.cpp index e0f1e5daa..9197e83e7 100644 --- a/plugins/channeltx/modrtty/rttymod.cpp +++ b/plugins/channeltx/modrtty/rttymod.cpp @@ -370,6 +370,9 @@ void RttyMod::webapiUpdateChannelSettings( if (channelSettingsKeys.contains("text")) { settings.m_text = *response.getRttyModSettings()->getText(); } + if (channelSettingsKeys.contains("pulseShaping")) { + settings.m_pulseShaping = response.getRttyModSettings()->getPulseShaping() != 0; + } if (channelSettingsKeys.contains("beta")) { settings.m_beta = response.getRttyModSettings()->getBeta(); } @@ -527,7 +530,11 @@ void RttyMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respo response.getRttyModSettings()->setPostfixCrlf(settings.m_postfixCRLF); response.getRttyModSettings()->setUdpEnabled(settings.m_udpEnabled); - response.getRttyModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + if (response.getRttyModSettings()->getUdpAddress()) { + *response.getRttyModSettings()->getUdpAddress() = settings.m_udpAddress; + } else { + response.getRttyModSettings()->setUdpAddress(new QString(settings.m_udpAddress)); + } response.getRttyModSettings()->setUdpPort(settings.m_udpPort); response.getRttyModSettings()->setRgbColor(settings.m_rgbColor); @@ -645,7 +652,11 @@ void RttyMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setRttyModSettings(new SWGSDRangel::SWGRTTYModSettings()); SWGSDRangel::SWGRTTYModSettings *swgRttyModSettings = swgChannelSettings->getRttyModSettings(); @@ -682,7 +693,11 @@ void RttyMod::webapiFormatChannelSettings( swgRttyModSettings->setRfNoise(settings.m_rfNoise ? 1 : 0); } if (channelSettingsKeys.contains("text")) { - swgRttyModSettings->setText(new QString(settings.m_text)); + if (swgRttyModSettings->getText()) { + *swgRttyModSettings->getText() = settings.m_text; + } else { + swgRttyModSettings->setText(new QString(settings.m_text)); + } } if (channelSettingsKeys.contains("beta")) { swgRttyModSettings->setBeta(settings.m_beta); @@ -712,7 +727,11 @@ void RttyMod::webapiFormatChannelSettings( swgRttyModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgRttyModSettings->setTitle(new QString(settings.m_title)); + if (swgRttyModSettings->getTitle()) { + *swgRttyModSettings->getTitle() = settings.m_title; + } else { + swgRttyModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRttyModSettings->setStreamIndex(settings.m_streamIndex); @@ -721,7 +740,11 @@ void RttyMod::webapiFormatChannelSettings( swgRttyModSettings->setUdpEnabled(settings.m_udpEnabled); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgRttyModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgRttyModSettings->getUdpAddress()) { + *swgRttyModSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgRttyModSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgRttyModSettings->setUdpPort(settings.m_udpPort); diff --git a/plugins/channeltx/modssb/ssbmod.cpp b/plugins/channeltx/modssb/ssbmod.cpp index 044a148f6..874acfa83 100644 --- a/plugins/channeltx/modssb/ssbmod.cpp +++ b/plugins/channeltx/modssb/ssbmod.cpp @@ -343,7 +343,11 @@ void SSBMod::applySettings(const QStringList& settingKeys, const SSBModSettings& sendChannelSettings(pipes, settingKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingKeys, settings); + } m_settings.m_bandwidth = band; m_settings.m_lowCutoff = lowCutoff; m_settings.m_usb = usb; @@ -752,7 +756,11 @@ void SSBMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setSsbModSettings(new SWGSDRangel::SWGSSBModSettings()); SWGSDRangel::SWGSSBModSettings *swgSSBModSettings = swgChannelSettings->getSsbModSettings(); @@ -807,13 +815,21 @@ void SSBMod::webapiFormatChannelSettings( swgSSBModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgSSBModSettings->setTitle(new QString(settings.m_title)); + if (swgSSBModSettings->getTitle()) { + *swgSSBModSettings->getTitle() = settings.m_title; + } else { + swgSSBModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("modAFInput") || force) { swgSSBModSettings->setModAfInput((int) settings.m_modAFInput); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgSSBModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgSSBModSettings->getAudioDeviceName()) { + *swgSSBModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgSSBModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgSSBModSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/modwfm/wfmmod.cpp b/plugins/channeltx/modwfm/wfmmod.cpp index 67d9701a0..4c37b6d68 100644 --- a/plugins/channeltx/modwfm/wfmmod.cpp +++ b/plugins/channeltx/modwfm/wfmmod.cpp @@ -293,7 +293,11 @@ void WFMMod::applySettings(const QStringList& settingsKeys, const WFMModSettings sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray WFMMod::serialize() const @@ -647,7 +651,11 @@ void WFMMod::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setWfmModSettings(new SWGSDRangel::SWGWFMModSettings()); SWGSDRangel::SWGWFMModSettings *swgWFMModSettings = swgChannelSettings->getWfmModSettings(); @@ -675,7 +683,11 @@ void WFMMod::webapiFormatChannelSettings( swgWFMModSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("title") || force) { - swgWFMModSettings->setTitle(new QString(settings.m_title)); + if (swgWFMModSettings->getTitle()) { + *swgWFMModSettings->getTitle() = settings.m_title; + } else { + swgWFMModSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("toneFrequency") || force) { swgWFMModSettings->setToneFrequency(settings.m_toneFrequency); @@ -690,7 +702,11 @@ void WFMMod::webapiFormatChannelSettings( swgWFMModSettings->setStreamIndex(settings.m_streamIndex); } if (channelSettingsKeys.contains("audioDeviceName") || force) { - swgWFMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + if (swgWFMModSettings->getAudioDeviceName()) { + *swgWFMModSettings->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + swgWFMModSettings->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } } if (settings.m_channelMarker && (channelSettingsKeys.contains("channelMarker") || force)) diff --git a/plugins/channeltx/remotesource/remotesource.cpp b/plugins/channeltx/remotesource/remotesource.cpp index 16451aaef..7459bf27b 100644 --- a/plugins/channeltx/remotesource/remotesource.cpp +++ b/plugins/channeltx/remotesource/remotesource.cpp @@ -244,7 +244,11 @@ void RemoteSource::applySettings(const QStringList& settingsKeys, const RemoteSo sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void RemoteSource::validateFilterChainHash(RemoteSourceSettings& settings) @@ -518,14 +522,22 @@ void RemoteSource::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setRemoteSourceSettings(new SWGSDRangel::SWGRemoteSourceSettings()); SWGSDRangel::SWGRemoteSourceSettings *swgRemoteSourceSettings = swgChannelSettings->getRemoteSourceSettings(); // transfer data that has been modified. When force is on transfer all data except reverse API data if (channelSettingsKeys.contains("dataAddress") || force) { - swgRemoteSourceSettings->setDataAddress(new QString(settings.m_dataAddress)); + if (swgRemoteSourceSettings->getDataAddress()) { + *swgRemoteSourceSettings->getDataAddress() = settings.m_dataAddress; + } else { + swgRemoteSourceSettings->setDataAddress(new QString(settings.m_dataAddress)); + } } if (channelSettingsKeys.contains("dataPort") || force) { swgRemoteSourceSettings->setDataPort(settings.m_dataPort); @@ -540,7 +552,11 @@ void RemoteSource::webapiFormatChannelSettings( swgRemoteSourceSettings->setFilterChainHash(settings.m_filterChainHash); } if (channelSettingsKeys.contains("title") || force) { - swgRemoteSourceSettings->setTitle(new QString(settings.m_title)); + if (swgRemoteSourceSettings->getTitle()) { + *swgRemoteSourceSettings->getTitle() = settings.m_title; + } else { + swgRemoteSourceSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgRemoteSourceSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/udpsource/udpsource.cpp b/plugins/channeltx/udpsource/udpsource.cpp index 9909c6258..656a483d9 100644 --- a/plugins/channeltx/udpsource/udpsource.cpp +++ b/plugins/channeltx/udpsource/udpsource.cpp @@ -227,7 +227,11 @@ void UDPSource::applySettings(const QStringList& settingsKeys, const UDPSourceSe sendChannelSettings(pipes, settingsKeys, settings, force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } QByteArray UDPSource::serialize() const @@ -577,7 +581,11 @@ void UDPSource::webapiFormatChannelSettings( swgChannelSettings->setDirection(1); // single source (Tx) swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet()); swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex()); - swgChannelSettings->setChannelType(new QString(m_channelId)); + if (swgChannelSettings->getChannelType()) { + *swgChannelSettings->getChannelType() = m_channelId; + } else { + swgChannelSettings->setChannelType(new QString(m_channelId)); + } swgChannelSettings->setUdpSourceSettings(new SWGSDRangel::SWGUDPSourceSettings()); SWGSDRangel::SWGUDPSourceSettings *swgUDPSourceSettings = swgChannelSettings->getUdpSourceSettings(); @@ -632,19 +640,31 @@ void UDPSource::webapiFormatChannelSettings( swgUDPSourceSettings->setRgbColor(settings.m_rgbColor); } if (channelSettingsKeys.contains("udpAddress") || force) { - swgUDPSourceSettings->setUdpAddress(new QString(settings.m_udpAddress)); + if (swgUDPSourceSettings->getUdpAddress()) { + *swgUDPSourceSettings->getUdpAddress() = settings.m_udpAddress; + } else { + swgUDPSourceSettings->setUdpAddress(new QString(settings.m_udpAddress)); + } } if (channelSettingsKeys.contains("udpPort") || force) { swgUDPSourceSettings->setUdpPort(settings.m_udpPort); } if (channelSettingsKeys.contains("multicastAddress") || force) { - swgUDPSourceSettings->setMulticastAddress(new QString(settings.m_multicastAddress)); + if (swgUDPSourceSettings->getMulticastAddress()) { + *swgUDPSourceSettings->getMulticastAddress() = settings.m_multicastAddress; + } else { + swgUDPSourceSettings->setMulticastAddress(new QString(settings.m_multicastAddress)); + } } if (channelSettingsKeys.contains("multicastJoin") || force) { swgUDPSourceSettings->setMulticastJoin(settings.m_multicastJoin ? 1 : 0); } if (channelSettingsKeys.contains("title") || force) { - swgUDPSourceSettings->setTitle(new QString(settings.m_title)); + if (swgUDPSourceSettings->getTitle()) { + *swgUDPSourceSettings->getTitle() = settings.m_title; + } else { + swgUDPSourceSettings->setTitle(new QString(settings.m_title)); + } } if (channelSettingsKeys.contains("streamIndex") || force) { swgUDPSourceSettings->setStreamIndex(settings.m_streamIndex); diff --git a/plugins/channeltx/udpsource/udpsourcebaseband.cpp b/plugins/channeltx/udpsource/udpsourcebaseband.cpp index b50e6de3d..f3fef419e 100644 --- a/plugins/channeltx/udpsource/udpsourcebaseband.cpp +++ b/plugins/channeltx/udpsource/udpsourcebaseband.cpp @@ -190,7 +190,11 @@ bool UDPSourceBaseband::handleMessage(const Message& cmd) void UDPSourceBaseband::applySettings(const QStringList& settingsKeys, const UDPSourceSettings& settings, bool force) { m_source.applySettings(settingsKeys, settings, force); - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int UDPSourceBaseband::getChannelSampleRate() const diff --git a/plugins/feature/CMakeLists.txt b/plugins/feature/CMakeLists.txt index b7765ea01..af7407af8 100644 --- a/plugins/feature/CMakeLists.txt +++ b/plugins/feature/CMakeLists.txt @@ -144,3 +144,9 @@ if (ENABLE_FEATURE_FREQDISPLAY) else() message(STATUS "Not building freqdisplay (ENABLE_FEATURE_FREQDISPLAY=${ENABLE_FEATURE_FREQDISPLAY})") endif() + +if (ENABLE_FEATURE_MCPSERVER) + add_subdirectory(mcpserver) +else() + message(STATUS "Not building mcpserver (ENABLE_FEATURE_MCPSERVER=${ENABLE_FEATURE_MCPSERVER})") +endif() diff --git a/plugins/feature/afc/afc.cpp b/plugins/feature/afc/afc.cpp index 7ffa5d157..b697408e9 100644 --- a/plugins/feature/afc/afc.cpp +++ b/plugins/feature/afc/afc.cpp @@ -60,7 +60,7 @@ AFC::AFC(WebAPIAdapterInterface *webAPIAdapterInterface) : m_trackerChannelAPI(nullptr) { setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "AFC error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -123,7 +123,7 @@ void AFC::start() AFCWorker::MsgConfigureAFCWorker *msg = AFCWorker::MsgConfigureAFCWorker::create(m_settings, QList(), true); m_worker->getInputMessageQueue()->push(msg); - m_state = StRunning; + setState(StRunning); m_running = true; } @@ -137,7 +137,7 @@ void AFC::stop() qDebug("AFC::stop"); m_running = false; - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } @@ -503,8 +503,8 @@ void AFC::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("hasTargetFrequency")) { settings.m_hasTargetFrequency = response.getAfcSettings()->getHasTargetFrequency() != 0; } - if (featureSettingsKeys.contains("hasTargetFrequency")) { - settings.m_hasTargetFrequency = response.getAfcSettings()->getHasTargetFrequency() != 0; + if (featureSettingsKeys.contains("transverterTarget")) { + settings.m_transverterTarget = response.getAfcSettings()->getTransverterTarget() != 0; } if (featureSettingsKeys.contains("targetFrequency")) { settings.m_targetFrequency = response.getAfcSettings()->getTargetFrequency(); @@ -572,6 +572,9 @@ void AFC::webapiReverseSendSettings(const QList& channelSettingsKeys, c if (channelSettingsKeys.contains("hasTargetFrequency") || force) { swgAFCSettings->setHasTargetFrequency(settings.m_hasTargetFrequency ? 1 : 0); } + if (channelSettingsKeys.contains("transverterTarget") || force) { + swgAFCSettings->setTransverterTarget(settings.m_transverterTarget ? 1 : 0); + } if (channelSettingsKeys.contains("targetFrequency") || force) { swgAFCSettings->setTargetFrequency(settings.m_targetFrequency ? 1 : 0); } diff --git a/plugins/feature/afc/afcgui.cpp b/plugins/feature/afc/afcgui.cpp index bff9d14f9..a7dc4b469 100644 --- a/plugins/feature/afc/afcgui.cpp +++ b/plugins/feature/afc/afcgui.cpp @@ -135,8 +135,7 @@ AFCGUI::AFCGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur ui(new Ui::AFCGUI), m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), - m_doApplySettings(true), - m_lastFeatureState(0) + m_doApplySettings(true) { m_feature = feature; setAttribute(Qt::WA_DeleteOnClose, true); @@ -159,8 +158,8 @@ AFCGUI::AFCGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_afc, &Feature::stateChanged, this, &AFCGUI::updateFeatureState); + updateFeatureState(); connect(&m_autoTargetStatusTimer, SIGNAL(timeout()), this, SLOT(resetAutoTargetStatus())); m_autoTargetStatusTimer.setSingleShot(true); @@ -400,33 +399,9 @@ void AFCGUI::on_targetPeriod_valueChanged(int value) applySettings(); } -void AFCGUI::updateStatus() +void AFCGUI::updateFeatureState() { - int state = m_afc->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_afc->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void AFCGUI::resetAutoTargetStatus() diff --git a/plugins/feature/afc/afcgui.h b/plugins/feature/afc/afcgui.h index 90ce516dd..0c893acf3 100644 --- a/plugins/feature/afc/afcgui.h +++ b/plugins/feature/afc/afcgui.h @@ -60,9 +60,7 @@ private: AFC* m_afc; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; QTimer m_autoTargetStatusTimer; - int m_lastFeatureState; explicit AFCGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr); virtual ~AFCGUI(); @@ -90,7 +88,7 @@ private slots: void on_trackedDevice_currentIndexChanged(int index); void on_devicesApply_clicked(); void on_targetPeriod_valueChanged(int value); - void updateStatus(); + void updateFeatureState(); void resetAutoTargetStatus(); }; diff --git a/plugins/feature/ais/ais.cpp b/plugins/feature/ais/ais.cpp index 4a6293a25..b2816c52f 100644 --- a/plugins/feature/ais/ais.cpp +++ b/plugins/feature/ais/ais.cpp @@ -24,6 +24,9 @@ #include #include "SWGFeatureSettings.h" +#include "SWGFeatureReport.h" +#include "SWGAISReport.h" +#include "SWGAISVessel.h" #include "feature/featureset.h" #include "settings/serializable.h" @@ -32,6 +35,7 @@ #include "ais.h" MESSAGE_CLASS_DEFINITION(AIS::MsgConfigureAIS, Message) +MESSAGE_CLASS_DEFINITION(AIS::MsgReportVessels, Message) const char* const AIS::m_featureIdURI = "sdrangel.feature.ais"; const char* const AIS::m_featureId = "AIS"; @@ -42,7 +46,7 @@ AIS::AIS(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("AIS::AIS: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "AIS error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -77,13 +81,13 @@ AIS::~AIS() void AIS::start() { qDebug("AIS::start"); - m_state = StRunning; + setState(StRunning); } void AIS::stop() { qDebug("AIS::stop"); - m_state = StIdle; + setState(StIdle); } bool AIS::handleMessage(const Message& cmd) @@ -96,6 +100,14 @@ bool AIS::handleMessage(const Message& cmd) return true; } + else if (MsgReportVessels::match(cmd)) + { + MsgReportVessels& report = (MsgReportVessels&) cmd; + m_vessels = report.getVessels(); + m_vesselsUpdated = QDateTime::currentDateTimeUtc(); + + return true; + } else if (MainCore::MsgPacket::match(cmd)) { MainCore::MsgPacket& report = (MainCore::MsgPacket&) cmd; @@ -248,6 +260,132 @@ void AIS::webapiFormatFeatureSettings( } } + +int AIS::webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setAisReport(new SWGSDRangel::SWGAISReport()); + response.getAisReport()->init(); + webapiFormatFeatureReport(response); + return 200; +} + +void AIS::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response) +{ + SWGSDRangel::SWGAISReport *report = response.getAisReport(); + report->setVesselCount(m_vessels.size()); + if (report->getReportDateTime()) { + *report->getReportDateTime() = m_vesselsUpdated.toString(Qt::ISODateWithMs); + } else { + report->setReportDateTime(new QString(m_vesselsUpdated.toString(Qt::ISODateWithMs))); + } + report->setVessels(new QList); + + for (const auto& vessel : m_vessels) + { + SWGSDRangel::SWGAISVessel *swgVessel = new SWGSDRangel::SWGAISVessel(); + report->getVessels()->append(swgVessel); + if (swgVessel->getMmsi()) { + *swgVessel->getMmsi() = vessel.m_mmsi; + } else { + swgVessel->setMmsi(new QString(vessel.m_mmsi)); + } + swgVessel->setMessages(vessel.m_messages); + + // Only what has been received is set, so that the rest is left out of the JSON rather + // than reported as a zero a caller cannot tell from a real value + if (!vessel.m_name.isEmpty()) { + if (swgVessel->getName()) { + *swgVessel->getName() = vessel.m_name; + } else { + swgVessel->setName(new QString(vessel.m_name)); + } + } + if (!vessel.m_callsign.isEmpty()) { + if (swgVessel->getCallsign()) { + *swgVessel->getCallsign() = vessel.m_callsign; + } else { + swgVessel->setCallsign(new QString(vessel.m_callsign)); + } + } + if (!vessel.m_imo.isEmpty()) { + if (swgVessel->getImo()) { + *swgVessel->getImo() = vessel.m_imo; + } else { + swgVessel->setImo(new QString(vessel.m_imo)); + } + } + if (!vessel.m_country.isEmpty()) { + if (swgVessel->getCountry()) { + *swgVessel->getCountry() = vessel.m_country; + } else { + swgVessel->setCountry(new QString(vessel.m_country)); + } + } + if (!vessel.m_type.isEmpty()) { + if (swgVessel->getType()) { + *swgVessel->getType() = vessel.m_type; + } else { + swgVessel->setType(new QString(vessel.m_type)); + } + } + if (!vessel.m_shipType.isEmpty()) { + if (swgVessel->getShipType()) { + *swgVessel->getShipType() = vessel.m_shipType; + } else { + swgVessel->setShipType(new QString(vessel.m_shipType)); + } + } + if (!vessel.m_status.isEmpty()) { + if (swgVessel->getStatus()) { + *swgVessel->getStatus() = vessel.m_status; + } else { + swgVessel->setStatus(new QString(vessel.m_status)); + } + } + if (!vessel.m_destination.isEmpty()) { + if (swgVessel->getDestination()) { + *swgVessel->getDestination() = vessel.m_destination; + } else { + swgVessel->setDestination(new QString(vessel.m_destination)); + } + } + if (vessel.m_hasPosition) + { + swgVessel->setLatitude(vessel.m_latitude); + swgVessel->setLongitude(vessel.m_longitude); + } + if (vessel.m_hasCourse) { + swgVessel->setCourse(vessel.m_course); + } + if (vessel.m_hasSpeed) { + swgVessel->setSpeed(vessel.m_speed); + } + if (vessel.m_hasHeading) { + swgVessel->setHeading(vessel.m_heading); + } + if (vessel.m_hasLength) { + swgVessel->setLength(vessel.m_length); + } + if (vessel.m_positionUpdate.isValid()) { + if (swgVessel->getPositionUpdate()) { + *swgVessel->getPositionUpdate() = vessel.m_positionUpdate.toString(Qt::ISODateWithMs); + } else { + swgVessel->setPositionUpdate(new QString(vessel.m_positionUpdate.toString(Qt::ISODateWithMs))); + } + } + if (vessel.m_lastUpdate.isValid()) { + if (swgVessel->getLastUpdate()) { + *swgVessel->getLastUpdate() = vessel.m_lastUpdate.toString(Qt::ISODateWithMs); + } else { + swgVessel->setLastUpdate(new QString(vessel.m_lastUpdate.toString(Qt::ISODateWithMs))); + } + } + } +} + void AIS::webapiUpdateFeatureSettings( AISSettings& settings, const QStringList& featureSettingsKeys, diff --git a/plugins/feature/ais/ais.h b/plugins/feature/ais/ais.h index 0f1ab71cc..a3fc9d8d4 100644 --- a/plugins/feature/ais/ais.h +++ b/plugins/feature/ais/ais.h @@ -20,6 +20,7 @@ #ifndef INCLUDE_FEATURE_AIS_H_ #define INCLUDE_FEATURE_AIS_H_ +#include #include #include @@ -66,6 +67,69 @@ public: { } }; + // A vessel as the GUI knows it. Every field except the MMSI is optional, and m_has* says + // which have actually been received: zero is a valid position, course, speed and heading + struct Vessel + { + QString m_mmsi; + QString m_name; + QString m_callsign; + QString m_imo; + QString m_country; + QString m_type; + QString m_shipType; + QString m_status; + QString m_destination; + float m_latitude; + float m_longitude; + float m_course; + float m_speed; + int m_heading; + int m_length; + int m_messages; + QDateTime m_positionUpdate; + QDateTime m_lastUpdate; + bool m_hasPosition; + bool m_hasCourse; + bool m_hasSpeed; + bool m_hasHeading; + bool m_hasLength; + + Vessel() : + m_latitude(0.0f), + m_longitude(0.0f), + m_course(0.0f), + m_speed(0.0f), + m_heading(0), + m_length(0), + m_messages(0), + m_hasPosition(false), + m_hasCourse(false), + m_hasSpeed(false), + m_hasHeading(false), + m_hasLength(false) + { } + }; + + // Sent from the GUI, which holds the vessel table, so that the report has something to serve + class MsgReportVessels : public Message { + MESSAGE_CLASS_DECLARATION + + public: + QList& getVessels() { return m_vessels; } + + static MsgReportVessels* create() { + return new MsgReportVessels(); + } + + private: + QList m_vessels; + + MsgReportVessels() : + Message() + { } + }; + AIS(WebAPIAdapterInterface *webAPIAdapterInterface); virtual ~AIS(); virtual void destroy() { delete this; } @@ -78,6 +142,10 @@ public: virtual QByteArray serialize() const; virtual bool deserialize(const QByteArray& data); + virtual int webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage); + virtual int webapiSettingsGet( SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); @@ -88,6 +156,8 @@ public: SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); + void webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response); + static void webapiFormatFeatureSettings( SWGSDRangel::SWGFeatureSettings& response, const AISSettings& settings); @@ -102,6 +172,8 @@ public: private: AISSettings m_settings; + QList m_vessels; //!< Latest snapshot pushed by the GUI + QDateTime m_vesselsUpdated; //!< When that snapshot was taken AvailableChannelOrFeatureHandler m_availableChannelHandler; QNetworkAccessManager *m_networkManager; diff --git a/plugins/feature/ais/aisgui.cpp b/plugins/feature/ais/aisgui.cpp index 41fc31ebe..2c3a3b7d5 100644 --- a/plugins/feature/ais/aisgui.cpp +++ b/plugins/feature/ais/aisgui.cpp @@ -228,6 +228,9 @@ AISGUI::AISGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur // Timer to remove vessels we haven't heard from in a while connect(&m_timer, SIGNAL(timeout()), this, SLOT(removeOldVessels())); m_timer.start(60*1000); + // The feature has no vessel table of its own, so it is given one for the web API report + connect(&m_reportTimer, &QTimer::timeout, this, &AISGUI::sendVesselReport); + m_reportTimer.start(1000); connect(&m_chartTimer, &QTimer::timeout, this, &AISGUI::updateChart); @@ -699,6 +702,7 @@ AISGUI::~AISGUI() { m_chartTimer.stop(); m_timer.stop(); + m_reportTimer.stop(); disconnect(&m_vesselFinder, &VesselFinder::shipPhoto, this, &AISGUI::shipPhoto); deleteAllVessels(); delete ui; @@ -785,6 +789,93 @@ void AISGUI::onMenuDialogCalled(const QPoint &p) resetContextMenuType(); } + +void AISGUI::sendVesselReport() +{ + AIS::MsgReportVessels *message = AIS::MsgReportVessels::create(); + QList& vessels = message->getVessels(); + vessels.reserve(ui->vessels->rowCount()); + + for (int row = 0; row < ui->vessels->rowCount(); row++) + { + QTableWidgetItem *mmsi = ui->vessels->item(row, VESSEL_COL_MMSI); + + if (!mmsi) { + continue; + } + + AIS::Vessel vessel; + vessel.m_mmsi = mmsi->text(); + vessel.m_country = MMSI::getCountry(vessel.m_mmsi); + vessel.m_name = cellText(row, VESSEL_COL_NAME); + vessel.m_callsign = cellText(row, VESSEL_COL_CALLSIGN); + vessel.m_imo = cellText(row, VESSEL_COL_IMO); + vessel.m_type = cellText(row, VESSEL_COL_TYPE); + vessel.m_shipType = cellText(row, VESSEL_COL_SHIP_TYPE); + vessel.m_status = cellText(row, VESSEL_COL_STATUS); + vessel.m_destination = cellText(row, VESSEL_COL_DESTINATION); + + QVariant latitude = cellValue(row, VESSEL_COL_LATITUDE); + QVariant longitude = cellValue(row, VESSEL_COL_LONGITUDE); + vessel.m_hasPosition = latitude.isValid() && longitude.isValid(); + + if (vessel.m_hasPosition) + { + vessel.m_latitude = latitude.toFloat(); + vessel.m_longitude = longitude.toFloat(); + } + + QVariant course = cellValue(row, VESSEL_COL_COURSE); + vessel.m_hasCourse = course.isValid(); + + if (vessel.m_hasCourse) { + vessel.m_course = course.toFloat(); + } + + QVariant speed = cellValue(row, VESSEL_COL_SPEED); + vessel.m_hasSpeed = speed.isValid(); + + if (vessel.m_hasSpeed) { + vessel.m_speed = speed.toFloat(); + } + + QVariant heading = cellValue(row, VESSEL_COL_HEADING); + vessel.m_hasHeading = heading.isValid(); + + if (vessel.m_hasHeading) { + vessel.m_heading = heading.toInt(); + } + + QVariant length = cellValue(row, VESSEL_COL_LENGTH); + vessel.m_hasLength = length.isValid(); + + if (vessel.m_hasLength) { + vessel.m_length = length.toInt(); + } + + vessel.m_positionUpdate = cellValue(row, VESSEL_COL_POSITION_UPDATE).toDateTime(); + vessel.m_lastUpdate = cellValue(row, VESSEL_COL_LAST_UPDATE).toDateTime(); + vessel.m_messages = cellValue(row, VESSEL_COL_MESSAGES).toInt(); + vessels.append(vessel); + } + + m_ais->getInputMessageQueue()->push(message); +} + +QVariant AISGUI::cellValue(int row, int col) const +{ + QTableWidgetItem *item = ui->vessels->item(row, col); + + return item ? item->data(Qt::DisplayRole) : QVariant(); +} + +QString AISGUI::cellText(int row, int col) const +{ + QTableWidgetItem *item = ui->vessels->item(row, col); + + return item ? item->text() : QString(); +} + void AISGUI::removeOldVessels() { // Remove if we haven't received a message in 10 minutes diff --git a/plugins/feature/ais/aisgui.h b/plugins/feature/ais/aisgui.h index 0a2495fbb..0a8638345 100644 --- a/plugins/feature/ais/aisgui.h +++ b/plugins/feature/ais/aisgui.h @@ -63,6 +63,8 @@ public: virtual void destroy(); void resetToDefaults(); + QVariant cellValue(int row, int col) const; + QString cellText(int row, int col) const; QByteArray serialize() const; bool deserialize(const QByteArray& data); virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } @@ -73,6 +75,7 @@ public: private: Ui::AISGUI* ui; + QTimer m_reportTimer; //!< Pushes the vessel table to the feature for the web API report PluginAPI* m_pluginAPI; FeatureUISet* m_featureUISet; AISSettings m_settings; @@ -174,6 +177,7 @@ private slots: void vesselsColumnSelectMenu(QPoint pos); void vesselsColumnSelectMenuChecked(bool checked = false); void removeOldVessels(); + void sendVesselReport(); protected: bool eventFilter(QObject *obj, QEvent *event) override; diff --git a/plugins/feature/ambe/ambe.cpp b/plugins/feature/ambe/ambe.cpp index b058fc207..7bf869403 100644 --- a/plugins/feature/ambe/ambe.cpp +++ b/plugins/feature/ambe/ambe.cpp @@ -43,7 +43,7 @@ AMBE::AMBE(WebAPIAdapterInterface *webAPIAdapterInterface) : Feature(m_featureIdURI, webAPIAdapterInterface) { setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "AMBE error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -68,13 +68,13 @@ AMBE::~AMBE() void AMBE::start() { qDebug("AMBE::start"); - m_state = StRunning; + setState(StRunning); } void AMBE::stop() { qDebug("AMBE::stop"); - m_state = StIdle; + setState(StIdle); } void AMBE::applySettings(const AMBESettings& settings, const QList& settingsKeys, bool force) @@ -357,7 +357,11 @@ void AMBE::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response) for (auto& deviceRef : deviceRefs) { response.getAmbeReport()->getDevices()->append(new SWGSDRangel::SWGAMBEDeviceReport); - response.getAmbeReport()->getDevices()->back()->setDevicePath(new QString(deviceRef.m_devicePath)); + if (response.getAmbeReport()->getDevices()->back()->getDevicePath()) { + *response.getAmbeReport()->getDevices()->back()->getDevicePath() = deviceRef.m_devicePath; + } else { + response.getAmbeReport()->getDevices()->back()->setDevicePath(new QString(deviceRef.m_devicePath)); + } response.getAmbeReport()->getDevices()->back()->setSuccessCount(deviceRef.m_successCount); response.getAmbeReport()->getDevices()->back()->setFailureCount(deviceRef.m_failureCount); } diff --git a/plugins/feature/antennatools/antennatools.cpp b/plugins/feature/antennatools/antennatools.cpp index 397b93bdd..bd32ef97b 100644 --- a/plugins/feature/antennatools/antennatools.cpp +++ b/plugins/feature/antennatools/antennatools.cpp @@ -37,7 +37,7 @@ AntennaTools::AntennaTools(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("AntennaTools::AntennaTools: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "AntennaTools error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -111,7 +111,11 @@ void AntennaTools::applySettings(const AntennaToolsSettings& settings, const QLi webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int AntennaTools::webapiSettingsGet( diff --git a/plugins/feature/aprs/aprs.cpp b/plugins/feature/aprs/aprs.cpp index 52961fd99..8e2f41af9 100644 --- a/plugins/feature/aprs/aprs.cpp +++ b/plugins/feature/aprs/aprs.cpp @@ -22,6 +22,9 @@ #include #include "SWGFeatureSettings.h" +#include "SWGFeatureReport.h" +#include "SWGAPRSReport.h" +#include "SWGAPRSStation.h" #include "SWGDeviceState.h" #include "settings/serializable.h" @@ -30,6 +33,7 @@ #include "aprs.h" MESSAGE_CLASS_DEFINITION(APRS::MsgConfigureAPRS, Message) +MESSAGE_CLASS_DEFINITION(APRS::MsgReportStations, Message) MESSAGE_CLASS_DEFINITION(APRS::MsgReportWorker, Message) MESSAGE_CLASS_DEFINITION(APRS::MsgQueryAvailableChannels, Message) MESSAGE_CLASS_DEFINITION(APRS::MsgReportAvailableChannels, Message) @@ -45,7 +49,7 @@ APRS::APRS(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("APRS::APRS: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "APRS error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -103,7 +107,7 @@ void APRS::start() m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->setMessageQueueToGUI(getMessageQueueToGUI()); m_thread->start(); - m_state = StRunning; + setState(StRunning); APRSWorker::MsgConfigureAPRSWorker *msg = APRSWorker::MsgConfigureAPRSWorker::create(m_settings, QList(), true); m_worker->getInputMessageQueue()->push(msg); @@ -112,7 +116,7 @@ void APRS::start() void APRS::stop() { qDebug("APRS::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -132,17 +136,26 @@ bool APRS::handleMessage(const Message& cmd) return true; } + else if (MsgReportStations::match(cmd)) + { + MsgReportStations& report = (MsgReportStations&) cmd; + m_stations = report.getStations(); + m_packetCount = report.getPacketCount(); + m_stationsUpdated = QDateTime::currentDateTimeUtc(); + + return true; + } else if (MsgReportWorker::match(cmd)) { MsgReportWorker& report = (MsgReportWorker&) cmd; if (report.getMessage() == "Connected") - m_state = StRunning; + setState(StRunning); else if (report.getMessage() == "Disconnected") - m_state = StIdle; + setState(StIdle); else { - m_state = StError; m_errorMessage = report.getMessage(); + setState(StError); } return true; } @@ -224,7 +237,11 @@ void APRS::applySettings(const APRSSettings& settings, const QList& set webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int APRS::webapiRun(bool run, @@ -280,11 +297,27 @@ void APRS::webapiFormatFeatureSettings( SWGSDRangel::SWGFeatureSettings& response, const APRSSettings& settings) { - response.getAprsSettings()->setIgateServer(new QString(settings.m_igateServer)); + if (response.getAprsSettings()->getIgateServer()) { + *response.getAprsSettings()->getIgateServer() = settings.m_igateServer; + } else { + response.getAprsSettings()->setIgateServer(new QString(settings.m_igateServer)); + } response.getAprsSettings()->setIgatePort(settings.m_igatePort); - response.getAprsSettings()->setIgateCallsign(new QString(settings.m_igateCallsign)); - response.getAprsSettings()->setIgatePasscode(new QString(settings.m_igatePasscode)); - response.getAprsSettings()->setIgateFilter(new QString(settings.m_igateFilter)); + if (response.getAprsSettings()->getIgateCallsign()) { + *response.getAprsSettings()->getIgateCallsign() = settings.m_igateCallsign; + } else { + response.getAprsSettings()->setIgateCallsign(new QString(settings.m_igateCallsign)); + } + if (response.getAprsSettings()->getIgatePasscode()) { + *response.getAprsSettings()->getIgatePasscode() = settings.m_igatePasscode; + } else { + response.getAprsSettings()->setIgatePasscode(new QString(settings.m_igatePasscode)); + } + if (response.getAprsSettings()->getIgateFilter()) { + *response.getAprsSettings()->getIgateFilter() = settings.m_igateFilter; + } else { + response.getAprsSettings()->setIgateFilter(new QString(settings.m_igateFilter)); + } response.getAprsSettings()->setIgateEnabled(settings.m_igateEnabled ? 1 : 0); if (response.getAprsSettings()->getTitle()) { @@ -453,6 +486,121 @@ void APRS::webapiFormatFeatureSettings( } } + +int APRS::webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setAprsReport(new SWGSDRangel::SWGAPRSReport()); + response.getAprsReport()->init(); + webapiFormatFeatureReport(response); + return 200; +} + +void APRS::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response) +{ + SWGSDRangel::SWGAPRSReport *report = response.getAprsReport(); + report->setRunningState((int) getState()); + report->setStationCount(m_stations.size()); + report->setPacketCount(m_packetCount); + if (report->getReportDateTime()) { + *report->getReportDateTime() = m_stationsUpdated.toString(Qt::ISODateWithMs); + } else { + report->setReportDateTime(new QString(m_stationsUpdated.toString(Qt::ISODateWithMs))); + } + report->setStations(new QList); + + for (const auto& station : m_stations) + { + SWGSDRangel::SWGAPRSStation *swgStation = new SWGSDRangel::SWGAPRSStation(); + report->getStations()->append(swgStation); + if (swgStation->getCallsign()) { + *swgStation->getCallsign() = station.m_callsign; + } else { + swgStation->setCallsign(new QString(station.m_callsign)); + } + swgStation->setIsObject(station.m_isObject ? 1 : 0); + swgStation->setHasWeather(station.m_hasWeather ? 1 : 0); + swgStation->setHasTelemetry(station.m_hasTelemetry ? 1 : 0); + swgStation->setPackets(station.m_packets); + + // Only what has been received is set, so an absent field reads as unknown rather than zero + if (!station.m_reportingStation.isEmpty()) { + if (swgStation->getReportingStation()) { + *swgStation->getReportingStation() = station.m_reportingStation; + } else { + swgStation->setReportingStation(new QString(station.m_reportingStation)); + } + } + if (!station.m_symbol.isEmpty()) { + if (swgStation->getSymbol()) { + *swgStation->getSymbol() = station.m_symbol; + } else { + swgStation->setSymbol(new QString(station.m_symbol)); + } + } + if (!station.m_status.isEmpty()) { + if (swgStation->getStatus()) { + *swgStation->getStatus() = station.m_status; + } else { + swgStation->setStatus(new QString(station.m_status)); + } + } + if (!station.m_comment.isEmpty()) { + if (swgStation->getComment()) { + *swgStation->getComment() = station.m_comment; + } else { + swgStation->setComment(new QString(station.m_comment)); + } + } + if (!station.m_telemetryProjectName.isEmpty()) { + if (swgStation->getTelemetryProjectName()) { + *swgStation->getTelemetryProjectName() = station.m_telemetryProjectName; + } else { + swgStation->setTelemetryProjectName(new QString(station.m_telemetryProjectName)); + } + } + if (station.m_hasPosition) + { + swgStation->setLatitude(station.m_latitude); + swgStation->setLongitude(station.m_longitude); + } + if (station.m_hasAltitude) { + swgStation->setAltitude(station.m_altitude); + } + if (station.m_hasCourseAndSpeed) + { + swgStation->setCourse(station.m_course); + swgStation->setSpeed(station.m_speed); + } + if (station.m_hasStationDetails) + { + swgStation->setPowerWatts(station.m_powerWatts); + swgStation->setAntennaHeight(station.m_antennaHeight); + swgStation->setAntennaGain(station.m_antennaGain); + + if (!station.m_antennaDirectivity.isEmpty()) { + if (swgStation->getAntennaDirectivity()) { + *swgStation->getAntennaDirectivity() = station.m_antennaDirectivity; + } else { + swgStation->setAntennaDirectivity(new QString(station.m_antennaDirectivity)); + } + } + } + if (station.m_hasRadioRange) { + swgStation->setRadioRange(station.m_radioRange); + } + if (station.m_lastPacket.isValid()) { + if (swgStation->getLastPacketDateTime()) { + *swgStation->getLastPacketDateTime() = station.m_lastPacket.toString(Qt::ISODateWithMs); + } else { + swgStation->setLastPacketDateTime(new QString(station.m_lastPacket.toString(Qt::ISODateWithMs))); + } + } + } +} + void APRS::webapiUpdateFeatureSettings( APRSSettings& settings, const QStringList& featureSettingsKeys, @@ -473,6 +621,9 @@ void APRS::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("igateFilter")) { settings.m_igateFilter = *response.getAprsSettings()->getIgateFilter(); } + if (featureSettingsKeys.contains("igateEnabled")) { + settings.m_igateEnabled = response.getAprsSettings()->getIgateEnabled() != 0; + } if (featureSettingsKeys.contains("title")) { settings.m_title = *response.getAprsSettings()->getTitle(); } diff --git a/plugins/feature/aprs/aprs.h b/plugins/feature/aprs/aprs.h index a5de2ac55..a83bb0fe9 100644 --- a/plugins/feature/aprs/aprs.h +++ b/plugins/feature/aprs/aprs.h @@ -22,6 +22,7 @@ #include #include +#include #include #include "feature/feature.h" @@ -119,6 +120,82 @@ public: {} }; + // A station or object as the GUI knows it. A station is heard long before it reports a + // position, and zero is a valid latitude, course and speed, so each value has its own flag + struct Station + { + QString m_callsign; + QString m_reportingStation; + QString m_symbol; + QString m_status; + QString m_comment; + QString m_antennaDirectivity; + QString m_telemetryProjectName; + float m_latitude; + float m_longitude; + float m_altitude; + float m_course; + float m_speed; + float m_powerWatts; + float m_antennaHeight; + float m_antennaGain; + float m_radioRange; + int m_packets; + QDateTime m_lastPacket; + bool m_isObject; + bool m_hasWeather; + bool m_hasTelemetry; + bool m_hasPosition; + bool m_hasAltitude; + bool m_hasCourseAndSpeed; + bool m_hasStationDetails; + bool m_hasRadioRange; + + Station() : + m_latitude(0.0f), + m_longitude(0.0f), + m_altitude(0.0f), + m_course(0.0f), + m_speed(0.0f), + m_powerWatts(0.0f), + m_antennaHeight(0.0f), + m_antennaGain(0.0f), + m_radioRange(0.0f), + m_packets(0), + m_isObject(false), + m_hasWeather(false), + m_hasTelemetry(false), + m_hasPosition(false), + m_hasAltitude(false), + m_hasCourseAndSpeed(false), + m_hasStationDetails(false), + m_hasRadioRange(false) + { } + }; + + // Sent from the GUI, which holds the station hash, so the report has something to serve + class MsgReportStations : public Message { + MESSAGE_CLASS_DECLARATION + + public: + QList& getStations() { return m_stations; } + int getPacketCount() const { return m_packetCount; } + void setPacketCount(int count) { m_packetCount = count; } + + static MsgReportStations* create() { + return new MsgReportStations(); + } + + private: + QList m_stations; + int m_packetCount; + + MsgReportStations() : + Message(), + m_packetCount(0) + { } + }; + APRS(WebAPIAdapterInterface *webAPIAdapterInterface); virtual ~APRS(); virtual void destroy() { delete this; } @@ -135,6 +212,10 @@ public: SWGSDRangel::SWGDeviceState& response, QString& errorMessage); + virtual int webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage); + virtual int webapiSettingsGet( SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); @@ -145,6 +226,8 @@ public: SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); + void webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response); + static void webapiFormatFeatureSettings( SWGSDRangel::SWGFeatureSettings& response, const APRSSettings& settings); @@ -159,6 +242,9 @@ public: private: QThread *m_thread; + QList m_stations; //!< Latest snapshot pushed by the GUI + QDateTime m_stationsUpdated; //!< When that snapshot was taken + int m_packetCount; //!< Packets across all stations in that snapshot APRSWorker *m_worker; APRSSettings m_settings; AvailableChannelOrFeatureHandler m_availableChannelHandler; diff --git a/plugins/feature/aprs/aprsgui.cpp b/plugins/feature/aprs/aprsgui.cpp index b4cc05264..f69517dc9 100644 --- a/plugins/feature/aprs/aprsgui.cpp +++ b/plugins/feature/aprs/aprsgui.cpp @@ -32,9 +32,11 @@ #include "feature/featureuiset.h" #include "feature/featurewebapiutils.h" +#include "gui/messagedialog.h" #include "gui/basicfeaturesettingsdialog.h" #include "gui/dialogpositioner.h" #include "maincore.h" +#include "util/units.h" #include "ui_aprsgui.h" #include "aprs.h" @@ -448,8 +450,7 @@ APRSGUI::APRSGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feat ui(new Ui::APRSGUI), m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), - m_doApplySettings(true), - m_lastFeatureState(0) + m_doApplySettings(true) { m_feature = feature; setAttribute(Qt::WA_DeleteOnClose, true); @@ -465,8 +466,8 @@ APRSGUI::APRSGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feat connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_aprs, &Feature::stateChanged, this, &APRSGUI::updateFeatureState); + updateFeatureState(); // Resize the table using dummy data resizeTable(); @@ -587,10 +588,15 @@ APRSGUI::APRSGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feat applySettings(true); makeUIConnections(); m_resizer.enableChildMouseTracking(); + + // The feature has no station list of its own, so it is given one for the web API report + connect(&m_reportTimer, &QTimer::timeout, this, &APRSGUI::sendStationReport); + m_reportTimer.start(1000); } APRSGUI::~APRSGUI() { + m_reportTimer.stop(); QHashIterator itr(m_mapItems); while (itr.hasNext()) { @@ -725,6 +731,97 @@ void APRSGUI::resizeEvent(QResizeEvent* event) FeatureGUI::resizeEvent(event); } + +// The station keeps its values as display strings, so the report is built from the packets it +// holds instead: those carry proper numbers and a flag saying whether each was received. Walking +// newest first and taking the first packet that has a value gives the same "latest" the GUI shows, +// without parsing text back into numbers. +void APRSGUI::sendStationReport() +{ + APRS::MsgReportStations *message = APRS::MsgReportStations::create(); + QList& stations = message->getStations(); + stations.reserve(m_stations.size()); + int packetCount = 0; + + for (auto it = m_stations.begin(); it != m_stations.end(); ++it) + { + APRSStation *source = it.value(); + + if (!source) { + continue; + } + + APRS::Station station; + station.m_callsign = source->m_station; + station.m_reportingStation = source->m_reportingStation; + station.m_symbol = source->m_symbolImage; + station.m_status = source->m_latestStatus; + station.m_isObject = source->m_isObject; + station.m_hasWeather = source->m_hasWeather; + station.m_hasTelemetry = source->m_hasTelemetry; + station.m_telemetryProjectName = source->m_telemetryProjectName; + station.m_packets = source->m_packets.size(); + packetCount += station.m_packets; + + for (int i = source->m_packets.size() - 1; i >= 0; i--) + { + APRSPacket *packet = source->m_packets[i]; + + if (!packet) { + continue; + } + + if (!station.m_lastPacket.isValid()) { + station.m_lastPacket = packet->m_dateTime; + } + + if (!station.m_hasPosition && packet->m_hasPosition) + { + station.m_hasPosition = true; + station.m_latitude = packet->m_latitude; + station.m_longitude = packet->m_longitude; + } + + if (!station.m_hasAltitude && packet->m_hasAltitude) + { + station.m_hasAltitude = true; + station.m_altitude = Units::feetToMetres(packet->m_altitudeFt); + } + + if (!station.m_hasCourseAndSpeed && packet->m_hasCourseAndSpeed) + { + station.m_hasCourseAndSpeed = true; + station.m_course = packet->m_course; + station.m_speed = Units::knotsToKPH(packet->m_speed); + } + + if (!station.m_hasStationDetails && packet->m_hasStationDetails) + { + station.m_hasStationDetails = true; + station.m_powerWatts = packet->m_powerWatts; + station.m_antennaHeight = Units::feetToMetres(packet->m_antennaHeightFt); + station.m_antennaGain = packet->m_antennaGainDB; + station.m_antennaDirectivity = packet->m_antennaDirectivity; + } + + if (!station.m_hasRadioRange && packet->m_hasRadioRange) + { + station.m_hasRadioRange = true; + station.m_radioRange = Units::milesToKilometres(packet->m_radioRangeMiles); + } + + if (station.m_comment.isEmpty() && !packet->m_comment.isEmpty()) { + station.m_comment = packet->m_comment; + } + } + + stations.append(station); + } + + message->setPacketCount(packetCount); + m_aprs->getInputMessageQueue()->push(message); +} + void APRSGUI::onMenuDialogCalled(const QPoint &p) { if (m_contextMenuType == ContextMenuType::ContextMenuChannelSettings) @@ -1585,32 +1682,23 @@ void APRSGUI::on_telemetryPlotSelect_currentIndexChanged(int index) plotTelemetry(); } -void APRSGUI::updateStatus() +void APRSGUI::updateFeatureState() { - int state = m_aprs->getState(); - - if (m_lastFeatureState != state) + switch (m_aprs->getState()) { - switch (state) - { - case Feature::StNotStarted: - ui->igate->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->igate->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StRunning: - ui->igate->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->igate->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_aprs->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; + case Feature::StNotStarted: + case Feature::StIdle: + ui->igate->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); + break; + case Feature::StRunning: + ui->igate->setStyleSheet("QToolButton { background-color : green; }"); + break; + case Feature::StError: + ui->igate->setStyleSheet("QToolButton { background-color : red; }"); + MessageDialog::information(this, tr("Message"), m_aprs->getErrorMessage()); + break; + default: + break; } } diff --git a/plugins/feature/aprs/aprsgui.h b/plugins/feature/aprs/aprsgui.h index b4c2b2ef0..5fdc2317b 100644 --- a/plugins/feature/aprs/aprsgui.h +++ b/plugins/feature/aprs/aprsgui.h @@ -117,6 +117,7 @@ public: virtual void destroy(); void resetToDefaults(); + void sendStationReport(); QByteArray serialize() const; bool deserialize(const QByteArray& data); virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } @@ -139,9 +140,8 @@ private: AvailableChannelOrFeatureList m_availableChannels; APRS* m_aprs; + QTimer m_reportTimer; //!< Pushes the station list to the feature for the web API report MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; QHash m_stations; // All stations we've received packets for. Hashed on callsign @@ -223,7 +223,7 @@ private slots: void plotMotion(); void on_motionTimeSelect_currentIndexChanged(int index); void on_motionPlotSelect_currentIndexChanged(int index); - void updateStatus(); + void updateFeatureState(); void packetsTable_sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex); void packetsTable_sectionResized(int logicalIndex, int oldSize, int newSize); void packetsTable_columnSelectMenu(QPoint pos); diff --git a/plugins/feature/demodanalyzer/demodanalyzer.cpp b/plugins/feature/demodanalyzer/demodanalyzer.cpp index 2b7b74245..f94a717ed 100644 --- a/plugins/feature/demodanalyzer/demodanalyzer.cpp +++ b/plugins/feature/demodanalyzer/demodanalyzer.cpp @@ -55,7 +55,7 @@ DemodAnalyzer::DemodAnalyzer(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("DemodAnalyzer::DemodAnalyzer: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "DemodAnalyzer error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -126,7 +126,7 @@ void DemodAnalyzer::start() m_worker->setScopeVis(&m_scopeVis); m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->startWork(); - m_state = StRunning; + setState(StRunning); m_thread->start(); DemodAnalyzerWorker::MsgConfigureDemodAnalyzerWorker *msg @@ -171,7 +171,7 @@ void DemodAnalyzer::stop() } m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } diff --git a/plugins/feature/demodanalyzer/demodanalyzergui.cpp b/plugins/feature/demodanalyzer/demodanalyzergui.cpp index 4d70d4782..f55452bb2 100644 --- a/plugins/feature/demodanalyzer/demodanalyzergui.cpp +++ b/plugins/feature/demodanalyzer/demodanalyzergui.cpp @@ -148,7 +148,6 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI m_featureUISet(featureUISet), m_sampleRate(48000), m_doApplySettings(true), - m_lastFeatureState(0), m_selectedChannel(nullptr) { m_feature = feature; @@ -170,8 +169,8 @@ DemodAnalyzerGUI::DemodAnalyzerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUI connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_demodAnalyzer, &Feature::stateChanged, this, &DemodAnalyzerGUI::updateFeatureState); + updateFeatureState(); ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum); ui->scopeGUI->setBuddies(m_scopeVis->getInputMessageQueue(), m_scopeVis, ui->glScope); @@ -394,33 +393,9 @@ void DemodAnalyzerGUI::tick() ui->channelPower->setText(tr("%1 dB").arg(powDb, 0, 'f', 1)); } -void DemodAnalyzerGUI::updateStatus() +void DemodAnalyzerGUI::updateFeatureState() { - int state = m_demodAnalyzer->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_demodAnalyzer->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void DemodAnalyzerGUI::applySettings(bool force) diff --git a/plugins/feature/demodanalyzer/demodanalyzergui.h b/plugins/feature/demodanalyzer/demodanalyzergui.h index ceb2639ac..90c345e00 100644 --- a/plugins/feature/demodanalyzer/demodanalyzergui.h +++ b/plugins/feature/demodanalyzer/demodanalyzergui.h @@ -19,7 +19,6 @@ #ifndef INCLUDE_FEATURE_DEMODANALYZERGUI_H_ #define INCLUDE_FEATURE_DEMODANALYZERGUI_H_ -#include #include #include "feature/featuregui.h" @@ -70,8 +69,6 @@ private: SpectrumVis* m_spectrumVis; ScopeVis* m_scopeVis; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; AvailableChannelOrFeatureList m_availableChannels; ChannelAPI *m_selectedChannel; MovingAverageUtil m_channelPowerAvg; @@ -98,7 +95,7 @@ private slots: void on_record_toggled(bool checked); void on_showFileDialog_clicked(bool checked); void on_recordSilenceTime_valueChanged(int value); - void updateStatus(); + void updateFeatureState(); void tick(); }; diff --git a/plugins/feature/denoiser/denoiser.cpp b/plugins/feature/denoiser/denoiser.cpp index 5a96619ca..af2baa8f3 100644 --- a/plugins/feature/denoiser/denoiser.cpp +++ b/plugins/feature/denoiser/denoiser.cpp @@ -53,7 +53,7 @@ Denoiser::Denoiser(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("Denoiser::Denoiser: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "Denoiser error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -127,7 +127,7 @@ void Denoiser::start() m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->startWork(); - m_state = StRunning; + setState(StRunning); m_thread->start(); DenoiserWorker::MsgConfigureDenoiserWorker *msg @@ -177,7 +177,7 @@ void Denoiser::stop() } m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } @@ -506,7 +506,7 @@ void Denoiser::webapiUpdateFeatureSettings( const QStringList& featureSettingsKeys, SWGSDRangel::SWGFeatureSettings& response) { - if (featureSettingsKeys.contains("DenoiserType")) { + if (featureSettingsKeys.contains("denoiserType")) { settings.m_denoiserType = static_cast(response.getDenoiserSettings()->getDenoiserType()); } if (featureSettingsKeys.contains("enableDenoiser")) { @@ -579,7 +579,7 @@ void Denoiser::webapiReverseSendSettings(const QList& featureSettingsKe if (featureSettingsKeys.contains("reverseAPIFeatureIndex") || force) { swgDenoiserSettings->setReverseApiFeatureIndex(settings.m_reverseAPIFeatureIndex); } - if (featureSettingsKeys.contains("DenoiserType") || force) { + if (featureSettingsKeys.contains("denoiserType") || force) { swgDenoiserSettings->setDenoiserType(static_cast(settings.m_denoiserType)); } if (featureSettingsKeys.contains("enableDenoiser") || force) { diff --git a/plugins/feature/denoiser/denoisergui.cpp b/plugins/feature/denoiser/denoisergui.cpp index 0041d2745..de770ead5 100644 --- a/plugins/feature/denoiser/denoisergui.cpp +++ b/plugins/feature/denoiser/denoisergui.cpp @@ -143,7 +143,6 @@ DenoiserGUI::DenoiserGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Featu m_featureUISet(featureUISet), m_sampleRate(48000), m_doApplySettings(true), - m_lastFeatureState(0), m_selectedChannel(nullptr) { m_feature = feature; @@ -163,8 +162,8 @@ DenoiserGUI::DenoiserGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Featu CRightClickEnabler *audioMuteRightClickEnabler = new CRightClickEnabler(ui->audioMute); connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect(const QPoint &))); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_denoiser, &Feature::stateChanged, this, &DenoiserGUI::updateFeatureState); + updateFeatureState(); displaySampleRate(m_sampleRate); @@ -412,33 +411,9 @@ void DenoiserGUI::tick() ui->channelPower->setText(tr("%1 dB").arg(powDb, 0, 'f', 1)); } -void DenoiserGUI::updateStatus() +void DenoiserGUI::updateFeatureState() { - int state = m_denoiser->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_denoiser->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void DenoiserGUI::displayNRenabled() diff --git a/plugins/feature/denoiser/denoisergui.h b/plugins/feature/denoiser/denoisergui.h index afa3c8d32..7e3fa589e 100644 --- a/plugins/feature/denoiser/denoisergui.h +++ b/plugins/feature/denoiser/denoisergui.h @@ -18,7 +18,6 @@ #ifndef INCLUDE_FEATURE_DENOISERGUI_H_ #define INCLUDE_FEATURE_DENOISERGUI_H_ -#include #include #include "feature/featuregui.h" @@ -65,8 +64,6 @@ private: Denoiser* m_denoiser; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; AvailableChannelOrFeatureList m_availableChannels; ChannelAPI *m_selectedChannel; MovingAverageUtil m_channelPowerAvg; @@ -97,7 +94,7 @@ private slots: void on_audioMute_toggled(bool checked); void on_volume_valueChanged(int value); void audioSelect(const QPoint& p); - void updateStatus(); + void updateFeatureState(); void tick(); }; diff --git a/plugins/feature/freqdisplay/freqdisplay.cpp b/plugins/feature/freqdisplay/freqdisplay.cpp index acc8deefa..51c2a5455 100644 --- a/plugins/feature/freqdisplay/freqdisplay.cpp +++ b/plugins/feature/freqdisplay/freqdisplay.cpp @@ -42,7 +42,7 @@ FreqDisplay::FreqDisplay(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("FreqDisplay::FreqDisplay: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_networkManager = new QNetworkAccessManager(); QObject::connect( m_networkManager, diff --git a/plugins/feature/gs232controller/gs232controller.cpp b/plugins/feature/gs232controller/gs232controller.cpp index 64165afd7..4394ade07 100644 --- a/plugins/feature/gs232controller/gs232controller.cpp +++ b/plugins/feature/gs232controller/gs232controller.cpp @@ -61,7 +61,7 @@ GS232Controller::GS232Controller(WebAPIAdapterInterface *webAPIAdapterInterface) { qDebug("GS232Controller::GS232Controller: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "GS232Controller error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -127,7 +127,7 @@ void GS232Controller::start() QObject::connect(m_thread, &QThread::finished, m_thread, &QThread::deleteLater); m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_thread->start(); - m_state = StRunning; + setState(StRunning); GS232ControllerWorker::MsgConfigureGS232ControllerWorker *msg = GS232ControllerWorker::MsgConfigureGS232ControllerWorker::create(m_settings, QList(), true); @@ -137,7 +137,7 @@ void GS232Controller::start() void GS232Controller::stop() { qDebug("GS232Controller::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -174,13 +174,13 @@ bool GS232Controller::handleMessage(const Message& cmd) { MsgReportWorker& report = (MsgReportWorker&) cmd; if (report.getMessage() == "Connected") - m_state = StRunning; + setState(StRunning); else if (report.getMessage() == "Disconnected") - m_state = StIdle; + setState(StIdle); else { - m_state = StError; m_errorMessage = report.getMessage(); + setState(StError); } return true; } @@ -404,12 +404,24 @@ void GS232Controller::webapiFormatFeatureSettings( { response.getGs232ControllerSettings()->setAzimuth(settings.m_azimuth); response.getGs232ControllerSettings()->setElevation(settings.m_elevation); - response.getGs232ControllerSettings()->setSerialPort(new QString(settings.m_serialPort)); + if (response.getGs232ControllerSettings()->getSerialPort()) { + *response.getGs232ControllerSettings()->getSerialPort() = settings.m_serialPort; + } else { + response.getGs232ControllerSettings()->setSerialPort(new QString(settings.m_serialPort)); + } response.getGs232ControllerSettings()->setBaudRate(settings.m_baudRate); - response.getGs232ControllerSettings()->setHost(new QString(settings.m_host)); + if (response.getGs232ControllerSettings()->getHost()) { + *response.getGs232ControllerSettings()->getHost() = settings.m_host; + } else { + response.getGs232ControllerSettings()->setHost(new QString(settings.m_host)); + } response.getGs232ControllerSettings()->setPort(settings.m_port); response.getGs232ControllerSettings()->setTrack(settings.m_track); - response.getGs232ControllerSettings()->setSource(new QString(settings.m_source)); + if (response.getGs232ControllerSettings()->getSource()) { + *response.getGs232ControllerSettings()->getSource() = settings.m_source; + } else { + response.getGs232ControllerSettings()->setSource(new QString(settings.m_source)); + } response.getGs232ControllerSettings()->setAzimuthOffset(settings.m_azimuthOffset); response.getGs232ControllerSettings()->setElevationOffset(settings.m_elevationOffset); response.getGs232ControllerSettings()->setAzimuthMin(settings.m_azimuthMin); @@ -420,7 +432,11 @@ void GS232Controller::webapiFormatFeatureSettings( response.getGs232ControllerSettings()->setProtocol(settings.m_protocol); response.getGs232ControllerSettings()->setPrecision(settings.m_precision); response.getGs232ControllerSettings()->setCoordinates((int)settings.m_coordinates); - response.getGs232ControllerSettings()->setInputController(new QString(settings.m_inputController)); + if (response.getGs232ControllerSettings()->getInputController()) { + *response.getGs232ControllerSettings()->getInputController() = settings.m_inputController; + } else { + response.getGs232ControllerSettings()->setInputController(new QString(settings.m_inputController)); + } response.getGs232ControllerSettings()->setInputSensitivity(settings.m_inputControllerSettings.m_lowSensitivity); if (response.getGs232ControllerSettings()->getTitle()) { diff --git a/plugins/feature/gs232controller/gs232controllergui.cpp b/plugins/feature/gs232controller/gs232controllergui.cpp index f375bd27c..3b872e720 100644 --- a/plugins/feature/gs232controller/gs232controllergui.cpp +++ b/plugins/feature/gs232controller/gs232controllergui.cpp @@ -212,7 +212,6 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), m_doApplySettings(true), - m_lastFeatureState(0), m_lastOnTarget(false), m_dfmStatusDialog(), m_inputController(nullptr), @@ -238,6 +237,8 @@ GS232ControllerGUI::GS232ControllerGUI(PluginAPI* pluginAPI, FeatureUISet *featu connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(250); + connect(m_gs232Controller, &Feature::stateChanged, this, &GS232ControllerGUI::updateFeatureState); + updateFeatureState(); ui->coord1CurrentText->setText("-"); ui->coord2CurrentText->setText("-"); @@ -912,57 +913,31 @@ void GS232ControllerGUI::on_dfmShowStatus_clicked() void GS232ControllerGUI::updateStatus() { - int state = m_gs232Controller->getState(); bool onTarget = m_gs232Controller->getOnTarget(); - if (m_lastFeatureState != state) + if (ui->startStop->isChecked() && (onTarget != m_lastOnTarget)) { - // We set checked state of start/stop button, in case it was changed via API - bool oldState; - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(false); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(true); - ui->startStop->blockSignals(oldState); - if (onTarget) { - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - } else { - ui->startStop->setStyleSheet("QToolButton { background-color : yellow; }"); - } - m_lastOnTarget = onTarget; - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::critical(this, m_settings.m_title, m_gs232Controller->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; + ui->startStop->setStyleSheet(onTarget + ? "QToolButton { background-color : green; }" + : "QToolButton { background-color : yellow; }"); } - else if (state == Feature::StRunning) + + m_lastOnTarget = onTarget; +} + +void GS232ControllerGUI::updateFeatureState() +{ + int state = m_gs232Controller->getState(); + bool onTarget = m_gs232Controller->getOnTarget(); + updateStartStopButton(ui->startStop); + + if (state == Feature::StRunning) { - if (onTarget != m_lastOnTarget) - { - if (onTarget) { - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - } else { - ui->startStop->setStyleSheet("QToolButton { background-color : yellow; }"); - } - } - m_lastOnTarget = onTarget; + ui->startStop->setStyleSheet(onTarget + ? "QToolButton { background-color : green; }" + : "QToolButton { background-color : yellow; }"); } + m_lastOnTarget = onTarget; } void GS232ControllerGUI::applySetting(const QString& settingsKey) diff --git a/plugins/feature/gs232controller/gs232controllergui.h b/plugins/feature/gs232controller/gs232controllergui.h index 0d96019ce..9b6c6c9b5 100644 --- a/plugins/feature/gs232controller/gs232controllergui.h +++ b/plugins/feature/gs232controller/gs232controllergui.h @@ -67,7 +67,6 @@ private: GS232Controller* m_gs232Controller; MessageQueue m_inputMessageQueue; QTimer m_statusTimer; - int m_lastFeatureState; bool m_lastOnTarget; DFMStatusDialog m_dfmStatusDialog; @@ -132,6 +131,7 @@ private slots: void on_dfmDrives_clicked(bool checked=false); void on_dfmShowStatus_clicked(); void updateStatus(); + void updateFeatureState(); void on_inputController_currentIndexChanged(int index); void on_inputConfigure_clicked(); void on_highSensitivity_clicked(bool checked); diff --git a/plugins/feature/jogdialcontroller/jogdialcontroller.cpp b/plugins/feature/jogdialcontroller/jogdialcontroller.cpp index 1a0eaff66..c5a9ea574 100644 --- a/plugins/feature/jogdialcontroller/jogdialcontroller.cpp +++ b/plugins/feature/jogdialcontroller/jogdialcontroller.cpp @@ -55,7 +55,7 @@ JogdialController::JogdialController(WebAPIAdapterInterface *webAPIAdapterInterf { qDebug("JogdialController::JogdialController: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "JogdialController error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -81,13 +81,13 @@ JogdialController::~JogdialController() void JogdialController::start() { qDebug("JogdialController::start"); - m_state = StRunning; + setState(StRunning); } void JogdialController::stop() { qDebug("JogdialController::stop"); - m_state = StIdle; + setState(StIdle); } bool JogdialController::handleMessage(const Message& cmd) @@ -184,7 +184,11 @@ void JogdialController::applySettings(const JogdialControllerSettings& settings, webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void JogdialController::updateChannels() diff --git a/plugins/feature/jogdialcontroller/jogdialcontrollergui.cpp b/plugins/feature/jogdialcontroller/jogdialcontrollergui.cpp index db96ff89a..c62bf8db5 100644 --- a/plugins/feature/jogdialcontroller/jogdialcontrollergui.cpp +++ b/plugins/feature/jogdialcontroller/jogdialcontrollergui.cpp @@ -149,7 +149,6 @@ JogdialControllerGUI::JogdialControllerGUI(PluginAPI* pluginAPI, FeatureUISet *f m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), m_doApplySettings(true), - m_lastFeatureState(0), m_selectedChannel(nullptr) { m_feature = feature; @@ -166,8 +165,8 @@ JogdialControllerGUI::JogdialControllerGUI(PluginAPI* pluginAPI, FeatureUISet *f connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_jogdialController, &Feature::stateChanged, this, &JogdialControllerGUI::updateFeatureState); + updateFeatureState(); connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); this->installEventFilter(&m_commandKeyReceiver); @@ -327,33 +326,9 @@ void JogdialControllerGUI::tick() { } -void JogdialControllerGUI::updateStatus() +void JogdialControllerGUI::updateFeatureState() { - int state = m_jogdialController->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_jogdialController->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void JogdialControllerGUI::applySettings(bool force) diff --git a/plugins/feature/jogdialcontroller/jogdialcontrollergui.h b/plugins/feature/jogdialcontroller/jogdialcontrollergui.h index fb0ef92eb..15ada5976 100644 --- a/plugins/feature/jogdialcontroller/jogdialcontrollergui.h +++ b/plugins/feature/jogdialcontroller/jogdialcontrollergui.h @@ -19,7 +19,6 @@ #ifndef INCLUDE_FEATURE_JOGDIALCONTROLLERGUI_H_ #define INCLUDE_FEATURE_JOGDIALCONTROLLERGUI_H_ -#include #include #include "feature/featuregui.h" @@ -68,8 +67,6 @@ private: JogdialController* m_jogdialController; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; QList m_availableChannels; ChannelAPI *m_selectedChannel; CommandKeyReceiver m_commandKeyReceiver; @@ -91,7 +88,7 @@ private slots: void on_startStop_toggled(bool checked); void on_devicesRefresh_clicked(); void on_channels_currentIndexChanged(int index); - void updateStatus(); + void updateFeatureState(); void tick(); }; diff --git a/plugins/feature/limerfe/limerfe.cpp b/plugins/feature/limerfe/limerfe.cpp index 93d49ad7c..afd453169 100644 --- a/plugins/feature/limerfe/limerfe.cpp +++ b/plugins/feature/limerfe/limerfe.cpp @@ -58,7 +58,7 @@ LimeRFE::LimeRFE(WebAPIAdapterInterface *webAPIAdapterInterface) : m_rfeDevice(nullptr) { setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "LimeRFE error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -85,13 +85,13 @@ LimeRFE::~LimeRFE() void LimeRFE::start() { qDebug("LimeRFE::start"); - m_state = StRunning; + setState(StRunning); } void LimeRFE::stop() { qDebug("LimeRFE::stop"); - m_state = StIdle; + setState(StIdle); } void LimeRFE::listComPorts() @@ -1060,7 +1060,11 @@ void LimeRFE::webapiFormatFeatureSettings( } response.getLimeRfeSettings()->setRgbColor(settings.m_rgbColor); - response.getLimeRfeSettings()->setDevicePath(new QString(settings.m_devicePath)); + if (response.getLimeRfeSettings()->getDevicePath()) { + *response.getLimeRfeSettings()->getDevicePath() = settings.m_devicePath; + } else { + response.getLimeRfeSettings()->setDevicePath(new QString(settings.m_devicePath)); + } response.getLimeRfeSettings()->setRxChannels((int) settings.m_rxChannels); response.getLimeRfeSettings()->setRxWidebandChannel((int) settings.m_rxWidebandChannel); response.getLimeRfeSettings()->setRxHamChannel((int) settings.m_rxHAMChannel); diff --git a/plugins/feature/map/map.cpp b/plugins/feature/map/map.cpp index 9184531ba..b8573a2d1 100644 --- a/plugins/feature/map/map.cpp +++ b/plugins/feature/map/map.cpp @@ -48,7 +48,7 @@ Map::Map(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("Map::Map: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "Map error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -258,7 +258,73 @@ void Map::webapiFormatFeatureSettings( const MapSettings& settings) { response.getMapSettings()->setDisplayNames(settings.m_displayNames ? 1 : 0); - response.getMapSettings()->setTerrain(new QString(settings.m_terrain)); + response.getMapSettings()->setMap2DEnabled(settings.m_map2DEnabled ? 1 : 0); + response.getMapSettings()->setMap3DEnabled(settings.m_map3DEnabled ? 1 : 0); + if (response.getMapSettings()->getMapProvider()) { + *response.getMapSettings()->getMapProvider() = settings.m_mapProvider; + } else { + response.getMapSettings()->setMapProvider(new QString(settings.m_mapProvider)); + } + if (response.getMapSettings()->getMapType()) { + *response.getMapSettings()->getMapType() = settings.m_mapType; + } else { + response.getMapSettings()->setMapType(new QString(settings.m_mapType)); + } + if (response.getMapSettings()->getOsmUrl()) { + *response.getMapSettings()->getOsmUrl() = settings.m_osmURL; + } else { + response.getMapSettings()->setOsmUrl(new QString(settings.m_osmURL)); + } + if (response.getMapSettings()->getMapBoxStyles()) { + *response.getMapSettings()->getMapBoxStyles() = settings.m_mapBoxStyles; + } else { + response.getMapSettings()->setMapBoxStyles(new QString(settings.m_mapBoxStyles)); + } + response.getMapSettings()->setDisplaySelectedGroundTracks(settings.m_displaySelectedGroundTracks ? 1 : 0); + response.getMapSettings()->setDisplayAllGroundTracks(settings.m_displayAllGroundTracks ? 1 : 0); + if (response.getMapSettings()->getBuildings()) { + *response.getMapSettings()->getBuildings() = settings.m_buildings; + } else { + response.getMapSettings()->setBuildings(new QString(settings.m_buildings)); + } + response.getMapSettings()->setSunLightEnabled(settings.m_sunLightEnabled ? 1 : 0); + response.getMapSettings()->setLightIntensity(settings.m_lightIntensity); + response.getMapSettings()->setEciCamera(settings.m_eciCamera ? 1 : 0); + response.getMapSettings()->setFxaa(settings.m_fxaa ? 1 : 0); + response.getMapSettings()->setMsaa(settings.m_msaa); + response.getMapSettings()->setTerrainLighting(settings.m_terrainLighting ? 1 : 0); + response.getMapSettings()->setWater(settings.m_water ? 1 : 0); + response.getMapSettings()->setHdr(settings.m_hdr ? 1 : 0); + response.getMapSettings()->setFog(settings.m_fog ? 1 : 0); + response.getMapSettings()->setFps(settings.m_fps ? 1 : 0); + response.getMapSettings()->setDisplayMuf(settings.m_displayMUF ? 1 : 0); + response.getMapSettings()->setDisplayfoF2(settings.m_displayfoF2 ? 1 : 0); + response.getMapSettings()->setDisplayRain(settings.m_displayRain ? 1 : 0); + response.getMapSettings()->setDisplayClouds(settings.m_displayClouds ? 1 : 0); + response.getMapSettings()->setDisplaySeaMarks(settings.m_displaySeaMarks ? 1 : 0); + response.getMapSettings()->setDisplayRailways(settings.m_displayRailways ? 1 : 0); + response.getMapSettings()->setDisplayNasaGlobalImagery(settings.m_displayNASAGlobalImagery ? 1 : 0); + if (response.getMapSettings()->getNasaGlobalImageryIdentifier()) { + *response.getMapSettings()->getNasaGlobalImageryIdentifier() = settings.m_nasaGlobalImageryIdentifier; + } else { + response.getMapSettings()->setNasaGlobalImageryIdentifier(new QString(settings.m_nasaGlobalImageryIdentifier)); + } + response.getMapSettings()->setNasaGlobalImageryOpacity(settings.m_nasaGlobalImageryOpacity); + response.getMapSettings()->setDisplayAurora(settings.m_displayAurora ? 1 : 0); + response.getMapSettings()->setDisplayMagDec(settings.m_displayMagDec ? 1 : 0); + response.getMapSettings()->setDisplayMaidenheadGrid(settings.m_displayMaidenheadGrid ? 1 : 0); + response.getMapSettings()->setDisplayPfd(settings.m_displayPFD ? 1 : 0); + response.getMapSettings()->setViewFirstPerson(settings.m_viewFirstPerson ? 1 : 0); + if (response.getMapSettings()->getDefaultImagery()) { + *response.getMapSettings()->getDefaultImagery() = settings.m_defaultImagery; + } else { + response.getMapSettings()->setDefaultImagery(new QString(settings.m_defaultImagery)); + } + if (response.getMapSettings()->getTerrain()) { + *response.getMapSettings()->getTerrain() = settings.m_terrain; + } else { + response.getMapSettings()->setTerrain(new QString(settings.m_terrain)); + } if (response.getMapSettings()->getTitle()) { *response.getMapSettings()->getTitle() = settings.m_title; @@ -302,6 +368,108 @@ void Map::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("displayNames")) { settings.m_displayNames = response.getMapSettings()->getDisplayNames(); } + if (featureSettingsKeys.contains("map2DEnabled")) { + settings.m_map2DEnabled = response.getMapSettings()->getMap2DEnabled() != 0; + } + if (featureSettingsKeys.contains("map3DEnabled")) { + settings.m_map3DEnabled = response.getMapSettings()->getMap3DEnabled() != 0; + } + if (featureSettingsKeys.contains("mapProvider")) { + settings.m_mapProvider = *response.getMapSettings()->getMapProvider(); + } + if (featureSettingsKeys.contains("mapType")) { + settings.m_mapType = *response.getMapSettings()->getMapType(); + } + if (featureSettingsKeys.contains("osmURL")) { + settings.m_osmURL = *response.getMapSettings()->getOsmUrl(); + } + if (featureSettingsKeys.contains("mapBoxStyles")) { + settings.m_mapBoxStyles = *response.getMapSettings()->getMapBoxStyles(); + } + if (featureSettingsKeys.contains("displaySelectedGroundTracks")) { + settings.m_displaySelectedGroundTracks = response.getMapSettings()->getDisplaySelectedGroundTracks() != 0; + } + if (featureSettingsKeys.contains("displayAllGroundTracks")) { + settings.m_displayAllGroundTracks = response.getMapSettings()->getDisplayAllGroundTracks() != 0; + } + if (featureSettingsKeys.contains("buildings")) { + settings.m_buildings = *response.getMapSettings()->getBuildings(); + } + if (featureSettingsKeys.contains("sunLightEnabled")) { + settings.m_sunLightEnabled = response.getMapSettings()->getSunLightEnabled() != 0; + } + if (featureSettingsKeys.contains("lightIntensity")) { + settings.m_lightIntensity = response.getMapSettings()->getLightIntensity(); + } + if (featureSettingsKeys.contains("eciCamera")) { + settings.m_eciCamera = response.getMapSettings()->getEciCamera() != 0; + } + if (featureSettingsKeys.contains("fxaa")) { + settings.m_fxaa = response.getMapSettings()->getFxaa() != 0; + } + if (featureSettingsKeys.contains("msaa")) { + settings.m_msaa = response.getMapSettings()->getMsaa(); + } + if (featureSettingsKeys.contains("terrainLighting")) { + settings.m_terrainLighting = response.getMapSettings()->getTerrainLighting() != 0; + } + if (featureSettingsKeys.contains("water")) { + settings.m_water = response.getMapSettings()->getWater() != 0; + } + if (featureSettingsKeys.contains("hdr")) { + settings.m_hdr = response.getMapSettings()->getHdr() != 0; + } + if (featureSettingsKeys.contains("fog")) { + settings.m_fog = response.getMapSettings()->getFog() != 0; + } + if (featureSettingsKeys.contains("fps")) { + settings.m_fps = response.getMapSettings()->getFps() != 0; + } + if (featureSettingsKeys.contains("displayMUF")) { + settings.m_displayMUF = response.getMapSettings()->getDisplayMuf() != 0; + } + if (featureSettingsKeys.contains("displayfoF2")) { + settings.m_displayfoF2 = response.getMapSettings()->getDisplayfoF2() != 0; + } + if (featureSettingsKeys.contains("displayRain")) { + settings.m_displayRain = response.getMapSettings()->getDisplayRain() != 0; + } + if (featureSettingsKeys.contains("displayClouds")) { + settings.m_displayClouds = response.getMapSettings()->getDisplayClouds() != 0; + } + if (featureSettingsKeys.contains("displaySeaMarks")) { + settings.m_displaySeaMarks = response.getMapSettings()->getDisplaySeaMarks() != 0; + } + if (featureSettingsKeys.contains("displayRailways")) { + settings.m_displayRailways = response.getMapSettings()->getDisplayRailways() != 0; + } + if (featureSettingsKeys.contains("displayNASAGlobalImagery")) { + settings.m_displayNASAGlobalImagery = response.getMapSettings()->getDisplayNasaGlobalImagery() != 0; + } + if (featureSettingsKeys.contains("nasaGlobalImageryIdentifier")) { + settings.m_nasaGlobalImageryIdentifier = *response.getMapSettings()->getNasaGlobalImageryIdentifier(); + } + if (featureSettingsKeys.contains("nasaGlobalImageryOpacity")) { + settings.m_nasaGlobalImageryOpacity = response.getMapSettings()->getNasaGlobalImageryOpacity(); + } + if (featureSettingsKeys.contains("displayAurora")) { + settings.m_displayAurora = response.getMapSettings()->getDisplayAurora() != 0; + } + if (featureSettingsKeys.contains("displayMagDec")) { + settings.m_displayMagDec = response.getMapSettings()->getDisplayMagDec() != 0; + } + if (featureSettingsKeys.contains("displayMaidenheadGrid")) { + settings.m_displayMaidenheadGrid = response.getMapSettings()->getDisplayMaidenheadGrid() != 0; + } + if (featureSettingsKeys.contains("displayPFD")) { + settings.m_displayPFD = response.getMapSettings()->getDisplayPfd() != 0; + } + if (featureSettingsKeys.contains("viewFirstPerson")) { + settings.m_viewFirstPerson = response.getMapSettings()->getViewFirstPerson() != 0; + } + if (featureSettingsKeys.contains("defaultImagery")) { + settings.m_defaultImagery = *response.getMapSettings()->getDefaultImagery(); + } if (featureSettingsKeys.contains("terrain")) { settings.m_terrain = *response.getMapSettings()->getTerrain(); } @@ -345,6 +513,108 @@ void Map::webapiReverseSendSettings(const QList& featureSettingsKeys, c if (featureSettingsKeys.contains("displayNames") || force) { swgMapSettings->setDisplayNames(settings.m_displayNames); } + if (featureSettingsKeys.contains("map2DEnabled") || force) { + swgMapSettings->setMap2DEnabled(settings.m_map2DEnabled); + } + if (featureSettingsKeys.contains("map3DEnabled") || force) { + swgMapSettings->setMap3DEnabled(settings.m_map3DEnabled); + } + if (featureSettingsKeys.contains("mapProvider") || force) { + swgMapSettings->setMapProvider(new QString(settings.m_mapProvider)); + } + if (featureSettingsKeys.contains("mapType") || force) { + swgMapSettings->setMapType(new QString(settings.m_mapType)); + } + if (featureSettingsKeys.contains("osmURL") || force) { + swgMapSettings->setOsmUrl(new QString(settings.m_osmURL)); + } + if (featureSettingsKeys.contains("mapBoxStyles") || force) { + swgMapSettings->setMapBoxStyles(new QString(settings.m_mapBoxStyles)); + } + if (featureSettingsKeys.contains("displaySelectedGroundTracks") || force) { + swgMapSettings->setDisplaySelectedGroundTracks(settings.m_displaySelectedGroundTracks); + } + if (featureSettingsKeys.contains("displayAllGroundTracks") || force) { + swgMapSettings->setDisplayAllGroundTracks(settings.m_displayAllGroundTracks); + } + if (featureSettingsKeys.contains("buildings") || force) { + swgMapSettings->setBuildings(new QString(settings.m_buildings)); + } + if (featureSettingsKeys.contains("sunLightEnabled") || force) { + swgMapSettings->setSunLightEnabled(settings.m_sunLightEnabled); + } + if (featureSettingsKeys.contains("lightIntensity") || force) { + swgMapSettings->setLightIntensity(settings.m_lightIntensity); + } + if (featureSettingsKeys.contains("eciCamera") || force) { + swgMapSettings->setEciCamera(settings.m_eciCamera); + } + if (featureSettingsKeys.contains("fxaa") || force) { + swgMapSettings->setFxaa(settings.m_fxaa); + } + if (featureSettingsKeys.contains("msaa") || force) { + swgMapSettings->setMsaa(settings.m_msaa); + } + if (featureSettingsKeys.contains("terrainLighting") || force) { + swgMapSettings->setTerrainLighting(settings.m_terrainLighting); + } + if (featureSettingsKeys.contains("water") || force) { + swgMapSettings->setWater(settings.m_water); + } + if (featureSettingsKeys.contains("hdr") || force) { + swgMapSettings->setHdr(settings.m_hdr); + } + if (featureSettingsKeys.contains("fog") || force) { + swgMapSettings->setFog(settings.m_fog); + } + if (featureSettingsKeys.contains("fps") || force) { + swgMapSettings->setFps(settings.m_fps); + } + if (featureSettingsKeys.contains("displayMUF") || force) { + swgMapSettings->setDisplayMuf(settings.m_displayMUF); + } + if (featureSettingsKeys.contains("displayfoF2") || force) { + swgMapSettings->setDisplayfoF2(settings.m_displayfoF2); + } + if (featureSettingsKeys.contains("displayRain") || force) { + swgMapSettings->setDisplayRain(settings.m_displayRain); + } + if (featureSettingsKeys.contains("displayClouds") || force) { + swgMapSettings->setDisplayClouds(settings.m_displayClouds); + } + if (featureSettingsKeys.contains("displaySeaMarks") || force) { + swgMapSettings->setDisplaySeaMarks(settings.m_displaySeaMarks); + } + if (featureSettingsKeys.contains("displayRailways") || force) { + swgMapSettings->setDisplayRailways(settings.m_displayRailways); + } + if (featureSettingsKeys.contains("displayNASAGlobalImagery") || force) { + swgMapSettings->setDisplayNasaGlobalImagery(settings.m_displayNASAGlobalImagery); + } + if (featureSettingsKeys.contains("nasaGlobalImageryIdentifier") || force) { + swgMapSettings->setNasaGlobalImageryIdentifier(new QString(settings.m_nasaGlobalImageryIdentifier)); + } + if (featureSettingsKeys.contains("nasaGlobalImageryOpacity") || force) { + swgMapSettings->setNasaGlobalImageryOpacity(settings.m_nasaGlobalImageryOpacity); + } + if (featureSettingsKeys.contains("displayAurora") || force) { + swgMapSettings->setDisplayAurora(settings.m_displayAurora); + } + if (featureSettingsKeys.contains("displayMagDec") || force) { + swgMapSettings->setDisplayMagDec(settings.m_displayMagDec); + } + if (featureSettingsKeys.contains("displayMaidenheadGrid") || force) { + swgMapSettings->setDisplayMaidenheadGrid(settings.m_displayMaidenheadGrid); + } + if (featureSettingsKeys.contains("displayPFD") || force) { + swgMapSettings->setDisplayPfd(settings.m_displayPFD); + } + if (featureSettingsKeys.contains("viewFirstPerson") || force) { + swgMapSettings->setViewFirstPerson(settings.m_viewFirstPerson); + } + if (featureSettingsKeys.contains("defaultImagery") || force) { + swgMapSettings->setDefaultImagery(new QString(settings.m_defaultImagery)); + } if (featureSettingsKeys.contains("terrain") || force) { swgMapSettings->setTerrain(new QString(settings.m_terrain)); } diff --git a/plugins/feature/map/mapbeacondialog.cpp b/plugins/feature/map/mapbeacondialog.cpp index bf7d84ac3..e7102b0a0 100644 --- a/plugins/feature/map/mapbeacondialog.cpp +++ b/plugins/feature/map/mapbeacondialog.cpp @@ -25,6 +25,8 @@ #include "channel/channelwebapiutils.h" #include "mapgui.h" +#include "gui/messagedialog.h" + MapBeaconDialog::MapBeaconDialog(MapGUI *gui, QWidget* parent) : QDialog(parent), m_gui(gui), @@ -126,7 +128,7 @@ void MapBeaconDialog::downloadFinished(const QString& filename, bool success, co } else { - QMessageBox::warning(this, "Download failed", QString("Failed to download %1 to %2\n%3").arg(url).arg(filename).arg(errorMessage)); + MessageDialog::warning(this, "Download failed", QString("Failed to download %1 to %2\n%3").arg(url).arg(filename).arg(errorMessage)); } } diff --git a/plugins/feature/map/mapgui.cpp b/plugins/feature/map/mapgui.cpp index 38ef77a64..7780f04d9 100644 --- a/plugins/feature/map/mapgui.cpp +++ b/plugins/feature/map/mapgui.cpp @@ -1799,6 +1799,8 @@ void MapGUI::redrawMap() void MapGUI::showEvent(QShowEvent *event) { + FeatureGUI::showEvent(event); + if (!event->spontaneous()) { // Workaround for https://bugreports.qt.io/browse/QTBUG-100333 diff --git a/plugins/feature/map/mapsettings.cpp b/plugins/feature/map/mapsettings.cpp index 0e058c165..ea55d05cc 100644 --- a/plugins/feature/map/mapsettings.cpp +++ b/plugins/feature/map/mapsettings.cpp @@ -622,6 +622,9 @@ void MapSettings::applySettings(const QStringList& settingsKeys, const MapSettin if (settingsKeys.contains("displayNames")) { m_displayNames = settings.m_displayNames; } + if (settingsKeys.contains("rgbColor")) { + m_rgbColor = settings.m_rgbColor; + } if (settingsKeys.contains("mapProvider")) { m_mapProvider = settings.m_mapProvider; } @@ -637,6 +640,9 @@ void MapSettings::applySettings(const QStringList& settingsKeys, const MapSettin if (settingsKeys.contains("mapBoxStyles")) { m_mapBoxStyles = settings.m_mapBoxStyles; } + if (settingsKeys.contains("mapType")) { + m_mapType = settings.m_mapType; + } if (settingsKeys.contains("displaySelectedGroundTracks")) { m_displaySelectedGroundTracks = settings.m_displaySelectedGroundTracks; } diff --git a/plugins/feature/map/mapsettingsdialog.cpp b/plugins/feature/map/mapsettingsdialog.cpp index 8db416ce2..f77db06b3 100644 --- a/plugins/feature/map/mapsettingsdialog.cpp +++ b/plugins/feature/map/mapsettingsdialog.cpp @@ -22,6 +22,7 @@ #include #include "mapsettingsdialog.h" +#include "gui/messagedialog.h" #if (QT_VERSION < QT_VERSION_CHECK(6, 6, 0)) #include @@ -524,7 +525,7 @@ void MapSettingsDialog::downloadComplete(const QString &filename, bool success, else { m_downloadDialog.reject(); - QMessageBox::warning(this, "Download failed", QString("Failed to download %1 to %2\n%3").arg(url).arg(filename).arg(errorMessage)); + MessageDialog::warning(this, "Download failed", QString("Failed to download %1 to %2\n%3").arg(url).arg(filename).arg(errorMessage)); } } @@ -586,7 +587,7 @@ void MapSettingsDialog::downloadProgress(qint64 bytesRead, qint64 totalBytes) void MapSettingsDialog::downloadError(const QString& error) { - QMessageBox::critical(this, "Map", error); + MessageDialog::critical(this, "Map", error); if (m_progressDialog) { m_progressDialog->close(); diff --git a/plugins/feature/mcpserver/CMakeLists.txt b/plugins/feature/mcpserver/CMakeLists.txt new file mode 100644 index 000000000..54de0d37d --- /dev/null +++ b/plugins/feature/mcpserver/CMakeLists.txt @@ -0,0 +1,131 @@ +project(mcpserver) + +# Embed every plugin readme so they can be served to MCP clients as documentation resources. +# The list is taken at configure time; re-run cmake after adding a plugin. +file(GLOB MCPSERVER_READMES + ${CMAKE_SOURCE_DIR}/plugins/channelrx/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/channeltx/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/channelmimo/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/samplesource/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/samplesink/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/samplemimo/*/readme.md + ${CMAKE_SOURCE_DIR}/plugins/feature/*/readme.md +) +set(MCPSERVER_DOCS_QRC ${CMAKE_CURRENT_BINARY_DIR}/mcpdocs.qrc) +set(MCPSERVER_DOCS_QRC_CONTENT "\n \n") +foreach(readme ${MCPSERVER_READMES}) + file(RELATIVE_PATH readme_alias ${CMAKE_SOURCE_DIR}/plugins ${readme}) + string(APPEND MCPSERVER_DOCS_QRC_CONTENT " ${readme}\n") +endforeach() +string(APPEND MCPSERVER_DOCS_QRC_CONTENT " ${CMAKE_CURRENT_SOURCE_DIR}/bandguide.md\n") +# The GUI's own pages, for what is not a plugin: the spectrum display above all. Listed in +# MCPDocs::addGuiDocs, which gives each its id +foreach(guidoc + gui/spectrum.md + gui/spectrummarkers.md + gui/spectrummeasurements.md + gui/spectrumcalibration.md + mainspectrum/readme.md + audio.md + configurations.md + deviceuserargs.md + gui/transverterdialog.md +) + if(guidoc STREQUAL "mainspectrum/readme.md") + set(guidoc_alias "gui/mainspectrum.md") + else() + get_filename_component(guidoc_name ${guidoc} NAME) + set(guidoc_alias "gui/${guidoc_name}") + endif() + string(APPEND MCPSERVER_DOCS_QRC_CONTENT " ${CMAKE_SOURCE_DIR}/sdrgui/${guidoc}\n") +endforeach() +string(APPEND MCPSERVER_DOCS_QRC_CONTENT " \n\n") +file(WRITE ${MCPSERVER_DOCS_QRC} "${MCPSERVER_DOCS_QRC_CONTENT}") + +set(mcpserver_SOURCES + mcpserver.cpp + mcpserversettings.cpp + mcpserverplugin.cpp + mcpserverwebapiadapter.cpp + mcprequesthandler.cpp + mcpprotocol.cpp + mcptools.cpp + mcpdocs.cpp + mcpdatafeed.cpp + mcpcapture.cpp + mcpaudiocapture.cpp + mcpstreams.cpp + ${MCPSERVER_DOCS_QRC} +) + +set(mcpserver_HEADERS + mcpserver.h + mcpserversettings.h + mcpserverplugin.h + mcpserverwebapiadapter.h + mcprequesthandler.h + mcpprotocol.h + mcptools.h + mcpdocs.h + mcpdatafeed.h + mcpcapture.h + mcperror.h + mcpstreams.h +) + +include_directories( + ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client + ${CMAKE_SOURCE_DIR}/httpserver +) + +if(NOT SERVER_MODE) + set(mcpserver_SOURCES + ${mcpserver_SOURCES} + mcpservergui.cpp + mcpservergui.ui + mcpcodexconfig.cpp + mcpclaudeextension.cpp + ) + set(mcpserver_HEADERS + ${mcpserver_HEADERS} + mcpservergui.h + mcpcodexconfig.h + mcpclaudeextension.h + ) + + set(TARGET_NAME ${PLUGINS_PREFIX}featuremcpserver) + set(TARGET_LIB "Qt::Widgets") + set(TARGET_LIB_GUI "sdrgui") + set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR}) +else() + set(TARGET_NAME ${PLUGINSSRV_PREFIX}featuremcpserversrv) + set(TARGET_LIB "") + set(TARGET_LIB_GUI "") + set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) +endif() + +if(NOT Qt6_FOUND) + add_library(${TARGET_NAME} ${mcpserver_SOURCES}) +else() + qt_add_plugin(${TARGET_NAME} CLASS_NAME MCPServerPlugin) + target_sources(${TARGET_NAME} PRIVATE ${mcpserver_SOURCES}) +endif() + +if(NOT BUILD_SHARED_LIBS) + set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME}) +endif() + +target_link_libraries(${TARGET_NAME} PRIVATE + Qt::Core + ${TARGET_LIB} + sdrbase + httpserver + ${TARGET_LIB_GUI} +) + +install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER}) + +# Install debug symbols +if (WIN32) + install(FILES $ CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} ) +endif() diff --git a/plugins/feature/mcpserver/bandguide.md b/plugins/feature/mcpserver/bandguide.md new file mode 100644 index 000000000..ac99eb9e0 --- /dev/null +++ b/plugins/feature/mcpserver/bandguide.md @@ -0,0 +1,280 @@ +# Receiving guide + +What to tune to, which demodulator to use, and what to watch out for. Frequencies are from the +plugin documentation, or from the standard named where a readme has no table; call `get_docs` +for the full readme of any plugin named here, and `describe_settings` before setting any key. + +Several bands differ by region: the APRS frequency, pager bands, the broadcast FM raster and +airband channel spacing all do. Where a table below offers alternatives, check where the +receiver is with `get_location`, or ask, rather than picking one. + +## Choosing a device sample rate + +The device sample rate sets how much spectrum you can see and process at once. Rules of thumb: + +- A narrowband mode (voice, APRS, AIS, pagers) needs only tens of kHz, so a low device rate such + as 250 kS/s to 1 MS/s is enough and uses far less CPU. +- The channel's own bandwidth is set separately, on the channel, not on the device. +- Several channels can share one device as long as each one's offset falls inside the device + bandwidth. That is the cheap way to receive two nearby frequencies at once. +- A few modes need a minimum rate, listed below. Setting less than the minimum produces nothing. +- The key differs by device: an RTL-SDR has `devSampleRate` and `log2Decim` (the baseband is + the rate divided by 2 to the power of `log2Decim`), most others `sampleRate`; `describe_settings` + with the device's hwType shows which. `listen` and `scan` set the rate themselves for an + RTL-SDR and the test source, and say so when they have left another device's rate as it was. + +Minimum device sample rates: + +| Mode | Minimum | Why | +|------|---------|-----| +| ADS-B | 2 MS/s | 2 Mchip/s chip rate. Higher rates decode more distant aircraft | +| DAB | 2.048 MS/s | Fixed by the standard | +| Broadcast FM | 240 kS/s | Must exceed the channel RF bandwidth. 256 kS/s is recommended for a 180 kHz channel | + +## Aircraft + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| ADS-B and Mode S | `ADSBDemod` | 1090 MHz | Needs at least 2 MS/s. Recommend 2.4 MS/s for RTL SDR. Feeds aircraft to the map | +| Airband voice | `AMDemod` | 118 to 137 MHz | Amplitude modulation, not FM. 8 kHz channel bandwidth | +| VOR navaids | `VORDemod`, `VORDemodMC` | 108 to 117.975 MHz | `VORDemodMC` receives several VORs at once for a position fix | +| ILS localizer | `ILSDemod` | 108 to 112 MHz | Horizontal guidance | +| ILS glide slope | `ILSDemod` | 329 to 335 MHz | Vertical guidance, paired with the localizer | + +## Ships + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| AIS | `AISDemod` | 161.975 MHz and 162.025 MHz | The two channels are 50 kHz apart, so one device at 162 MHz covers both with two channels at offsets of -25 kHz and +25 kHz. `listen` with mode `ais` at 162000000 does exactly that, and adds the AIS feature, which lists the ships and puts them on the map | +| DSC distress and calling | `DSCDemod` | 2187.5 kHz, 8414.5 kHz, 16804.5 kHz, 156.525 MHz | The VHF one is marine channel 70 - but isn't yet supported | +| NAVTEX | `NavtexDemod` | 518 kHz, 490 kHz, 4209.5 kHz | 518 kHz is English international, 490 kHz national languages | + +## Amateur and data + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| APRS and AX.25 packet | `PacketDemod` | 144.800 MHz in Europe, 144.390 MHz in North America | `listen` with mode `aprs` adds the APRS feature, which decodes and maps the stations; mode `packet` is the demodulator alone | +| M17 digital voice | `M17Demod` | 144 and 430 MHz bands | Also carries data packets | +| FT8 and other digital HF | `FT8Demod` | HF band segments | Needs an HF capable receiver | +| SSB and CW | `SSBDemod`, `WDSPRx` | HF | `WDSPRx` has the more capable receiver chain | +| RTTY | `RTTYDemod` | HF | | +| DMR, dPMR, D-Star, YSF, NXDN | `DSDDemod` | Varies by band plan | `listen` with mode `dmr`, `dpmr`, `dstar`, `ysf` or `nxdn` sets the deviation and baud rate the standard needs. Needs the AMBE feature or hardware for voice | + +## Weather, time and utility + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| Radiosondes (RS41) | `RadiosondeDemod` | 400 to 406 MHz | Balloons are up around 00:00 and 12:00 UTC. The Radiosonde feature decodes and maps them; `listen` with mode `sonde` adds it | +| NOAA APT weather images | `APTDemod` | NOAA 15 at 137.620 MHz, NOAA 18 at 137.912 MHz, NOAA 19 at 137.100 MHz | Historical: the NOAA APT satellites were retired in 2025, so there is nothing live to receive. The demodulator still decodes recordings | +| Time signals | `RadioClock` | MSF 60 kHz, DCF77 77.5 kHz, TDF 162 kHz, WWVB 60 kHz, JJY 40 kHz | Needs a receiver that covers VLF or LF | +| Inmarsat STD-C | `InmarsatDemod` | 1537.70, 1541.45, 1537.10 MHz | L band, needs a suitable antenna and often an LNA | + +## Broadcast + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| Broadcast FM | `BFMDemod` | 87.5 to 108 MHz | Use this rather than `WFMDemod` for broadcast: it decodes stereo and RDS. Stations sit on a 100 kHz raster (87.5, 87.6, 87.7...) everywhere except the Americas, where they are on the odd tenths 200 kHz apart; scan with a 100 kHz step, as a 200 kHz step from 87.5 MHz lands beside every even-tenth station and never on it | +| Wideband FM | `WFMDemod` | Various | Plain wideband FM with no RDS | +| DAB | `DABDemod` | Band III | Fixed 2.048 MS/s | +| AM broadcast | `AMDemod` | LW, MW, SW bands | | + +### Checking DAB reception quality + +After starting the device and selecting a programme, wait briefly and call +`get_channel_report` again. Do not treat `sync: 1`, a populated programme list or +`audioActive: 1` alone as proof of clean reception: DAB audio can still be distorted. + +Check `snr` in `DABDemodReport`. If it is 0 dB or less while synchronized audio is active, +receiver overload is a likely cause. With an RTL-SDR, read its supported gain values from +`get_device_report`, reduce `gain` by one supported step with `set_device_settings`, wait +briefly, and re-read the channel report. Repeat while SNR improves, and use the gain that +gives the best positive SNR rather than the highest available gain. If lower gain makes +synchronization or SNR worse, restore the better setting and investigate frequency, +antenna and local interference instead. + +## Short range and IoT + +| What | Channel | Frequency | Notes | +|------|---------|-----------|-------| +| LoRa | `ChirpChatDemod` | 433, 868, 915 MHz ISM bands | Bandwidth and spreading factor must match the transmitter exactly or nothing decodes | +| Meshtastic | `MeshtasticDemod` | 433 MHz (EU_433), 868 MHz (EU_868), 902 MHz (US) | Set the region to match the network | +| MeshCore | `MeshcoreDemod` | Same ISM bands as Meshtastic | | +| POCSAG pagers | `PagerDemod` | Regional, commonly 138 to 160 MHz. 153.350 MHz in UK. | FSK with a 4.5 kHz shift | +| End of train devices | `EndOfTrainDemod` | 457.9375 MHz North America and India, 477.7 MHz Australia, 450.2625 MHz New Zealand | | + +## Scanning for activity + +`scan` steps a Frequency Scanner over a range or a list and reports what was active. Read +`active` for the answer: every frequency above the threshold with its level, strongest first. +`heard` is where the scanner parked and for how long, which distinguishes intermittent signals +such as airband calls; on a band of continuous carriers it parks on the first one it finds and +stays, so `heard` names one station where `active` names them all. It only finds what it +lands on, so the step has to match the channel spacing the band actually uses: +a step that is too coarse lands beside the channels rather than on them, and a channel wide +enough to catch the neighbour then reports it 100 kHz off and weaker, where nothing decodes. +Give `stepFrequency` only to override the spacing below; without it `scan` uses the spacing +usual for the mode. + +| What | `mode` | Range | Spacing | Notes | +|------|--------|-------|---------|-------| +| Broadcast FM | `bfm` | 87.5 to 108 MHz | 100 kHz | The Americas use only the odd tenths, 200 kHz apart; everywhere else every tenth. `scan` insists on 100 kHz for this mode | +| Airband voice | `am` | 118 to 137 MHz | 25 kHz | Europe also uses 8.33 kHz channels (`stepFrequency` 8333 from a 25 kHz frequency lands on all of them). The whole band at 8.33 kHz is over the 2000 frequency limit, so take it in sub bands | +| Marine VHF, PMR446, amateur FM | `nfm` | 156 to 162 MHz marine, 446.0 to 446.2 MHz PMR, 144 to 146 and 430 to 440 MHz amateur | 12.5 kHz (PMR446 6.25 kHz, marine 25 kHz) | | +| Digital voice | `dmr`, `dpmr`, `dstar`, `ysf`, `nxdn` | Same bands as `nfm` | 12.5 kHz (dPMR and NXDN 2400 baud 6.25 kHz) | Each sets the DSD demodulator's FM deviation and baud rate for the standard (DMR 5.4 kHz, dPMR 2.7 kHz at 2400 baud, D-Star 3.5 kHz, YSF 7 kHz, NXDN 2.7 kHz; `nxdn24` for the 2400 baud variant), which the decoder needs to recover symbols; `dsd` alone is the plugin's defaults, D-Star's. DMR gets both time slots on. Detects the carrier; decoding voice needs the AMBE feature or hardware | +| POCSAG pagers | `pager` | Regional, commonly 138 to 160 MHz | 12.5 kHz | Finds the carriers; the messages themselves are shown only in the GUI, the API carries none | +| Radiosondes (RS41) | `sonde` | 400 to 406 MHz | 10 kHz | Only worth it around launch times, 00:00 and 12:00 UTC. Decoded frames come from `get_packets` | +| SSB and CW | `ssb`, `usb`, `lsb` | HF band segments | 3 kHz | The scanner measures power in a 3 kHz channel; a busy band segment needs the threshold raised | + +Do not scan for these; they are on fixed frequencies, so `listen` or `add_channel` is the tool: + +- **ADS-B**: 1090 MHz only. +- **DAB**: fixed Band III blocks 5A to 13F (174.928 to 239.200 MHz, 1.712 MHz apart). Start a + `dab` channel on each block in turn and read the programme list from its report. +- **AIS**: 161.975 and 162.025 MHz. +- **DSC**: 2187.5 kHz, 8414.5 kHz, 16804.5 kHz and 156.525 MHz. +- **NAVTEX**: 518, 490 and 4209.5 kHz. +- **APRS**: 144.800 MHz in Europe, 144.390 MHz in North America. +- **Time signals, Inmarsat, end of train**: the frequencies in the tables above. + +## Frequencies asked for by name + +| Name | Frequency | +|------|-----------| +| Airband guard (emergency) | 121.500 MHz | +| Airband air to air | 123.450 MHz | +| Marine channel 16 (distress and calling) | 156.800 MHz | +| Marine channel 70 (DSC, data not voice) | 156.525 MHz | +| Marine channels 6, 12, 13, 67 | 156.300, 156.600, 156.650, 156.375 MHz | +| PMR446 channels 1 to 16 | 446.00625 MHz plus 12.5 kHz per channel, to 446.19375 MHz | +| 2 m amateur FM calling | 145.500 MHz in Europe, 146.520 MHz in North America | +| 70 cm amateur FM calling | 433.500 MHz in Europe, 446.000 MHz in North America | + +DAB Band III blocks, for one `dab` channel per block (1.712 MHz apart; the ensemble on each +depends on the country, and its report names it): + +| Block | MHz | Block | MHz | Block | MHz | Block | MHz | +|-------|-----|-------|-----|-------|-----|-------|-----| +| 5A | 174.928 | 7A | 188.928 | 9A | 202.928 | 11A | 216.928 | +| 5B | 176.640 | 7B | 190.640 | 9B | 204.640 | 11B | 218.640 | +| 5C | 178.352 | 7C | 192.352 | 9C | 206.352 | 11C | 220.352 | +| 5D | 180.064 | 7D | 194.064 | 9D | 208.064 | 11D | 222.064 | +| 6A | 181.936 | 8A | 195.936 | 10A | 209.936 | 12A | 223.936 | +| 6B | 183.648 | 8B | 197.648 | 10B | 211.648 | 12B | 225.648 | +| 6C | 185.360 | 8C | 199.360 | 10C | 213.360 | 12C | 227.360 | +| 6D | 187.072 | 8D | 201.072 | 10D | 215.072 | 12D | 229.072 | +| 13A | 230.784 | 13B | 232.496 | 13C | 234.208 | 13D | 235.776 | +| 13E | 237.488 | 13F | 239.200 | | | | | + +## Reading the results + +Decoded output lands in one of three places, depending on the mode. Reading the wrong one +looks like an empty band. + +| Mode | Where the output is | What to read | +|------|---------------------|--------------| +| Voice: `nfm`, `am`, `ssb`, `bfm`, `wfm`, `dsd` | Audio on the default output | `capture_audio` records a few seconds and reports the peak level, which tells silence (squelch closed, or nothing there) from speech | +| Broadcast FM | Channel report | `BFMDemodReport.rdsReport`: station name, programme type, radio text, once RDS has locked | +| DAB | Channel report | `DABDemodReport`: `sync`, `snr`, `ensembleName`, `programs`; select a programme with `set_channel_settings` and read `audioActive` | +| ADS-B | Map items | `get_map_items` lists the aircraft with position, altitude, heading and callsign; the channel report only has counts and the tracked target | +| AIS, APRS and AX.25, LoRa, M17, Meshtastic, MeshCore, Inmarsat, radiosondes | Packet buffer | `get_packets`, which decodes AIS position reports, APRS positions and RS41 frames. Ships, stations and sondes also appear in `get_map_items` when the Map feature is present | +| VOR | Channel report | `VORDemodReport.radial` with `validRadial`, and the Morse ident | +| Pagers, DSC, NAVTEX, RTTY, FT8 | GUI only | The decoded messages are shown in the plugin's window; the API carries the channel power only. Say so rather than reporting the band as empty | + +How long to wait before reading: RDS a few seconds, the full station name up to ten; DAB sync +about two seconds and the programme list five to ten; ADS-B ten seconds if aircraft are in +range; AIS half a minute, as each ship transmits every few seconds at most; APRS minutes, +as stations transmit rarely; radiosonde frames once a second while a sonde is up; VOR a few +seconds for a valid radial. A single read immediately after tuning proves nothing; read the +report again after the interval before concluding a signal has no data. + +## What has been on a band over time + +One spectrum is one instant. `get_spectrum_history` reads the history the GUI keeps for +scrolling the waterfall, switching scrolling on if it is off, and reports per bin the maximum, +the mean and the occupancy over the last `seconds`, plus a `signalList`: every run of bins +that rose above the floor, with its frequency, width, peak, `dutyCycle` and when it was first +and last seen. A carrier has a duty cycle near 1, a voice channel a fraction, a pager burst +almost nothing; a hopper shows as many short signals. It costs no channels and no retuning, so +it is the first thing to try on an unfamiliar band, before `scan`. Only rows taken with the +device tuned and sampling as it is now count, so after a retune wait for new history. +`get_waterfall_image` shows the same history as a picture, frequency across and time down, +for the cases where the shape matters: drift, hopping, burst timing. + +## Judging a signal level + +Power figures (`signalDb`, `channelPowerDB`, the scanner's `power`) are relative to the device +and its gain, so no fixed number means "signal present". Compare against the noise floor +instead: `scan` measures it, reports it as `noiseFloorDb` and sets its own threshold 12 dB +above it. Treat a channel within about 6 dB of the floor as empty, and a reading of -150 as +"not settled yet", which `listen` says when it sees it. A real signal stands out by 15 dB or +more, a broadcast FM station typically by 20 to 30 dB. When everything reads at the floor, +the receiver is not hearing anything at all: check the device is running, the gain, and the +antenna, in that order. + +## Gain + +`tune_gain` finds the gain for you: it steps the device through its range, measures the noise +floor and the strongest signal (or the one at a given frequency) at each, and applies the gain +where the signal stands furthest above the floor, preferring the lower of any that tie. On a +quiet band it goes by the floor alone: the lowest gain at which the antenna's noise, not the +converter's, sets the floor, short of overload. Use it +after tuning to the band of interest and before judging weak signals; the reply's table shows +where the front end starts to overload. It turns the device's AGC off, which a manual gain +requires. It knows the RTL-SDR, HackRF, Airspy, LimeSDR, PlutoSDR and USRP; for another +device read `describe_settings` and give it the gain key and values. `listen` and `scan` run +it themselves when they create a device set or move one to another band, and say what they +set; pass `tuneGain` false to keep a gain you have chosen. Once the gain is applied the main +spectrum is autoscaled, so its reference level and range suit the new gain; `autoscale` +false leaves the display as it was. A change of mode or a move within a +band does not trigger it, as the gain suits the band and the antenna rather than the mode. + +RTL-SDR `gain` is in tenths of a decibel (402 is 40.2 dB) and only the values in +`get_device_report`'s supported list take effect; `agc` hands control to the tuner, which is +poor on weak signals. `listen` and `scan` set 40 dB with AGC off on a device set they create, +and leave one they found exactly as it was set. Too little gain shows as every channel at +the floor; too much as a collapsing SNR on a strong signal, distortion, and spurious copies +of strong stations across the band. When a strong signal decodes badly, reduce gain by one +supported step and read the report again, as the DAB section above describes; keep the +setting that gives the best SNR rather than the highest level. + +RDS is the first casualty of overload: a broadcast FM station can sound clean and still decode +no RDS groups at all when the front end is compressed, and the report may then claim stereo +while showing no `pid`. On a strong-signal site the RTL-SDR decodes RDS best with only a few dB +of gain. Decimation matters too: a 180 kHz channel in a 256 kS/s baseband sits against the edge +of the decimation filters, so `listen` and `scan` use 512 kS/s or more for broadcast FM, and +put the channel far enough from the device centre that the DC spike is outside it. + +## Utility channels + +These do not demodulate a protocol but are useful for looking and recording. + +| What | Channel | Use | +|------|---------|-----| +| `FileSink` | Records baseband IQ to a file | The capture tools use this | +| `SigMFFileSink` | Records IQ in SigMF format | For interchange with other tools | +| `ChannelAnalyzer` | Inspects a signal's spectrum and waveform | For working out what an unknown signal is | +| `FreqScanner` | Scans a range for activity | For finding active frequencies | +| `ChannelPower` | Measures power in a channel | For comparing signal strengths | +| `HeatMap` | Maps signal strength against position | Coverage surveys | + +## Common reasons nothing is received + +- **The device is not running.** Call `start_device`. Settings can be changed while stopped, but + no samples flow. +- **The signal is outside the device bandwidth.** A channel's `inputFrequencyOffset` is relative + to the device centre frequency, and must fall within half the sample rate either side. +- **The sample rate is below the minimum** for the mode, most often with ADS-B. +- **The device cannot tune there.** An RTL-SDR covers about 24 to 1766 MHz; below that (DSC, + NAVTEX, FT8, AM and SSB on HF, the time signals) it receives only in direct sampling mode + (`noModMode` in its settings, with poor sensitivity) or through an upconverter. Check the + device's readme for its range before tuning outside VHF and UHF. +- **The radio is already in use.** One dongle serves one device set. `listen` and `scan` reuse the + set that holds it; `add_deviceset` for the same hardware fails or fights for it. Put a second + frequency on the same set as another channel, if its offset fits the baseband. +- **The squelch is closed.** `capture_audio` reports the peak level and warns when the audio is + silent, which usually means squelch rather than a broken setup. +- **Gain is too low or too high.** Too low buries the signal in noise; too high overloads the + front end. Check the device report and the spectrum. +- **The antenna is wrong for the band.** Nothing in software fixes a 2 metre whip at 1090 MHz. +- **A bias tee is needed** for a powered antenna or LNA, and is off by default. +- **The satellite or balloon is not overhead.** APT, radiosondes and Inmarsat all depend on this. diff --git a/plugins/feature/mcpserver/bridge/CMakeLists.txt b/plugins/feature/mcpserver/bridge/CMakeLists.txt new file mode 100644 index 000000000..8fa612378 --- /dev/null +++ b/plugins/feature/mcpserver/bridge/CMakeLists.txt @@ -0,0 +1,129 @@ +project(sdrangelmcpbridge) + +# A standalone executable, deliberately free of Qt and of the rest of SDRangel: it is +# shipped inside a Claude Desktop extension bundle, where nothing else is on the library +# path, so it must run with only the C++ runtime. + +set(mcpbridge_SOURCES + main.cpp + httpclient.cpp + jsonscan.cpp + ssereader.cpp +) + +set(mcpbridge_HEADERS + httpclient.h + jsonscan.h + ssereader.h +) + +add_executable(sdrangel-mcp-bridge ${mcpbridge_SOURCES} ${mcpbridge_HEADERS}) + +# There is no Qt here, so the project wide automatic moc, uic and rcc have nothing to do +set_target_properties(sdrangel-mcp-bridge PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF) + +target_compile_definitions(sdrangel-mcp-bridge PRIVATE + SDRANGEL_MCP_BRIDGE_VERSION="${CPACK_PACKAGE_VERSION}" +) + +find_package(Threads REQUIRED) +target_link_libraries(sdrangel-mcp-bridge Threads::Threads) + +if(WIN32) + target_link_libraries(sdrangel-mcp-bridge ws2_32) + # Static runtime, so the bundle does not depend on the redistributable being present + set_property(TARGET sdrangel-mcp-bridge PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +endif() + +install(TARGETS sdrangel-mcp-bridge DESTINATION ${INSTALL_BIN_DIR}) + +# A .mcpb is a zip with manifest.json at its root, so CMake can build one on its own. The +# mcpb CLI only adds validation and signing, and requiring npm to build SDRangel would be a +# poor trade for that. +if(BUILD_MCP_BUNDLE) + if(WIN32) + set(MCPBRIDGE_BUNDLE_PLATFORM "win32") + elseif(APPLE) + set(MCPBRIDGE_BUNDLE_PLATFORM "darwin") + else() + set(MCPBRIDGE_BUNDLE_PLATFORM "linux") + endif() + + # A bundle claiming a version that is already installed is not unpacked again, which + # silently leaves the previous one in place, so every build needs a version of its own. + # A release is exactly its tag; anything else carries the git describe suffix and the time + # it was configured, since rebuilds between commits would otherwise all claim the same + # version. Both are valid semantic version prereleases, and the added identifier makes a + # rebuild sort above what it replaces rather than below it + if(sdrangel_VERSION_SUFFIX STREQUAL "") + set(MCPBRIDGE_BUNDLE_VERSION "${CPACK_PACKAGE_VERSION}") + else() + string(TIMESTAMP MCPBRIDGE_BUILD_TIME "%Y%m%dT%H%M%S" UTC) + set(MCPBRIDGE_BUNDLE_VERSION "${CPACK_PACKAGE_VERSION}.${MCPBRIDGE_BUILD_TIME}") + endif() + + # The tool list the bundle carries comes from the server itself, built here by a host tool + # that constructs the real registry. Sources are named by path rather than reusing the + # plugin target, which is a Qt plugin module and cannot be linked into an executable + set(MCPTOOLSDUMP_DIR "${CMAKE_SOURCE_DIR}/plugins/feature/mcpserver") + + add_executable(sdrangel-mcp-tools-dump + "${MCPTOOLSDUMP_DIR}/toolsdump.cpp" + "${MCPTOOLSDUMP_DIR}/mcptools.cpp" + "${MCPTOOLSDUMP_DIR}/mcpdocs.cpp" + "${MCPTOOLSDUMP_DIR}/mcpdatafeed.cpp" + "${MCPTOOLSDUMP_DIR}/mcpcapture.cpp" + "${MCPTOOLSDUMP_DIR}/mcpaudiocapture.cpp" + "${MCPTOOLSDUMP_DIR}/mcpstreams.cpp" + ) + + target_include_directories(sdrangel-mcp-tools-dump PRIVATE + "${MCPTOOLSDUMP_DIR}" + "${CMAKE_SOURCE_DIR}/sdrbase" + "${CMAKE_SOURCE_DIR}/exports" + "${CMAKE_SOURCE_DIR}/httpserver" + "${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client" + ) + + target_link_libraries(sdrangel-mcp-tools-dump PRIVATE Qt::Core sdrbase httpserver) + + set(MCPBRIDGE_BUNDLE_DIR "${CMAKE_CURRENT_BINARY_DIR}/bundle") + # Alongside the built binaries, which is bin/ on Windows and the build directory itself + # elsewhere. That is also where the running application looks for it in a build tree + set(MCPBRIDGE_BUNDLE_FILE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sdrangel-${MCPBRIDGE_BUNDLE_VERSION}-${MCPBRIDGE_BUNDLE_PLATFORM}.mcpb") + + configure_file(manifest.json.in "${MCPBRIDGE_BUNDLE_DIR}/manifest.json" @ONLY) + + # Part of ALL, so that turning the option on is enough: the packaging step installs the + # bundle if it is there, and silently leaves it out if it is not, which would be a hard + # thing to notice in a finished installer + add_custom_target(mcpbundle ALL + COMMAND ${CMAKE_COMMAND} -E make_directory "${MCPBRIDGE_BUNDLE_DIR}/server" + COMMAND ${CMAKE_COMMAND} -E copy $ "${MCPBRIDGE_BUNDLE_DIR}/server/" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/cmake/cpack/sdrangel_icon.png" "${MCPBRIDGE_BUNDLE_DIR}/icon.png" + # The tool list, straight from the server's own registry, beside the bridge that serves + # it when SDRangel is not up + COMMAND $ "${MCPBRIDGE_BUNDLE_DIR}/server/tools.json" + COMMAND ${CMAKE_COMMAND} -E rm -f "${MCPBRIDGE_BUNDLE_FILE}" + # Relative paths and a working directory, so that manifest.json lands at the root of + # the archive, which is where the installer looks for it + COMMAND ${CMAKE_COMMAND} -E tar cf "${MCPBRIDGE_BUNDLE_FILE}" --format=zip -- manifest.json icon.png server + WORKING_DIRECTORY "${MCPBRIDGE_BUNDLE_DIR}" + DEPENDS sdrangel-mcp-bridge sdrangel-mcp-tools-dump "${MCPBRIDGE_BUNDLE_DIR}/manifest.json" + COMMENT "Packaging ${MCPBRIDGE_BUNDLE_FILE}" + VERBATIM + ) + + # The installer needs the name, and cmake/cpack is configured after this directory + set(MCPBRIDGE_BUNDLE_NAME "sdrangel-${MCPBRIDGE_BUNDLE_VERSION}-${MCPBRIDGE_BUNDLE_PLATFORM}.mcpb" + CACHE INTERNAL "File name of the Claude Desktop extension bundle") + + # Not OPTIONAL: mcpbundle is part of ALL, so the bundle is always there by the time the + # install rules run. Should packaging ever break, failing here is far better than an + # installer that quietly ships without the extension + install(FILES "${MCPBRIDGE_BUNDLE_FILE}" DESTINATION ${INSTALL_BIN_DIR}) + + # Beside the installed bridge as well, for anyone pointing a client straight at it rather + # than installing the extension + install(FILES "${MCPBRIDGE_BUNDLE_DIR}/server/tools.json" DESTINATION ${INSTALL_BIN_DIR}) +endif() diff --git a/plugins/feature/mcpserver/bridge/httpclient.cpp b/plugins/feature/mcpserver/bridge/httpclient.cpp new file mode 100644 index 000000000..827c32c21 --- /dev/null +++ b/plugins/feature/mcpserver/bridge/httpclient.cpp @@ -0,0 +1,494 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include "httpclient.h" + +#include +#include +#include +#include +#include + +#ifdef _WIN32 +#include +#include +#else +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +namespace +{ + +std::string lowered(const std::string& text) +{ + std::string result(text); + + std::transform(result.begin(), result.end(), result.begin(), + [](unsigned char c) { return static_cast(std::tolower(c)); }); + return result; +} + +std::string trimmed(const std::string& text) +{ + size_t begin = text.find_first_not_of(" \t\r\n"); + + if (begin == std::string::npos) { + return std::string(); + } + + size_t end = text.find_last_not_of(" \t\r\n"); + return text.substr(begin, end - begin + 1); +} + +std::string socketError() +{ +#ifdef _WIN32 + int code = WSAGetLastError(); + + switch (code) + { + case WSAECONNREFUSED: return "connection refused"; + case WSAETIMEDOUT: return "timed out"; + case WSAECONNRESET: return "connection reset"; + case WSAEHOSTUNREACH: return "host unreachable"; + default: return "socket error " + std::to_string(code); + } +#else + // A receive timeout set with SO_RCVTIMEO comes back as EAGAIN, whose text says nothing + // about time + if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) { + return "timed out"; + } + + return std::strerror(errno); +#endif +} + +} // namespace + +HttpClient::Socket HttpClient::invalidSocket() +{ +#ifdef _WIN32 + return INVALID_SOCKET; +#else + return -1; +#endif +} + +std::string HttpClient::Head::header(const std::string& name) const +{ + std::string wanted = lowered(name); + + for (const auto& header : m_headers) + { + if (lowered(header.first) == wanted) { + return header.second; + } + } + + return std::string(); +} + +bool HttpClient::startup(std::string& error) +{ +#ifdef _WIN32 + WSADATA data; + int result = WSAStartup(MAKEWORD(2, 2), &data); + + if (result != 0) + { + error = "WSAStartup failed with " + std::to_string(result); + return false; + } +#else + (void) error; +#endif + return true; +} + +void HttpClient::cleanup() +{ +#ifdef _WIN32 + WSACleanup(); +#endif +} + +HttpClient::~HttpClient() +{ + close(); +} + +bool HttpClient::open(const std::string& host, int port, int timeoutMs, std::string& error) +{ + close(); + + addrinfo hints; + std::memset(&hints, 0, sizeof(hints)); + hints.ai_family = AF_UNSPEC; + hints.ai_socktype = SOCK_STREAM; + hints.ai_protocol = IPPROTO_TCP; + + addrinfo *addresses = nullptr; + std::string service = std::to_string(port); + + if (getaddrinfo(host.c_str(), service.c_str(), &hints, &addresses) != 0) + { + error = "cannot resolve " + host; + return false; + } + + std::string reason; + + for (addrinfo *address = addresses; address != nullptr; address = address->ai_next) + { + Socket handle = socket(address->ai_family, address->ai_socktype, address->ai_protocol); + + if (handle == invalidSocket()) { + continue; + } + + if (connect(handle, address->ai_addr, static_cast(address->ai_addrlen)) == 0) + { + m_socket = handle; + break; + } + + // Read before closing the socket and freeing the addresses, either of which + // replaces the last error with one of its own + reason = socketError(); + +#ifdef _WIN32 + closesocket(handle); +#else + ::close(handle); +#endif + } + + freeaddrinfo(addresses); + + if (m_socket == invalidSocket()) + { + error = reason.empty() ? "no usable address" : reason; + return false; + } + + // Nagle would hold small JSON-RPC messages back waiting for more to send + int flag = 1; + setsockopt(m_socket, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&flag), sizeof(flag)); + +#ifdef SO_NOSIGPIPE + // A send on a connection the server has closed must fail, not raise SIGPIPE and end the + // process. Linux has no such option and uses MSG_NOSIGNAL on the send instead + setsockopt(m_socket, SOL_SOCKET, SO_NOSIGPIPE, &flag, sizeof(flag)); +#endif + + if (timeoutMs > 0) + { +#ifdef _WIN32 + DWORD timeout = static_cast(timeoutMs); + setsockopt(m_socket, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast(&timeout), sizeof(timeout)); + setsockopt(m_socket, SOL_SOCKET, SO_SNDTIMEO, reinterpret_cast(&timeout), sizeof(timeout)); +#else + timeval timeout; + timeout.tv_sec = timeoutMs / 1000; + timeout.tv_usec = (timeoutMs % 1000) * 1000; + setsockopt(m_socket, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)); + setsockopt(m_socket, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); +#endif + } + + m_buffer.clear(); + m_eof = false; + return true; +} + +void HttpClient::interrupt() +{ + if (m_socket != invalidSocket()) + { +#ifdef _WIN32 + shutdown(m_socket, SD_BOTH); +#else + shutdown(m_socket, SHUT_RDWR); +#endif + } +} + +void HttpClient::close() +{ + if (m_socket != invalidSocket()) + { +#ifdef _WIN32 + closesocket(m_socket); +#else + ::close(m_socket); +#endif + m_socket = invalidSocket(); + } + + m_buffer.clear(); + m_eof = false; +} + +bool HttpClient::sendAll(const std::string& data, std::string& error) +{ + size_t sent = 0; + + while (sent < data.size()) + { +#ifdef MSG_NOSIGNAL + const int flags = MSG_NOSIGNAL; +#else + const int flags = 0; +#endif + int count = ::send(m_socket, data.data() + sent, static_cast(data.size() - sent), flags); + + if (count <= 0) + { + error = "send failed (" + socketError() + ")"; + return false; + } + + sent += static_cast(count); + } + + return true; +} + +bool HttpClient::send(const std::string& method, const std::string& path, const std::vector
& headers, + const std::string& body, std::string& error) +{ + std::string request = method + " " + path + " HTTP/1.1\r\n"; + + for (const auto& header : headers) { + request += header.first + ": " + header.second + "\r\n"; + } + + // One request per connection keeps the response framing simple: no pipelining to unpick, + // and a body with neither Content-Length nor chunking ends at the close + request += "Connection: close\r\n"; + request += "Content-Length: " + std::to_string(body.size()) + "\r\n"; + request += "\r\n"; + request += body; + + return sendAll(request, error); +} + +bool HttpClient::fill(std::string& error) +{ + char block[8192]; + int count = recv(m_socket, block, sizeof(block), 0); + + if (count == 0) + { + m_eof = true; + return false; + } + + if (count < 0) + { + error = "read failed (" + socketError() + ")"; + m_eof = true; + return false; + } + + m_buffer.append(block, static_cast(count)); + return true; +} + +bool HttpClient::readLine(std::string& line, std::string& error) +{ + for (;;) + { + size_t end = m_buffer.find("\r\n"); + + if (end != std::string::npos) + { + line = m_buffer.substr(0, end); + m_buffer.erase(0, end + 2); + return true; + } + + if (!fill(error)) + { + if (error.empty()) { + error = "connection closed while reading a line"; + } + + return false; + } + } +} + +bool HttpClient::readExactly(size_t count, std::string& out, std::string& error) +{ + while (m_buffer.size() < count) + { + if (!fill(error)) + { + if (error.empty()) { + error = "connection closed with " + std::to_string(count - m_buffer.size()) + " bytes still to read"; + } + + return false; + } + } + + out = m_buffer.substr(0, count); + m_buffer.erase(0, count); + return true; +} + +bool HttpClient::readHead(Head& head, std::string& error) +{ + std::string line; + + if (!readLine(line, error)) { + return false; + } + + // HTTP/1.1 200 OK + size_t firstSpace = line.find(' '); + + if ((firstSpace == std::string::npos) || (line.compare(0, 5, "HTTP/") != 0)) + { + error = "not an HTTP response: " + line; + return false; + } + + size_t secondSpace = line.find(' ', firstSpace + 1); + head.m_status = std::atoi(line.substr(firstSpace + 1).c_str()); + head.m_reason = (secondSpace == std::string::npos) ? std::string() : trimmed(line.substr(secondSpace + 1)); + + for (;;) + { + if (!readLine(line, error)) { + return false; + } + + if (line.empty()) { + break; + } + + size_t colon = line.find(':'); + + if (colon == std::string::npos) { + continue; + } + + head.m_headers.emplace_back(trimmed(line.substr(0, colon)), trimmed(line.substr(colon + 1))); + } + + std::string length = head.header("Content-Length"); + + if (!length.empty()) { + head.m_contentLength = std::atoll(length.c_str()); + } + + head.m_chunked = (lowered(head.header("Transfer-Encoding")).find("chunked") != std::string::npos); + return true; +} + +bool HttpClient::readChunk(std::string& chunk, std::string& error) +{ + std::string line; + + if (!readLine(line, error)) { + return false; + } + + // The size line may carry chunk extensions after a semicolon + size_t semicolon = line.find(';'); + std::string sizeText = trimmed((semicolon == std::string::npos) ? line : line.substr(0, semicolon)); + size_t size = static_cast(std::strtoul(sizeText.c_str(), nullptr, 16)); + + if (size == 0) + { + // Trailers, then the final blank line. The body is complete, which is not an error + for (;;) + { + std::string trailer; + + if (!readLine(trailer, error) || trailer.empty()) { + break; + } + } + + error.clear(); + return false; + } + + if (!readExactly(size, chunk, error)) { + return false; + } + + std::string terminator; + return readLine(terminator, error); +} + +bool HttpClient::readSome(std::string& data, std::string& error) +{ + if (m_buffer.empty() && !fill(error)) { + return false; + } + + data.clear(); + data.swap(m_buffer); + return true; +} + +bool HttpClient::readBody(const Head& head, std::string& body, std::string& error) +{ + body.clear(); + + if (head.m_chunked) + { + std::string chunk; + + while (readChunk(chunk, error)) { + body += chunk; + } + + return error.empty(); + } + + if (head.m_contentLength >= 0) + { + if (head.m_contentLength == 0) { + return true; + } + + return readExactly(static_cast(head.m_contentLength), body, error); + } + + // Neither framing: the body runs to the close, which Connection: close guarantees + while (fill(error)) { + // keep reading + } + + body.swap(m_buffer); + m_buffer.clear(); + return error.empty(); +} diff --git a/plugins/feature/mcpserver/bridge/httpclient.h b/plugins/feature/mcpserver/bridge/httpclient.h new file mode 100644 index 000000000..38c6b6d76 --- /dev/null +++ b/plugins/feature/mcpserver/bridge/httpclient.h @@ -0,0 +1,101 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_MCPBRIDGE_HTTPCLIENT_H_ +#define INCLUDE_MCPBRIDGE_HTTPCLIENT_H_ + +#include +#include +#include + +//!< Just enough HTTP/1.1 to talk to SDRangel's MCP server: one request per connection, +//!< no TLS, no redirects, no keep alive. Bodies arrive either with a Content-Length or +//!< chunked, and a chunked body can be read incrementally so that the event stream can +//!< be followed as it arrives. +class HttpClient +{ +public: + using Header = std::pair; + + struct Head + { + int m_status = 0; + std::string m_reason; + std::vector
m_headers; + long long m_contentLength = -1; //!< -1 when there is no Content-Length + bool m_chunked = false; + + //!< Case insensitive lookup, empty when the header is absent + std::string header(const std::string& name) const; + }; + + HttpClient() = default; + ~HttpClient(); + + HttpClient(const HttpClient&) = delete; + HttpClient& operator=(const HttpClient&) = delete; + + static bool startup(std::string& error); //!< WSAStartup on Windows, nothing elsewhere + static void cleanup(); + + bool open(const std::string& host, int port, int timeoutMs, std::string& error); + void close(); + //!< Wakes a read blocked on this socket from another thread. Only the socket is touched: + //!< the buffer and the rest belong to the thread reading, which closes when its read + //!< returns. Closing from the other thread would not wake a read on Linux, and frees a + //!< descriptor number the reader still holds + void interrupt(); + bool isOpen() const { return m_socket != invalidSocket(); } + + //!< Sends the request and its body. An empty method body is fine. + bool send(const std::string& method, const std::string& path, const std::vector
& headers, + const std::string& body, std::string& error); + + bool readHead(Head& head, std::string& error); + + //!< Reads the whole body, however it is framed. Not for the event stream, which never ends. + bool readBody(const Head& head, std::string& body, std::string& error); + + //!< One piece of a chunked body, for following a stream. Returns false at the end of the + //!< body or on error, with error empty when the end was reached cleanly. + bool readChunk(std::string& chunk, std::string& error); + + //!< Whatever has arrived of a body that is delimited by the connection closing rather + //!< than chunked, which is how the event stream comes back. Same false at the end. + bool readSome(std::string& data, std::string& error); + +private: +#ifdef _WIN32 + using Socket = unsigned long long; //!< SOCKET, kept out of the header so windows.h is not needed here +#else + using Socket = int; +#endif + + static Socket invalidSocket(); + + bool fill(std::string& error); //!< One read into m_buffer + bool readLine(std::string& line, std::string& error); + bool readExactly(size_t count, std::string& out, std::string& error); + bool sendAll(const std::string& data, std::string& error); + + Socket m_socket = invalidSocket(); + std::string m_buffer; //!< Bytes read from the socket but not yet consumed + bool m_eof = false; +}; + +#endif // INCLUDE_MCPBRIDGE_HTTPCLIENT_H_ diff --git a/plugins/feature/mcpserver/bridge/jsonscan.cpp b/plugins/feature/mcpserver/bridge/jsonscan.cpp new file mode 100644 index 000000000..54a3b005e --- /dev/null +++ b/plugins/feature/mcpserver/bridge/jsonscan.cpp @@ -0,0 +1,208 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include "jsonscan.h" + +namespace +{ + +void skipSpace(const std::string& json, size_t& at) +{ + while ((at < json.size()) && ((json[at] == ' ') || (json[at] == '\t') || (json[at] == '\r') || (json[at] == '\n'))) { + at++; + } +} + +//!< Steps over a string, starting on its opening quote and finishing past its closing one +bool skipString(const std::string& json, size_t& at) +{ + if ((at >= json.size()) || (json[at] != '"')) { + return false; + } + + at++; + + while (at < json.size()) + { + if (json[at] == '\\') + { + at += 2; // an escape and whatever it escapes, \uXXXX included: the X are not quotes + continue; + } + + if (json[at] == '"') + { + at++; + return true; + } + + at++; + } + + return false; +} + +//!< Steps over any value, however deeply nested +bool skipValue(const std::string& json, size_t& at) +{ + skipSpace(json, at); + + if (at >= json.size()) { + return false; + } + + if (json[at] == '"') { + return skipString(json, at); + } + + if ((json[at] == '{') || (json[at] == '[')) + { + int depth = 0; + + while (at < json.size()) + { + char c = json[at]; + + if (c == '"') + { + if (!skipString(json, at)) { + return false; + } + + continue; + } + + if ((c == '{') || (c == '[')) { + depth++; + } else if ((c == '}') || (c == ']')) { + depth--; + } + + at++; + + if (depth == 0) { + return true; + } + } + + return false; + } + + // A number, true, false or null: runs until the value separator + size_t start = at; + + while ((at < json.size()) && (json[at] != ',') && (json[at] != '}') && (json[at] != ']') + && (json[at] != ' ') && (json[at] != '\t') && (json[at] != '\r') && (json[at] != '\n')) { + at++; + } + + return at > start; +} + +} // namespace + +std::string jsonMember(const std::string& json, const std::string& key) +{ + size_t at = 0; + skipSpace(json, at); + + if ((at >= json.size()) || (json[at] != '{')) { + return std::string(); + } + + at++; + + for (;;) + { + skipSpace(json, at); + + if ((at >= json.size()) || (json[at] == '}')) { + return std::string(); + } + + size_t nameStart = at; + + if (!skipString(json, at)) { + return std::string(); + } + + // Compared with the quotes on, so a key needing escapes simply does not match + std::string name = json.substr(nameStart + 1, at - nameStart - 2); + + skipSpace(json, at); + + if ((at >= json.size()) || (json[at] != ':')) { + return std::string(); + } + + at++; + skipSpace(json, at); + size_t valueStart = at; + + if (!skipValue(json, at)) { + return std::string(); + } + + if (name == key) { + return json.substr(valueStart, at - valueStart); + } + + skipSpace(json, at); + + if ((at >= json.size()) || (json[at] != ',')) { + return std::string(); + } + + at++; + } +} + +std::string jsonStringMember(const std::string& json, const std::string& key) +{ + std::string raw = jsonMember(json, key); + + if ((raw.size() < 2) || (raw.front() != '"') || (raw.back() != '"')) { + return std::string(); + } + + std::string text; + + for (size_t at = 1; at + 1 < raw.size(); at++) + { + if ((raw[at] == '\\') && (at + 2 < raw.size())) + { + char escaped = raw[++at]; + + switch (escaped) + { + case 'n': text += '\n'; break; + case 't': text += '\t'; break; + case 'r': text += '\r'; break; + case 'b': text += '\b'; break; + case 'f': text += '\f'; break; + default: text += escaped; break; // \\ \" \/ and, crudely, \u + } + + continue; + } + + text += raw[at]; + } + + return text; +} diff --git a/plugins/feature/mcpserver/bridge/jsonscan.h b/plugins/feature/mcpserver/bridge/jsonscan.h new file mode 100644 index 000000000..6865562ea --- /dev/null +++ b/plugins/feature/mcpserver/bridge/jsonscan.h @@ -0,0 +1,37 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_MCPBRIDGE_JSONSCAN_H_ +#define INCLUDE_MCPBRIDGE_JSONSCAN_H_ + +#include + +//!< The bridge passes JSON through without understanding it, and needs only two things out +//!< of a message: the id, so a transport failure can be reported against the right request, +//!< and the negotiated protocol version. Both are members of an object, so rather than carry +//!< a JSON library this returns the raw text of one member of the outermost object. A nested +//!< member of the same name is not mistaken for it. + +//!< Raw value text, quotes and all for a string, empty when the key is not a member of the +//!< outermost object or the text is not an object +std::string jsonMember(const std::string& json, const std::string& key); + +//!< Same, with the surrounding quotes and escapes of a JSON string removed +std::string jsonStringMember(const std::string& json, const std::string& key); + +#endif // INCLUDE_MCPBRIDGE_JSONSCAN_H_ diff --git a/plugins/feature/mcpserver/bridge/main.cpp b/plugins/feature/mcpserver/bridge/main.cpp new file mode 100644 index 000000000..a0631cb3d --- /dev/null +++ b/plugins/feature/mcpserver/bridge/main.cpp @@ -0,0 +1,1085 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +// Bridges the MCP stdio transport to SDRangel's Streamable HTTP MCP server, for clients +// such as Claude Desktop that can only launch a local server on stdin and stdout. +// JSON-RPC messages are passed through untouched: this program understands the transport, +// not the protocol. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef _WIN32 +#include +#include +#include +#endif + +#include "httpclient.h" +#include "jsonscan.h" +#include "ssereader.h" + +namespace +{ + +const char *versionText = "sdrangel-mcp-bridge " SDRANGEL_MCP_BRIDGE_VERSION; + +struct Options +{ + std::string m_host = "127.0.0.1"; + int m_port = 8092; + std::string m_path = "/mcp"; + std::string m_token; + bool m_verbose = false; +}; + +void note(const Options& options, const std::string& message) +{ + if (options.m_verbose) { + std::fprintf(stderr, "sdrangel-mcp-bridge: %s\n", message.c_str()); + } +} + +void warn(const std::string& message) +{ + std::fprintf(stderr, "sdrangel-mcp-bridge: %s\n", message.c_str()); +} + +//!< An extension bundle cannot leave an argument out, so a user_config value the user did not +//!< set can reach us as the placeholder text itself. Treated as "not given" rather than taken +//!< literally, which would mean a nonsense port or a token the server never issued. +bool isPlaceholder(const std::string& value) +{ + return (value.size() > 3) && (value.compare(0, 2, "${") == 0) && (value.back() == '}'); +} + +//!< The tool list this build of SDRangel provides, written beside the bridge when the +//!< extension was packaged. A client reads the tool list once when a conversation begins and +//!< does not ask again, so a conversation that starts before SDRangel is up would have no +//!< tools for its whole life if the bridge could only answer with what it had seen. Shipping +//!< the list means it is right the first time the extension is ever used, and it comes from +//!< the server's own registry, so it cannot drift from what the tools really are. +std::string toolsFile(const char *program) +{ + std::string path; + +#ifdef _WIN32 + char module[MAX_PATH]; + + if (GetModuleFileNameA(nullptr, module, MAX_PATH) > 0) { + path = module; + } +#endif + + if (path.empty() && program) { + path = program; + } + + size_t slash = path.find_last_of("/\\"); + return (slash == std::string::npos) ? std::string("tools.json") : path.substr(0, slash + 1) + "tools.json"; +} + +std::string readFile(const std::string& path) +{ + std::ifstream file(path, std::ios::binary); + + if (!file) { + return std::string(); + } + + return std::string((std::istreambuf_iterator(file)), std::istreambuf_iterator()); +} + +//!< JSON string escaping for the messages this program generates itself +std::string escaped(const std::string& text) +{ + std::string result; + + for (char c : text) + { + switch (c) + { + case '"': result += "\\\""; break; + case '\\': result += "\\\\"; break; + case '\n': result += "\\n"; break; + case '\r': result += "\\r"; break; + case '\t': result += "\\t"; break; + default: + if (static_cast(c) < 0x20) { + result += ' '; + } else { + result += c; + } + } + } + + return result; +} + +} // namespace + +class Bridge +{ +public: + Bridge(const Options& options, const std::string& shippedTools) : + m_options(options), + m_shippedTools(shippedTools) + { + } + + int run(); + +private: + void handle(const std::string& message); + void post(const std::string& message); + bool exchange(const std::string& message, HttpClient::Head& head, std::string& body, std::string& error); + void noteSession(const HttpClient::Head& head); + bool reinitialize(const std::string& staleSession); + bool answerLocally(const std::string& id, const std::string& method, const std::string& message); + bool openSession(); + //!< Subscribes again to the resources the client had subscribed to, on a session just built + void replaySubscriptions(); + void settleHandshake(); + void waitForHandshake(); + void streamLoop(); + void startStream(); + void stopStream(); + void endSession(); + + std::vector headers(bool eventStream) const; + void writeMessage(const std::string& message); + void writeError(const std::string& id, int code, const std::string& reason); + + std::string sessionId() const; + + const Options m_options; + mutable std::mutex m_stateMutex; + std::string m_sessionId; + std::string m_protocolVersion; + std::string m_initializeMessage; //!< Kept so the session can be rebuilt without the client + std::set m_subscriptions; //!< Resource URIs the client subscribed to, to carry over to a new session + std::mutex m_reinitMutex; //!< One rebuild at a time, however many calls failed at once + std::atomic m_degraded { false }; //!< Handshake answered without SDRangel: it was not up + std::string m_shippedTools; //!< tools/list result packaged with the bridge, may be empty + + // Every request but the handshake itself waits for the handshake to finish. Whether + // SDRangel was reachable decides how the listings are answered, and a request that + // overtook the handshake would be answered on a state that had not been worked out yet + std::mutex m_handshakeMutex; + std::condition_variable m_handshakeReady; + bool m_handshakeSettled { false }; + + std::mutex m_outputMutex; + + static constexpr int m_retryMinMs = 1000; //!< First wait before reopening the event stream + static constexpr int m_retryMaxMs = 60000; //!< And the longest, once it keeps failing + + // Socket timeouts, so that a SDRangel that has stopped answering cannot hold a worker + // for ever: run() joins every worker once the client closes stdin, and one that never + // returns would keep this process alive after the client has given up on it. + // A call may legitimately run for over a minute: scan watches for up to 30 s after + // measuring its threshold for up to 15 s, and listen may tune the gain first + static constexpr int m_callTimeoutMs = 180000; + // The server writes a keepalive comment every 15 s while the stream is open + static constexpr int m_streamTimeoutMs = 60000; + static constexpr int m_shutdownTimeoutMs = 5000; + + std::atomic m_running { true }; + std::atomic m_streamWanted { false }; + std::thread m_streamThread; + std::mutex m_streamMutex; + HttpClient *m_streamClient = nullptr; //!< Owned by the stream thread, closed from ours to unblock it +}; + +std::string Bridge::sessionId() const +{ + std::lock_guard lock(m_stateMutex); + return m_sessionId; +} + +std::vector Bridge::headers(bool eventStream) const +{ + std::vector result; + result.emplace_back("Host", m_options.m_host + ":" + std::to_string(m_options.m_port)); + result.emplace_back("User-Agent", versionText); + result.emplace_back("Accept", eventStream ? "text/event-stream" : "application/json, text/event-stream"); + + if (!eventStream) { + result.emplace_back("Content-Type", "application/json"); + } + + if (!m_options.m_token.empty()) { + result.emplace_back("Authorization", "Bearer " + m_options.m_token); + } + + std::string session; + std::string version; + { + std::lock_guard lock(m_stateMutex); + session = m_sessionId; + version = m_protocolVersion; + } + + if (!session.empty()) { + result.emplace_back("Mcp-Session-Id", session); + } + + // Sent on every request after initialize, as the Streamable HTTP transport requires + if (!version.empty()) { + result.emplace_back("MCP-Protocol-Version", version); + } + + return result; +} + +void Bridge::writeMessage(const std::string& message) +{ + // One JSON-RPC message per line. Compact JSON has no raw newlines in it, so nothing + // here can break the framing, but a stray carriage return would confuse a strict reader + std::string line(message); + line.erase(std::remove(line.begin(), line.end(), '\n'), line.end()); + line.erase(std::remove(line.begin(), line.end(), '\r'), line.end()); + + std::lock_guard lock(m_outputMutex); + std::fwrite(line.data(), 1, line.size(), stdout); + std::fputc('\n', stdout); + std::fflush(stdout); +} + +void Bridge::writeError(const std::string& id, int code, const std::string& reason) +{ + // An absent or unreadable id becomes null, which is what JSON-RPC asks for when the + // request could not be identified. The client cannot match it to a call, so the text + // has to stand on its own in the log + std::string identifier = id.empty() ? "null" : id; + writeMessage("{\"jsonrpc\":\"2.0\",\"id\":" + identifier + + ",\"error\":{\"code\":" + std::to_string(code) + + ",\"message\":\"" + escaped(reason) + "\"}}"); +} + +void Bridge::handle(const std::string& message) +{ + post(message); +} + +//!< One request and its whole reply. The error is ready to hand to the client as it is. +bool Bridge::exchange(const std::string& message, HttpClient::Head& head, std::string& body, std::string& error) +{ + HttpClient client; + + if (!client.open(m_options.m_host, m_options.m_port, m_callTimeoutMs, error)) + { + error = "Cannot reach SDRangel's MCP server at " + m_options.m_host + ":" + + std::to_string(m_options.m_port) + ": " + error + ". Start SDRangel, add the MCP Server " + "feature and start it, then try again."; + return false; + } + + if (!client.send("POST", m_options.m_path, headers(false), message, error)) + { + error = "Sending to SDRangel failed: " + error; + return false; + } + + if (!client.readHead(head, error)) + { + error = "No reply from SDRangel: " + error; + return false; + } + + if (!client.readBody(head, body, error)) + { + error = "Truncated reply from SDRangel: " + error; + return false; + } + + return true; +} + +void Bridge::noteSession(const HttpClient::Head& head) +{ + std::string session = head.header("Mcp-Session-Id"); + + if (session.empty() || (session == sessionId())) { + return; + } + + { + std::lock_guard lock(m_stateMutex); + m_sessionId = session; + } + + note(m_options, "session " + session); + startStream(); // no effect once it is running: it picks the new session up on its own +} + +//!< Replays the client's initialize to get a working session again. SDRangel forgets every +//!< session it has issued when it restarts, and answers 404 to the ones it used to know. The +//!< client will not initialize a second time on its own, and the bridge outlives many runs of +//!< SDRangel, so without this the connector is dead until the client restarts it. +bool Bridge::reinitialize(const std::string& staleSession) +{ + std::lock_guard lock(m_reinitMutex); + + if (sessionId() != staleSession) { + return true; // another call rebuilt it while this one waited + } + + std::string initialize; + { + std::lock_guard stateLock(m_stateMutex); + initialize = m_initializeMessage; + m_sessionId.clear(); // or the replay carries the dead id and is refused in its turn + } + + if (initialize.empty()) { + return false; + } + + HttpClient::Head head; + std::string body; + std::string error; + + if (!exchange(initialize, head, body, error)) + { + note(m_options, "could not start a new session: " + error); + return false; + } + + if ((head.m_status < 200) || (head.m_status > 299)) + { + note(m_options, "could not start a new session: HTTP " + std::to_string(head.m_status)); + return false; + } + + noteSession(head); + + std::string version = jsonStringMember(jsonMember(body, "result"), "protocolVersion"); + + if (!version.empty()) + { + std::lock_guard stateLock(m_stateMutex); + m_protocolVersion = version; + } + + // This server does nothing with it, but a client that has initialized sends it, and the + // reply is of no interest either way + HttpClient::Head ignoredHead; + std::string ignoredBody; + std::string ignoredError; + exchange("{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}", ignoredHead, ignoredBody, ignoredError); + + if (sessionId().empty()) { + return false; + } + + replaySubscriptions(); + return true; +} + +//!< A subscription lives in the session it was made in, so a session the server has forgotten +//!< took the client's subscriptions with it. The client is not told: the updates it asked for +//!< carry on arriving as before. The replies are answers to requests the client never made, so +//!< they are not passed on +void Bridge::replaySubscriptions() +{ + std::set uris; + { + std::lock_guard lock(m_stateMutex); + uris = m_subscriptions; + } + + int n = 0; + + for (const std::string& uri : uris) + { + HttpClient::Head head; + std::string body; + std::string error; + std::string message = "{\"jsonrpc\":\"2.0\",\"id\":\"bridge-subscribe-" + std::to_string(++n) + + "\",\"method\":\"resources/subscribe\",\"params\":{\"uri\":\"" + escaped(uri) + "\"}}"; + + if (!exchange(message, head, body, error) || (head.m_status < 200) || (head.m_status > 299)) { + note(m_options, "could not subscribe again to " + uri); + } + } + + if (n > 0) { + note(m_options, "subscribed again to " + std::to_string(n) + " resource(s)"); + } +} + +//!< Answers what the bridge can answer on its own. Returns true when it has replied. +//!< +//!< A stdio server's health is judged by the client from this conversation, and the bridge is +//!< healthy whether or not SDRangel happens to be running: it is a long lived process that +//!< outlives many runs of the application behind it. Letting SDRangel's absence turn into +//!< failed pings or a failed handshake makes the client give up on the bridge for good, since +//!< it will not restart it until the application itself is restarted. +bool Bridge::answerLocally(const std::string& id, const std::string& method, const std::string& message) +{ + if (!m_degraded.load()) { + return false; + } + + // SDRangel was not up for the handshake, so there is nothing to list yet. An empty list + // keeps the client working; it is told to ask again as soon as SDRangel appears + static const char *emptyListings[][2] = { + {"tools/list", "tools"}, + {"resources/list", "resources"}, + {"resources/templates/list", "resourceTemplates"}, + {"prompts/list", "prompts"}, + }; + + for (const auto& listing : emptyListings) + { + if (method == listing[0]) + { + // The tools are shipped with the bridge; resources and prompts are whatever the + // running instance happens to hold, so those stay empty until it is reachable + std::string result = (method == "tools/list") && !m_shippedTools.empty() + ? m_shippedTools + : std::string("{\"") + listing[1] + "\":[]}"; + + writeMessage("{\"jsonrpc\":\"2.0\",\"id\":" + (id.empty() ? "null" : id) + + ",\"result\":" + result + "}"); + return true; + } + } + + (void) message; + return false; +} + +//!< Establishes a session upstream by replaying the client's initialize. Tells the client to +//!< ask for the tools again if the handshake had to be answered without SDRangel. +bool Bridge::openSession() +{ + if (!sessionId().empty()) { + return true; + } + + // One session at a time, however many callers found none: the stream thread and every + // worker with a call in hand arrive here together when SDRangel comes back, and each + // would otherwise open a session of its own, with the stream on one and the calls on + // another. Whoever waited finds the session the first one made + std::lock_guard lock(m_reinitMutex); + + if (!sessionId().empty()) { + return true; + } + + std::string initialize; + { + std::lock_guard lock(m_stateMutex); + initialize = m_initializeMessage; + } + + if (initialize.empty()) { + return false; + } + + HttpClient::Head head; + std::string body; + std::string error; + + if (!exchange(initialize, head, body, error) || (head.m_status < 200) || (head.m_status > 299)) { + return false; + } + + noteSession(head); + + if (sessionId().empty()) { + return false; + } + + std::string version = jsonStringMember(jsonMember(body, "result"), "protocolVersion"); + + if (!version.empty()) + { + std::lock_guard lock(m_stateMutex); + m_protocolVersion = version; + } + + replaySubscriptions(); + + if (m_degraded.exchange(false)) + { + note(m_options, "SDRangel is up, telling the client to list again"); + writeMessage("{\"jsonrpc\":\"2.0\",\"method\":\"notifications/tools/list_changed\"}"); + writeMessage("{\"jsonrpc\":\"2.0\",\"method\":\"notifications/resources/list_changed\"}"); + writeMessage("{\"jsonrpc\":\"2.0\",\"method\":\"notifications/prompts/list_changed\"}"); + } + + return true; +} + +void Bridge::settleHandshake() +{ + { + std::lock_guard lock(m_handshakeMutex); + m_handshakeSettled = true; + } + + m_handshakeReady.notify_all(); +} + +void Bridge::waitForHandshake() +{ + std::unique_lock lock(m_handshakeMutex); + + // Bounded, so that a client which never gets as far as initialize cannot wedge the bridge + m_handshakeReady.wait_for(lock, std::chrono::seconds(20), [this]() { return m_handshakeSettled; }); +} + +void Bridge::post(const std::string& message) +{ + std::string id = jsonMember(message, "id"); + std::string method = jsonStringMember(message, "method"); + + // Whether this process is alive has nothing to do with the handshake or with SDRangel + if (method == "ping") + { + writeMessage("{\"jsonrpc\":\"2.0\",\"id\":" + (id.empty() ? "null" : id) + ",\"result\":{}}"); + return; + } + + if (method == "initialize") + { + std::lock_guard lock(m_stateMutex); + m_initializeMessage = message; + } + else + { + waitForHandshake(); + } + + if (answerLocally(id, method, message)) { + return; + } + + // A call arriving while there is no session, because SDRangel was away: try to build one + // rather than failing on a stale or absent session + if ((method != "initialize") && sessionId().empty()) { + openSession(); + } + + // Releases anything waiting on the handshake however this call ends + struct Settle + { + Bridge *bridge; + bool wanted; + ~Settle() { if (wanted) { bridge->settleHandshake(); } } + } settle { this, method == "initialize" }; + + HttpClient::Head head; + std::string body; + std::string error; + + if (!exchange(message, head, body, error)) + { + // A notification has no id and takes no reply, failed or not: an error against a + // null id is a response to a call the client never made + if (id.empty() && (method != "initialize")) + { + note(m_options, "dropped " + method + ": " + error); + return; + } + + // The handshake must not fail, whatever SDRangel is doing: a client that is told the + // server is broken during initialize never comes back to it + if (method == "initialize") + { + note(m_options, "SDRangel is not up: answering the handshake without it"); + m_degraded.store(true); + startStream(); // watches for SDRangel and lists again once it is there + + std::string requested = jsonStringMember(jsonMember(message, "params"), "protocolVersion"); + + if (requested.empty()) { + requested = "2025-06-18"; + } + + writeMessage("{\"jsonrpc\":\"2.0\",\"id\":" + (id.empty() ? "null" : id) + + ",\"result\":{\"protocolVersion\":\"" + escaped(requested) + "\"" + ",\"capabilities\":{\"tools\":{\"listChanged\":true}" + ",\"resources\":{\"listChanged\":true,\"subscribe\":true}" + ",\"prompts\":{\"listChanged\":true}}" + ",\"serverInfo\":{\"name\":\"SDRangel\",\"version\":\"" + escaped(SDRANGEL_MCP_BRIDGE_VERSION) + "\"}" + // Written in the past tense: the client reads this once, when the + // conversation starts, and never again, so anything phrased as the state + // right now is wrong within seconds of SDRangel being started + ",\"instructions\":\"SDRangel is a software defined radio (SDR) application. This " + "server controls it.\\n\\nSDRangel was not running when this conversation started, so " + "these tools are the ones shipped with it rather than a listing from the running " + "instance. They work as soon as SDRangel is running with the MCP Server feature added " + "and started, with nothing to restart. Until then a call reports that it cannot reach " + "it.\"}}"); + return; + } + + writeError(id, -32001, error); + return; + } + + noteSession(head); + + // A session the server has never heard of: it has been restarted, or the session was + // expired. Rebuild it and send the call again, so that neither the client nor the user + // has to know anything happened + std::string session = sessionId(); + + if ((head.m_status == 404) && !session.empty() && (method != "initialize")) + { + note(m_options, "session refused, starting a new one"); + + if (reinitialize(session)) + { + HttpClient::Head retryHead; + std::string retryBody; + std::string retryError; + + if (exchange(message, retryHead, retryBody, retryError)) + { + head = retryHead; + body = retryBody; + noteSession(head); + } + } + } + + if (head.m_status == 202) { + return; // a notification or a response of our own: nothing comes back + } + + if ((head.m_status < 200) || (head.m_status > 299)) + { + // The server's own errors are {"error": "..."} rather than JSON-RPC + std::string detail = jsonStringMember(body, "error"); + + if (detail.empty()) { + detail = head.m_reason.empty() ? body : head.m_reason; + } + + writeError(id, -32001, "SDRangel returned HTTP " + std::to_string(head.m_status) + ": " + detail); + return; + } + + if (body.empty()) + { + writeError(id, -32001, "SDRangel returned an empty reply"); + return; + } + + if (method == "initialize") + { + std::string version = jsonStringMember(jsonMember(body, "result"), "protocolVersion"); + + if (!version.empty()) + { + std::lock_guard lock(m_stateMutex); + m_protocolVersion = version; + } + } + + // Remembered only once the server has accepted it, so that a refused subscription is not + // replayed on the next session + if (((method == "resources/subscribe") || (method == "resources/unsubscribe")) && jsonMember(body, "error").empty()) + { + std::string uri = jsonStringMember(jsonMember(message, "params"), "uri"); + + if (!uri.empty()) + { + std::lock_guard lock(m_stateMutex); + + if (method == "resources/subscribe") { + m_subscriptions.insert(uri); + } else { + m_subscriptions.erase(uri); + } + } + } + + writeMessage(body); +} + +void Bridge::startStream() +{ + bool expected = false; + + if (!m_streamWanted.compare_exchange_strong(expected, true)) { + return; // already running + } + + m_streamThread = std::thread([this]() { streamLoop(); }); +} + +void Bridge::stopStream() +{ + if (!m_streamWanted.load()) { + return; + } + + { + // Shutting the socket down under the thread is what unblocks its read; the thread + // then closes it itself + std::lock_guard lock(m_streamMutex); + + if (m_streamClient) { + m_streamClient->interrupt(); + } + } + + if (m_streamThread.joinable()) { + m_streamThread.join(); + } +} + +void Bridge::streamLoop() +{ + // The server closes the stream when its lifetime backstop expires, so this reopens it + // for as long as the bridge is running. It is also what notices SDRangel coming back + // after the handshake had to be answered without it. + // + // Retries back off. A client that is sitting idle sends nothing, so nothing else here + // ever notices that something is wrong, and a fixed one second retry turns an + // unreachable or unhappy server into hundreds of log lines a minute, for hours. + int retryMs = m_retryMinMs; + + while (m_running.load()) + { + HttpClient client; + std::string error; + bool opened = false; + + if (sessionId().empty() && !openSession()) + { + // Nothing to stream from yet: wait and look again + for (int waited = 0; m_running.load() && (waited < retryMs); waited += 50) { + std::this_thread::sleep_for(std::chrono::milliseconds(50)); + } + + retryMs = std::min(retryMs * 2, m_retryMaxMs); + continue; + } + + if (!client.open(m_options.m_host, m_options.m_port, m_streamTimeoutMs, error)) + { + note(m_options, "event stream cannot connect: " + error); + } + else + { + { + std::lock_guard lock(m_streamMutex); + m_streamClient = &client; + } + + if (client.send("GET", m_options.m_path, headers(true), std::string(), error)) + { + HttpClient::Head head; + + if (!client.readHead(head, error)) + { + note(m_options, "event stream failed: " + error); + } + else if (head.m_status == 404) + { + // The session has been forgotten, which SDRangel restarting does to all of + // them. Only calls coming from the client recovered this before, so an idle + // client left the stream asking after a session that would never come back + note(m_options, "event stream session refused, starting a new one"); + + std::string stale = sessionId(); + + if (!stale.empty()) { + reinitialize(stale); + } + } + else if (head.m_status != 200) + { + note(m_options, "event stream refused with HTTP " + std::to_string(head.m_status)); + } + else + { + note(m_options, "event stream open"); + opened = true; + retryMs = m_retryMinMs; + SseReader reader; + std::string chunk; + + // The server delimits the stream by closing the connection rather than + // chunking it, but a proxy or a later server might chunk, so follow + // whichever framing the response actually used + while (head.m_chunked ? client.readChunk(chunk, error) : client.readSome(chunk, error)) + { + for (const auto& event : reader.feed(chunk)) + { + if (!event.empty()) { + writeMessage(event); + } + } + } + + if (!error.empty()) { + note(m_options, "event stream ended: " + error); + } + } + } + + { + std::lock_guard lock(m_streamMutex); + m_streamClient = nullptr; + } + } + + // Reopening immediately would spin if the server has gone away + for (int waited = 0; m_running.load() && (waited < retryMs); waited += 50) { + std::this_thread::sleep_for(std::chrono::milliseconds(50)); + } + + // A stream that opened and then ended is the normal lifetime backstop, so that starts + // again promptly; anything else waits longer each time + retryMs = opened ? m_retryMinMs : std::min(retryMs * 2, m_retryMaxMs); + } +} + +void Bridge::endSession() +{ + std::string session = sessionId(); + + if (session.empty()) { + return; + } + + HttpClient client; + std::string error; + + if (!client.open(m_options.m_host, m_options.m_port, m_shutdownTimeoutMs, error)) { + return; // going away anyway, and the server expires idle sessions + } + + if (client.send("DELETE", m_options.m_path, headers(false), std::string(), error)) + { + HttpClient::Head head; + std::string body; + + if (client.readHead(head, error)) { + client.readBody(head, body, error); + } + } + + note(m_options, "session ended"); +} + +int Bridge::run() +{ + std::string error; + + if (!HttpClient::startup(error)) + { + warn(error); + return 1; + } + + note(m_options, std::string("relaying to http://") + m_options.m_host + ":" + + std::to_string(m_options.m_port) + m_options.m_path); + + // A worker, and the flag it raises once it has run to completion. A thread that is still + // working is joinable too, so joinable() cannot tell the loop below which of them it is able + // to reap without blocking + struct Worker + { + std::thread m_thread; + std::shared_ptr> m_finished; + }; + + std::vector workers; + std::string line; + + while (std::getline(std::cin, line)) + { + if (!line.empty() && (line.back() == '\r')) { + line.pop_back(); + } + + if (line.empty()) { + continue; + } + + // A thread each, so that a long call such as record_iq does not hold up the + // messages that follow it, cancellation among them + auto finished = std::make_shared>(false); + workers.push_back(Worker{ + std::thread([this, line, finished]() { + handle(line); + finished->store(true); + }), + finished}); + + // Reap only the ones that have finished. Joining a worker that is still inside a + // record_iq, listen, scan or audio call would stop this loop reading input for as long as + // that call runs, which is exactly when a cancellation needs to get through + for (auto worker = workers.begin(); worker != workers.end(); ) + { + if (worker->m_finished->load()) + { + worker->m_thread.join(); + worker = workers.erase(worker); + } + else + { + ++worker; + } + } + } + + note(m_options, "input closed"); + m_running.store(false); + + for (auto& worker : workers) + { + if (worker.m_thread.joinable()) { + worker.m_thread.join(); + } + } + + stopStream(); + endSession(); + HttpClient::cleanup(); + return 0; +} + +int main(int argc, char *argv[]) +{ +#ifndef _WIN32 + // A write to a socket or pipe whose other end has gone must fail, not end the process + signal(SIGPIPE, SIG_IGN); +#endif + + Options options; + + for (int i = 1; i < argc; i++) + { + std::string argument(argv[i]); + auto value = [&](const char *name) -> std::string + { + if (i + 1 >= argc) + { + warn(std::string(name) + " needs a value"); + std::exit(2); + } + + return std::string(argv[++i]); + }; + + if (argument == "--host") + { + std::string host = value("--host"); + + if (!isPlaceholder(host) && !host.empty()) { + options.m_host = host; + } + } + else if (argument == "--port") + { + std::string port = value("--port"); + + if (!isPlaceholder(port) && !port.empty()) { + options.m_port = std::atoi(port.c_str()); + } + } + else if (argument == "--path") + { + std::string path = value("--path"); + + if (!isPlaceholder(path) && !path.empty()) { + options.m_path = path; + } + } + else if (argument == "--token") + { + std::string token = value("--token"); + + // "" is how a shell or a manifest spells an empty value it could not omit + if (!isPlaceholder(token) && (token != "\"\"")) { + options.m_token = token; + } + } + else if (argument == "--verbose") { + options.m_verbose = true; + } else if ((argument == "--version") || (argument == "-v")) { + std::printf("%s\n", versionText); + return 0; + } else if ((argument == "--help") || (argument == "-h")) { + std::printf("%s\n\n", versionText); + std::printf("Relays the MCP stdio transport to SDRangel's HTTP MCP server.\n\n"); + std::printf(" --host
SDRangel's MCP server address (default 127.0.0.1)\n"); + std::printf(" --port SDRangel's MCP server port (default 8092)\n"); + std::printf(" --path Endpoint path (default /mcp)\n"); + std::printf(" --token Bearer token, if the server has one set\n"); + std::printf(" --verbose Report what it is doing on stderr\n"); + return 0; + } else { + warn("unknown argument " + argument); + return 2; + } + } + + if ((options.m_port <= 0) || (options.m_port > 65535)) + { + warn("port must be between 1 and 65535"); + return 2; + } + +#ifdef _WIN32 + // Without this the C runtime turns \n into \r\n on the way out and eats \r on the way + // in, either of which corrupts the message framing + _setmode(_fileno(stdin), _O_BINARY); + _setmode(_fileno(stdout), _O_BINARY); +#endif + + std::ios::sync_with_stdio(false); + + std::string shippedTools = readFile(toolsFile(argv[0])); + + // Trim, so that a trailing newline cannot land in the middle of a JSON-RPC message + while (!shippedTools.empty() && ((shippedTools.back() == '\n') || (shippedTools.back() == '\r'))) { + shippedTools.pop_back(); + } + + if (options.m_verbose && shippedTools.empty()) { + warn("no tools.json beside the executable: no tools until SDRangel is reachable"); + } + + Bridge bridge(options, shippedTools); + return bridge.run(); +} diff --git a/plugins/feature/mcpserver/bridge/manifest.json.in b/plugins/feature/mcpserver/bridge/manifest.json.in new file mode 100644 index 000000000..7b08e1307 --- /dev/null +++ b/plugins/feature/mcpserver/bridge/manifest.json.in @@ -0,0 +1,69 @@ +{ + "manifest_version": "0.3", + "name": "sdrangel", + "display_name": "SDRangel", + "version": "@MCPBRIDGE_BUNDLE_VERSION@", + "description": "Control SDRangel, the software defined radio application: tune a receiver, add demodulators, scan for activity and read what has been decoded.", + "long_description": "Connects Claude to a running instance of SDRangel through its MCP Server feature. Ask it to listen to a frequency in a given mode, scan a band and report what it heard, add and configure demodulators, read reports from running plugins, record IQ or audio, and load or save presets and configurations.\n\nSDRangel must be running with the MCP Server feature added and started. The feature's window shows the port it is listening on, which must match the port set here.", + "author": { + "name": "Jon Beniston, M7RCE", + "email": "jon@beniston.com", + "url": "https://github.com/f4exb/sdrangel" + }, + "repository": { + "type": "git", + "url": "https://github.com/f4exb/sdrangel" + }, + "homepage": "https://github.com/f4exb/sdrangel", + "documentation": "https://github.com/f4exb/sdrangel/blob/master/plugins/feature/mcpserver/readme.md", + "support": "https://github.com/f4exb/sdrangel/issues", + "icon": "icon.png", + "license": "GPL-3.0-or-later", + "keywords": [ + "sdr", + "software-defined-radio", + "radio", + "rtl-sdr", + "scanner", + "ham-radio" + ], + "server": { + "type": "binary", + "entry_point": "server/sdrangel-mcp-bridge", + "mcp_config": { + "command": "${__dirname}/server/sdrangel-mcp-bridge", + "args": [ + "--port", + "${user_config.port}", + "--token", + "${user_config.token}" + ], + "platform_overrides": { + "win32": { + "command": "${__dirname}/server/sdrangel-mcp-bridge.exe" + } + } + } + }, + "user_config": { + "port": { + "type": "number", + "title": "Port", + "description": "The port SDRangel's MCP Server feature is listening on", + "default": 8092, + "min": 1, + "max": 65535, + "required": false + }, + "token": { + "type": "string", + "title": "Bearer token", + "description": "Only needed if a token has been set in the MCP Server feature. Leave empty otherwise.", + "sensitive": true, + "required": false + } + }, + "compatibility": { + "platforms": ["win32", "darwin", "linux"] + } +} diff --git a/plugins/feature/mcpserver/bridge/readme.md b/plugins/feature/mcpserver/bridge/readme.md new file mode 100644 index 000000000..a8ecb025e --- /dev/null +++ b/plugins/feature/mcpserver/bridge/readme.md @@ -0,0 +1,88 @@ +

SDRangel MCP stdio bridge

+ +

Introduction

+ +Relays the MCP stdio transport to the HTTP transport of the [MCP Server feature](../readme.md), for +clients that can only launch a local server on stdin and stdout. Claude Desktop is the one that +matters: it has no way to connect to an MCP server on `http://127.0.0.1`, since its custom connectors +are fetched from Anthropic's cloud, which cannot reach your machine. + +Without it, those clients need `npx mcp-remote`, which means installing Node.js and hand editing a +JSON configuration file. The bridge is a single executable with no dependencies beyond the C++ +runtime, so it can be shipped inside a Claude Desktop extension bundle (`.mcpb`) and installed with +a double click. + +JSON-RPC messages pass through untouched. This program understands the transport, not the protocol, +so it needs no changes when tools are added or the schema changes. + +

Building

+ +It is not built by default, as only a release that ships an extension bundle needs it: + + cmake -S . -B build -DBUILD_MCP_BRIDGE=ON + cmake --build build --target sdrangel-mcp-bridge + +There is no Qt and no SDRangel library in it, and on Windows it links the static runtime, so the +executable stands alone. + +

Packaging

+ + cmake -S . -B build -DBUILD_MCP_BUNDLE=ON + cmake --build build --target mcpbundle + +produces `bin/sdrangel--.mcpb`, a Claude Desktop extension holding this +executable, the manifest and an icon. A `.mcpb` is a zip with `manifest.json` at its root, so +CMake builds one on its own; the `mcpb` CLI only adds validation and signing, and requiring +npm to build SDRangel would be a poor trade for that. The bundle is not signed, so Claude +warns that the publisher is unverified when it is installed. + +Both options default to off, so a normal build is untouched. With `BUILD_MCP_BUNDLE=ON` the +bundle is part of `all`, so building the Windows installer picks it up with nothing else to +remember: + + cmake --build build --target package + +

Running

+ + sdrangel-mcp-bridge [--host
] [--port ] [--path ] [--token ] [--verbose] + +The defaults match the MCP Server feature's own: `127.0.0.1`, port 8092, path `/mcp` and no token. +`--verbose` reports what it is doing on stderr, which Claude Desktop collects in its logs. + +To use it without an extension bundle, in `%APPDATA%\Claude\claude_desktop_config.json`: + + "mcpServers": { + "sdrangel": { + "command": "C:\\Program Files\\SDRangel\\sdrangel-mcp-bridge.exe", + "args": ["--port", "8092"] + } + } + +

How it works

+ +Each line arriving on stdin is one JSON-RPC message, and is POSTed to the server on its own +connection and its own thread, so that a long call such as `record_iq` does not hold up the messages +that follow it. Replies are written back to stdout, one line each. + +The server's session id, returned as a header on the reply to `initialize`, is sent on every request +after it, and the negotiated protocol version with it. Once there is a session, a GET is held open +for the server to client event stream, which is where `notifications/resources/updated` arrives for +anything subscribed to with `resources/subscribe`. The server closes that stream when its lifetime +backstop expires, so it is reopened for as long as the bridge runs. When stdin closes, the session is +ended with a DELETE. SDRangel forgets every session when it restarts: the bridge then replays the +client's `initialize` to get a new one, and subscribes again to every resource the client had +subscribed to, so the client sees neither the restart nor a gap in its updates. + +Anything that goes wrong with the transport becomes a JSON-RPC error against the id of the request +that provoked it, rather than a dropped message. The one users will meet is SDRangel not running, +which says so in as many words. + +

Testing

+ +The bridge can be driven by hand, which is the quickest way to check it against a running SDRangel: + + echo {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"0"}}} | sdrangel-mcp-bridge --verbose + +Worth covering when changing it: a tool call that takes tens of seconds arriving before a quick one, +a `resources/subscribe` followed by a change in SDRangel, and starting the bridge with nothing +listening on the port. diff --git a/plugins/feature/mcpserver/bridge/ssereader.cpp b/plugins/feature/mcpserver/bridge/ssereader.cpp new file mode 100644 index 000000000..24eb0a602 --- /dev/null +++ b/plugins/feature/mcpserver/bridge/ssereader.cpp @@ -0,0 +1,84 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include "ssereader.h" + +std::vector SseReader::feed(const std::string& bytes) +{ + std::vector events; + m_buffer += bytes; + + for (;;) + { + size_t end = m_buffer.find('\n'); + + if (end == std::string::npos) { + break; + } + + std::string line = m_buffer.substr(0, end); + m_buffer.erase(0, end + 1); + + if (!line.empty() && (line.back() == '\r')) { + line.pop_back(); + } + + takeLine(line, events); + } + + return events; +} + +void SseReader::takeLine(const std::string& line, std::vector& events) +{ + if (line.empty()) + { + // Blank line ends the event. An event with no data at all dispatches nothing + if (m_haveData) { + events.push_back(m_data); + } + + m_data.clear(); + m_haveData = false; + return; + } + + if (line[0] == ':') { + return; // comment, such as the keepalive + } + + size_t colon = line.find(':'); + std::string field = (colon == std::string::npos) ? line : line.substr(0, colon); + + if (field != "data") { + return; // event, id and retry play no part in the MCP transport + } + + std::string value = (colon == std::string::npos) ? std::string() : line.substr(colon + 1); + + if (!value.empty() && (value[0] == ' ')) { + value.erase(0, 1); + } + + if (m_haveData) { + m_data += '\n'; + } + + m_data += value; + m_haveData = true; +} diff --git a/plugins/feature/mcpserver/bridge/ssereader.h b/plugins/feature/mcpserver/bridge/ssereader.h new file mode 100644 index 000000000..f6ee7bb3d --- /dev/null +++ b/plugins/feature/mcpserver/bridge/ssereader.h @@ -0,0 +1,42 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_MCPBRIDGE_SSEREADER_H_ +#define INCLUDE_MCPBRIDGE_SSEREADER_H_ + +#include +#include + +//!< Pulls the data payloads out of a text/event-stream. Bytes arrive in whatever pieces the +//!< socket hands over, so events are only emitted once their terminating blank line is seen. +//!< Comment lines, which the server sends to keep the connection alive, are dropped. +class SseReader +{ +public: + //!< Adds bytes and returns any events they completed + std::vector feed(const std::string& bytes); + +private: + void takeLine(const std::string& line, std::vector& events); + + std::string m_buffer; //!< Bytes not yet forming a whole line + std::string m_data; //!< data: lines of the event being assembled + bool m_haveData = false; +}; + +#endif // INCLUDE_MCPBRIDGE_SSEREADER_H_ diff --git a/plugins/feature/mcpserver/mcpaudiocapture.cpp b/plugins/feature/mcpserver/mcpaudiocapture.cpp new file mode 100644 index 000000000..bd0cff414 --- /dev/null +++ b/plugins/feature/mcpserver/mcpaudiocapture.cpp @@ -0,0 +1,527 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include + +#include "SWGChannelReport.h" +#include "SWGErrorResponse.h" + +#include "maincore.h" +#include "channel/channelapi.h" +#include "device/deviceset.h" +#include "dsp/datafifo.h" +#include "dsp/wavfilerecord.h" +#include "pipes/datapipes.h" +#include "pipes/messagepipes.h" +#include "pipes/objectpipe.h" +#include "util/messagequeue.h" +#include "webapi/webapiadapterinterface.h" + +#include "mcperror.h" +#include "mcpcapture.h" + +namespace { + +QJsonObject reportToJson(SWGSDRangel::SWGChannelReport& report) +{ + QJsonObject *obj = report.asJsonObject(); + QJsonObject result = *obj; + delete obj; + return result; +} + +} // namespace + +MCPAudioCapture::MCPAudioCapture(WebAPIAdapterInterface *adapter, QObject *parent) : + QObject(parent), + m_adapter(adapter), + m_pendingChannel(nullptr), + m_pendingFifo(nullptr), + m_pendingReportQueue(nullptr), + m_capturingChannel(nullptr), + m_captureAborted(0), + m_stopping(0) +{ +} + +// attach() has to run on the main thread, and the HTTP thread has to wait for it. It is not +// a blocking queued call, though: when the server stops, the main thread is inside the +// listener's destructor waiting for this very thread, and a call that could only return once +// the main thread ran its event loop would never return. The wait here is bounded, gives up +// as soon as a stop is under way, and leaves the queued call harmless if it runs late +bool MCPAudioCapture::attachFromMainThread(int deviceSetIndex, int channelIndex) +{ + struct Request + { + QMutex m_mutex; + QWaitCondition m_done; + bool m_finished = false; + bool m_abandoned = false; + bool m_result = false; + }; + + QSharedPointer request(new Request()); + + QMetaObject::invokeMethod(this, [this, request, deviceSetIndex, channelIndex]() + { + QMutexLocker lock(&request->m_mutex); + + if (request->m_abandoned) { + return; // the caller gave up: registering a pipe now would serve nobody + } + + request->m_result = attach(deviceSetIndex, channelIndex); + request->m_finished = true; + request->m_done.wakeAll(); + }, Qt::QueuedConnection); + + QElapsedTimer waited; + waited.start(); + QMutexLocker lock(&request->m_mutex); + + while (!request->m_finished) + { + if (m_stopping.loadAcquire()) + { + request->m_abandoned = true; + throw MCPToolError("The MCP server is stopping, so this call was abandoned"); + } + + if (waited.elapsed() > 10000) + { + request->m_abandoned = true; + throw MCPToolError("The main thread did not respond in 10 seconds; the application may be busy or frozen"); + } + + request->m_done.wait(&request->m_mutex, 100); + } + + return request->m_result; +} + +// Registers the demod data pipe and the report message pipe on the channel. Runs on the main +// thread so the pipe objects are created with the same thread affinity as everything else. +bool MCPAudioCapture::attach(int deviceSetIndex, int channelIndex) +{ + m_pendingChannel = nullptr; + m_pendingFifo = nullptr; + m_pendingReportQueue = nullptr; + m_attachError.clear(); + + MainCore *mainCore = MainCore::instance(); + std::vector& deviceSets = mainCore->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size())) + { + m_attachError = QString("There is no device set with index %1").arg(deviceSetIndex); + return false; + } + + ChannelAPI *channel = deviceSets[deviceSetIndex]->getChannelAt(channelIndex); + + if (!channel) + { + m_attachError = QString("There is no channel with index %1 in device set %2").arg(channelIndex).arg(deviceSetIndex); + return false; + } + + Attachment attachment; + { + QMutexLocker lock(&m_attachMutex); + attachment = m_attachments.value(channel); + } + + if (!attachment.m_fifo) + { + ObjectPipe *dataPipe = mainCore->getDataPipes().registerProducerToConsumer(channel, this, "demod"); + attachment.m_fifo = dataPipe ? qobject_cast(dataPipe->m_element) : nullptr; + + if (!attachment.m_fifo) + { + m_attachError = "Could not register the demod data pipe on the channel"; + return false; + } + + connect(dataPipe, &ObjectPipe::toBeDeleted, this, &MCPAudioCapture::handlePipeToBeDeleted); + attachment.m_fifo->setSize(96000 * 4); + + ObjectPipe *messagePipe = mainCore->getMessagePipes().registerProducerToConsumer(channel, this, "reportdemod"); + attachment.m_reportQueue = messagePipe ? qobject_cast(messagePipe->m_element) : nullptr; + + QMutexLocker lock(&m_attachMutex); + m_attachments.insert(channel, attachment); + } + + // Discard whatever the channel wrote between captures + attachment.m_fifo->reset(); + + m_pendingChannel = channel; + m_pendingFifo = attachment.m_fifo; + m_pendingReportQueue = attachment.m_reportQueue; + + { + QMutexLocker lock(&m_attachMutex); + m_capturingChannel = channel; + m_captureAborted.storeRelease(0); + } + + // Ask the channel to report its audio sample rate on the pipe + channel->getInputMessageQueue()->push(MainCore::MsgChannelDemodQuery::create()); + return true; +} + +// The channel that produces the samples has gone away, so drop the pipes registered on it. +// Registrations are otherwise kept for the life of this object. +void MCPAudioCapture::handlePipeToBeDeleted(int reason, QObject *object) +{ + if (reason != 0) { // 0: producer (the channel) is being deleted + return; + } + + QMutexLocker lock(&m_attachMutex); + + if (m_attachments.remove(object) > 0) { + qDebug("MCPAudioCapture::handlePipeToBeDeleted: channel %p removed", object); + } + + // A capture in progress holds a raw pointer to this channel's FIFO, which the pipe + // registry is about to destroy, so tell it to stop reading + if (m_capturingChannel == object) + { + m_captureAborted.storeRelease(1); + m_capturingChannel = nullptr; + + // Wait for any read already in progress to finish. This runs before the pipe registry + // deletes the FIFO, so once it returns the capture will never touch it again. + QMutexLocker fifoLock(&m_fifoMutex); + } +} + +// The channel answers MsgChannelDemodQuery with MsgChannelDemodReport carrying the audio sample rate +int MCPAudioCapture::reportedSampleRate(MessageQueue *queue, int timeoutMs) +{ + if (!queue) { + return 0; + } + + int sampleRate = 0; + QElapsedTimer timer; + timer.start(); + + while ((timer.elapsed() < timeoutMs) && !m_stopping.loadAcquire()) + { + { + // The queue belongs to the report pipe and is freed with it when the channel goes, + // so read it under the same lock and abort flag as the sample FIFO + QMutexLocker fifoLock(&m_fifoMutex); + + if (m_captureAborted.loadAcquire()) { + return 0; + } + + Message *message; + + while ((message = queue->pop()) != nullptr) + { + if (MainCore::MsgChannelDemodReport::match(*message)) { + sampleRate = ((MainCore::MsgChannelDemodReport *) message)->getSampleRate(); + } + + delete message; + } + } + + if (sampleRate > 0) { + return sampleRate; + } + + QThread::msleep(20); + } + + return 0; +} + +// Fallback for channels that do not answer the query: most demodulator reports carry the rate +int MCPAudioCapture::sampleRateFromReport(int deviceSetIndex, int channelIndex) +{ + SWGSDRangel::SWGChannelReport response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + + if (m_adapter->devicesetChannelReportGet(deviceSetIndex, channelIndex, response, error) / 100 != 2) { + return 0; + } + + QJsonObject json = reportToJson(response); + + for (const QString& key : json.keys()) + { + if (!key.endsWith("Report") || !json[key].isObject()) { + continue; + } + + QJsonObject sub = json[key].toObject(); + + for (const QString rateKey : {"audioSampleRate", "channelSampleRate", "sampleRate"}) + { + if (sub.contains(rateKey) && (sub[rateKey].toInt(0) > 0)) { + return sub[rateKey].toInt(); + } + } + } + + return 0; +} + +QJsonObject MCPAudioCapture::capture(int deviceSetIndex, int channelIndex, double seconds, const QString& path, bool inlineAudio) +{ + QMutexLocker captureLock(&m_captureMutex); + + if (!attachFromMainThread(deviceSetIndex, channelIndex)) { + throw MCPToolError(m_attachError); + } + + DataFifo *fifo = m_pendingFifo; + MessageQueue *reportQueue = m_pendingReportQueue; + QObject *channel = m_pendingChannel; + QByteArray samples; + int nbBytesPerSample = 2; + // The FIFO has been filling since attach(), so the requested duration runs from here, + // including whatever the wait for the sample rate takes: a channel that never answers the + // query (broadcast FM) would otherwise deliver a second more than was asked for + QElapsedTimer timer; + timer.start(); + int sampleRate = reportedSampleRate(reportQueue, 1000); + + if (sampleRate <= 0) { + sampleRate = sampleRateFromReport(deviceSetIndex, channelIndex); + } + + bool stopping = false; + + while (timer.elapsed() < (qint64) (seconds * 1000.0)) + { + bool idle = false; + { + // The abort flag is tested under the same lock the teardown handler takes, so the + // FIFO cannot be freed between the test and the reads below + QMutexLocker fifoLock(&m_fifoMutex); + + if (m_captureAborted.loadAcquire()) { + break; + } + + if (m_stopping.loadAcquire()) + { + stopping = true; + break; + } + + unsigned int fill = fifo->fill(); + + if (fill == 0) + { + idle = true; + } + else + { + QByteArray::iterator part1begin, part1end, part2begin, part2end; + DataFifo::DataType dataType; + unsigned int count = fifo->readBegin(fill, &part1begin, &part1end, &part2begin, &part2end, dataType); + nbBytesPerSample = (dataType == DataFifo::DataTypeCI16) ? 4 : 2; + + if (part1begin != part1end) { + samples.append(&(*part1begin), (int) (part1end - part1begin)); + } + if (part2begin != part2end) { + samples.append(&(*part2begin), (int) (part2end - part2begin)); + } + + fifo->readCommit(count); + } + } + + if (idle) { + QThread::msleep(10); + } + } + + bool aborted = m_captureAborted.loadAcquire() != 0; + { + QMutexLocker lock(&m_attachMutex); + + if (m_capturingChannel == channel) { + m_capturingChannel = nullptr; + } + } + + if (aborted) + { + throw MCPToolError(QString("Channel %1:%2 was removed while its audio was being captured, so the recording was abandoned") + .arg(deviceSetIndex).arg(channelIndex)); + } + + if (stopping) { + throw MCPToolError("The MCP server is stopping, so the recording was abandoned"); + } + + if (samples.isEmpty()) + { + throw MCPToolError(QString("No audio was produced by channel %1:%2 in %3 seconds. Only demodulators that feed the Demod " + "Analyzer provide audio (NFMDemod, AMDemod, SSBDemod, WFMDemod, BFMDemod, DSDDemod, M17Demod and similar). " + "Check also that the device is running.").arg(deviceSetIndex).arg(channelIndex).arg(seconds)); + } + + if (sampleRate <= 0) { + throw MCPToolError("The channel did not report its audio sample rate, so the audio cannot be written"); + } + + bool mono = nbBytesPerSample == 2; + int nbSamples = samples.size() / nbBytesPerSample; + const qint16 *data = (const qint16 *) samples.constData(); + int nbShorts = samples.size() / 2; + int peak = 0; + + // Peak level lets the caller tell silence (a closed squelch) from a real recording + for (int i = 0; i < nbShorts; i++) + { + int value = qAbs((int) data[i]); + + if (value > peak) { + peak = value; + } + } + + QString fileBase = path; + + if (fileBase.endsWith(".wav", Qt::CaseInsensitive)) { + fileBase.chop(4); + } + + WavFileRecord writer(fileBase); + writer.setFileBaseIsFileName(true); + writer.setSampleRate(sampleRate); + writer.setMono(mono); + + if (!writer.startRecording()) { + throw MCPToolError(QString("Could not write the audio file %1.wav").arg(fileBase)); + } + + if (mono) + { + writer.writeMono((qint16 *) samples.data(), nbSamples); + } + else + { + for (int i = 0; i < nbSamples; i++) { + writer.write(data[2 * i], data[2 * i + 1]); + } + } + + writer.stopRecording(); + + QString fileName = fileBase + ".wav"; + QFileInfo info(fileName); + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + result["path"] = info.absoluteFilePath(); + result["sizeBytes"] = (double) info.size(); + result["sampleRate"] = sampleRate; + result["channels"] = mono ? 1 : 2; + result["samples"] = nbSamples; + result["seconds"] = nbSamples / (double) sampleRate; + result["peakLevel"] = peak / 32768.0; + + if (peak < 32) { + result["warning"] = "The audio is silent. The squelch may be closed, the channel may be muted, or there may be no signal."; + } + + if (inlineAudio) + { + // A smaller copy for the reply: mono, and decimated by an integer factor to at most + // the inline rate with a boxcar average, which is plenty for judging speech and + // keeps 20 s under what a client accepts. The file keeps the full rate and channels + const int factor = qMax(1, sampleRate / MCPCapture::m_inlineSampleRate); + const int inlineRate = sampleRate / factor; + const int inlineSamples = nbSamples / factor; + QByteArray reduced; + reduced.resize(inlineSamples * 2); + qint16 *out = (qint16 *) reduced.data(); + + for (int i = 0; i < inlineSamples; i++) + { + int sum = 0; + + for (int k = 0; k < factor; k++) + { + const int n = i * factor + k; + sum += mono ? data[n] : (data[2 * n] + data[2 * n + 1]) / 2; + } + + out[i] = (qint16) (sum / factor); + } + + const QString inlineBase = fileBase + ".inline"; + WavFileRecord inlineWriter(inlineBase); + inlineWriter.setFileBaseIsFileName(true); + inlineWriter.setSampleRate(inlineRate); + inlineWriter.setMono(true); + QByteArray wav; + + if (inlineWriter.startRecording()) + { + inlineWriter.writeMono(out, inlineSamples); + inlineWriter.stopRecording(); + QFile file(inlineBase + ".wav"); + + if (file.open(QIODevice::ReadOnly)) { + wav = file.readAll(); + } + + file.remove(); + } + + const QByteArray encoded = wav.toBase64(); + + if (wav.isEmpty()) + { + result["note"] = "The inline copy of the audio could not be made; the file is there"; + } + else if (encoded.size() > MCPCapture::m_maxInlineBytes) + { + result["note"] = QString("The audio is not inline: even at %1 Hz mono it would be %2 kB encoded, more than a client accepts in one " + "reply. Ask for a shorter clip, or read the file").arg(inlineRate).arg(encoded.size() / 1000); + } + else + { + result["audioBase64"] = QString(encoded); + result["audioMimeType"] = "audio/wav"; + result["inlineSampleRate"] = inlineRate; + result["inlineChannels"] = 1; + } + } + + return result; +} diff --git a/plugins/feature/mcpserver/mcpcapture.cpp b/plugins/feature/mcpserver/mcpcapture.cpp new file mode 100644 index 000000000..32c25d54a --- /dev/null +++ b/plugins/feature/mcpserver/mcpcapture.cpp @@ -0,0 +1,660 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "SWGChannelSettings.h" +#include "SWGChannelReport.h" +#include "SWGChannelActions.h" +#include "SWGSuccessResponse.h" +#include "SWGErrorResponse.h" + +#include "webapi/webapiadapterinterface.h" +#include "channel/channelapi.h" +#include "device/deviceset.h" +#include "maincore.h" + +#include "mcperror.h" +#include "mcpcapture.h" + +#ifdef Q_OS_WIN +#include +#endif + +namespace { + +// Where the file system really puts an existing path, with every symbolic link and junction on +// the way resolved. Qt's canonicalFilePath does not see through a junction on Windows, which is +// the easiest of them to make, so the final path is asked of the system there +QString realPath(const QString& path) +{ +#ifdef Q_OS_WIN + HANDLE handle = CreateFileW(reinterpret_cast(QDir::toNativeSeparators(path).utf16()), 0, + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr); + + if (handle == INVALID_HANDLE_VALUE) { + return QString(); + } + + wchar_t buffer[32768]; + DWORD length = GetFinalPathNameByHandleW(handle, buffer, sizeof(buffer) / sizeof(buffer[0]), FILE_NAME_NORMALIZED); + CloseHandle(handle); + + if ((length == 0) || (length >= sizeof(buffer) / sizeof(buffer[0]))) { + return QString(); + } + + QString result = QString::fromWCharArray(buffer, length); + + if (result.startsWith("\\\\?\\UNC\\")) { + result = "\\\\" + result.mid(8); + } else if (result.startsWith("\\\\?\\")) { + result = result.mid(4); + } + + return QDir::cleanPath(QDir::fromNativeSeparators(result)); +#else + return QFileInfo(path).canonicalFilePath(); +#endif +} + +QJsonObject toJson(SWGSDRangel::SWGObject& object) +{ + QJsonObject *obj = object.asJsonObject(); + QJsonObject result = *obj; + delete obj; + return result; +} + +void check(int httpRC, SWGSDRangel::SWGErrorResponse& error, const QString& what) +{ + if (httpRC / 100 != 2) + { + QString message = error.getMessage() ? *error.getMessage() : QString(); + throw MCPToolError(QString("%1 failed (HTTP %2)%3").arg(what).arg(httpRC).arg(message.isEmpty() ? "" : ": " + message)); + } +} + +bool waitFor(const std::function& condition, int timeoutMs) +{ + QElapsedTimer timer; + timer.start(); + + while (!condition()) + { + if (timer.elapsed() > timeoutMs) { + return false; + } + + QThread::msleep(20); + } + + return true; +} + +// Settings key holding the type specific settings, e.g. "fileSinkSettings" +QString settingsKeyOf(const QJsonObject& json) +{ + for (const QString& key : json.keys()) + { + if (key.endsWith("Settings") && json[key].isObject()) { + return key; + } + } + + return QString(); +} + +} // namespace + +MCPCapture::MCPCapture(WebAPIAdapterInterface *adapter) : + m_adapter(adapter), + m_stopping(0), + m_audio(adapter) +{ +} + +void MCPCapture::setStopping(bool stopping) +{ + m_stopping.storeRelease(stopping ? 1 : 0); + m_audio.setStopping(stopping); +} + +QJsonObject MCPCapture::captureAudio(int deviceSetIndex, int channelIndex, double seconds, + const QString& fileName, bool inlineAudio) +{ + QString path = resolvePath(fileName, "audio"); + return m_audio.capture(deviceSetIndex, channelIndex, seconds, path, inlineAudio); +} + +void MCPCapture::setCaptureDir(const QString& dir) +{ + QMutexLocker locker(&m_mutex); + m_captureDir = dir; +} + +QString MCPCapture::getCaptureDir() const +{ + QMutexLocker locker(&m_mutex); + return m_captureDir; +} + +// Turns a caller supplied name into an absolute path inside the capture directory. +// Relative sub-directories are allowed; anything that escapes the capture directory is refused. +QString MCPCapture::resolvePath(const QString& nameIn, const QString& defaultPrefix) +{ + QString captureDir = getCaptureDir(); + + if (captureDir.trimmed().isEmpty()) { + throw MCPToolError("No capture directory is configured for the MCP Server feature"); + } + + QDir base(captureDir); + + if (!base.exists() && !QDir().mkpath(base.absolutePath())) { + throw MCPToolError(QString("Cannot create the capture directory %1").arg(base.absolutePath())); + } + + QString name = nameIn.trimmed(); + + if (name.isEmpty()) { + name = QString("%1_%2").arg(defaultPrefix).arg(QDateTime::currentDateTimeUtc().toString("yyyyMMdd_HHmmss")); + } + + name.replace('\\', '/'); + QFileInfo info(name); + + if (info.isAbsolute()) { + throw MCPToolError(QString("File name must be relative to the capture directory %1").arg(base.absolutePath())); + } + + QString baseAbs = QDir::cleanPath(base.absolutePath()); + QString full = QDir::cleanPath(base.absoluteFilePath(name)); + + // A root directory already ends with the separator. A name that resolves to the capture + // directory itself, "." or "sub/..", is refused as well: the file would be + // "..sdriq", which lies beside the directory, not in it + const QString basePrefix = baseAbs.endsWith('/') ? baseAbs : baseAbs + "/"; + + if ((full.size() <= basePrefix.size()) || !full.startsWith(basePrefix)) { + throw MCPToolError(QString("File name must be a file inside the capture directory %1").arg(baseAbs)); + } + + // The text can stay inside while the file does not: a symbolic link or junction under the + // capture directory leads elsewhere. Judge by where the nearest existing ancestor really + // is, since the directories below it are about to be created as ordinary ones + QString baseReal = realPath(baseAbs); + QString ancestor = QFileInfo(full).path(); + + while (!QFileInfo::exists(ancestor)) + { + QString up = QFileInfo(ancestor).path(); + + if (up == ancestor) { + break; + } + + ancestor = up; + } + + QString ancestorReal = realPath(ancestor); + const QString realPrefix = baseReal.endsWith('/') ? baseReal : baseReal + "/"; + + if (baseReal.isEmpty() || ancestorReal.isEmpty() + || ((ancestorReal != baseReal) && !ancestorReal.startsWith(realPrefix))) + { + throw MCPToolError(QString("File name must stay inside the capture directory %1; %2 leads outside it") + .arg(baseAbs).arg(ancestor)); + } + + // SDRangel appends its own timestamp and extension, so strip a supplied one + if (full.endsWith(".sdriq", Qt::CaseInsensitive)) { + full.chop(QString(".sdriq").size()); + } + + QDir parent = QFileInfo(full).dir(); + + if (!parent.exists() && !QDir().mkpath(parent.absolutePath())) { + throw MCPToolError(QString("Cannot create the directory %1").arg(parent.absolutePath())); + } + + return full; +} + +QJsonObject MCPCapture::channelSettings(int deviceSetIndex, int channelIndex) +{ + SWGSDRangel::SWGChannelSettings response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelSettingsGet(deviceSetIndex, channelIndex, response, error), error, + QString("Get settings of channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); + return toJson(response); +} + +QString MCPCapture::channelType(const QJsonObject& settings) +{ + return settings["channelType"].toString(); +} + +void MCPCapture::patchChannel(int deviceSetIndex, int channelIndex, const QString& type, const QJsonObject& partial) +{ + QJsonObject json = channelSettings(deviceSetIndex, channelIndex); + QString key = settingsKeyOf(json); + + if (key.isEmpty()) { + throw MCPToolError(QString("Cannot find the settings of channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); + } + + QJsonObject sub = json[key].toObject(); + QStringList keys; + + for (const QString& k : partial.keys()) + { + sub[k] = partial[k]; + keys.append(k); + } + + json[key] = sub; + json["channelType"] = type; + + SWGSDRangel::SWGChannelSettings request; + request.fromJsonObject(json); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelSettingsPutPatch(deviceSetIndex, channelIndex, false, keys, request, error), error, + QString("Set settings of channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); +} + +void MCPCapture::recordAction(int deviceSetIndex, int channelIndex, const QString& type, bool record) +{ + QJsonObject actions; + actions["record"] = record ? 1 : 0; + QJsonObject json; + json["channelType"] = type; + json["direction"] = 0; + json[type + "Actions"] = actions; + + SWGSDRangel::SWGChannelActions query; + query.fromJsonObject(json); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelActionsPost(deviceSetIndex, channelIndex, QStringList{"record"}, query, response, error), error, + record ? "Start recording" : "Stop recording"); +} + +QJsonObject MCPCapture::channelReport(int deviceSetIndex, int channelIndex) +{ + SWGSDRangel::SWGChannelReport response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelReportGet(deviceSetIndex, channelIndex, response, error), error, + QString("Get report of channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); + return toJson(response); +} + +uint64_t MCPCapture::channelUidAt(int deviceSetIndex, int channelIndex) +{ + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size())) { + return 0; + } + + const ChannelAPI *channel = deviceSets[deviceSetIndex]->getChannelAt(channelIndex); + return channel ? channel->getUID() : 0; +} + +bool MCPCapture::locateChannel(uint64_t channelUid, int& deviceSetIndex, int& channelIndex) +{ + if (channelUid == 0) { + return false; + } + + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + for (int d = 0; d < (int) deviceSets.size(); d++) + { + for (int c = 0; c < deviceSets[d]->getNumberOfChannels(); c++) + { + const ChannelAPI *channel = deviceSets[d]->getChannelAt(c); + + if (channel && (channel->getUID() == channelUid)) + { + deviceSetIndex = d; + channelIndex = c; + return true; + } + } + } + + return false; +} + +// A channel deleted without stopping its recording would otherwise leave an entry behind for +// as long as the server runs +void MCPCapture::pruneRecordings() +{ + QMutexLocker locker(&m_mutex); + + for (auto it = m_recordings.begin(); it != m_recordings.end(); ) + { + int deviceSetIndex = -1; + int channelIndex = -1; + + if (locateChannel(it.key(), deviceSetIndex, channelIndex)) { + ++it; + } else { + it = m_recordings.erase(it); + } + } +} + +void MCPCapture::forgetRecording(uint64_t channelUid) +{ + QMutexLocker locker(&m_mutex); + m_recordings.remove(channelUid); +} + +QJsonObject MCPCapture::startIQRecording(int deviceSetIndex, int channelIndex, const QString& fileName, + int frequencyOffset, int log2Decim) +{ + const uint64_t channel = channelUidAt(deviceSetIndex, channelIndex); + + if (channel == 0) { + throw MCPToolError(QString("There is no channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); + } + + // Another request can delete a channel between any two steps here, renumbering the ones + // above it, so the index is resolved from the channel's UID before each one rather than + // trusted from the call + auto locate = [&]() + { + if (!locateChannel(channel, deviceSetIndex, channelIndex)) { + throw MCPToolError("The channel to record with no longer exists: another request removed it, or its device set"); + } + }; + + pruneRecordings(); + locate(); + QJsonObject settings = channelSettings(deviceSetIndex, channelIndex); + QString type = channelType(settings); + + if ((type != "FileSink") && (type != "SigMFFileSink")) { + throw MCPToolError(QString("Channel %1:%2 is a %3, not a FileSink").arg(deviceSetIndex).arg(channelIndex).arg(type)); + } + + QString fileBase = resolvePath(fileName, "iq"); + QJsonObject partial; + partial["fileRecordName"] = fileBase + ".sdriq"; + partial["inputFrequencyOffset"] = frequencyOffset; + + if (log2Decim >= 0) { + partial["log2Decim"] = log2Decim; + } + + locate(); + patchChannel(deviceSetIndex, channelIndex, type, partial); + + // The record action goes straight to the channel's DSP thread while the settings go through + // the channel itself first, so the action can overtake them and start recording to the + // file name the sink had before: for a fresh FileSink an empty one, which gives a stray + // file in the working directory. Wait until the channel has taken the settings, after + // which the DSP thread sees them before the action. Recording is only ever started once + // they have landed: a sink still on its old file name is not one to start + QElapsedTimer settled; + settled.start(); + bool landed = false; + + while (!landed) + { + if (m_stopping.loadAcquire()) { + throw MCPToolError("The MCP server is stopping, so the recording was not started"); + } + + if (settled.elapsed() >= 3000) { + throw MCPToolError("The FileSink did not take its file name within 3 seconds, so the recording was not started"); + } + + locate(); + QJsonObject now = channelSettings(deviceSetIndex, channelIndex); + QString key = settingsKeyOf(now); + landed = !key.isEmpty() && (now[key].toObject()["fileRecordName"].toString() == partial["fileRecordName"].toString()); + + if (!landed) { + QThread::msleep(50); + } + } + + Recording recording; + recording.m_fileBase = fileBase; + recording.m_started = QDateTime::currentDateTime(); + recording.m_valid = true; + + { + QMutexLocker locker(&m_mutex); + m_recordings[channel] = recording; + } + + locate(); + + try + { + recordAction(deviceSetIndex, channelIndex, type, true); + } + catch (const MCPToolError&) + { + forgetRecording(channel); // nothing is recording, so there is nothing to remember + throw; + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + result["channelType"] = type; + result["fileBase"] = fileBase; + result["note"] = "SDRangel appends a timestamp and the .sdriq extension to the file name. " + "Call stop_iq_recording to stop and list the files written."; + return result; +} + +QJsonObject MCPCapture::stopIQRecording(int deviceSetIndex, int channelIndex) +{ + const uint64_t channel = channelUidAt(deviceSetIndex, channelIndex); + + if (channel == 0) { + throw MCPToolError(QString("There is no channel %1:%2").arg(deviceSetIndex).arg(channelIndex)); + } + + return stopIQRecording(channel); +} + +QJsonObject MCPCapture::stopIQRecording(uint64_t channel) +{ + int deviceSetIndex = -1; + int channelIndex = -1; + + // Another request can delete a channel between any two steps here, renumbering the ones + // above it, so the index is resolved from the channel itself before each one + auto locate = [&]() + { + if (!locateChannel(channel, deviceSetIndex, channelIndex)) { + throw MCPToolError("The channel that was recording no longer exists"); + } + }; + + locate(); + QJsonObject settings = channelSettings(deviceSetIndex, channelIndex); + QString type = channelType(settings); + + if ((type != "FileSink") && (type != "SigMFFileSink")) { + throw MCPToolError(QString("Channel %1:%2 is a %3, not a FileSink").arg(deviceSetIndex).arg(channelIndex).arg(type)); + } + + locate(); + recordAction(deviceSetIndex, channelIndex, type, false); + + Recording recording; + { + QMutexLocker locker(&m_mutex); + recording = m_recordings.take(channel); + } + + // Recording stops asynchronously in the baseband sink. Wait for it to close the file, + // otherwise the sizes reported below are those of a file still being written. + QJsonObject report; + bool stopped = waitFor([&]() + { + if (m_stopping.loadAcquire()) { + return true; // the server is stopping: report what there is rather than wait + } + + locate(); + report = channelReport(deviceSetIndex, channelIndex); + + for (const QString& key : report.keys()) + { + if (key.endsWith("Report") && report[key].isObject()) { + return report[key].toObject()["recording"].toInt(0) == 0; + } + } + + return true; + }, 5000); + + QString reportKey; + + for (const QString& key : report.keys()) + { + if (key.endsWith("Report") && report[key].isObject()) { + reportKey = key; + } + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + + if (!reportKey.isEmpty()) + { + QJsonObject sub = report[reportKey].toObject(); + result["recordTimeMs"] = sub["recordTimeMs"]; + result["recordSizeBytes"] = sub["recordSize"]; + result["captures"] = sub["recordCaptures"]; + result["sinkSampleRate"] = sub["sinkSampleRate"]; + } + + if (!stopped) { + result["warning"] = "The channel still reports that it is recording; the file sizes below may be incomplete"; + } + + // The channel may have been pointed at a different file since the recording started. Only + // list files when the channel is still writing to the file this entry recorded. + QString settingsKey = settingsKeyOf(settings); + QString currentFile = settingsKey.isEmpty() ? QString() : settings[settingsKey].toObject()["fileRecordName"].toString(); + bool matches = recording.m_valid && !currentFile.isEmpty() + && (QFileInfo(currentFile).absoluteFilePath() == QFileInfo(recording.m_fileBase + ".sdriq").absoluteFilePath()); + + if (matches) { + result["files"] = filesFor(recording)["files"]; + } else if (recording.m_valid) { + result["warning"] = QString("This channel is now recording to %1 rather than the file this recording started, " + "so the files written cannot be listed.").arg(currentFile); + } else { + result["warning"] = "This recording was not started through start_iq_recording, so the files written cannot be listed"; + } + + return result; +} + +// SDRangel names each capture "..sdriq", so list what appeared since the +// recording started +QJsonObject MCPCapture::filesFor(const Recording& recording) +{ + QFileInfo baseInfo(recording.m_fileBase); + QDir dir = baseInfo.dir(); + QJsonArray files; + + // Matched by prefix rather than as a wildcard pattern: a name holding [ ] ? or * would + // otherwise match other files, or none + const QString prefix = baseInfo.fileName() + "."; + + for (const QFileInfo& info : dir.entryInfoList(QDir::Files, QDir::Name)) + { + if (!info.fileName().startsWith(prefix)) { + continue; + } + + // Allow a second of slack: the file is created just after the action is sent + if (info.lastModified().addSecs(1) < recording.m_started) { + continue; + } + + QJsonObject file; + file["path"] = info.absoluteFilePath(); + file["sizeBytes"] = (double) info.size(); + file["modified"] = info.lastModified().toString(Qt::ISODate); + files.append(file); + } + + QJsonObject result; + result["files"] = files; + return result; +} + +QJsonObject MCPCapture::status() +{ + pruneRecordings(); + QMutexLocker locker(&m_mutex); + QJsonObject result; + result["captureDir"] = m_captureDir; + result["captureDirExists"] = QDir(m_captureDir).exists(); + result["maxBlockingSeconds"] = m_maxBlockingSeconds; + QJsonArray active; + + for (auto it = m_recordings.begin(); it != m_recordings.end(); ++it) + { + QJsonObject recording; + int deviceSetIndex = -1; + int channelIndex = -1; + + // The index is where the channel is now, which is not necessarily where it was started + if (locateChannel(it.key(), deviceSetIndex, channelIndex)) + { + recording["deviceSetIndex"] = deviceSetIndex; + recording["channelIndex"] = channelIndex; + recording["channel"] = QString("%1:%2").arg(deviceSetIndex).arg(channelIndex); + } + + recording["fileBase"] = it->m_fileBase; + recording["started"] = it->m_started.toString(Qt::ISODate); + active.append(recording); + } + + result["activeRecordings"] = active; + return result; +} diff --git a/plugins/feature/mcpserver/mcpcapture.h b/plugins/feature/mcpserver/mcpcapture.h new file mode 100644 index 000000000..2a1d2b86a --- /dev/null +++ b/plugins/feature/mcpserver/mcpcapture.h @@ -0,0 +1,185 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPCAPTURE_H_ +#define INCLUDE_FEATURE_MCPCAPTURE_H_ + +#include +#include +#include +#include +#include +#include +#include + +#include + +class WebAPIAdapterInterface; +class DataFifo; +class MessageQueue; +class ObjectPipe; + +// Captures demodulated audio from a demodulator through its "demod" data pipe, the same +// pipe the Demod Analyzer feature uses. Only some channel types provide it. +// +// The pipes are registered and removed on the main thread; the samples are read from the +// calling (HTTP) thread, which is safe because the FIFO is mutex protected. +class MCPAudioCapture : public QObject +{ + Q_OBJECT +public: + explicit MCPAudioCapture(WebAPIAdapterInterface *adapter, QObject *parent = nullptr); + + //!< Blocks for the requested duration. Called from an HTTP thread. + QJsonObject capture(int deviceSetIndex, int channelIndex, double seconds, const QString& path, bool inlineAudio); + + //!< The server is stopping: a capture in progress ends now, and one waiting for the main + //!< thread to attach stops waiting, since that thread is waiting for this one + void setStopping(bool stopping) { m_stopping.storeRelease(stopping ? 1 : 0); } + +private slots: + void handlePipeToBeDeleted(int reason, QObject *object); + +private: + struct Attachment + { + DataFifo *m_fifo; + MessageQueue *m_reportQueue; + + Attachment() : m_fifo(nullptr), m_reportQueue(nullptr) {} + }; + + WebAPIAdapterInterface *m_adapter; + QMutex m_captureMutex; //!< One capture at a time + QMutex m_attachMutex; //!< Guards the attachment map + + // Pipes are registered once per channel and kept until the channel is destroyed. Repeatedly + // registering and unregistering is not safe: the pipe registry leaves a stale entry behind + // when its garbage collector deletes a pipe, which the next unregister would dereference. + QMap m_attachments; + + QObject *m_pendingChannel; //!< Results of attach(), which runs on the main thread + DataFifo *m_pendingFifo; + MessageQueue *m_pendingReportQueue; + QString m_attachError; + QAtomicInt m_stopping; + + // Set when the channel being captured from goes away, so the capture loop stops touching + // the FIFO before the pipe registry destroys it + QObject *m_capturingChannel; + QAtomicInt m_captureAborted; + + // Held while the capture is inside either pipe element, the sample FIFO or the report + // queue. The pipe teardown handler takes it after setting the abort flag, so it cannot + // return (and the registry cannot free either element) while a read is in progress. + QMutex m_fifoMutex; + + bool attach(int deviceSetIndex, int channelIndex); + //!< Runs attach() on the main thread and waits for it, unless the server stops first + bool attachFromMainThread(int deviceSetIndex, int channelIndex); + + int reportedSampleRate(MessageQueue *queue, int timeoutMs); + int sampleRateFromReport(int deviceSetIndex, int channelIndex); +}; + +// Recording of baseband IQ to files through a File Sink channel. +// +// All files are written under a capture directory; paths that would escape it are refused, +// so an agent cannot write anywhere on the machine. The channel is created and deleted by +// MCPTools, which owns the waiting on SDRangel's asynchronous channel operations. +class MCPCapture +{ +public: + explicit MCPCapture(WebAPIAdapterInterface *adapter); + + void setCaptureDir(const QString& dir); + QString getCaptureDir() const; + + QJsonObject startIQRecording(int deviceSetIndex, int channelIndex, const QString& fileName, + int frequencyOffset, int log2Decim); + + //!< Checks a capture file name the way startIQRecording will, so a caller can refuse it before + //!< setting anything up. Throws for one outside the capture directory + void checkFileName(const QString& fileName, const QString& defaultPrefix) { resolvePath(fileName, defaultPrefix); } + + //!< Stops the recording of the channel currently at this index + QJsonObject stopIQRecording(int deviceSetIndex, int channelIndex); + + //!< Stops the recording of this channel wherever it has moved to + QJsonObject stopIQRecording(uint64_t channelUid); + + //!< Drops the entry for a channel that is being deleted + void forgetRecording(uint64_t channelUid); + + QJsonObject captureAudio(int deviceSetIndex, int channelIndex, double seconds, const QString& fileName, bool inlineAudio); + QJsonObject status(); + + //!< See MCPTools::setStopping + void setStopping(bool stopping); + + //!< Current index of a channel, or false if it has gone. Indices shift when a lower + //!< numbered channel is deleted, so they are resolved again before every action. + //!< Channels are held by UID rather than by pointer across any wait: a deleted channel's + //!< address is reused by the next one created, and a UID never is + static bool locateChannel(uint64_t channelUid, int& deviceSetIndex, int& channelIndex); + + //!< The UID of the channel at an index, or 0 when there is none + static uint64_t channelUidAt(int deviceSetIndex, int channelIndex); + + //!< Inline audio is only offered for short clips, as it is base64 encoded into the reply. The + //!< inline copy is mono at m_inlineSampleRate, whatever the file holds: MCP clients refuse a + //!< tool result over about a megabyte, which 10 s of 48 kHz audio exceeds once encoded. Even + //!< so, a reply that would still be over m_maxInlineBytes goes without the audio + static constexpr int m_maxInlineSeconds = 20; + static constexpr int m_inlineSampleRate = 16000; + static constexpr int m_maxInlineBytes = 900000; + + //!< Blocking captures hold an HTTP connection open, so they are kept short + static constexpr int m_maxBlockingSeconds = 30; + +private: + struct Recording + { + QString m_fileBase; //!< Path without the timestamp and extension SDRangel appends + QDateTime m_started; + bool m_valid; + + Recording() : m_valid(false) {} + }; + + WebAPIAdapterInterface *m_adapter; + mutable QMutex m_mutex; + QAtomicInt m_stopping; + QString m_captureDir; + + // Keyed by the channel's UID rather than its index, because indices are renumbered + // whenever a lower numbered channel is deleted, which can happen while a recording runs + QMap m_recordings; + MCPAudioCapture m_audio; + + QString resolvePath(const QString& name, const QString& defaultPrefix); + QJsonObject channelSettings(int deviceSetIndex, int channelIndex); + QString channelType(const QJsonObject& settings); + void patchChannel(int deviceSetIndex, int channelIndex, const QString& type, const QJsonObject& settings); + void recordAction(int deviceSetIndex, int channelIndex, const QString& type, bool record); + QJsonObject channelReport(int deviceSetIndex, int channelIndex); + void pruneRecordings(); //!< Drops entries whose channel has been deleted + static QJsonObject filesFor(const Recording& recording); +}; + +#endif // INCLUDE_FEATURE_MCPCAPTURE_H_ diff --git a/plugins/feature/mcpserver/mcpclaudeextension.cpp b/plugins/feature/mcpserver/mcpclaudeextension.cpp new file mode 100644 index 000000000..aa88c0964 --- /dev/null +++ b/plugins/feature/mcpserver/mcpclaudeextension.cpp @@ -0,0 +1,129 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include + +#ifdef _WIN32 +#include +#endif + +#include "mcpclaudeextension.h" + +QString MCPClaudeExtension::bundlePath() +{ + // The bundle is installed beside the executable on every platform, and lands beside it in + // a build tree too. Its name carries the version, so it is matched rather than named + QDir dir(QCoreApplication::applicationDirPath()); + QFileInfoList bundles = dir.entryInfoList({"sdrangel-*.mcpb"}, QDir::Files, QDir::Name); + + if (bundles.isEmpty()) { + return QString(); + } + + // Several can be left in a build tree, as each build makes a version of its own. Sorting + // by name is not enough to order versions, so take the one most recently written + QFileInfo newest = bundles.first(); + + for (const QFileInfo& bundle : bundles) + { + if (bundle.lastModified() > newest.lastModified()) { + newest = bundle; + } + } + + return newest.absoluteFilePath(); +} + +QString MCPClaudeExtension::claudePath() +{ +#if defined(_WIN32) + // Claude registers no .mcpb file association, and the packaged (MSIX) build has no + // execution alias, so the only handle on it is the claude:// protocol handler, which both + // it and the .exe build write to HKCU with a real path to the executable + QSettings handler("HKEY_CURRENT_USER\\Software\\Classes\\claude\\shell\\open\\command", + QSettings::NativeFormat); + const QString command = handler.value("Default").toString(); + const int open = command.indexOf('"'); + const int close = (open < 0) ? -1 : command.indexOf('"', open + 1); + + if (close < 0) { + return QString(); // "" "%1" is the only shape understood, leave anything else + } + + const QString path = command.mid(open + 1, close - open - 1); + + // The path carries the version of the Claude that wrote it, so an update that has not + // been launched since can leave it pointing at a directory that is gone + return QFile::exists(path) ? path : QString(); +#elif defined(__APPLE__) + const QString app = "/Applications/Claude.app"; + return QFileInfo(app).isDir() ? app : QString(); +#else + // There is no official Claude Desktop for Linux. Community builds install claude-desktop; + // plain "claude" is Claude Code, which is not what a bundle should be handed to + return QStandardPaths::findExecutable("claude-desktop"); +#endif +} + +MCPClaudeExtension::Result MCPClaudeExtension::install(QString& message) +{ + const QString bundle = bundlePath(); + + if (bundle.isEmpty()) + { + message = QString("No extension bundle was found in %1.\n\n" + "This build of SDRangel was made without one.") + .arg(QDir::toNativeSeparators(QCoreApplication::applicationDirPath())); + return NoBundle; + } + + const QString claude = claudePath(); + + if (claude.isEmpty()) + { + message = QString("Claude Desktop could not be found.\n\n" + "The extension is at %1. Open it with Claude Desktop, or drag it onto " + "Settings > Extensions.").arg(QDir::toNativeSeparators(bundle)); + return NoClaude; + } + +#ifdef __APPLE__ + // claudePath gives the application bundle, which is opened rather than executed + const bool started = QProcess::startDetached("open", {"-a", claude, bundle}); +#else + const bool started = QProcess::startDetached(claude, {bundle}); +#endif + + if (!started) + { + message = QString("Could not start %1.").arg(QDir::toNativeSeparators(claude)); + return Failed; + } + + // Claude shows its own install dialog, with its own warning about what an extension can + // do, so there is nothing further to confirm here + message = QString("Claude Desktop has been asked to install %1.\n\n" + "Confirm the installation in Claude Desktop.").arg(QFileInfo(bundle).fileName()); + return Launched; +} diff --git a/plugins/feature/mcpserver/mcpclaudeextension.h b/plugins/feature/mcpserver/mcpclaudeextension.h new file mode 100644 index 000000000..cf874bb2b --- /dev/null +++ b/plugins/feature/mcpserver/mcpclaudeextension.h @@ -0,0 +1,57 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPCLAUDEEXTENSION_H_ +#define INCLUDE_FEATURE_MCPCLAUDEEXTENSION_H_ + +#include + +// Hands the Claude Desktop extension bundle to Claude Desktop, so that it can be installed +// from the feature's window rather than by finding the file and opening it by hand. +// +// Claude Desktop cannot reach a server on 127.0.0.1, because its custom connectors are +// fetched from Anthropic's cloud. The .mcpb bundle beside SDRangel carries a small bridge +// that relays the stdio transport Claude Desktop does support to this server, and installing +// the bundle is what puts that bridge in place. +// +// There is no documented directory a bundle can be dropped into: the supported way to install +// one is to open it with Claude Desktop, which then shows its own dialog with its own warning +// about what an extension may do. So that is what this does, which is also what the Windows +// installer offers at the end of a fresh install. +class MCPClaudeExtension +{ +public: + enum Result + { + Launched, //!< Claude Desktop has been asked to open the bundle + NoBundle, //!< This build was made without the extension bundle + NoClaude, //!< The bundle is there but Claude Desktop could not be found + Failed //!< Claude Desktop is there but would not start + }; + + //!< The newest sdrangel-*.mcpb beside the application, or empty when there is none + static QString bundlePath(); + + //!< The Claude Desktop executable, or empty when it does not appear to be installed + static QString claudePath(); + + //!< Opens the bundle with Claude Desktop. message describes what happened either way + static Result install(QString& message); +}; + +#endif // INCLUDE_FEATURE_MCPCLAUDEEXTENSION_H_ diff --git a/plugins/feature/mcpserver/mcpcodexconfig.cpp b/plugins/feature/mcpserver/mcpcodexconfig.cpp new file mode 100644 index 000000000..31e8794e6 --- /dev/null +++ b/plugins/feature/mcpserver/mcpcodexconfig.cpp @@ -0,0 +1,396 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include + +#include "mcpcodexconfig.h" + +QString MCPCodexConfig::configPath() +{ + // Codex reads CODEX_HOME first, and a user with several profiles will have set it + QString home = qEnvironmentVariable("CODEX_HOME"); + + if (home.trimmed().isEmpty()) { + home = QDir(QDir::homePath()).filePath(".codex"); + } + + return QDir(home).filePath("config.toml"); +} + +QString MCPCodexConfig::serverUrl(const QString& address, quint32 port) +{ + // The listener may be bound to every interface, which is not an address a client can use + QString host = address.trimmed(); + + if (host.isEmpty() || (host == "0.0.0.0") || (host == "::") || (host == "*")) { + host = "127.0.0.1"; + } + + if (host.contains(':') && !host.startsWith('[')) { + host = "[" + host + "]"; // bare IPv6 + } + + return QString("http://%1:%2/mcp").arg(host).arg(port); +} + +QString MCPCodexConfig::tomlString(const QString& value) +{ + QString escaped = value; + escaped.replace('\\', "\\\\"); + escaped.replace('"', "\\\""); + escaped.replace('\n', "\\n"); + escaped.replace('\r', "\\r"); + escaped.replace('\t', "\\t"); + return "\"" + escaped + "\""; +} + +QString MCPCodexConfig::tableFor(const QString& serverName, const QString& url, const QString& token, + const QString& newline) +{ + QStringList lines; + lines.append(QString("[mcp_servers.%1]").arg(serverName)); + // Inside the table, so that replacing the table replaces the comment with it + lines.append(comment()); + lines.append(QString("url = %1").arg(tomlString(url))); + + if (!token.trimmed().isEmpty()) + { + // bearer_token_env_var would keep the token out of the file, but then it would have to + // be in the environment Codex is started from, which is not something this can arrange + lines.append(QString("http_headers = { \"Authorization\" = %1 }") + .arg(tomlString("Bearer " + token))); + } + + return lines.join(newline) + newline; +} + +void MCPCodexConfig::findTable(const QStringList& lines, const QString& serverName, int& start, int& end) +{ + start = -1; + end = -1; + + // [ mcp_servers.name ] with the spacing TOML allows, and the name optionally quoted + const QString name = QRegularExpression::escape(serverName); + QRegularExpression header(QString("^\\s*\\[\\s*mcp_servers\\s*\\.\\s*\"?%1\"?\\s*\\]").arg(name)); + QRegularExpression child(QString("^\\s*\\[\\s*mcp_servers\\s*\\.\\s*\"?%1\"?\\s*\\.").arg(name)); + QRegularExpression anyTable("^\\s*\\["); + + for (int i = 0; i < lines.size(); i++) + { + if (start < 0) + { + if (header.match(lines[i]).hasMatch()) { + start = i; + } + + continue; + } + + // Sub tables such as [mcp_servers.name.env] belong to it and go with it + if (child.match(lines[i]).hasMatch()) { + continue; + } + + if (anyTable.match(lines[i]).hasMatch()) + { + end = i; + break; + } + } + + if (start >= 0) + { + if (end < 0) { + end = lines.size(); + } + + // Give back any blank lines at the end of the table, so that repeated writes neither + // grow nor lose the spacing between tables + while ((end > start + 1) && lines[end - 1].trimmed().isEmpty()) { + end--; + } + } +} + +// How much deeper the brackets are at the end of the line than at the start of it. Quoted +// text and comments do not count, so that a bracket inside a path or a remark is not one. +int MCPCodexConfig::bracketDelta(const QString& line) +{ + int depth = 0; + QChar quote; + + for (int i = 0; i < line.size(); i++) + { + const QChar c = line[i]; + + if (!quote.isNull()) + { + // Only the basic string form has escapes; a literal one ends at the next quote + if ((c == '\\') && (quote == '"')) { + i++; + } else if (c == quote) { + quote = QChar(); + } + + continue; + } + + if ((c == '"') || (c == '\'')) { + quote = c; + } else if (c == '#') { + break; + } else if ((c == '[') || (c == '{')) { + depth++; + } else if ((c == ']') || (c == '}')) { + depth--; + } + } + + return depth; +} + +// Replaces only the keys this writes, so that anything else the user put in the table - +// a timeout, enabled = false, a comment - survives. The stdio keys go because they and a url +// cannot both describe one server. +QStringList MCPCodexConfig::rewriteTable(const QStringList& table, const QString& serverName, + const QString& url, const QString& token) +{ + static const QStringList managed = { + "url", "http_headers", "bearer_token_env_var", "command", "args", "env", "env_vars", "cwd", "type" + }; + + const QString name = QRegularExpression::escape(serverName); + QRegularExpression child(QString("^\\s*\\[\\s*mcp_servers\\s*\\.\\s*\"?%1\"?\\s*\\.").arg(name)); + // A managed key however it is spelt: bare, quoted, or the head of a dotted key such as + // http_headers.Authorization, which is the same table written another way + QRegularExpression assignment("^\\s*\"?([A-Za-z0-9_-]+)\"?\\s*[=.]"); + + QStringList out; + + if (!table.isEmpty()) { + out.append(table.first()); // the header + } + + out.append(comment()); + out.append(QString("url = %1").arg(tomlString(url))); + + if (!token.trimmed().isEmpty()) + { + // bearer_token_env_var would keep the token out of the file, but then it would have to + // be in the environment Codex is started from, which is not something this can arrange + out.append(QString("http_headers = { \"Authorization\" = %1 }") + .arg(tomlString("Bearer " + token))); + } + + bool inChildTable = false; + int dropping = 0; // brackets still open on a managed value spanning several lines + + for (int i = 1; i < table.size(); i++) + { + const QString& line = table[i]; + + // A sub table can only be stdio environment, which a url based entry has no use for + if (child.match(line).hasMatch()) + { + inChildTable = true; + continue; + } + + if (inChildTable) { + continue; + } + + if (dropping > 0) + { + dropping += bracketDelta(line); + continue; + } + + if (line.trimmed() == comment()) { + continue; + } + + QRegularExpressionMatch m = assignment.match(line); + + if (m.hasMatch() && managed.contains(m.captured(1))) + { + // args = [ ... ] can run over several lines, and all of them have to go + dropping = qMax(0, bracketDelta(line)); + continue; + } + + out.append(line); + } + + while (!out.isEmpty() && out.last().trimmed().isEmpty()) { + out.removeLast(); + } + + return out; +} + +MCPCodexConfig::Result MCPCodexConfig::addServer(const QString& serverName, const QString& url, + const QString& token, QString& message) +{ + const QString path = configPath(); + QFileInfo info(path); + + if (!QDir().mkpath(info.absolutePath())) + { + message = QString("Could not create %1").arg(info.absolutePath()); + return Failed; + } + + QString existing; + QString newline = "\n"; + + if (info.exists()) + { + QFile file(path); + + // Not QIODevice::Text: that would translate CRLF away before it can be detected + if (!file.open(QIODevice::ReadOnly)) + { + message = QString("Could not read %1: %2").arg(path).arg(file.errorString()); + return Failed; + } + + existing = QString::fromUtf8(file.readAll()); + file.close(); + + if (existing.contains("\r\n")) { + newline = "\r\n"; + } + } + + const QString table = tableFor(serverName, url, token, newline); + QStringList lines = existing.split(QRegularExpression("\r\n|\n")); + bool trailingNewline = !lines.isEmpty() && lines.last().isEmpty(); + + if (trailingNewline) { + lines.removeLast(); + } + + int start, end; + findTable(lines, serverName, start, end); + Result result; + + // The same server written as an inline table under [mcp_servers], or as dotted keys at the + // top level, is a table this cannot rewrite in place; adding a [mcp_servers.name] beside it + // would define the table twice and Codex would refuse the whole file + if (start < 0) + { + const QString name = QRegularExpression::escape(serverName); + QRegularExpression dotted(QString("^\\s*mcp_servers\\s*\\.\\s*\"?%1\"?\\s*[.=]").arg(name)); + // Under [mcp_servers]: an inline table, name = { ... }, or dotted keys, name.url = ... + QRegularExpression inlineEntry(QString("^\\s*\"?%1\"?\\s*[=.]").arg(name)); + QRegularExpression serversHeader("^\\s*\\[\\s*mcp_servers\\s*\\]"); + QRegularExpression anyTable("^\\s*\\["); + bool inServers = false; + + for (const QString& line : lines) + { + if (anyTable.match(line).hasMatch()) { + inServers = serversHeader.match(line).hasMatch(); + } + + if (dotted.match(line).hasMatch() || (inServers && inlineEntry.match(line).hasMatch())) + { + message = QString("%1 already defines %2 in a form this cannot update (%3). Remove that entry and try again.") + .arg(path).arg(serverName).arg(line.trimmed()); + return Failed; + } + } + } + + if (start >= 0) + { + const QStringList before = lines.mid(start, end - start); + const QStringList after = rewriteTable(before, serverName, url, token); + + if (before == after) + { + message = QString("%1 already has this server").arg(path); + return Unchanged; + } + + for (int i = end - 1; i >= start; i--) { + lines.removeAt(i); + } + + for (int i = 0; i < after.size(); i++) { + lines.insert(start + i, after[i]); + } + + result = Updated; + } + else + { + if (!lines.isEmpty() && !lines.last().trimmed().isEmpty()) { + lines.append(QString()); + } + + QStringList addition = table.split(newline); + + if (!addition.isEmpty() && addition.last().isEmpty()) { + addition.removeLast(); + } + + lines.append(addition); + result = Added; + } + + QString updated = lines.join(newline); + + if (trailingNewline || !info.exists() || !updated.endsWith(newline)) { + updated += newline; + } + + // The file is usually hand written, and this is the only thing that writes it besides its + // owner, so keep the last copy of what was there + if (info.exists()) + { + const QString backup = path + ".sdrangel.bak"; + QFile::remove(backup); + QFile::copy(path, backup); + } + + QSaveFile out(path); // commits by rename, so a failure leaves the original alone + + if (!out.open(QIODevice::WriteOnly)) + { + message = QString("Could not write %1: %2").arg(path).arg(out.errorString()); + return Failed; + } + + out.write(updated.toUtf8()); + + if (!out.commit()) + { + message = QString("Could not write %1: %2").arg(path).arg(out.errorString()); + return Failed; + } + + message = QString("%1 %2").arg(result == Added ? "Added to" : "Updated in").arg(path); + return result; +} diff --git a/plugins/feature/mcpserver/mcpcodexconfig.h b/plugins/feature/mcpserver/mcpcodexconfig.h new file mode 100644 index 000000000..2f7d27252 --- /dev/null +++ b/plugins/feature/mcpserver/mcpcodexconfig.h @@ -0,0 +1,73 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPCODEXCONFIG_H_ +#define INCLUDE_FEATURE_MCPCODEXCONFIG_H_ + +#include +#include + +// Writes this server into the OpenAI Codex configuration, so that it can be set up from the +// feature's window rather than by hand editing TOML. +// +// Codex speaks the streamable HTTP transport, so it reaches the server directly and needs no +// bridge. What it needs is four lines in its own configuration file: +// +// [mcp_servers.sdrangel] +// url = "http://127.0.0.1:8092/mcp" +// +// The file belongs to Codex and is usually hand written, so the whole of it is preserved apart +// from that one table, which is replaced when it is already there. There is no TOML library +// here and pulling one in for four lines would be a poor trade, so the table is found and +// replaced as text. That is safe for what is written here, and is why nothing else is touched. +class MCPCodexConfig +{ +public: + enum Result + { + Added, //!< The table was not there and has been appended + Updated, //!< The table was there and has been replaced + Unchanged, //!< The table was there and already said this + Failed + }; + + //!< $CODEX_HOME/config.toml, or ~/.codex/config.toml + static QString configPath(); + + //!< Adds or updates [mcp_servers.]. message describes what happened either way + static Result addServer(const QString& serverName, const QString& url, const QString& token, + QString& message); + + //!< The URL a client on this machine should use to reach a server bound to address:port + static QString serverUrl(const QString& address, quint32 port); + +private: + static QString comment() { return "# Written by SDRangel's MCP Server feature"; } + static QString tomlString(const QString& value); + //!< Net bracket depth added by the line, ignoring quoted text and comments + static int bracketDelta(const QString& line); + //!< The table with only the managed keys replaced, everything else the user put there kept + static QStringList rewriteTable(const QStringList& table, const QString& serverName, + const QString& url, const QString& token); + static QString tableFor(const QString& serverName, const QString& url, const QString& token, + const QString& newline); + //!< [start, end) lines of the table and any of its sub tables, or (-1, -1) when absent + static void findTable(const QStringList& lines, const QString& serverName, int& start, int& end); +}; + +#endif // INCLUDE_FEATURE_MCPCODEXCONFIG_H_ diff --git a/plugins/feature/mcpserver/mcpdatafeed.cpp b/plugins/feature/mcpserver/mcpdatafeed.cpp new file mode 100644 index 000000000..8393276bd --- /dev/null +++ b/plugins/feature/mcpserver/mcpdatafeed.cpp @@ -0,0 +1,582 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include + +#include "SWGMapItem.h" +#include "SWGMapCoordinate.h" +#include "SWGMapAircraftState.h" + +#include "maincore.h" +#include "util/messagequeue.h" +#include "util/ais.h" +#include "util/ax25.h" +#include "util/aprs.h" +#include "util/radiosonde.h" + +#include "mcpdatafeed.h" + +// Channels that publish decoded packets, and the pipes they publish them on +static const QStringList packetURIs = { + QStringLiteral("sdrangel.channel.aisdemod"), + QStringLiteral("sdrangel.channel.packetdemod"), + QStringLiteral("sdrangel.channel.chirpchatdemod"), + QStringLiteral("sdrangel.channel.m17demod"), + QStringLiteral("sdrangel.channel.meshtasticdemod"), + QStringLiteral("sdrangel.channel.meshcoredemod"), + QStringLiteral("sdrangel.channel.inmarsatdemod"), + QStringLiteral("sdrangel.channel.radiosondedemod"), +}; +static const QStringList packetPipes = {"packets", "ais", "radiosonde"}; + +// Channels and features that publish map items (same list as the Map feature) +static const QStringList mapURIs = { + QStringLiteral("sdrangel.channel.acarsdemod"), + QStringLiteral("sdrangel.channel.adsbdemod"), + QStringLiteral("sdrangel.feature.ais"), + QStringLiteral("sdrangel.feature.aprs"), + QStringLiteral("sdrangel.channel.aptdemod"), + QStringLiteral("sdrangel.channel.dscdemod"), + QStringLiteral("sdrangel.channel.ft8demod"), + QStringLiteral("sdrangel.channel.heatmap"), + QStringLiteral("sdrangel.channel.ilsdemod"), + QStringLiteral("sdrangel.channel.inmarsatdemod"), + QStringLiteral("sdrangel.channel.pagerdemod"), + QStringLiteral("sdrangel.feature.radiosonde"), + QStringLiteral("sdrangel.feature.startracker"), + QStringLiteral("sdrangel.feature.satellitetracker"), + QStringLiteral("sdrangel.feature.sid"), + QStringLiteral("sdrangel.feature.vorlocalizer"), +}; + +MCPDataFeed::MCPDataFeed(QObject *parent) : + QObject(parent), + m_packetHandler(packetURIs, packetPipes), + m_mapHandler(mapURIs, QStringList{"mapitems"}), + m_packetSequence(0), + m_packetsDropped(0), + m_mapItemUpdates(0) +{ + connect(&m_packetHandler, &AvailableChannelOrFeatureHandler::messageEnqueued, this, &MCPDataFeed::handlePacketMessages); + connect(&m_mapHandler, &AvailableChannelOrFeatureHandler::messageEnqueued, this, &MCPDataFeed::handleMapMessages); + connect(&m_mapHandler, &AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged, this, &MCPDataFeed::handleMapSourcesChanged); + connect(&m_packetHandler, &AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged, this, &MCPDataFeed::handleSourcesChanged); + connect(&m_mapHandler, &AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged, this, &MCPDataFeed::handleSourcesChanged); + m_packetHandler.scanAvailableChannelsAndFeatures(); + m_mapHandler.scanAvailableChannelsAndFeatures(); + refreshSources(); +} + +// The handlers replace their lists on the main thread as channels and features come and go, so +// get_server_status must not walk them from an HTTP thread. Take a copy here instead. +void MCPDataFeed::refreshSources() +{ + QStringList packetSources; + QStringList mapSources; + + for (const auto& entry : m_packetHandler.getAvailableChannelOrFeatureList()) { + packetSources.append(entry.getId() + " " + entry.m_type); + } + + for (const auto& entry : m_mapHandler.getAvailableChannelOrFeatureList()) { + mapSources.append(entry.getId() + " " + entry.m_type); + } + + QMutexLocker locker(&m_mutex); + m_packetSources = packetSources; + m_mapSources = mapSources; +} + +void MCPDataFeed::handleSourcesChanged() +{ + refreshSources(); +} + +// --------------------------------------------------------------------------- +// Receiving +// --------------------------------------------------------------------------- + +bool MCPDataFeed::findSource(const AvailableChannelOrFeatureHandler& handler, const QObject *object, QString& id, QString& type) const +{ + for (const auto& entry : handler.getAvailableChannelOrFeatureList()) + { + if (entry.m_object == object) + { + id = entry.getId(); + type = entry.m_type; + return true; + } + } + + id = "unknown"; + type = "unknown"; + return false; +} + +void MCPDataFeed::handlePacketMessages(MessageQueue *queue) +{ + Message *message; + + while ((message = queue->pop()) != nullptr) + { + handlePacket(*message); + delete message; + } +} + +void MCPDataFeed::handleMapMessages(MessageQueue *queue) +{ + Message *message; + + while ((message = queue->pop()) != nullptr) + { + handleMapItem(*message); + delete message; + } +} + +void MCPDataFeed::handlePacket(const Message& message) +{ + if (!MainCore::MsgPacket::match(message)) { + return; + } + + const MainCore::MsgPacket& msg = (const MainCore::MsgPacket&) message; + Packet packet; + findSource(m_packetHandler, msg.getPipeSource(), packet.m_source, packet.m_sourceType); + packet.m_dateTime = msg.getDateTime(); + packet.m_bytes = msg.getPacket(); + packet.m_decoded = decodePacket(packet.m_sourceType, packet.m_bytes); + + { + QMutexLocker locker(&m_mutex); + packet.m_sequence = ++m_packetSequence; + m_packets.append(packet); + + while (m_packets.size() > m_maxPackets) + { + m_packets.removeFirst(); + m_packetsDropped++; + } + } + + emit packetsChanged(); +} + +void MCPDataFeed::handleMapItem(const Message& message) +{ + if (!MainCore::MsgMapItem::match(message)) { + return; + } + + const MainCore::MsgMapItem& msg = (const MainCore::MsgMapItem&) message; + SWGSDRangel::SWGMapItem *swgItem = msg.getSWGMapItem(); + + // Producers allocate a separate item for each registered pipe, so this one belongs to us. + // MainCore::MsgMapItem has no destructor, so deleting the message would not free it. + QScopedPointer owned(swgItem); + + if (!swgItem || !swgItem->getName()) { + return; + } + + MapItem item; + findSource(m_mapHandler, msg.getPipeSource(), item.m_source, item.m_sourceType); + item.m_name = *swgItem->getName(); + item.m_updated = QDateTime::currentDateTimeUtc(); + QString key = item.m_source + "|" + item.m_name; + // As in the Map feature, an item without an image is a request to remove it + bool remove = !swgItem->getImage() || swgItem->getImage()->isEmpty(); + + if (!remove) { + item.m_item = mapItemToJson(swgItem, true); + } + + { + QMutexLocker locker(&m_mutex); + m_mapItemUpdates++; + + if (remove) { + m_mapItems.remove(key); + } else { + m_mapItems[key] = item; + } + } + + emit mapItemsChanged(); +} + +// A source that is removed takes its map items with it (as in the Map feature), and sources that are +// renumbered when another channel or feature is deleted keep their items under the new id. +// The lists hold long ids such as "F:1 StarTracker"; the id is the part before the space. +void MCPDataFeed::handleMapSourcesChanged(const QStringList& renameFrom, const QStringList& renameTo, const QStringList& removed, const QStringList& added) +{ + (void) added; + QMutexLocker locker(&m_mutex); + + for (const QString& longId : removed) + { + QString id = longId.section(' ', 0, 0); + + for (auto it = m_mapItems.begin(); it != m_mapItems.end();) + { + if (it->m_source == id) { + it = m_mapItems.erase(it); + } else { + ++it; + } + } + } + + if (renameFrom.size() == renameTo.size()) + { + QMap renamed; + + for (auto it = m_mapItems.begin(); it != m_mapItems.end(); ++it) + { + MapItem item = it.value(); + + for (int i = 0; i < renameFrom.size(); i++) + { + if (item.m_source == renameFrom[i].section(' ', 0, 0)) + { + item.m_source = renameTo[i].section(' ', 0, 0); + break; + } + } + + renamed[item.m_source + "|" + item.m_name] = item; + } + + m_mapItems = renamed; + } + + locker.unlock(); + + // Items were dropped or re-keyed, so anything subscribed to the resource is now stale + emit mapItemsChanged(); +} + +// --------------------------------------------------------------------------- +// Decoding +// --------------------------------------------------------------------------- + +QString MCPDataFeed::printable(const QByteArray& bytes) +{ + QString s; + + for (char c : bytes) { + s.append(((c >= 0x20) && (c < 0x7f)) ? QChar(c) : QChar('.')); + } + + return s; +} + +QString MCPDataFeed::stripHtml(const QString& html) +{ + static const QRegularExpression tags("<[^>]*>"); + static const QRegularExpression breaks("", QRegularExpression::CaseInsensitiveOption); + QString s = html; + s.replace(breaks, "\n"); + s.remove(tags); + s.replace(" ", " ").replace("&", "&").replace("<", "<").replace(">", ">"); + return s.trimmed(); +} + +QJsonObject MCPDataFeed::decodePacket(const QString& sourceType, const QByteArray& bytes) +{ + QJsonObject decoded; + + if (sourceType == "AISDemod") + { + AISMessage *ais = AISMessage::decode(bytes); + + if (ais) + { + decoded["protocol"] = "AIS"; + decoded["messageType"] = ais->getType(); + decoded["messageId"] = ais->m_id; + decoded["mmsi"] = ais->m_mmsi; + + if (ais->hasPosition()) + { + decoded["latitude"] = ais->getLatitude(); + decoded["longitude"] = ais->getLongitude(); + } + if (ais->hasCourse()) { + decoded["course"] = ais->getCourse(); + } + if (ais->hasSpeed()) { + decoded["speedKnots"] = ais->getSpeed(); + } + if (ais->hasHeading()) { + decoded["heading"] = ais->getHeading(); + } + + QString summary = ais->toString(); + + if (!summary.isEmpty()) { + decoded["summary"] = summary; + } + + delete ais; + } + } + else if (sourceType == "RadiosondeDemod") + { + RS41Frame frame(bytes); + decoded["protocol"] = "RS41"; + + if (frame.m_statusValid) + { + decoded["serial"] = frame.m_serial; + decoded["frameNumber"] = frame.m_frameNumber; + decoded["batteryVoltage"] = frame.m_batteryVoltage; + } + if (frame.m_posValid) + { + decoded["latitude"] = frame.m_latitude; + decoded["longitude"] = frame.m_longitude; + decoded["heightMetres"] = frame.m_height; + decoded["speedMetresPerSecond"] = frame.m_speed; + decoded["heading"] = frame.m_heading; + } + } + else if ((sourceType == "PacketDemod") || (sourceType == "ChirpChatDemod") || (sourceType == "M17Demod")) + { + AX25Packet ax25; + + if (ax25.decode(bytes)) + { + decoded["protocol"] = "AX.25"; + decoded["from"] = ax25.m_from; + decoded["to"] = ax25.m_to; + + if (!ax25.m_via.isEmpty()) { + decoded["via"] = ax25.m_via; + } + + decoded["frameType"] = ax25.m_type; + decoded["pid"] = ax25.m_pid; + decoded["data"] = printable(ax25.m_data); + + APRSPacket aprs; + + if (aprs.decode(ax25)) + { + QJsonObject a; + + if (aprs.m_hasPosition) + { + a["latitude"] = aprs.m_latitude; + a["longitude"] = aprs.m_longitude; + } + if (aprs.m_hasAltitude) { + a["altitudeFeet"] = aprs.m_altitudeFt; + } + if (!aprs.m_comment.isEmpty()) { + a["comment"] = aprs.m_comment; + } + if (!aprs.m_status.isEmpty()) { + a["status"] = aprs.m_status; + } + if (aprs.m_hasSymbol) { + a["symbol"] = QString("%1%2").arg(aprs.m_symbolTable).arg(aprs.m_symbolCode); + } + + decoded["aprs"] = a; + } + } + } + + return decoded; +} + +QJsonObject MCPDataFeed::packetToJson(const Packet& packet) +{ + QJsonObject p; + p["sequence"] = (double) packet.m_sequence; + p["time"] = packet.m_dateTime.toString(Qt::ISODateWithMs); + p["source"] = packet.m_source; + p["sourceType"] = packet.m_sourceType; + p["length"] = packet.m_bytes.size(); + p["hex"] = QString(packet.m_bytes.toHex()); + p["text"] = printable(packet.m_bytes); + + if (!packet.m_decoded.isEmpty()) { + p["decoded"] = packet.m_decoded; + } + + return p; +} + +QJsonObject MCPDataFeed::mapItemToJson(SWGSDRangel::SWGMapItem *item, bool includeTrack) +{ + QJsonObject j; + j["latitude"] = item->getLatitude(); + j["longitude"] = item->getLongitude(); + j["altitude"] = item->getAltitude(); + + if (item->getLabel() && !item->getLabel()->isEmpty()) { + j["label"] = *item->getLabel(); + } + if (item->getText() && !item->getText()->isEmpty()) { + j["text"] = stripHtml(*item->getText()); + } + if (item->getImage() && !item->getImage()->isEmpty()) { + j["image"] = *item->getImage(); + } + if (item->getModel() && !item->getModel()->isEmpty()) { + j["model"] = *item->getModel(); + } + if (item->getPositionDateTime() && !item->getPositionDateTime()->isEmpty()) { + j["positionDateTime"] = *item->getPositionDateTime(); + } + + j["heading"] = item->getHeading(); + j["type"] = item->getType(); + + if (item->getAircraftState() && item->getAircraftState()->isSet()) + { + QJsonObject *state = item->getAircraftState()->asJsonObject(); + j["aircraftState"] = *state; + delete state; + } + + if (includeTrack && item->getTrack() && !item->getTrack()->isEmpty()) + { + QJsonArray track; + + for (auto *c : *item->getTrack()) + { + QJsonObject point; + point["latitude"] = c->getLatitude(); + point["longitude"] = c->getLongitude(); + point["altitude"] = c->getAltitude(); + track.append(point); + } + + j["track"] = track; + } + + return j; +} + +// --------------------------------------------------------------------------- +// Reading +// --------------------------------------------------------------------------- + +QJsonObject MCPDataFeed::getPackets(const QString& source, const QString& type, int limit, qint64 sinceSequence) +{ + QMutexLocker locker(&m_mutex); + QJsonArray packets; + int matched = 0; + + // Walk from the newest so the limit keeps the most recent packets, then restore order + for (int i = m_packets.size() - 1; (i >= 0) && (packets.size() < limit); i--) + { + const Packet& packet = m_packets[i]; + + if (packet.m_sequence <= sinceSequence) { + break; + } + if (!source.isEmpty() && (packet.m_source != source)) { + continue; + } + if (!type.isEmpty() && (packet.m_sourceType.compare(type, Qt::CaseInsensitive) != 0)) { + continue; + } + + matched++; + packets.prepend(packetToJson(packet)); + } + + QJsonObject result; + result["packets"] = packets; + result["count"] = packets.size(); + result["totalStored"] = m_packets.size(); + result["lastSequence"] = (double) m_packetSequence; + result["dropped"] = (double) m_packetsDropped; + return result; +} + +void MCPDataFeed::clearPackets() +{ + { + QMutexLocker locker(&m_mutex); + m_packets.clear(); + } + + // Subscribers would otherwise keep showing the packets that were just discarded + emit packetsChanged(); +} + +QJsonObject MCPDataFeed::getMapItems(const QString& source, const QString& name, int limit, bool includeTrack) +{ + QMutexLocker locker(&m_mutex); + QJsonArray items; + QString wantedName = name.trimmed().toLower(); + + for (const MapItem& item : m_mapItems) + { + if (!source.isEmpty() && (item.m_source != source) && (item.m_sourceType.compare(source, Qt::CaseInsensitive) != 0)) { + continue; + } + if (!wantedName.isEmpty() && !item.m_name.toLower().contains(wantedName)) { + continue; + } + + QJsonObject j = item.m_item; + + if (!includeTrack) { + j.remove("track"); + } + + j["name"] = item.m_name; + j["source"] = item.m_source; + j["sourceType"] = item.m_sourceType; + j["updated"] = item.m_updated.toString(Qt::ISODateWithMs); + items.append(j); + + if (items.size() >= limit) { + break; + } + } + + QJsonObject result; + result["items"] = items; + result["count"] = items.size(); + result["totalItems"] = m_mapItems.size(); + return result; +} + +QJsonObject MCPDataFeed::getStatus() +{ + QMutexLocker locker(&m_mutex); + QJsonObject status; + status["packetsStored"] = m_packets.size(); + status["packetsReceived"] = (double) m_packetSequence; + status["mapItems"] = m_mapItems.size(); + status["mapItemUpdates"] = (double) m_mapItemUpdates; + + status["packetSources"] = QJsonArray::fromStringList(m_packetSources); + status["mapItemSources"] = QJsonArray::fromStringList(m_mapSources); + return status; +} diff --git a/plugins/feature/mcpserver/mcpdatafeed.h b/plugins/feature/mcpserver/mcpdatafeed.h new file mode 100644 index 000000000..1a0dbeaec --- /dev/null +++ b/plugins/feature/mcpserver/mcpdatafeed.h @@ -0,0 +1,117 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPDATAFEED_H_ +#define INCLUDE_FEATURE_MCPDATAFEED_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "availablechannelorfeaturehandler.h" + +class MessageQueue; +class Message; + +namespace SWGSDRangel { + class SWGMapItem; +} + +// Collects live data from other plugins through the message pipes: decoded packets +// (AIS, AX.25/APRS, radiosonde, Meshtastic...) on the "packets", "ais" and "radiosonde" +// pipes, and map items (aircraft, ships, sondes, satellites...) on the "mapitems" pipe. +// +// Lives in the main thread where the pipe messages are delivered; the stores are read +// from the HTTP threads under a mutex. +class MCPDataFeed : public QObject +{ + Q_OBJECT +public: + struct Packet + { + qint64 m_sequence; + QDateTime m_dateTime; + QString m_source; //!< Channel id, e.g. "R0:1" + QString m_sourceType; //!< Channel type, e.g. "AISDemod" + QByteArray m_bytes; + QJsonObject m_decoded; //!< Protocol specific decode, may be empty + }; + + struct MapItem + { + QDateTime m_updated; + QString m_source; //!< Channel or feature id, e.g. "R0:1" or "F:0" + QString m_sourceType; //!< Plugin type, e.g. "ADSBDemod" + QString m_name; + QJsonObject m_item; //!< Selected fields of the map item + }; + + explicit MCPDataFeed(QObject *parent = nullptr); + + // Packets, most recent last. Filters are optional; sinceSequence returns only packets after that sequence number + QJsonObject getPackets(const QString& source, const QString& type, int limit, qint64 sinceSequence); + void clearPackets(); + QJsonObject getMapItems(const QString& source, const QString& name, int limit, bool includeTrack); + QJsonObject getStatus(); + + static constexpr int m_maxPackets = 1000; + +private: + AvailableChannelOrFeatureHandler m_packetHandler; + AvailableChannelOrFeatureHandler m_mapHandler; + QMutex m_mutex; + QList m_packets; + qint64 m_packetSequence; + qint64 m_packetsDropped; + QMap m_mapItems; //!< Keyed by source + "|" + name + qint64 m_mapItemUpdates; + + // Summaries of the handlers' source lists. The handlers rebuild those lists on the main + // thread whenever a channel or feature comes or goes, so they cannot be read from an HTTP + // thread; these copies are refreshed on the main thread and read under the mutex. + QStringList m_packetSources; + QStringList m_mapSources; + + void refreshSources(); //!< Main thread only + bool findSource(const AvailableChannelOrFeatureHandler& handler, const QObject *object, QString& id, QString& type) const; + void handlePacket(const Message& message); + void handleMapItem(const Message& message); + static QJsonObject decodePacket(const QString& sourceType, const QByteArray& bytes); + static QString printable(const QByteArray& bytes); + static QString stripHtml(const QString& html); + static QJsonObject mapItemToJson(SWGSDRangel::SWGMapItem *item, bool includeTrack); + static QJsonObject packetToJson(const Packet& packet); + +signals: + void packetsChanged(); //!< A packet was added to the buffer + void mapItemsChanged(); //!< A map item was added, updated or removed + +private slots: + void handlePacketMessages(MessageQueue *queue); + void handleMapMessages(MessageQueue *queue); + void handleMapSourcesChanged(const QStringList& renameFrom, const QStringList& renameTo, const QStringList& removed, const QStringList& added); + void handleSourcesChanged(); +}; + +#endif // INCLUDE_FEATURE_MCPDATAFEED_H_ diff --git a/plugins/feature/mcpserver/mcpdocs.cpp b/plugins/feature/mcpserver/mcpdocs.cpp new file mode 100644 index 000000000..5164adbab --- /dev/null +++ b/plugins/feature/mcpserver/mcpdocs.cpp @@ -0,0 +1,582 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include + +#include "maincore.h" +#include "device/deviceenumerator.h" +#include "plugin/pluginmanager.h" +#include "plugin/plugininterface.h" + +#include "mcpdocs.h" + +MCPDocs::MCPDocs() : + m_loaded(false) +{ +} + +const QList& MCPDocs::list() +{ + load(); + return m_docs; +} + +const MCPDocs::Doc *MCPDocs::find(const QString& typeIn, const QString& kindIn) +{ + load(); + QString type = normalize(typeIn); + QString kind = kindIn.trimmed().toLower(); + + // Exact id first, then displayed name, then readme title, so that "ADS-B" or "RTL-SDR" also resolve + for (int pass = 0; pass < 3; pass++) + { + for (const Doc& doc : m_docs) + { + if (!kind.isEmpty() && (doc.kind != kind)) { + continue; + } + + bool hit; + + if (pass == 0) + { + hit = normalize(doc.id) == type; + + for (const QString& alias : doc.aliases) { + hit = hit || (normalize(alias) == type); + } + } + else if (pass == 1) + { + hit = normalize(doc.name) == type; + } + else + { + hit = normalize(doc.title).startsWith(type); + } + + if (hit) { + return &doc; + } + } + } + + return nullptr; +} + +QString MCPDocs::text(const Doc& doc, const QString& section) +{ + QString markdown = toMarkdown(readFile(doc.path)); + + if (section.trimmed().isEmpty()) { + return markdown; + } + + // Return the section whose heading contains the requested text, up to the next heading + // of the same or a higher level + QString wanted = section.trimmed().toLower(); + QStringList lines = markdown.split('\n'); + int start = -1; + int startLevel = 0; + + for (int i = 0; i < lines.size(); i++) + { + int level; + QString heading = headingText(lines[i], level); + + if (level == 0) { + continue; + } + + if (start < 0) + { + if (heading.toLower().contains(wanted)) + { + start = i; + startLevel = level; + } + } + else if (level <= startLevel) + { + return lines.mid(start, i - start).join('\n').trimmed(); + } + } + + if (start >= 0) { + return lines.mid(start).join('\n').trimmed(); + } + + return QString(); +} + +QJsonObject MCPDocs::index() +{ + load(); + QJsonArray docs; + + for (const Doc& doc : m_docs) + { + QJsonObject d; + d["kind"] = doc.kind; + d["id"] = doc.id; + + if (!doc.aliases.isEmpty()) { + d["aliases"] = QJsonArray::fromStringList(doc.aliases); + } + + if (!doc.direction.isEmpty()) { + d["direction"] = doc.direction; + } + + d["name"] = doc.name; + d["title"] = doc.title; + d["uri"] = uri(doc); + d["headings"] = QJsonArray::fromStringList(doc.headings); + docs.append(d); + } + + QJsonObject result; + result["count"] = docs.count(); + result["docs"] = docs; + return result; +} + +// Hand written guide compiled in beside the plugin readmes +QString MCPDocs::guide() +{ + QString text = readFile(":/mcpdocs/bandguide.md"); + + if (text.isEmpty()) { + return QString("The receiving guide is not available in this build."); + } + + return text; +} + +QStringList MCPDocs::unmatchedReadmes() +{ + load(); + QStringList result; + + for (const Readme& readme : m_readmes) + { + if (!readme.used) { + result.append(readme.group + "/" + readme.dir); + } + } + + return result; +} + +// --------------------------------------------------------------------------- + +void MCPDocs::load() +{ + if (m_loaded) { + return; + } + + m_loaded = true; + scanReadmes(); + + PluginManager *pluginManager = MainCore::instance()->getPluginManager(); + + if (!pluginManager) { + return; + } + + for (const auto& reg : *pluginManager->getRxChannelRegistrations()) { + addDoc("channel", reg.m_channelId, "rx", reg.m_channelIdURI, reg.m_plugin->getPluginDescriptor().displayedName, {"channelrx"}, reg.m_plugin); + } + for (const auto& reg : *pluginManager->getTxChannelRegistrations()) { + addDoc("channel", reg.m_channelId, "tx", reg.m_channelIdURI, reg.m_plugin->getPluginDescriptor().displayedName, {"channeltx"}, reg.m_plugin); + } + for (const auto& reg : *pluginManager->getMIMOChannelRegistrations()) { + addDoc("channel", reg.m_channelId, "mimo", reg.m_channelIdURI, reg.m_plugin->getPluginDescriptor().displayedName, {"channelmimo"}, reg.m_plugin); + } + for (const auto& reg : pluginManager->getSourceDeviceRegistrations()) { + addDoc("device", reg.m_deviceHardwareId, "rx", reg.m_deviceId, reg.m_plugin->getPluginDescriptor().displayedName, {"samplesource"}, reg.m_plugin); + } + for (const auto& reg : pluginManager->getSinkDeviceRegistrations()) { + addDoc("device", reg.m_deviceHardwareId, "tx", reg.m_deviceId, reg.m_plugin->getPluginDescriptor().displayedName, {"samplesink"}, reg.m_plugin); + } + for (const auto& reg : pluginManager->getMIMODeviceRegistrations()) { + addDoc("device", reg.m_deviceHardwareId, "mimo", reg.m_deviceId, reg.m_plugin->getPluginDescriptor().displayedName, {"samplemimo"}, reg.m_plugin); + } + for (const auto& reg : *pluginManager->getFeatureRegistrations()) { + addDoc("feature", reg.m_featureId, "", reg.m_featureIdURI, reg.m_plugin->getPluginDescriptor().displayedName, {"feature"}, reg.m_plugin); + } + + applyEnumeratedDeviceIds(); + addGuiDocs(); + + qDebug("MCPDocs::load: %d readmes, %d matched to plugins, unmatched: %s", + (int) m_readmes.size(), (int) m_docs.size(), qPrintable(unmatchedReadmes().join(", "))); +} + +// Pages of the GUI's own, compiled in under :/mcpdocs/gui by the CMake list beside this one. +// The spectrum display is the one that matters most: its settings are the only ones a client +// changes that no plugin readme explains +void MCPDocs::addGuiDocs() +{ + struct Page { const char *id; const char *name; const char *file; QStringList aliases; }; + + static const QList pages = { + {"spectrum", "Spectrum display", "spectrum.md", {"GLSpectrum", "spectrum display", "spectrum component"}}, + {"spectrummarkers", "Spectrum markers", "spectrummarkers.md", {"markers"}}, + {"spectrummeasurements", "Spectrum measurements", "spectrummeasurements.md", {"measurements"}}, + {"spectrumcalibration", "Spectrum calibration", "spectrumcalibration.md", {"calibration"}}, + {"mainspectrum", "Main spectrum window", "mainspectrum.md", {}}, + {"audio", "Audio management", "audio.md", {}}, + {"configurations", "Configurations", "configurations.md", {}}, + {"deviceuserargs", "Device user arguments", "deviceuserargs.md", {}}, + {"transverter", "Transverter dialog", "transverterdialog.md", {}} + }; + + for (const Page& page : pages) + { + QString path = QString(":/mcpdocs/gui/%1").arg(page.file); + + if (!QFile::exists(path)) { + continue; // not in this build + } + + QString markdown = toMarkdown(readFile(path)); + Doc doc; + doc.kind = "gui"; + doc.id = page.id; + doc.aliases = page.aliases; + doc.name = page.name; + doc.title = page.name; + doc.path = path; + doc.headings = extractHeadings(markdown); + doc.plugin = nullptr; + + // The page's own first heading, when it has one + for (const QString& line : markdown.split('\n')) + { + int level; + QString heading = headingText(line, level); + + if (level > 0) + { + doc.title = heading; + break; + } + } + + m_docs.append(doc); + } +} + +void MCPDocs::scanReadmes() +{ + QDir root(":/mcpdocs"); + + for (const QString& group : root.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) + { + QDir groupDir(root.filePath(group)); + + for (const QString& dir : groupDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) + { + QString path = groupDir.filePath(dir) + "/readme.md"; + + if (!QFile::exists(path)) { + continue; + } + + Readme readme; + readme.group = group; + readme.dir = dir; + readme.path = path; + readme.used = false; + + // Title is the first heading + for (const QString& line : readFile(path).split('\n')) + { + int level; + QString heading = headingText(line, level); + + if (level > 0) + { + readme.title = heading; + break; + } + } + + m_readmes.append(readme); + } + } +} + +// The hardware id a device plugin registers with can differ from the one it enumerates devices under, +// and the enumerated one is what list_available_devices, set_device and describe_settings use. +// Make that the canonical id and keep the registration id as an alias. +void MCPDocs::applyEnumeratedDeviceIds() +{ + DeviceEnumerator *enumerator = DeviceEnumerator::instance(); + + auto apply = [this](const QString& direction, const PluginInterface::SamplingDevice *device, PluginInterface *plugin) + { + for (Doc& doc : m_docs) + { + if ((doc.kind != "device") || (doc.direction != direction) || (doc.plugin != plugin)) { + continue; + } + + if (doc.id != device->hardwareId) + { + if (!doc.aliases.contains(doc.id)) { + doc.aliases.append(doc.id); + } + + doc.aliases.removeAll(device->hardwareId); + doc.id = device->hardwareId; + } + } + }; + + for (int i = 0; i < enumerator->getNbRxSamplingDevices(); i++) { + apply("rx", enumerator->getRxSamplingDevice(i), enumerator->getRxPluginInterface(i)); + } + for (int i = 0; i < enumerator->getNbTxSamplingDevices(); i++) { + apply("tx", enumerator->getTxSamplingDevice(i), enumerator->getTxPluginInterface(i)); + } + for (int i = 0; i < enumerator->getNbMIMOSamplingDevices(); i++) { + apply("mimo", enumerator->getMIMOSamplingDevice(i), enumerator->getMIMOPluginInterface(i)); + } +} + +void MCPDocs::addDoc(const QString& kind, const QString& id, const QString& direction, const QString& uri, + const QString& displayedName, const QStringList& groups, PluginInterface *plugin) +{ + // Several device plugins register the same hardware id (e.g. for different device instances) + for (const Doc& existing : m_docs) + { + if ((existing.kind == kind) && (existing.id == id) && (existing.direction == direction)) { + return; + } + } + + const Readme *readme = match(groups, id, uri, displayedName); + + if (!readme) + { + qDebug("MCPDocs::addDoc: no readme for %s %s (%s)", qPrintable(kind), qPrintable(id), qPrintable(displayedName)); + return; + } + + Doc doc; + doc.kind = kind; + doc.id = id; + doc.direction = direction; + doc.name = displayedName; + doc.title = readme->title; + doc.path = readme->path; + doc.headings = extractHeadings(toMarkdown(readFile(readme->path))); + doc.plugin = plugin; + m_docs.append(doc); +} + +// Directory names and ids differ (demodadsb vs ADSBDemod, rtlsdr vs RTLSDR, chanalyzer vs ChannelAnalyzer), +// so compare normalized forms with the demod/mod affixes removed, then fall back to the readme title. +const MCPDocs::Readme *MCPDocs::match(const QStringList& groups, const QString& id, const QString& uri, const QString& displayedName) +{ + // Plugins whose directory, id and title all differ + static const QMap overrides = { + {"ChannelAnalyzer", "chanalyzer"}, + {"IEEE_802_15_4_Mod", "mod802.15.4"}, + }; + + QStringList idCandidates; + QString normId = normalize(id); + idCandidates.append(normId); + idCandidates.append(normalize(uri.section('.', -1))); + + if (overrides.contains(id)) { + idCandidates.prepend(normalize(overrides[id])); + } + + // Device plugins share a hardware id between input and output and live in + // "input" / "output" directories + idCandidates.append(normId + "input"); + idCandidates.append(normId + "output"); + + for (const QString affix : {"demod", "mod"}) + { + if (normId.endsWith(affix) && (normId.size() > affix.size())) { + idCandidates.append(normId.left(normId.size() - affix.size())); + } + } + + auto dirCandidates = [](const QString& dir) + { + QStringList result; + QString normDir = normalize(dir); + result.append(normDir); + + for (const QString affix : {"demod", "mod"}) + { + if (normDir.startsWith(affix) && (normDir.size() > affix.size())) { + result.append(normDir.mid(affix.size())); + } + } + + return result; + }; + + // Pass 1: names + for (Readme& readme : m_readmes) + { + if (!groups.contains(readme.group)) { + continue; + } + + for (const QString& d : dirCandidates(readme.dir)) + { + if (idCandidates.contains(d)) + { + readme.used = true; + return &readme; + } + } + } + + // Pass 2: displayed name against the readme title, e.g. "ADS-B Demodulator" and "ADS-B demodulator plugin" + QString normName = normalize(displayedName); + + if (!normName.isEmpty()) + { + for (Readme& readme : m_readmes) + { + if (!groups.contains(readme.group)) { + continue; + } + + QString normTitle = normalize(readme.title); + + if (normTitle.startsWith(normName) || normName.startsWith(normTitle)) + { + readme.used = true; + return &readme; + } + } + } + + return nullptr; +} + +QString MCPDocs::normalize(const QString& s) +{ + QString result; + + for (const QChar& c : s.toLower()) + { + if (c.isLetterOrNumber()) { + result.append(c); + } + } + + return result; +} + +QString MCPDocs::readFile(const QString& path) +{ + QFile file(path); + + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { + return QString(); + } + + return QString::fromUtf8(file.readAll()); +} + +// Readmes mix HTML headings with markdown. Normalize headings to markdown and drop images, +// which cannot be served to the model. +QString MCPDocs::toMarkdown(const QString& raw) +{ + static const QRegularExpression htmlHeading("^\\s*(.*?)\\s*$"); + static const QRegularExpression image("^\\s*!\\[[^\\]]*\\]\\([^)]*\\)\\s*$"); + static const QRegularExpression htmlImage("^\\s*]*>\\s*$", QRegularExpression::CaseInsensitiveOption); + QStringList out; + + for (const QString& line : raw.split('\n')) + { + QRegularExpressionMatch m = htmlHeading.match(line); + + if (m.hasMatch()) + { + out.append(QString(m.captured(1).toInt(), '#') + " " + m.captured(2).trimmed()); + continue; + } + + if (image.match(line).hasMatch() || htmlImage.match(line).hasMatch()) { + continue; + } + + out.append(line.endsWith('\r') ? line.chopped(1) : line); + } + + return out.join('\n'); +} + +// Returns the heading text of a markdown heading line and its level, or level 0 for other lines +QString MCPDocs::headingText(const QString& line, int& level) +{ + static const QRegularExpression mdHeading("^(#{1,6})\\s+(.*?)\\s*#*\\s*$"); + static const QRegularExpression htmlHeading("^\\s*(.*?)\\s*$"); + QRegularExpressionMatch m = mdHeading.match(line); + + if (m.hasMatch()) + { + level = m.captured(1).size(); + return m.captured(2); + } + + m = htmlHeading.match(line); + + if (m.hasMatch()) + { + level = m.captured(1).toInt(); + return m.captured(2).trimmed(); + } + + level = 0; + return QString(); +} + +QStringList MCPDocs::extractHeadings(const QString& markdown) +{ + QStringList headings; + + for (const QString& line : markdown.split('\n')) + { + int level; + QString heading = headingText(line, level); + + if (level > 0) { + headings.append(QString(level, '#') + " " + heading); + } + } + + return headings; +} diff --git a/plugins/feature/mcpserver/mcpdocs.h b/plugins/feature/mcpserver/mcpdocs.h new file mode 100644 index 000000000..5e5e6a6ee --- /dev/null +++ b/plugins/feature/mcpserver/mcpdocs.h @@ -0,0 +1,85 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPDOCS_H_ +#define INCLUDE_FEATURE_MCPDOCS_H_ + +#include +#include +#include +#include + +class PluginInterface; + +// Serves the plugin readme files (compiled into this plugin as resources under :/mcpdocs) +// to MCP clients, mapped to the ids of the plugins registered in this instance. +class MCPDocs +{ +public: + struct Doc + { + QString kind; //!< "channel", "device" or "feature" for a plugin; "gui" for a page of the GUI's own, such as the spectrum display + QString id; //!< Type id as used by the tools: channelType, device hwType or featureType; a short name for a GUI page + QStringList aliases; //!< Other ids the plugin is known by (e.g. the registration id of a device when it differs from the enumerated hwType) + QString direction; //!< "rx", "tx" or "mimo" for channels and devices, empty for features + QString name; //!< Displayed name from the plugin descriptor + QString title; //!< First heading of the readme + QString path; //!< Resource path of the readme + QStringList headings; //!< Section headings, in order, with "#" markers for level + PluginInterface *plugin; + }; + + MCPDocs(); + + const QList& list(); + const Doc *find(const QString& type, const QString& kind); + QString text(const Doc& doc, const QString& section = QString()); + QJsonObject index(); + QString guide(); //!< The curated receiving guide + QStringList unmatchedReadmes(); //!< Readmes for which no registered plugin was found + + static QString uri(const Doc& doc) { return QString("sdrangel://docs/%1/%2").arg(doc.kind).arg(doc.id); } + +private: + struct Readme + { + QString group; //!< channelrx, samplesource, feature... + QString dir; //!< Plugin directory name + QString path; + QString title; + bool used; + }; + + bool m_loaded; + QList m_docs; + QList m_readmes; + + void load(); + void scanReadmes(); + const Readme *match(const QStringList& groups, const QString& id, const QString& uri, const QString& displayedName); + void addDoc(const QString& kind, const QString& id, const QString& direction, const QString& uri, const QString& displayedName, const QStringList& groups, PluginInterface *plugin); + void addGuiDocs(); //!< The GUI's own pages, which no plugin owns + void applyEnumeratedDeviceIds(); + static QString normalize(const QString& s); + static QString readFile(const QString& path); + static QString toMarkdown(const QString& raw); + static QStringList extractHeadings(const QString& markdown); + static QString headingText(const QString& line, int& level); +}; + +#endif // INCLUDE_FEATURE_MCPDOCS_H_ diff --git a/plugins/feature/mcpserver/mcperror.h b/plugins/feature/mcpserver/mcperror.h new file mode 100644 index 000000000..75ef1dcc6 --- /dev/null +++ b/plugins/feature/mcpserver/mcperror.h @@ -0,0 +1,42 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPERROR_H_ +#define INCLUDE_FEATURE_MCPERROR_H_ + +#include + +// Protocol level failure: becomes a JSON-RPC error response +struct MCPError +{ + int code; + QString message; + + MCPError(int aCode, const QString& aMessage) : code(aCode), message(aMessage) {} +}; + +// Tool level failure: becomes a tools/call result with isError set, so the model can +// read the message and try again +struct MCPToolError +{ + QString message; + + explicit MCPToolError(const QString& aMessage) : message(aMessage) {} +}; + +#endif // INCLUDE_FEATURE_MCPERROR_H_ diff --git a/plugins/feature/mcpserver/mcpprotocol.cpp b/plugins/feature/mcpserver/mcpprotocol.cpp new file mode 100644 index 000000000..766be14c6 --- /dev/null +++ b/plugins/feature/mcpserver/mcpprotocol.cpp @@ -0,0 +1,676 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include + +#include "mcpstreams.h" +#include "mcpprotocol.h" + +const char* const MCPProtocol::m_serverName = "SDRangel"; +const char* const MCPProtocol::m_latestProtocolVersion = "2025-06-18"; + +MCPProtocol::MCPProtocol(WebAPIAdapterInterface *webAPIAdapterInterface) : + m_webAPIAdapterInterface(webAPIAdapterInterface), + m_tools(webAPIAdapterInterface), + m_streams(nullptr) +{ +} + +QJsonObject MCPProtocol::makeResult(const QJsonValue& id, const QJsonValue& result) +{ + QJsonObject response; + response["jsonrpc"] = "2.0"; + response["id"] = id; + response["result"] = result; + return response; +} + +QJsonObject MCPProtocol::makeError(const QJsonValue& id, int code, const QString& message) +{ + QJsonObject error; + error["code"] = code; + error["message"] = message; + QJsonObject response; + response["jsonrpc"] = "2.0"; + response["id"] = id.isUndefined() ? QJsonValue() : id; + response["error"] = error; + return response; +} + +// JSON-RPC 2.0 rules: a message with an "id" member is a request and always gets a reply +// carrying that id, even if the id is null (MCP forbids null ids but a client that sends one +// must still learn what happened). A message with a method and no id is a notification and +// gets no reply. Anything that is neither a valid request, notification nor response is +// answered with an Invalid Request error whose id is null when it cannot be identified. +bool MCPProtocol::handleMessage(const QJsonObject& message, QJsonObject& response, Context& context) +{ + bool hasId = message.contains("id"); + QJsonValue id = hasId ? message["id"] : QJsonValue(); + bool hasMethod = message["method"].isString() && !message["method"].toString().isEmpty(); + + if (!hasMethod) + { + // A response to a server initiated request. We never send any, so there is nothing to do. + if (hasId && (message.contains("result") || message.contains("error"))) { + return false; + } + + response = makeError(id, InvalidRequest, "Invalid request: missing method"); + return true; + } + + if (message["jsonrpc"].toString() != "2.0") + { + response = makeError(id, InvalidRequest, "Invalid request: jsonrpc must be \"2.0\""); + return true; + } + + QString method = message["method"].toString(); + QJsonObject params = message["params"].toObject(); + + try + { + // Calls are serialized so that tool handlers never run concurrently, except for the + // capture tools: those deliberately block for up to 30 seconds, and holding the lock + // across one would stall every other request, including ping and the status calls a + // client needs while a capture runs. They protect their own state instead. + QJsonValue result; + + if (isLongRunning(method, params)) + { + result = dispatch(method, params, context); + } + else + { + QMutexLocker locker(&m_mutex); + result = dispatch(method, params, context); + } + + if (!hasId) { + return false; // notification: no reply + } + + response = makeResult(id, result); + return true; + } + catch (const MCPError& e) + { + qDebug() << "MCPProtocol::handleMessage:" << method << "error:" << e.code << e.message; + + if (!hasId) { + return false; + } + + response = makeError(id, e.code, e.message); + return true; + } + catch (const MCPToolError& e) + { + // A tool level failure raised outside tools/call: resources/read shares the tool + // helpers, and a resource that is not there (a device set index that does not exist, + // an unknown schema type) surfaces here. Left uncaught it would leave the HTTP thread + // and take the application down, since MCPToolError is not a std::exception + qDebug() << "MCPProtocol::handleMessage:" << method << "error:" << e.message; + + if (!hasId) { + return false; + } + + response = makeError(id, method.startsWith("resources/") ? ResourceNotFound : InvalidParams, e.message); + return true; + } + catch (const std::exception& e) + { + qWarning() << "MCPProtocol::handleMessage:" << method << "exception:" << e.what(); + + if (!hasId) { + return false; + } + + response = makeError(id, InternalError, QString("Internal error: %1").arg(e.what())); + return true; + } + catch (...) + { + // Nothing thrown here may reach the connection thread, which has no handler + qWarning() << "MCPProtocol::handleMessage:" << method << "unknown exception"; + + if (!hasId) { + return false; + } + + response = makeError(id, InternalError, "Internal error"); + return true; + } +} + +// The capture tools sleep for the requested duration, so they run without the dispatch lock. +// MCPCapture and MCPAudioCapture each serialize their own work, and everything they call +// through the Web API adapter is safe to use from several threads. +bool MCPProtocol::isLongRunning(const QString& method, const QJsonObject& params) +{ + if (method != "tools/call") { + return false; + } + + static const QStringList blocking = {"record_iq", "capture_audio", "listen", "scan"}; + return blocking.contains(params["name"].toString()); +} + +QJsonValue MCPProtocol::dispatch(const QString& method, const QJsonObject& params, Context& context) +{ + if (method == "initialize") { + return initialize(params, context); + } else if (method == "ping") { + return QJsonObject(); + } else if (method.startsWith("notifications/")) { + return QJsonValue(); // initialized, cancelled, progress, roots/list_changed: nothing to do + } else if (method == "tools/list") { + return toolsList(params); + } else if (method == "tools/call") { + return toolsCall(params); + } else if (method == "resources/list") { + return resourcesList(params); + } else if (method == "resources/templates/list") { + return resourcesTemplatesList(params); + } else if (method == "resources/read") { + return resourcesRead(params); + } else if (method == "resources/subscribe") { + return resourcesSubscribe(params, context, true); + } else if (method == "resources/unsubscribe") { + return resourcesSubscribe(params, context, false); + } else if (method == "prompts/list") { + return promptsList(params); + } else if (method == "prompts/get") { + return promptsGet(params); + } else if (method == "logging/setLevel") { + return QJsonObject(); + } else if (method == "completion/complete") { + QJsonObject completion; + completion["values"] = QJsonArray(); + completion["hasMore"] = false; + QJsonObject result; + result["completion"] = completion; + return result; + } else { + throw MCPError(MethodNotFound, QString("Method not found: %1").arg(method)); + } +} + +// Protocol revisions this server implements, newest first. 2024-11-05 is deliberately absent: +// it specifies the two endpoint HTTP+SSE transport, with a separate message endpoint announced +// by an initial endpoint event, and this server only implements Streamable HTTP. +QStringList MCPProtocol::supportedVersions() +{ + return QStringList{"2025-06-18", "2025-03-26"}; +} + +bool MCPProtocol::isSupportedVersion(const QString& version) +{ + return supportedVersions().contains(version); +} + +QJsonValue MCPProtocol::initialize(const QJsonObject& params, Context& context) +{ + // Echo the client's version if we implement it, otherwise offer the newest we have + QString requested = params["protocolVersion"].toString(); + QString version = isSupportedVersion(requested) ? requested : QString(m_latestProtocolVersion); + + QJsonObject clientInfo = params["clientInfo"].toObject(); + qInfo("MCPProtocol::initialize: client %s %s protocol %s", + qPrintable(clientInfo["name"].toString()), + qPrintable(clientInfo["version"].toString()), + qPrintable(requested)); + + QJsonObject tools; + tools["listChanged"] = false; + QJsonObject resources; + resources["subscribe"] = true; + resources["listChanged"] = false; + QJsonObject prompts; + prompts["listChanged"] = false; + QJsonObject capabilities; + capabilities["tools"] = tools; + capabilities["resources"] = resources; + capabilities["prompts"] = prompts; + + QJsonObject serverInfo; + serverInfo["name"] = m_serverName; + serverInfo["title"] = "SDRangel SDR"; + serverInfo["version"] = qApp->applicationVersion(); + + // A session lets subscriptions and the event stream of this client be told apart from + // those of any other. Clients that ignore the session id share an anonymous one. + if (m_streams) { + context.m_newSessionId = m_streams->createSession(); + } + + QJsonObject result; + result["protocolVersion"] = version; + result["capabilities"] = capabilities; + result["serverInfo"] = serverInfo; + result["instructions"] = instructions(); + return result; +} + +// resources/subscribe and resources/unsubscribe. Updates are delivered as +// notifications/resources/updated on the SSE stream opened with GET. +QJsonValue MCPProtocol::resourcesSubscribe(const QJsonObject& params, Context& context, bool subscribe) +{ + QString uri = params["uri"].toString(); + + if (uri.isEmpty()) { + throw MCPError(InvalidParams, "Invalid params: missing uri"); + } + + if (!m_streams) { + throw MCPError(InternalError, "Subscriptions are not available"); + } + + // Only the resources that change are worth subscribing to + static const QStringList subscribable = { + "sdrangel://instance", "sdrangel://packets", "sdrangel://map/items" + }; + + if (subscribe && !subscribable.contains(uri) && !uri.startsWith("sdrangel://deviceset/")) + { + throw MCPError(InvalidParams, QString("Resource %1 does not change, so it cannot be subscribed to. " + "Subscribable resources are %2 and sdrangel://deviceset/{index}").arg(uri).arg(subscribable.join(", "))); + } + + // A device set URI has to name one that could exist: the index the Web API accepts is two + // digits, so anything else is a mistake rather than a resource to watch for + if (subscribe && uri.startsWith("sdrangel://deviceset/")) + { + static const QRegularExpression deviceSetUri("^sdrangel://deviceset/([0-9]{1,2})$"); + + if (!deviceSetUri.match(uri).hasMatch()) { + throw MCPError(InvalidParams, QString("Resource %1 is not a device set: use sdrangel://deviceset/{index} with an index from 0 to 99").arg(uri)); + } + } + + if (subscribe) + { + if (!m_streams->subscribe(context.m_sessionId, uri)) { + throw MCPError(InvalidParams, QString("This session already has %1 subscriptions; unsubscribe from one first").arg(MCPStreams::m_maxSubscriptions)); + } + } + else + { + m_streams->unsubscribe(context.m_sessionId, uri); + } + + return QJsonObject(); +} + +QString MCPProtocol::instructions() +{ + return + "SDRangel is a software defined radio (SDR) application. This server controls a running SDRangel instance.\n" + "\n" + "Start with the intent tools: listen (receive a frequency in a mode, one call) and scan (find and follow activity across " + "frequencies). get_status is the cheapest view of what is running. Use the object level tools to adjust what they set up.\n" + "\n" + "Object model: a device set (R0, R1... for receivers, T0... for transmitters) holds one sampling device (an SDR such as an " + "RTL-SDR) and any number of channels (demodulators/modulators) processing its baseband. Device settings include centerFrequency " + "(Hz), sample rate and gain; channel settings include inputFrequencyOffset (Hz from the device centre). Features are device " + "independent plugins (Map, AIS, APRS...) in the single feature set (index 0).\n" + "\n" + "Settings keys are specific to each type, but the common ones (centerFrequency, inputFrequencyOffset, rfBandwidth, squelch, " + "volume, gain) can be set straight away: a set_* tool applies what it recognises, replies with just the keys changed, and names " + "any it did not recognise. Call describe_settings only for an unfamiliar key or when you need its range. get_receiving_guide " + "says which demodulator, frequency and sample rate a named signal needs; get_docs has a plugin's full readme, by section.\n" + "\n" + "A receiver's baseband rate (for RTL-SDR, devSampleRate / 2^log2Decim) must exceed every channel's RF bandwidth; listen " + "chooses it for you, and get_channel_report shows the resulting channelSampleRate.\n" + "\n" + "Recording: record_iq writes baseband IQ for a fixed time, start_iq_recording/stop_iq_recording for longer; capture_audio " + "writes a demodulator's audio to WAV and says whether it was silent. Files go under the capture directory shown by " + "get_server_status. Live data: get_packets (AIS, APRS, LoRa, M17, Meshtastic, Inmarsat, radiosondes) and get_map_items " + "(aircraft, ships, sondes, satellites) return what running plugins have decoded.\n" + "\n" + "Frequencies are in Hz. Direction is \"rx\" or \"tx\". Creation tools wait for SDRangel to finish and return the new index; " + "setting changes are applied asynchronously."; +} + +QJsonValue MCPProtocol::toolsList(const QJsonObject& params) +{ + (void) params; + QJsonObject result; + result["tools"] = m_tools.listTools(); + return result; +} + +QJsonValue MCPProtocol::toolsCall(const QJsonObject& params) +{ + QString name = params["name"].toString(); + + if (name.isEmpty()) { + throw MCPError(InvalidParams, "Invalid params: missing tool name"); + } + + return m_tools.callTool(name, params["arguments"].toObject()); +} + +QJsonObject MCPProtocol::textContent(const QString& text) +{ + QJsonObject content; + content["type"] = "text"; + content["text"] = text; + return content; +} + +struct MCPResourceDef { + const char *uri; + const char *name; + const char *description; +}; + +static const MCPResourceDef staticResources[] = { + {"sdrangel://instance", "Instance summary", "Version, device sets with their devices and channels, and features currently configured"}, + {"sdrangel://plugins/devices", "Available sampling devices", "SDR hardware (and software sources/sinks) that can be selected in a device set"}, + {"sdrangel://plugins/channels", "Available channel types", "Demodulator and modulator plugins that can be added to a device set"}, + {"sdrangel://plugins/features", "Available feature types", "Feature plugins that can be added to the feature set"}, + {"sdrangel://presets", "Presets", "Saved device set presets (device and channel settings) grouped by name"}, + {"sdrangel://configurations", "Configurations", "Saved whole-instance configurations grouped by name"}, + {"sdrangel://guide", "Receiving guide", "Which demodulator and frequency to use for a given signal, the minimum sample rate some modes need, and why nothing is received"}, + {"sdrangel://docs", "Documentation index", "Documentation available for the devices, channels and features registered in this instance, and for GUI pages such as the spectrum display, with section headings"}, + {"sdrangel://packets", "Recent packets", "The most recent packets decoded by AIS, packet (AX.25/APRS), LoRa, M17, Meshtastic, MeshCore, Inmarsat and radiosonde demodulators"}, + {"sdrangel://map/items", "Map items", "Objects currently plotted on the map: aircraft, ships, APRS stations, radiosondes, satellites, beacons"}, +}; + +QJsonValue MCPProtocol::resourcesList(const QJsonObject& params) +{ + (void) params; + QJsonArray resources; + + for (const auto& def : staticResources) + { + QJsonObject resource; + resource["uri"] = def.uri; + resource["name"] = def.name; + resource["description"] = def.description; + resource["mimeType"] = "application/json"; + resources.append(resource); + } + + QJsonObject result; + result["resources"] = resources; + return result; +} + +QJsonValue MCPProtocol::resourcesTemplatesList(const QJsonObject& params) +{ + (void) params; + QJsonArray templates; + + QJsonObject schema; + schema["uriTemplate"] = "sdrangel://schema/{type}"; + schema["name"] = "Settings schema"; + schema["description"] = "Documentation of the settings, report and actions keys for a device (hardware id such as RTLSDR), channel (type such as ADSBDemod) or feature (type such as Map)"; + schema["mimeType"] = "text/plain"; + templates.append(schema); + + QJsonObject deviceset; + deviceset["uriTemplate"] = "sdrangel://deviceset/{deviceSetIndex}"; + deviceset["name"] = "Device set"; + deviceset["description"] = "Sampling device and channels of a device set"; + deviceset["mimeType"] = "application/json"; + templates.append(deviceset); + + QJsonObject docs; + docs["uriTemplate"] = "sdrangel://docs/{kind}/{id}"; + docs["name"] = "Plugin documentation"; + docs["description"] = "User documentation (readme) of a plugin: kind is device, channel or feature and id is the type id (e.g. channel/ADSBDemod, device/RTLSDR, feature/Map)"; + docs["mimeType"] = "text/markdown"; + templates.append(docs); + + QJsonObject result; + result["resourceTemplates"] = templates; + return result; +} + +QJsonValue MCPProtocol::resourcesRead(const QJsonObject& params) +{ + QString uri = params["uri"].toString(); + QJsonObject content; + content["uri"] = uri; + + if (uri == "sdrangel://instance") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getInstanceSummary()).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://plugins/devices") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getAvailableDevices()).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://plugins/channels") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getAvailableChannels()).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://plugins/features") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getAvailableFeatures()).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://presets") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getPresets()).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://configurations") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getConfigurations()).toJson(QJsonDocument::Compact)); + } + else if (uri.startsWith("sdrangel://schema/")) + { + content["mimeType"] = "text/plain"; + content["text"] = m_tools.describeType(uri.mid(QString("sdrangel://schema/").size()), ""); + } + else if (uri == "sdrangel://guide") + { + content["mimeType"] = "text/markdown"; + content["text"] = m_tools.docs().guide(); + } + else if (uri == "sdrangel://packets") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.dataFeed().getPackets(QString(), QString(), 100, 0)).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://map/items") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.dataFeed().getMapItems(QString(), QString(), 500, false)).toJson(QJsonDocument::Compact)); + } + else if (uri == "sdrangel://docs") + { + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.docs().index()).toJson(QJsonDocument::Compact)); + } + else if (uri.startsWith("sdrangel://docs/")) + { + QString rest = uri.mid(QString("sdrangel://docs/").size()); + QString kind = rest.section('/', 0, 0); + QString id = rest.section('/', 1); + const MCPDocs::Doc *doc = m_tools.docs().find(id, kind); + + if (!doc) { + throw MCPError(ResourceNotFound, QString("Resource not found: %1. Read sdrangel://docs for the available documentation").arg(uri)); + } + + content["mimeType"] = "text/markdown"; + content["text"] = m_tools.docs().text(*doc); + } + else if (uri.startsWith("sdrangel://deviceset/")) + { + bool ok; + int index = uri.mid(QString("sdrangel://deviceset/").size()).toInt(&ok); + + if (!ok) { + throw MCPError(InvalidParams, QString("Invalid device set index in %1").arg(uri)); + } + + content["mimeType"] = "application/json"; + content["text"] = QString(QJsonDocument(m_tools.getDeviceSet(index)).toJson(QJsonDocument::Compact)); + } + else + { + throw MCPError(ResourceNotFound, QString("Resource not found: %1").arg(uri)); + } + + QJsonArray contents; + contents.append(content); + QJsonObject result; + result["contents"] = contents; + return result; +} + +QJsonObject MCPProtocol::promptMessage(const QString& text) +{ + QJsonObject message; + message["role"] = "user"; + message["content"] = textContent(text); + return message; +} + +QJsonValue MCPProtocol::promptsList(const QJsonObject& params) +{ + (void) params; + QJsonArray prompts; + + { + QJsonObject arg1; + arg1["name"] = "signal"; + arg1["description"] = "What to receive, e.g. ADS-B, AIS, APRS, broadcast FM, an airband frequency in MHz"; + arg1["required"] = true; + QJsonObject arg2; + arg2["name"] = "device"; + arg2["description"] = "Which SDR to use (hardware type or serial). Optional: the first available receiver is used otherwise"; + arg2["required"] = false; + QJsonObject prompt; + prompt["name"] = "setup_receiver"; + prompt["title"] = "Set up a receiver"; + prompt["description"] = "Configure an SDR device and demodulator to receive a given signal or protocol"; + prompt["arguments"] = QJsonArray({arg1, arg2}); + prompts.append(prompt); + } + { + QJsonObject arg1; + arg1["name"] = "frequency"; + arg1["description"] = "Centre frequency to record, e.g. 126 MHz"; + arg1["required"] = true; + QJsonObject arg2; + arg2["name"] = "duration"; + arg2["description"] = "How long to record for, e.g. 30 seconds"; + arg2["required"] = false; + QJsonObject arg3; + arg3["name"] = "file"; + arg3["description"] = "Output file path"; + arg3["required"] = false; + QJsonObject prompt; + prompt["name"] = "record_iq"; + prompt["title"] = "Record IQ data"; + prompt["description"] = "Record baseband IQ samples from an SDR to a file"; + prompt["arguments"] = QJsonArray({arg1, arg2, arg3}); + prompts.append(prompt); + } + { + QJsonObject prompt; + prompt["name"] = "explain_configuration"; + prompt["title"] = "Explain the current configuration"; + prompt["description"] = "Describe what SDRangel is currently set up to do"; + prompt["arguments"] = QJsonArray(); + prompts.append(prompt); + } + + QJsonObject result; + result["prompts"] = prompts; + return result; +} + +QJsonValue MCPProtocol::promptsGet(const QJsonObject& params) +{ + QString name = params["name"].toString(); + QJsonObject args = params["arguments"].toObject(); + QJsonObject result; + QJsonArray messages; + + if (name == "setup_receiver") + { + QString signal = args["signal"].toString(); + QString device = args["device"].toString(); + result["description"] = QString("Set up SDRangel to receive %1").arg(signal); + messages.append(promptMessage(QString( + "Set up SDRangel to receive: %1.%2\n\n" + "1. If you do not already know the frequency and which demodulator this signal needs, call get_receiving_guide.\n" + "2. Call listen with that frequency and mode%3. It picks a device, sets a sample rate that suits the mode, adds the " + "demodulator, starts everything and reports the run state and signal level, so one call replaces the whole " + "device set, settings and channel sequence. Modes are bfm, wfm, nfm, am, ssb, usb, lsb, dab, adsb, ais and dsd, " + "or any channel type id from list_channel_types.\n" + "3. Read what listen returned. If it reports a note, act on it. Adjust with set_channel_settings if the signal needs " + "it (squelch, volume, rfBandwidth) and use get_channel_report to confirm.\n" + "4. Summarise what is now running, including anything that did not work.") + .arg(signal) + .arg(device.isEmpty() ? "" : QString(" Use this device: %1.").arg(device)) + .arg(device.isEmpty() ? "" : QString(" and device \"%1\"").arg(device)))); + } + else if (name == "record_iq") + { + QString frequency = args["frequency"].toString(); + QString duration = args["duration"].toString(); + QString file = args["file"].toString(); + result["description"] = QString("Record IQ data at %1").arg(frequency); + messages.append(promptMessage(QString( + "Record baseband IQ data from an SDR centred on %1%2%3.\n\n" + "1. Call get_status. If a receiver is already running on that frequency, record from it. Otherwise get one running: " + "listen is the quickest way and confirms a signal is there, or use add_deviceset, set_device_settings and " + "start_device if you want no demodulator.\n" + "2. Call record_iq with the device set, duration and file name for a short capture, or start_iq_recording and " + "stop_iq_recording for a longer one. It adds and removes its own File Sink channel; get_server_status shows the " + "directory the files go to.\n" + "3. Report the files written with their size and duration. Warn the user if the capture will be large: the file grows " + "by roughly four bytes per sample, so a 2 MS/s capture uses about 8 MB per second.") + .arg(frequency) + .arg(duration.isEmpty() ? "" : QString(" for %1").arg(duration)) + .arg(file.isEmpty() ? "" : QString(" to the file %1").arg(file)))); + } + else if (name == "explain_configuration") + { + result["description"] = "Explain the current SDRangel configuration"; + messages.append(promptMessage( + "Call get_status: it returns one line per device set and feature, with the device, its frequency, its run state and " + "the channels on it. That is usually enough. Only call get_device_settings, get_channel_settings or get_channel_report " + "for a device set the user asks about in more detail, since those return every key and are far larger.\n\n" + "Then explain in plain language what SDRangel is currently configured to do: which SDRs are in use, what frequencies they " + "are tuned to, which demodulators are running and what they are decoding, and whether the devices are running or stopped.")); + } + else + { + throw MCPError(InvalidParams, QString("Prompt not found: %1").arg(name)); + } + + result["messages"] = messages; + return result; +} diff --git a/plugins/feature/mcpserver/mcpprotocol.h b/plugins/feature/mcpserver/mcpprotocol.h new file mode 100644 index 000000000..ac94354c8 --- /dev/null +++ b/plugins/feature/mcpserver/mcpprotocol.h @@ -0,0 +1,104 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPPROTOCOL_H_ +#define INCLUDE_FEATURE_MCPPROTOCOL_H_ + +#include +#include +#include +#include + +#include "mcptools.h" + +class MCPStreams; + +class WebAPIAdapterInterface; + +// Model Context Protocol JSON-RPC layer: initialize, tools, resources and prompts. +// Transport independent. Calls are serialized with a mutex so tool handlers +// never run concurrently. +class MCPProtocol +{ +public: + enum ErrorCode { + ParseError = -32700, + InvalidRequest = -32600, + MethodNotFound = -32601, + InvalidParams = -32602, + InternalError = -32603, + ResourceNotFound = -32002 //!< MCP's own code for a resources/read of a URI that does not exist + }; + + // Per request state exchanged with the transport + struct Context + { + QString m_sessionId; //!< In: the Mcp-Session-Id header of the request, empty if none + QString m_newSessionId; //!< Out: set by initialize, to be returned in the response header + }; + + explicit MCPProtocol(WebAPIAdapterInterface *webAPIAdapterInterface); + + void setStreams(MCPStreams *streams) { m_streams = streams; m_tools.setStreams(streams); } + + // Handles one JSON-RPC message. Returns true if response holds a reply that must be sent + // (i.e. the message was a request rather than a notification or response). + bool handleMessage(const QJsonObject& message, QJsonObject& response, Context& context); + + void setCaptureDir(const QString& dir) { m_tools.capture().setCaptureDir(dir); } + MCPDataFeed& getDataFeed() { return m_tools.dataFeed(); } + MCPTools& getTools() { return m_tools; } + void setOwnerFeature(const QObject *feature) { m_tools.setOwnerFeature(feature); } + //!< See MCPTools::setStopping + void setStopping(bool stopping) { m_tools.setStopping(stopping); } + + static QJsonObject makeResult(const QJsonValue& id, const QJsonValue& result); + static QJsonObject makeError(const QJsonValue& id, int code, const QString& message); + + static QStringList supportedVersions(); + static bool isSupportedVersion(const QString& version); + + static const char* const m_serverName; + static const char* const m_latestProtocolVersion; + +private: + WebAPIAdapterInterface *m_webAPIAdapterInterface; + MCPTools m_tools; + MCPStreams *m_streams; + QMutex m_mutex; + + QJsonValue dispatch(const QString& method, const QJsonObject& params, Context& context); + //!< True for the tools that block for seconds, which must not hold the dispatch lock + static bool isLongRunning(const QString& method, const QJsonObject& params); + + QJsonValue initialize(const QJsonObject& params, Context& context); + QJsonValue resourcesSubscribe(const QJsonObject& params, Context& context, bool subscribe); + QJsonValue toolsList(const QJsonObject& params); + QJsonValue toolsCall(const QJsonObject& params); + QJsonValue resourcesList(const QJsonObject& params); + QJsonValue resourcesTemplatesList(const QJsonObject& params); + QJsonValue resourcesRead(const QJsonObject& params); + QJsonValue promptsList(const QJsonObject& params); + QJsonValue promptsGet(const QJsonObject& params); + + static QJsonObject textContent(const QString& text); + static QJsonObject promptMessage(const QString& text); + static QString instructions(); +}; + +#endif // INCLUDE_FEATURE_MCPPROTOCOL_H_ diff --git a/plugins/feature/mcpserver/mcprequesthandler.cpp b/plugins/feature/mcpserver/mcprequesthandler.cpp new file mode 100644 index 000000000..075e3e554 --- /dev/null +++ b/plugins/feature/mcpserver/mcprequesthandler.cpp @@ -0,0 +1,403 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include + +#include "httprequest.h" +#include "httpresponse.h" + +#include "mcpprotocol.h" +#include "mcpstreams.h" +#include "mcprequesthandler.h" + +MCPRequestHandler::MCPRequestHandler(MCPProtocol *protocol, MCPStreams *streams, QObject *parent) : + qtwebapp::HttpRequestHandler(parent), + m_protocol(protocol), + m_streams(streams), + m_requestCount(0) +{ +} + +void MCPRequestHandler::setToken(const QString& token) +{ + QMutexLocker locker(&m_mutex); + m_token = token; +} + +void MCPRequestHandler::resetStatistics() +{ + QMutexLocker locker(&m_mutex); + m_requestCount.storeRelaxed(0); + m_lastRequest.clear(); +} + +QString MCPRequestHandler::getLastRequest() const +{ + QMutexLocker locker(&m_mutex); + return m_lastRequest; +} + +void MCPRequestHandler::recordRequest(const QString& what) +{ + QMutexLocker locker(&m_mutex); + m_requestCount.fetchAndAddRelaxed(1); + m_lastRequest = what; +} + +void MCPRequestHandler::service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QByteArray path = request.getPath(); + QByteArray method = request.getMethod(); + + if ((path != "/mcp") && (path != "/mcp/") && (path != "/")) + { + sendHttpError(response, 404, "Not Found", QString("Unknown path %1. The MCP endpoint is /mcp").arg(QString(path))); + return; + } + + if (!checkOrigin(request, response)) { + return; + } + + if (!checkAuthorization(request, response)) { + return; + } + + if (!checkProtocolVersion(request, response)) { + return; + } + + if (method == "POST") + { + handlePost(request, response); + } + else if (method == "GET") + { + handleGet(request, response); + } + else if (method == "DELETE") + { + handleDelete(request, response); + } + else if (method == "OPTIONS") + { + response.setHeader("Allow", "POST, GET, DELETE"); + sendEmpty(response, 204, "No Content"); + } + else + { + response.setHeader("Allow", "POST, GET, DELETE"); + sendEmpty(response, 405, "Method Not Allowed"); + } +} + +// Clients send MCP-Protocol-Version on every request after initialize. A version this server +// does not implement is refused with 400 rather than served on a guess, as the Streamable HTTP +// transport requires. A missing header means the oldest version, which is supported. +bool MCPRequestHandler::checkProtocolVersion(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QString version = QString::fromUtf8(request.getHeader("MCP-Protocol-Version")).trimmed(); + + if (version.isEmpty() || MCPProtocol::isSupportedVersion(version)) { + return true; + } + + sendHttpError(response, 400, "Bad Request", + QString("Unsupported MCP protocol version %1. This server supports %2") + .arg(version).arg(MCPProtocol::supportedVersions().join(", "))); + return false; +} + +// A session id is optional: clients that send one must send a valid one, and a client that +// sends none shares the anonymous session. An unknown id gets 404, which tells the client +// to start a new session with initialize, as the specification requires. +bool MCPRequestHandler::checkSession(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response, QString& sessionId) +{ + sessionId = QString::fromUtf8(request.getHeader("Mcp-Session-Id")).trimmed(); + + if (sessionId.isEmpty() || m_streams->sessionExists(sessionId)) { + return true; + } + + sendHttpError(response, 404, "Not Found", QString("Unknown session %1. Call initialize to start a new one").arg(sessionId)); + return false; +} + +// Opens the server to client event stream. This thread is held until the stream is closed: +// by the client going away, by the session ending, by the server stopping, or by the +// lifetime backstop below. +void MCPRequestHandler::handleGet(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QByteArray accept = request.getHeader("Accept"); + + if (!accept.contains("text/event-stream")) + { + sendHttpError(response, 406, "Not Acceptable", "GET opens the event stream and needs Accept: text/event-stream"); + return; + } + + QString sessionId; + + if (!checkSession(request, response, sessionId)) { + return; + } + + QString error; + MCPStreams::StreamPtr stream = m_streams->open(sessionId, error); + + if (stream.isNull()) + { + sendHttpError(response, 503, "Service Unavailable", error); + return; + } + + recordRequest("GET event stream"); + response.setStatus(200); + response.setHeader("Content-Type", "text/event-stream"); + response.setHeader("Cache-Control", "no-cache"); + response.setHeader("X-Accel-Buffering", "no"); // ask proxies not to buffer the stream + + if (!sessionId.isEmpty()) { + response.setHeader("Mcp-Session-Id", sessionId.toUtf8()); + } + + // Opens the response in chunked mode and sends the headers + response.write(QByteArray(": stream opened\n\n"), false); + response.flush(); + + QElapsedTimer keepalive; + keepalive.start(); + + while (!stream->isClosed() && response.isConnected() && (stream->ageMs() < MCPStreams::m_maxStreamLifetimeMs)) + { + // A short wait so that closing the stream, and with it stopping the server, is prompt + QByteArray event = stream->waitForEvent(250); + + if (!event.isEmpty()) + { + response.write("data: " + event + "\n\n", false); + response.flush(); + } + else if (keepalive.elapsed() > 15000) + { + // Keeps intermediaries from timing the connection out, and eventually fails + // if the client has gone away without closing the connection + response.write(QByteArray(": keepalive\n\n"), false); + response.flush(); + keepalive.restart(); + } + } + + response.write(QByteArray(), true); + m_streams->close(stream); +} + +void MCPRequestHandler::handleDelete(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QString sessionId; + + if (!checkSession(request, response, sessionId)) { + return; + } + + if (sessionId.isEmpty()) + { + // Nothing identifies what to end + response.setHeader("Allow", "POST, GET, DELETE"); + sendHttpError(response, 405, "Method Not Allowed", "DELETE ends a session and needs the Mcp-Session-Id header"); + return; + } + + recordRequest("DELETE session"); + m_streams->endSession(sessionId); + sendEmpty(response, 200, "OK"); +} + +// Guard against DNS rebinding and other cross-site attacks from browsers. Native MCP clients +// send no Origin header. A browser page is only accepted from localhost; the opaque "null" +// origin (sandboxed frames, file:// pages, redirects) is rejected because it cannot be trusted. +bool MCPRequestHandler::checkOrigin(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QByteArray origin = request.getHeader("Origin").trimmed(); + + if (origin.isEmpty()) { + return true; + } + + QUrl url(QString::fromUtf8(origin)); + QString host = url.host(); + QString scheme = url.scheme(); + + if (url.isValid() && ((scheme == "http") || (scheme == "https")) + && ((host == "localhost") || (host == "127.0.0.1") || (host == "::1"))) + { + return true; + } + + sendHttpError(response, 403, "Forbidden", QString("Origin %1 not allowed").arg(QString(origin))); + return false; +} + +bool MCPRequestHandler::checkAuthorization(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + QString token; + { + QMutexLocker locker(&m_mutex); + token = m_token; + } + + if (token.isEmpty()) { + return true; + } + + QByteArray auth = request.getHeader("Authorization").trimmed(); + + if (auth.startsWith("Bearer ") && (QString(auth.mid(7)).trimmed() == token)) { + return true; + } + + response.setHeader("WWW-Authenticate", "Bearer"); + sendHttpError(response, 401, "Unauthorized", "Missing or invalid bearer token"); + return false; +} + +void MCPRequestHandler::handlePost(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + // Only accept declared JSON. Browsers can send text/plain cross-origin without a preflight, + // so requiring application/json is part of the cross-site defence. + QByteArray contentType = request.getHeader("Content-Type").trimmed().toLower(); + + if (!contentType.startsWith("application/json")) + { + sendHttpError(response, 415, "Unsupported Media Type", "Content-Type must be application/json"); + return; + } + + QString sessionId; + + if (!checkSession(request, response, sessionId)) { + return; + } + + MCPProtocol::Context context; + context.m_sessionId = sessionId; + + QJsonParseError parseError; + QJsonDocument doc = QJsonDocument::fromJson(request.getBody(), &parseError); + + if (parseError.error != QJsonParseError::NoError) + { + QJsonObject error = MCPProtocol::makeError(QJsonValue(), MCPProtocol::ParseError, + QString("Parse error: %1").arg(parseError.errorString())); + sendJson(response, 400, QJsonDocument(error)); + return; + } + + // A batch is an array of messages. Batches were removed in protocol version 2025-06-18 + // but older clients may still send them so both forms are handled. + QList messages; + bool batch = doc.isArray(); + + if (batch) + { + for (const auto& value : doc.array()) { + messages.append(value); + } + } + else if (doc.isObject()) + { + messages.append(doc.object()); + } + + if (messages.isEmpty()) + { + QJsonObject error = MCPProtocol::makeError(QJsonValue(), MCPProtocol::InvalidRequest, + batch ? "Invalid request: empty batch" : "Invalid request: expected a JSON-RPC object or array"); + sendJson(response, 400, QJsonDocument(error)); + return; + } + + QJsonArray responses; + + for (const auto& value : messages) + { + if (!value.isObject()) + { + responses.append(MCPProtocol::makeError(QJsonValue(), MCPProtocol::InvalidRequest, "Invalid request: batch member is not an object")); + continue; + } + + QJsonObject message = value.toObject(); + QString method = message["method"].toString(); + + if (!method.isEmpty()) { + recordRequest(method == "tools/call" ? QString("tools/call %1").arg(message["params"].toObject()["name"].toString()) : method); + } + + QJsonObject reply; + + if (m_protocol->handleMessage(message, reply, context)) { + responses.append(reply); + } + } + + // initialize creates a session; the client sends it back in the Mcp-Session-Id header + if (!context.m_newSessionId.isEmpty()) { + response.setHeader("Mcp-Session-Id", context.m_newSessionId.toUtf8()); + } + + if (responses.isEmpty()) + { + // Only notifications or responses: acknowledge with no body + sendEmpty(response, 202, "Accepted"); + } + else if (batch) + { + sendJson(response, 200, QJsonDocument(responses)); + } + else + { + sendJson(response, 200, QJsonDocument(responses.first().toObject())); + } +} + +void MCPRequestHandler::sendJson(qtwebapp::HttpResponse& response, int status, const QJsonDocument& doc) +{ + response.setStatus(status); + response.setHeader("Content-Type", "application/json"); + response.write(doc.toJson(QJsonDocument::Compact), true); +} + +void MCPRequestHandler::sendEmpty(qtwebapp::HttpResponse& response, int status, const QByteArray& reason) +{ + response.setStatus(status, reason); + response.write(QByteArray(), true); +} + +void MCPRequestHandler::sendHttpError(qtwebapp::HttpResponse& response, int status, const QByteArray& reason, const QString& message) +{ + QJsonObject error; + error["error"] = message; + response.setStatus(status, reason); + response.setHeader("Content-Type", "application/json"); + response.write(QJsonDocument(error).toJson(QJsonDocument::Compact), true); +} diff --git a/plugins/feature/mcpserver/mcprequesthandler.h b/plugins/feature/mcpserver/mcprequesthandler.h new file mode 100644 index 000000000..b2a92638e --- /dev/null +++ b/plugins/feature/mcpserver/mcprequesthandler.h @@ -0,0 +1,76 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPREQUESTHANDLER_H_ +#define INCLUDE_FEATURE_MCPREQUESTHANDLER_H_ + +#include +#include +#include +#include + +#include "httprequesthandler.h" + +class MCPProtocol; +class MCPStreams; + +// MCP Streamable HTTP transport on top of the qtwebapp HTTP server. +// +// Clients POST JSON-RPC 2.0 messages to /mcp and receive a JSON response. A GET with +// Accept: text/event-stream opens a server to client SSE stream, which carries +// notifications/resources/updated for the resources the client has subscribed to. +// DELETE ends the session named by the Mcp-Session-Id header. +// +// service() is called from the HTTP connection handler threads, never from the main thread, +// so it is safe to block here: while serving an SSE stream this thread is held for the life +// of the stream. +class MCPRequestHandler : public qtwebapp::HttpRequestHandler +{ + Q_OBJECT +public: + MCPRequestHandler(MCPProtocol *protocol, MCPStreams *streams, QObject *parent = nullptr); + + void setToken(const QString& token); + void resetStatistics(); + int getRequestCount() const { return m_requestCount.loadRelaxed(); } + QString getLastRequest() const; + + virtual void service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) override; + +private: + MCPProtocol *m_protocol; + MCPStreams *m_streams; + QString m_token; + QAtomicInt m_requestCount; + QString m_lastRequest; + mutable QMutex m_mutex; + + bool checkOrigin(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + bool checkAuthorization(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void handlePost(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void handleGet(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void handleDelete(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + bool checkSession(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response, QString& sessionId); + bool checkProtocolVersion(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void sendJson(qtwebapp::HttpResponse& response, int status, const QJsonDocument& doc); + void sendEmpty(qtwebapp::HttpResponse& response, int status, const QByteArray& reason); + void sendHttpError(qtwebapp::HttpResponse& response, int status, const QByteArray& reason, const QString& message); + void recordRequest(const QString& what); +}; + +#endif // INCLUDE_FEATURE_MCPREQUESTHANDLER_H_ diff --git a/plugins/feature/mcpserver/mcpserver.cpp b/plugins/feature/mcpserver/mcpserver.cpp new file mode 100644 index 000000000..250db1cc3 --- /dev/null +++ b/plugins/feature/mcpserver/mcpserver.cpp @@ -0,0 +1,529 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include + +#include "SWGFeatureSettings.h" +#include "SWGFeatureReport.h" +#include "SWGFeatureActions.h" +#include "SWGDeviceState.h" + +#include "httplistener.h" +#include "settings/serializable.h" + +#include "mcpprotocol.h" +#include "mcprequesthandler.h" +#include "mcpstreams.h" +#include "mcpserver.h" + +MESSAGE_CLASS_DEFINITION(MCPServer::MsgConfigureMCPServer, Message) +MESSAGE_CLASS_DEFINITION(MCPServer::MsgStartStop, Message) + +const char* const MCPServer::m_featureIdURI = "sdrangel.feature.mcpserver"; +const char* const MCPServer::m_featureId = "MCPServer"; + +MCPServer::MCPServer(WebAPIAdapterInterface *webAPIAdapterInterface) : + Feature(m_featureIdURI, webAPIAdapterInterface), + m_listener(nullptr) +{ + qDebug("MCPServer::MCPServer: webAPIAdapterInterface: %p", webAPIAdapterInterface); + setObjectName(m_featureId); + m_protocol = new MCPProtocol(webAPIAdapterInterface); + m_protocol->setCaptureDir(m_settings.m_captureDir); + m_protocol->setStreams(&m_streams); + m_protocol->setOwnerFeature(this); + m_requestHandler = new MCPRequestHandler(m_protocol, &m_streams); + m_notifier = new MCPNotifier(&m_streams, &m_protocol->getDataFeed(), &m_protocol->getTools()); + setState(StIdle); + m_errorMessage = "MCPServer error"; + m_networkManager = new QNetworkAccessManager(); + QObject::connect( + m_networkManager, + &QNetworkAccessManager::finished, + this, + &MCPServer::networkManagerFinished + ); +} + +MCPServer::~MCPServer() +{ + QObject::disconnect( + m_networkManager, + &QNetworkAccessManager::finished, + this, + &MCPServer::networkManagerFinished + ); + delete m_networkManager; + stop(); + delete m_notifier; + delete m_requestHandler; + delete m_protocol; +} + +void MCPServer::start() +{ + if (m_listener) { + return; + } + + qtwebapp::HttpListenerSettings listenerSettings; + listenerSettings.host = m_settings.m_address; + listenerSettings.port = m_settings.m_port; + listenerSettings.maxRequestSize = 1 << 22; // 4 MB. Tool arguments and settings blobs can be large + listenerSettings.readTimeout = 60000; // Keep idle connections open a while, as clients pipeline requests + m_requestHandler->setToken(m_settings.m_token); + m_requestHandler->resetStatistics(); + m_listener = new qtwebapp::HttpListener(listenerSettings, m_requestHandler, qApp); + + if (m_listener->isListening()) + { + qInfo("MCPServer::start: MCP server listening at %s", qPrintable(getServerURL())); + setState(StRunning); + } + else + { + m_errorMessage = QString("Cannot listen on %1:%2: %3") + .arg(m_settings.m_address) + .arg(m_settings.m_port) + .arg(m_listener->errorString()); + qWarning("MCPServer::start: %s", qPrintable(m_errorMessage)); + delete m_listener; + m_listener = nullptr; + setState(StError); + } +} + +void MCPServer::stop() +{ + // Deleting the listener waits for every HTTP thread to finish, on this, the main thread, + // so anything those threads are waiting for from the main thread must be given up first: + // the event streams, each served by a thread blocked inside the request handler, and the + // tool calls in progress, which wait for channels and devices that only the main thread + // creates and, for an audio capture, for the main thread itself + m_protocol->setStopping(true); + m_streams.closeAll(); + + if (m_listener) + { + qInfo("MCPServer::stop: stopping MCP server at %s", qPrintable(getServerURL())); + delete m_listener; + m_listener = nullptr; + } + + // No HTTP thread is left, so the next start() begins with the tools able to wait again + m_protocol->setStopping(false); + setState(StIdle); +} + +bool MCPServer::handleMessage(const Message& cmd) +{ + if (MsgConfigureMCPServer::match(cmd)) + { + MsgConfigureMCPServer& cfg = (MsgConfigureMCPServer&) cmd; + qDebug() << "MCPServer::handleMessage: MsgConfigureMCPServer"; + applySettings(cfg.getSettings(), cfg.getSettingsKeys(), cfg.getForce()); + + return true; + } + else if (MsgStartStop::match(cmd)) + { + MsgStartStop& cfg = (MsgStartStop&) cmd; + qDebug() << "MCPServer::handleMessage: MsgStartStop: start:" << cfg.getStartStop(); + + if (cfg.getStartStop()) { + start(); + } else { + stop(); + } + + return true; + } + else + { + return false; + } +} + +QByteArray MCPServer::serialize() const +{ + return m_settings.serialize(); +} + +bool MCPServer::deserialize(const QByteArray& data) +{ + if (m_settings.deserialize(data)) + { + MsgConfigureMCPServer *msg = MsgConfigureMCPServer::create(m_settings, QList(), true); + m_inputMessageQueue.push(msg); + return true; + } + else + { + m_settings.resetToDefaults(); + MsgConfigureMCPServer *msg = MsgConfigureMCPServer::create(m_settings, QList(), true); + m_inputMessageQueue.push(msg); + return false; + } +} + +void MCPServer::applySettings(const MCPServerSettings& settings, const QList& settingsKeys, bool force) +{ + qDebug() << "MCPServer::applySettings:" << settings.getDebugString(settingsKeys, force) << " force: " << force; + + bool restart = m_listener && (force + || settingsKeys.contains("address") + || settingsKeys.contains("port")); + + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } + + if (restart) + { + stop(); + start(); + } + else if (settingsKeys.contains("token") || force) + { + m_requestHandler->setToken(m_settings.m_token); + } + + if (settingsKeys.contains("captureDir") || force) { + m_protocol->setCaptureDir(m_settings.m_captureDir); + } + + if (settings.m_useReverseAPI) + { + bool fullUpdate = (settingsKeys.contains("useReverseAPI") && settings.m_useReverseAPI) || + settingsKeys.contains("reverseAPIAddress") || + settingsKeys.contains("reverseAPIPort") || + settingsKeys.contains("reverseAPIFeatureSetIndex") || + settingsKeys.contains("reverseAPIFeatureIndex"); + webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); + } +} + +int MCPServer::getRequestCount() const +{ + return m_requestHandler->getRequestCount(); +} + +int MCPServer::getStreamCount() const +{ + return m_streams.streamCount(); +} + +QString MCPServer::getLastRequest() const +{ + return m_requestHandler->getLastRequest(); +} + +QString MCPServer::getServerURL() const +{ + QString host = m_settings.m_address.isEmpty() ? "0.0.0.0" : m_settings.m_address; + return QString("http://%1:%2/mcp").arg(host).arg(m_settings.m_port); +} + +int MCPServer::webapiRun(bool run, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage) +{ + (void) errorMessage; + getFeatureStateStr(*response.getState()); + MsgStartStop *msg = MsgStartStop::create(run); + getInputMessageQueue()->push(msg); + return 202; +} + +int MCPServer::webapiSettingsGet( + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setMcpServerSettings(new SWGSDRangel::SWGMCPServerSettings()); + response.getMcpServerSettings()->init(); + webapiFormatFeatureSettings(response, m_settings); + return 200; +} + +int MCPServer::webapiSettingsPutPatch( + bool force, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage) +{ + if (featureSettingsKeys.contains("port") && response.getMcpServerSettings()) + { + qint32 port = response.getMcpServerSettings()->getPort(); + + if (!MCPServerSettings::isValidPort((quint32) port)) + { + errorMessage = QString("port must be between %1 and %2") + .arg(MCPServerSettings::m_minPort).arg(MCPServerSettings::m_maxPort); + return 400; + } + } + + MCPServerSettings settings = m_settings; + webapiUpdateFeatureSettings(settings, featureSettingsKeys, response); + + MsgConfigureMCPServer *msg = MsgConfigureMCPServer::create(settings, featureSettingsKeys, force); + m_inputMessageQueue.push(msg); + + if (m_guiMessageQueue) // forward to GUI if any + { + MsgConfigureMCPServer *msgToGUI = MsgConfigureMCPServer::create(settings, featureSettingsKeys, force); + m_guiMessageQueue->push(msgToGUI); + } + + webapiFormatFeatureSettings(response, settings); + + return 200; +} + +int MCPServer::webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setMcpServerReport(new SWGSDRangel::SWGMCPServerReport()); + response.getMcpServerReport()->init(); + webapiFormatFeatureReport(response); + return 200; +} + +void MCPServer::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response) +{ + response.getMcpServerReport()->setRunningState(getState()); + response.getMcpServerReport()->setRequestCount(getRequestCount()); +} + +int MCPServer::webapiActionsPost( + const QStringList& featureActionsKeys, + SWGSDRangel::SWGFeatureActions& query, + QString& errorMessage) +{ + SWGSDRangel::SWGMCPServerActions *swgMCPServerActions = query.getMcpServerActions(); + + if (swgMCPServerActions) + { + if (featureActionsKeys.contains("run")) + { + bool featureRun = swgMCPServerActions->getRun() != 0; + MsgStartStop *msg = MsgStartStop::create(featureRun); + getInputMessageQueue()->push(msg); + return 202; + } + else + { + errorMessage = "Unknown action"; + return 400; + } + } + else + { + errorMessage = "Missing MCPServerActions in query"; + return 400; + } +} + +void MCPServer::webapiFormatFeatureSettings( + SWGSDRangel::SWGFeatureSettings& response, + const MCPServerSettings& settings) +{ + SWGSDRangel::SWGMCPServerSettings *swg = response.getMcpServerSettings(); + + if (swg->getAddress()) { + *swg->getAddress() = settings.m_address; + } else { + swg->setAddress(new QString(settings.m_address)); + } + + swg->setPort(settings.m_port); + + if (swg->getToken()) { + *swg->getToken() = settings.m_token; + } else { + swg->setToken(new QString(settings.m_token)); + } + + if (swg->getCaptureDir()) { + *swg->getCaptureDir() = settings.m_captureDir; + } else { + swg->setCaptureDir(new QString(settings.m_captureDir)); + } + + if (swg->getTitle()) { + *swg->getTitle() = settings.m_title; + } else { + swg->setTitle(new QString(settings.m_title)); + } + + swg->setRgbColor(settings.m_rgbColor); + swg->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); + + if (swg->getReverseApiAddress()) { + *swg->getReverseApiAddress() = settings.m_reverseAPIAddress; + } else { + swg->setReverseApiAddress(new QString(settings.m_reverseAPIAddress)); + } + + swg->setReverseApiPort(settings.m_reverseAPIPort); + swg->setReverseApiFeatureSetIndex(settings.m_reverseAPIFeatureSetIndex); + swg->setReverseApiFeatureIndex(settings.m_reverseAPIFeatureIndex); + + if (settings.m_rollupState) + { + if (swg->getRollupState()) + { + settings.m_rollupState->formatTo(swg->getRollupState()); + } + else + { + SWGSDRangel::SWGRollupState *swgRollupState = new SWGSDRangel::SWGRollupState(); + settings.m_rollupState->formatTo(swgRollupState); + swg->setRollupState(swgRollupState); + } + } +} + +void MCPServer::webapiUpdateFeatureSettings( + MCPServerSettings& settings, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response) +{ + SWGSDRangel::SWGMCPServerSettings *swg = response.getMcpServerSettings(); + + if (featureSettingsKeys.contains("address")) { + settings.m_address = *swg->getAddress(); + } + if (featureSettingsKeys.contains("port")) { + // Out of range values are rejected by webapiSettingsPutPatch before this is reached; + // ignore any that arrive by another route rather than handing them to the listener + qint32 port = swg->getPort(); + + if (MCPServerSettings::isValidPort((quint32) port)) { + settings.m_port = (quint32) port; + } + } + if (featureSettingsKeys.contains("token")) { + settings.m_token = swg->getToken() ? *swg->getToken() : ""; + } + if (featureSettingsKeys.contains("captureDir")) { + settings.m_captureDir = swg->getCaptureDir() ? *swg->getCaptureDir() : QString(); + } + if (featureSettingsKeys.contains("title")) { + settings.m_title = *swg->getTitle(); + } + if (featureSettingsKeys.contains("rgbColor")) { + settings.m_rgbColor = swg->getRgbColor(); + } + if (featureSettingsKeys.contains("useReverseAPI")) { + settings.m_useReverseAPI = swg->getUseReverseApi() != 0; + } + if (featureSettingsKeys.contains("reverseAPIAddress")) { + settings.m_reverseAPIAddress = *swg->getReverseApiAddress(); + } + if (featureSettingsKeys.contains("reverseAPIPort")) { + settings.m_reverseAPIPort = swg->getReverseApiPort(); + } + if (featureSettingsKeys.contains("reverseAPIFeatureSetIndex")) { + settings.m_reverseAPIFeatureSetIndex = swg->getReverseApiFeatureSetIndex(); + } + if (featureSettingsKeys.contains("reverseAPIFeatureIndex")) { + settings.m_reverseAPIFeatureIndex = swg->getReverseApiFeatureIndex(); + } + if (settings.m_rollupState && featureSettingsKeys.contains("rollupState")) { + settings.m_rollupState->updateFrom(featureSettingsKeys, swg->getRollupState()); + } +} + +void MCPServer::webapiReverseSendSettings(const QList& featureSettingsKeys, const MCPServerSettings& settings, bool force) +{ + SWGSDRangel::SWGFeatureSettings *swgFeatureSettings = new SWGSDRangel::SWGFeatureSettings(); + swgFeatureSettings->setFeatureType(new QString(m_featureId)); + swgFeatureSettings->setMcpServerSettings(new SWGSDRangel::SWGMCPServerSettings()); + SWGSDRangel::SWGMCPServerSettings *swg = swgFeatureSettings->getMcpServerSettings(); + + // transfer data that has been modified. When force is on transfer all data except reverse API data + + if (featureSettingsKeys.contains("address") || force) { + swg->setAddress(new QString(settings.m_address)); + } + if (featureSettingsKeys.contains("port") || force) { + swg->setPort(settings.m_port); + } + if (featureSettingsKeys.contains("token") || force) { + swg->setToken(new QString(settings.m_token)); + } + if (featureSettingsKeys.contains("captureDir") || force) { + swg->setCaptureDir(new QString(settings.m_captureDir)); + } + if (featureSettingsKeys.contains("title") || force) { + swg->setTitle(new QString(settings.m_title)); + } + if (featureSettingsKeys.contains("rgbColor") || force) { + swg->setRgbColor(settings.m_rgbColor); + } + + QString featureSettingsURL = QString("http://%1:%2/sdrangel/featureset/%3/feature/%4/settings") + .arg(settings.m_reverseAPIAddress) + .arg(settings.m_reverseAPIPort) + .arg(settings.m_reverseAPIFeatureSetIndex) + .arg(settings.m_reverseAPIFeatureIndex); + m_networkRequest.setUrl(QUrl(featureSettingsURL)); + m_networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); + + QBuffer *buffer = new QBuffer(); + buffer->open((QBuffer::ReadWrite)); + buffer->write(swgFeatureSettings->asJson().toUtf8()); + buffer->seek(0); + + // Always use PATCH to avoid passing reverse API settings + QNetworkReply *reply = m_networkManager->sendCustomRequest(m_networkRequest, "PATCH", buffer); + buffer->setParent(reply); + + delete swgFeatureSettings; +} + +void MCPServer::networkManagerFinished(QNetworkReply *reply) +{ + QNetworkReply::NetworkError replyError = reply->error(); + + if (replyError) + { + qWarning() << "MCPServer::networkManagerFinished:" + << " error(" << (int) replyError + << "): " << replyError + << ": " << reply->errorString(); + } + else + { + QString answer = reply->readAll(); + answer.chop(1); // remove last \n + qDebug("MCPServer::networkManagerFinished: reply:\n%s", answer.toStdString().c_str()); + } + + reply->deleteLater(); +} diff --git a/plugins/feature/mcpserver/mcpserver.h b/plugins/feature/mcpserver/mcpserver.h new file mode 100644 index 000000000..cac9db929 --- /dev/null +++ b/plugins/feature/mcpserver/mcpserver.h @@ -0,0 +1,169 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPSERVER_H_ +#define INCLUDE_FEATURE_MCPSERVER_H_ + +#include + +#include "feature/feature.h" +#include "util/message.h" + +#include "mcpserversettings.h" +#include "mcpstreams.h" + +class WebAPIAdapterInterface; +class QNetworkAccessManager; +class QNetworkReply; +class MCPProtocol; +class MCPRequestHandler; +class MCPNotifier; + +namespace qtwebapp { + class HttpListener; +} + +namespace SWGSDRangel { + class SWGDeviceState; +} + +// Feature exposing SDRangel to AI agents through the Model Context Protocol (MCP) +// using the Streamable HTTP transport. +class MCPServer : public Feature +{ + Q_OBJECT +public: + class MsgConfigureMCPServer : public Message { + MESSAGE_CLASS_DECLARATION + + public: + const MCPServerSettings& getSettings() const { return m_settings; } + const QList& getSettingsKeys() const { return m_settingsKeys; } + bool getForce() const { return m_force; } + + static MsgConfigureMCPServer* create(const MCPServerSettings& settings, const QList& settingsKeys, bool force) { + return new MsgConfigureMCPServer(settings, settingsKeys, force); + } + + private: + MCPServerSettings m_settings; + QList m_settingsKeys; + bool m_force; + + MsgConfigureMCPServer(const MCPServerSettings& settings, const QList& settingsKeys, bool force) : + Message(), + m_settings(settings), + m_settingsKeys(settingsKeys), + m_force(force) + { } + }; + + class MsgStartStop : public Message { + MESSAGE_CLASS_DECLARATION + + public: + bool getStartStop() const { return m_startStop; } + + static MsgStartStop* create(bool startStop) { + return new MsgStartStop(startStop); + } + + protected: + bool m_startStop; + + MsgStartStop(bool startStop) : + Message(), + m_startStop(startStop) + { } + }; + + MCPServer(WebAPIAdapterInterface *webAPIAdapterInterface); + virtual ~MCPServer(); + virtual void destroy() { delete this; } + virtual bool handleMessage(const Message& cmd); + + virtual void getIdentifier(QString& id) const { id = objectName(); } + virtual QString getIdentifier() const { return objectName(); } + virtual void getTitle(QString& title) const { title = m_settings.m_title; } + + virtual QByteArray serialize() const; + virtual bool deserialize(const QByteArray& data); + + virtual int webapiRun(bool run, + SWGSDRangel::SWGDeviceState& response, + QString& errorMessage); + + virtual int webapiSettingsGet( + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage); + + virtual int webapiSettingsPutPatch( + bool force, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage); + + virtual int webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage); + + virtual int webapiActionsPost( + const QStringList& featureActionsKeys, + SWGSDRangel::SWGFeatureActions& query, + QString& errorMessage); + + static void webapiFormatFeatureSettings( + SWGSDRangel::SWGFeatureSettings& response, + const MCPServerSettings& settings); + + static void webapiUpdateFeatureSettings( + MCPServerSettings& settings, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response); + + // Status for the GUI + int getRequestCount() const; + int getStreamCount() const; + QString getLastRequest() const; + QString getServerURL() const; + + static const char* const m_featureIdURI; + static const char* const m_featureId; + +private: + MCPServerSettings m_settings; + MCPStreams m_streams; + MCPProtocol *m_protocol; + MCPRequestHandler *m_requestHandler; + MCPNotifier *m_notifier; + qtwebapp::HttpListener *m_listener; + + QNetworkAccessManager *m_networkManager; + QNetworkRequest m_networkRequest; + + void start(); + void stop(); + void applySettings(const MCPServerSettings& settings, const QList& settingsKeys, bool force = false); + void webapiReverseSendSettings(const QList& featureSettingsKeys, const MCPServerSettings& settings, bool force); + void webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response); + +private slots: + void networkManagerFinished(QNetworkReply *reply); +}; + +#endif // INCLUDE_FEATURE_MCPSERVER_H_ diff --git a/plugins/feature/mcpserver/mcpservergui.cpp b/plugins/feature/mcpserver/mcpservergui.cpp new file mode 100644 index 000000000..9f1b08e5e --- /dev/null +++ b/plugins/feature/mcpserver/mcpservergui.cpp @@ -0,0 +1,340 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include + +#include "feature/featureuiset.h" +#include "gui/basicfeaturesettingsdialog.h" +#include "gui/dialogpositioner.h" + +#include "ui_mcpservergui.h" +#include "mcpserver.h" +#include "mcpservergui.h" +#include "mcpcodexconfig.h" +#include "mcpclaudeextension.h" + +MCPServerGUI* MCPServerGUI::create(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature) +{ + MCPServerGUI* gui = new MCPServerGUI(pluginAPI, featureUISet, feature); + return gui; +} + +void MCPServerGUI::destroy() +{ + delete this; +} + +void MCPServerGUI::resetToDefaults() +{ + m_settings.resetToDefaults(); + displaySettings(); + applySettings(true); +} + +QByteArray MCPServerGUI::serialize() const +{ + return m_settings.serialize(); +} + +bool MCPServerGUI::deserialize(const QByteArray& data) +{ + if (m_settings.deserialize(data)) + { + m_feature->setWorkspaceIndex(m_settings.m_workspaceIndex); + displaySettings(); + applySettings(true); + return true; + } + else + { + resetToDefaults(); + return false; + } +} + +bool MCPServerGUI::handleMessage(const Message& message) +{ + if (MCPServer::MsgConfigureMCPServer::match(message)) + { + qDebug("MCPServerGUI::handleMessage: MCPServer::MsgConfigureMCPServer"); + const MCPServer::MsgConfigureMCPServer& cfg = (MCPServer::MsgConfigureMCPServer&) message; + + if (cfg.getForce()) { + m_settings = cfg.getSettings(); + } else { + m_settings.applySettings(cfg.getSettingsKeys(), cfg.getSettings()); + } + + blockApplySettings(true); + displaySettings(); + blockApplySettings(false); + + return true; + } + + return false; +} + +void MCPServerGUI::handleInputMessages() +{ + Message* message; + + while ((message = getInputMessageQueue()->pop())) + { + if (handleMessage(*message)) { + delete message; + } + } +} + +void MCPServerGUI::onWidgetRolled(QWidget* widget, bool rollDown) +{ + (void) widget; + (void) rollDown; + + getRollupContents()->saveState(m_rollupState); +} + +MCPServerGUI::MCPServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent) : + FeatureGUI(parent), + ui(new Ui::MCPServerGUI), + m_pluginAPI(pluginAPI), + m_featureUISet(featureUISet), + m_doApplySettings(true) +{ + m_feature = feature; + setAttribute(Qt::WA_DeleteOnClose, true); + m_helpURL = "plugins/feature/mcpserver/readme.md"; + RollupContents *rollupContents = getRollupContents(); + ui->setupUi(rollupContents); + rollupContents->arrangeRollups(); + connect(rollupContents, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); + + m_mcpServer = reinterpret_cast(feature); + m_mcpServer->setMessageQueueToGUI(&m_inputMessageQueue); + + m_settings.setRollupState(&m_rollupState); + + connect(this, &MCPServerGUI::customContextMenuRequested, this, &MCPServerGUI::onMenuDialogCalled); + connect(getInputMessageQueue(), &MessageQueue::messageEnqueued, this, &MCPServerGUI::handleInputMessages); + connect(m_mcpServer, &Feature::stateChanged, this, &MCPServerGUI::updateFeatureState); + + connect(&m_statisticsTimer, &QTimer::timeout, this, &MCPServerGUI::updateStatistics); + m_statisticsTimer.start(1000); + + displaySettings(); + applySettings(true); + makeUIConnections(); + updateFeatureState(); + updateStatistics(); + m_resizer.enableChildMouseTracking(); +} + +MCPServerGUI::~MCPServerGUI() +{ + delete ui; +} + +void MCPServerGUI::setWorkspaceIndex(int index) +{ + m_settings.m_workspaceIndex = index; + m_settingsKeys.append("workspaceIndex"); + m_feature->setWorkspaceIndex(index); +} + +void MCPServerGUI::blockApplySettings(bool block) +{ + m_doApplySettings = !block; +} + +void MCPServerGUI::displaySettings() +{ + setTitleColor(m_settings.m_rgbColor); + setWindowTitle(m_settings.m_title); + setTitle(m_settings.m_title); + blockApplySettings(true); + ui->address->setText(m_settings.m_address); + ui->port->setValue(m_settings.m_port); + ui->token->setText(m_settings.m_token); + ui->captureDir->setText(m_settings.m_captureDir); + ui->url->setText(m_mcpServer->getServerURL()); + getRollupContents()->restoreState(m_rollupState); + blockApplySettings(false); +} + +void MCPServerGUI::onMenuDialogCalled(const QPoint &p) +{ + if (m_contextMenuType == ContextMenuType::ContextMenuChannelSettings) + { + BasicFeatureSettingsDialog dialog(this); + dialog.setTitle(m_settings.m_title); + dialog.setUseReverseAPI(m_settings.m_useReverseAPI); + dialog.setReverseAPIAddress(m_settings.m_reverseAPIAddress); + dialog.setReverseAPIPort(m_settings.m_reverseAPIPort); + dialog.setReverseAPIFeatureSetIndex(m_settings.m_reverseAPIFeatureSetIndex); + dialog.setReverseAPIFeatureIndex(m_settings.m_reverseAPIFeatureIndex); + dialog.setDefaultTitle(m_displayedName); + + dialog.move(p); + new DialogPositioner(&dialog, false); + dialog.exec(); + + m_settings.m_title = dialog.getTitle(); + m_settings.m_useReverseAPI = dialog.useReverseAPI(); + m_settings.m_reverseAPIAddress = dialog.getReverseAPIAddress(); + m_settings.m_reverseAPIPort = dialog.getReverseAPIPort(); + m_settings.m_reverseAPIFeatureSetIndex = dialog.getReverseAPIFeatureSetIndex(); + m_settings.m_reverseAPIFeatureIndex = dialog.getReverseAPIFeatureIndex(); + + setTitle(m_settings.m_title); + setTitleColor(m_settings.m_rgbColor); + + m_settingsKeys.append("title"); + m_settingsKeys.append("rgbColor"); + m_settingsKeys.append("useReverseAPI"); + m_settingsKeys.append("reverseAPIAddress"); + m_settingsKeys.append("reverseAPIPort"); + m_settingsKeys.append("reverseAPIFeatureSetIndex"); + m_settingsKeys.append("reverseAPIFeatureIndex"); + + applySettings(); + } + + resetContextMenuType(); +} + +void MCPServerGUI::on_startStop_toggled(bool checked) +{ + if (m_doApplySettings) + { + MCPServer::MsgStartStop *message = MCPServer::MsgStartStop::create(checked); + m_mcpServer->getInputMessageQueue()->push(message); + } +} + +void MCPServerGUI::on_address_editingFinished() +{ + m_settings.m_address = ui->address->text().trimmed(); + m_settingsKeys.append("address"); + ui->url->setText(QString("http://%1:%2/mcp").arg(m_settings.m_address.isEmpty() ? "0.0.0.0" : m_settings.m_address).arg(m_settings.m_port)); + applySettings(); +} + +void MCPServerGUI::on_port_valueChanged(int value) +{ + m_settings.m_port = value; + m_settingsKeys.append("port"); + ui->url->setText(QString("http://%1:%2/mcp").arg(m_settings.m_address.isEmpty() ? "0.0.0.0" : m_settings.m_address).arg(m_settings.m_port)); + applySettings(); +} + +void MCPServerGUI::on_token_editingFinished() +{ + m_settings.m_token = ui->token->text().trimmed(); + m_settingsKeys.append("token"); + applySettings(); +} + +void MCPServerGUI::on_captureDir_editingFinished() +{ + m_settings.m_captureDir = ui->captureDir->text().trimmed(); + m_settingsKeys.append("captureDir"); + applySettings(); +} + +void MCPServerGUI::on_captureDirBrowse_clicked() +{ + QString dir = QFileDialog::getExistingDirectory(this, tr("Capture directory"), m_settings.m_captureDir); + + if (!dir.isEmpty()) + { + m_settings.m_captureDir = dir; + ui->captureDir->setText(dir); + m_settingsKeys.append("captureDir"); + applySettings(); + } +} + +void MCPServerGUI::on_addToCodex_clicked() +{ + // The settings hold what the server is configured with, which is what a client has to use + const QString url = MCPCodexConfig::serverUrl(m_settings.m_address, m_settings.m_port); + QString message; + MCPCodexConfig::Result result = MCPCodexConfig::addServer("sdrangel", url, m_settings.m_token, message); + + if (result == MCPCodexConfig::Failed) + { + QMessageBox::critical(this, tr("Add to Codex"), message); + } + else + { + // Codex reads its configuration once, at startup + QMessageBox::information(this, tr("Add to Codex"), + tr("%1\n\nRestart Codex for it to see the server.").arg(message)); + } +} + +void MCPServerGUI::on_addToClaude_clicked() +{ + QString message; + MCPClaudeExtension::Result result = MCPClaudeExtension::install(message); + + if (result == MCPClaudeExtension::Launched) { + QMessageBox::information(this, tr("Add to Claude Desktop"), message); + } else { + QMessageBox::warning(this, tr("Add to Claude Desktop"), message); + } +} + +void MCPServerGUI::updateFeatureState() +{ + updateStartStopButton(ui->startStop); +} + +void MCPServerGUI::updateStatistics() +{ + int streams = m_mcpServer->getStreamCount(); + ui->requests->setText(streams > 0 + ? QString("Requests: %1 Streams: %2").arg(m_mcpServer->getRequestCount()).arg(streams) + : QString("Requests: %1").arg(m_mcpServer->getRequestCount())); + ui->lastRequest->setText(m_mcpServer->getLastRequest()); +} + +void MCPServerGUI::applySettings(bool force) +{ + if (m_doApplySettings) + { + MCPServer::MsgConfigureMCPServer* message = MCPServer::MsgConfigureMCPServer::create(m_settings, m_settingsKeys, force); + m_mcpServer->getInputMessageQueue()->push(message); + } + + m_settingsKeys.clear(); +} + +void MCPServerGUI::makeUIConnections() +{ + QObject::connect(ui->startStop, &ButtonSwitch::toggled, this, &MCPServerGUI::on_startStop_toggled); + QObject::connect(ui->address, &QLineEdit::editingFinished, this, &MCPServerGUI::on_address_editingFinished); + QObject::connect(ui->port, qOverload(&QSpinBox::valueChanged), this, &MCPServerGUI::on_port_valueChanged); + QObject::connect(ui->token, &QLineEdit::editingFinished, this, &MCPServerGUI::on_token_editingFinished); + QObject::connect(ui->captureDir, &QLineEdit::editingFinished, this, &MCPServerGUI::on_captureDir_editingFinished); + QObject::connect(ui->captureDirBrowse, &QToolButton::clicked, this, &MCPServerGUI::on_captureDirBrowse_clicked); + QObject::connect(ui->addToCodex, &QPushButton::clicked, this, &MCPServerGUI::on_addToCodex_clicked); + QObject::connect(ui->addToClaude, &QPushButton::clicked, this, &MCPServerGUI::on_addToClaude_clicked); +} diff --git a/plugins/feature/mcpserver/mcpservergui.h b/plugins/feature/mcpserver/mcpservergui.h new file mode 100644 index 000000000..21af42b86 --- /dev/null +++ b/plugins/feature/mcpserver/mcpservergui.h @@ -0,0 +1,91 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPSERVERGUI_H_ +#define INCLUDE_FEATURE_MCPSERVERGUI_H_ + +#include + +#include "feature/featuregui.h" +#include "util/messagequeue.h" +#include "settings/rollupstate.h" + +#include "mcpserversettings.h" + +class PluginAPI; +class FeatureUISet; +class MCPServer; + +namespace Ui { + class MCPServerGUI; +} + +class MCPServerGUI : public FeatureGUI { + Q_OBJECT +public: + static MCPServerGUI* create(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature); + virtual void destroy(); + + void resetToDefaults(); + QByteArray serialize() const; + bool deserialize(const QByteArray& data); + virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } + virtual void setWorkspaceIndex(int index); + virtual int getWorkspaceIndex() const { return m_settings.m_workspaceIndex; } + virtual void setGeometryBytes(const QByteArray& blob) { m_settings.m_geometryBytes = blob; } + virtual QByteArray getGeometryBytes() const { return m_settings.m_geometryBytes; } + +private: + Ui::MCPServerGUI* ui; + PluginAPI* m_pluginAPI; + FeatureUISet* m_featureUISet; + MCPServerSettings m_settings; + QList m_settingsKeys; + RollupState m_rollupState; + bool m_doApplySettings; + + MCPServer* m_mcpServer; + MessageQueue m_inputMessageQueue; + QTimer m_statisticsTimer; + + explicit MCPServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr); + virtual ~MCPServerGUI(); + + void blockApplySettings(bool block); + void applySettings(bool force = false); + void displaySettings(); + bool handleMessage(const Message& message); + void makeUIConnections(); + +private slots: + void onMenuDialogCalled(const QPoint &p); + void onWidgetRolled(QWidget* widget, bool rollDown); + void handleInputMessages(); + void on_startStop_toggled(bool checked); + void on_address_editingFinished(); + void on_port_valueChanged(int value); + void on_token_editingFinished(); + void on_captureDir_editingFinished(); + void on_captureDirBrowse_clicked(); + void on_addToCodex_clicked(); + void on_addToClaude_clicked(); + void updateFeatureState(); + void updateStatistics(); +}; + +#endif // INCLUDE_FEATURE_MCPSERVERGUI_H_ diff --git a/plugins/feature/mcpserver/mcpservergui.ui b/plugins/feature/mcpserver/mcpservergui.ui new file mode 100644 index 000000000..1d9c3c8c7 --- /dev/null +++ b/plugins/feature/mcpserver/mcpservergui.ui @@ -0,0 +1,338 @@ + + + MCPServerGUI + + + + 0 + 0 + 360 + 180 + + + + + 0 + 0 + + + + + 360 + 180 + + + + + 560 + 180 + + + + + Liberation Sans + 9 + + + + MCP Server + + + + + 2 + 2 + 358 + 178 + + + + Settings + + + + 3 + + + 2 + + + 2 + + + 2 + + + 2 + + + + + + + Start/stop the MCP server + + + + + + + :/play.png + :/stop.png:/play.png + + + + + + + URL of the MCP endpoint to give to MCP clients + + + http://127.0.0.1:8092/mcp + + + Qt::TextInteractionFlag::TextSelectableByMouse + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 60 + 0 + + + + Address + + + + + + + IP address to listen on. +127.0.0.1 only accepts connections from this computer. 0.0.0.0 accepts connections from any network interface. + + + 127.0.0.1 + + + + + + + Port + + + + + + + TCP port to listen for MCP requests on. +Default is 8092. + + + 1024 + + + 65535 + + + 8092 + + + + + + + + + + + + 60 + 0 + + + + Token + + + + + + + Optional bearer token. When set, clients must send an Authorization: Bearer header with this value. +Leave empty for no authentication (only safe when listening on 127.0.0.1). + + + No authentication + + + + + + + + + + + + 60 + 0 + + + + Captures + + + + + + + Directory that IQ and audio captures are written to. +Capture tools refuse file names that would write outside it. + + + + + + + Choose the capture directory + + + ... + + + + + + + + + + + + 60 + 0 + + + + Clients + + + + + + + Add this server to OpenAI Codex, by writing it into Codex's config.toml. +Codex needs to be restarted afterwards to pick it up. + + + Add to Codex + + + + + + + Install the SDRangel extension for Claude Desktop, which carries the bridge +Claude Desktop needs to reach a server on this machine. +Claude Desktop asks you to confirm the installation. + + + Add to Claude Desktop + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Number of MCP requests served since the server was started + + + Requests: 0 + + + + + + + Last MCP request received + + + + + + + + + + Qt::Orientation::Horizontal + + + + 40 + 20 + + + + + + + + + + + + ButtonSwitch + QToolButton +
gui/buttonswitch.h
+
+ + RollupContents + QWidget +
gui/rollupcontents.h
+ 1 +
+
+ + + + +
diff --git a/plugins/feature/mcpserver/mcpserverplugin.cpp b/plugins/feature/mcpserver/mcpserverplugin.cpp new file mode 100644 index 000000000..619eb900e --- /dev/null +++ b/plugins/feature/mcpserver/mcpserverplugin.cpp @@ -0,0 +1,80 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include "plugin/pluginapi.h" + +#ifndef SERVER_MODE +#include "mcpservergui.h" +#endif +#include "mcpserver.h" +#include "mcpserverplugin.h" +#include "mcpserverwebapiadapter.h" + +const PluginDescriptor MCPServerPlugin::m_pluginDescriptor = { + MCPServer::m_featureId, + QStringLiteral("MCP Server"), + QStringLiteral("7.28.0"), + QStringLiteral("(c) Jon Beniston, M7RCE"), + QStringLiteral("https://github.com/f4exb/sdrangel"), + true, + QStringLiteral("https://github.com/f4exb/sdrangel") +}; + +MCPServerPlugin::MCPServerPlugin(QObject* parent) : + QObject(parent), + m_pluginAPI(nullptr) +{ +} + +const PluginDescriptor& MCPServerPlugin::getPluginDescriptor() const +{ + return m_pluginDescriptor; +} + +void MCPServerPlugin::initPlugin(PluginAPI* pluginAPI) +{ + m_pluginAPI = pluginAPI; + + // register MCP Server feature + m_pluginAPI->registerFeature(MCPServer::m_featureIdURI, MCPServer::m_featureId, this); +} + +#ifdef SERVER_MODE +FeatureGUI* MCPServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const +{ + (void) featureUISet; + (void) feature; + return nullptr; +} +#else +FeatureGUI* MCPServerPlugin::createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const +{ + return MCPServerGUI::create(m_pluginAPI, featureUISet, feature); +} +#endif + +Feature* MCPServerPlugin::createFeature(WebAPIAdapterInterface* webAPIAdapterInterface) const +{ + return new MCPServer(webAPIAdapterInterface); +} + +FeatureWebAPIAdapter* MCPServerPlugin::createFeatureWebAPIAdapter() const +{ + return new MCPServerWebAPIAdapter(); +} diff --git a/plugins/feature/mcpserver/mcpserverplugin.h b/plugins/feature/mcpserver/mcpserverplugin.h new file mode 100644 index 000000000..31f86458d --- /dev/null +++ b/plugins/feature/mcpserver/mcpserverplugin.h @@ -0,0 +1,49 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPSERVERPLUGIN_H +#define INCLUDE_FEATURE_MCPSERVERPLUGIN_H + +#include +#include "plugin/plugininterface.h" + +class FeatureGUI; +class WebAPIAdapterInterface; + +class MCPServerPlugin : public QObject, PluginInterface { + Q_OBJECT + Q_INTERFACES(PluginInterface) + Q_PLUGIN_METADATA(IID "sdrangel.feature.mcpserver") + +public: + explicit MCPServerPlugin(QObject* parent = nullptr); + + const PluginDescriptor& getPluginDescriptor() const; + void initPlugin(PluginAPI* pluginAPI); + + virtual FeatureGUI* createFeatureGUI(FeatureUISet *featureUISet, Feature *feature) const; + virtual Feature* createFeature(WebAPIAdapterInterface *webAPIAdapterInterface) const; + virtual FeatureWebAPIAdapter* createFeatureWebAPIAdapter() const; + +private: + static const PluginDescriptor m_pluginDescriptor; + + PluginAPI* m_pluginAPI; +}; + +#endif // INCLUDE_FEATURE_MCPSERVERPLUGIN_H diff --git a/plugins/feature/mcpserver/mcpserversettings.cpp b/plugins/feature/mcpserver/mcpserversettings.cpp new file mode 100644 index 000000000..7773208bf --- /dev/null +++ b/plugins/feature/mcpserver/mcpserversettings.cpp @@ -0,0 +1,234 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include + +#include "util/simpleserializer.h" +#include "settings/serializable.h" + +#include "mcpserversettings.h" + +MCPServerSettings::MCPServerSettings() : + m_rollupState(nullptr) +{ + resetToDefaults(); +} + +void MCPServerSettings::resetToDefaults() +{ + m_address = "127.0.0.1"; + m_port = m_defaultPort; + m_token = ""; + m_captureDir = getDefaultCaptureDir(); + m_title = "MCP Server"; + m_rgbColor = QColor(0, 140, 190).rgb(); + m_useReverseAPI = false; + m_reverseAPIAddress = "127.0.0.1"; + m_reverseAPIPort = 8888; + m_reverseAPIFeatureSetIndex = 0; + m_reverseAPIFeatureIndex = 0; + m_workspaceIndex = 0; +} + +QByteArray MCPServerSettings::serialize() const +{ + SimpleSerializer s(1); + + s.writeString(1, m_address); + s.writeU32(2, m_port); + s.writeString(3, m_token); + s.writeString(4, m_captureDir); + s.writeString(5, m_title); + s.writeU32(6, m_rgbColor); + s.writeBool(7, m_useReverseAPI); + s.writeString(8, m_reverseAPIAddress); + s.writeU32(9, m_reverseAPIPort); + s.writeU32(10, m_reverseAPIFeatureSetIndex); + s.writeU32(11, m_reverseAPIFeatureIndex); + + if (m_rollupState) { + s.writeBlob(12, m_rollupState->serialize()); + } + + s.writeS32(13, m_workspaceIndex); + s.writeBlob(14, m_geometryBytes); + + return s.final(); +} + +bool MCPServerSettings::deserialize(const QByteArray& data) +{ + SimpleDeserializer d(data); + + if (!d.isValid()) + { + resetToDefaults(); + return false; + } + + if (d.getVersion() == 1) + { + QByteArray bytetmp; + uint32_t utmp; + + d.readString(1, &m_address, "127.0.0.1"); + d.readU32(2, &utmp, m_defaultPort); + + if (isValidPort(utmp)) { + m_port = utmp; + } else { + m_port = m_defaultPort; + } + + d.readString(3, &m_token, ""); + d.readString(4, &m_captureDir, getDefaultCaptureDir()); + + if (m_captureDir.trimmed().isEmpty()) { + m_captureDir = getDefaultCaptureDir(); + } + + d.readString(5, &m_title, "MCP Server"); + d.readU32(6, &m_rgbColor, QColor(0, 140, 190).rgb()); + d.readBool(7, &m_useReverseAPI, false); + d.readString(8, &m_reverseAPIAddress, "127.0.0.1"); + d.readU32(9, &utmp, 0); + + if ((utmp > 1023) && (utmp < 65535)) { + m_reverseAPIPort = utmp; + } else { + m_reverseAPIPort = 8888; + } + + d.readU32(10, &utmp, 0); + m_reverseAPIFeatureSetIndex = utmp > 99 ? 99 : utmp; + d.readU32(11, &utmp, 0); + m_reverseAPIFeatureIndex = utmp > 99 ? 99 : utmp; + + if (m_rollupState) + { + d.readBlob(12, &bytetmp); + m_rollupState->deserialize(bytetmp); + } + + d.readS32(13, &m_workspaceIndex, 0); + d.readBlob(14, &m_geometryBytes); + + return true; + } + else + { + resetToDefaults(); + return false; + } +} + +void MCPServerSettings::applySettings(const QStringList& settingsKeys, const MCPServerSettings& settings) +{ + if (settingsKeys.contains("address")) { + m_address = settings.m_address; + } + if (settingsKeys.contains("port")) { + m_port = settings.m_port; + } + if (settingsKeys.contains("token")) { + m_token = settings.m_token; + } + if (settingsKeys.contains("captureDir")) { + m_captureDir = settings.m_captureDir; + } + if (settingsKeys.contains("title")) { + m_title = settings.m_title; + } + if (settingsKeys.contains("rgbColor")) { + m_rgbColor = settings.m_rgbColor; + } + if (settingsKeys.contains("useReverseAPI")) { + m_useReverseAPI = settings.m_useReverseAPI; + } + if (settingsKeys.contains("reverseAPIAddress")) { + m_reverseAPIAddress = settings.m_reverseAPIAddress; + } + if (settingsKeys.contains("reverseAPIPort")) { + m_reverseAPIPort = settings.m_reverseAPIPort; + } + if (settingsKeys.contains("reverseAPIFeatureSetIndex")) { + m_reverseAPIFeatureSetIndex = settings.m_reverseAPIFeatureSetIndex; + } + if (settingsKeys.contains("reverseAPIFeatureIndex")) { + m_reverseAPIFeatureIndex = settings.m_reverseAPIFeatureIndex; + } + if (settingsKeys.contains("workspaceIndex")) { + m_workspaceIndex = settings.m_workspaceIndex; + } +} + +QString MCPServerSettings::getDebugString(const QStringList& settingsKeys, bool force) const +{ + std::ostringstream ostr; + + if (settingsKeys.contains("address") || force) { + ostr << " m_address: " << m_address.toStdString(); + } + if (settingsKeys.contains("port") || force) { + ostr << " m_port: " << m_port; + } + if (settingsKeys.contains("token") || force) { + ostr << " m_token: " << (m_token.isEmpty() ? "(none)" : "(set)"); + } + if (settingsKeys.contains("captureDir") || force) { + ostr << " m_captureDir: " << m_captureDir.toStdString(); + } + if (settingsKeys.contains("title") || force) { + ostr << " m_title: " << m_title.toStdString(); + } + if (settingsKeys.contains("rgbColor") || force) { + ostr << " m_rgbColor: " << m_rgbColor; + } + if (settingsKeys.contains("useReverseAPI") || force) { + ostr << " m_useReverseAPI: " << m_useReverseAPI; + } + if (settingsKeys.contains("reverseAPIAddress") || force) { + ostr << " m_reverseAPIAddress: " << m_reverseAPIAddress.toStdString(); + } + if (settingsKeys.contains("reverseAPIPort") || force) { + ostr << " m_reverseAPIPort: " << m_reverseAPIPort; + } + if (settingsKeys.contains("reverseAPIFeatureSetIndex") || force) { + ostr << " m_reverseAPIFeatureSetIndex: " << m_reverseAPIFeatureSetIndex; + } + if (settingsKeys.contains("reverseAPIFeatureIndex") || force) { + ostr << " m_reverseAPIFeatureIndex: " << m_reverseAPIFeatureIndex; + } + if (settingsKeys.contains("workspaceIndex") || force) { + ostr << " m_workspaceIndex: " << m_workspaceIndex; + } + + return QString(ostr.str().c_str()); +} + +QString MCPServerSettings::getDefaultCaptureDir() +{ + QString documents = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); + + if (documents.isEmpty()) { + documents = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); + } + + return documents + "/SDRangel/captures"; +} diff --git a/plugins/feature/mcpserver/mcpserversettings.h b/plugins/feature/mcpserver/mcpserversettings.h new file mode 100644 index 000000000..56a2b5c5f --- /dev/null +++ b/plugins/feature/mcpserver/mcpserversettings.h @@ -0,0 +1,59 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPSERVERSETTINGS_H_ +#define INCLUDE_FEATURE_MCPSERVERSETTINGS_H_ + +#include +#include + +class Serializable; + +struct MCPServerSettings +{ + QString m_address; //!< Address to bind the HTTP listener to + quint32 m_port; //!< TCP port to listen on + QString m_token; //!< Optional bearer token. Empty means no authentication + QString m_captureDir; //!< Directory IQ and audio captures are written to + QString m_title; + quint32 m_rgbColor; + bool m_useReverseAPI; + QString m_reverseAPIAddress; + uint16_t m_reverseAPIPort; + uint16_t m_reverseAPIFeatureSetIndex; + uint16_t m_reverseAPIFeatureIndex; + Serializable *m_rollupState; + int m_workspaceIndex; + QByteArray m_geometryBytes; + + MCPServerSettings(); + void resetToDefaults(); + QByteArray serialize() const; + bool deserialize(const QByteArray& data); + void setRollupState(Serializable *rollupState) { m_rollupState = rollupState; } + void applySettings(const QStringList& settingsKeys, const MCPServerSettings& settings); + QString getDebugString(const QStringList& settingsKeys, bool force=false) const; + + static const quint32 m_defaultPort = 8092; + static const quint32 m_minPort = 1024; + static const quint32 m_maxPort = 65535; + static bool isValidPort(quint32 port) { return (port >= m_minPort) && (port <= m_maxPort); } + static QString getDefaultCaptureDir(); +}; + +#endif // INCLUDE_FEATURE_MCPSERVERSETTINGS_H_ diff --git a/plugins/feature/mcpserver/mcpserverwebapiadapter.cpp b/plugins/feature/mcpserver/mcpserverwebapiadapter.cpp new file mode 100644 index 000000000..e0e0fe2ef --- /dev/null +++ b/plugins/feature/mcpserver/mcpserverwebapiadapter.cpp @@ -0,0 +1,52 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include "SWGFeatureSettings.h" +#include "mcpserver.h" +#include "mcpserverwebapiadapter.h" + +MCPServerWebAPIAdapter::MCPServerWebAPIAdapter() +{} + +MCPServerWebAPIAdapter::~MCPServerWebAPIAdapter() +{} + +int MCPServerWebAPIAdapter::webapiSettingsGet( + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setMcpServerSettings(new SWGSDRangel::SWGMCPServerSettings()); + response.getMcpServerSettings()->init(); + MCPServer::webapiFormatFeatureSettings(response, m_settings); + + return 200; +} + +int MCPServerWebAPIAdapter::webapiSettingsPutPatch( + bool force, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage) +{ + (void) force; // no action + (void) errorMessage; + MCPServer::webapiUpdateFeatureSettings(m_settings, featureSettingsKeys, response); + + return 200; +} diff --git a/plugins/feature/mcpserver/mcpserverwebapiadapter.h b/plugins/feature/mcpserver/mcpserverwebapiadapter.h new file mode 100644 index 000000000..cc7b8b5f4 --- /dev/null +++ b/plugins/feature/mcpserver/mcpserverwebapiadapter.h @@ -0,0 +1,50 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_MCPSERVER_WEBAPIADAPTER_H +#define INCLUDE_MCPSERVER_WEBAPIADAPTER_H + +#include "feature/featurewebapiadapter.h" +#include "mcpserversettings.h" + +/** + * Standalone API adapter only for the settings + */ +class MCPServerWebAPIAdapter : public FeatureWebAPIAdapter { +public: + MCPServerWebAPIAdapter(); + virtual ~MCPServerWebAPIAdapter(); + + virtual QByteArray serialize() const { return m_settings.serialize(); } + virtual bool deserialize(const QByteArray& data) { return m_settings.deserialize(data); } + + virtual int webapiSettingsGet( + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage); + + virtual int webapiSettingsPutPatch( + bool force, + const QStringList& featureSettingsKeys, + SWGSDRangel::SWGFeatureSettings& response, + QString& errorMessage); + +private: + MCPServerSettings m_settings; +}; + +#endif // INCLUDE_MCPSERVER_WEBAPIADAPTER_H diff --git a/plugins/feature/mcpserver/mcpstreams.cpp b/plugins/feature/mcpserver/mcpstreams.cpp new file mode 100644 index 000000000..2e5b271f1 --- /dev/null +++ b/plugins/feature/mcpserver/mcpstreams.cpp @@ -0,0 +1,609 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include + +#include + +#include "maincore.h" +#include "channel/channelapi.h" +#include "device/deviceapi.h" +#include "feature/feature.h" + +#include "mcpdatafeed.h" +#include "mcperror.h" +#include "mcpstreams.h" +#include "mcptools.h" + +// --------------------------------------------------------------------------- +// MCPEventStream +// --------------------------------------------------------------------------- + +MCPEventStream::MCPEventStream(const QString& sessionId) : + m_sessionId(sessionId), + m_closed(false) +{ + m_age.start(); +} + +qint64 MCPEventStream::ageMs() const +{ + return m_age.elapsed(); +} + +void MCPEventStream::push(const QByteArray& event) +{ + QMutexLocker locker(&m_mutex); + + if (m_closed) { + return; + } + + m_events.enqueue(event); + + while (m_events.size() > m_maxQueued) { + m_events.dequeue(); + } + + m_wait.wakeAll(); +} + +QByteArray MCPEventStream::waitForEvent(int timeoutMs) +{ + QMutexLocker locker(&m_mutex); + + if (m_events.isEmpty() && !m_closed) { + m_wait.wait(&m_mutex, timeoutMs); + } + + if (m_events.isEmpty()) { + return QByteArray(); + } + + return m_events.dequeue(); +} + +void MCPEventStream::close() +{ + QMutexLocker locker(&m_mutex); + m_closed = true; + m_wait.wakeAll(); +} + +bool MCPEventStream::isClosed() const +{ + QMutexLocker locker(&m_mutex); + return m_closed; +} + +// --------------------------------------------------------------------------- +// MCPStreams +// --------------------------------------------------------------------------- + +MCPStreams::MCPStreams() : + m_notificationsSent(0) +{ +} + +MCPStreams::~MCPStreams() +{ + closeAll(); +} + +QString MCPStreams::createSession() +{ + QMutexLocker locker(&m_mutex); + QString id = QUuid::createUuid().toString(QUuid::WithoutBraces); + m_sessions.insert(id, QDateTime::currentDateTimeUtc()); + expireSessions(); + return id; +} + +bool MCPStreams::sessionExists(const QString& sessionId) +{ + QMutexLocker locker(&m_mutex); + + if (!m_sessions.contains(sessionId)) { + return false; + } + + m_sessions[sessionId] = QDateTime::currentDateTimeUtc(); + return true; +} + +// Clients are not obliged to end their session, and a bridge that reconnects starts a new one +// every time, so idle sessions are dropped rather than kept for the life of the process. +// Sessions with an open stream are never dropped. Call with the mutex held. +void MCPStreams::expireSessions() +{ + QSet streaming; + + for (const StreamPtr& stream : m_streams) { + streaming.insert(stream->getSessionId()); + } + + QDateTime now = QDateTime::currentDateTimeUtc(); + QList candidates; + + for (auto it = m_sessions.begin(); it != m_sessions.end(); ++it) + { + if (!streaming.contains(it.key())) { + candidates.append(it.key()); + } + } + + // Oldest first, so that trimming to the cap drops the least recently used + std::sort(candidates.begin(), candidates.end(), [this](const QString& a, const QString& b) { + return m_sessions[a] < m_sessions[b]; + }); + + int droppable = candidates.size() - qMax(0, m_maxSessions - (int) streaming.size()); + + for (int i = 0; i < candidates.size(); i++) + { + const QString& id = candidates[i]; + bool tooOld = m_sessions[id].msecsTo(now) > m_sessionIdleMs; + bool overCap = i < droppable; + + if (tooOld || overCap) + { + m_sessions.remove(id); + m_subscriptions.remove(id); + } + } +} + +void MCPStreams::endSession(const QString& sessionId) +{ + QList toClose; + { + QMutexLocker locker(&m_mutex); + m_sessions.remove(sessionId); + m_subscriptions.remove(sessionId); + + for (const StreamPtr& stream : m_streams) + { + if (stream->getSessionId() == sessionId) { + toClose.append(stream); + } + } + } + + // Closing wakes the HTTP thread serving the stream, which then removes it. Holding a + // shared pointer keeps each one alive until this call is done with it. + for (const StreamPtr& stream : toClose) { + stream->close(); + } +} + +QSet MCPStreams::subscribedUris() const +{ + QMutexLocker locker(&m_mutex); + QSet uris; + + for (const QSet& perSession : m_subscriptions) { + uris.unite(perSession); + } + + return uris; +} + +bool MCPStreams::subscribe(const QString& sessionId, const QString& uri) +{ + QMutexLocker locker(&m_mutex); + QSet& uris = m_subscriptions[sessionId]; + + // Bounded: every subscription is polled for changes each second, and the anonymous + // session's set has no DELETE to clear it + if (!uris.contains(uri) && (uris.size() >= m_maxSubscriptions)) { + return false; + } + + uris.insert(uri); + return true; +} + +bool MCPStreams::unsubscribe(const QString& sessionId, const QString& uri) +{ + QMutexLocker locker(&m_mutex); + + if (!m_subscriptions.contains(sessionId)) { + return false; + } + + return m_subscriptions[sessionId].remove(uri); +} + +QSet MCPStreams::subscriptions(const QString& sessionId) const +{ + QMutexLocker locker(&m_mutex); + return m_subscriptions.value(sessionId); +} + +MCPStreams::StreamPtr MCPStreams::open(const QString& sessionId, QString& error) +{ + QList superseded; + QMutexLocker locker(&m_mutex); + + // A server message must reach a client on one stream only, so a session keeps a single + // stream: opening another replaces the one before it. Clients that send no session id + // already share the anonymous subscriptions and cannot be told apart, so they share one + // stream on the same rule rather than each receiving every notification. + for (int i = m_streams.size() - 1; i >= 0; i--) + { + if (m_streams[i]->getSessionId() == sessionId) + { + superseded.append(m_streams[i]); + m_streams.removeAt(i); + } + } + + if (m_streams.size() >= m_maxStreams) + { + locker.unlock(); + + for (const StreamPtr& stream : superseded) { + stream->close(); + } + + error = QString("Too many open event streams (%1)").arg(m_maxStreams); + return StreamPtr(); + } + + StreamPtr stream(new MCPEventStream(sessionId)); + m_streams.append(stream); + qDebug("MCPStreams::open: stream opened, %d open, %d superseded", (int) m_streams.size(), (int) superseded.size()); + locker.unlock(); + + // Wakes the HTTP thread serving each replaced stream so that it finishes its response + for (const StreamPtr& older : superseded) { + older->close(); + } + + return stream; +} + +// The stream is only destroyed once every holder has released its shared pointer, so a +// notification in flight on another thread cannot be left pointing at freed memory. +void MCPStreams::close(const StreamPtr& stream) +{ + if (stream.isNull()) { + return; + } + + QMutexLocker locker(&m_mutex); + m_streams.removeAll(stream); + qDebug("MCPStreams::close: stream closed, %d open", (int) m_streams.size()); +} + +void MCPStreams::closeAll() +{ + QList streams; + { + QMutexLocker locker(&m_mutex); + streams = m_streams; + } + + // Only ask them to stop: the HTTP thread serving each stream removes it when it exits + for (const StreamPtr& stream : streams) { + stream->close(); + } +} + +QByteArray MCPStreams::resourceUpdatedEvent(const QString& uri) +{ + QJsonObject params; + params["uri"] = uri; + QJsonObject notification; + notification["jsonrpc"] = "2.0"; + notification["method"] = "notifications/resources/updated"; + notification["params"] = params; + return QJsonDocument(notification).toJson(QJsonDocument::Compact); +} + +void MCPStreams::notifyResourceUpdated(const QString& uri) +{ + QList targets; + { + QMutexLocker locker(&m_mutex); + + for (const StreamPtr& stream : m_streams) + { + if (m_subscriptions.value(stream->getSessionId()).contains(uri)) { + targets.append(stream); + } + } + + m_notificationsSent += targets.size(); + } + + if (targets.isEmpty()) { + return; + } + + QByteArray event = resourceUpdatedEvent(uri); + + for (const StreamPtr& stream : targets) { + stream->push(event); + } +} + +void MCPStreams::notifyResourcesMatching(const QString& prefix) +{ + QSet uris; + { + QMutexLocker locker(&m_mutex); + + for (const StreamPtr& stream : m_streams) + { + for (const QString& uri : m_subscriptions.value(stream->getSessionId())) + { + if (uri.startsWith(prefix)) { + uris.insert(uri); + } + } + } + } + + for (const QString& uri : uris) { + notifyResourceUpdated(uri); + } +} + +int MCPStreams::streamCount() const +{ + QMutexLocker locker(&m_mutex); + return (int) m_streams.size(); +} + +qint64 MCPStreams::getNotificationsSent() const +{ + QMutexLocker locker(&m_mutex); + return m_notificationsSent; +} + +QJsonObject MCPStreams::status() const +{ + QMutexLocker locker(&m_mutex); + QJsonObject result; + result["openStreams"] = (int) m_streams.size(); + result["maxStreams"] = m_maxStreams; + result["sessions"] = (int) m_sessions.size(); + result["notificationsSent"] = (double) m_notificationsSent; + QJsonArray subscribed; + + for (auto it = m_subscriptions.begin(); it != m_subscriptions.end(); ++it) + { + for (const QString& uri : it.value()) + { + QJsonObject entry; + entry["session"] = it.key().isEmpty() ? QString("(anonymous)") : it.key(); + entry["uri"] = uri; + subscribed.append(entry); + } + } + + result["subscriptions"] = subscribed; + return result; +} + +// --------------------------------------------------------------------------- +// MCPNotifier +// --------------------------------------------------------------------------- + +MCPNotifier::MCPNotifier(MCPStreams *streams, MCPDataFeed *dataFeed, MCPTools *tools, QObject *parent) : + QObject(parent), + m_streams(streams), + m_tools(tools), + m_pendingDeviceSets(false) +{ + MainCore *mainCore = MainCore::instance(); + connect(mainCore, &MainCore::deviceSetAdded, this, &MCPNotifier::onDeviceSetAdded); + connect(mainCore, &MainCore::deviceStateChanged, this, &MCPNotifier::onDeviceStateChanged); + connect(mainCore, &MainCore::deviceSetRemoved, this, &MCPNotifier::onDeviceSetRemoved); + connect(mainCore, &MainCore::deviceChanged, this, &MCPNotifier::onDeviceChanged); + connect(mainCore, &MainCore::channelAdded, this, &MCPNotifier::onChannelAdded); + connect(mainCore, &MainCore::channelRemoved, this, &MCPNotifier::onChannelRemoved); + connect(mainCore, &MainCore::featureAdded, this, &MCPNotifier::onFeatureAdded); + connect(mainCore, &MainCore::featureRemoved, this, &MCPNotifier::onFeatureRemoved); + + if (dataFeed) + { + connect(dataFeed, &MCPDataFeed::packetsChanged, this, &MCPNotifier::onPacketsChanged); + connect(dataFeed, &MCPDataFeed::mapItemsChanged, this, &MCPNotifier::onMapItemsChanged); + } + + // Changes are collected and sent at most this often, so that a busy decoder does not + // turn every decoded packet into a notification + m_timer.setInterval(m_coalesceMs); + connect(&m_timer, &QTimer::timeout, this, &MCPNotifier::flush); + m_timer.start(); +} + +void MCPNotifier::markChanged(const QString& uri) +{ + QMutexLocker locker(&m_mutex); + m_pending.insert(uri); +} + +void MCPNotifier::markStructuralChange() +{ + QMutexLocker locker(&m_mutex); + m_pending.insert("sdrangel://instance"); + m_pendingDeviceSets = true; +} + +void MCPNotifier::onDeviceSetAdded(int index, DeviceAPI *device) +{ + (void) index; + (void) device; + markStructuralChange(); +} + +void MCPNotifier::onDeviceSetRemoved(int index) +{ + (void) index; + markStructuralChange(); +} + +void MCPNotifier::onDeviceStateChanged(int index, DeviceAPI *device) +{ + (void) index; + (void) device; + markStructuralChange(); +} + +void MCPNotifier::onDeviceChanged(int index) +{ + (void) index; + markStructuralChange(); +} + +void MCPNotifier::onChannelAdded(int deviceSetIndex, ChannelAPI *channel) +{ + (void) deviceSetIndex; + (void) channel; + markStructuralChange(); +} + +void MCPNotifier::onChannelRemoved(int deviceSetIndex, ChannelAPI *channel) +{ + (void) deviceSetIndex; + (void) channel; + markStructuralChange(); +} + +void MCPNotifier::onFeatureAdded(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + (void) feature; + markStructuralChange(); +} + +void MCPNotifier::onFeatureRemoved(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + (void) feature; + markStructuralChange(); +} + +void MCPNotifier::onPacketsChanged() +{ + markChanged("sdrangel://packets"); +} + +void MCPNotifier::onMapItemsChanged() +{ + markChanged("sdrangel://map/items"); +} + +// MainCore announces device sets, channels and features appearing and disappearing, but nothing +// at all when a setting changes, so a title or a frequency edited in the GUI or over the API would +// leave a subscriber holding a stale resource. The rendered content is compared instead, for the +// subscribed resources only, so a session that asked for nothing costs nothing +void MCPNotifier::pollForContentChanges() +{ + if (!m_tools) { + return; + } + + QSet uris = m_streams->subscribedUris(); + + for (QMap::iterator digest = m_digests.begin(); digest != m_digests.end(); ) + { + if (uris.contains(digest.key())) { + ++digest; + } else { + digest = m_digests.erase(digest); + } + } + + for (const QString& uri : uris) + { + QJsonObject content; + int index = -1; + + if (uri.startsWith("sdrangel://deviceset/")) + { + bool ok = false; + index = uri.mid(QString("sdrangel://deviceset/").size()).toInt(&ok); + + // A device set that is not there is not read: the read would only throw, once a + // second for as long as the subscription lasts + if (!ok || (index < 0) || (index >= m_tools->deviceSetCount())) { + continue; + } + } + else if (uri != "sdrangel://instance") + { + continue; // the others have their own signals + } + + // Reading a resource throws when it is not there any more, and this runs in a timer slot, + // where an exception would escape into the event loop and take the application down with + // it. A device set that has just gone is reported by the structural signal anyway + try { + content = (index < 0) ? m_tools->getInstanceSummary() : m_tools->getDeviceSet(index); + } catch (const MCPToolError&) { + continue; + } catch (const std::exception&) { + continue; + } + + QByteArray hash = QCryptographicHash::hash( + QJsonDocument(content).toJson(QJsonDocument::Compact), QCryptographicHash::Md5); + + if (m_digests.contains(uri) && (m_digests[uri] != hash)) { + markChanged(uri); + } + + m_digests[uri] = hash; + } +} + +void MCPNotifier::flush() +{ + pollForContentChanges(); + + QSet pending; + bool deviceSets; + { + QMutexLocker locker(&m_mutex); + + if (m_pending.isEmpty() && !m_pendingDeviceSets) { + return; + } + + pending = m_pending; + deviceSets = m_pendingDeviceSets; + m_pending.clear(); + m_pendingDeviceSets = false; + } + + for (const QString& uri : pending) { + m_streams->notifyResourceUpdated(uri); + } + + if (deviceSets) { + m_streams->notifyResourcesMatching("sdrangel://deviceset/"); + } +} diff --git a/plugins/feature/mcpserver/mcpstreams.h b/plugins/feature/mcpserver/mcpstreams.h new file mode 100644 index 000000000..d9e198e74 --- /dev/null +++ b/plugins/feature/mcpserver/mcpstreams.h @@ -0,0 +1,157 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPSTREAMS_H_ +#define INCLUDE_FEATURE_MCPSTREAMS_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class MCPDataFeed; +class MCPTools; +class DeviceAPI; +class ChannelAPI; +class Feature; + +// One open server to client SSE connection. The HTTP thread serving the GET request waits on +// this for events to send; any other thread can push events into it. +class MCPEventStream +{ +public: + explicit MCPEventStream(const QString& sessionId); + + const QString& getSessionId() const { return m_sessionId; } + qint64 ageMs() const; + + void push(const QByteArray& event); + QByteArray waitForEvent(int timeoutMs); //!< Empty if nothing arrived before the timeout + void close(); + bool isClosed() const; + +private: + QString m_sessionId; + mutable QMutex m_mutex; + QWaitCondition m_wait; + QQueue m_events; + QElapsedTimer m_age; + bool m_closed; + + static constexpr int m_maxQueued = 256; //!< A client that cannot keep up loses the oldest events +}; + +// Sessions and their open event streams. A session is created by initialize and identified by +// the Mcp-Session-Id header. Clients that do not use the header share the anonymous session, +// so a single client works fully and several session-less clients share their subscriptions. +class MCPStreams +{ +public: + MCPStreams(); + ~MCPStreams(); + + QString createSession(); + bool sessionExists(const QString& sessionId); //!< Also marks the session as recently used + void endSession(const QString& sessionId); + + //!< False when the session already holds as many subscriptions as are allowed + bool subscribe(const QString& sessionId, const QString& uri); + QSet subscribedUris() const; + bool unsubscribe(const QString& sessionId, const QString& uri); + QSet subscriptions(const QString& sessionId) const; + + typedef QSharedPointer StreamPtr; + + StreamPtr open(const QString& sessionId, QString& error); + void close(const StreamPtr& stream); + void closeAll(); //!< Must be called before the HTTP listener is destroyed, or its threads will not exit + + //!< Sends notifications/resources/updated to every stream subscribed to the URI + void notifyResourceUpdated(const QString& uri); + //!< The same for every subscribed URI starting with the prefix + void notifyResourcesMatching(const QString& prefix); + + QJsonObject status() const; + int streamCount() const; + qint64 getNotificationsSent() const; + + static constexpr int m_maxStreams = 8; + static constexpr int m_maxSessions = 32; //!< Oldest idle sessions are dropped beyond this + static constexpr int m_maxSubscriptions = 32; //!< Per session: the fixed resources and a few device sets + static const qint64 m_sessionIdleMs = 24 * 60 * 60 * 1000; //!< Sessions unused for this long are dropped + + static constexpr int m_maxStreamLifetimeMs = 10 * 60 * 1000; //!< Backstop against streams whose client vanished + +private: + mutable QMutex m_mutex; + QList m_streams; + QMap> m_subscriptions; //!< Session id (empty for anonymous) to subscribed URIs + QMap m_sessions; //!< Session id to when it was last used + qint64 m_notificationsSent; + + static QByteArray resourceUpdatedEvent(const QString& uri); + void expireSessions(); //!< Call with the mutex held +}; + +// Watches SDRangel for changes worth telling subscribed clients about, and coalesces them so +// that a busy decoder cannot flood the stream. +class MCPNotifier : public QObject +{ + Q_OBJECT +public: + MCPNotifier(MCPStreams *streams, MCPDataFeed *dataFeed, MCPTools *tools, QObject *parent = nullptr); + + static constexpr int m_coalesceMs = 1000; + +private slots: + void onDeviceSetAdded(int index, DeviceAPI *device); + void onDeviceStateChanged(int index, DeviceAPI *device); + void onDeviceSetRemoved(int index); + void onDeviceChanged(int index); + void onChannelAdded(int deviceSetIndex, ChannelAPI *channel); + void onChannelRemoved(int deviceSetIndex, ChannelAPI *channel); + void onFeatureAdded(int featureSetIndex, Feature *feature); + void onFeatureRemoved(int featureSetIndex, Feature *feature); + void onPacketsChanged(); + void onMapItemsChanged(); + void flush(); + +private: + MCPStreams *m_streams; + MCPTools *m_tools; + QTimer m_timer; + QMutex m_mutex; + QSet m_pending; + bool m_pendingDeviceSets; //!< A structural change, so every subscribed device set is stale too + QMap m_digests; //!< Subscribed resource URI to a hash of what it last held + + void markChanged(const QString& uri); + void markStructuralChange(); + void pollForContentChanges(); +}; + +#endif // INCLUDE_FEATURE_MCPSTREAMS_H_ diff --git a/plugins/feature/mcpserver/mcptools.cpp b/plugins/feature/mcpserver/mcptools.cpp new file mode 100644 index 000000000..8d30765f0 --- /dev/null +++ b/plugins/feature/mcpserver/mcptools.cpp @@ -0,0 +1,6184 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "SWGErrorResponse.h" +#include "SWGSuccessResponse.h" +#include "SWGInstanceSummaryResponse.h" +#include "SWGInstanceDevicesResponse.h" +#include "SWGInstanceChannelsResponse.h" +#include "SWGInstanceFeaturesResponse.h" +#include "SWGDeviceSetList.h" +#include "SWGDeviceSet.h" +#include "SWGDeviceListItem.h" +#include "SWGDeviceSettings.h" +#include "SWGDeviceState.h" +#include "SWGDeviceReport.h" +#include "SWGDeviceActions.h" +#include "SWGChannelSettings.h" +#include "SWGChannelReport.h" +#include "SWGChannelActions.h" +#include "SWGChannelsDetail.h" +#include "SWGFeatureSet.h" +#include "SWGFeatureSettings.h" +#include "SWGFeatureReport.h" +#include "SWGFeatureActions.h" +#include "SWGPresets.h" +#include "SWGPresetGroup.h" +#include "SWGPresetItem.h" +#include "SWGPresetTransfer.h" +#include "SWGPresetIdentifier.h" +#include "SWGConfigurations.h" +#include "SWGConfigurationIdentifier.h" +#include "SWGWorkspaceInfo.h" +#include "SWGWorkspaceActions.h" +#include "SWGWindowList.h" +#include "SWGGLSpectrum.h" +#include "SWGGLSpectrumReport.h" +#include "SWGSpectrumActions.h" +#include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" +#include "SWGSpectrumHistorySignal.h" +#include "SWGAudioDevices.h" +#include "SWGLocationInformation.h" + +#include "maincore.h" +#include "device/deviceset.h" +#include "channel/channelapi.h" +#include "device/deviceapi.h" +#include "feature/feature.h" +#include "feature/featureset.h" +#include "webapi/webapiadapterinterface.h" +#include "webapi/webapiutils.h" + +#include "mcpstreams.h" +#include "mcptools.h" + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +namespace { + +QJsonObject toJson(SWGSDRangel::SWGObject& object) +{ + QJsonObject *obj = object.asJsonObject(); + QJsonObject result = *obj; + delete obj; + return result; +} + +QString compact(const QJsonValue& value) +{ + if (value.isObject()) { + return QString(QJsonDocument(value.toObject()).toJson(QJsonDocument::Compact)); + } else if (value.isArray()) { + return QString(QJsonDocument(value.toArray()).toJson(QJsonDocument::Compact)); + } else if (value.isString()) { + return value.toString(); + } else { + return QString(QJsonDocument(QJsonArray({value})).toJson(QJsonDocument::Compact)); + } +} + +// Throws if the Web API call failed +void check(int httpRC, SWGSDRangel::SWGErrorResponse& error, const QString& what) +{ + if (httpRC / 100 != 2) + { + QString message = error.getMessage() ? *error.getMessage() : QString(); + throw MCPToolError(QString("%1 failed (HTTP %2)%3").arg(what).arg(httpRC).arg(message.isEmpty() ? "" : ": " + message)); + } +} + +// Argument access. Accepts numbers given as strings, as models sometimes do. +bool hasArg(const QJsonObject& args, const QString& key) +{ + return args.contains(key) && !args[key].isNull() && !args[key].isUndefined(); +} + +// Models write booleans as JSON booleans mostly, but also as "true"/"false" strings and as 0/1, +// and QJsonValue::toBool answers its default for anything but a JSON boolean, which turned +// replace "false" into true. Absent, null and anything unreadable give the default +bool argBool(const QJsonObject& args, const QString& key, bool defaultValue) +{ + if (!hasArg(args, key)) { + return defaultValue; + } + + const QJsonValue value = args.value(key); + + if (value.isBool()) { + return value.toBool(); + } + + if (value.isDouble()) { + return value.toDouble() != 0.0; + } + + if (value.isString()) + { + const QString text = value.toString().trimmed().toLower(); + + if ((text == "true") || (text == "1") || (text == "yes") || (text == "on")) { + return true; + } + + if ((text == "false") || (text == "0") || (text == "no") || (text == "off") || text.isEmpty()) { + return false; + } + } + + return defaultValue; +} + +int argInt(const QJsonObject& args, const QString& key, bool required = true, int defaultValue = 0) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return defaultValue; + } + + QJsonValue value = args[key]; + + if (value.isDouble()) { + return (int) value.toDouble(); + } + + bool ok; + int result = value.toString().trimmed().toInt(&ok); + + if (!ok) + { + double d = value.toString().trimmed().toDouble(&ok); + + if (ok) { + return (int) d; + } + + throw MCPToolError(QString("Argument %1 must be an integer").arg(key)); + } + + return result; +} + +qint64 argInt64(const QJsonObject& args, const QString& key, bool required = true, qint64 defaultValue = 0) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return defaultValue; + } + + QJsonValue value = args[key]; + + if (value.isDouble()) { + return (qint64) value.toDouble(); + } + + bool ok; + double d = value.toString().trimmed().toDouble(&ok); + + if (!ok) { + throw MCPToolError(QString("Argument %1 must be a number").arg(key)); + } + + return (qint64) d; +} + +double argDouble(const QJsonObject& args, const QString& key, bool required = true, double defaultValue = 0.0) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return defaultValue; + } + + QJsonValue value = args[key]; + + if (value.isDouble()) { + return value.toDouble(); + } + + bool ok; + double d = value.toString().trimmed().toDouble(&ok); + + if (!ok) { + throw MCPToolError(QString("Argument %1 must be a number").arg(key)); + } + + return d; +} + +QString argString(const QJsonObject& args, const QString& key, bool required = true, const QString& defaultValue = QString()) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return defaultValue; + } + + QJsonValue value = args[key]; + + if (value.isString()) { + return value.toString(); + } else if (value.isDouble()) { + return QString::number(value.toDouble(), 'g', 15); + } else { + return compact(value); + } +} + +QJsonObject argObject(const QJsonObject& args, const QString& key, bool required = true) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return QJsonObject(); + } + + QJsonValue value = args[key]; + + if (value.isObject()) { + return value.toObject(); + } + + // Tolerate an object passed as a JSON string + if (value.isString()) + { + QJsonDocument doc = QJsonDocument::fromJson(value.toString().toUtf8()); + + if (doc.isObject()) { + return doc.object(); + } + } + + throw MCPToolError(QString("Argument %1 must be a JSON object").arg(key)); +} + +// direction: "rx" / "tx" / "mimo" or 0 / 1 / 2 +int argDirection(const QJsonObject& args, const QString& key = "direction", bool required = false, int defaultValue = 0) +{ + if (!hasArg(args, key)) + { + if (required) { + throw MCPToolError(QString("Missing required argument: %1").arg(key)); + } + + return defaultValue; + } + + QJsonValue value = args[key]; + + if (value.isDouble()) { + return (int) value.toDouble(); + } + + QString s = value.toString().trimmed().toLower(); + + if ((s == "rx") || (s == "0") || (s == "receive") || (s == "source")) { + return 0; + } else if ((s == "tx") || (s == "1") || (s == "transmit") || (s == "sink")) { + return 1; + } else if ((s == "mimo") || (s == "2")) { + return 2; + } + + throw MCPToolError(QString("Argument %1 must be \"rx\", \"tx\" or \"mimo\"").arg(key)); +} + +QString directionName(int direction) +{ + switch (direction) + { + case 0: return "rx"; + case 1: return "tx"; + case 2: return "mimo"; + default: return QString::number(direction); + } +} + +// JSON schema builders +QJsonObject prop(const QString& type, const QString& description) +{ + QJsonObject p; + p["type"] = type; + p["description"] = description; + return p; +} + +QJsonObject intProp(const QString& description) { return prop("integer", description); } +QJsonObject numProp(const QString& description) { return prop("number", description); } +QJsonObject strProp(const QString& description) { return prop("string", description); } +QJsonObject objProp(const QString& description) { return prop("object", description); } + +QJsonObject enumProp(const QString& description, const QStringList& values) +{ + QJsonObject p = strProp(description); + p["enum"] = QJsonArray::fromStringList(values); + return p; +} + +QJsonObject directionProp(const QString& description) +{ + return enumProp(description, {"rx", "tx", "mimo"}); +} + +// Adds the bounds a handler enforces at runtime to the schema, so a client can see them +QJsonObject bounded(QJsonObject property, double minimum, double maximum) +{ + property["minimum"] = minimum; + property["maximum"] = maximum; + return property; +} + +QJsonObject schema(const QJsonObject& properties, const QStringList& required = QStringList()) +{ + QJsonObject s; + s["type"] = "object"; + s["properties"] = properties; + s["required"] = QJsonArray::fromStringList(required); + s["additionalProperties"] = false; + return s; +} + +const QJsonObject deviceSetIndexProp = intProp("Index of the device set (0 for R0, the first device set)"); +const QJsonObject channelIndexProp = intProp("Index of the channel within the device set"); +const QJsonObject featureIndexProp = intProp("Index of the feature within the feature set"); + +// Settings keys in the form used by the Web API PATCH: nested keys are dotted, array elements indexed +void extractKeys(const QJsonObject& json, QStringList& keys, const QString& prefix = QString()) +{ + for (const QString& key : json.keys()) + { + QString full = prefix.isEmpty() ? key : prefix + "." + key; + keys.append(full); + + if (json[key].isObject()) + { + extractKeys(json[key].toObject(), keys, full); + } + else if (json[key].isArray()) + { + QJsonArray array = json[key].toArray(); + + for (int i = 0; i < array.count(); i++) + { + QString element = QString("%1[%2]").arg(full).arg(i); + keys.append(element); + + if (array.at(i).isObject()) { + extractKeys(array.at(i).toObject(), keys, element); + } + } + } + } +} + +// Applies patch on top of target. Objects are merged recursively, everything else replaced. +// Keys absent from target are reported (they may still be valid: empty strings are not serialized). +void mergeInto(QJsonObject& target, const QJsonObject& patch, QStringList& unknownKeys, const QString& prefix = QString()) +{ + for (const QString& key : patch.keys()) + { + QString full = prefix.isEmpty() ? key : prefix + "." + key; + + if (!target.contains(key)) { + unknownKeys.append(full); + } + + if (patch[key].isObject() && target[key].isObject()) + { + QJsonObject sub = target[key].toObject(); + mergeInto(sub, patch[key].toObject(), unknownKeys, full); + target[key] = sub; + } + else + { + target[key] = patch[key]; + } + } +} + +int leadingSpaces(const QString& line) +{ + int count = 0; + + while ((count < line.length()) && (line.at(count) == ' ')) { + count++; + } + + return count; +} + +// Reads the property names and types out of one swagger definition. Only the properties of the +// definition itself are taken: the attributes of a property sit two spaces further in, so an +// items: block of an array cannot be mistaken for the array's own type. +SettingsSchema parseSettingsSchema(const QString& yaml) +{ + SettingsSchema schema; + int propertiesIndent = -1; + int nameIndent = -1; + QString property; + + for (const QString& line : yaml.split('\n')) + { + QString text = line.trimmed(); + + if (text.isEmpty() || text.startsWith('#')) { + continue; + } + + int indent = leadingSpaces(line); + + if (propertiesIndent < 0) + { + if (text == "properties:") { + propertiesIndent = indent; + } + + continue; + } + + if (indent <= propertiesIndent) { + break; // out of the properties block and into the next section of the definition + } + + if (nameIndent < 0) { + nameIndent = indent; + } + + if (indent == nameIndent) + { + if (text.endsWith(':')) + { + property = text.left(text.length() - 1); + schema.m_types.insert(property, QString()); + } + else + { + property.clear(); + } + } + else if ((indent == nameIndent + 2) && !property.isEmpty()) + { + if (text.startsWith("type:")) { + schema.m_types[property] = text.mid(5).trimmed(); + } else if (text.startsWith("$ref:") && schema.m_types.value(property).isEmpty()) { + schema.m_types[property] = "object"; + } + } + } + + schema.m_known = !schema.m_types.isEmpty(); + return schema; +} + +// Checks a patch against the schema and returns it with the one conversion worth making. Values +// are checked here rather than left to the SWG object, whose setValue() turns a string into zero +// without complaint: "rfBandwidth": "wide" would otherwise stop the channel demodulating and be +// reported as a successful change. +QJsonObject checkAgainstSchema(const QJsonObject& patch, const SettingsSchema& schema, + QStringList& unknownKeys, QStringList& typeErrors) +{ + QJsonObject checked; + + for (const QString& key : patch.keys()) + { + QJsonValue value = patch[key]; + + if (!schema.m_types.contains(key)) + { + unknownKeys.append(key); + checked[key] = value; + continue; + } + + QString type = schema.m_types[key]; + bool numeric = (type == "integer") || (type == "number"); + + if (numeric && value.isBool()) + { + // Unambiguous and lossless, and the natural way to write a 0/1 flag + checked[key] = value.toBool() ? 1 : 0; + continue; + } + + bool ok = true; + + if (numeric) { + ok = value.isDouble(); + } else if (type == "string") { + ok = value.isString(); + } else if (type == "array") { + ok = value.isArray(); + } else if (type == "object") { + ok = value.isObject(); + } + + if (!ok) + { + QString got = value.isString() ? "string" : + value.isDouble() ? "number" : + value.isBool() ? "boolean" : + value.isArray() ? "array" : + value.isObject() ? "object" : "null"; + typeErrors.append(QString("%1 expects %2 but was given a %3 (%4)") + .arg(key).arg(type).arg(got).arg(compact(QJsonObject{{key, value}}))); + } + + checked[key] = value; + } + + return checked; +} + +// The key holding the type specific settings, e.g. "rtlSdrSettings" or "ADSBDemodSettings" +QString findSettingsKey(const QJsonObject& json) +{ + for (const QString& key : json.keys()) + { + if (key.endsWith("Settings") && json[key].isObject()) { + return key; + } + } + + return QString(); +} + +// Generic settings patch: read current settings, merge the partial object given by the model +// into the type specific sub-object, then PATCH with the list of changed keys. +template +QJsonObject applySettingsPatch( + const std::function& get, + const std::function& put, + const QJsonObject& partial, + const QString& what, + const std::function& schemaFor) +{ + SWGSDRangel::SWGErrorResponse error; + error.init(); + SWG current; + check(get(current, error), error, "Get " + what); + QJsonObject json = toJson(current); + QString settingsKey = findSettingsKey(json); + + if (settingsKey.isEmpty()) { + throw MCPToolError(QString("Cannot find settings object in current %1: %2").arg(what).arg(compact(json))); + } + + QJsonObject subPartial; + + if (partial.contains(settingsKey)) + { + subPartial = partial[settingsKey].toObject(); + } + else + { + for (const QString& key : partial.keys()) + { + if (key.endsWith("Settings") && partial[key].isObject()) { + throw MCPToolError(QString("Settings object key %1 does not match the current type. Expected %2 or the bare settings object").arg(key).arg(settingsKey)); + } + } + + subPartial = partial; + } + + if (subPartial.isEmpty()) { + throw MCPToolError("No settings given"); + } + + QStringList unknownKeys; + SettingsSchema schema = schemaFor(settingsKey); + + if (schema.m_known) + { + QStringList typeErrors; + subPartial = checkAgainstSchema(subPartial, schema, unknownKeys, typeErrors); + + if (!typeErrors.isEmpty()) + { + throw MCPToolError(QString("Wrong value type for %1: %2. Numbers must be given as JSON " + "numbers, not strings. Nothing was changed.").arg(settingsKey).arg(typeErrors.join("; "))); + } + } + + QJsonObject sub = json[settingsKey].toObject(); + QStringList merged; + mergeInto(sub, subPartial, merged); + json[settingsKey] = sub; + + if (!schema.m_known) + { + // Without a schema the only test left is whether the key is in the current settings, which + // misses any string setting that is currently empty. Better than nothing, but not by much + unknownKeys = merged; + } + + QStringList keys; + extractKeys(subPartial, keys); + + SWG request; + request.fromJsonObject(json); + error.init(); + check(put(keys, request, error), error, "Set " + what); + + // Reply with only what was asked for, read back from the object that was sent. Echoing + // the whole settings block cost a client about 500 tokens per call, carried for the rest + // of the conversation, to confirm a one key change. + QJsonObject after = toJson(request)[settingsKey].toObject(); + QJsonObject changed; + + for (const QString& key : subPartial.keys()) + { + if (after.contains(key)) { + changed[key] = after[key]; + } + } + + QJsonObject result; + result["changed"] = changed; + + if (!unknownKeys.isEmpty()) { + result["warning"] = QString("Ignored unknown keys: %1. describe_settings lists the valid ones.").arg(unknownKeys.join(", ")); + } + + return result; +} + +QString capitalize(const QString& s) +{ + return s.isEmpty() ? s : s.at(0).toUpper() + s.mid(1); +} + +// The plugin lists carry a URI, a version and an index per entry that no caller needs. Each +// becomes one string: the id the other tools take, with the display name in brackets when it +// says something the id does not. +// Features with no run state: they work from the moment they are configured. Some answer the run +// request with 501 and the rest accept it and stay idle, so neither the request nor the state that +// follows it tells them apart from a feature that is slow to start +const QStringList passiveFeatureTypes = { + "AIS", "AMBE", "AntennaTools", "APRS", "FreqDisplay", "LimeRFE", "Map", "Radiosonde", + "RemoteControl", "SkyMap" +}; + +bool isPassiveFeature(const QString& featureType) +{ + return passiveFeatureTypes.contains(featureType); +} + +QJsonArray idsAndNames(const QJsonArray& plugins) +{ + QJsonArray out; + + for (const QJsonValue& v : plugins) + { + QJsonObject p = v.toObject(); + QString id = p["id"].toString(); + QString name = p["name"].toString(); + + if (!name.isEmpty() && (name.compare(id, Qt::CaseInsensitive) != 0)) { + out.append(QString("%1 (%2)").arg(id).arg(name)); + } else { + out.append(id); + } + } + + return out; +} + +} // namespace + +// --------------------------------------------------------------------------- +// Event counter +// --------------------------------------------------------------------------- + +MCPEventCounter::MCPEventCounter() : + m_deviceSetAdded(0), + m_deviceSetRemoved(0), + m_deviceChanged(0), + m_channelAdded(0), + m_channelRemoved(0), + m_featureAdded(0), + m_featureRemoved(0) +{ + MainCore *mainCore = MainCore::instance(); + connect(mainCore, &MainCore::deviceSetAdded, this, &MCPEventCounter::onDeviceSetAdded); + connect(mainCore, &MainCore::deviceSetRemoved, this, &MCPEventCounter::onDeviceSetRemoved); + connect(mainCore, &MainCore::deviceChanged, this, &MCPEventCounter::onDeviceChanged); + connect(mainCore, &MainCore::channelAdded, this, &MCPEventCounter::onChannelAdded); + connect(mainCore, &MainCore::channelRemoved, this, &MCPEventCounter::onChannelRemoved); + connect(mainCore, &MainCore::featureAdded, this, &MCPEventCounter::onFeatureAdded); + connect(mainCore, &MainCore::featureRemoved, this, &MCPEventCounter::onFeatureRemoved); +} + +void MCPEventCounter::onDeviceSetAdded(int index, DeviceAPI *device) +{ + (void) index; + (void) device; + m_deviceSetAdded.fetchAndAddRelease(1); +} + +void MCPEventCounter::onDeviceSetRemoved(int index) +{ + (void) index; + m_deviceSetRemoved.fetchAndAddRelease(1); +} + +void MCPEventCounter::onDeviceChanged(int index) +{ + (void) index; + m_deviceChanged.fetchAndAddRelease(1); +} + +void MCPEventCounter::onChannelAdded(int deviceSetIndex, ChannelAPI *channel) +{ + (void) deviceSetIndex; + (void) channel; + m_channelAdded.fetchAndAddRelease(1); +} + +void MCPEventCounter::onChannelRemoved(int deviceSetIndex, ChannelAPI *channel) +{ + (void) deviceSetIndex; + (void) channel; + m_channelRemoved.fetchAndAddRelease(1); +} + +void MCPEventCounter::onFeatureAdded(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + (void) feature; + m_featureAdded.fetchAndAddRelease(1); +} + +void MCPEventCounter::onFeatureRemoved(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + (void) feature; + m_featureRemoved.fetchAndAddRelease(1); +} + +// --------------------------------------------------------------------------- +// Registry +// --------------------------------------------------------------------------- + +MCPTools::MCPTools(WebAPIAdapterInterface *webAPIAdapterInterface) : + m_adapter(webAPIAdapterInterface), + m_capture(webAPIAdapterInterface), + m_streams(nullptr), + m_ownerFeature(nullptr), + m_stopping(0), + m_yamlLoaded(false) +{ + registerInstanceTools(); + registerDeviceSetTools(); + registerChannelTools(); + registerFeatureTools(); + registerPresetTools(); + registerWorkspaceTools(); + registerCaptureTools(); + registerIntentTools(); +} + +void MCPTools::setStopping(bool stopping) +{ + m_stopping.storeRelease(stopping ? 1 : 0); + m_capture.setStopping(stopping); +} + +// The tools run on HTTP threads and wait for work that completes on the main thread. When the +// server stops, the main thread waits for the HTTP threads instead, so a wait that carried on +// would hold it for its whole timeout, or for ever where the main thread itself is what is +// waited for. Every wait therefore gives up at once when a stop is under way +bool MCPTools::waitFor(const std::function& condition, int timeoutMs) const +{ + QElapsedTimer timer; + timer.start(); + + while (!condition()) + { + if (m_stopping.loadAcquire()) { + throw MCPToolError("The MCP server is stopping, so this call was abandoned"); + } + + if (timer.elapsed() > timeoutMs) { + return false; + } + + QThread::msleep(20); + } + + return true; +} + +void MCPTools::pause(int ms) const +{ + QElapsedTimer timer; + timer.start(); + + for (;;) + { + if (m_stopping.loadAcquire()) { + throw MCPToolError("The MCP server is stopping, so this call was abandoned"); + } + + // Read once: read again for the sleep, the limit could pass in between and a negative + // remainder become an unsigned sleep of weeks + const qint64 remaining = ms - timer.elapsed(); + + if (remaining <= 0) { + return; + } + + QThread::msleep((unsigned long) std::min(50, remaining)); + } +} + +// Per tool behaviour. The MCP hints are narrower than they look: destructiveHint false means +// the tool is additive only, so anything that overwrites existing state is destructive, and +// openWorldHint true means the tool can reach beyond this application, which covers commanding +// the radio, features that talk to network services, and data arriving from unknown transmitters. +struct ToolBehaviour +{ + bool m_readOnly; + bool m_destructive; + bool m_idempotent; + bool m_openWorld; +}; + +static ToolBehaviour behaviourFor(const QString& name) +{ + // Reads of this instance's own configuration and of documentation compiled into the plugin + static const QStringList localReads = { + "get_instance_summary", "list_available_devices", "list_channel_types", "list_feature_types", + "describe_settings", "get_receiving_guide", "list_docs", "get_docs", "list_audio_devices", + "get_location", "get_deviceset", "get_device_settings", + "get_spectrum_settings", "get_spectrum_report", "get_spectrum_data", "get_channel_settings", "get_feature_settings", + "list_presets", "list_configurations", "get_server_status", "get_status" + }; + + // Reads that return data received off the air, from transmitters this instance does not + // control, or from the network services some features talk to. Reports carry it as well as + // the dedicated data feeds do: an ADS-B report, for instance, lists the aircraft heard. + static const QStringList offAirReads = { + "get_packets", "get_map_items", "get_channel_report", + "get_device_report", "get_feature_report" + }; + + // Purely additive: they create something new and overwrite nothing + static const QStringList additive = { + "add_deviceset", "add_channel", "add_feature", "add_workspace", "add_annotation" + }; + + if (localReads.contains(name)) { + return {true, false, true, false}; + } + + if (offAirReads.contains(name)) { + return {true, false, true, true}; + } + + if (additive.contains(name)) { + return {false, false, false, true}; + } + + // Everything else changes or removes state. Only the workspace moves and the settings writes + // land in the same place when repeated; captures, actions and creation do not. + bool idempotent = name.startsWith("set_") || name.startsWith("stop_") || (name == "clear_packets"); + return {false, true, idempotent, true}; +} + +void MCPTools::add(const QString& name, const QString& description, const QJsonObject& inputSchema, + std::function handler) +{ + Tool tool; + tool.name = name; + tool.description = description; + tool.inputSchema = inputSchema; + tool.handler = handler; + m_tools.append(tool); +} + +QJsonArray MCPTools::listTools() const +{ + QJsonArray tools; + + for (const Tool& tool : m_tools) + { + QJsonObject t; + t["name"] = tool.name; + t["description"] = tool.description; + t["inputSchema"] = tool.inputSchema; + ToolBehaviour behaviour = behaviourFor(tool.name); + // Clients carry the whole tool list on every turn, so only say what differs from the + // defaults the MCP schema gives an absent hint (read-write, destructive, not + // idempotent, open world), and no title, which would repeat the description + QJsonObject annotations; + if (behaviour.m_readOnly) { annotations["readOnlyHint"] = true; } + if (!behaviour.m_destructive) { annotations["destructiveHint"] = false; } + if (behaviour.m_idempotent) { annotations["idempotentHint"] = true; } + if (!behaviour.m_openWorld) { annotations["openWorldHint"] = false; } + if (!annotations.isEmpty()) { t["annotations"] = annotations; } + tools.append(t); + } + + return tools; +} + +QJsonObject MCPTools::callTool(const QString& name, const QJsonObject& arguments) +{ + const Tool *tool = nullptr; + + for (const Tool& t : m_tools) + { + if (t.name == name) + { + tool = &t; + break; + } + } + + if (!tool) { + throw MCPError(-32602, QString("Unknown tool: %1").arg(name)); + } + + QJsonObject result; + QJsonArray content; + + try + { + // Every input schema says additionalProperties: false, so an argument a tool does not + // define is a mistake worth reporting. Dropping it silently turns a wrong call into a + // plausible wrong answer: get_packets, which filters on source and type, looks as though + // it is ignoring a deviceSetIndex and channelIndex filter it never had + QJsonObject properties = tool->inputSchema.value("properties").toObject(); + QStringList unknown; + + for (const QString& key : arguments.keys()) + { + if (!properties.contains(key)) { + unknown.append(key); + } + } + + if (!unknown.isEmpty()) + { + QStringList accepted = properties.keys(); + throw MCPToolError(QString("%1 does not take %2. It accepts: %3") + .arg(name) + .arg(unknown.join(", ")) + .arg(accepted.isEmpty() ? QString("no arguments") : accepted.join(", "))); + } + + QJsonValue value = tool->handler(arguments); + + // A handler that has a picture to show puts it under _image, which becomes an image + // content item beside the text rather than a base64 blob in it + QJsonObject image; + + if (value.isObject() && value.toObject().contains("_image")) + { + QJsonObject object = value.toObject(); + image = object.take("_image").toObject(); + value = object; + } + + QJsonObject text; + text["type"] = "text"; + text["text"] = compact(value); + content.append(text); + + if (!image.isEmpty()) + { + QJsonObject item; + item["type"] = "image"; + item["data"] = image["data"]; + item["mimeType"] = image["mimeType"]; + content.append(item); + } + + if (value.isObject()) { + result["structuredContent"] = value; + } + + result["isError"] = false; + } + catch (const MCPToolError& e) + { + qDebug() << "MCPTools::callTool:" << name << "error:" << e.message; + QJsonObject text; + text["type"] = "text"; + text["text"] = "Error: " + e.message; + content.append(text); + result["isError"] = true; + } + + result["content"] = content; + return result; +} + +// --------------------------------------------------------------------------- +// Instance level data +// --------------------------------------------------------------------------- + +QJsonObject MCPTools::getInstanceSummary() +{ + SWGSDRangel::SWGInstanceSummaryResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceSummary(response, error), error, "Get instance summary"); + return toJson(response); +} + +QJsonObject MCPTools::getAvailableDevices(int direction) +{ + QJsonObject result; + + for (int dir = 0; dir < 3; dir++) + { + if ((direction >= 0) && (direction != dir)) { + continue; + } + + SWGSDRangel::SWGInstanceDevicesResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceDevices(dir, response, error), error, "List devices"); + result[directionName(dir)] = toJson(response)["devices"].toArray(); + } + + return result; +} + +QJsonObject MCPTools::getAvailableChannels(int direction) +{ + QJsonObject result; + + for (int dir = 0; dir < 3; dir++) + { + if ((direction >= 0) && (direction != dir)) { + continue; + } + + SWGSDRangel::SWGInstanceChannelsResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceChannels(dir, response, error), error, "List channel types"); + result[directionName(dir)] = idsAndNames(toJson(response)["channels"].toArray()); + } + + return result; +} + +QJsonObject MCPTools::getAvailableFeatures() +{ + SWGSDRangel::SWGInstanceFeaturesResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceFeatures(response, error), error, "List feature types"); + QJsonObject result; + QJsonArray features; + + for (const QJsonValue& v : toJson(response)["features"].toArray()) + { + QString entry = v.toObject()["id"].toString(); + features.append(isPassiveFeature(entry) + ? QString("%1 [passive: no run state, do not start it]").arg(idsAndNames(QJsonArray{v}).first().toString()) + : idsAndNames(QJsonArray{v}).first().toString()); + } + + result["features"] = features; + return result; +} + +QJsonObject MCPTools::getPresets() +{ + SWGSDRangel::SWGPresets response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instancePresetsGet(response, error), error, "List presets"); + return toJson(response); +} + +QJsonObject MCPTools::getConfigurations() +{ + SWGSDRangel::SWGConfigurations response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceConfigurationsGet(response, error), error, "List configurations"); + return toJson(response); +} + +QJsonObject MCPTools::getDeviceSet(int deviceSetIndex) +{ + SWGSDRangel::SWGDeviceSet response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetGet(deviceSetIndex, response, error), error, QString("Get device set %1").arg(deviceSetIndex)); + return toJson(response); +} + +void MCPTools::loadYamlDefinitions() +{ + if (m_yamlLoaded) { + return; + } + + m_yamlLoaded = true; + QDir dir(":/webapi/doc/swagger/include"); + QRegularExpression definitionStart("^([A-Za-z0-9_]+):\\s*$"); + + for (const QString& fileName : dir.entryList(QStringList("*.yaml"), QDir::Files)) + { + QFile file(dir.filePath(fileName)); + + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { + continue; + } + + QString name; + QStringList block; + + for (const QString& line : QString::fromUtf8(file.readAll()).split('\n')) + { + QRegularExpressionMatch match = definitionStart.match(line); + + if (match.hasMatch()) + { + if (!name.isEmpty()) { + m_yamlDefinitions[name] = block.join('\n').trimmed(); + } + + name = match.captured(1); + block.clear(); + } + + block.append(line); + } + + if (!name.isEmpty()) { + m_yamlDefinitions[name] = block.join('\n').trimmed(); + } + } + + for (auto name = m_yamlDefinitions.keyBegin(); name != m_yamlDefinitions.keyEnd(); ++name) { + m_yamlDefinitionsByLower.insert(name->toLower(), *name); + } + + qDebug("MCPTools::loadYamlDefinitions: %d definitions", (int) m_yamlDefinitions.size()); +} + +// The JSON settings key does not always capitalise the way its swagger definition does: +// testSourceSettings comes from TestSourceSettings, and sdrPlayV3Settings from SDRPlayV3Settings. +// Only the case ever differs, so a name that does not match exactly is looked up without it. +// Returns an empty string when there is no such definition +QString MCPTools::resolveDefinition(const QString& name) +{ + loadYamlDefinitions(); + + if (m_yamlDefinitions.contains(name)) { + return name; + } + + return m_yamlDefinitionsByLower.value(name.toLower()); +} + +QString MCPTools::describeType(const QString& typeIn, const QString& kindIn) +{ + QMutexLocker schemaLock(&m_schemaMutex); + loadYamlDefinitions(); + QString type = typeIn.trimmed(); + QString kind = kindIn.trimmed().toLower(); + // (settings JSON key, description of what matched) + QList> matches; + + // The spectrum display is not a type: its definitions are named after it directly + const QString lower = type.toLower(); + + if ((kind == "spectrum") || (lower == "spectrum") || (lower == "glspectrum")) + { + QStringList out; + out.append("# main spectrum display of a device set\n# get_spectrum_settings / set_spectrum_settings, get_spectrum_report, spectrum_action\n" + "# get_docs spectrum explains the display and its controls\n"); + + for (const QString& definition : {"GLSpectrum", "GLSpectrumReport", "SpectrumActions"}) + { + if (m_yamlDefinitions.contains(definition)) + { + out.append(m_yamlDefinitions[definition]); + out.append(""); + } + } + + return out.join('\n'); + } + + if (kind.isEmpty() || (kind == "channel")) + { + if (WebAPIUtils::m_channelTypeToSettingsKey.contains(type)) { + matches.append({WebAPIUtils::m_channelTypeToSettingsKey[type], "channel type " + type}); + } + } + + if (kind.isEmpty() || (kind == "device")) + { + if (WebAPIUtils::m_sourceDeviceHwIdToSettingsKey.contains(type)) { + matches.append({WebAPIUtils::m_sourceDeviceHwIdToSettingsKey[type], "rx device " + type}); + } + if (WebAPIUtils::m_sinkDeviceHwIdToSettingsKey.contains(type)) { + matches.append({WebAPIUtils::m_sinkDeviceHwIdToSettingsKey[type], "tx device " + type}); + } + if (WebAPIUtils::m_mimoDeviceHwIdToSettingsKey.contains(type)) { + matches.append({WebAPIUtils::m_mimoDeviceHwIdToSettingsKey[type], "mimo device " + type}); + } + } + + if (kind.isEmpty() || (kind == "feature")) + { + if (WebAPIUtils::m_featureTypeToSettingsKey.contains(type)) { + matches.append({WebAPIUtils::m_featureTypeToSettingsKey[type], "feature type " + type}); + } + } + + // Also accept a definition name given directly, e.g. "RtlSdrSettings" or "RtlSdr" + if (matches.isEmpty()) + { + if (!resolveDefinition(type + "Settings").isEmpty()) { + matches.append({type + "Settings", type}); + } else if (!resolveDefinition(type).isEmpty()) { + matches.append({type, type}); + } + } + + if (matches.isEmpty()) + { + throw MCPToolError(QString("Unknown type %1. Use the id values returned by list_channel_types, list_feature_types " + "or the hwType values returned by list_available_devices").arg(type)); + } + + QStringList out; + + for (const auto& match : matches) + { + QString settingsKey = match.first; + QString base = capitalize(settingsKey); + + if (base.endsWith("Settings")) { + base.chop(QString("Settings").size()); + } + + out.append(QString("# %1\n# Settings JSON key: %2\n").arg(match.second).arg(settingsKey)); + bool found = false; + + // A definition given by its own name that is not a Settings one, such as a Report or a + // marker, is what was asked for and is not reached by the suffixes below + if (!settingsKey.endsWith("Settings") && m_yamlDefinitions.contains(resolveDefinition(settingsKey))) + { + out.append(m_yamlDefinitions[resolveDefinition(settingsKey)]); + out.append(""); + found = true; + } + + for (const QString suffix : {"Settings", "Report", "Actions"}) + { + QString definition = resolveDefinition(base + suffix); + + if (!definition.isEmpty()) + { + out.append(m_yamlDefinitions[definition]); + out.append(""); + found = true; + } + } + + if (!found) { + out.append(QString("No documentation found for %1").arg(base)); + } + } + + return out.join('\n'); +} + +// --------------------------------------------------------------------------- +// Device set helpers +// --------------------------------------------------------------------------- + +int MCPTools::deviceSetCount() const +{ + return (int) MainCore::instance()->getDeviceSets().size(); +} + +int MCPTools::channelCount(int deviceSetIndex) const +{ + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size())) { + return -1; + } + + return deviceSets[deviceSetIndex]->getNumberOfChannels(); +} + +int MCPTools::featureCount() const +{ + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (featureSets.empty()) { + return -1; + } + + return featureSets[0]->getNumberOfFeatures(); +} + +int MCPTools::deviceSetDirection(int deviceSetIndex) +{ + QJsonObject deviceSet = getDeviceSet(deviceSetIndex); + return deviceSet["samplingDevice"].toObject()["direction"].toInt(0); +} + +// Selects the sampling device of a device set from hwType / serial / sequence / displayedName / deviceIndex +// and waits for SDRangel to switch to it. +QJsonObject MCPTools::selectDevice(int deviceSetIndex, const QJsonObject& args) +{ + int direction = deviceSetDirection(deviceSetIndex); + QString hwType = argString(args, "hwType", false); + QString serial = argString(args, "serial", false); + QString displayedName = argString(args, "displayedName", false); + int sequence = argInt(args, "sequence", false, -1); + int streamIndex = argInt(args, "deviceStreamIndex", false, -1); + + if (hasArg(args, "deviceIndex")) + { + // Resolve the index in the available devices list to concrete identifiers + int deviceIndex = argInt(args, "deviceIndex"); + QJsonArray devices = getAvailableDevices(direction)[directionName(direction)].toArray(); + bool found = false; + + for (const auto& value : devices) + { + QJsonObject device = value.toObject(); + + if (device["index"].toInt(-1) == deviceIndex) + { + hwType = device["hwType"].toString(); + serial = device["serial"].toString(); + sequence = device["sequence"].toInt(-1); + streamIndex = device["deviceStreamIndex"].toInt(-1); + displayedName = device["displayedName"].toString(); + found = true; + break; + } + } + + if (!found) { + throw MCPToolError(QString("No %1 device with index %2 in the available devices list").arg(directionName(direction)).arg(deviceIndex)); + } + } + + if (hwType.isEmpty() && serial.isEmpty() && displayedName.isEmpty()) { + throw MCPToolError("Specify at least one of hwType, serial, displayedName or deviceIndex to select a device"); + } + + SWGSDRangel::SWGDeviceListItem query; + query.setDirection(direction); + query.setIndex(-1); + query.setSequence(sequence); + query.setDeviceStreamIndex(streamIndex); + + if (!hwType.isEmpty()) { + query.setHwType(new QString(hwType)); + } + if (!serial.isEmpty()) { + query.setSerial(new QString(serial)); + } + if (!displayedName.isEmpty()) { + query.setDisplayedName(new QString(displayedName)); + } + + SWGSDRangel::SWGDeviceListItem response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + int changedBefore = m_events.m_deviceChanged.loadAcquire(); + check(m_adapter->devicesetDevicePut(deviceSetIndex, query, response, error), error, "Select device"); + + QJsonObject selected = toJson(response); + QString wantHwType = selected["hwType"].toString(); + QString wantSerial = selected["serial"].toString(); + int wantSequence = selected["sequence"].toInt(-1); + + // The change completes on the main thread and is signalled by MainCore::deviceChanged + QJsonObject deviceSet; + bool done = waitFor([&]() + { + if (m_events.m_deviceChanged.loadAcquire() == changedBefore) { + return false; + } + + deviceSet = getDeviceSet(deviceSetIndex); + QJsonObject sampling = deviceSet["samplingDevice"].toObject(); + return (sampling["hwType"].toString() == wantHwType) + && (wantSerial.isEmpty() || (sampling["serial"].toString() == wantSerial)) + && ((wantSequence < 0) || (sampling["sequence"].toInt(-1) == wantSequence)); + }); + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["selectedDevice"] = selected; + result["deviceSet"] = deviceSet; + + if (!done) { + result["warning"] = "Timed out waiting for the device change to complete. Call get_deviceset to check."; + } + + return result; +} + +QJsonObject MCPTools::getDeviceSettings(int deviceSetIndex) +{ + SWGSDRangel::SWGDeviceSettings response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetDeviceSettingsGet(deviceSetIndex, response, error), error, "Get device settings"); + return toJson(response); +} + +QJsonObject MCPTools::patchDeviceSettings(int deviceSetIndex, const QJsonObject& partial) +{ + return applySettingsPatch( + [&](SWGSDRangel::SWGDeviceSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->devicesetDeviceSettingsGet(deviceSetIndex, r, e); + }, + [&](const QStringList& keys, SWGSDRangel::SWGDeviceSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->devicesetDeviceSettingsPutPatch(deviceSetIndex, false, keys, r, e); + }, + partial, QString("device settings of device set %1").arg(deviceSetIndex), + [this](const QString& definition) { return settingsSchema(definition); }); +} + +QSet MCPTools::channelUids(int deviceSetIndex) const +{ + QSet result; + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size())) { + return result; + } + + DeviceSet *deviceSet = deviceSets[deviceSetIndex]; + + for (int i = 0; i < deviceSet->getNumberOfChannels(); i++) + { + const ChannelAPI *channel = deviceSet->getChannelAt(i); + + if (channel) { + result.insert(channel->getUID()); + } + } + + return result; +} + +QSet MCPTools::featureUids() const +{ + QSet result; + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (featureSets.empty()) { + return result; + } + + for (int i = 0; i < featureSets[0]->getNumberOfFeatures(); i++) + { + const Feature *feature = featureSets[0]->getFeatureAt(i); + + if (feature) { + result.insert(feature->getUID()); + } + } + + return result; +} + +QSet MCPTools::deviceSetPointers() const +{ + QSet result; + + for (DeviceSet *deviceSet : MainCore::instance()->getDeviceSets()) { + result.insert(deviceSet); + } + + return result; +} + +// Adds a channel and waits for SDRangel to create it (which happens on the main thread), +// returning its index. The channel is ready to accept settings when this returns. +// +// The new channel is found by identity rather than by taking the last index: the GUI or +// another request can create a channel at the same time, and picking the highest index would +// then configure or delete somebody else's channel. +int MCPTools::addChannelAndWait(int deviceSetIndex, const QString& channelType) +{ + QMutexLocker creationLock(&m_creationMutex); + int direction = deviceSetDirection(deviceSetIndex); + int before = channelCount(deviceSetIndex); + + // A MIMO device set takes receive and transmit channels as well as MIMO ones, and the + // adapter looks the type up in the list the direction names, so the direction has to be + // the channel's rather than the device set's + if (direction == 2) + { + if (channelTypeIds(0).contains(channelType)) { + direction = 0; + } else if (channelTypeIds(1).contains(channelType)) { + direction = 1; + } + } + + if (before < 0) { + throw MCPToolError(QString("No device set with index %1").arg(deviceSetIndex)); + } + + QSet existing = channelUids(deviceSetIndex); + SWGSDRangel::SWGChannelSettings query; + query.setDirection(direction); + query.setChannelType(new QString(channelType)); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + int addedBefore = m_events.m_channelAdded.loadAcquire(); + check(m_adapter->devicesetChannelPost(deviceSetIndex, query, response, error), error, QString("Add channel %1").arg(channelType)); + + int channelIndex = -1; + bool created = waitFor([&]() + { + if (m_events.m_channelAdded.loadAcquire() <= addedBefore) { + return false; + } + + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size())) { + return false; + } + + DeviceSet *deviceSet = deviceSets[deviceSetIndex]; + + for (int i = 0; i < deviceSet->getNumberOfChannels(); i++) + { + ChannelAPI *channel = deviceSet->getChannelAt(i); + + if (!channel || existing.contains(channel->getUID())) { + continue; + } + + QString id; + channel->getIdentifier(id); + + if (id == channelType) + { + channelIndex = i; + return true; + } + } + + return false; + }); + + if (!created || (channelIndex < 0)) { + throw MCPToolError(QString("Timed out waiting for the %1 channel to be created").arg(channelType)); + } + + // The channel needs a moment before it can accept settings + waitFor([&]() + { + SWGSDRangel::SWGChannelSettings s; + SWGSDRangel::SWGErrorResponse e; + e.init(); + return m_adapter->devicesetChannelSettingsGet(deviceSetIndex, channelIndex, s, e) / 100 == 2; + }, 2000); + + return channelIndex; +} + +// As for channels, the new feature is found by identity so that a feature created at the same +// time by the GUI or another request is never mistaken for this one. +int MCPTools::addFeatureAndWait(const QString& featureType) +{ + QMutexLocker creationLock(&m_creationMutex); + if (featureCount() < 0) { + throw MCPToolError("No feature set available"); + } + + QSet existing = featureUids(); + SWGSDRangel::SWGFeatureSettings query; + query.setFeatureType(new QString(featureType)); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + int addedBefore = m_events.m_featureAdded.loadAcquire(); + check(m_adapter->featuresetFeaturePost(0, query, response, error), error, QString("Add feature %1").arg(featureType)); + + int featureIndex = -1; + auto findNew = [&]() + { + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (featureSets.empty()) { + return -1; + } + + for (int i = 0; i < featureSets[0]->getNumberOfFeatures(); i++) + { + Feature *feature = featureSets[0]->getFeatureAt(i); + + if (!feature || existing.contains(feature->getUID())) { + continue; + } + + if (feature->getIdentifier() == featureType) { + return i; + } + } + + return -1; + }; + + // The wait ends as soon as the feature appears, so a longer limit only costs time when one + // genuinely fails to be created. The Map takes a while: it brings up a web engine + waitFor([&]() + { + if (m_events.m_featureAdded.loadAcquire() <= addedBefore) { + return false; + } + + featureIndex = findNew(); + return featureIndex >= 0; + }, 15000); + + if (featureIndex < 0) + { + // Look once more before reporting a failure. A caller told that creation failed when it + // did not will retry, and every retry builds another one + featureIndex = findNew(); + } + + if (featureIndex < 0) { + throw MCPToolError(QString("Timed out waiting for the %1 feature to be created").arg(featureType)); + } + + // The feature needs a moment before it can accept settings + waitFor([&]() + { + SWGSDRangel::SWGFeatureSettings s; + SWGSDRangel::SWGErrorResponse e; + e.init(); + return m_adapter->featuresetFeatureSettingsGet(0, featureIndex, s, e) / 100 == 2; + }, 2000); + + return featureIndex; +} + +// Device set creation runs as a state machine on the main thread; MainCore::deviceSetAdded +// marks the end. The new set is identified by pointer for the same reason as above. +int MCPTools::addDeviceSetAndWait(int direction) +{ + QMutexLocker creationLock(&m_creationMutex); + QSet existing = deviceSetPointers(); + int before = m_events.m_deviceSetAdded.loadAcquire(); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceDeviceSetPost(direction, response, error), error, "Add device set"); + + int deviceSetIndex = -1; + bool created = waitFor([&]() + { + if (m_events.m_deviceSetAdded.loadAcquire() <= before) { + return false; + } + + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + for (int i = 0; i < (int) deviceSets.size(); i++) + { + if (!existing.contains(deviceSets[i])) + { + deviceSetIndex = i; + return true; + } + } + + return false; + }); + + if (!created || (deviceSetIndex < 0)) { + throw MCPToolError("Timed out waiting for the device set to be created"); + } + + return deviceSetIndex; +} + +// Deletes a channel and waits for SDRangel to remove it +// Watches the channel itself disappear rather than the removed signal, which is not emitted +// for the last channel of a device set +void MCPTools::deleteChannelAndWait(int deviceSetIndex, int channelIndex) +{ + QMutexLocker deletionLock(&m_deletionMutex); + deleteChannelLocked(deviceSetIndex, channelIndex); +} + +void MCPTools::deleteChannelLocked(int deviceSetIndex, int channelIndex) +{ + const uint64_t target = channelUidAt(deviceSetIndex, channelIndex); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelDelete(deviceSetIndex, channelIndex, response, error), error, "Delete channel"); + + if (!waitFor([&]() { return !channelUids(deviceSetIndex).contains(target); })) { + throw MCPToolError(QString("Timed out waiting for channel %1:%2 to be removed").arg(deviceSetIndex).arg(channelIndex)); + } + + m_capture.forgetRecording(target); +} + +// Deletes a channel identified by its UID. A caller that waited, for instance for a +// recording to finish, cannot rely on the index it started with: deleting a lower numbered +// channel meanwhile renumbers everything above it. +void MCPTools::deleteChannelObjectAndWait(uint64_t channelUid) +{ + // The lookup and the delete under one lock, or another call's delete in between renumbers + // the index just found + QMutexLocker deletionLock(&m_deletionMutex); + int deviceSetIndex = -1; + int channelIndex = -1; + + if (!MCPCapture::locateChannel(channelUid, deviceSetIndex, channelIndex)) + { + m_capture.forgetRecording(channelUid); + return; // already gone, which is what was asked for + } + + deleteChannelLocked(deviceSetIndex, channelIndex); +} + +uint64_t MCPTools::deviceSetIdentity(int deviceSetIndex) const +{ + const std::vector& deviceSets = MainCore::instance()->getDeviceSets(); + + if ((deviceSetIndex < 0) || (deviceSetIndex >= (int) deviceSets.size()) || !deviceSets[deviceSetIndex]) { + return 0; + } + + const DeviceSet *deviceSet = deviceSets[deviceSetIndex]; + const uint64_t engine = deviceSet->m_deviceAPI ? deviceSet->m_deviceAPI->getDeviceUID() : 0; + return (engine << 32) ^ reinterpret_cast(deviceSet); +} + +void MCPTools::discardNewDeviceSet(int deviceSetIndex, uint64_t identity) +{ + try + { + QMutexLocker deletionLock(&m_deletionMutex); + + // Only the last device set can be removed, and only when it is still the one made + // here: another call may have added one since, or removed this one and put another + // at the same index while this call slept, and then what is there is left for the user + if ((deviceSetIndex < 0) || (deviceSetIndex != deviceSetCount() - 1) + || (identity == 0) || (deviceSetIdentity(deviceSetIndex) != identity)) { + return; + } + + int before = m_events.m_deviceSetRemoved.loadAcquire(); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceDeviceSetDelete(response, error), error, "Remove device set"); + waitFor([&]() { return m_events.m_deviceSetRemoved.loadAcquire() > before; }); + } + catch (const MCPToolError&) {} +} + +const void *MCPTools::featureAt(int featureIndex) const +{ + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (featureSets.empty() || (featureIndex < 0) || (featureIndex >= featureSets[0]->getNumberOfFeatures())) { + return nullptr; + } + + return featureSets[0]->getFeatureAt(featureIndex); +} + +uint64_t MCPTools::featureUidAt(int featureIndex) const +{ + const Feature *feature = static_cast(featureAt(featureIndex)); + return feature ? feature->getUID() : 0; +} + +uint64_t MCPTools::channelUidAt(int deviceSetIndex, int channelIndex) const +{ + return MCPCapture::channelUidAt(deviceSetIndex, channelIndex); +} + +// Deleting or stopping the feature that is serving this request would tear down the HTTP +// listener from inside its own handler, so it is refused rather than attempted. +void MCPTools::requireNotSelf(int featureIndex, const QString& action) const +{ + if (m_ownerFeature && (featureAt(featureIndex) == m_ownerFeature)) + { + throw MCPToolError(QString("Feature %1 is the MCP Server serving this request and cannot be %2 through it. " + "Use the SDRangel GUI or the REST API instead.").arg(featureIndex).arg(action)); + } +} + +QJsonObject MCPTools::getChannelSettings(int deviceSetIndex, int channelIndex) +{ + SWGSDRangel::SWGChannelSettings response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelSettingsGet(deviceSetIndex, channelIndex, response, error), error, "Get channel settings"); + return toJson(response); +} + +SettingsSchema MCPTools::settingsSchema(const QString& definition) +{ + QMutexLocker schemaLock(&m_schemaMutex); + + if (m_schemaCache.contains(definition)) { + return m_schemaCache[definition]; + } + + SettingsSchema schema; + // Without this no device setting found its schema and none of them were type checked + QString name = resolveDefinition(definition); + + if (!name.isEmpty()) { + schema = parseSettingsSchema(m_yamlDefinitions[name]); + } + + m_schemaCache.insert(definition, schema); + return schema; +} + +QJsonObject MCPTools::getSpectrumSettings(int deviceSetIndex) +{ + SWGSDRangel::SWGGLSpectrum response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumSettingsGet(deviceSetIndex, response, error), error, "Get spectrum settings"); + return toJson(response); +} + +QJsonObject MCPTools::patchSpectrumSettings(int deviceSetIndex, const QJsonObject& partial, QStringList *unknownKeys) +{ + SWGSDRangel::SWGGLSpectrum current; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumSettingsGet(deviceSetIndex, current, error), error, "Get spectrum settings"); + QJsonObject json = toJson(current); + QStringList unknown; + QJsonObject checked = partial; + SettingsSchema schema = settingsSchema("GLSpectrum"); + + if (schema.m_known) + { + QStringList typeErrors; + checked = checkAgainstSchema(partial, schema, unknown, typeErrors); + + if (!typeErrors.isEmpty()) + { + throw MCPToolError(QString("Wrong value type for spectrum settings: %1. Numbers must be " + "given as JSON numbers, not strings. Nothing was changed.").arg(typeErrors.join("; "))); + } + } + + QStringList merged; + mergeInto(json, checked, merged); + + if (!schema.m_known) { + unknown = merged; + } + + if (unknownKeys) { + *unknownKeys = unknown; + } + + QStringList keys; + extractKeys(checked, keys); + SWGSDRangel::SWGGLSpectrum request; + request.init(); + request.fromJsonObject(json); + error.init(); + check(m_adapter->devicesetSpectrumSettingsPutPatch(deviceSetIndex, false, keys, request, error), error, "Set spectrum settings"); + return toJson(request); +} + +void MCPTools::addRdsHint(QJsonObject& report, const QString& channelType, int deviceSetIndex, int channelIndex) +{ + if (channelType != "BFMDemod") { + return; + } + + if (report.value("BFMDemodReport").toObject().contains("rdsReport")) { + return; + } + + // The report is empty for a channel that is not running as well, where saying anything about + // RDS would only mislead, so the hint is tied to the setting that actually suppresses it + QJsonObject settings = getChannelSettings(deviceSetIndex, channelIndex).value("BFMDemodSettings").toObject(); + + if (settings.value("rdsActive").toInt(0) == 0) + { + report["rdsHint"] = "RDS is not being decoded, which is why this report has no rdsReport. Set rdsActive to 1 with " + "set_channel_settings to get the programme service name (the station name), radio text, programme " + "type and PI code."; + } +} + +QJsonObject MCPTools::patchChannelSettings(int deviceSetIndex, int channelIndex, const QJsonObject& partial) +{ + return applySettingsPatch( + [&](SWGSDRangel::SWGChannelSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->devicesetChannelSettingsGet(deviceSetIndex, channelIndex, r, e); + }, + [&](const QStringList& keys, SWGSDRangel::SWGChannelSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->devicesetChannelSettingsPutPatch(deviceSetIndex, channelIndex, false, keys, r, e); + }, + partial, QString("channel settings of channel %1:%2").arg(deviceSetIndex).arg(channelIndex), + [this](const QString& definition) { return settingsSchema(definition); }); +} + +QJsonObject MCPTools::getFeatureSettings(int featureIndex) +{ + SWGSDRangel::SWGFeatureSettings response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->featuresetFeatureSettingsGet(0, featureIndex, response, error), error, "Get feature settings"); + return toJson(response); +} + +QJsonObject MCPTools::patchFeatureSettings(int featureIndex, const QJsonObject& partial) +{ + return applySettingsPatch( + [&](SWGSDRangel::SWGFeatureSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->featuresetFeatureSettingsGet(0, featureIndex, r, e); + }, + [&](const QStringList& keys, SWGSDRangel::SWGFeatureSettings& r, SWGSDRangel::SWGErrorResponse& e) { + return m_adapter->featuresetFeatureSettingsPutPatch(0, featureIndex, false, keys, r, e); + }, + partial, QString("feature settings of feature %1").arg(featureIndex), + [this](const QString& definition) { return settingsSchema(definition); }); +} + +QJsonObject MCPTools::deviceState(int deviceSetIndex, int subsystemIndex, int run) +{ + SWGSDRangel::SWGDeviceState response; + response.init(); + SWGSDRangel::SWGErrorResponse error; + error.init(); + int rc; + + // The subsystem variants only apply to MIMO devices; single stream devices use the plain calls + bool mimo = deviceSetDirection(deviceSetIndex) == 2; + + auto runGet = [&](SWGSDRangel::SWGDeviceState& s, SWGSDRangel::SWGErrorResponse& e) { + return mimo ? m_adapter->devicesetDeviceSubsystemRunGet(deviceSetIndex, subsystemIndex, s, e) + : m_adapter->devicesetDeviceRunGet(deviceSetIndex, s, e); + }; + + if (run == 1) { + rc = mimo ? m_adapter->devicesetDeviceSubsystemRunPost(deviceSetIndex, subsystemIndex, response, error) + : m_adapter->devicesetDeviceRunPost(deviceSetIndex, response, error); + } else if (run == 0) { + rc = mimo ? m_adapter->devicesetDeviceSubsystemRunDelete(deviceSetIndex, subsystemIndex, response, error) + : m_adapter->devicesetDeviceRunDelete(deviceSetIndex, response, error); + } else { + rc = runGet(response, error); + } + + check(rc, error, run == 1 ? "Start device" : (run == 0 ? "Stop device" : "Get device state")); + + // The state returned by POST/DELETE is the state before the change. Give the device a moment + // and report the state actually reached. + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + + if (run >= 0) + { + QString want = run == 1 ? "running" : "idle"; + QString readError; + + bool reached = waitFor([&]() + { + SWGSDRangel::SWGDeviceState state; + state.init(); + SWGSDRangel::SWGErrorResponse e; + e.init(); + int getRC = runGet(state, e); + + if (getRC / 100 != 2) + { + readError = QString("HTTP %1 %2").arg(getRC).arg(e.getMessage() ? *e.getMessage() : QString()); + return true; // stop polling, reported below + } + + response.init(); + *response.getState() = *state.getState(); + return *state.getState() == want || *state.getState() == "error"; + }, 3000); + + if (!readError.isEmpty()) { + throw MCPToolError(QString("%1 was requested but the device state could not be read back: %2").arg(run == 1 ? "Start" : "Stop").arg(readError)); + } + + if (!reached) { + result["warning"] = QString("The device did not reach the %1 state within 3 seconds. The state reported here is the last one observed").arg(want); + } + } + + result["state"] = *response.getState(); + return result; +} + +QJsonObject MCPTools::featureState(int featureIndex, int run) +{ + // Asking a passive feature to run waits three seconds for a state it never reports, or fails + // outright on the ones that answer 501, so say what it is instead of doing either + if (run >= 0) + { + QString featureType = getFeatureSettings(featureIndex)["featureType"].toString(); + + if (isPassiveFeature(featureType)) + { + QJsonObject passive; + passive["featureIndex"] = featureIndex; + passive["featureType"] = featureType; + passive["state"] = "idle"; + passive["passive"] = true; + passive["note"] = QString("%1 has no run state and does not need starting: it works as soon as it " + "is configured, and reports idle whether or not it is doing anything.").arg(featureType); + return passive; + } + } + + SWGSDRangel::SWGDeviceState response; + response.init(); + SWGSDRangel::SWGErrorResponse error; + error.init(); + int rc; + + if (run == 1) { + rc = m_adapter->featuresetFeatureRunPost(0, featureIndex, response, error); + } else if (run == 0) { + rc = m_adapter->featuresetFeatureRunDelete(0, featureIndex, response, error); + } else { + rc = m_adapter->featuresetFeatureRunGet(0, featureIndex, response, error); + } + + check(rc, error, run == 1 ? "Start feature" : (run == 0 ? "Stop feature" : "Get feature state")); + + QJsonObject result; + result["featureIndex"] = featureIndex; + + if (run >= 0) + { + QString want = run == 1 ? "running" : "idle"; + QString readError; + + bool reached = waitFor([&]() + { + SWGSDRangel::SWGDeviceState state; + state.init(); + SWGSDRangel::SWGErrorResponse e; + e.init(); + int getRC = m_adapter->featuresetFeatureRunGet(0, featureIndex, state, e); + + if (getRC / 100 != 2) + { + readError = QString("HTTP %1 %2").arg(getRC).arg(e.getMessage() ? *e.getMessage() : QString()); + return true; // stop polling, reported below + } + + response.init(); + *response.getState() = *state.getState(); + return *state.getState() == want || *state.getState() == "error"; + }, 3000); + + if (!readError.isEmpty()) { + throw MCPToolError(QString("%1 was requested but the feature state could not be read back: %2").arg(run == 1 ? "Start" : "Stop").arg(readError)); + } + + if (!reached) { + result["warning"] = QString("The feature did not reach the %1 state within 3 seconds. The state reported here is the last one observed").arg(want); + } + } + + result["state"] = *response.getState(); + return result; +} + +// Resolves group name + name (and optionally centre frequency and type) to the full preset identifier +// SDRangel needs. For a save, the identifier of the current device is used when no matching preset exists. +QJsonObject MCPTools::presetIdentifier(const QJsonObject& args, int deviceSetIndex, bool forSave) +{ + QString groupName = argString(args, "groupName"); + QString name = argString(args, "name"); + QString type = argString(args, "type", false); + bool hasFrequency = hasArg(args, "centerFrequency"); + qint64 centerFrequency = argInt64(args, "centerFrequency", false, 0); + + QJsonObject deviceSet; + QString deviceType; + qint64 deviceFrequency = 0; + + if (forSave) + { + deviceSet = getDeviceSet(deviceSetIndex); + QJsonObject sampling = deviceSet["samplingDevice"].toObject(); + deviceFrequency = (qint64) sampling["centerFrequency"].toDouble(); + int direction = sampling["direction"].toInt(0); + deviceType = direction == 0 ? "R" : (direction == 1 ? "T" : "M"); + } + + QJsonArray candidates; + + for (const auto& groupValue : getPresets()["groups"].toArray()) + { + QJsonObject group = groupValue.toObject(); + + if (group["groupName"].toString() != groupName) { + continue; + } + + for (const auto& presetValue : group["presets"].toArray()) + { + QJsonObject preset = presetValue.toObject(); + + if (preset["name"].toString() != name) { + continue; + } + if (!type.isEmpty() && (preset["type"].toString() != type)) { + continue; + } + if (hasFrequency && ((qint64) preset["centerFrequency"].toDouble() != centerFrequency)) { + continue; + } + if (forSave && (preset["type"].toString() != deviceType)) { + continue; + } + + candidates.append(preset); + } + } + + QJsonObject identifier; + identifier["groupName"] = groupName; + identifier["name"] = name; + + if (candidates.count() == 1) + { + QJsonObject preset = candidates.first().toObject(); + identifier["type"] = preset["type"].toString(); + identifier["centerFrequency"] = preset["centerFrequency"].toDouble(); + identifier["exists"] = true; + } + else if (candidates.count() > 1) + { + throw MCPToolError(QString("Several presets match group %1 name %2. Specify centerFrequency and type to choose one of: %3") + .arg(groupName).arg(name).arg(compact(candidates))); + } + else if (forSave) + { + identifier["type"] = deviceType; + identifier["centerFrequency"] = (double) deviceFrequency; + identifier["exists"] = false; + } + else + { + throw MCPToolError(QString("No preset with group %1 and name %2. Call list_presets to see what exists").arg(groupName).arg(name)); + } + + return identifier; +} + +// --------------------------------------------------------------------------- +// Tool registration +// --------------------------------------------------------------------------- + +void MCPTools::registerInstanceTools() +{ + add("get_instance_summary", + "Get an overview of the SDRangel instance: version, all device sets with their sampling device and channels, and all features. " + "Call this first to learn the current state and the indexes to use with other tools.", + schema(QJsonObject()), + [this](const QJsonObject&) { return getInstanceSummary(); }); + + add("list_available_devices", + "List the SDR hardware and software sources/sinks that can be selected in a device set. Each entry gives hwType (used by " + "set_device and describe_settings), serial, sequence and index. Physical devices must be plugged in before SDRangel starts.", + schema({{"direction", directionProp("Only list devices for this direction (rx, tx or mimo). Default: all directions")}}), + [this](const QJsonObject& args) { return getAvailableDevices(argDirection(args, "direction", false, -1)); }); + + add("list_channel_types", + "List the channel plugins (demodulators for rx, modulators for tx) that can be added to a device set. The id is the channelType " + "to pass to add_channel and describe_settings.", + schema({{"direction", directionProp("Only list channels for this direction (rx, tx or mimo). Default: all directions")}}), + [this](const QJsonObject& args) { return getAvailableChannels(argDirection(args, "direction", false, -1)); }); + + add("list_feature_types", + "List the feature plugins that can be added with add_feature. The id is the featureType.", + schema(QJsonObject()), + [this](const QJsonObject&) { return getAvailableFeatures(); }); + + add("describe_settings", + "Get the documentation (OpenAPI YAML) of the settings, report and actions keys of a device, channel or feature type, " + "or of the spectrum display: what each key means, its units, range and enumeration values. Not needed for common keys; " + "call it when a set_* tool reports an unknown key, or before setting a key whose values are codes, such as a style or " + "mode. The output can run to a few thousand tokens.", + schema({ + {"type", strProp("Type identifier: a device hwType such as RTLSDR or TestSource, a channelType such as ADSBDemod or NFMDemod, " + "a featureType such as Map, or spectrum for the spectrum display")}, + {"kind", strProp("Optional: device, channel, feature or spectrum, to disambiguate when the same id exists for several kinds")} + }, {"type"}), + [this](const QJsonObject& args) { return QJsonValue(describeType(argString(args, "type"), argString(args, "kind", false))); }); + + add("get_receiving_guide", + "Read the receiving guide: which demodulator and frequency to use for a given signal or protocol (ADS-B, AIS, APRS, " + "radiosondes, weather satellites, broadcast FM, LoRa, pagers and more), the minimum device sample rate some modes need, " + "and the usual reasons nothing is received. Read this before setting up a receiver for a named signal, rather than " + "guessing frequencies.", + schema(QJsonObject()), + [this](const QJsonObject&) { return QJsonValue(m_docs.guide()); }); + + add("list_docs", + "List the user documentation (readme) available for the device, channel and feature plugins registered in this instance, " + "and for the GUI's own pages such as the spectrum display, with the section headings of each. Use get_docs to read one.", + schema({{"kind", strProp("Optional: only list device, channel, feature or gui docs")}}), + [this](const QJsonObject& args) + { + QString kind = argString(args, "kind", false).trimmed().toLower(); + QJsonObject index = m_docs.index(); + + if (kind.isEmpty()) { + return index; + } + + QJsonArray filtered; + + for (const auto& value : index["docs"].toArray()) + { + if (value.toObject()["kind"].toString() == kind) { + filtered.append(value); + } + } + + QJsonObject result; + result["count"] = filtered.count(); + result["docs"] = filtered; + return result; + }); + + add("get_docs", + "Read the user documentation (readme, as markdown) of a device, channel or feature plugin, or of a GUI page such as the " + "spectrum display: what it does, what each setting means, frequencies and sample rates it needs, and how to use it. Pass " + "section to get just one section (matched against the headings listed by list_docs) as the full documents can be long.", + schema({ + {"type", strProp("Plugin id (e.g. ADSBDemod, RTLSDR, Map), its displayed name (e.g. \"ADS-B Demodulator\"), or a GUI page: " + "spectrum, spectrummarkers, spectrummeasurements, spectrumcalibration, mainspectrum, audio, configurations, deviceuserargs, transverter")}, + {"kind", strProp("Optional: device, channel, feature or gui, to disambiguate")}, + {"section", strProp("Optional: text of a heading; only that section is returned")} + }, {"type"}), + [this](const QJsonObject& args) + { + QString type = argString(args, "type"); + QString kind = argString(args, "kind", false); + const MCPDocs::Doc *doc = m_docs.find(type, kind); + + if (!doc) { + throw MCPToolError(QString("No documentation found for %1. Call list_docs to see what is available").arg(type)); + } + + QString section = argString(args, "section", false); + QString text = m_docs.text(*doc, section); + + if (text.isEmpty()) { + throw MCPToolError(QString("No section matching \"%1\" in the %2 documentation. Sections: %3").arg(section).arg(doc->id).arg(doc->headings.join(" | "))); + } + + return QJsonValue(text); + }); + + add("get_packets", + "Get recently decoded packets from packet-oriented demodulators (AIS, APRS/AX.25 packet, LoRa/ChirpChat, M17, Meshtastic, " + "MeshCore, Inmarsat, radiosonde). Each packet has the raw bytes (hex and printable text) and, where SDRangel can decode it, " + "a decoded object: AIS message type, MMSI, position, course and speed; AX.25 from/to/via and data with APRS position and " + "comment; RS41 radiosonde serial, position and height. Packets are kept in a buffer of the last 1000; use sinceSequence " + "with the lastSequence of a previous call to read only new packets.", + schema({ + {"source", strProp("Only packets from this channel, e.g. \"R0:1\" (device set 0, channel 1)")}, + {"type", strProp("Only packets from channels of this type, e.g. AISDemod, PacketDemod, RadiosondeDemod")}, + {"limit", bounded(intProp("Maximum number of packets to return, most recent first. Default 50"), 1, MCPDataFeed::m_maxPackets)}, + {"sinceSequence", intProp("Only packets with a sequence number greater than this")} + }), + [this](const QJsonObject& args) + { + return m_dataFeed.getPackets(argString(args, "source", false), argString(args, "type", false), + argInt(args, "limit", false, 50), argInt64(args, "sinceSequence", false, 0)); + }); + + add("clear_packets", + "Discard all buffered packets.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + m_dataFeed.clearPackets(); + QJsonObject result; + result["cleared"] = true; + return result; + }); + + add("get_map_items", + "Get the objects currently plotted on the map by the running plugins: aircraft from ADS-B, ships from AIS, APRS stations, " + "radiosondes, satellites, the Sun and Moon from the star tracker, VOR/ILS beacons and so on. Each item has a name, position, " + "altitude, heading, the label and text shown on the map, and for aircraft the full ADS-B state. Only sources that are " + "running produce items; items disappear when their source removes them.", + schema({ + {"source", strProp("Only items from this channel or feature id (e.g. \"R0:0\", \"F:1\") or plugin type (e.g. ADSBDemod, AIS)")}, + {"name", strProp("Only items whose name contains this text, e.g. an ICAO address, MMSI or callsign")}, + {"limit", bounded(intProp("Maximum number of items to return. Default 200"), 1, 5000)}, + {"includeTrack", prop("boolean", "Include the position history of each item. Default false, as tracks can be long")} + }), + [this](const QJsonObject& args) + { + bool includeTrack = argBool(args, "includeTrack", false); + return m_dataFeed.getMapItems(argString(args, "source", false), argString(args, "name", false), + argInt(args, "limit", false, 200), includeTrack); + }); + + add("list_audio_devices", + "List the audio input and output devices available to SDRangel.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + SWGSDRangel::SWGAudioDevices response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceAudioGet(response, error), error, "List audio devices"); + return toJson(response); + }); + + add("get_location", + "Get the station location (latitude and longitude in degrees) used by features such as the Map and satellite tracker.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + SWGSDRangel::SWGLocationInformation response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceLocationGet(response, error), error, "Get location"); + return toJson(response); + }); + + add("set_location", + "Set the station location.", + schema({ + {"latitude", bounded(numProp("Latitude in degrees, positive north"), -90.0, 90.0)}, + {"longitude", bounded(numProp("Longitude in degrees, positive east"), -180.0, 180.0)} + }, {"latitude", "longitude"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGLocationInformation response; + response.setLatitude((float) argDouble(args, "latitude")); + response.setLongitude((float) argDouble(args, "longitude")); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceLocationPut(response, error), error, "Set location"); + return toJson(response); + }); +} + +void MCPTools::registerDeviceSetTools() +{ + add("add_deviceset", + "Create a new device set and optionally select its sampling device in one go. Returns the index of the new device set. " + "Identify the device with hwType and/or serial (from list_available_devices), or deviceIndex (its index in that list). " + "Without a device the new device set uses the first available device of that direction.", + schema({ + {"direction", directionProp("rx for a receiver (default), tx for a transmitter, mimo for a MIMO device")}, + {"hwType", strProp("Hardware type of the device to select, e.g. RTLSDR, HackRF, TestSource")}, + {"serial", strProp("Serial number of the device to select")}, + {"sequence", intProp("Sequence number of the device, to distinguish identical devices")}, + {"displayedName", strProp("Displayed name of the device, as listed by list_available_devices")}, + {"deviceIndex", intProp("Index of the device in the list_available_devices list for this direction")} + }), + [this](const QJsonObject& args) + { + int direction = argDirection(args, "direction", false, 0); + int deviceSetIndex = addDeviceSetAndWait(direction); + + if (hasArg(args, "hwType") || hasArg(args, "serial") || hasArg(args, "displayedName") || hasArg(args, "deviceIndex")) + { + try + { + return selectDevice(deviceSetIndex, args); + } + catch (const MCPToolError& e) + { + throw MCPToolError(QString("Device set %1 was created but the requested device could not be selected: %2. " + "Use set_device on that device set, or remove_last_deviceset. Do not call add_deviceset again.") + .arg(deviceSetIndex).arg(e.message)); + } + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["deviceSet"] = getDeviceSet(deviceSetIndex); + return result; + }); + + add("remove_last_deviceset", + "Remove the device set with the highest index. In the GUI the first device set (R0) cannot be removed.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + int before = m_events.m_deviceSetRemoved.loadAcquire(); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceDeviceSetDelete(response, error), error, "Remove device set"); + + if (!waitFor([&]() { return m_events.m_deviceSetRemoved.loadAcquire() > before; })) { + throw MCPToolError("Timed out waiting for the device set to be removed; get_instance_summary shows whether it went"); + } + + QJsonObject result; + result["deviceSetCount"] = deviceSetCount(); + return result; + }); + + add("get_deviceset", + "Get a device set: its sampling device (hwType, serial, centre frequency, state) and the list of its channels with their reports.", + schema({{"deviceSetIndex", deviceSetIndexProp}}, {"deviceSetIndex"}), + [this](const QJsonObject& args) { return getDeviceSet(argInt(args, "deviceSetIndex")); }); + + add("set_device", + "Change the sampling device of an existing device set. Identify the device with hwType and/or serial (from list_available_devices), " + "or deviceIndex. Waits for the change to complete.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"hwType", strProp("Hardware type of the device to select, e.g. RTLSDR")}, + {"serial", strProp("Serial number of the device to select")}, + {"sequence", intProp("Sequence number of the device, to distinguish identical devices")}, + {"displayedName", strProp("Displayed name of the device")}, + {"deviceIndex", intProp("Index of the device in the list_available_devices list for the device set direction")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) { return selectDevice(argInt(args, "deviceSetIndex"), args); }); + + add("get_device_settings", + "Get the settings of the sampling device of a device set (centre frequency, sample rate, gain...). The keys depend on the device type.", + schema({{"deviceSetIndex", deviceSetIndexProp}}, {"deviceSetIndex"}), + [this](const QJsonObject& args) { return getDeviceSettings(argInt(args, "deviceSetIndex")); }); + + add("set_device_settings", + "Change some settings of the sampling device of a device set. Give only the keys to change, e.g. {\"centerFrequency\": 1090000000, \"gain\": 400}. " + "Use describe_settings with the device hwType to learn the valid keys, units and value ranges. Returns the keys changed with their applied values.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"settings", objProp("Object with the settings keys to change and their new values")} + }, {"deviceSetIndex", "settings"}), + [this](const QJsonObject& args) { return patchDeviceSettings(argInt(args, "deviceSetIndex"), argObject(args, "settings")); }); + + add("set_center_frequency", + "Tune the sampling device of a device set to a centre frequency in Hz. Channels keep their inputFrequencyOffset relative to it.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"frequency", numProp("Centre frequency in Hz")} + }, {"deviceSetIndex", "frequency"}), + [this](const QJsonObject& args) + { + QJsonObject settings; + settings["centerFrequency"] = (double) argInt64(args, "frequency"); + return patchDeviceSettings(argInt(args, "deviceSetIndex"), settings); + }); + + add("start_device", + "Start the sampling device of a device set so that it streams samples and its channels run. Returns the resulting state.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"subsystemIndex", bounded(intProp("MIMO devices only: 0 for the rx subsystem, 1 for tx. Default 0"), 0, 1)} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject state = deviceState(deviceSetIndex, argInt(args, "subsystemIndex", false, 0), 1); + QStringList warnings = basebandWarnings(deviceSetIndex); + + if (!warnings.isEmpty()) { + state["warning"] = warnings.join(" "); + } + + return QJsonValue(state); + }); + + add("stop_device", + "Stop the sampling device of a device set.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"subsystemIndex", bounded(intProp("MIMO devices only: 0 for the rx subsystem, 1 for tx. Default 0"), 0, 1)} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) { return deviceState(argInt(args, "deviceSetIndex"), argInt(args, "subsystemIndex", false, 0), 0); }); + + add("get_device_report", + "Get the live report of the sampling device of a device set (for example the actual sample rate, gain values, " + "or for file inputs the playback position). Keys depend on the device type.", + schema({{"deviceSetIndex", deviceSetIndexProp}}, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGDeviceReport response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetDeviceReportGet(argInt(args, "deviceSetIndex"), response, error), error, "Get device report"); + return toJson(response); + }); + + add("device_action", + "Trigger an action on the sampling device of a device set. Only some device types have actions. Use describe_settings to find " + "the actions keys of the device type; pass them as the actions object, e.g. {\"record\": 1}.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"actions", objProp("Object with the action keys and values for this device type")} + }, {"deviceSetIndex", "actions"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject actions = argObject(args, "actions"); + QJsonObject settings = getDeviceSettings(deviceSetIndex); + QString hwType = settings["deviceHwType"].toString(); + int direction = settings["direction"].toInt(0); + const QMap& map = direction == 0 ? WebAPIUtils::m_sourceDeviceHwIdToActionsKey + : (direction == 1 ? WebAPIUtils::m_sinkDeviceHwIdToActionsKey : WebAPIUtils::m_mimoDeviceHwIdToActionsKey); + + if (!map.contains(hwType)) { + throw MCPToolError(QString("Device type %1 has no actions").arg(hwType)); + } + + QJsonObject json; + json["deviceHwType"] = hwType; + json["direction"] = direction; + json[map[hwType]] = actions.contains(map[hwType]) ? actions[map[hwType]].toObject() : actions; + QStringList keys; + extractKeys(json[map[hwType]].toObject(), keys); + + SWGSDRangel::SWGDeviceActions query; + query.init(); + query.fromJsonObject(json); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetDeviceActionsPost(deviceSetIndex, keys, query, response, error), error, "Device action"); + return toJson(response); + }); + + add("get_spectrum_settings", + "Get the settings of the main spectrum display of a device set, including FFT and scale, 2D/3D spectrum display, waterfall history, measurements and statistics, math, and saved-memory display settings.", + schema({{"deviceSetIndex", deviceSetIndexProp}}, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGGLSpectrum response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumSettingsGet(argInt(args, "deviceSetIndex"), response, error), error, "Get spectrum settings"); + return toJson(response); + }); + + add("set_spectrum_settings", + "Change selected settings of the main spectrum display of a device set. Supports FFT and scale, 2D/3D spectrum display, waterfall history, measurements and statistics, math, and saved-memory display settings. Give only the keys to change (see get_spectrum_settings for the keys). " + "Keys whose values are codes are documented by describe_settings with type spectrum: for instance spectrumStyle is 0 line, 1 filled solid colour, 2 filled colour gradient, and colorMap names the gradient. " + "To smooth the trace set both averagingMode (1 moving) and averagingValue (the number of FFTs, e.g. 10): a mode with the value left at 1 averages nothing.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"settings", objProp("Object with the spectrum settings keys to change")} + }, {"deviceSetIndex", "settings"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject partial = argObject(args, "settings"); + QStringList unknownKeys; + + auto read = [&]() + { + SWGSDRangel::SWGGLSpectrum current; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumSettingsGet(deviceSetIndex, current, error), error, "Get spectrum settings"); + return toJson(current); + }; + + const QJsonObject before = read(); + patchSpectrumSettings(deviceSetIndex, partial, &unknownKeys); + + // Read back rather than echo the request: some values are rounded to what the + // display offers, and the caller should see what it got. The patch is applied by + // message, so give it a moment to land: until every key given has either moved or + // was already where it was asked to be + QJsonObject after = read(); + + for (int attempt = 0; attempt < 10; attempt++) + { + bool landed = true; + + for (const QString& key : partial.keys()) + { + if (after.contains(key) && (after[key] == before[key]) && (after[key] != partial[key])) { + landed = false; + } + } + + if (landed) { + break; + } + + QThread::msleep(50); + after = read(); + } + + QJsonObject changed; + QStringList notes; + + for (const QString& key : partial.keys()) + { + if (after.contains(key)) + { + changed[key] = after[key]; + + if (after[key].isDouble() && partial[key].isDouble() && (after[key].toDouble() != partial[key].toDouble())) { + notes.append(QString("%1 was rounded to %2, one of the values the display offers.").arg(key).arg(after[key].toDouble())); + } + } + } + + // A mode with a count of one averages nothing, which is easy to leave that way + if ((after["averagingMode"].toInt() != 0) && (after["averagingValue"].toInt() <= 1)) { + notes.append("averagingMode is set but averagingValue is 1, so no averaging is happening: set averagingValue as well, " + "10 to smooth a trace or 50 to measure a floor. The values available are 1, 2, 5, 10, 20, 50, 100 and so on."); + } + + QJsonObject result; + result["changed"] = changed; + + if (!unknownKeys.isEmpty()) { + result["warning"] = QString("Ignored unknown keys: %1. describe_settings lists the valid ones.").arg(unknownKeys.join(", ")); + } + + if (!notes.isEmpty()) { + result["note"] = notes.join(" "); + } + + return result; + }); + + + add("get_spectrum_report", + "Get the latest spectrum measurement results of a device set: peaks, channel power, adjacent channel power, occupied " + "bandwidth, 3 dB bandwidth, or SNR with THD and SINAD, depending on which measurement is selected with " + "set_spectrum_settings. Only the fields the selected measurement produces are returned, so an absent field was not " + "measured rather than measured as zero. With no measurement selected only measurement 0 comes back. The figures are " + "those of the spectrum as displayed, so they follow the zoom.", + schema({{"deviceSetIndex", deviceSetIndexProp}}, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGGLSpectrumReport response; + SWGSDRangel::SWGErrorResponse error; + response.init(); + error.init(); + check(m_adapter->devicesetSpectrumReportGet(argInt(args, "deviceSetIndex"), response, error), error, "Get spectrum report"); + return toJson(response); + }); + + + add("get_spectrum_data", + "Get the current power spectrum of a device set, reduced to the number of bins asked for. Use it to see what is on a band " + "without looking at the screen: which parts are occupied, how strong, and where the edges are. Each value covers " + "binBandwidth Hz starting at startFrequency. Reduction is by max, which keeps a narrow carrier that averaging would bury " + "in its neighbours; mean is better for measuring a noise floor. Every value costs tokens, so ask for the coarsest that " + "answers the question and narrow the frequency range instead of asking for more bins.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"bins", bounded(intProp("Number of values to return, most recent spectrum. Default 64"), 1, 512)}, + {"startFrequency", numProp("Only from this frequency in Hz. Default the start of the spectrum")}, + {"stopFrequency", numProp("Only up to this frequency in Hz. Default the end of the spectrum")}, + {"reduce", strProp("max to keep peaks, the default, or mean to average")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGGLSpectrumData response; + SWGSDRangel::SWGErrorResponse error; + response.init(); + error.init(); + check(m_adapter->devicesetSpectrumDataGet( + argInt(args, "deviceSetIndex"), + argInt(args, "bins", false, 64), + argInt64(args, "startFrequency", false, 0), + argInt64(args, "stopFrequency", false, 0), + argString(args, "reduce", false, "max"), + response, error), + error, "Get spectrum data"); + QJsonObject json = toJson(response); + + // The generated serialiser drops a list of plain floats, so the values go in by hand + QJsonArray power; + + if (response.getPower()) + { + for (float v : *response.getPower()) { + power.append(std::round((double) v * 10.0) / 10.0); + } + } + + json["power"] = power; + return json; + }); + + add("get_spectrum_history", + "What has been on a band over the last while, from the spectrum history the GUI keeps for scrolling: per bin " + "maximum, mean and occupancy (the fraction of the time the bin was above the noise floor by threshold dB), and a " + "signalList of every run of bins that rose above it, each with its frequency, width, peak, dutyCycle (1 for a " + "continuous carrier, small for bursts) and when it was first and last seen. This is the way to tell a continuous " + "signal from an intermittent one, find where transmissions are without stepping a scanner over them, and measure " + "a floor over time rather than from one snapshot. Only rows taken with the device tuned and sampling as it is now " + "count; after a retune, wait for new history. Scrolling is switched on if it is off, and then there is nothing to " + "report until some has accumulated, so call again after a few seconds. Every bin costs tokens: ask for the coarsest " + "that answers the question.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"seconds", numProp("How far back to look, in seconds. Default 60")}, + {"bins", bounded(intProp("Number of bins to reduce the spectrum to. Default 64"), 1, 512)}, + {"startFrequency", numProp("Only from this frequency in Hz. Default the start of the spectrum")}, + {"stopFrequency", numProp("Only up to this frequency in Hz. Default the end of the spectrum")}, + {"threshold", numProp("dB above the measured floor for a bin to count as occupied. Default 6")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + const int deviceSetIndex = argInt(args, "deviceSetIndex"); + const double seconds = argDouble(args, "seconds", false, 60.0); + const QString enabled = ensureSpectrumHistory(deviceSetIndex, seconds); + SWGSDRangel::SWGGLSpectrumHistory response; + SWGSDRangel::SWGErrorResponse error; + response.init(); + error.init(); + const int status = m_adapter->devicesetSpectrumHistoryGet(deviceSetIndex, seconds, + argInt(args, "bins", false, 64), argInt64(args, "startFrequency", false, 0), argInt64(args, "stopFrequency", false, 0), + argDouble(args, "threshold", false, 6.0), response, error); + + if (!enabled.isEmpty() && (status == 404)) + { + QJsonObject result; + result["rows"] = 0; + result["note"] = enabled + " Call again in a few seconds, once some has accumulated."; + return result; + } + + check(status, error, "Get spectrum history"); + QJsonObject json = toJson(response); + QJsonArray maxDb, meanDb, occupancy; + + for (float v : *response.getMaxDb()) { + maxDb.append(std::round((double) v * 10.0) / 10.0); + } + + for (float v : *response.getMeanDb()) { + meanDb.append(std::round((double) v * 10.0) / 10.0); + } + + for (float v : *response.getOccupancy()) { + occupancy.append(std::round((double) v * 100.0) / 100.0); + } + + json["maxDb"] = maxDb; + json["meanDb"] = meanDb; + json["occupancy"] = occupancy; + + if (!enabled.isEmpty()) { + json["note"] = enabled; + } + + return json; + }); + + add("get_waterfall_image", + "A picture of the spectrum history, the waterfall, as a greyscale image: frequency across, time down with the newest " + "row at the bottom, black a little below the noise floor and white at the strongest signal. Use it when the shape of " + "activity matters more than the numbers: a hopping signal, a drifting carrier, a burst pattern, or to see a whole band " + "at once. The reply's text gives the frequency and time extents so the picture can be read. get_spectrum_history " + "gives the same history as numbers. Scrolling is switched on if it is off, and then there is nothing to show until " + "some has accumulated.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"seconds", numProp("How far back to look, in seconds. Default 60")}, + {"width", bounded(intProp("Width in pixels, one per bin. Default 512"), 16, 2048)}, + {"height", bounded(intProp("At most this many rows, the most recent. Default 512"), 16, 2000)}, + {"startFrequency", numProp("Only from this frequency in Hz. Default the start of the spectrum")}, + {"stopFrequency", numProp("Only up to this frequency in Hz. Default the end of the spectrum")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + const int deviceSetIndex = argInt(args, "deviceSetIndex"); + const double seconds = argDouble(args, "seconds", false, 60.0); + const QString enabled = ensureSpectrumHistory(deviceSetIndex, seconds); + QByteArray png; + QJsonObject description; + SWGSDRangel::SWGErrorResponse error; + error.init(); + const int status = m_adapter->devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, + argInt(args, "width", false, 512), argInt64(args, "startFrequency", false, 0), argInt64(args, "stopFrequency", false, 0), + argInt(args, "height", false, 512), png, description, error); + + if (!enabled.isEmpty() && (status == 404)) + { + QJsonObject result; + result["note"] = enabled + " Call again in a few seconds, once some has accumulated."; + return result; + } + + check(status, error, "Get waterfall image"); + QJsonObject image; + image["data"] = QString(png.toBase64()); + image["mimeType"] = "image/png"; + description["_image"] = image; + description["note"] = QString("Frequency runs left to right from %1 to %2 MHz, time top to bottom from %3 to %4 with the newest row at the bottom; black is %5 dB and white %6 dB.%7") + .arg(description["startFrequency"].toDouble() / 1e6, 0, 'f', 4).arg(description["stopFrequency"].toDouble() / 1e6, 0, 'f', 4) + .arg(description["firstTime"].toString()).arg(description["lastTime"].toString()) + .arg(description["blackDb"].toDouble(), 0, 'f', 1).arg(description["whiteDb"].toDouble(), 0, 'f', 1) + .arg(enabled.isEmpty() ? QString() : " " + enabled); + return description; + }); + + add("spectrum_action", + "Act on the main spectrum of a device set. autoscale sets the reference level and range from what is on screen, " + "clearSpectrum discards the histogram and max hold traces, resetMeasurements starts the measurement statistics again, " + "freeze stops spectrum processing and unfreezing resumes it, and gotoMarker retunes to one of the annotations. " + "Everything except freeze acts on the display and so needs the GUI.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"autoscale", prop("boolean", "Set the reference level and range from the spectrum currently displayed")}, + {"clearSpectrum", prop("boolean", "Discard the accumulated histogram and max hold traces")}, + {"resetMeasurements", prop("boolean", "Discard the accumulated measurement statistics")}, + {"freeze", prop("boolean", "True to stop spectrum processing, false to resume it")}, + {"gotoMarker", intProp("Retune to the annotation at this index, counting from 0")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject actions; + + for (const QString& key : {QString("autoscale"), QString("clearSpectrum"), QString("resetMeasurements"), QString("freeze")}) + { + if (hasArg(args, key)) { + actions[key] = argBool(args, key, false) ? 1 : 0; + } + } + + if (hasArg(args, "gotoMarker")) { + actions["gotoMarker"] = argInt(args, "gotoMarker"); + } + + if (actions.isEmpty()) { + throw MCPToolError("Give at least one of autoscale, clearSpectrum, resetMeasurements, freeze or gotoMarker"); + } + + QStringList keys; + extractKeys(actions, keys); + + // fromJsonObject takes its argument by non-const reference and looks every field up + // with operator[], which inserts a null for each one that is absent, so what is echoed + // back is taken before the call rather than after it + QJsonObject applied = actions; + SWGSDRangel::SWGSpectrumActions query; + query.init(); + query.fromJsonObject(actions); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumActionsPost(deviceSetIndex, keys, query, error), error, "Spectrum action"); + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["applied"] = applied; + return result; + }); + + add("add_annotation", + "Add a labelled annotation to the main spectrum of a device set, for instance the name of the station a channel is tuned to. " + "Appends to the annotations already there instead of replacing them, and turns annotation display on if it is off. " + "Give centerFrequency, which is usually what you want as the bandwidth is then centred on it, or startFrequency.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"text", strProp("Label shown against the annotation, e.g. the RDS programme service name of a broadcast station")}, + {"centerFrequency", numProp("Centre frequency of the annotation in Hz. Give this or startFrequency")}, + {"startFrequency", numProp("Start frequency of the annotation in Hz. Give this or centerFrequency")}, + {"bandwidth", intProp("Width of the annotation in Hz. Default 0, which marks a single frequency")}, + {"color", intProp("Colour packed as blue*65536 + green*256 + red, each component 0 to 255. Default yellow")}, + {"show", bounded(intProp("0 hidden, 1 top marker only, 2 full with text and limits, 3 text only. Default 2"), 0, 3)} + }, {"deviceSetIndex", "text"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + int bandwidth = argInt(args, "bandwidth", false, 0); + + if (bandwidth < 0) { + throw MCPToolError("bandwidth cannot be negative"); + } + + qint64 startFrequency; + + if (hasArg(args, "startFrequency")) { + startFrequency = argInt64(args, "startFrequency"); + } else if (hasArg(args, "centerFrequency")) { + startFrequency = argInt64(args, "centerFrequency") - bandwidth / 2; + } else { + throw MCPToolError("Give either centerFrequency or startFrequency"); + } + + QJsonObject marker; + marker["startFrequency"] = startFrequency; + marker["bandwidth"] = bandwidth; + marker["markerColor"] = argInt(args, "color", false, 65535); // Yellow + marker["show"] = argInt(args, "show", false, 2); + marker["text"] = argString(args, "text"); + + QJsonObject current = getSpectrumSettings(deviceSetIndex); + + // Appended by the settings themselves rather than by reading the list, adding to it and + // writing it back, which would lose an annotation added by anything else in between + QJsonArray markers; + markers.append(marker); + + QJsonObject patch; + patch["annotationMarkers"] = markers; + patch["annotationMarkersMode"] = 1; + // Annotations are drawn only when their bit of markersDisplay is set, so an annotation + // added while it is clear would otherwise be invisible with nothing to say why + patch["markersDisplay"] = current.value("markersDisplay").toInt(0) | 0x2; + + QJsonObject after = patchSpectrumSettings(deviceSetIndex, patch); + QJsonObject result; + result["added"] = marker; + result["annotationMarkers"] = after.value("annotationMarkers").toArray(); + return result; + }); + + add("remove_annotation", + "Remove annotations from the main spectrum of a device set. Give text to remove the annotations carrying that label, " + "frequency to remove those whose span covers it, or all to remove every annotation. Returns what was removed and what is left.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"text", strProp("Remove annotations whose label is exactly this")}, + {"frequency", numProp("Remove annotations whose span covers this frequency in Hz")}, + {"all", prop("boolean", "Remove every annotation. Default false")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + bool all = argBool(args, "all", false); + bool byText = hasArg(args, "text"); + bool byFrequency = hasArg(args, "frequency"); + + // Without a criterion the intent is ambiguous, and either reading of it, removing + // nothing or removing everything, would be wrong often enough to be worth refusing + if (!all && !byText && !byFrequency) { + throw MCPToolError("Give text, frequency or all to say which annotations to remove"); + } + + QString text = argString(args, "text", false); + qint64 frequency = argInt64(args, "frequency", false); + QJsonArray markers = getSpectrumSettings(deviceSetIndex).value("annotationMarkers").toArray(); + QJsonArray kept; + QJsonArray removed; + + for (const QJsonValue& value : markers) + { + QJsonObject marker = value.toObject(); + qint64 start = (qint64) marker.value("startFrequency").toDouble(); + qint64 stop = start + (qint64) marker.value("bandwidth").toDouble(); + bool matches = all + || (byText && (marker.value("text").toString() == text)) + || (byFrequency && (frequency >= start) && (frequency <= stop)); + + if (matches) { + removed.append(marker); + } else { + kept.append(marker); + } + } + + QJsonObject result; + result["removed"] = removed; + + if (removed.isEmpty()) + { + result["annotationMarkers"] = markers; + result["warning"] = "No annotation matched, so nothing was removed"; + return result; + } + + QJsonObject patch; + patch["annotationMarkers"] = kept; + QJsonObject after = patchSpectrumSettings(deviceSetIndex, patch); + result["annotationMarkers"] = after.value("annotationMarkers").toArray(); + return result; + }); +} + +void MCPTools::registerChannelTools() +{ + add("add_channel", + "Add a channel (demodulator or modulator) to a device set and optionally apply initial settings. Returns the index of the new channel. " + "channelType is an id from list_channel_types, e.g. ADSBDemod, NFMDemod, AMDemod, BFMDemod, SSBDemod, AISDemod, PacketDemod, FileSink.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelType", strProp("Channel type id from list_channel_types")}, + {"settings", objProp("Optional initial settings for the channel, e.g. {\"inputFrequencyOffset\": 0}. Use describe_settings for the keys")} + }, {"deviceSetIndex", "channelType"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QString channelType = argString(args, "channelType"); + int channelIndex = addChannelAndWait(deviceSetIndex, channelType); + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + QString warning = basebandWarning(deviceSetIndex, channelType); + + if (!warning.isEmpty()) { + result["warning"] = warning; + } + QJsonObject settings = argObject(args, "settings", false); + + if (!settings.isEmpty()) + { + QJsonObject patched; + + try + { + patched = patchChannelSettings(deviceSetIndex, channelIndex, settings); + } + catch (const MCPToolError& e) + { + // The channel exists even though its settings were refused. Say so and give + // its index, otherwise a retry would leave a second one behind. + throw MCPToolError(QString("The %1 channel was created as channel %2 of device set %3, but its initial " + "settings were refused, so it is left with defaults: %4. Use set_channel_settings to correct it, " + "or delete_channel to remove it. Do not call add_channel again.") + .arg(channelType).arg(channelIndex).arg(deviceSetIndex).arg(e.message)); + } + + result["changed"] = patched["changed"]; + + if (patched.contains("warning")) { + result["warning"] = patched["warning"]; + } + } + + return result; + }); + + add("delete_channel", + "Remove a channel from a device set. Channels with a higher index are renumbered down by one.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", channelIndexProp} + }, {"deviceSetIndex", "channelIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + + // Waits for the channel itself to disappear. Waiting for the removed signal would + // sit out the whole timeout for the last channel of a device set, which the device + // set drops from its list before MainCore can look it up to signal it. + deleteChannelAndWait(deviceSetIndex, argInt(args, "channelIndex")); + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelCount"] = channelCount(deviceSetIndex); + return result; + }); + + add("get_channel_settings", + "Get the settings of a channel. The keys depend on the channel type. inputFrequencyOffset is the channel frequency relative to the device centre frequency in Hz.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", channelIndexProp} + }, {"deviceSetIndex", "channelIndex"}), + [this](const QJsonObject& args) { return getChannelSettings(argInt(args, "deviceSetIndex"), argInt(args, "channelIndex")); }); + + add("set_channel_settings", + "Change some settings of a channel. Give only the keys to change, e.g. {\"inputFrequencyOffset\": 25000, \"squelch\": -40}. " + "Use describe_settings with the channel type to learn the valid keys. Returns the keys changed with their applied values.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", channelIndexProp}, + {"settings", objProp("Object with the settings keys to change and their new values")} + }, {"deviceSetIndex", "channelIndex", "settings"}), + [this](const QJsonObject& args) + { + return patchChannelSettings(argInt(args, "deviceSetIndex"), argInt(args, "channelIndex"), argObject(args, "settings")); + }); + + add("get_channel_report", + "Get the live report of a channel: signal level, squelch state, decoder statistics and so on, depending on the channel type. " + "Omit channelIndex for the reports of every channel of the device set. " + "For DAB, wait briefly after selecting a programme or changing receiver gain and then read the report again. Do not accept " + "sync or audioActive alone as proof of clean reception: if synchronized audio has SNR at or below 0 dB, RTL-SDR overload " + "is likely, so reduce gain through its supported values and keep the setting that gives the best positive SNR.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", intProp("Index of the channel within the device set; omit for all channels")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + SWGSDRangel::SWGErrorResponse error; + error.init(); + + if (hasArg(args, "channelIndex")) + { + int channelIndex = argInt(args, "channelIndex"); + SWGSDRangel::SWGChannelReport response; + check(m_adapter->devicesetChannelReportGet(deviceSetIndex, channelIndex, response, error), error, "Get channel report"); + QJsonObject report = toJson(response); + addRdsHint(report, report.value("channelType").toString(), deviceSetIndex, channelIndex); + return report; + } + + SWGSDRangel::SWGChannelsDetail response; + check(m_adapter->devicesetChannelsReportGet(deviceSetIndex, response, error), error, "Get channels report"); + QJsonObject json = toJson(response); + QJsonArray channels = json.value("channels").toArray(); + + for (int i = 0; i < channels.size(); i++) + { + QJsonObject channel = channels.at(i).toObject(); + QJsonObject report = channel.value("report").toObject(); + // The channel type is on the entry here rather than on the report it carries + addRdsHint(report, channel.value("id").toString(), deviceSetIndex, channel.value("index").toInt()); + channel["report"] = report; + channels[i] = channel; + } + + json["channels"] = channels; + return json; + }); + + add("channel_action", + "Trigger an action on a channel. Only some channel types have actions. Use describe_settings to find the actions keys of the " + "channel type; pass them as the actions object.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", channelIndexProp}, + {"actions", objProp("Object with the action keys and values for this channel type")} + }, {"deviceSetIndex", "channelIndex", "actions"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + int channelIndex = argInt(args, "channelIndex"); + QJsonObject actions = argObject(args, "actions"); + QJsonObject settings = getChannelSettings(deviceSetIndex, channelIndex); + QString channelType = settings["channelType"].toString(); + + if (!WebAPIUtils::m_channelTypeToActionsKey.contains(channelType)) { + throw MCPToolError(QString("Channel type %1 has no actions").arg(channelType)); + } + + QString actionsKey = WebAPIUtils::m_channelTypeToActionsKey[channelType]; + QJsonObject json; + json["channelType"] = channelType; + json["direction"] = settings["direction"].toInt(0); + json[actionsKey] = actions.contains(actionsKey) ? actions[actionsKey].toObject() : actions; + QStringList keys; + extractKeys(json[actionsKey].toObject(), keys); + + SWGSDRangel::SWGChannelActions query; + query.init(); + query.fromJsonObject(json); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelActionsPost(deviceSetIndex, channelIndex, keys, query, response, error), error, "Channel action"); + return toJson(response); + }); +} + +void MCPTools::registerFeatureTools() +{ + add("add_feature", + "Add a feature (device independent plugin such as Map, AIS, APRS, SatelliteTracker) and optionally apply initial settings. " + "Returns the index of the new feature. featureType is an id from list_feature_types.", + schema({ + {"featureType", strProp("Feature type id from list_feature_types")}, + {"settings", objProp("Optional initial settings for the feature. Use describe_settings for the keys")} + }, {"featureType"}), + [this](const QJsonObject& args) + { + QString featureType = argString(args, "featureType"); + int featureIndex = addFeatureAndWait(featureType); + QJsonObject result; + result["featureIndex"] = featureIndex; + QJsonObject settings = argObject(args, "settings", false); + + if (!settings.isEmpty()) + { + QJsonObject patched; + + try + { + patched = patchFeatureSettings(featureIndex, settings); + } + catch (const MCPToolError& e) + { + throw MCPToolError(QString("The %1 feature was created as feature %2, but its initial settings were " + "refused, so it is left with defaults: %3. Use set_feature_settings to correct it, or " + "delete_feature to remove it. Do not call add_feature again.") + .arg(featureType).arg(featureIndex).arg(e.message)); + } + + result["changed"] = patched["changed"]; + + if (patched.contains("warning")) { + result["warning"] = patched["warning"]; + } + } + + return result; + }); + + add("delete_feature", + "Remove a feature. Features with a higher index are renumbered down by one.", + schema({{"featureIndex", featureIndexProp}}, {"featureIndex"}), + [this](const QJsonObject& args) + { + int featureIndex = argInt(args, "featureIndex"); + QMutexLocker deletionLock(&m_deletionMutex); + requireNotSelf(featureIndex, "deleted"); + const uint64_t target = featureUidAt(featureIndex); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->featuresetFeatureDelete(0, featureIndex, response, error), error, "Delete feature"); + + // FeatureSet drops the feature from its own list before MainCore looks it up, so + // removing the last feature emits no featureRemoved. Watch the feature itself go. + if (!waitFor([&]() { return !featureUids().contains(target); })) { + throw MCPToolError(QString("Timed out waiting for feature %1 to be removed").arg(featureIndex)); + } + + QJsonObject result; + result["featureCount"] = featureCount(); + return result; + }); + + add("get_feature_settings", + "Get the settings of a feature. The keys depend on the feature type.", + schema({{"featureIndex", featureIndexProp}}, {"featureIndex"}), + [this](const QJsonObject& args) { return getFeatureSettings(argInt(args, "featureIndex")); }); + + add("set_feature_settings", + "Change some settings of a feature. Give only the keys to change. Use describe_settings with the feature type to learn the valid keys.", + schema({ + {"featureIndex", featureIndexProp}, + {"settings", objProp("Object with the settings keys to change and their new values")} + }, {"featureIndex", "settings"}), + [this](const QJsonObject& args) { return patchFeatureSettings(argInt(args, "featureIndex"), argObject(args, "settings")); }); + + add("get_feature_report", + "Get the live report of a feature, depending on the feature type.", + schema({{"featureIndex", featureIndexProp}}, {"featureIndex"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGFeatureReport response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->featuresetFeatureReportGet(0, argInt(args, "featureIndex"), response, error), error, "Get feature report"); + return toJson(response); + }); + + add("start_feature", + "Start a feature. Most features must be started to do anything, but the passive ones - AIS, AMBE, AntennaTools, " + "APRS, FreqDisplay, LimeRFE, Map, Radiosonde, RemoteControl and SkyMap - have no run state, work as soon as they " + "are configured and always report idle. Starting one of those is answered without doing anything.", + schema({{"featureIndex", featureIndexProp}}, {"featureIndex"}), + [this](const QJsonObject& args) { return featureState(argInt(args, "featureIndex"), 1); }); + + add("stop_feature", + "Stop a feature.", + schema({{"featureIndex", featureIndexProp}}, {"featureIndex"}), + [this](const QJsonObject& args) + { + int featureIndex = argInt(args, "featureIndex"); + requireNotSelf(featureIndex, "stopped"); + return featureState(featureIndex, 0); + }); + + add("feature_action", + "Trigger an action on a feature. Use describe_settings to find the actions keys of the feature type; pass them as the actions object.", + schema({ + {"featureIndex", featureIndexProp}, + {"actions", objProp("Object with the action keys and values for this feature type")} + }, {"featureIndex", "actions"}), + [this](const QJsonObject& args) + { + int featureIndex = argInt(args, "featureIndex"); + QJsonObject actions = argObject(args, "actions"); + QJsonObject settings = getFeatureSettings(featureIndex); + QString featureType = settings["featureType"].toString(); + + if (!WebAPIUtils::m_featureTypeToActionsKey.contains(featureType)) { + throw MCPToolError(QString("Feature type %1 has no actions").arg(featureType)); + } + + QString actionsKey = WebAPIUtils::m_featureTypeToActionsKey[featureType]; + QJsonObject json; + json["featureType"] = featureType; + json[actionsKey] = actions.contains(actionsKey) ? actions[actionsKey].toObject() : actions; + QStringList keys; + extractKeys(json[actionsKey].toObject(), keys); + + SWGSDRangel::SWGFeatureActions query; + query.init(); + query.fromJsonObject(json); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->featuresetFeatureActionsPost(0, featureIndex, keys, query, response, error), error, "Feature action"); + return toJson(response); + }); +} + +void MCPTools::registerPresetTools() +{ + add("list_presets", + "List the saved device set presets. A preset stores a device set's device and channel settings and is identified by group name, " + "name, centre frequency and type (R for rx, T for tx, M for MIMO).", + schema(QJsonObject()), + [this](const QJsonObject&) { return getPresets(); }); + + add("load_preset", + "Load a preset into a device set, replacing its device settings and channels. The preset type must match the device set direction.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"groupName", strProp("Preset group name")}, + {"name", strProp("Preset name")}, + {"centerFrequency", numProp("Preset centre frequency in Hz. Only needed when several presets share the group and name")}, + {"type", strProp("Preset type R, T or M. Only needed when several presets share the group and name")} + }, {"deviceSetIndex", "groupName", "name"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject identifier = presetIdentifier(args, deviceSetIndex, false); + SWGSDRangel::SWGPresetTransfer query; + query.setDeviceSetIndex(deviceSetIndex); + SWGSDRangel::SWGPresetIdentifier *preset = new SWGSDRangel::SWGPresetIdentifier(); + preset->setGroupName(new QString(identifier["groupName"].toString())); + preset->setName(new QString(identifier["name"].toString())); + preset->setType(new QString(identifier["type"].toString())); + preset->setCenterFrequency((qint64) identifier["centerFrequency"].toDouble()); + query.setPreset(preset); + SWGSDRangel::SWGPresetIdentifier response; + response.init(); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instancePresetPatch(query, response, error), error, "Load preset"); + pause(500); // Loading replaces the channels; give it a moment before the caller looks + QJsonObject result; + result["loaded"] = toJson(response); + result["deviceSet"] = getDeviceSet(deviceSetIndex); + return result; + }); + + add("save_preset", + "Save the current device settings and channels of a device set as a preset. Updates the preset if one with the same group, name, " + "centre frequency and type exists, otherwise creates it.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"groupName", strProp("Preset group name")}, + {"name", strProp("Preset name")} + }, {"deviceSetIndex", "groupName", "name"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject identifier = presetIdentifier(args, deviceSetIndex, true); + SWGSDRangel::SWGPresetTransfer query; + query.setDeviceSetIndex(deviceSetIndex); + SWGSDRangel::SWGPresetIdentifier *preset = new SWGSDRangel::SWGPresetIdentifier(); + preset->setGroupName(new QString(identifier["groupName"].toString())); + preset->setName(new QString(identifier["name"].toString())); + preset->setType(new QString(identifier["type"].toString())); + preset->setCenterFrequency((qint64) identifier["centerFrequency"].toDouble()); + query.setPreset(preset); + SWGSDRangel::SWGPresetIdentifier response; + response.init(); + SWGSDRangel::SWGErrorResponse error; + error.init(); + bool exists = identifier["exists"].toBool(); + + if (exists) { + check(m_adapter->instancePresetPut(query, response, error), error, "Update preset"); + } else { + check(m_adapter->instancePresetPost(query, response, error), error, "Create preset"); + } + + QJsonObject result; + result["preset"] = toJson(response); + result["created"] = !exists; + return result; + }); + + add("list_configurations", + "List the saved configurations. A configuration stores the whole instance: all device sets, features and workspaces.", + schema(QJsonObject()), + [this](const QJsonObject&) { return getConfigurations(); }); + + add("load_configuration", + "Load a saved configuration, replacing all current device sets and features.", + schema({ + {"groupName", strProp("Configuration group name")}, + {"name", strProp("Configuration name")} + }, {"groupName", "name"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGConfigurationIdentifier response; + response.setGroupName(new QString(argString(args, "groupName"))); + response.setName(new QString(argString(args, "name"))); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceConfigurationPatch(response, error), error, "Load configuration"); + pause(1000); // Loading rebuilds everything + QJsonObject result; + result["configuration"] = toJson(response); + result["instance"] = getInstanceSummary(); + return result; + }); + + add("save_configuration", + "Save the whole current instance as a configuration. Updates the configuration if one with the same group and name exists, otherwise creates it.", + schema({ + {"groupName", strProp("Configuration group name")}, + {"name", strProp("Configuration name")} + }, {"groupName", "name"}), + [this](const QJsonObject& args) + { + QString groupName = argString(args, "groupName"); + QString name = argString(args, "name"); + bool exists = false; + + for (const auto& groupValue : getConfigurations()["groups"].toArray()) + { + QJsonObject group = groupValue.toObject(); + + if (group["groupName"].toString() != groupName) { + continue; + } + + for (const auto& item : group["configurations"].toArray()) + { + if (item.toObject()["name"].toString() == name) { + exists = true; + } + } + } + + SWGSDRangel::SWGConfigurationIdentifier response; + response.setGroupName(new QString(groupName)); + response.setName(new QString(name)); + SWGSDRangel::SWGErrorResponse error; + error.init(); + + if (exists) { + check(m_adapter->instanceConfigurationPut(response, error), error, "Update configuration"); + } else { + check(m_adapter->instanceConfigurationPost(response, error), error, "Create configuration"); + } + + QJsonObject result; + result["configuration"] = toJson(response); + result["created"] = !exists; + return result; + }); +} + +void MCPTools::registerWorkspaceTools() +{ + add("add_workspace", + "GUI only: add a new workspace (a tabbed area holding device, channel and feature windows). Workspaces are numbered from 0.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceWorkspacePost(response, error), error, "Add workspace"); + return toJson(response); + }); + + add("delete_empty_workspaces", + "GUI only: remove all workspaces that contain no windows.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceWorkspaceDelete(response, error), error, "Delete empty workspaces"); + return toJson(response); + }); + + add("arrange_workspace", + "GUI only: arrange the windows of a workspace, as its title bar buttons do. cascade, tile, stackVertical and stack " + "rearrange them once and turn auto stacking and tabs off; autostack stacks them now and again whenever a window is " + "added or resized, until another arrangement is asked for; tab shows one window at a time with a tab for each. " + "stack is the usual choice: devices, spectra and channels in columns.", + schema({ + {"workspaceIndex", intProp("Index of the workspace, from 0")}, + {"arrange", enumProp("cascade, tile, stackVertical, stack, autostack or tab", {"cascade", "tile", "stackVertical", "stack", "autostack", "tab"})} + }, {"workspaceIndex", "arrange"}), + [this](const QJsonObject& args) + { + SWGSDRangel::SWGWorkspaceActions query; + query.init(); + query.setArrange(new QString(argString(args, "arrange"))); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->workspaceActionsPost(argInt(args, "workspaceIndex"), query, response, error), error, "Arrange workspace"); + return toJson(response); + }); + + add("list_windows", + "GUI only: every window, with its kind (device, spectrum, channel or feature), indices, title, workspace and whether it " + "is hidden. A hidden window is still running; set_workspace with hidden false shows it again.", + schema({}), + [this](const QJsonObject&) + { + SWGSDRangel::SWGWindowList response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceWindowsGet(response, error), error, "List windows"); + return toJson(response); + }); + + add("set_workspace", + "GUI only: move a window to a workspace, hide it, or show it again. kind is device, spectrum or channel (with " + "deviceSetIndex, plus channelIndex for a channel) or feature (with featureIndex). Give workspaceIndex to move, hidden " + "to hide (true) or show (false), or both. Showing a window raises it and shows the workspace holding it. Hiding a " + "window does not stop it: a hidden demodulator still plays audio. list_windows shows what is hidden.", + schema({ + {"kind", strProp("device, spectrum, channel or feature")}, + {"workspaceIndex", intProp("Workspace to move the window to. Optional")}, + {"hidden", prop("boolean", "true hides the window, false shows it. Optional")}, + {"deviceSetIndex", intProp("For device, spectrum and channel")}, + {"channelIndex", intProp("For channel")}, + {"featureIndex", intProp("For feature")} + }, {"kind"}), + [this](const QJsonObject& args) + { + QString kind = argString(args, "kind").trimmed().toLower(); + + if (!hasArg(args, "workspaceIndex") && !hasArg(args, "hidden")) { + throw MCPToolError("Give workspaceIndex to move the window, hidden to hide or show it, or both"); + } + + // -1 for what was not asked for, as the Web API's own validator passes it + SWGSDRangel::SWGWorkspaceInfo query; + query.setIndex(hasArg(args, "workspaceIndex") ? argInt(args, "workspaceIndex") : -1); + query.setHidden(hasArg(args, "hidden") ? (argBool(args, "hidden", false) ? 1 : 0) : -1); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + + if (kind == "device") { + check(m_adapter->devicesetDeviceWorkspacePut(argInt(args, "deviceSetIndex"), query, response, error), error, "Set device workspace"); + } else if (kind == "spectrum") { + check(m_adapter->devicesetSpectrumWorkspacePut(argInt(args, "deviceSetIndex"), query, response, error), error, "Set spectrum workspace"); + } else if (kind == "channel") { + check(m_adapter->devicesetChannelWorkspacePut(argInt(args, "deviceSetIndex"), argInt(args, "channelIndex"), query, response, error), error, "Set channel workspace"); + } else if (kind == "feature") { + check(m_adapter->featuresetFeatureWorkspacePut(argInt(args, "featureIndex"), query, response, error), error, "Set feature workspace"); + } else { + throw MCPToolError("kind must be device, spectrum, channel or feature"); + } + + return toJson(response); + }); +} + +void MCPTools::registerCaptureTools() +{ + + add("get_server_status", + "This server's own state, in one call: the capture directory and any recordings running; which channels and features " + "feed packets and map items and how much has arrived; and the client event streams (open streams, subscriptions, " + "notifications sent). Open a stream with an HTTP GET on the MCP endpoint with Accept: text/event-stream, then " + "resources/subscribe.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + QJsonObject result; + result["capture"] = m_capture.status(); + result["dataFeed"] = m_dataFeed.getStatus(); + result["streams"] = m_streams ? m_streams->status() : QJsonObject(); + return result; + }); + + add("capture_audio", + QString("Record the demodulated audio of a channel to a WAV file and report where it went, how loud it was and whether it " + "was silent. Works with demodulators that feed the Demod Analyzer, such as NFMDemod, AMDemod, SSBDemod, WFMDemod, " + "BFMDemod, DSDDemod and M17Demod. The device must be running. This call blocks for the duration, so it is limited " + "to %1 seconds. Set inline to true (up to %2 seconds) to also get the audio back as base64 for playing directly: " + "a mono 16 kHz copy, small enough for a tool result, while the file keeps the full rate.") + .arg(MCPCapture::m_maxBlockingSeconds).arg(MCPCapture::m_maxInlineSeconds), + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", channelIndexProp}, + {"seconds", bounded(numProp(QString("How long to record for, up to %1").arg(MCPCapture::m_maxBlockingSeconds)), 0.1, MCPCapture::m_maxBlockingSeconds)}, + {"fileName", strProp("File name relative to the capture directory. The .wav extension is added. Default: audio_")}, + {"inline", prop("boolean", QString("Also return the audio as base64 in audioBase64, as a mono 16 kHz WAV. Only for clips of %1 seconds or less. Default false").arg(MCPCapture::m_maxInlineSeconds))} + }, {"deviceSetIndex", "channelIndex", "seconds"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + int channelIndex = argInt(args, "channelIndex"); + double seconds = argDouble(args, "seconds"); + bool inlineAudio = argBool(args, "inline", false); + + if ((seconds <= 0) || (seconds > MCPCapture::m_maxBlockingSeconds)) { + throw MCPToolError(QString("seconds must be between 0 and %1").arg(MCPCapture::m_maxBlockingSeconds)); + } + + if (inlineAudio && (seconds > MCPCapture::m_maxInlineSeconds)) { + throw MCPToolError(QString("inline audio is only available for %1 seconds or less").arg(MCPCapture::m_maxInlineSeconds)); + } + + QJsonObject state = deviceState(deviceSetIndex, 0, -1); + + if (state["state"].toString() != "running") { + throw MCPToolError("The device is not running, so there is no audio to record. Call start_device first."); + } + + return m_capture.captureAudio(deviceSetIndex, channelIndex, seconds, + argString(args, "fileName", false), inlineAudio); + }); + + add("start_iq_recording", + "Start recording baseband IQ samples to a file. Adds a FileSink channel to the device set unless channelIndex names an " + "existing one, and starts it recording. The device must be running for samples to be written. Recording continues until " + "stop_iq_recording, so use this for long captures and record_iq for short ones. Files are written under the capture " + "directory shown by get_server_status; fileName is relative to it.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"fileName", strProp("File name relative to the capture directory. A timestamp and the .sdriq extension are added. Default: iq_")}, + {"frequencyOffset", intProp("Channel frequency offset from the device centre frequency in Hz. Default 0, which records the full baseband centred on the device frequency")}, + {"log2Decim", bounded(intProp("Decimation as a power of two: 0 records at the device sample rate, 1 halves it, and so on. Default 0"), 0, 6)}, + {"channelIndex", intProp("Use this existing FileSink channel instead of adding one")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + bool created = !hasArg(args, "channelIndex"); + + // A bad file name is refused before a channel is added for it + m_capture.checkFileName(argString(args, "fileName", false), "iq"); + + int channelIndex = created ? addChannelAndWait(deviceSetIndex, "FileSink") : argInt(args, "channelIndex"); + const uint64_t channel = created ? channelUidAt(deviceSetIndex, channelIndex) : 0; + + try + { + QJsonObject result = m_capture.startIQRecording(deviceSetIndex, channelIndex, + argString(args, "fileName", false), argInt(args, "frequencyOffset", false, 0), + argInt(args, "log2Decim", false, 0)); + result["channelCreated"] = created; + QJsonObject state = deviceState(deviceSetIndex, 0, -1); + + if (state["state"].toString() != "running") { + result["warning"] = "The device is not running, so no samples will be recorded. Call start_device."; + } + + return result; + } + catch (const MCPToolError&) + { + // Do not leave a channel behind when the recording could not be set up. By + // identity: a concurrent listen or scan may have renumbered it meanwhile + if (created) { + try { deleteChannelObjectAndWait(channel); } catch (const MCPToolError&) {} + } + + throw; + } + }); + + add("stop_iq_recording", + "Stop an IQ recording started with start_iq_recording and report the files written, with their size and duration.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"channelIndex", intProp("Index of the FileSink channel that is recording")}, + {"deleteChannel", prop("boolean", "Delete the FileSink channel afterwards. Default false")} + }, {"deviceSetIndex", "channelIndex"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + int channelIndex = argInt(args, "channelIndex"); + const uint64_t channel = channelUidAt(deviceSetIndex, channelIndex); + QJsonObject result = m_capture.stopIQRecording(deviceSetIndex, channelIndex); + bool deleteChannel = argBool(args, "deleteChannel", false); + + if (deleteChannel) + { + deleteChannelObjectAndWait(channel); + result["channelDeleted"] = true; + } + + return result; + }); + + add("record_iq", + QString("Record baseband IQ samples for a fixed number of seconds and return the files written. Adds a FileSink channel, " + "records, stops and removes the channel again. This call blocks for the duration, so it is limited to %1 seconds; " + "for longer captures use start_iq_recording and stop_iq_recording. The device must already be running. " + "Note that IQ files are large: roughly 4 bytes per sample per second of the device sample rate.") + .arg(MCPCapture::m_maxBlockingSeconds), + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"seconds", bounded(numProp(QString("How long to record for, up to %1").arg(MCPCapture::m_maxBlockingSeconds)), 0.1, MCPCapture::m_maxBlockingSeconds)}, + {"fileName", strProp("File name relative to the capture directory. A timestamp and the .sdriq extension are added")}, + {"frequencyOffset", intProp("Channel frequency offset from the device centre frequency in Hz. Default 0")}, + {"log2Decim", bounded(intProp("Decimation as a power of two. Default 0"), 0, 6)} + }, {"deviceSetIndex", "seconds"}), + [this](const QJsonObject& args) + { + int deviceSetIndex = argInt(args, "deviceSetIndex"); + double seconds = argDouble(args, "seconds"); + + if ((seconds <= 0) || (seconds > MCPCapture::m_maxBlockingSeconds)) + { + throw MCPToolError(QString("seconds must be between 0 and %1. For a longer capture use start_iq_recording and stop_iq_recording") + .arg(MCPCapture::m_maxBlockingSeconds)); + } + + QJsonObject state = deviceState(deviceSetIndex, 0, -1); + + if (state["state"].toString() != "running") { + throw MCPToolError("The device is not running, so there is nothing to record. Call start_device first."); + } + + // A bad file name is refused before a channel is added for it + m_capture.checkFileName(argString(args, "fileName", false), "iq"); + + int channelIndex = addChannelAndWait(deviceSetIndex, "FileSink"); + + // This call sleeps for up to half a minute and is not serialised against the other + // tools, so another request can delete a channel and renumber this one meanwhile. + // Everything after the sleep therefore works from the channel's UID, not its index. + const uint64_t channel = channelUidAt(deviceSetIndex, channelIndex); + + if (channel == 0) // cannot happen, but do not leave the channel behind if it does + { + try { deleteChannelAndWait(deviceSetIndex, channelIndex); } catch (const MCPToolError&) {} + + throw MCPToolError("The FileSink channel went away as soon as it was added"); + } + + QJsonObject result; + + try + { + QJsonObject started = m_capture.startIQRecording(deviceSetIndex, channelIndex, + argString(args, "fileName", false), argInt(args, "frequencyOffset", false, 0), + argInt(args, "log2Decim", false, 0)); + pause((int) (seconds * 1000.0)); + result = m_capture.stopIQRecording(channel); + result["fileBase"] = started["fileBase"]; + result["requestedSeconds"] = seconds; + } + catch (const MCPToolError&) + { + try { deleteChannelObjectAndWait(channel); } catch (const MCPToolError&) {} + throw; + } + + deleteChannelObjectAndWait(channel); + + if (result["files"].toArray().isEmpty()) { + result["warning"] = "No files were written. Check that the device is running and producing samples."; + } + + return result; + }); +} + +// --------------------------------------------------------------------------- +// Intent level tools: a whole task in one call +// +// Setting up a receiver with the object level tools takes an agent around ten round trips, +// each one a model turn. These do the common tasks in one, using the same helpers, and reply +// with a short summary rather than the objects they created. +// --------------------------------------------------------------------------- + +namespace { + +// What "listen to X in mode Y" needs: the demodulator, its initial settings and the smallest +// baseband that carries it. Values are the ones the receiving guide and readmes give. +struct ListenMode +{ + const char *m_alias; + const char *m_channelType; + int m_rfBandwidth; //!< Hz. Negative selects the lower sideband, as the SSB demodulator does + int m_minBaseband; //!< Hz + const char *m_settings; //!< JSON of further initial settings + int m_scanStep; //!< Hz. The channel spacing scan steps by unless told otherwise; 0 for a mode on fixed frequencies, which is not scanned for + const char *m_feature; //!< A feature the mode's output goes to, added if absent; null for none + int m_pairOffset; //!< Hz. Non-zero for a mode on two channels this far either side of the frequency, one demodulator each +}; + +const char *const bfmSettings = "{\"afBandwidth\":15000,\"audioStereo\":1,\"rdsActive\":1,\"volume\":4,\"squelch\":-60}"; +const char *const amSettings = "{\"afBandwidth\":3000,\"bandpassEnable\":1,\"volume\":4,\"squelch\":-60}"; + +const ListenMode listenModes[] = { + // Broadcast FM asks for twice the baseband its channel needs: a 180 kHz channel in a 256 kS/s + // baseband sits against the edge of the decimation filters, and RDS suffers first; it also + // leaves room to put the channel clear of the device's DC spike + {"bfm", "BFMDemod", 180000, 512000, bfmSettings, 100000, nullptr, 0}, + {"fm", "BFMDemod", 180000, 512000, bfmSettings, 100000, nullptr, 0}, + {"wfm", "WFMDemod", 150000, 512000, "{\"volume\":2,\"squelch\":-60}", 100000, nullptr, 0}, + {"nfm", "NFMDemod", 12500, 48000, "{\"afBandwidth\":3000,\"volume\":2}", 12500, nullptr, 0}, + {"am", "AMDemod", 8000, 48000, amSettings, 25000, nullptr, 0}, + {"airband", "AMDemod", 8000, 48000, amSettings, 25000, nullptr, 0}, + {"ssb", "SSBDemod", 3000, 48000, "{\"volume\":2}", 3000, nullptr, 0}, + {"usb", "SSBDemod", 3000, 48000, "{\"volume\":2}", 3000, nullptr, 0}, + {"lsb", "SSBDemod", -3000, 48000, "{\"volume\":2}", 3000, nullptr, 0}, + {"dab", "DABDemod", 0, 2048000, "{}", 0, nullptr, 0}, + {"adsb", "ADSBDemod", 0, 2400000, "{}", 0, nullptr, 0}, + {"ais", "AISDemod", 0, 128000, "{}", 0, "AIS", 25000}, + {"dsc", "DSCDemod", 450, 48000, "{}", 0, nullptr, 0}, + // Digital voice: the DSD demodulator decides the standard from the baud rate, and its + // discriminator wants the maximum deviation of the standard, the readme's table: DMR 5.4, + // dPMR 2.7, D-Star 3.5, YSF 7.0, NXDN 2.7 kHz. dsd alone is the plugin's defaults, which + // are D-Star's, set explicitly so that a retuned demodulator gets them too. DMR carries + // two time slots, so both are switched on + {"dsd", "DSDDemod", 12500, 48000, "{\"fmDeviation\":3500,\"baudRate\":4800}", 12500, nullptr, 0}, + {"dmr", "DSDDemod", 12500, 48000, "{\"fmDeviation\":5400,\"baudRate\":4800,\"slot1On\":1,\"slot2On\":1}", 12500, nullptr, 0}, + {"dpmr", "DSDDemod", 6250, 48000, "{\"fmDeviation\":2700,\"baudRate\":2400}", 6250, nullptr, 0}, + {"dstar", "DSDDemod", 12500, 48000, "{\"fmDeviation\":3500,\"baudRate\":4800}", 12500, nullptr, 0}, + {"ysf", "DSDDemod", 12500, 48000, "{\"fmDeviation\":7000,\"baudRate\":4800}", 12500, nullptr, 0}, + {"nxdn", "DSDDemod", 12500, 48000, "{\"fmDeviation\":2700,\"baudRate\":4800}", 12500, nullptr, 0}, + {"nxdn24", "DSDDemod", 6250, 48000, "{\"fmDeviation\":2700,\"baudRate\":2400}", 6250, nullptr, 0}, + {"pager", "PagerDemod", 20000, 48000, "{}", 12500, nullptr, 0}, + {"pocsag", "PagerDemod", 20000, 48000, "{}", 12500, nullptr, 0}, + {"sonde", "RadiosondeDemod", 9600, 48000, "{}", 10000, "Radiosonde", 0}, + {"radiosonde", "RadiosondeDemod", 9600, 48000, "{}", 10000, "Radiosonde", 0}, + // AX.25 packet at 1200 baud AFSK. APRS is the same signal on a fixed regional frequency, + // with the APRS feature to plot the stations + {"packet", "PacketDemod", 12500, 48000, "{}", 0, nullptr, 0}, + {"aprs", "PacketDemod", 12500, 48000, "{}", 0, "APRS", 0}, +}; + +const char *const listenModeList = "bfm, wfm, nfm, am, ssb, usb, lsb, dab, adsb, ais, dsc, dsd, dmr, dpmr, dstar, ysf, nxdn, pager, sonde, packet, aprs"; + +// The feature a demodulator of this type feeds, by the modes that add one; null for none +const char *featureForChannelType(const QString& channelType) +{ + for (const ListenMode& mode : listenModes) + { + if (mode.m_feature && (channelType == QLatin1String(mode.m_channelType))) { + return mode.m_feature; + } + } + + return nullptr; +} + +// What listen and scan say about the features a reclaim took away +QStringList featureNotes(const QStringList& reclaimedFeatures) +{ + if (reclaimedFeatures.isEmpty()) { + return QStringList(); + } + + return QStringList(QString("Removed the %1 feature%2 an earlier listen added, as nothing feeds %3 now.") + .arg(reclaimedFeatures.join(" and ")).arg(reclaimedFeatures.size() == 1 ? "" : "s") + .arg(reclaimedFeatures.size() == 1 ? "it" : "them")); +} + +const ListenMode *findListenMode(const QString& alias) +{ + for (const ListenMode& mode : listenModes) + { + if (alias.compare(QLatin1String(mode.m_alias), Qt::CaseInsensitive) == 0) { + return &mode; + } + } + + return nullptr; +} + +// The device rate and decimation that give at least the wanted baseband. These are the rates +// an RTL-SDR runs reliably; DAB needs exactly 2.048 MS/s. +void rateFor(int minBaseband, int& devSampleRate, int& log2Decim) +{ + if (minBaseband <= 256000) { devSampleRate = 1024000; log2Decim = 2; } + else if (minBaseband <= 512000) { devSampleRate = 1024000; log2Decim = 1; } + else if (minBaseband <= 1024000) { devSampleRate = 1024000; log2Decim = 0; } + else if (minBaseband <= 2048000) { devSampleRate = 2048000; log2Decim = 0; } + else { devSampleRate = 2400000; log2Decim = 0; } +} + +// The baseband a channel type needs, from the table listen uses, so that there is one set of +// numbers rather than two that can disagree. 0 when the type is not in it. +int minimumBasebandFor(const QString& channelType) +{ + for (const ListenMode& mode : listenModes) + { + if (channelType.compare(QLatin1String(mode.m_channelType), Qt::CaseInsensitive) == 0) { + return mode.m_minBaseband; + } + } + + return 0; +} + +// Devices that are not radios attached to this machine, skipped when choosing one automatically +const QStringList virtualDeviceTypes = { + "TestSource", "FileInput", "SigMFFileInput", "LocalInput", "RemoteInput", "RemoteTCPInput", + "KiwiSDR", "AudioInput", "AaroniaRTSA", "AndroidSdrDriverInput" +}; + +// The type specific sub-object of a settings reply, e.g. the rtlSdrSettings of a device +QJsonObject settingsOf(const QJsonObject& reply) +{ + return reply[findSettingsKey(reply)].toObject(); +} + +// A signal level from a channel report, whatever the plugin calls it +bool signalLevel(const QJsonObject& report, double& db) +{ + for (const QString& key : report.keys()) + { + if (!key.endsWith("Report") || !report[key].isObject()) { + continue; + } + + QJsonObject sub = report[key].toObject(); + + for (const QString& k : sub.keys()) + { + if ((k.contains("PowerDB", Qt::CaseInsensitive) || (k == "rssi")) && sub[k].isDouble()) + { + db = sub[k].toDouble(); + return true; + } + } + } + + return false; +} + +} // namespace + +// A channel whose baseband is too narrow produces nothing, or silence, with no error anywhere: +// the demodulator simply never sees the signal. The rule is in this server's instructions, but +// it is read once at the start of a conversation and needed much later, so it is repeated here, +// where the numbers are known and the fix can be named. +QString MCPTools::basebandWarning(int deviceSetIndex, const QString& channelType) +{ + int needed = minimumBasebandFor(channelType); + + if (needed <= 0) { + return QString(); // nothing known about what this type needs + } + + QJsonObject settings; + + try + { + settings = settingsOf(getDeviceSettings(deviceSetIndex)); + } + catch (const MCPToolError&) + { + return QString(); // no device, or it cannot be read: not this call's problem to report + } + + // Only devices that express their rate this way can be checked. Saying nothing is better + // than guessing at a device whose keys are not these + if (!settings.contains("devSampleRate") || !settings.contains("log2Decim")) { + return QString(); + } + + int baseband = settings["devSampleRate"].toInt() >> settings["log2Decim"].toInt(); + + if (baseband >= needed) { + return QString(); + } + + int wantedRate = 0; + int wantedDecim = 0; + rateFor(needed, wantedRate, wantedDecim); + + return QString("%1 needs a baseband of at least %2 Hz, but device set %3 provides %4 Hz, so the channel " + "cannot work as it stands. Call set_device_settings with devSampleRate %5 and log2Decim %6.") + .arg(channelType).arg(needed).arg(deviceSetIndex).arg(baseband).arg(wantedRate).arg(wantedDecim); +} + +QStringList MCPTools::basebandWarnings(int deviceSetIndex) +{ + QStringList warnings; + QJsonObject deviceSet; + + try + { + deviceSet = getDeviceSet(deviceSetIndex); + } + catch (const MCPToolError&) + { + return warnings; + } + + QSet seen; + + for (const QJsonValue& value : deviceSet["channels"].toArray()) + { + QString channelType = value.toObject()["id"].toString(); + + if (channelType.isEmpty() || seen.contains(channelType)) { + continue; // several of a type would repeat the same sentence + } + + seen.insert(channelType); + QString warning = basebandWarning(deviceSetIndex, channelType); + + if (!warning.isEmpty()) { + warnings.append(warning); + } + } + + return warnings; +} + +QStringList MCPTools::channelTypeIds(int direction) +{ + SWGSDRangel::SWGInstanceChannelsResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceChannels(direction, response, error), error, "List channel types"); + QStringList ids; + + for (const QJsonValue& v : toJson(response)["channels"].toArray()) { + ids.append(v.toObject()["id"].toString()); + } + + return ids; +} + +void MCPTools::relocateChannel(uint64_t channelUid, int& deviceSetIndex, int& channelIndex, const QString& what) +{ + if (!MCPCapture::locateChannel(channelUid, deviceSetIndex, channelIndex)) { + throw MCPToolError(QString("The %1 channel no longer exists: another request removed it, or its device set, " + "while this call was running").arg(what)); + } +} + +void MCPTools::trackIntentChannel(uint64_t channelUid) +{ + if (channelUid == 0) { + return; + } + + QMutexLocker locker(&m_intentMutex); + m_intentChannels.insert(channelUid); +} + +void MCPTools::untrackIntentChannel(uint64_t channelUid) +{ + QMutexLocker locker(&m_intentMutex); + m_intentChannels.remove(channelUid); +} + +QSet MCPTools::intentChannels() +{ + QMutexLocker locker(&m_intentMutex); + return m_intentChannels; +} + +// What a device set carries besides one channel, and which of it listen or scan put there. +// Read from the live device set rather than any earlier snapshot, as a reclaim in between +// changes both the indices and the answer +QList MCPTools::channelNotes(int deviceSetIndex, const QSet& except) +{ + const QSet intent = intentChannels(); + QList notes; + + for (const QJsonValue& v : getDeviceSet(deviceSetIndex)["channels"].toArray()) + { + QJsonObject channel = v.toObject(); + int index = channel["index"].toInt(); + const uint64_t uid = channelUidAt(deviceSetIndex, index); + + if ((uid != 0) && !except.contains(uid)) { + notes.append({uid, index, channel["id"].toString(), intent.contains(uid)}); + } + } + + return notes; +} + +QStringList MCPTools::reclaimIntentChannels(int deviceSetIndex, const QSet& keep) +{ + QStringList removed; + + // Each is deleted by identity, wherever it has been renumbered to by then, and highest + // index first so that the ids come out in the order the device set listed them + QList notes = channelNotes(deviceSetIndex); + + for (int i = notes.size() - 1; i >= 0; i--) + { + if (!notes[i].m_intent || keep.contains(notes[i].m_uid)) { + continue; + } + + try + { + deleteChannelObjectAndWait(notes[i].m_uid); + removed.prepend(notes[i].m_id); + } + catch (const MCPToolError&) {} + + // Tracked no longer either way: if it could not be deleted now it will not be later + untrackIntentChannel(notes[i].m_uid); + } + + return removed; +} + +// Retuning the demodulator a previous listen added is what a person would do, and spares the +// audio device and the GUI a close and reopen. Only when the intent channels of that type are +// exactly the count the mode uses (one, or two for a paired mode such as AIS), and no scan's +// FreqScanner is there to be driving them. The first is returned; a paired mode finds the +// other among the intent channels of the type +uint64_t MCPTools::reusableIntentChannel(int deviceSetIndex, const QString& channelType, int& channelIndex, int wanted) +{ + uint64_t candidate = 0; + int candidates = 0; + + for (const ChannelNote& note : channelNotes(deviceSetIndex)) + { + if (!note.m_intent) { + continue; + } + + if (note.m_id == "FreqScanner") { + return 0; + } + + if (note.m_id == channelType) + { + if (candidate == 0) + { + candidate = note.m_uid; + channelIndex = note.m_index; + } + + candidates++; + } + } + + return (candidates == wanted) ? candidate : 0; +} + +// A retune moves every channel on the device set, since each is an offset from the centre. A +// channel the user added is kept on the frequency it had when the new baseband holds it; an +// audio demodulator it cannot hold is removed, as all it could do is play noise; anything else +// is left, with a note, since a file sink or an analyser may be wanted regardless +MCPTools::RetuneOutcome MCPTools::retuneOtherChannels(int deviceSetIndex, double previousCentre, double centre, int baseband) +{ + RetuneOutcome outcome; + + if ((qint64) previousCentre == (qint64) centre) { + return outcome; + } + + static const QStringList audioDemods = { + "AMDemod", "BFMDemod", "DABDemod", "DATVDemod", "DSDDemod", "FreeDVDemod", "ILSDemod", "M17Demod", + "NFMDemod", "SSBDemod", "VORDemod", "VORDemodMC", "WFMDemod", "WDSPRx" + }; + + const QSet intent = intentChannels(); + QJsonObject set = getDeviceSet(deviceSetIndex); + + if (baseband <= 0) { + baseband = set["samplingDevice"].toObject()["bandwidth"].toInt(); + } + + struct Item { int m_index; QString m_id; uint64_t m_uid; qint64 m_offset; }; + QList items; + + for (const QJsonValue& v : set["channels"].toArray()) + { + QJsonObject channel = v.toObject(); + const int index = channel["index"].toInt(); + const uint64_t uid = channelUidAt(deviceSetIndex, index); + + if ((uid != 0) && !intent.contains(uid)) { + items.append({index, channel["id"].toString(), uid, (qint64) channel["deltaFrequency"].toDouble()}); + } + } + + // Highest index first, so that a removal does not renumber one still to be visited + for (int i = items.size() - 1; i >= 0; i--) + { + const Item& item = items[i]; + const qint64 wanted = (qint64) previousCentre + item.m_offset; // where it was listening + const qint64 offset = wanted - (qint64) centre; + const QString where = QString("%1 at %2 MHz").arg(item.m_id).arg(wanted / 1e6, 0, 'f', 3); + + // The offset key differs by type: most have inputFrequencyOffset, the Channel Analyzer + // frequency, ATV intFrequencyOffset, DATV centerFrequency; a sink or a scanner has none + // and is left alone. Read the live settings to find which, rather than guess + QString offsetKey; + + if ((baseband > 0) && (qAbs(offset) <= baseband * 0.45)) // a tenth kept clear at each edge + { + try + { + QJsonObject current = settingsOf(getChannelSettings(deviceSetIndex, item.m_index)); + + for (const char *key : {"inputFrequencyOffset", "frequency", "intFrequencyOffset", "centerFrequency"}) + { + if (current.contains(key)) + { + offsetKey = key; + break; + } + } + } + catch (const MCPToolError&) {} + } + + if (!offsetKey.isEmpty()) + { + try + { + QJsonObject partial; + partial[offsetKey] = (double) offset; + patchChannelSettings(deviceSetIndex, item.m_index, partial); + outcome.m_kept.append(where); + } + catch (const MCPToolError&) + { + outcome.m_stranded.append(where); + } + } + else if ((baseband > 0) && audioDemods.contains(item.m_id)) + { + try + { + deleteChannelObjectAndWait(item.m_uid); + outcome.m_removed.append(where); + } + catch (const MCPToolError&) + { + outcome.m_stranded.append(where); + } + } + else + { + outcome.m_stranded.append(where); + } + } + + return outcome; +} + +QStringList MCPTools::intentNotes(int deviceSetIndex, const QSet& added, const QStringList& reclaimed, + bool reused, double previousCentre, double centre, const RetuneOutcome& outcome) +{ + QStringList notes; + + if (!reclaimed.isEmpty()) + { + notes.append(QString("Removed %1 channel%2 (%3) that earlier listen or scan calls added to device set %4; pass replace false to keep them.") + .arg(reclaimed.size()).arg(reclaimed.size() == 1 ? "" : "s").arg(reclaimed.join(", ")).arg(deviceSetIndex)); + } + + // Read from the live device set rather than the snapshot pickReceiver made, which still + // lists whatever the reclaim has since removed + QStringList leftovers; + QStringList others; + + for (const ChannelNote& note : channelNotes(deviceSetIndex, added)) { + (note.m_intent ? leftovers : others).append(note.m_id); + } + + // Only possible with replace false, and then it is the caller's own trail + if (!leftovers.isEmpty()) + { + notes.append(QString("Device set %1 still has %2 channel%3 (%4) from earlier listen or scan calls, any audio ones still playing; cleanup removes them.") + .arg(deviceSetIndex).arg(leftovers.size()).arg(leftovers.size() == 1 ? "" : "s").arg(leftovers.join(", "))); + } + + // What the retune did to the channels the user added, and how to put back what it took + if (reused && ((qint64) previousCentre != (qint64) centre) + && !(outcome.m_kept.isEmpty() && outcome.m_removed.isEmpty() && outcome.m_stranded.isEmpty())) + { + QString note = QString("Retuned device set %1 from %2 to %3 MHz.").arg(deviceSetIndex) + .arg(previousCentre / 1e6, 0, 'f', 3).arg(centre / 1e6, 0, 'f', 3); + + if (!outcome.m_kept.isEmpty()) { + note += QString(" Kept %1 other channel%2 on frequency by moving the offset: %3.") + .arg(outcome.m_kept.size()).arg(outcome.m_kept.size() == 1 ? "" : "s").arg(outcome.m_kept.join(", ")); + } + + if (!outcome.m_removed.isEmpty()) { + note += QString(" Removed %1 audio demodulator%2 the new baseband could not hold, which would only have played noise: %3. " + "They were not added by listen or scan; add_channel puts one back.") + .arg(outcome.m_removed.size()).arg(outcome.m_removed.size() == 1 ? "" : "s").arg(outcome.m_removed.join(", ")); + } + + if (!outcome.m_stranded.isEmpty()) { + note += QString(" Left %1 other channel%2 that the new baseband does not hold, not being audio: %3. " + "set_channel_settings inputFrequencyOffset retunes one, delete_channel removes it.") + .arg(outcome.m_stranded.size()).arg(outcome.m_stranded.size() == 1 ? "" : "s").arg(outcome.m_stranded.join(", ")); + } + + notes.append(note); + } + + (void) others; + return notes; +} + +QJsonObject MCPTools::channelReport(int deviceSetIndex, int channelIndex) +{ + SWGSDRangel::SWGChannelReport response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelReportGet(deviceSetIndex, channelIndex, response, error), error, "Get channel report"); + return toJson(response); +} + +void MCPTools::postChannelAction(int deviceSetIndex, int channelIndex, const QJsonObject& actions) +{ + QJsonObject settings = getChannelSettings(deviceSetIndex, channelIndex); + QString channelType = settings["channelType"].toString(); + + if (!WebAPIUtils::m_channelTypeToActionsKey.contains(channelType)) { + throw MCPToolError(QString("Channel type %1 has no actions").arg(channelType)); + } + + QJsonObject json; + json["channelType"] = channelType; + json["direction"] = settings["direction"].toInt(0); + json[WebAPIUtils::m_channelTypeToActionsKey[channelType]] = actions; + QStringList keys; + extractKeys(actions, keys); + + SWGSDRangel::SWGChannelActions query; + query.init(); + query.fromJsonObject(json); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetChannelActionsPost(deviceSetIndex, channelIndex, keys, query, response, error), error, "Channel action"); +} + +// Finds or creates a receive device set holding a suitable device and sets its sample rate. +// An existing set holding the same device is reused rather than fought for the hardware; the +// caller tunes the centre frequency and is told what else that set carries. +// Takes away the device set listen or scan created when the call fails before it is done +// with it, so a retry does not build another beside a half made one. Cleared on success +class NewDeviceSetGuard +{ +public: + NewDeviceSetGuard(MCPTools *tools, int deviceSetIndex) : + m_tools(tools), + m_deviceSetIndex(deviceSetIndex), + m_identity(deviceSetIndex >= 0 ? tools->deviceSetIdentity(deviceSetIndex) : 0) + {} + ~NewDeviceSetGuard() + { + if (m_deviceSetIndex >= 0) { + m_tools->discardNewDeviceSet(m_deviceSetIndex, m_identity); + } + } + void keep() { m_deviceSetIndex = -1; } + +private: + MCPTools *m_tools; + int m_deviceSetIndex; + uint64_t m_identity; //!< Of the set as it was when this call made it +}; + +QJsonObject MCPTools::pickReceiver(const QJsonObject& args, int minBaseband, const QSet& doomed, bool profileGain) +{ + SWGSDRangel::SWGInstanceDevicesResponse devicesResponse; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->instanceDevices(0, devicesResponse, error), error, "List devices"); + QJsonArray devices = toJson(devicesResponse)["devices"].toArray(); + + // Which device: the one the caller named; else the first real radio that was actually + // enumerated, which is the one with a serial number - some plugins list a placeholder + // entry for hardware that is not attached, and it has none; else anything + QJsonObject chosen; + QJsonObject fallback; + QString wanted = argString(args, "device", false).trimmed(); + + for (const QJsonValue& v : devices) + { + QJsonObject d = v.toObject(); + + if (!wanted.isEmpty()) + { + if ((d["serial"].toString().compare(wanted, Qt::CaseInsensitive) == 0) + || (d["displayedName"].toString().compare(wanted, Qt::CaseInsensitive) == 0) + || (d["hwType"].toString().compare(wanted, Qt::CaseInsensitive) == 0)) + { + chosen = d; + break; + } + } + else if (!virtualDeviceTypes.contains(d["hwType"].toString())) + { + if (!d["serial"].toString().isEmpty()) { chosen = d; break; } + if (fallback.isEmpty()) { fallback = d; } + } + } + + if (chosen.isEmpty() && wanted.isEmpty()) { + chosen = fallback.isEmpty() && !devices.isEmpty() ? devices.first().toObject() : fallback; + } + + if (chosen.isEmpty()) { + throw MCPToolError(QString("No receive device matches %1. list_available_devices shows what there is.").arg(wanted.isEmpty() ? "anything" : wanted)); + } + + QString hwType = chosen["hwType"].toString(); + QString serial = chosen["serial"].toString(); + + // Reuse a device set that already holds this device + int deviceSetIndex = -1; + QJsonArray otherChannels; + QJsonArray deviceSets = getInstanceSummary()["devicesetlist"].toObject()["deviceSets"].toArray(); + + for (const QJsonValue& v : deviceSets) + { + QJsonObject ds = v.toObject(); + QJsonObject sd = ds["samplingDevice"].toObject(); + + if (sd["direction"].toInt() != 0) { + continue; + } + + bool same = serial.isEmpty() ? (sd["hwType"].toString() == hwType) : (sd["serial"].toString() == serial); + + if (same) + { + deviceSetIndex = sd["index"].toInt(); + + // Channels the caller is about to remove are not ones the set has to go on + // serving, so they neither hold the baseband width up nor count as carried + for (const QJsonValue& c : ds["channels"].toArray()) + { + QJsonObject channel = c.toObject(); + + if (!doomed.contains(channelUidAt(deviceSetIndex, channel["index"].toInt()))) { + otherChannels.append(channel["id"].toString()); + } + } + + break; + } + } + + bool reused = deviceSetIndex >= 0; + + if (!reused) { + deviceSetIndex = addDeviceSetAndWait(0); + } + + // Until the caller has it, a set made here that cannot be finished is this function's to + // take away again + NewDeviceSetGuard newDeviceSet(this, reused ? -1 : deviceSetIndex); + + if (!reused) + { + QJsonObject select; + select["hwType"] = hwType; + + if (!serial.isEmpty()) { + select["serial"] = serial; + } + + selectDevice(deviceSetIndex, select); + } + + QJsonObject before = settingsOf(getDeviceSettings(deviceSetIndex)); + + // Only the devices whose rate keys and supported rates are known are set; others keep + // their configured rate and the caller is told to check it + QString rateKey; + + if (hwType == "RTLSDR") { + rateKey = "devSampleRate"; + } else if (hwType == "TestSource") { + rateKey = "sampleRate"; + } + + // A reused device set is already feeding its other channels the width it has. Widening it for + // the new channel leaves them working, narrowing it to what only the new one needs takes their + // signal away, so the width already configured is a floor rather than something to overwrite + int existingBaseband = 0; + + if (reused && !otherChannels.isEmpty() && !rateKey.isEmpty()) + { + int rate = before[rateKey].toInt(); + + if (rate > 0) { + existingBaseband = rate >> before["log2Decim"].toInt(); + } + } + + int devSampleRate = 0; + int log2Decim = 0; + rateFor(qMax(minBaseband, existingBaseband), devSampleRate, log2Decim); + QJsonObject partial; + QString rateNote; + int baseband = 0; + + if (!rateKey.isEmpty()) + { + baseband = devSampleRate >> log2Decim; + + if (baseband < existingBaseband) + { + // Wider than rateFor is able to ask for, so leave the rate alone altogether + baseband = existingBaseband; + rateNote = QString("Device set %1 was left at %2 S/s of baseband, which its other channels need.") + .arg(deviceSetIndex).arg(existingBaseband); + } + else + { + partial[rateKey] = devSampleRate; + partial["log2Decim"] = log2Decim; + + if (existingBaseband > minBaseband) { + rateNote = QString("Device set %1 was kept at %2 S/s of baseband rather than the %3 this channel needs, for its other channels.") + .arg(deviceSetIndex).arg(baseband).arg(minBaseband); + } + } + } + + // Only a device set this call created gets the receiver profile: one that was found is the + // user's, and its gain stays whatever they set + if (!reused && (hwType == "RTLSDR")) + { + partial["dcBlock"] = 1; + partial["iqImbalance"] = 1; + + // A fixed 40 dB when the caller is not about to measure one: the tuner's own AGC is + // unreliable on weak signals, and the default gain left the airband 35 dB down on what + // a hand-set receiver saw + if (profileGain) + { + partial["agc"] = 0; + partial["gain"] = 402; + rateNote = (rateNote.isEmpty() ? QString() : rateNote + " ") + + QString("Device set %1 is new, so its RTL-SDR was set to 40 dB gain with AGC off; set_device_settings changes it.") + .arg(deviceSetIndex); + } + } + + if (!partial.isEmpty()) { + patchDeviceSettings(deviceSetIndex, partial); + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["hwType"] = hwType; + result["device"] = chosen["displayedName"].toString(); + result["reused"] = reused; + result["previousCentre"] = before["centerFrequency"].toDouble(); + result["otherChannels"] = otherChannels; + result["baseband"] = baseband; + result["rateNote"] = rateNote; + newDeviceSet.keep(); + return result; +} + +// The tune_gain tool, also run by listen and scan when they set up a receiver on a new +// device set or move one to another band +QJsonObject MCPTools::tuneGain(const QJsonObject& args) +{ + int deviceSetIndex = argInt(args, "deviceSetIndex"); + QJsonObject reply = getDeviceSettings(deviceSetIndex); + const QString hwType = reply["deviceHwType"].toString(); + QJsonObject settings = settingsOf(reply); + + if (deviceState(deviceSetIndex, 0, -1)["state"].toString() != "running") { + throw MCPToolError("The device is not running, so there is nothing to measure. start_device first."); + } + + // What this knows about each device's gain: the key, its manual AGC setting, and the + // values to try. Where a device has several gain stages the one before the mixer is + // tuned, as that is where overload happens; the rest keep their settings + struct Knob { QString key; QString agcKey; int agcOff; QList values; QString unit; QString note; }; + Knob knob; + const bool custom = hasArg(args, "gainKey"); + + if (custom) + { + knob.key = argString(args, "gainKey"); + knob.agcKey = argString(args, "agcKey", false); + knob.agcOff = 0; + knob.unit = "the key's own units"; + + for (const QJsonValue& v : args["values"].toArray()) { + knob.values.append(v.toDouble()); + } + + if (knob.values.size() < 2) { + throw MCPToolError("Give at least two values to try with gainKey"); + } + } + else if (hwType == "RTLSDR") + { + // The tuner takes only the values it lists, in tenths of a decibel + knob = {"gain", "agc", 0, {}, "tenths of a dB", "The tuner's AGC is off, as it must be for the gain to hold"}; + SWGSDRangel::SWGDeviceReport report; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetDeviceReportGet(deviceSetIndex, report, error), error, "Get device report"); + QJsonObject json = toJson(report); + + for (const QString& key : json.keys()) + { + for (const QJsonValue& g : json[key].toObject()["gains"].toArray()) { + knob.values.append(g.toObject()["gainCB"].toDouble()); + } + } + + if (knob.values.isEmpty()) { + throw MCPToolError("The RTL-SDR reported no supported gain values; is the device open?"); + } + } + else if (hwType == "HackRF") { + knob = {"lnaGain", "", 0, {0, 8, 16, 24, 32, 40}, "dB", "Only the LNA is stepped; vgaGain is left as it is"}; + } + else if (hwType == "Airspy") { + knob = {"lnaGain", "lnaAGC", 0, {0, 2, 4, 6, 8, 10, 12, 14}, "steps", "Only the LNA is stepped; mixerGain and vgaGain are left as they are, with the LNA AGC off"}; + } + else if (hwType == "LimeSDR") { + knob = {"gain", "gainMode", 1, {0, 10, 20, 30, 40, 50, 60, 70}, "dB", "gainMode set to manual"}; + } + else if (hwType == "PlutoSDR") { + knob = {"gain", "gainMode", 0, {0, 10, 20, 30, 40, 50, 60, 70}, "dB", "gainMode set to manual"}; + } + else if (hwType == "USRP") { + knob = {"gain", "gainMode", 1, {0, 10, 20, 30, 40, 50, 60, 70}, "dB", "gainMode set to manual"}; + } + else + { + throw MCPToolError(QString("tune_gain does not know the gain settings of a %1. Read them with describe_settings and " + "give gainKey, values and, if it has one, agcKey.").arg(hwType)); + } + + std::sort(knob.values.begin(), knob.values.end()); + knob.values.erase(std::unique(knob.values.begin(), knob.values.end()), knob.values.end()); + + // Spread the steps over the range rather than trying every value a tuner offers + const int steps = qBound(3, argInt(args, "steps", false, 8), 16); + QList candidates; + + if (knob.values.size() <= steps) { + candidates = knob.values; + } + else + { + for (int i = 0; i < steps; i++) { + candidates.append(knob.values[(int) std::round(i * (knob.values.size() - 1) / (double) (steps - 1))]); + } + } + + const bool apply = argBool(args, "apply", true); + + // A key the device does not have would be patched away as unknown at every step, and the + // sweep would then measure the same gain six times and report a choice it never made + if (!settings.contains(knob.key)) { + throw MCPToolError(QString("%1 has no %2 setting; describe_settings shows its keys").arg(hwType).arg(knob.key)); + } + + if (!knob.agcKey.isEmpty() && !settings.contains(knob.agcKey)) { + throw MCPToolError(QString("%1 has no %2 setting; describe_settings shows its keys").arg(hwType).arg(knob.agcKey)); + } + + const double previous = settings[knob.key].toDouble(); + const double previousAgc = knob.agcKey.isEmpty() ? 0 : settings[knob.agcKey].toDouble(); + const qint64 frequency = (qint64) argDouble(args, "frequency", false, 0); + const qint64 bandwidth = (qint64) argDouble(args, "bandwidth", false, 200000); + + // One reading: the floor is the median over the baseband, the signal the strongest bin, + // in the window asked for or anywhere. Max reduction keeps a narrow carrier + auto measure = [&](double& floorDb, double& peakDb) + { + SWGSDRangel::SWGGLSpectrumData response; + SWGSDRangel::SWGErrorResponse error; + response.init(); + error.init(); + check(m_adapter->devicesetSpectrumDataGet(deviceSetIndex, 256, 0, 0, "max", response, error), error, "Get spectrum data"); + // Read from the object: the generated JSON serialiser drops a list of plain floats + const bool linear = response.getLinear() != 0; + QList powers; + + if (response.getPower()) + { + for (float v : *response.getPower()) { + powers.append(linear ? 10.0 * std::log10(std::max((double) v, 1e-20)) : (double) v); + } + } + + if (powers.isEmpty()) { + throw MCPToolError("The spectrum returned no data"); + } + + QList sorted = powers; + std::sort(sorted.begin(), sorted.end()); + floorDb = sorted[sorted.size() / 2]; + + if (frequency > 0) + { + // The data call clamps to the baseband, which would silently measure noise at + // its edge for a frequency outside it + const qint64 low = response.getCenterFrequency() - response.getBandwidth() / 2; + const qint64 high = response.getCenterFrequency() + response.getBandwidth() / 2; + + if ((frequency < low) || (frequency > high)) + { + throw MCPToolError(QString("%1 MHz is outside the baseband, which covers %2 to %3 MHz; tune the device so that it is inside, or leave frequency out") + .arg(frequency / 1e6, 0, 'f', 3).arg(low / 1e6, 0, 'f', 3).arg(high / 1e6, 0, 'f', 3)); + } + + SWGSDRangel::SWGGLSpectrumData window; + SWGSDRangel::SWGErrorResponse windowError; + window.init(); + windowError.init(); + check(m_adapter->devicesetSpectrumDataGet(deviceSetIndex, 32, frequency - bandwidth / 2, frequency + bandwidth / 2, "max", window, windowError), + windowError, "Get spectrum data"); + peakDb = -1e9; + + if (window.getPower()) + { + for (float v : *window.getPower()) { + peakDb = std::max(peakDb, linear ? 10.0 * std::log10(std::max((double) v, 1e-20)) : (double) v); + } + } + + if (peakDb < -1e8) { + throw MCPToolError("The spectrum has no bins at that frequency; it must be inside the baseband"); + } + } + else + { + peakDb = sorted.last(); + } + }; + + struct Row { double gain; double floorDb; double peakDb; double snrDb; }; + QList rows; + + auto setGain = [&](double gain, bool agcOff) + { + QJsonObject partial; + partial[knob.key] = gain; + + if (!knob.agcKey.isEmpty()) { + partial[knob.agcKey] = agcOff ? knob.agcOff : previousAgc; + } + + patchDeviceSettings(deviceSetIndex, partial); + }; + + try + { + for (double gain : candidates) + { + setGain(gain, true); + pause(700); // the tuner, the spectrum averaging and a stale FFT + double floorSum = 0.0; + double peakSum = 0.0; + const int samples = 3; + + for (int i = 0; i < samples; i++) + { + if (i > 0) { + pause(250); + } + + double floorDb, peakDb; + measure(floorDb, peakDb); + floorSum += floorDb; + peakSum += peakDb; + } + + rows.append({gain, floorSum / samples, peakSum / samples, (peakSum - floorSum) / samples}); + } + } + catch (const MCPToolError&) + { + setGain(previous, false); // as it was, AGC included + throw; + } + + auto toDb = [&](double gain) { return (knob.unit == "tenths of a dB") ? gain / 10.0 : gain; }; + + // Overload shows as the floor climbing faster than the gain did. The first step + // where it does bounds the usable range from above + QStringList notes; + int compressed = 0; + int overloadFrom = rows.size(); // index of the first row that is overloaded + + for (int i = 1; i < rows.size(); i++) + { + const double gainStep = toDb(rows[i].gain) - toDb(rows[i - 1].gain); + + if ((gainStep > 0) && (rows[i].floorDb - rows[i - 1].floorDb > gainStep + 3.0)) + { + compressed++; + overloadFrom = std::min(overloadFrom, i); + } + } + + if (compressed > 0) { + notes.append(QString("The noise floor rose faster than the gain over %1 step%2, which is the front end overloading; the higher gains are not usable here.") + .arg(compressed).arg(compressed == 1 ? "" : "s")); + } + + // Best SNR, then the lowest gain within a decibel of it + double best = -1e9; + for (const Row& r : rows) { best = std::max(best, r.snrDb); } + const Row *chosen = nullptr; + QString judgedBy = frequency > 0 ? QString("the signal at %1 MHz").arg(frequency / 1e6, 0, 'f', 3) : QString("the strongest signal in the baseband"); + + if (best >= 6.0) + { + for (const Row& r : rows) { if ((r.snrDb >= best - 1.0) && !chosen) { chosen = &r; } } + } + else + { + // Nothing stood clear of the floor, so the floor itself has to decide: at low gain + // it is the converter's own noise and does not move; as gain rises the antenna's + // noise comes through and lifts it, which is when weak signals become receivable; + // and past overload it lifts faster than the gain. Take the lowest gain that puts + // the floor 8 dB above the converter's, which is the antenna's noise dominating + // by the usual 10 dB rule with a little allowance for the steps being coarse, or + // the last gain before overload if none does + double adcFloor = 1e9; + for (const Row& r : rows) { adcFloor = std::min(adcFloor, r.floorDb); } + const int lastUsable = std::max(0, overloadFrom - 1); + static const double antennaDominates = 8.0; + + for (int i = 0; (i <= lastUsable) && !chosen; i++) + { + if (rows[i].floorDb >= adcFloor + antennaDominates) { + chosen = &rows[i]; + } + } + + if (!chosen) { + chosen = &rows[lastUsable]; + } + + judgedBy = "the noise floor alone, as no signal stood clear of it"; + notes.append(QString("No signal stood more than 6 dB above the floor, so the gain is set from the floor instead: %1.") + .arg((rows[lastUsable].floorDb < adcFloor + antennaDominates) + ? "the floor never rose 8 dB above the converter's own noise before overload, so the last gain before overload is taken; check the antenna if that seems low" + : "the lowest gain at which the antenna's noise, not the converter's, sets the floor")); + } + + if (chosen == &rows.last()) { + notes.append("The best was the highest gain tried: the signal is weak or the site quiet, and more gain would not overload yet."); + } else if (chosen == &rows.first()) { + notes.append("The best was the lowest gain tried: a strong-signal site. Consider an attenuator if the floor still rises with the lowest gain."); + } + + bool autoscaled = false; + + if (apply) + { + setGain(chosen->gain, true); + + // The spectrum was scaled for the gain it had, and a change of tens of decibels + // leaves the trace off the top or along the bottom of the display. Once the new gain + // has reached the trace, the range is set from it, as the GUI's autoscale button does + if (argBool(args, "autoscale", true)) + { + try + { + pause(700); + autoscaleSpectrum(deviceSetIndex); + autoscaled = true; + } + catch (const MCPToolError& e) + { + notes.append(QString("The spectrum could not be autoscaled: %1").arg(e.message)); + } + } + } + else + { + setGain(previous, false); + notes.append("Not applied: the gain is back as it was."); + } + + if (!knob.note.isEmpty()) { + notes.append(knob.note + "."); + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["hwType"] = hwType; + result["autoscaled"] = autoscaled; + result["gainKey"] = knob.key; + result["unit"] = knob.unit; + result["previous"] = previous; + result["chosen"] = chosen->gain; + result["applied"] = apply; + result["bestSnrDb"] = chosen->snrDb; + result["judgedBy"] = judgedBy; + QJsonArray table; + + for (const Row& r : rows) + { + QJsonObject o; + o["gain"] = r.gain; + o["floorDb"] = std::round(r.floorDb * 10) / 10; + o["signalDb"] = std::round(r.peakDb * 10) / 10; + o["snrDb"] = std::round(r.snrDb * 10) / 10; + table.append(o); + } + + result["table"] = table; + + if (!notes.isEmpty()) { + result["note"] = notes.join(" "); + } + + return result; +} + +// A mode whose output is only useful through a feature, such as AIS to the AIS feature's ship +// list and the map, gets that feature added with the demodulator. One that is there already is +// left alone, whatever it is set to +int MCPTools::ensureFeature(const QString& featureType, int& featureIndex) +{ + for (const QJsonValue& v : getInstanceSummary()["featureset"].toObject()["features"].toArray()) + { + QJsonObject f = v.toObject(); + + if (f["id"].toString() == featureType) + { + featureIndex = f["index"].toInt(); + return 0; + } + } + + featureIndex = addFeatureAndWait(featureType); + trackIntentFeature(featureUidAt(featureIndex)); + return 1; +} + +void MCPTools::trackIntentFeature(uint64_t featureUid) +{ + if (featureUid == 0) { + return; + } + + QMutexLocker locker(&m_intentMutex); + m_intentFeatures.insert(featureUid); +} + +// A feature listen added goes with the demodulators that fed it: once the last of those is +// reclaimed, on whichever device set, it would only show stale data. One the next mode +// needs, or that a demodulator anywhere still feeds, stays: the user may have added their own +// decoder since and be reading the feature through it +QStringList MCPTools::reclaimIntentFeatures(const QString& keepType) +{ + QSet tracked; + { + QMutexLocker locker(&m_intentMutex); + tracked = m_intentFeatures; + } + + if (tracked.isEmpty()) { + return QStringList(); + } + + // The feature types the remaining channels feed, whoever added them + QSet needed; + + if (!keepType.isEmpty()) { + needed.insert(keepType); + } + + for (int deviceSetIndex = 0; deviceSetIndex < deviceSetCount(); deviceSetIndex++) + { + for (const ChannelNote& note : channelNotes(deviceSetIndex)) + { + const char *feature = featureForChannelType(note.m_id); + + if (feature) { + needed.insert(QString(feature)); + } + } + } + + QStringList removed; + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (featureSets.empty()) { + return removed; + } + + // Collected first: deleting renumbers the rest, and by UID, as each deletion waits + QList> doomed; + + for (int i = 0; i < featureSets[0]->getNumberOfFeatures(); i++) + { + const Feature *feature = featureSets[0]->getFeatureAt(i); + + if (feature && tracked.contains(feature->getUID()) && !needed.contains(feature->getIdentifier())) { + doomed.append(qMakePair(feature->getUID(), feature->getIdentifier())); + } + } + + for (const auto& feature : doomed) + { + try + { + deleteFeatureObjectAndWait(feature.first); + removed.append(feature.second); + } + catch (const MCPToolError&) {} + } + + // Tracked no longer: those removed, and any the user had already deleted + QMutexLocker locker(&m_intentMutex); + + for (uint64_t uid : tracked) + { + bool present = false; + + for (int i = 0; i < featureSets[0]->getNumberOfFeatures(); i++) + { + const Feature *feature = featureSets[0]->getFeatureAt(i); + + if (feature && (feature->getUID() == uid)) + { + present = true; + break; + } + } + + if (!present) { + m_intentFeatures.remove(uid); + } + } + + return removed; +} + +void MCPTools::deleteFeatureObjectAndWait(uint64_t featureUid) +{ + QMutexLocker deletionLock(&m_deletionMutex); + int featureIndex = -1; + const std::vector& featureSets = MainCore::instance()->getFeatureeSets(); + + if (!featureSets.empty() && (featureUid != 0)) + { + for (int i = 0; i < featureSets[0]->getNumberOfFeatures(); i++) + { + const Feature *feature = featureSets[0]->getFeatureAt(i); + + if (feature && (feature->getUID() == featureUid)) + { + featureIndex = i; + break; + } + } + } + + if (featureIndex < 0) { + return; // Already gone + } + + requireNotSelf(featureIndex, "deleted"); + SWGSDRangel::SWGSuccessResponse response; + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->featuresetFeatureDelete(0, featureIndex, response, error), error, "Delete feature"); + + if (!waitFor([&]() { return !featureUids().contains(featureUid); })) { + throw MCPToolError(QString("Timed out waiting for feature %1 to be removed").arg(featureIndex)); + } +} + +void MCPTools::autoscaleSpectrum(int deviceSetIndex) +{ + QJsonObject actions; + actions["autoscale"] = 1; + QStringList keys; + extractKeys(actions, keys); + SWGSDRangel::SWGSpectrumActions query; + query.init(); + query.fromJsonObject(actions); + SWGSDRangel::SWGErrorResponse error; + error.init(); + check(m_adapter->devicesetSpectrumActionsPost(deviceSetIndex, keys, query, error), error, "Autoscale spectrum"); +} + +// The history the spectrum tools read is the display's scroll buffer, which fills only while +// scrolling is on. Switched on here with a length that covers what was asked for at a +// typical refresh rate, and at least a couple of minutes; a longer length the user has set +// is left alone +QString MCPTools::ensureSpectrumHistory(int deviceSetIndex, double seconds) +{ + QJsonObject settings = getSpectrumSettings(deviceSetIndex); + const bool scrolling = settings["scrollBar"].toInt() != 0; + const int length = settings["scrollLength"].toInt(); + const int wanted = qBound(1200, (int) (seconds * 20.0), 4000); + + if (scrolling && (length >= wanted)) { + return QString(); + } + + QJsonObject partial; + partial["scrollBar"] = 1; + partial["scrollLength"] = qMax(length, wanted); + patchSpectrumSettings(deviceSetIndex, partial); + return scrolling + ? QString("The spectrum history was lengthened to %1 rows to cover %2 seconds.").arg(qMax(length, wanted)).arg(seconds) + : QString("Spectrum scrolling was switched on, as the history the spectrum keeps for it is what this reads; it starts now."); +} + +// The gain suits a band and an antenna, not a mode: a device set that was just created has +// whatever gain it came with, and one moved to another band has the gain of the last one. A +// move within a band, or a change of mode on the same frequency, needs no new measurement +bool MCPTools::gainWorthTuning(bool reused, double previousCentre, double centre) +{ + if (!reused) { + return true; + } + + return std::abs(centre - previousCentre) > 0.1 * std::max(centre, previousCentre); +} + +void MCPTools::registerIntentTools() +{ + static const QString deviceHint = "Optional: which device, by serial, displayed name or type (e.g. RTLSDR) as shown by " + "list_available_devices. Default: the first radio attached to this machine"; + + add("listen", + "Receive a frequency in one call: picks a device, creates or reuses its device set, sets the sample rate, adds the " + "demodulator with sensible settings, starts the device and reports the signal level. Audio plays on the default output. " + "Use the individual tools afterwards to adjust, e.g. set_channel_settings for squelch or volume. Modes whose output " + "goes to a feature add it too: ais adds the AIS feature, sonde the Radiosonde feature and aprs the APRS feature, whose " + "reports and map items carry what was decoded; a later listen or scan removes the feature again once nothing it added " + "feeds it. ais is received on two channels, so give 162000000 and it puts a demodulator on each of 161.975 and " + "162.025 MHz.", + schema({ + {"frequency", numProp("Frequency to receive in Hz, e.g. 97300000 for 97.3 MHz")}, + {"mode", strProp("bfm (broadcast FM with stereo and RDS), wfm, nfm, am or airband, ssb/usb, lsb, dab, adsb, ais, dsc, dsd/dmr, " + "dmr, dpmr, dstar, ysf, nxdn or nxdn24 (digital voice through the DSD demodulator with the deviation and baud rate of that standard), " + "pager (POCSAG), sonde (RS41 radiosondes), packet (AX.25), aprs (APRS with its feature), or any channel type id from list_channel_types. Default nfm")}, + {"device", strProp(deviceHint)}, + {"replace", prop("boolean", "Retune the demodulator a previous listen added to this device set when it is of the same type, and remove every other channel earlier listen and scan calls added there, so that exploring a band does not leave a trail of demodulators all playing audio and mis-tuned for the current centre frequency. Channels added any other way are kept on their frequency where the baseband still holds them; audio demodulators it cannot hold are removed, anything else is left and named. Default true")}, + {"tuneGain", prop("boolean", "Measure and set the receiver gain, as tune_gain does, when the device set is new or the retune is to another band (more than a tenth of the frequency away). Adds several seconds in those cases and none otherwise. false leaves the gain as it is. Default true")} + }, {"frequency"}), + [this](const QJsonObject& args) + { + qint64 frequency = (qint64) argDouble(args, "frequency"); + QString modeName = argString(args, "mode", false, "nfm").trimmed(); + const ListenMode *mode = findListenMode(modeName); + QString channelType; + int rfBandwidth = 0; + int minBaseband = 256000; + QJsonObject initial; + QString companionFeature; + int pairOffset = 0; + + if (mode) + { + channelType = mode->m_channelType; + rfBandwidth = mode->m_rfBandwidth; + minBaseband = mode->m_minBaseband; + initial = QJsonDocument::fromJson(mode->m_settings).object(); + companionFeature = mode->m_feature ? QString(mode->m_feature) : QString(); + pairOffset = mode->m_pairOffset; + } + else + { + for (const QString& id : channelTypeIds(0)) + { + if (id.compare(modeName, Qt::CaseInsensitive) == 0) { + channelType = id; + } + } + + if (channelType.isEmpty()) { + throw MCPToolError(QString("Unknown mode %1. Use one of %2, or a channel type from list_channel_types").arg(modeName).arg(listenModeList)); + } + } + + const bool replace = argBool(args, "replace", true); + const bool wantTuneGain = argBool(args, "tuneGain", true); + QJsonObject receiver = pickReceiver(args, minBaseband, replace ? intentChannels() : QSet(), !wantTuneGain); + int deviceSetIndex = receiver["deviceSetIndex"].toInt(); + + // A device set this call created and cannot finish is taken away again, or a retry + // would build another beside it + NewDeviceSetGuard newDeviceSet(this, receiver["reused"].toBool() ? -1 : deviceSetIndex); + int baseband = receiver["baseband"].toInt(); + + // Keep the channel off the device's DC spike when the baseband has room for it: far + // enough that the spike falls outside the channel, or not at all. A spike inside a + // wide FM channel is an interferer 25 kHz from the carrier, which is worse than one + // on the carrier itself + int offset = 0; + + if ((pairOffset == 0) && (rfBandwidth != 0) && (baseband > 0)) + { + const int clear = qAbs(rfBandwidth) / 2 + 25000; // spike 25 kHz beyond the channel edge + + if (baseband / 2 >= clear + qAbs(rfBandwidth) / 2) { + offset = -clear; + } + } + + // A paired mode, such as AIS on 161.975 and 162.025 MHz, centres the device on the + // frequency asked for and puts a demodulator either side of it + const qint64 centre = (pairOffset != 0) ? frequency : frequency - offset; + + if (pairOffset != 0) { + offset = -pairOffset; + } + + // A demodulator of the right type that a previous listen added is retuned rather + // than replaced; anything else the intent tools added goes as before + int channelIndex = -1; + uint64_t channel = replace ? reusableIntentChannel(deviceSetIndex, channelType, channelIndex, pairOffset != 0 ? 2 : 1) : 0; + const bool retuned = channel != 0; + + // A paired mode keeps its other demodulator through the reclaim as well + QSet kept; + + if (retuned) + { + kept.insert(channel); + + if (pairOffset != 0) + { + for (const ChannelNote& note : channelNotes(deviceSetIndex, {channel})) + { + if (note.m_intent && (note.m_id == channelType)) + { + kept.insert(note.m_uid); + break; + } + } + } + } + + const QStringList reclaimed = replace ? reclaimIntentChannels(deviceSetIndex, kept) : QStringList(); + const QStringList reclaimedFeatures = replace ? reclaimIntentFeatures(companionFeature) : QStringList(); + + // The device is retuned only once the reclaim is done: a scanner an earlier scan + // left running would otherwise step the device on again between the two, and the + // demodulator would be added against a centre the scanner chose + QJsonObject tune; + tune["centerFrequency"] = (double) centre; + patchDeviceSettings(deviceSetIndex, tune); + const RetuneOutcome outcome = receiver["reused"].toBool() + ? retuneOtherChannels(deviceSetIndex, receiver["previousCentre"].toDouble(), (double) centre, baseband) + : RetuneOutcome(); + + if (retuned) + { + // The reclaim may have renumbered it + relocateChannel(channel, deviceSetIndex, channelIndex, "demodulator"); + } + else + { + channelIndex = addChannelAndWait(deviceSetIndex, channelType); + channel = channelUidAt(deviceSetIndex, channelIndex); + trackIntentChannel(channel); + } + + initial["inputFrequencyOffset"] = offset; + + if (rfBandwidth != 0) { + initial["rfBandwidth"] = rfBandwidth; + } + + QJsonObject patched; + QString state; + + // Do not leave a half configured channel behind if setting it up fails. One that was + // there already stays, as the previous listen left it + try + { + patched = patchChannelSettings(deviceSetIndex, channelIndex, initial); + state = deviceState(deviceSetIndex, 0, 1)["state"].toString(); + } + catch (const MCPToolError&) + { + if (!retuned) + { + try { deleteChannelObjectAndWait(channel); } catch (const MCPToolError&) {} + untrackIntentChannel(channel); + } + + throw; + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + result["device"] = receiver["device"]; + result["frequency"] = (double) frequency; + result["mode"] = modeName; + result["channelType"] = channelType; + result["state"] = state; + QStringList notes; + + if (retuned) + { + result["retuned"] = true; + notes.append(QString("Retuned the %1 a previous listen added to device set %2 rather than adding another; its other settings are as they were.") + .arg(channelType).arg(deviceSetIndex)); + } + + // The second demodulator of a paired mode, on the other channel. A retuned first + // one may already have its partner from the previous listen; a fresh one needs it + uint64_t partner = 0; + + if (pairOffset != 0) + { + int partnerIndex = -1; + + for (const ChannelNote& note : channelNotes(deviceSetIndex, {channel})) + { + if (note.m_intent && (note.m_id == channelType)) + { + partnerIndex = note.m_index; + partner = note.m_uid; + break; + } + } + + if (partner == 0) + { + partnerIndex = addChannelAndWait(deviceSetIndex, channelType); + partner = channelUidAt(deviceSetIndex, partnerIndex); + trackIntentChannel(partner); + } + + QJsonObject partnerSettings = initial; + partnerSettings["inputFrequencyOffset"] = pairOffset; + + try + { + patchChannelSettings(deviceSetIndex, partnerIndex, partnerSettings); + } + catch (const MCPToolError& e) + { + notes.append(QString("The second %1 could not be configured: %2").arg(channelType).arg(e.message)); + } + + relocateChannel(partner, deviceSetIndex, partnerIndex, "second demodulator"); + relocateChannel(channel, deviceSetIndex, channelIndex, "demodulator"); + result["channelIndex"] = channelIndex; + result["secondChannelIndex"] = partnerIndex; + QJsonArray frequencies; + frequencies.append((double) (frequency - pairOffset)); + frequencies.append((double) (frequency + pairOffset)); + result["frequencies"] = frequencies; + notes.append(QString("%1 is received on two channels, so there are two %2: channel %3 on %4 MHz and channel %5 on %6 MHz, with the device centred between them.") + .arg(modeName.toUpper()).arg(channelType).arg(channelIndex).arg((frequency - pairOffset) / 1e6, 0, 'f', 3) + .arg(partnerIndex).arg((frequency + pairOffset) / 1e6, 0, 'f', 3)); + } + + // The feature the mode's output goes to, so that the decoded data has somewhere to be + // read from and shown + if (!companionFeature.isEmpty()) + { + try + { + int featureIndex = -1; + const int added = ensureFeature(companionFeature, featureIndex); + result["featureIndex"] = featureIndex; + result["featureType"] = companionFeature; + notes.append(added + ? QString("Added the %1 feature (F%2), which collects what the demodulator decodes; get_feature_report reads it, and it feeds the map.").arg(companionFeature).arg(featureIndex) + : QString("The %1 feature (F%2) is already there and collects what the demodulator decodes.").arg(companionFeature).arg(featureIndex)); + } + catch (const MCPToolError& e) + { + notes.append(QString("The %1 feature could not be added: %2").arg(companionFeature).arg(e.message)); + } + } + + if (state == "running") + { + // A new device set, or one moved to another band, has no gain to speak of yet + if (wantTuneGain && gainWorthTuning(receiver["reused"].toBool(), receiver["previousCentre"].toDouble(), (double) centre)) + { + QJsonObject gainArgs; + gainArgs["deviceSetIndex"] = deviceSetIndex; + gainArgs["frequency"] = (double) frequency; + gainArgs["bandwidth"] = (double) (rfBandwidth != 0 ? qAbs(rfBandwidth) : 2000000); + gainArgs["steps"] = 6; + + try + { + QJsonObject tuned = tuneGain(gainArgs); + QJsonObject gain; + gain["key"] = tuned["gainKey"]; + gain["value"] = tuned["chosen"]; + gain["unit"] = tuned["unit"]; + gain["snrDb"] = tuned["bestSnrDb"]; + result["gain"] = gain; + notes.append(QString("Gain measured and set to %1 (%2), judged by %3, as %4%5; tune_gain shows the table, and tuneGain false leaves the gain alone.") + .arg(tuned["chosen"].toDouble()).arg(tuned["unit"].toString()).arg(tuned["judgedBy"].toString()) + .arg(receiver["reused"].toBool() ? "the retune was to another band" : "the device set is new") + .arg(tuned["autoscaled"].toBool() ? ", and the spectrum autoscaled to suit it" : "")); + } + catch (const MCPToolError& e) + { + notes.append(QString("The gain was not measured: %1").arg(e.message)); + } + } + + pause(1500); + // The channel may have been renumbered while we waited + relocateChannel(channel, deviceSetIndex, channelIndex, "demodulator"); + result["deviceSetIndex"] = deviceSetIndex; + result["channelIndex"] = channelIndex; + + // The power measurement sits at the channel's floor until the demodulator has run + // for a moment, and a floor reading looks exactly like an empty band. Wait for a + // real one: reporting the floor has sent callers away from a signal that was + // decoding perfectly well. CalcDb::dbPower returns 10*log10(floor) while there is + // nothing to measure, which is -100 dB or below for every floor in use here + double db = 0.0; + bool measured = false; + bool noReport = false; + QElapsedTimer settling; + settling.start(); + + while (true) + { + QJsonObject report; + + // A demodulator with no report at all (APT, ATV) is not a failure of the + // receiver that was just built + try + { + report = channelReport(deviceSetIndex, channelIndex); + } + catch (const MCPToolError&) + { + noReport = true; + break; + } + + if (signalLevel(report, db)) + { + measured = true; + + if (db > -100.0) { + break; + } + } + + if (settling.elapsed() > 4000) { + break; + } + + pause(250); + } + + if (noReport) + { + notes.append(QString("%1 has no channel report, so there is no signal level to give; %2.") + .arg(channelType) + .arg(companionFeature.isEmpty() ? QString("get_spectrum_data shows whether there is a signal") + : QString("what it decodes appears in the %1 feature's report and in get_packets").arg(companionFeature))); + } + else if (measured) + { + result["signalDb"] = db; + + if (db <= -100.0) { + notes.append("signalDb is still at the measurement floor, which usually means the channel " + "has not settled rather than that the band is empty. Read get_channel_report again in " + "a few seconds before concluding nothing is there."); + } + } + } + else + { + notes.append("The device did not start. If another device set holds the same hardware, stop it first, or pass a different device."); + } + + if (baseband > 0) { + result["basebandSampleRate"] = baseband; + } else { + notes.append(QString("The sample rate of a %1 was left as configured; check it exceeds %2 S/s with get_device_settings.").arg(receiver["hwType"].toString()).arg(minBaseband)); + } + + if (!receiver["rateNote"].toString().isEmpty()) { + notes.append(receiver["rateNote"].toString()); + } + + notes.append(intentNotes(deviceSetIndex, partner ? QSet({channel, partner}) : QSet({channel}), + reclaimed, receiver["reused"].toBool(), + receiver["previousCentre"].toDouble(), (double) centre, outcome)); + notes.append(featureNotes(reclaimedFeatures)); + + if (patched.contains("warning")) { + notes.append(patched["warning"].toString()); + } + + if (!notes.isEmpty()) { + result["note"] = notes.join(" "); + } + + newDeviceSet.keep(); + return result; + }); + + QJsonObject frequencyList = prop("array", "Frequencies to scan in Hz. Alternatively give startFrequency, stopFrequency and stepFrequency"); + QJsonObject items; + items["type"] = "number"; + frequencyList["items"] = items; + + add("scan", + "Scan a set of frequencies for activity and listen to whichever is active, in one call: sets up a receiver, a demodulator " + "and a Frequency Scanner, starts scanning, watches for a while and reports what it found. active lists every frequency " + "above the threshold with its level, strongest first; that is the list to use for stations and other continuous " + "signals. heard lists where the scanner parked and for how long, which only tells intermittent signals apart, since " + "on a continuous carrier it parks on the first and stays. " + "The scanner keeps running afterwards; get_channel_report on the scanner channel shows its state (2 scanning, 3 receiving, " + "4 holding), channel_action {\"run\": 0} stops it. The demodulator and scanner it added stay on the device set until the " + "next listen or scan there replaces them, or cleanup removes them; they are not removed when this call returns. " + "Blocks for the watch period, so it is capped at 30 seconds.", + schema({ + {"frequencies", frequencyList}, + {"startFrequency", numProp("Start of a range in Hz, with stopFrequency and stepFrequency")}, + {"stopFrequency", numProp("End of the range in Hz, inclusive")}, + {"stepFrequency", numProp("Channel spacing in Hz. Optional: without it the spacing usual for the mode is used (bfm 100 kHz, am 25 kHz, " + "nfm/dsd/pager 12.5 kHz, sonde 10 kHz, ssb 3 kHz), which is the right choice unless the band is known to differ, " + "e.g. 8333 for airband 8.33 kHz channels in Europe. Broadcast FM stations sit on a 100 kHz raster everywhere; only " + "the Americas confine them to the odd tenths, so bfm/wfm ranges are scanned at 100 kHz whatever step is given")}, + {"mode", strProp("Demodulator, as for listen: bfm, wfm, nfm, am, ssb/usb/lsb, dsd, pager, sonde. Modes on fixed frequencies (adsb, ais, " + "dab, dsc) cannot be scanned for; listen to those directly. Default am")}, + {"threshold", numProp("Power in dB above which a frequency counts as active. Leave it out unless you have a reason: the scale " + "depends on the device and its gain, so by default the noise floor is measured first and the threshold set " + "12 dB above it. Both are reported, so a second scan can adjust")}, + {"seconds", bounded(numProp("How long to watch before replying, 3 to 30. Default 10"), 3, 30)}, + {"device", strProp(deviceHint)}, + {"replace", prop("boolean", "Remove every channel earlier listen and scan calls added to this device set first, as listen does. Channels added any other way are kept on their frequency where the baseband still holds them; audio demodulators it cannot hold are removed, anything else is left and named. Default true")}, + {"tuneGain", prop("boolean", "Measure and set the receiver gain first, as tune_gain does, when the device set is new or the retune is to another band. Adds several seconds in those cases and none otherwise. false leaves the gain as it is. Default true")} + }), + [this](const QJsonObject& args) + { + QList frequencies; + const bool fromRange = !hasArg(args, "frequencies"); + qint64 rangeStart = 0; + qint64 rangeStop = 0; + qint64 rangeStep = 0; // as given; zero to step by the mode's usual channel spacing + + if (fromRange) + { + rangeStart = (qint64) argDouble(args, "startFrequency"); + rangeStop = (qint64) argDouble(args, "stopFrequency"); + rangeStep = hasArg(args, "stepFrequency") ? (qint64) argDouble(args, "stepFrequency") : 0; + + if ((rangeStep < 0) || (rangeStop < rangeStart)) { + throw MCPToolError("stepFrequency must be positive and stopFrequency at least startFrequency"); + } + } + else + { + for (const QJsonValue& v : args["frequencies"].toArray()) { + frequencies.append((qint64) v.toDouble()); + } + + if (frequencies.isEmpty()) { + throw MCPToolError("Give frequencies, or startFrequency and stopFrequency"); + } + } + + QString modeName = argString(args, "mode", false, "am").trimmed(); + const ListenMode *mode = findListenMode(modeName); + + if (!mode) { + throw MCPToolError(QString("Unknown mode %1. Use one of %2").arg(modeName).arg(listenModeList)); + } + + // A mode on fixed frequencies has nothing to be found by stepping + if (mode->m_scanStep == 0) + { + throw MCPToolError(QString("%1 is received on fixed frequencies, so there is nothing to scan for: listen to them directly. " + "get_receiving_guide lists them (ADS-B 1090 MHz; AIS 161.975 and 162.025 MHz; DSC 2187.5 kHz, 8414.5 kHz, " + "16804.5 kHz and 156.525 MHz; DAB on the Band III blocks, one dab channel per block).").arg(mode->m_channelType)); + } + + // Without a threshold, measure the noise floor first and sit 12 dB above it: the + // level scale depends on the device and its gain, so no fixed number suits all + bool autoThreshold = !hasArg(args, "threshold"); + double threshold = autoThreshold ? -100.0 : argDouble(args, "threshold"); + int seconds = qBound(3, (int) argDouble(args, "seconds", false, 10.0), 30); + int channelBandwidth = qAbs(mode->m_rfBandwidth) > 0 ? qAbs(mode->m_rfBandwidth) : 8000; + + // Broadcast FM stations sit on a 100 kHz raster everywhere but the Americas, where + // they keep to the odd tenths. A 200 kHz step from 87.5 MHz, the usual assumption, + // lands beside every even-tenth station: with a channel this wide the station still + // shows up, 100 kHz off and weaker, and then nothing decodes. So a coarser step on + // a broadcast range is scanned at 100 kHz, which loses nothing where the odd tenths + // are the rule + const bool broadcast = (mode->m_channelType == "BFMDemod") || (mode->m_channelType == "WFMDemod"); + QString rasterNote; + + if (fromRange) + { + qint64 step = (rangeStep > 0) ? rangeStep : mode->m_scanStep; + + if (broadcast && (step > 100000)) + { + step = 100000; + rasterNote = QString("Scanned at 100 kHz rather than the %1 kHz step given: broadcast FM stations are on a 100 kHz raster " + "outside the Americas, and a coarser step lands beside them rather than on them.").arg(rangeStep / 1000.0, 0, 'g', 4); + } + else if (rangeStep > mode->m_scanStep) + { + rasterNote = QString("The %1 kHz step given is coarser than the %2 kHz channel spacing usual for %3, so channels between the steps were not seen.") + .arg(rangeStep / 1000.0, 0, 'g', 4).arg(mode->m_scanStep / 1000.0, 0, 'g', 4).arg(modeName); + } + else if (rangeStep == 0) + { + rasterNote = QString("Stepped by %1 kHz, the channel spacing usual for %2; give stepFrequency for another.") + .arg(step / 1000.0, 0, 'g', 4).arg(modeName); + } + + // Counted before it is built: a step given in kHz by mistake, 12 Hz for 12.5, + // would otherwise fill millions of entries before the limit was looked at + const qint64 count = (rangeStop - rangeStart) / step + 1; + + if (count > 2000) { + throw MCPToolError(QString("%1 frequencies is too many; use a coarser step or a narrower range (2000 at most)").arg(count)); + } + + for (qint64 f = rangeStart; f <= rangeStop; f += step) { + frequencies.append(f); + } + } + + if (frequencies.size() > 2000) { + throw MCPToolError(QString("%1 frequencies is too many; use a coarser step or a narrower range (2000 at most)").arg(frequencies.size())); + } + + std::sort(frequencies.begin(), frequencies.end()); + + // A wide baseband means fewer retunes per sweep + const bool replace = argBool(args, "replace", true); + const bool wantTuneGain = argBool(args, "tuneGain", true); + QJsonObject receiver = pickReceiver(args, 2400000, replace ? intentChannels() : QSet(), !wantTuneGain); + int deviceSetIndex = receiver["deviceSetIndex"].toInt(); + NewDeviceSetGuard newDeviceSet(this, receiver["reused"].toBool() ? -1 : deviceSetIndex); + + // The reclaim comes before the retune: a scanner an earlier scan left running would + // otherwise move the device again between the two + const QStringList reclaimed = replace ? reclaimIntentChannels(deviceSetIndex) : QStringList(); + const QStringList reclaimedFeatures = replace ? reclaimIntentFeatures() : QStringList(); + QJsonObject tune; + tune["centerFrequency"] = (double) ((frequencies.first() + frequencies.last()) / 2); + patchDeviceSettings(deviceSetIndex, tune); + const RetuneOutcome outcome = receiver["reused"].toBool() + ? retuneOtherChannels(deviceSetIndex, receiver["previousCentre"].toDouble(), tune["centerFrequency"].toDouble(), receiver["baseband"].toInt()) + : RetuneOutcome(); + + int demod = addChannelAndWait(deviceSetIndex, mode->m_channelType); + const uint64_t demodChannel = channelUidAt(deviceSetIndex, demod); + trackIntentChannel(demodChannel); + int scanner = -1; + uint64_t scannerChannel = 0; + + // Anything that fails from here on removes both channels rather than leaving a + // half built scanner running on the user's radio + auto discard = [&]() + { + if (scannerChannel != 0) + { + try { deleteChannelObjectAndWait(scannerChannel); } catch (const MCPToolError&) {} + untrackIntentChannel(scannerChannel); + } + + try { deleteChannelObjectAndWait(demodChannel); } catch (const MCPToolError&) {} + untrackIntentChannel(demodChannel); + }; + + try + { + QJsonObject initial = QJsonDocument::fromJson(mode->m_settings).object(); + initial["inputFrequencyOffset"] = 0; + + if (mode->m_rfBandwidth != 0) { + initial["rfBandwidth"] = mode->m_rfBandwidth; + } + + patchChannelSettings(deviceSetIndex, demod, initial); + scanner = addChannelAndWait(deviceSetIndex, "FreqScanner"); + scannerChannel = channelUidAt(deviceSetIndex, scanner); + trackIntentChannel(scannerChannel); + } + catch (const MCPToolError&) + { + discard(); + throw; + } + + // Everything up to the scanner running with its threshold is set up, and a failure + // anywhere in it, the device not starting, the scanner refusing its settings or + // its run action, or measuring nothing, removes both channels the same way + QString gainNote; + double measuredFloor = 0.0; + bool haveFloor = false; + + try + { + QString state = deviceState(deviceSetIndex, 0, 1)["state"].toString(); + + if (state != "running") { + throw MCPToolError(QString("The device did not start (state %1), so the demodulator and scanner were removed again.").arg(state)); + } + + // Before the scanner measures anything: the gain sets the floor it measures against + if (wantTuneGain && gainWorthTuning(receiver["reused"].toBool(), receiver["previousCentre"].toDouble(), tune["centerFrequency"].toDouble())) + { + QJsonObject gainArgs; + gainArgs["deviceSetIndex"] = deviceSetIndex; + gainArgs["steps"] = 6; + + try + { + QJsonObject tuned = tuneGain(gainArgs); + gainNote = QString("Gain measured and set to %1 (%2) first, as %3%4; tuneGain false leaves it alone.") + .arg(tuned["chosen"].toDouble()).arg(tuned["unit"].toString()) + .arg(receiver["reused"].toBool() ? "the retune was to another band" : "the device set is new") + .arg(tuned["autoscaled"].toBool() ? ", and the spectrum autoscaled to suit it" : ""); + } + catch (const MCPToolError& e) + { + gainNote = QString("The gain was not measured: %1").arg(e.message); + } + } + + // The scanner's baseband only takes settings while it is running, so configure it + // after the device has started + pause(1500); + relocateChannel(demodChannel, deviceSetIndex, demod, "demodulator"); + relocateChannel(scannerChannel, deviceSetIndex, scanner, "scanner"); + QJsonArray list; + + for (qint64 f : frequencies) + { + QJsonObject entry; + entry["frequency"] = (double) f; + entry["enabled"] = 1; + list.append(entry); + } + + QJsonObject scannerSettings; + scannerSettings["channel"] = QString("R%1:%2").arg(deviceSetIndex).arg(demod); + scannerSettings["channelBandwidth"] = channelBandwidth; + scannerSettings["channelFrequencyOffset"] = 25000; + scannerSettings["threshold"] = threshold; + scannerSettings["scanTime"] = 0.1; + scannerSettings["tuneTime"] = 250; + scannerSettings["retransmitTime"] = 2.5; + scannerSettings["priority"] = 0; + scannerSettings["measurement"] = 0; + scannerSettings["mode"] = autoThreshold ? 2 : 1; // scan only while measuring, else continuous + scannerSettings["frequencies"] = list; + patchChannelSettings(deviceSetIndex, scanner, scannerSettings); + QJsonObject run; + run["run"] = 1; + postChannelAction(deviceSetIndex, scanner, run); + + if (autoThreshold) + { + // The power scale depends on the device and its gain, so the only threshold that + // is right everywhere is one measured here: the median over the frequencies is + // the floor, as most of any band is empty. Wait for the first sweep to have + // measured every frequency rather than guess after a fixed time; a long list + // at a low sample rate takes a while + QList powers; + + for (int attempt = 0; (attempt < 30) && (powers.size() < frequencies.size()); attempt++) + { + pause(500); + relocateChannel(scannerChannel, deviceSetIndex, scanner, "scanner"); + powers.clear(); + + for (const QJsonValue& v : channelReport(deviceSetIndex, scanner)["FreqScannerReport"].toObject()["channelState"].toArray()) + { + QJsonObject s = v.toObject(); + + if (s.contains("power")) { + powers.append(s["power"].toDouble()); + } + } + } + + if (powers.isEmpty()) { + throw MCPToolError("The scanner measured nothing in 15 seconds, so no threshold could be set. " + "Check the device is running and producing samples, or give threshold explicitly."); + } + + std::sort(powers.begin(), powers.end()); + measuredFloor = powers[powers.size() / 2]; + haveFloor = true; + threshold = measuredFloor + 12.0; + + // Changing the mode restarts the scan with the new threshold + QJsonObject arm; + arm["threshold"] = threshold; + arm["mode"] = 1; + patchChannelSettings(deviceSetIndex, scanner, arm); + } + } + catch (const MCPToolError&) + { + discard(); + throw; + } + + // Watch: where it parks, and how strong each channel got + QMap heard; + QMap strongest; + + for (int i = 0; i < seconds; i++) + { + pause(1000); + relocateChannel(scannerChannel, deviceSetIndex, scanner, "scanner"); + relocateChannel(demodChannel, deviceSetIndex, demod, "demodulator"); + QJsonObject report = channelReport(deviceSetIndex, scanner)["FreqScannerReport"].toObject(); + int scanState = report["scanState"].toInt(); + + for (const QJsonValue& v : report["channelState"].toArray()) + { + QJsonObject s = v.toObject(); + qint64 f = (qint64) s["frequency"].toDouble(); + strongest[f] = qMax(strongest.value(f, -999.0), s["power"].toDouble()); + } + + if ((scanState == 3) || (scanState == 4)) + { + // One snapshot for both halves of the sum: read separately, a retune + // between them would pair a new centre with an old offset + QJsonObject set = getDeviceSet(deviceSetIndex); + qint64 centre = (qint64) set["samplingDevice"].toObject()["centerFrequency"].toDouble(); + + for (const QJsonValue& v : set["channels"].toArray()) + { + QJsonObject ch = v.toObject(); + + if (ch["index"].toInt() == demod) { + heard[centre + (qint64) ch["deltaFrequency"].toDouble()] += 1; + } + } + } + } + + QJsonObject result; + result["deviceSetIndex"] = deviceSetIndex; + result["demodChannelIndex"] = demod; + result["scannerChannelIndex"] = scanner; + result["device"] = receiver["device"]; + result["frequencies"] = frequencies.size(); + result["threshold"] = threshold; + result["secondsWatched"] = seconds; + + // A channel this wide takes in a station on the neighbouring raster steps as well, + // weaker and off frequency, so of the neighbours within a channel of each other + // only the strongest is a station; the rest are its skirts + auto isLocalPeak = [&](qint64 f) + { + const double power = strongest.value(f, -999.0); + + for (auto it = strongest.lowerBound(f - channelBandwidth); (it != strongest.end()) && (it.key() <= f + channelBandwidth); ++it) + { + if ((it.key() != f) && ((it.value() > power) || ((it.value() == power) && (it.key() < f)))) { + return false; + } + } + + return true; + }; + + QList> byTime; + for (auto it = heard.begin(); it != heard.end(); ++it) { if (isLocalPeak(it.key())) { byTime.append(qMakePair(it.value(), it.key())); } } + std::sort(byTime.begin(), byTime.end(), [](const QPair& a, const QPair& b) { return a.first > b.first; }); + QJsonArray heardArray; + + for (const auto& p : byTime) + { + QJsonObject h; + h["frequency"] = (double) p.second; + h["seconds"] = p.first; + heardArray.append(h); + } + + result["heard"] = heardArray; + + QList> byPower; + QList allPowers; // every frequency, for the floor estimate + for (auto it = strongest.begin(); it != strongest.end(); ++it) { allPowers.append(it.value()); if (isLocalPeak(it.key())) { byPower.append(qMakePair(it.value(), it.key())); } } + std::sort(byPower.begin(), byPower.end(), [](const QPair& a, const QPair& b) { return a.first > b.first; }); + std::sort(allPowers.begin(), allPowers.end()); + // Everything above the threshold, strongest first: for a band of continuous carriers + // this is the answer, as the scanner parks on the first one it finds and never gets + // to the rest. Capped well above any real band's station count, so that a threshold + // set too low on a long list cannot flood the reply + QJsonArray activeArray; + QJsonArray strongestArray; + static const int activeCap = 100; + + for (int i = 0; i < byPower.size(); i++) + { + QJsonObject s; + s["frequency"] = (double) byPower[i].second; + s["dB"] = byPower[i].first; + + if (i < 5) { + strongestArray.append(s); + } + + if ((byPower[i].first >= threshold) && (activeArray.size() < activeCap)) { + activeArray.append(s); + } + } + + result["active"] = activeArray; + result["activeCount"] = activeArray.size(); + result["strongest"] = strongestArray; + + if (haveFloor) { + result["noiseFloorDb"] = measuredFloor; + } else if (!allPowers.isEmpty()) { + result["noiseFloorDb"] = allPowers[allPowers.size() / 2]; + } + + if (autoThreshold) { + result["thresholdAuto"] = true; + } + + QStringList notes; + + if (!rasterNote.isEmpty()) { + notes.append(rasterNote); + } + + if (!gainNote.isEmpty()) { + notes.append(gainNote); + } + + if (!receiver["rateNote"].toString().isEmpty()) { + notes.append(receiver["rateNote"].toString()); + } + + if (activeArray.isEmpty()) { + notes.append("Nothing exceeded the threshold. Compare threshold with noiseFloorDb and the strongest channels; a second scan with threshold given lowers it."); + } else if (heardArray.isEmpty()) { + notes.append("The scanner did not park on any of the active frequencies while watching; active is still the list of what was found."); + } + + notes.append(intentNotes(deviceSetIndex, {demodChannel, scannerChannel}, reclaimed, receiver["reused"].toBool(), + receiver["previousCentre"].toDouble(), tune["centerFrequency"].toDouble(), outcome)); + notes.append(featureNotes(reclaimedFeatures)); + + if (!notes.isEmpty()) { + result["note"] = notes.join(" "); + } + + newDeviceSet.keep(); + return result; + }); + + add("cleanup", + "Remove the channels that listen and scan added, on one device set or all of them, and the features listen added " + "for them (AIS, Radiosonde, APRS) once nothing feeds them. Each is otherwise left running, every demodulator playing " + "audio, until the next listen or scan on the same device set replaces it. Channels and features added any other way " + "are left alone; delete_channel and delete_feature remove those.", + schema({ + {"deviceSetIndex", intProp("Only this device set. Default: every device set")} + }), + [this](const QJsonObject& args) + { + QList deviceSetIndices; + + if (hasArg(args, "deviceSetIndex")) + { + deviceSetIndices.append(argInt(args, "deviceSetIndex")); + } + else + { + for (const QJsonValue& v : getInstanceSummary()["devicesetlist"].toObject()["deviceSets"].toArray()) { + deviceSetIndices.append(v.toObject()["samplingDevice"].toObject()["index"].toInt()); + } + } + + QJsonArray removed; + int count = 0; + + for (int deviceSetIndex : deviceSetIndices) + { + for (const QString& id : reclaimIntentChannels(deviceSetIndex)) + { + removed.append(QString("R%1:%2").arg(deviceSetIndex).arg(id)); + count++; + } + } + + QJsonArray features; + + for (const QString& id : reclaimIntentFeatures()) + { + features.append(id); + count++; + } + + QJsonObject result; + result["removed"] = count; + result["channels"] = removed; + result["features"] = features; + + if (count == 0) { + result["note"] = "Nothing to remove: no channel or feature added by listen or scan is still there."; + } + + return result; + }); + + add("tune_gain", + "Find the receiver gain that gives the best signal to noise ratio and apply it: steps the device through its gain range " + "and at each step measures the noise floor and the strongest signal on the main spectrum. Too little gain leaves weak " + "signals under the converter's own noise; too much overloads the front end, which raises the floor faster than the " + "signal and adds spurious products, so the best gain is where the difference between them peaks, and of gains within a " + "decibel of that the lowest is taken, for headroom. On a quiet band, where no signal stands clear of the floor, the " + "floor alone decides: the lowest gain at which the antenna's noise rather than the converter's sets it, short of " + "overload. Turns the device's AGC off, as it has to for a manual gain to mean " + "anything. The device must be running. Blocks for a few seconds per step; the reply carries the whole table so the " + "choice can be judged. Give frequency to judge by a particular signal rather than the strongest one. Once the gain " + "is applied the main spectrum is autoscaled to suit it, unless autoscale is false.", + schema({ + {"deviceSetIndex", deviceSetIndexProp}, + {"frequency", numProp("Judge by the signal at this frequency in Hz rather than the strongest in the baseband. It must be inside the baseband")}, + {"bandwidth", numProp("Width in Hz around frequency to look for the signal in. Default 200000")}, + {"steps", bounded(intProp("How many gain values to try, spread over the range. Default 8"), 3, 16)}, + {"apply", prop("boolean", "Apply the chosen gain. false measures and reports but puts the gain back as it was. Default true")}, + {"autoscale", prop("boolean", "Once the chosen gain is applied, set the main spectrum's reference level and range from what it then shows, as spectrum_action autoscale does, so the display suits the new gain. Default true")}, + {"gainKey", strProp("For a device type this does not know: the settings key of its gain, from describe_settings. Then give values too")}, + {"values", prop("array", "For a device type this does not know: the gain values to try, in the key's own units, lowest first")}, + {"agcKey", strProp("For a device type this does not know: the settings key that turns its AGC off when set to 0")} + }, {"deviceSetIndex"}), + [this](const QJsonObject& args) { return tuneGain(args); }); + + add("get_status", + "One line per device set and feature: device, frequency, run state and channels. The cheapest way to see what is going on.", + schema(QJsonObject()), + [this](const QJsonObject&) + { + QJsonObject summary = getInstanceSummary(); + QStringList lines; + + for (const QJsonValue& v : summary["devicesetlist"].toObject()["deviceSets"].toArray()) + { + QJsonObject ds = v.toObject(); + QJsonObject sd = ds["samplingDevice"].toObject(); + QStringList channels; + + for (const QJsonValue& c : ds["channels"].toArray()) + { + QJsonObject ch = c.toObject(); + channels.append(QString("%1 %2%3k").arg(ch["id"].toString()) + .arg(ch["deltaFrequency"].toDouble() >= 0 ? "+" : "").arg(ch["deltaFrequency"].toDouble() / 1000.0, 0, 'f', 1)); + } + + static const char *const prefixes[] = {"R", "T", "M"}; + lines.append(QString("%1%2 %3 %4 %5 MHz %6%7") + .arg(prefixes[qBound(0, sd["direction"].toInt(), 2)]).arg(sd["index"].toInt()) + .arg(sd["hwType"].toString()).arg(sd["serial"].toString()) + .arg(sd["centerFrequency"].toDouble() / 1e6, 0, 'f', 3).arg(sd["state"].toString()) + .arg(channels.isEmpty() ? QString() : ": " + channels.join(", "))); + } + + for (const QJsonValue& v : summary["featureset"].toObject()["features"].toArray()) + { + QJsonObject f = v.toObject(); + int index = f["index"].toInt(); + lines.append(QString("F%1 %2 %3").arg(index).arg(f["id"].toString()).arg(featureState(index, -1)["state"].toString())); + } + + return QJsonValue(lines.isEmpty() ? QString("Nothing configured") : lines.join("\n")); + }); +} diff --git a/plugins/feature/mcpserver/mcptools.h b/plugins/feature/mcpserver/mcptools.h new file mode 100644 index 000000000..db2f6bdb8 --- /dev/null +++ b/plugins/feature/mcpserver/mcptools.h @@ -0,0 +1,299 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef INCLUDE_FEATURE_MCPTOOLS_H_ +#define INCLUDE_FEATURE_MCPTOOLS_H_ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "mcperror.h" +#include "mcpdocs.h" +#include "mcpdatafeed.h" +#include "mcpcapture.h" + +//!< A settings definition's properties, read from the swagger YAML that describe_settings serves. +//!< The current value of a setting cannot serve this purpose: generated SWG objects omit empty +//!< strings, so a blank setting is indistinguishable from a key that does not exist +struct SettingsSchema +{ + bool m_known = false; //!< False when the definition was not found, so nothing can be judged + QMap m_types; //!< Property name -> YAML type: integer, number, string, array or object +}; + +class WebAPIAdapterInterface; +class MCPStreams; +class DeviceAPI; +class ChannelAPI; +class Feature; + +namespace SWGSDRangel { + class SWGObject; + class SWGErrorResponse; +} + +// Counts MainCore structural change signals so that tool handlers running on HTTP threads +// can wait for asynchronous operations (which complete on the main thread) to finish. +// Lives in the main thread; the counters are read from other threads. +class MCPEventCounter : public QObject +{ + Q_OBJECT +public: + MCPEventCounter(); + + QAtomicInt m_deviceSetAdded; + QAtomicInt m_deviceSetRemoved; + QAtomicInt m_deviceChanged; + QAtomicInt m_channelAdded; + QAtomicInt m_channelRemoved; + QAtomicInt m_featureAdded; + QAtomicInt m_featureRemoved; + +private slots: + void onDeviceSetAdded(int index, DeviceAPI *device); + void onDeviceSetRemoved(int index); + void onDeviceChanged(int index); + void onChannelAdded(int deviceSetIndex, ChannelAPI *channel); + void onChannelRemoved(int deviceSetIndex, ChannelAPI *channel); + void onFeatureAdded(int featureSetIndex, Feature *feature); + void onFeatureRemoved(int featureSetIndex, Feature *feature); +}; + +// The set of MCP tools that control SDRangel. Everything goes through the +// in-process Web API adapter, so what the tools can do matches the REST API, +// plus waiting for asynchronous operations to complete. +class MCPTools +{ +public: + struct Tool + { + QString name; + QString description; + QJsonObject inputSchema; + std::function handler; + }; + + explicit MCPTools(WebAPIAdapterInterface *webAPIAdapterInterface); + + QJsonArray listTools() const; + QJsonObject callTool(const QString& name, const QJsonObject& arguments); + + // Data also served as resources + QJsonObject getInstanceSummary(); + QJsonObject getAvailableDevices(int direction = -1); //!< -1 for all directions + QJsonObject getAvailableChannels(int direction = -1); + QJsonObject getAvailableFeatures(); + QJsonObject getPresets(); + QJsonObject getConfigurations(); + QJsonObject getDeviceSet(int deviceSetIndex); + int deviceSetCount() const; + QString describeType(const QString& type, const QString& kind); + MCPDocs& docs() { return m_docs; } + MCPDataFeed& dataFeed() { return m_dataFeed; } + MCPCapture& capture() { return m_capture; } + void setStreams(MCPStreams *streams) { m_streams = streams; } + //!< The feature that owns this server, so it can refuse to delete or stop itself + void setOwnerFeature(const QObject *feature) { m_ownerFeature = feature; } + //!< Set by the server, on the main thread, before it waits for the HTTP threads to finish. + //!< Every wait and sleep in the tools then ends at once with a tool error, since the main + //!< thread they would otherwise be waiting on is the one waiting for them + void setStopping(bool stopping); + +private: + WebAPIAdapterInterface *m_adapter; + MCPEventCounter m_events; + MCPDocs m_docs; + MCPDataFeed m_dataFeed; + MCPCapture m_capture; + MCPStreams *m_streams; + + // Creating an object and working out which one is new must not overlap with another + // creation, or two callers snapshot the same state and both claim the same object. + // The capture tools run without the dispatch lock, so this is reachable. + QMutex m_creationMutex; + // Deletion is by index, and the index is resolved just before the delete is posted for + // the main thread to do later. Two calls deleting on one device set unserialised can post + // two indices that were right when read and wrong once the first delete has renumbered + // the rest, taking a channel neither meant. Held from the lookup to the object being gone + QMutex m_deletionMutex; + // The channels listen and scan have added, so that the next of either on the same device + // set can take them away again and cleanup can remove them all. Held by uid rather than + // pointer: a channel removed from the GUI frees its address for the next one created, + // which must not then be taken for one of these. They run without the dispatch lock, so + // this has a lock of its own, which is never held across addChannelAndWait or a delete: + // those take m_creationMutex or wait + QMutex m_intentMutex; + QSet m_intentChannels; + // The features listen added for a mode's output (AIS, Radiosonde, APRS), removed again once no + // channel it added still feeds them. A feature that was already there is never among these + QSet m_intentFeatures; + const QObject *m_ownerFeature; + QAtomicInt m_stopping; + QList m_tools; + // The definitions are loaded on first use and the parsed schemas cached as they are asked + // for, from whichever thread asks. The settings tools run under the dispatch lock but + // listen and scan do not, and they patch settings too, so these have a lock of their own, + // taken by describeType and settingsSchema; the helpers they call expect it held + QMutex m_schemaMutex; + QMap m_yamlDefinitions; //!< Swagger definition name -> YAML text + QMap m_yamlDefinitionsByLower; //!< Lower cased name -> the name as written + QMap m_schemaCache; //!< Parsed form of the above, by definition name + bool m_yamlLoaded; + + void add(const QString& name, const QString& description, const QJsonObject& inputSchema, + std::function handler); + + void registerInstanceTools(); + void registerDeviceSetTools(); + void registerChannelTools(); + void registerFeatureTools(); + void registerPresetTools(); + void registerWorkspaceTools(); + void registerCaptureTools(); + void registerIntentTools(); + + //!< Polls until the condition holds, at most timeoutMs. False on timeout; throws when the + //!< server is stopping, as nothing waited for on the main thread will happen then + bool waitFor(const std::function& condition, int timeoutMs = m_waitTimeoutMs) const; + //!< A sleep that a stop cuts short, with the same tool error + void pause(int ms) const; + static const int m_waitTimeoutMs = 5000; + + // Device set helpers + int channelCount(int deviceSetIndex) const; + int featureCount() const; + int deviceSetDirection(int deviceSetIndex); + QJsonObject selectDevice(int deviceSetIndex, const QJsonObject& args); + QJsonObject getDeviceSettings(int deviceSetIndex); + QJsonObject patchDeviceSettings(int deviceSetIndex, const QJsonObject& partial); + int addChannelAndWait(int deviceSetIndex, const QString& channelType); + int addFeatureAndWait(const QString& featureType); + int addDeviceSetAndWait(int direction); + //!< Identity of the current channels, features or device sets, to spot which one is new. + //!< Channels and features are identified by UID throughout: a pointer to one is only ever + //!< good until the next wait, since a deleted object's address is reused by the next one + //!< created, and every tool here waits + QSet channelUids(int deviceSetIndex) const; + QSet featureUids() const; + QSet deviceSetPointers() const; + void deleteChannelAndWait(int deviceSetIndex, int channelIndex); + void deleteChannelLocked(int deviceSetIndex, int channelIndex); //!< With m_deletionMutex held + //!< Removes a device set that listen or scan created and could not finish setting up, if it + //!< is still the last one, which is the only one the API can remove + void discardNewDeviceSet(int deviceSetIndex, uint64_t identity); + //!< What tells one device set from another that has since taken its index: the engine's UID + //!< together with the object's address. Zero when there is no such device set + uint64_t deviceSetIdentity(int deviceSetIndex) const; + friend class NewDeviceSetGuard; + //!< Deletes a channel wherever it has moved to, for callers that held on to it across a wait + void deleteChannelObjectAndWait(uint64_t channelUid); + const void *featureAt(int featureIndex) const; + //!< The UID of the feature or channel at an index, 0 when there is none + uint64_t featureUidAt(int featureIndex) const; + uint64_t channelUidAt(int deviceSetIndex, int channelIndex) const; + void requireNotSelf(int featureIndex, const QString& action) const; + QJsonObject getChannelSettings(int deviceSetIndex, int channelIndex); + QJsonObject patchChannelSettings(int deviceSetIndex, int channelIndex, const QJsonObject& partial); + //!< The property names and types of one settings definition. Used to tell a misspelled key from + //!< a valid one, and to reject a value of the wrong type before it reaches the SWG object + SettingsSchema settingsSchema(const QString& definition); + QString resolveDefinition(const QString& name); //!< Call with m_schemaMutex held + QJsonObject getSpectrumSettings(int deviceSetIndex); + //!< unknownKeys, when given, receives the patch keys the schema does not define + QJsonObject patchSpectrumSettings(int deviceSetIndex, const QJsonObject& partial, QStringList *unknownKeys = nullptr); + //!< Explains an rdsReport that is absent because RDS decoding is switched off, rather than + //!< because nothing has been decoded yet + void addRdsHint(QJsonObject& report, const QString& channelType, int deviceSetIndex, int channelIndex); + QJsonObject getFeatureSettings(int featureIndex); + QJsonObject patchFeatureSettings(int featureIndex, const QJsonObject& partial); + QJsonObject deviceState(int deviceSetIndex, int subsystemIndex, int run); //!< run: 1 start, 0 stop, -1 query + //!< Empty unless the device set's baseband is too narrow for this channel type + QString basebandWarning(int deviceSetIndex, const QString& channelType); + //!< The same for every channel a device set holds + QStringList basebandWarnings(int deviceSetIndex); + QJsonObject featureState(int featureIndex, int run); + QJsonObject presetIdentifier(const QJsonObject& args, int deviceSetIndex, bool forSave); + + // Shared by the intent level tools + QJsonObject channelReport(int deviceSetIndex, int channelIndex); + void postChannelAction(int deviceSetIndex, int channelIndex, const QJsonObject& actions); + //!< doomed: uids of channels the caller is about to remove, which the reused set is not counted as carrying. + //!< profileGain: give a device set this creates the fixed receiver gain profile; false when the gain is about to be measured + QJsonObject pickReceiver(const QJsonObject& args, int minBaseband, const QSet& doomed = QSet(), bool profileGain = true); + //!< The tune_gain tool: sweeps the gain and applies the best, with the table it measured + QJsonObject tuneGain(const QJsonObject& args); + //!< Sets the main spectrum's reference level and range from what it shows, as the GUI's autoscale button does + void autoscaleSpectrum(int deviceSetIndex); + //!< Turns spectrum scrolling on if it is off, which is what keeps the history the spectrum + //!< history tools read. Returns a note when it did, empty otherwise + QString ensureSpectrumHistory(int deviceSetIndex, double seconds); + //!< The index of a feature of this type, adding one if there is none. Returns whether it was added + int ensureFeature(const QString& featureType, int& featureIndex); + void trackIntentFeature(uint64_t featureUid); + //!< Removes the features listen added that no channel it added still feeds, except one of keepType. + //!< Returns the types of those removed + QStringList reclaimIntentFeatures(const QString& keepType = QString()); + //!< Deletes a feature wherever it has been renumbered to + void deleteFeatureObjectAndWait(uint64_t featureUid); + //!< Whether listen or scan should measure the gain: a device set they created, or a retune to another band + static bool gainWorthTuning(bool reused, double previousCentre, double centre); + void trackIntentChannel(uint64_t channelUid); + void untrackIntentChannel(uint64_t channelUid); + QSet intentChannels(); + //!< A channel's type id and whether listen or scan added it, for the notes the intent tools leave + struct ChannelNote { uint64_t m_uid; int m_index; QString m_id; bool m_intent; }; + QList channelNotes(int deviceSetIndex, const QSet& except = QSet()); + //!< Removes the channels listen and scan added to a device set, except keep. Returns the ids of those removed + QStringList reclaimIntentChannels(int deviceSetIndex, const QSet& keep = QSet()); + //!< The channel a previous listen added that a new one of this type can retune instead of replacing, or 0. + //!< wanted: how many of the type the mode uses, 2 for a paired mode + uint64_t reusableIntentChannel(int deviceSetIndex, const QString& channelType, int& channelIndex, int wanted = 1); + //!< What a retune of a reused device set did to the channels listen and scan did not add + struct RetuneOutcome + { + QStringList m_kept; //!< Re-offset so that they stay on the frequency they had + QStringList m_removed; //!< Audio demodulators the new baseband could not hold, which would only have made noise + QStringList m_stranded; //!< Left where they were: not audio, or the baseband unknown + }; + RetuneOutcome retuneOtherChannels(int deviceSetIndex, double previousCentre, double centre, int baseband); + //!< What listen and scan tell the caller about the rest of the device set once their own channels are in + QStringList intentNotes(int deviceSetIndex, const QSet& added, const QStringList& reclaimed, + bool reused, double previousCentre, double centre, const RetuneOutcome& outcome); + //!< Channel type ids for a direction, independent of how list_channel_types formats them + QStringList channelTypeIds(int direction); + //!< Where a channel is now. The intent tools sleep for many seconds without holding the + //!< protocol mutex, and a concurrent request that deletes a lower numbered channel + //!< renumbers everything above it, so their indices have to be resolved again before use. + void relocateChannel(uint64_t channelUid, int& deviceSetIndex, int& channelIndex, const QString& what); + + void loadYamlDefinitions(); //!< Call with m_schemaMutex held +}; + +#endif // INCLUDE_FEATURE_MCPTOOLS_H_ diff --git a/plugins/feature/mcpserver/readme.md b/plugins/feature/mcpserver/readme.md new file mode 100644 index 000000000..7dc8ba3c6 --- /dev/null +++ b/plugins/feature/mcpserver/readme.md @@ -0,0 +1,171 @@ +

MCP Server Feature Plugin

+ +

Introduction

+ +This feature exposes SDRangel to AI agents through the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP), so that an assistant such as Claude or ChatGPT/Codex can inspect and control SDRangel: create device sets, select SDR hardware, tune, add demodulators, change settings, read reports, load presets and so on. + +The plugin runs an MCP server using the Streamable HTTP transport. MCP clients connect to `http://address:port/mcp`. + +[Tutorial Video](https://youtu.be/G0FmiX7zwb8) + +

Interface

+ +![MCP Server feature plugin GUI](../../../doc/img/MCPServer_plugin.png) + +

1: Start/Stop

+ +Starts or stops the MCP server. The button is green when the server is listening and red if it could not listen on the requested address and port. + +

2: Endpoint URL

+ +The URL to give to MCP clients. + +

3: Address

+ +IP address to listen on. The default of 127.0.0.1 only accepts connections from the local computer. Use 0.0.0.0 to accept connections from any network interface, in which case a token should be set. + +

4: Port

+ +TCP port to listen on. The default is 8092. + +

5: Capture directory

+ +Directory that the capture tools write IQ and audio files to. It defaults to `SDRangel/captures` under your documents folder. File names given to the capture tools are relative to it, and names that would write outside it are refused, so a connected agent cannot write anywhere else on the machine. + +

6: Token

+ +Optional bearer token. When set, clients must send an `Authorization: Bearer ` HTTP header. Leave empty for no authentication. + +

7: Add to Codex

+ +Writes this server into Codex's `config.toml`. +Codex reads its configuration at startup, so restart it afterwards. + +

8: Add to Claude Desktop

+ +Opens the extension bundle with Claude Desktop, which then shows its own dialog asking whether to install it. + +

9: Status

+ +Number of MCP requests served since the server was started and the last request received. + +

Connecting a client

+ +

Claude Code

+ +For clients that support remote (HTTP) MCP servers, add the endpoint URL directly: + + claude mcp add --transport http sdrangel http://127.0.0.1:8092/mcp + +

Claude Desktop

+ +Claude Desktop cannot connect directly to a HTTP server. +Install the SDRangel extension, which carries a small [bridge](bridge/readme.md) that relays the stdio +transport Claude Desktop does support to this server. Press Add to Claude Desktop (8) to hand +it the bundle; on Windows the installer also offers to do this at the end of a fresh install. +Failing either, take `sdrangel--.mcpb` from the release and open it with +Claude Desktop, or drag it onto Settings > Extensions. Set the port in the extension's +settings if it is not the default 8092. + +For other clients that only support local stdio servers, run the same bridge directly, in: + +- Windows: %APPDATA%\Claude\claude_desktop_config.json +- Linux: ~/.config/Claude/claude_desktop_config.json +- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json + +``` + "mcpServers": { + "sdrangel": { + "command": "C:\\Program Files\\SDRangel\\sdrangel-mcp-bridge.exe", + "args": ["--port", "8092"] + } + } +``` + +`npx -y mcp-remote http://127.0.0.1:8092/mcp` does the same job for a client that has no +bridge built for its platform, at the cost of needing Node.js installed. + +

ChatGPT/Codex

+ +Codex supports the HTTP transport, so does not need a bridge. Press Add to Codex (7) to have the +server's address written to its configuration file, or add the following by hand to: + +- Windows: %USERPROFILE%\.codex\config.toml +- macOS/Linux: ~/.codex/config.toml + +``` + [mcp_servers.sdrangel] + url = "http://127.0.0.1:8092/mcp" +``` + +With a token set, the header goes alongside it: + +``` + [mcp_servers.sdrangel] + url = "http://127.0.0.1:8092/mcp" + http_headers = { "Authorization" = "Bearer " } +``` + +

Tools

+ +The intent tools do a whole task in one call: `listen` sets up a receiver on a frequency in a given mode, `scan` sets up a Frequency Scanner over a list or range of frequencies and reports every frequency above the threshold with its level (and, for intermittent signals, where the scanner parked), stepping by the channel spacing usual for the mode unless told otherwise and refusing modes that live on fixed frequencies, and `get_status` returns one line per device set and feature. Both `listen` and `scan` keep track of the channels they add: by default the next of either on the same device set removes them first, so that exploring a band does not leave a trail of demodulators all playing audio, and `cleanup` removes them all. A `listen` that finds a demodulator of the type it needs among them retunes it instead, as a person would, so stepping through a band in one mode keeps one channel open throughout. Both measure and set the receiver gain, as `tune_gain` does, when they create a device set or move one to another band, and leave it alone otherwise or when told `tuneGain` false. A mode whose output goes to a feature (AIS, radiosondes, APRS) has `listen` add that feature when it is absent, and remove it again, along with the channels, once nothing it added feeds it; a feature that was already there is left alone. AIS gets a demodulator on each of its two channels with the device centred between them. Channels added any other way are kept on the frequency they had, by moving their offset, when the retuned baseband still holds them; an audio demodulator it cannot hold is removed, since all it could do is play noise, while anything else (a file sink, an analyser) is left in place and named in the reply. The rest mirror the Web API. Creation tools wait for SDRangel to complete the operation and return the index of the new object; the `set_*` tools reply with only the keys that were changed, since a client carries every reply in its context for the rest of the conversation. + +| Area | Tools | +|------|-------| +| Intent | `listen`, `scan`, `cleanup`, `tune_gain`, `get_status` | +| Discovery | `get_instance_summary`, `list_available_devices`, `list_channel_types`, `list_feature_types`, `describe_settings`, `get_receiving_guide`, `list_docs`, `get_docs`, `list_audio_devices`, `get_location`, `set_location` | +| Device sets | `add_deviceset`, `remove_last_deviceset`, `get_deviceset`, `set_device`, `get_device_settings`, `set_device_settings`, `set_center_frequency`, `start_device`, `stop_device`, `get_device_report`, `device_action`, `get_spectrum_settings`, `set_spectrum_settings`, `get_spectrum_data`, `get_spectrum_history`, `get_waterfall_image`, `spectrum_action` | +| Channels | `add_channel`, `delete_channel`, `get_channel_settings`, `set_channel_settings`, `get_channel_report`, `channel_action` | +| Features | `add_feature`, `delete_feature`, `get_feature_settings`, `set_feature_settings`, `get_feature_report`, `start_feature`, `stop_feature`, `feature_action` | +| Presets | `list_presets`, `load_preset`, `save_preset`, `list_configurations`, `load_configuration`, `save_configuration` | +| Workspaces (GUI only) | `add_workspace`, `delete_empty_workspaces`, `list_windows`, `set_workspace` (move, hide or show a window), `arrange_workspace` | +| Live data | `get_packets`, `clear_packets`, `get_map_items` | +| Capture | `capture_audio`, `record_iq`, `start_iq_recording`, `stop_iq_recording` | +| Server | `get_server_status` (open streams, capture directory and active recordings, data feed sources) | + +Each tool carries MCP annotations: whether it only reads, whether it overwrites state rather than only adding to it, whether repeating it lands in the same place, and whether it reaches beyond this application, which covers commanding the radio and data received from transmitters SDRangel does not control. + +`describe_settings` returns the OpenAPI documentation of the settings, report and actions keys of a device, channel or feature type, so that an agent can learn the valid keys rather than guess them. The `set_*_settings` tools accept a partial settings object containing only the keys to change. + +`get_packets` returns the packets received on the `packets`, `ais` and `radiosonde` message pipes of the packet, ChirpChat, M17, Meshtastic, MeshCore, Inmarsat, AIS and radiosonde demodulators, kept in a buffer of the last 1000. Each packet carries the raw bytes and, where possible, a decode: AIS message type, MMSI, position, course and speed; AX.25 addresses and data with the APRS position and comment; RS41 serial, position and height. `get_map_items` returns the objects that the same channels and features that feed the Map send on the `mapitems` pipe (aircraft, ships, APRS stations, radiosondes, satellites, Sun and Moon, beacons), with the image, text and, on request, the track. Items are removed when their source removes them or is deleted. Both work whether or not a Map or AIS/APRS feature is present. + +`record_iq` records baseband IQ to an `.sdriq` file for a fixed number of seconds and returns the files written; `start_iq_recording` and `stop_iq_recording` do the same without a time limit for longer captures. Both work by adding a File Sink channel to the device set, so the recording has the offset and decimation the tools are given. `capture_audio` records the demodulated audio of a channel to a WAV file, and reports the sample rate, the peak level and whether the audio was silent, which tells an agent that a squelch is closed rather than that nothing is wrong. It works with demodulators that feed the Demod Analyzer, such as NFMDemod, AMDemod, SSBDemod, WFMDemod and BFMDemod. With `inline` true it also returns the audio as base64, as a mono 16 kHz copy, since MCP clients refuse a tool result over about a megabyte and ten seconds at 48 kHz would exceed that once encoded; the file keeps the full rate. Both blocking tools are capped at 30 seconds so they cannot hold an MCP client's connection open indefinitely. + +`get_receiving_guide` serves a hand written guide in `bandguide.md`: which demodulator and frequency to use for each signal SDRangel can receive, the minimum device sample rate that ADS-B, DAB and broadcast FM need, and the usual reasons nothing is received. Its frequencies come from the plugin readmes, and a test checks that every channel id it names is registered in the build. Edit that file to correct or extend it; it is compiled into the plugin, so re-run cmake after changing it. + +`list_docs` and `get_docs` serve the readme of every plugin registered in the running instance, and the GUI's own pages for what no plugin owns: the spectrum display (`spectrum`, with `spectrummarkers`, `spectrummeasurements` and `spectrumcalibration`), the main spectrum window, audio management, configurations, device user arguments and the transverter dialog. The readmes are compiled into this plugin at build time (re-run cmake after adding a plugin), converted to plain markdown with images removed, and matched to plugin ids by name; the GUI pages are listed in `CMakeLists.txt` and given their ids in `MCPDocs::addGuiDocs`. `get_docs` accepts a plugin id or its displayed name and an optional section heading, so an agent can read just the part it needs from a long document. + +

Event stream

+ +A client can be told when a resource changes instead of polling for it. An HTTP GET on the endpoint with `Accept: text/event-stream` opens a Server-Sent Events stream, and `resources/subscribe` asks for a resource on it. Updates arrive as `notifications/resources/updated`, at most once a second per resource so that a busy decoder cannot flood the stream. `sdrangel://instance`, `sdrangel://packets`, `sdrangel://map/items` and `sdrangel://deviceset/{index}` can be subscribed to; the other resources never change. + +`initialize` returns an `Mcp-Session-Id` header. A client that sends it back keeps its own subscriptions and stream, and can end them with an HTTP DELETE. Clients that ignore it share an anonymous session, which works fully for one client at a time. A client keeps one stream: opening a second replaces the first, so a notification is never delivered twice. That applies to clients that send no session id as well, since they already share the anonymous subscriptions. Sessions with no stream are dropped after a day idle, and at most 32 are kept, each with at most 32 subscriptions. Up to eight streams may be open at once, and a stream is closed after ten minutes so that a client which vanished without closing its connection cannot hold a thread forever; clients reconnect. + +

Resources

+ +| URI | Content | +|-----|---------| +| `sdrangel://instance` | Instance summary | +| `sdrangel://plugins/devices` | Available sampling devices | +| `sdrangel://plugins/channels` | Available channel types | +| `sdrangel://plugins/features` | Available feature types | +| `sdrangel://presets` | Saved presets | +| `sdrangel://configurations` | Saved configurations | +| `sdrangel://deviceset/{index}` | A device set | +| `sdrangel://schema/{type}` | Settings documentation for a type | +| `sdrangel://packets` | The 100 most recent decoded packets, from a buffer of the last 1000 | +| `sdrangel://map/items` | Objects currently plotted on the map | +| `sdrangel://guide` | The receiving guide | +| `sdrangel://docs` | Index of plugin and GUI documentation with section headings | +| `sdrangel://docs/{kind}/{id}` | A document as markdown, e.g. `sdrangel://docs/channel/ADSBDemod` or `sdrangel://docs/gui/spectrum` | + +

Prompts

+ +`setup_receiver`, `record_iq` and `explain_configuration` are prompt templates that guide an agent through common tasks. + +

Security

+ +The server has no access control beyond the optional bearer token, and an agent connected to it can change anything in SDRangel. Keep the address at 127.0.0.1 unless a token is set. + +To keep web pages from driving the server through a browser, requests carrying an `Origin` header are only accepted from an `http` or `https` localhost origin (the opaque `null` origin is rejected), and the request body must be declared as `application/json`. + diff --git a/plugins/feature/mcpserver/toolsdump.cpp b/plugins/feature/mcpserver/toolsdump.cpp new file mode 100644 index 000000000..0590c153f --- /dev/null +++ b/plugins/feature/mcpserver/toolsdump.cpp @@ -0,0 +1,83 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +// Writes the MCP tool list to a file at build time, so that the Claude Desktop extension can +// carry the real list rather than inventing one. A client that starts before SDRangel reads +// the tool list once and does not ask again, so the bridge has to be able to answer with the +// tools this very build of the server provides, before it has ever spoken to it. +// +// The registry is metadata and handler functions: building it touches neither the Web API nor +// any device, so a null adapter is all it needs. + +#include +#include + +#ifdef _WIN32 +#include +#endif + +#include +#include +#include +#include + +#include "mcptools.h" + +int main(int argc, char *argv[]) +{ + QCoreApplication application(argc, argv); + + if (argc < 2) + { + std::fprintf(stderr, "usage: %s \n", argv[0]); + return 2; + } + + std::fprintf(stderr, "toolsdump: application up\n"); + MCPTools tools(nullptr); + std::fprintf(stderr, "toolsdump: registry built\n"); + + QJsonObject result; + result["tools"] = tools.listTools(); + std::fprintf(stderr, "toolsdump: listed\n"); + + QFile file(QString::fromLocal8Bit(argv[1])); + + if (!file.open(QIODevice::WriteOnly)) + { + std::fprintf(stderr, "cannot write %s: %s\n", argv[1], qPrintable(file.errorString())); + return 1; + } + + file.write(QJsonDocument(result).toJson(QJsonDocument::Compact)); + file.close(); + std::fprintf(stderr, "toolsdump: written\n"); + + std::fprintf(stderr, "%s: %d tools\n", argv[1], result["tools"].toArray().size()); + + // The registry brings background threads up with it and they do not all stop when main + // returns, which leaves the process, and so the build, hanging. Even _Exit does not get + // out, since the runtime's own teardown waits on them, so end the process from the kernel + // side. The file is written and flushed by this point + std::fflush(nullptr); + +#ifdef _WIN32 + TerminateProcess(GetCurrentProcess(), 0); +#endif + std::_Exit(0); +} diff --git a/plugins/feature/morsedecoder/morsedecoder.cpp b/plugins/feature/morsedecoder/morsedecoder.cpp index 1d6298b25..69ab896ad 100644 --- a/plugins/feature/morsedecoder/morsedecoder.cpp +++ b/plugins/feature/morsedecoder/morsedecoder.cpp @@ -54,7 +54,7 @@ MorseDecoder::MorseDecoder(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("MorseDecoder::MorseDecoder: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "MorseDecoder error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -125,7 +125,7 @@ void MorseDecoder::start() m_worker->setScopeVis(&m_scopeVis); m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->startWork(); - m_state = StRunning; + setState(StRunning); m_thread->start(); MorseDecoderWorker::MsgConfigureMorseDecoderWorker *msgConfigure @@ -173,7 +173,7 @@ void MorseDecoder::stop() } m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } diff --git a/plugins/feature/morsedecoder/morsedecodergui.cpp b/plugins/feature/morsedecoder/morsedecodergui.cpp index cabc877c5..eef76305e 100644 --- a/plugins/feature/morsedecoder/morsedecodergui.cpp +++ b/plugins/feature/morsedecoder/morsedecodergui.cpp @@ -188,7 +188,6 @@ MorseDecoderGUI::MorseDecoderGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe m_featureUISet(featureUISet), m_sampleRate(48000), m_doApplySettings(true), - m_lastFeatureState(0), m_selectedChannel(nullptr) { m_feature = feature; @@ -209,8 +208,8 @@ MorseDecoderGUI::MorseDecoderGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_morseDecoder, &Feature::stateChanged, this, &MorseDecoderGUI::updateFeatureState); + updateFeatureState(); displaySampleRate(m_sampleRate); @@ -408,33 +407,9 @@ void MorseDecoderGUI::tick() { } -void MorseDecoderGUI::updateStatus() +void MorseDecoderGUI::updateFeatureState() { - int state = m_morseDecoder->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_morseDecoder->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void MorseDecoderGUI::applySettings(bool force) diff --git a/plugins/feature/morsedecoder/morsedecodergui.h b/plugins/feature/morsedecoder/morsedecodergui.h index dee5e209d..af2745b2c 100644 --- a/plugins/feature/morsedecoder/morsedecodergui.h +++ b/plugins/feature/morsedecoder/morsedecodergui.h @@ -18,7 +18,6 @@ #ifndef INCLUDE_FEATURE_MORSEDECODERGUI_H_ #define INCLUDE_FEATURE_MORSEDECODERGUI_H_ -#include #include #include "feature/featuregui.h" @@ -66,8 +65,6 @@ private: MorseDecoder* m_morseDecoder; ScopeVis* m_scopeVis; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; AvailableChannelOrFeatureList m_availableChannels; ChannelAPI *m_selectedChannel; @@ -96,7 +93,7 @@ private slots: void on_clearTable_clicked(); void on_logEnable_clicked(bool checked=false); void on_logFilename_clicked(); - void updateStatus(); + void updateFeatureState(); void tick(); }; diff --git a/plugins/feature/pertester/pertester.cpp b/plugins/feature/pertester/pertester.cpp index c504fffa7..1155bba05 100644 --- a/plugins/feature/pertester/pertester.cpp +++ b/plugins/feature/pertester/pertester.cpp @@ -49,7 +49,7 @@ PERTester::PERTester(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("PERTester::PERTester: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "PERTester error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -90,12 +90,12 @@ void PERTester::start() if (m_settings.m_start == PERTesterSettings::START_IMMEDIATELY) { m_thread->start(); - m_state = StRunning; + setState(StRunning); } else { // Wait for AOS - m_state = StIdle; + setState(StIdle); } m_thread->start(); } @@ -103,7 +103,7 @@ void PERTester::start() void PERTester::stop() { qDebug("PERTester::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -152,8 +152,8 @@ bool PERTester::handleMessage(const Message& cmd) } else { - m_state = StError; m_errorMessage = report.getMessage(); + setState(StError); } return true; } @@ -206,7 +206,11 @@ void PERTester::applySettings(const PERTesterSettings& settings, const QListsetInterval(settings.m_interval); response.getPerTesterSettings()->setStart((int)settings.m_start); response.getPerTesterSettings()->setSatellites(convertStringListToPtrs(settings.m_satellites)); - response.getPerTesterSettings()->setPacket(new QString(settings.m_packet)); + if (response.getPerTesterSettings()->getPacket()) { + *response.getPerTesterSettings()->getPacket() = settings.m_packet; + } else { + response.getPerTesterSettings()->setPacket(new QString(settings.m_packet)); + } response.getPerTesterSettings()->setIgnoreLeadingBytes(settings.m_ignoreLeadingBytes); response.getPerTesterSettings()->setIgnoreTrailingBytes(settings.m_ignoreTrailingBytes); - response.getPerTesterSettings()->setTxUdpAddress(new QString(settings.m_txUDPAddress)); + if (response.getPerTesterSettings()->getTxUdpAddress()) { + *response.getPerTesterSettings()->getTxUdpAddress() = settings.m_txUDPAddress; + } else { + response.getPerTesterSettings()->setTxUdpAddress(new QString(settings.m_txUDPAddress)); + } response.getPerTesterSettings()->setTxUdpPort(settings.m_txUDPPort); - response.getPerTesterSettings()->setRxUdpAddress(new QString(settings.m_rxUDPAddress)); + if (response.getPerTesterSettings()->getRxUdpAddress()) { + *response.getPerTesterSettings()->getRxUdpAddress() = settings.m_rxUDPAddress; + } else { + response.getPerTesterSettings()->setRxUdpAddress(new QString(settings.m_rxUDPAddress)); + } response.getPerTesterSettings()->setRxUdpPort(settings.m_rxUDPPort); if (response.getPerTesterSettings()->getTitle()) { @@ -356,7 +372,7 @@ void PERTester::webapiUpdateFeatureSettings( settings.m_txUDPPort = response.getPerTesterSettings()->getTxUdpPort(); } if (featureSettingsKeys.contains("rxUDPAddress")) { - settings.m_txUDPAddress = *response.getPerTesterSettings()->getRxUdpAddress(); + settings.m_rxUDPAddress = *response.getPerTesterSettings()->getRxUdpAddress(); } if (featureSettingsKeys.contains("rxUDPPort")) { settings.m_rxUDPPort = response.getPerTesterSettings()->getRxUdpPort(); @@ -501,7 +517,7 @@ int PERTester::webapiActionsPost( if (m_settings.m_start == PERTesterSettings::START_ON_AOS) { m_thread->start(); - m_state = StRunning; + setState(StRunning); } else if (m_settings.m_start == PERTesterSettings::START_ON_MID_PASS) { @@ -512,7 +528,7 @@ int PERTester::webapiActionsPost( qint64 msecs = aosTime.msecsTo(losTime) / 2; QTimer::singleShot(msecs, [this] { m_thread->start(); - m_state = StRunning; + setState(StRunning); }); } } diff --git a/plugins/feature/pertester/pertestergui.cpp b/plugins/feature/pertester/pertestergui.cpp index 268f05c2a..23e4c4c6f 100644 --- a/plugins/feature/pertester/pertestergui.cpp +++ b/plugins/feature/pertester/pertestergui.cpp @@ -129,8 +129,7 @@ PERTesterGUI::PERTesterGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea ui(new Ui::PERTesterGUI), m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), - m_doApplySettings(true), - m_lastFeatureState(0) + m_doApplySettings(true) { m_feature = feature; setAttribute(Qt::WA_DeleteOnClose, true); @@ -148,8 +147,8 @@ PERTesterGUI::PERTesterGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_perTester, &Feature::stateChanged, this, &PERTesterGUI::updateFeatureState); + updateFeatureState(); displaySettings(); applySettings(true); @@ -337,41 +336,9 @@ void PERTesterGUI::on_rxUDPPort_editingFinished() applySettings(); } -void PERTesterGUI::updateStatus() +void PERTesterGUI::updateFeatureState() { - int state = m_perTester->getState(); - - if (m_lastFeatureState != state) - { - // We set checked state of start/stop button, in case it was changed via API - bool oldState; - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(false); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(true); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_perTester->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void PERTesterGUI::applySettings(bool force) diff --git a/plugins/feature/pertester/pertestergui.h b/plugins/feature/pertester/pertestergui.h index 72650f94d..51bc8d1f7 100644 --- a/plugins/feature/pertester/pertestergui.h +++ b/plugins/feature/pertester/pertestergui.h @@ -22,7 +22,6 @@ #ifndef INCLUDE_FEATURE_PERTESTERGUI_H_ #define INCLUDE_FEATURE_PERTESTERGUI_H_ -#include #include "feature/featuregui.h" #include "util/messagequeue.h" @@ -64,8 +63,6 @@ private: PERTester* m_perTester; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; explicit PERTesterGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr); virtual ~PERTesterGUI(); @@ -93,7 +90,7 @@ private slots: void on_txUDPPort_editingFinished(); void on_rxUDPAddress_editingFinished(); void on_rxUDPPort_editingFinished(); - void updateStatus(); + void updateFeatureState(); }; #endif // INCLUDE_FEATURE_PERTESTERGUI_H_ diff --git a/plugins/feature/radiosonde/radiosonde.cpp b/plugins/feature/radiosonde/radiosonde.cpp index c1dae7c00..1c0692579 100644 --- a/plugins/feature/radiosonde/radiosonde.cpp +++ b/plugins/feature/radiosonde/radiosonde.cpp @@ -22,6 +22,9 @@ #include #include "SWGFeatureSettings.h" +#include "SWGFeatureReport.h" +#include "SWGRadiosondeReport.h" +#include "SWGRadiosonde.h" #include "feature/featureset.h" #include "settings/serializable.h" @@ -30,6 +33,7 @@ #include "radiosonde.h" MESSAGE_CLASS_DEFINITION(Radiosonde::MsgConfigureRadiosonde, Message) +MESSAGE_CLASS_DEFINITION(Radiosonde::MsgReportRadiosondes, Message) const char* const Radiosonde::m_featureIdURI = "sdrangel.feature.radiosonde"; const char* const Radiosonde::m_featureId = "Radiosonde"; @@ -40,7 +44,7 @@ Radiosonde::Radiosonde(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("Radiosonde::Radiosonde: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "Radiosonde error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -78,13 +82,13 @@ Radiosonde::~Radiosonde() void Radiosonde::start() { qDebug("Radiosonde::start"); - m_state = StRunning; + setState(StRunning); } void Radiosonde::stop() { qDebug("Radiosonde::stop"); - m_state = StIdle; + setState(StIdle); } bool Radiosonde::handleMessage(const Message& cmd) @@ -97,6 +101,14 @@ bool Radiosonde::handleMessage(const Message& cmd) return true; } + else if (MsgReportRadiosondes::match(cmd)) + { + MsgReportRadiosondes& report = (MsgReportRadiosondes&) cmd; + m_radiosondes = report.getRadiosondes(); + m_radiosondesUpdated = QDateTime::currentDateTimeUtc(); + + return true; + } else if (MainCore::MsgPacket::match(cmd)) { MainCore::MsgPacket& report = (MainCore::MsgPacket&) cmd; @@ -249,6 +261,103 @@ void Radiosonde::webapiFormatFeatureSettings( } } + +int Radiosonde::webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage) +{ + (void) errorMessage; + response.setRadiosondeReport(new SWGSDRangel::SWGRadiosondeReport()); + response.getRadiosondeReport()->init(); + webapiFormatFeatureReport(response); + return 200; +} + +void Radiosonde::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response) +{ + SWGSDRangel::SWGRadiosondeReport *report = response.getRadiosondeReport(); + report->setRadiosondeCount(m_radiosondes.size()); + if (report->getReportDateTime()) { + *report->getReportDateTime() = m_radiosondesUpdated.toString(Qt::ISODateWithMs); + } else { + report->setReportDateTime(new QString(m_radiosondesUpdated.toString(Qt::ISODateWithMs))); + } + report->setRadiosondes(new QList); + + for (const auto& sonde : m_radiosondes) + { + SWGSDRangel::SWGRadiosonde *swgSonde = new SWGSDRangel::SWGRadiosonde(); + report->getRadiosondes()->append(swgSonde); + if (swgSonde->getSerial()) { + *swgSonde->getSerial() = sonde.m_serial; + } else { + swgSonde->setSerial(new QString(sonde.m_serial)); + } + swgSonde->setMessages(sonde.m_messages); + + // Only what has been decoded is set, so an absent field reads as unknown rather than zero + if (!sonde.m_type.isEmpty()) { + if (swgSonde->getType()) { + *swgSonde->getType() = sonde.m_type; + } else { + swgSonde->setType(new QString(sonde.m_type)); + } + } + if (!sonde.m_status.isEmpty()) { + if (swgSonde->getStatus()) { + *swgSonde->getStatus() = sonde.m_status; + } else { + swgSonde->setStatus(new QString(sonde.m_status)); + } + } + if (!sonde.m_burstKillStatus.isEmpty()) { + if (swgSonde->getBurstKillStatus()) { + *swgSonde->getBurstKillStatus() = sonde.m_burstKillStatus; + } else { + swgSonde->setBurstKillStatus(new QString(sonde.m_burstKillStatus)); + } + } + if (!sonde.m_burstKillTimer.isEmpty()) { + if (swgSonde->getBurstKillTimer()) { + *swgSonde->getBurstKillTimer() = sonde.m_burstKillTimer; + } else { + swgSonde->setBurstKillTimer(new QString(sonde.m_burstKillTimer)); + } + } + if (sonde.m_hasPosition) + { + swgSonde->setLatitude(sonde.m_latitude); + swgSonde->setLongitude(sonde.m_longitude); + swgSonde->setAltitude(sonde.m_altitude); + swgSonde->setSpeed(sonde.m_speed); + swgSonde->setVerticalRate(sonde.m_verticalRate); + swgSonde->setHeading(sonde.m_heading); + } + if (sonde.m_hasAltitudeMax) { + swgSonde->setAltitudeMax(sonde.m_altitudeMax); + } + if (sonde.m_hasPressure) { + swgSonde->setPressure(sonde.m_pressure); + } + if (sonde.m_hasTemperature) { + swgSonde->setTemperature(sonde.m_temperature); + } + if (sonde.m_hasHumidity) { + swgSonde->setHumidity(sonde.m_humidity); + } + if (sonde.m_hasFrequency) { + swgSonde->setFrequency(sonde.m_frequency); + } + if (sonde.m_lastUpdate.isValid()) { + if (swgSonde->getLastUpdate()) { + *swgSonde->getLastUpdate() = sonde.m_lastUpdate.toString(Qt::ISODateWithMs); + } else { + swgSonde->setLastUpdate(new QString(sonde.m_lastUpdate.toString(Qt::ISODateWithMs))); + } + } + } +} + void Radiosonde::webapiUpdateFeatureSettings( RadiosondeSettings& settings, const QStringList& featureSettingsKeys, diff --git a/plugins/feature/radiosonde/radiosonde.h b/plugins/feature/radiosonde/radiosonde.h index a5a99f602..87d695614 100644 --- a/plugins/feature/radiosonde/radiosonde.h +++ b/plugins/feature/radiosonde/radiosonde.h @@ -20,6 +20,7 @@ #ifndef INCLUDE_FEATURE_RADIOSONDE_H_ #define INCLUDE_FEATURE_RADIOSONDE_H_ +#include #include #include @@ -66,6 +67,76 @@ public: { } }; + // A radiosonde as the GUI knows it. The m_has flags matter because zero is a valid altitude, + // rate and heading, and a sonde is heard well before its position decodes + struct Sonde + { + QString m_serial; + QString m_type; + QString m_status; + QString m_burstKillStatus; + QString m_burstKillTimer; + float m_latitude; + float m_longitude; + float m_altitude; + float m_altitudeMax; + float m_speed; + float m_verticalRate; + float m_heading; + float m_pressure; + float m_temperature; + float m_humidity; + qint64 m_frequency; + int m_messages; + QDateTime m_lastUpdate; + bool m_hasPosition; + bool m_hasAltitudeMax; + bool m_hasPressure; + bool m_hasTemperature; + bool m_hasHumidity; + bool m_hasFrequency; + + Sonde() : + m_latitude(0.0f), + m_longitude(0.0f), + m_altitude(0.0f), + m_altitudeMax(0.0f), + m_speed(0.0f), + m_verticalRate(0.0f), + m_heading(0.0f), + m_pressure(0.0f), + m_temperature(0.0f), + m_humidity(0.0f), + m_frequency(0), + m_messages(0), + m_hasPosition(false), + m_hasAltitudeMax(false), + m_hasPressure(false), + m_hasTemperature(false), + m_hasHumidity(false), + m_hasFrequency(false) + { } + }; + + // Sent from the GUI, which holds the radiosonde table, so the report has something to serve + class MsgReportRadiosondes : public Message { + MESSAGE_CLASS_DECLARATION + + public: + QList& getRadiosondes() { return m_radiosondes; } + + static MsgReportRadiosondes* create() { + return new MsgReportRadiosondes(); + } + + private: + QList m_radiosondes; + + MsgReportRadiosondes() : + Message() + { } + }; + Radiosonde(WebAPIAdapterInterface *webAPIAdapterInterface); virtual ~Radiosonde(); virtual void destroy() { delete this; } @@ -78,6 +149,10 @@ public: virtual QByteArray serialize() const; virtual bool deserialize(const QByteArray& data); + virtual int webapiReportGet( + SWGSDRangel::SWGFeatureReport& response, + QString& errorMessage); + virtual int webapiSettingsGet( SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); @@ -88,6 +163,8 @@ public: SWGSDRangel::SWGFeatureSettings& response, QString& errorMessage); + void webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& response); + static void webapiFormatFeatureSettings( SWGSDRangel::SWGFeatureSettings& response, const RadiosondeSettings& settings); @@ -102,6 +179,8 @@ public: private: RadiosondeSettings m_settings; + QList m_radiosondes; //!< Latest snapshot pushed by the GUI + QDateTime m_radiosondesUpdated; //!< When that snapshot was taken AvailableChannelOrFeatureHandler m_availableChannelHandler; AvailableChannelOrFeatureList m_availableChannels; diff --git a/plugins/feature/radiosonde/radiosondegui.cpp b/plugins/feature/radiosonde/radiosondegui.cpp index ec381a9c7..0e66ed138 100644 --- a/plugins/feature/radiosonde/radiosondegui.cpp +++ b/plugins/feature/radiosonde/radiosondegui.cpp @@ -198,6 +198,9 @@ RadiosondeGUI::RadiosondeGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, F // Get updated when position changes connect(&MainCore::instance()->getSettings(), &MainSettings::preferenceChanged, this, &RadiosondeGUI::preferenceChanged); connect(&m_positionUpdateTimer, &QTimer::timeout, this, &RadiosondeGUI::updatePosition); + // The feature has no radiosonde table of its own, so it is given one for the web API report + connect(&m_reportTimer, &QTimer::timeout, this, &RadiosondeGUI::sendRadiosondeReport); + m_reportTimer.start(1000); m_positionUpdateTimer.setSingleShot(true); ui->radiosondes->setItemDelegateForColumn(RADIOSONDE_COL_LATITUDE, new DecimalDelegate(5, ui->radiosondes)); @@ -221,6 +224,7 @@ RadiosondeGUI::RadiosondeGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, F RadiosondeGUI::~RadiosondeGUI() { + m_reportTimer.stop(); disconnect(&MainCore::instance()->getSettings(), &MainSettings::preferenceChanged, this, &RadiosondeGUI::preferenceChanged); // Remove from map and free memory on_deleteAll_clicked(); @@ -274,6 +278,101 @@ void RadiosondeGUI::displaySettings() applyShowPredictedPaths(); } + +// The measurement columns hold the GUI's own strings, which carry a trailing U while the sensor +// is still uncalibrated. The value is worth reporting either way, so the marker is stripped, and +// anything that will not parse, the empty string included, is left out of the report as unknown. +static bool measurementValue(const QString& text, float& value) +{ + QString number = text.trimmed(); + + if (number.endsWith("U")) { + number.chop(1); + } + + bool ok = false; + value = number.toFloat(&ok); + return ok; +} + +void RadiosondeGUI::sendRadiosondeReport() +{ + Radiosonde::MsgReportRadiosondes *message = Radiosonde::MsgReportRadiosondes::create(); + QList& sondes = message->getRadiosondes(); + sondes.reserve(ui->radiosondes->rowCount()); + + for (int row = 0; row < ui->radiosondes->rowCount(); row++) + { + QTableWidgetItem *serial = ui->radiosondes->item(row, RADIOSONDE_COL_SERIAL); + + if (!serial) { + continue; + } + + Radiosonde::Sonde sonde; + sonde.m_serial = serial->text(); + sonde.m_type = cellText(row, RADIOSONDE_COL_TYPE); + sonde.m_status = cellText(row, RADIOSONDE_COL_STATUS); + sonde.m_burstKillStatus = cellText(row, RADIOSONDE_COL_BURSTKILL_STATUS); + sonde.m_burstKillTimer = cellText(row, RADIOSONDE_COL_BURSTKILL_TIMER); + + QVariant latitude = cellValue(row, RADIOSONDE_COL_LATITUDE); + QVariant longitude = cellValue(row, RADIOSONDE_COL_LONGITUDE); + sonde.m_hasPosition = latitude.isValid() && longitude.isValid(); + + if (sonde.m_hasPosition) + { + sonde.m_latitude = latitude.toFloat(); + sonde.m_longitude = longitude.toFloat(); + sonde.m_altitude = cellValue(row, RADIOSONDE_COL_ALTITUDE).toFloat(); + sonde.m_speed = cellValue(row, RADIOSONDE_COL_SPEED).toFloat(); + sonde.m_verticalRate = cellValue(row, RADIOSONDE_COL_VERTICAL_RATE).toFloat(); + sonde.m_heading = cellValue(row, RADIOSONDE_COL_HEADING).toFloat(); + } + + QVariant altitudeMax = cellValue(row, RADIOSONDE_COL_ALT_MAX); + sonde.m_hasAltitudeMax = altitudeMax.isValid(); + + if (sonde.m_hasAltitudeMax) { + sonde.m_altitudeMax = altitudeMax.toFloat(); + } + + sonde.m_hasPressure = measurementValue(cellText(row, RADIOSONDE_COL_PRESSURE), sonde.m_pressure); + sonde.m_hasTemperature = measurementValue(cellText(row, RADIOSONDE_COL_TEMPERATURE), sonde.m_temperature); + sonde.m_hasHumidity = measurementValue(cellText(row, RADIOSONDE_COL_HUMIDITY), sonde.m_humidity); + + // The table carries the frequency in MHz for display; the API reports Hz, as it does + // everywhere else + bool ok = false; + double frequencyMHz = cellText(row, RADIOSONDE_COL_FREQUENCY).toDouble(&ok); + sonde.m_hasFrequency = ok; + + if (ok) { + sonde.m_frequency = (qint64) std::round(frequencyMHz * 1e6); + } + + sonde.m_lastUpdate = cellValue(row, RADIOSONDE_COL_LAST_UPDATE).toDateTime(); + sonde.m_messages = cellValue(row, RADIOSONDE_COL_MESSAGES).toInt(); + sondes.append(sonde); + } + + m_radiosonde->getInputMessageQueue()->push(message); +} + +QVariant RadiosondeGUI::cellValue(int row, int col) const +{ + QTableWidgetItem *item = ui->radiosondes->item(row, col); + + return item ? item->data(Qt::DisplayRole) : QVariant(); +} + +QString RadiosondeGUI::cellText(int row, int col) const +{ + QTableWidgetItem *item = ui->radiosondes->item(row, col); + + return item ? item->text() : QString(); +} + void RadiosondeGUI::onMenuDialogCalled(const QPoint &p) { if (m_contextMenuType == ContextMenuType::ContextMenuChannelSettings) diff --git a/plugins/feature/radiosonde/radiosondegui.h b/plugins/feature/radiosonde/radiosondegui.h index fd6c31d47..e461c25b3 100644 --- a/plugins/feature/radiosonde/radiosondegui.h +++ b/plugins/feature/radiosonde/radiosondegui.h @@ -77,6 +77,9 @@ public: virtual void destroy(); void resetToDefaults(); + void sendRadiosondeReport(); + QVariant cellValue(int row, int col) const; + QString cellText(int row, int col) const; QByteArray serialize() const; bool deserialize(const QByteArray& data); virtual MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } @@ -87,6 +90,7 @@ public: private: Ui::RadiosondeGUI* ui; + QTimer m_reportTimer; //!< Pushes the radiosonde table to the feature for the web API report PluginAPI* m_pluginAPI; FeatureUISet* m_featureUISet; RadiosondeSettings m_settings; diff --git a/plugins/feature/remotecontrol/remotecontrol.cpp b/plugins/feature/remotecontrol/remotecontrol.cpp index 2fb820f72..c3a5c5d46 100644 --- a/plugins/feature/remotecontrol/remotecontrol.cpp +++ b/plugins/feature/remotecontrol/remotecontrol.cpp @@ -39,7 +39,7 @@ RemoteControl::RemoteControl(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("RemoteControl::RemoteControl: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "RemoteControl error"; start(); } @@ -61,14 +61,14 @@ void RemoteControl::start() QObject::connect(m_thread, &QThread::finished, m_thread, &QObject::deleteLater); m_worker->setMessageQueueToFeature(getInputMessageQueue()); - m_state = StRunning; + setState(StRunning); m_thread->start(); } void RemoteControl::stop() { qDebug() << "RemoteControl::stop"; - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } diff --git a/plugins/feature/remotecontrol/remotecontroldevicedialog.cpp b/plugins/feature/remotecontrol/remotecontroldevicedialog.cpp index 0897f066a..63de13f0c 100644 --- a/plugins/feature/remotecontrol/remotecontroldevicedialog.cpp +++ b/plugins/feature/remotecontrol/remotecontroldevicedialog.cpp @@ -23,6 +23,8 @@ #include #include +#include "gui/messagedialog.h" + RemoteControlDeviceDialog::RemoteControlDeviceDialog(RemoteControlSettings *settings, RemoteControlDevice *rcDevice, QWidget* parent) : QDialog(parent), ui(new Ui::RemoteControlDeviceDialog), @@ -218,7 +220,7 @@ void RemoteControlDeviceDialog::on_protocol_currentTextChanged(const QString &pr } else { - QMessageBox::critical(this, "Remote Control Error", QString("Failed to discover %1 devices").arg(protocol)); + MessageDialog::critical(this, "Remote Control Error", QString("Failed to discover %1 devices").arg(protocol)); } } enableWidgets(); @@ -388,7 +390,7 @@ void RemoteControlDeviceDialog::deviceList(const QList(feature); m_remoteControl->setMessageQueueToGUI(&m_inputMessageQueue); + connect(m_remoteControl, &Feature::stateChanged, this, &RemoteControlGUI::updateFeatureState); + updateFeatureState(); m_settings.setRollupState(&m_rollupState); @@ -166,6 +169,11 @@ RemoteControlGUI::~RemoteControlGUI() delete ui; } +void RemoteControlGUI::updateFeatureState() +{ + updateStartStopButton(ui->startStop); +} + void RemoteControlGUI::setWorkspaceIndex(int index) { m_settings.m_workspaceIndex = index; diff --git a/plugins/feature/remotecontrol/remotecontrolgui.h b/plugins/feature/remotecontrol/remotecontrolgui.h index 812614d1e..d42468ff4 100644 --- a/plugins/feature/remotecontrol/remotecontrolgui.h +++ b/plugins/feature/remotecontrol/remotecontrolgui.h @@ -126,6 +126,7 @@ private: void deviceUnavailable(const QString &protocol, const QString &deviceId); private slots: + void updateFeatureState(); void onMenuDialogCalled(const QPoint &p); void onWidgetRolled(QWidget* widget, bool rollDown); void handleInputMessages(); diff --git a/plugins/feature/rigctlserver/rigctlserver.cpp b/plugins/feature/rigctlserver/rigctlserver.cpp index a7470432d..332f7895a 100644 --- a/plugins/feature/rigctlserver/rigctlserver.cpp +++ b/plugins/feature/rigctlserver/rigctlserver.cpp @@ -45,7 +45,7 @@ RigCtlServer::RigCtlServer(WebAPIAdapterInterface *webAPIAdapterInterface) : setObjectName(m_featureId); m_worker = new RigCtlServerWorker(webAPIAdapterInterface); m_worker->moveToThread(&m_thread); - m_state = StIdle; + setState(StIdle); m_errorMessage = "RigCtlServer error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -79,7 +79,7 @@ void RigCtlServer::start() m_worker->reset(); m_worker->setMessageQueueToFeature(getInputMessageQueue()); bool ok = m_worker->startWork(); - m_state = ok ? StRunning : StError; + setState(ok ? StRunning : StError); m_thread.start(); RigCtlServerWorker::MsgConfigureRigCtlServerWorker *msg = RigCtlServerWorker::MsgConfigureRigCtlServerWorker::create( @@ -91,7 +91,7 @@ void RigCtlServer::stop() { qDebug("RigCtlServer::stop"); m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread.quit(); m_thread.wait(); } diff --git a/plugins/feature/rigctlserver/rigctlservergui.cpp b/plugins/feature/rigctlserver/rigctlservergui.cpp index 6c311c1b4..cd83d2407 100644 --- a/plugins/feature/rigctlserver/rigctlservergui.cpp +++ b/plugins/feature/rigctlserver/rigctlservergui.cpp @@ -128,8 +128,7 @@ RigCtlServerGUI::RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe ui(new Ui::RigCtlServerGUI), m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), - m_doApplySettings(true), - m_lastFeatureState(0) + m_doApplySettings(true) { m_feature = feature; setAttribute(Qt::WA_DeleteOnClose, true); @@ -147,8 +146,8 @@ RigCtlServerGUI::RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &))); connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_rigCtlServer, &Feature::stateChanged, this, &RigCtlServerGUI::updateFeatureState); + updateFeatureState(); updateDeviceSetList(); displaySettings(); @@ -385,33 +384,9 @@ void RigCtlServerGUI::on_maxFrequencyOffset_valueChanged(int value) applySettings(); } -void RigCtlServerGUI::updateStatus() +void RigCtlServerGUI::updateFeatureState() { - int state = m_rigCtlServer->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_rigCtlServer->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void RigCtlServerGUI::applySettings(bool force) diff --git a/plugins/feature/rigctlserver/rigctlservergui.h b/plugins/feature/rigctlserver/rigctlservergui.h index 2cc2b99dd..c9323d683 100644 --- a/plugins/feature/rigctlserver/rigctlservergui.h +++ b/plugins/feature/rigctlserver/rigctlservergui.h @@ -19,7 +19,6 @@ #ifndef INCLUDE_FEATURE_RIGCTLSERVERGUI_H_ #define INCLUDE_FEATURE_RIGCTLSERVERGUI_H_ -#include #include "feature/featuregui.h" #include "util/messagequeue.h" @@ -61,8 +60,6 @@ private: RigCtlServer* m_rigCtlServer; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; - int m_lastFeatureState; explicit RigCtlServerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *feature, QWidget* parent = nullptr); virtual ~RigCtlServerGUI(); @@ -86,7 +83,7 @@ private slots: void on_channel_currentIndexChanged(int index); void on_rigCtrlPort_valueChanged(int value); void on_maxFrequencyOffset_valueChanged(int value); - void updateStatus(); + void updateFeatureState(); }; diff --git a/plugins/feature/satellitetracker/satellitetracker.cpp b/plugins/feature/satellitetracker/satellitetracker.cpp index 01fc7107c..a82232e7f 100644 --- a/plugins/feature/satellitetracker/satellitetracker.cpp +++ b/plugins/feature/satellitetracker/satellitetracker.cpp @@ -56,7 +56,7 @@ SatelliteTracker::SatelliteTracker(WebAPIAdapterInterface *webAPIAdapterInterfac { qDebug("SatelliteTracker::SatelliteTracker: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "SatelliteTracker error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -100,7 +100,7 @@ void SatelliteTracker::start() m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->setMessageQueueToGUI(getMessageQueueToGUI()); m_thread->start(); - m_state = StRunning; + setState(StRunning); m_worker->getInputMessageQueue()->push(SatelliteTrackerWorker::MsgConfigureSatelliteTrackerWorker::create(m_settings, QList(), true)); m_worker->getInputMessageQueue()->push(MsgSatData::create(m_satellites)); @@ -109,7 +109,7 @@ void SatelliteTracker::start() void SatelliteTracker::stop() { qDebug("SatelliteTracker::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -484,30 +484,66 @@ void SatelliteTracker::webapiFormatFeatureSettings( response.getSatelliteTrackerSettings()->setLatitude(settings.m_latitude); response.getSatelliteTrackerSettings()->setLongitude(settings.m_longitude); response.getSatelliteTrackerSettings()->setHeightAboveSeaLevel(settings.m_heightAboveSeaLevel); - response.getSatelliteTrackerSettings()->setTarget(new QString(settings.m_target)); + if (response.getSatelliteTrackerSettings()->getTarget()) { + *response.getSatelliteTrackerSettings()->getTarget() = settings.m_target; + } else { + response.getSatelliteTrackerSettings()->setTarget(new QString(settings.m_target)); + } response.getSatelliteTrackerSettings()->setSatellites(convertStringListToPtrs(settings.m_satellites)); response.getSatelliteTrackerSettings()->setTles(convertStringListToPtrs(settings.m_tles)); - response.getSatelliteTrackerSettings()->setDateTime(new QString(settings.m_dateTime)); + if (response.getSatelliteTrackerSettings()->getDateTime()) { + *response.getSatelliteTrackerSettings()->getDateTime() = settings.m_dateTime; + } else { + response.getSatelliteTrackerSettings()->setDateTime(new QString(settings.m_dateTime)); + } response.getSatelliteTrackerSettings()->setMinAosElevation(settings.m_minAOSElevation); response.getSatelliteTrackerSettings()->setMinPassElevation(settings.m_minPassElevation); response.getSatelliteTrackerSettings()->setRotatorMaxAzimuth(settings.m_rotatorMaxAzimuth); response.getSatelliteTrackerSettings()->setRotatorMaxElevation(settings.m_rotatorMaxElevation); response.getSatelliteTrackerSettings()->setAzElUnits((int)settings.m_azElUnits); response.getSatelliteTrackerSettings()->setGroundTrackPoints(settings.m_groundTrackPoints); - response.getSatelliteTrackerSettings()->setDateFormat(new QString(settings.m_dateFormat)); + if (response.getSatelliteTrackerSettings()->getDateFormat()) { + *response.getSatelliteTrackerSettings()->getDateFormat() = settings.m_dateFormat; + } else { + response.getSatelliteTrackerSettings()->setDateFormat(new QString(settings.m_dateFormat)); + } response.getSatelliteTrackerSettings()->setUtc(settings.m_utc ? 1 : 0); response.getSatelliteTrackerSettings()->setUpdatePeriod(settings.m_updatePeriod); response.getSatelliteTrackerSettings()->setDopplerPeriod(settings.m_dopplerPeriod); response.getSatelliteTrackerSettings()->setDefaultFrequency(settings.m_defaultFrequency); response.getSatelliteTrackerSettings()->setDrawOnMap(settings.m_drawOnMap ? 1 : 0); response.getSatelliteTrackerSettings()->setAutoTarget(settings.m_autoTarget ? 1 : 0); - response.getSatelliteTrackerSettings()->setAosSpeech(new QString(settings.m_aosSpeech)); - response.getSatelliteTrackerSettings()->setLosSpeech(new QString(settings.m_losSpeech)); - response.getSatelliteTrackerSettings()->setAosCommand(new QString(settings.m_aosCommand)); - response.getSatelliteTrackerSettings()->setLosCommand(new QString(settings.m_losCommand)); + if (response.getSatelliteTrackerSettings()->getAosSpeech()) { + *response.getSatelliteTrackerSettings()->getAosSpeech() = settings.m_aosSpeech; + } else { + response.getSatelliteTrackerSettings()->setAosSpeech(new QString(settings.m_aosSpeech)); + } + if (response.getSatelliteTrackerSettings()->getLosSpeech()) { + *response.getSatelliteTrackerSettings()->getLosSpeech() = settings.m_losSpeech; + } else { + response.getSatelliteTrackerSettings()->setLosSpeech(new QString(settings.m_losSpeech)); + } + if (response.getSatelliteTrackerSettings()->getAosCommand()) { + *response.getSatelliteTrackerSettings()->getAosCommand() = settings.m_aosCommand; + } else { + response.getSatelliteTrackerSettings()->setAosCommand(new QString(settings.m_aosCommand)); + } + if (response.getSatelliteTrackerSettings()->getLosCommand()) { + *response.getSatelliteTrackerSettings()->getLosCommand() = settings.m_losCommand; + } else { + response.getSatelliteTrackerSettings()->setLosCommand(new QString(settings.m_losCommand)); + } response.getSatelliteTrackerSettings()->setPredictionPeriod(settings.m_predictionPeriod); - response.getSatelliteTrackerSettings()->setPassStartTime(new QString(settings.m_passStartTime.toString())); - response.getSatelliteTrackerSettings()->setPassFinishTime(new QString(settings.m_passFinishTime.toString())); + if (response.getSatelliteTrackerSettings()->getPassStartTime()) { + *response.getSatelliteTrackerSettings()->getPassStartTime() = settings.m_passStartTime.toString(); + } else { + response.getSatelliteTrackerSettings()->setPassStartTime(new QString(settings.m_passStartTime.toString())); + } + if (response.getSatelliteTrackerSettings()->getPassFinishTime()) { + *response.getSatelliteTrackerSettings()->getPassFinishTime() = settings.m_passFinishTime.toString(); + } else { + response.getSatelliteTrackerSettings()->setPassFinishTime(new QString(settings.m_passFinishTime.toString())); + } response.getSatelliteTrackerSettings()->setDeviceSettings(getSWGSatelliteDeviceSettingsList(settings)); response.getSatelliteTrackerSettings()->setAzimuthOffset(settings.m_azimuthOffset); response.getSatelliteTrackerSettings()->setElevationOffset(settings.m_elevationOffset); @@ -796,7 +832,11 @@ void SatelliteTracker::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& itr.next(); SatelliteState *satState = itr.value(); SWGSDRangel::SWGSatelliteState *swgSatState = new SWGSDRangel::SWGSatelliteState(); - swgSatState->setName(new QString(satState->m_name)); + if (swgSatState->getName()) { + *swgSatState->getName() = satState->m_name; + } else { + swgSatState->setName(new QString(satState->m_name)); + } swgSatState->setLatitude(satState->m_latitude); swgSatState->setLongitude(satState->m_longitude); swgSatState->setAltitude(satState->m_altitude); @@ -811,8 +851,16 @@ void SatelliteTracker::webapiFormatFeatureReport(SWGSDRangel::SWGFeatureReport& for (auto const &pass : satState->m_passes) { SWGSDRangel::SWGSatellitePass *swgPass = new SWGSDRangel::SWGSatellitePass(); - swgPass->setAos(new QString(pass.m_aos.toString(Qt::ISODateWithMs))); - swgPass->setLos(new QString(pass.m_los.toString(Qt::ISODateWithMs))); + if (swgPass->getAos()) { + *swgPass->getAos() = pass.m_aos.toString(Qt::ISODateWithMs); + } else { + swgPass->setAos(new QString(pass.m_aos.toString(Qt::ISODateWithMs))); + } + if (swgPass->getLos()) { + *swgPass->getLos() = pass.m_los.toString(Qt::ISODateWithMs); + } else { + swgPass->setLos(new QString(pass.m_los.toString(Qt::ISODateWithMs))); + } swgPass->setMaxElevation(pass.m_maxElevation); passesList->append(swgPass); } diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index 4e9641044..f21a27403 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -31,6 +31,7 @@ #include "feature/featureuiset.h" #include "feature/featureutils.h" #include "feature/featurewebapiutils.h" +#include "gui/messagedialog.h" #include "gui/basicfeaturesettingsdialog.h" #include "gui/dialogpositioner.h" #include "util/units.h" @@ -200,7 +201,7 @@ bool SatelliteTrackerGUI::handleMessage(const Message& message) { SatelliteTracker::MsgError& errorMsg = (SatelliteTracker::MsgError&) message; QString error = errorMsg.getError(); - QMessageBox::critical(this, "Satellite Tracker", error); + MessageDialog::critical(this, "Satellite Tracker", error); return true; } @@ -275,7 +276,6 @@ SatelliteTrackerGUI::SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *fea m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), m_doApplySettings(true), - m_lastFeatureState(0), m_lastUpdatingSatData(false), m_targetSatState(nullptr), m_plotPass(0), @@ -301,6 +301,8 @@ SatelliteTrackerGUI::SatelliteTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *fea connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(1000); + connect(m_satelliteTracker, &Feature::stateChanged, this, &SatelliteTrackerGUI::updateFeatureState); + updateFeatureState(); connect(&m_redrawTimer, &QTimer::timeout, this, &SatelliteTrackerGUI::plotChart); @@ -651,40 +653,6 @@ void SatelliteTrackerGUI::on_autoTarget_clicked(bool checked) void SatelliteTrackerGUI::updateStatus() { - int state = m_satelliteTracker->getState(); - - if (m_lastFeatureState != state) - { - // We set checked state of start/stop button, in case it was changed via API - bool oldState; - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(false); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(true); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_satelliteTracker->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } - // Indicate if satellite data is being updated bool updatingSatData = m_satelliteTracker->isUpdatingSatData(); @@ -703,6 +671,11 @@ void SatelliteTrackerGUI::updateStatus() updateDeviceFeatureCombo(); } +void SatelliteTrackerGUI::updateFeatureState() +{ + updateStartStopButton(ui->startStop); +} + // Update time to AOS void SatelliteTrackerGUI::updateTimeToAOS() { diff --git a/plugins/feature/satellitetracker/satellitetrackergui.h b/plugins/feature/satellitetracker/satellitetrackergui.h index a38f9c028..a6aee5a06 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.h +++ b/plugins/feature/satellitetracker/satellitetrackergui.h @@ -75,7 +75,6 @@ private: SatelliteTracker* m_satelliteTracker; MessageQueue m_inputMessageQueue; QTimer m_statusTimer; - int m_lastFeatureState; bool m_lastUpdatingSatData; QHash m_satellites; @@ -161,6 +160,7 @@ private slots: void on_dateTimeSelect_currentIndexChanged(int index); void on_dateTime_dateTimeChanged(const QDateTime &datetime); void updateStatus(); + void updateFeatureState(); void on_viewOnMap_clicked(); void on_updateSatData_clicked(); void on_selectSats_clicked(); diff --git a/plugins/feature/sid/sid.cpp b/plugins/feature/sid/sid.cpp index a8be2dca5..7617b54ff 100644 --- a/plugins/feature/sid/sid.cpp +++ b/plugins/feature/sid/sid.cpp @@ -45,7 +45,7 @@ SIDMain::SIDMain(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("SIDMain::SID: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "SID error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -79,7 +79,7 @@ void SIDMain::start() m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->setMessageQueueToGUI(getMessageQueueToGUI()); m_thread->start(); - m_state = StRunning; + setState(StRunning); MsgConfigureSID *msg = MsgConfigureSID::create(m_settings, QList(), true); m_worker->getInputMessageQueue()->push(msg); } @@ -87,7 +87,7 @@ void SIDMain::start() void SIDMain::stop() { qDebug("SIDMain::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -123,8 +123,8 @@ bool SIDMain::handleMessage(const Message& cmd) else if (MsgReportWorker::match(cmd)) { MsgReportWorker& report = (MsgReportWorker&) cmd; - m_state = StError; m_errorMessage = report.getMessage(); + setState(StError); return true; } else @@ -240,6 +240,17 @@ void SIDMain::webapiFormatFeatureSettings( } response.getSidSettings()->setRgbColor(settings.m_rgbColor); + response.getSidSettings()->setPeriod(settings.m_period); + response.getSidSettings()->setAutosave(settings.m_autosave ? 1 : 0); + response.getSidSettings()->setAutoload(settings.m_autoload ? 1 : 0); + response.getSidSettings()->setAutosavePeriod(settings.m_autosavePeriod); + + if (response.getSidSettings()->getFilename()) { + *response.getSidSettings()->getFilename() = settings.m_filename; + } else { + response.getSidSettings()->setFilename(new QString(settings.m_filename)); + } + response.getSidSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); if (response.getSidSettings()->getReverseApiAddress()) { @@ -278,6 +289,21 @@ void SIDMain::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("rgbColor")) { settings.m_rgbColor = response.getSidSettings()->getRgbColor(); } + if (featureSettingsKeys.contains("period")) { + settings.m_period = response.getSidSettings()->getPeriod(); + } + if (featureSettingsKeys.contains("autosave")) { + settings.m_autosave = response.getSidSettings()->getAutosave() != 0; + } + if (featureSettingsKeys.contains("autoload")) { + settings.m_autoload = response.getSidSettings()->getAutoload() != 0; + } + if (featureSettingsKeys.contains("autosavePeriod")) { + settings.m_autosavePeriod = response.getSidSettings()->getAutosavePeriod(); + } + if (featureSettingsKeys.contains("filename")) { + settings.m_filename = *response.getSidSettings()->getFilename(); + } if (featureSettingsKeys.contains("useReverseAPI")) { settings.m_useReverseAPI = response.getSidSettings()->getUseReverseApi() != 0; } diff --git a/plugins/feature/sid/sidgui.cpp b/plugins/feature/sid/sidgui.cpp index b276252e0..90bb7817e 100644 --- a/plugins/feature/sid/sidgui.cpp +++ b/plugins/feature/sid/sidgui.cpp @@ -25,6 +25,7 @@ #include "feature/featureuiset.h" #include "feature/featurewebapiutils.h" #include "channel/channelwebapiutils.h" +#include "gui/messagedialog.h" #include "gui/crightclickenabler.h" #include "gui/basicfeaturesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -144,7 +145,6 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), m_doApplySettings(true), - m_lastFeatureState(0), m_fileDialog(nullptr, "Select CSV file", "", "*.csv"), m_chartXAxis(nullptr), m_chartY1Axis(nullptr), @@ -188,8 +188,8 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur ui->chart->setRenderHint(QPainter::Antialiasing); ui->xRayChart->setRenderHint(QPainter::Antialiasing); - connect(&m_statusTimer, &QTimer::timeout, this, &SIDGUI::updateStatus); - m_statusTimer.start(250); + connect(m_sid, &Feature::stateChanged, this, &SIDGUI::updateFeatureState); + updateFeatureState(); connect(&m_autosaveTimer, &QTimer::timeout, this, &SIDGUI::autosave); @@ -287,8 +287,6 @@ SIDGUI::~SIDGUI() delete m_grb; delete m_stix; - m_statusTimer.stop(); - clearFromMap(); delete m_goesXRay; @@ -1515,41 +1513,9 @@ void SIDGUI::on_settings_clicked() } } -void SIDGUI::updateStatus() +void SIDGUI::updateFeatureState() { - int state = m_sid->getState(); - - if (m_lastFeatureState != state) - { - // We set checked state of start/stop button, in case it was changed via API - bool oldState; - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(false); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(true); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::critical(this, m_settings.m_title, m_sid->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void SIDGUI::makeUIConnections() @@ -1926,15 +1892,15 @@ void SIDGUI::sdoVideoError(QMediaPlayer::Error error) // Qt5/Windows doesn't support mp4 by default, so suggest K-Lite codecs // Qt6 doesn't need these if (error == QMediaPlayer::FormatError) { - QMessageBox::warning(this, "Video Error", "Unable to play video. Please try installing mp4/h264 codec, such as: K-Lite codedcs."); + MessageDialog::warning(this, "Video Error", "Unable to play video. Please try installing mp4/h264 codec, such as: K-Lite codedcs."); } #elif LINUX if (error == QMediaPlayer::FormatError) { - QMessageBox::warning(this, "Video Error", "Unable to play video. Please try installing mp4/h264 codec, such as gstreamer libav."); + MessageDialog::warning(this, "Video Error", "Unable to play video. Please try installing mp4/h264 codec, such as gstreamer libav."); } #else if (error == QMediaPlayer::FormatError) { - QMessageBox::warning(this, "Video Error", "Unable to play video. Please try installing an mp4/h264 codec."); + MessageDialog::warning(this, "Video Error", "Unable to play video. Please try installing an mp4/h264 codec."); } #endif } @@ -1994,7 +1960,7 @@ void SIDGUI::on_showSats_clicked() } else { - QMessageBox::warning(this, "Error", "Satellite Tracker feature not available"); + MessageDialog::warning(this, "Error", "Satellite Tracker feature not available"); } } @@ -2269,7 +2235,7 @@ void SIDGUI::writeCSV(const QString& filename) QFile file(filename); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QMessageBox::critical(this, "SID", QString("Failed to open file %1").arg(filename)); + MessageDialog::critical(this, "SID", QString("Failed to open file %1").arg(filename)); return; } QTextStream out(&file); @@ -2373,7 +2339,7 @@ void SIDGUI::readCSV(const QString& filename, bool autoload) if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { if (!autoload) { - QMessageBox::critical(this, "SID", QString("Failed to open file %1").arg(filename)); + MessageDialog::critical(this, "SID", QString("Failed to open file %1").arg(filename)); } return; } @@ -2536,7 +2502,7 @@ void SIDGUI::on_saveChartImage_clicked() QPainter painter(&image); ui->chart->render(&painter); if (!image.save(fileNames[0])) { - QMessageBox::critical(this, "SID", QString("Failed to save image to %1").arg(fileNames[0])); + MessageDialog::critical(this, "SID", QString("Failed to save image to %1").arg(fileNames[0])); } } } diff --git a/plugins/feature/sid/sidgui.h b/plugins/feature/sid/sidgui.h index ae1ab9c3f..d2c8784db 100644 --- a/plugins/feature/sid/sidgui.h +++ b/plugins/feature/sid/sidgui.h @@ -152,9 +152,7 @@ private: SIDMain* m_sid; MessageQueue m_inputMessageQueue; - QTimer m_statusTimer; QTimer m_autosaveTimer; - int m_lastFeatureState; QFileDialog m_fileDialog; @@ -281,7 +279,7 @@ private slots: void autoscaleXRightClicked(); void autoscaleYRightClicked(); void todayRightClicked(); - void updateStatus(); + void updateFeatureState(); void autosave(); void on_settings_clicked(); void on_addChannels_clicked(); diff --git a/plugins/feature/simpleptt/simpleptt.cpp b/plugins/feature/simpleptt/simpleptt.cpp index ab85d51e1..5d991e3da 100644 --- a/plugins/feature/simpleptt/simpleptt.cpp +++ b/plugins/feature/simpleptt/simpleptt.cpp @@ -105,7 +105,7 @@ void SimplePTT::start() m_worker->setMessageQueueToGUI(getMessageQueueToGUI()); m_worker->startWork(); - m_state = StRunning; + setState(StRunning); m_thread->start(); SimplePTTWorker::MsgConfigureSimplePTTWorker *msg = SimplePTTWorker::MsgConfigureSimplePTTWorker::create(m_settings, QList(), true); @@ -125,7 +125,7 @@ void SimplePTT::stop() qDebug("SimplePTT::stop"); m_running = false; m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } @@ -359,6 +359,13 @@ void SimplePTT::webapiFormatFeatureSettings( response.getSimplePttSettings()->setVoxEnable(settings.m_voxEnable ? 1 : 0); response.getSimplePttSettings()->setVoxHold(settings.m_voxHold); response.getSimplePttSettings()->setVoxLevel(settings.m_voxLevel); + + if (response.getSimplePttSettings()->getAudioDeviceName()) { + *response.getSimplePttSettings()->getAudioDeviceName() = settings.m_audioDeviceName; + } else { + response.getSimplePttSettings()->setAudioDeviceName(new QString(settings.m_audioDeviceName)); + } + response.getSimplePttSettings()->setGpioControl((int) settings.m_gpioControl); response.getSimplePttSettings()->setRx2txGpioEnable(settings.m_rx2txGPIOEnable ? 1 : 0); response.getSimplePttSettings()->setRx2txGpioMask(settings.m_rx2txGPIOMask); @@ -435,6 +442,9 @@ void SimplePTT::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("vox")) { settings.m_vox = response.getSimplePttSettings()->getVox() != 0; } + if (featureSettingsKeys.contains("audioDeviceName")) { + settings.m_audioDeviceName = *response.getSimplePttSettings()->getAudioDeviceName(); + } if (featureSettingsKeys.contains("voxEnable")) { settings.m_voxEnable = response.getSimplePttSettings()->getVoxEnable() != 0; } diff --git a/plugins/feature/simpleptt/simplepttgui.cpp b/plugins/feature/simpleptt/simplepttgui.cpp index 89e96c944..31612186e 100644 --- a/plugins/feature/simpleptt/simplepttgui.cpp +++ b/plugins/feature/simpleptt/simplepttgui.cpp @@ -187,7 +187,6 @@ SimplePTTGUI::SimplePTTGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea m_pluginAPI(pluginAPI), m_featureUISet(featureUISet), m_doApplySettings(true), - m_lastFeatureState(0), m_lastCommandResult(false), m_lastCommandExitCode(0), m_lastCommandExitStatus(QProcess::NormalExit), @@ -214,6 +213,8 @@ SimplePTTGUI::SimplePTTGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Fea connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); + connect(m_simplePTT, &Feature::stateChanged, this, &SimplePTTGUI::updateFeatureState); + updateFeatureState(); m_statusTooltips.push_back("Idle"); // 0 - all off m_statusTooltips.push_back("Rx on"); // 1 - Rx on @@ -663,32 +664,6 @@ void SimplePTTGUI::on_lastCommandLog_clicked() void SimplePTTGUI::updateStatus() { - int state = m_simplePTT->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_simplePTT->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } - if (m_settings.m_vox) { float peak; @@ -698,6 +673,11 @@ void SimplePTTGUI::updateStatus() } } +void SimplePTTGUI::updateFeatureState() +{ + updateStartStopButton(ui->startStop); +} + void SimplePTTGUI::applySettings(bool force) { if (m_doApplySettings) diff --git a/plugins/feature/simpleptt/simplepttgui.h b/plugins/feature/simpleptt/simplepttgui.h index 76628e29d..195306e91 100644 --- a/plugins/feature/simpleptt/simplepttgui.h +++ b/plugins/feature/simpleptt/simplepttgui.h @@ -63,7 +63,6 @@ private: SimplePTT* m_simplePTT; MessageQueue m_inputMessageQueue; QTimer m_statusTimer; - int m_lastFeatureState; std::vector m_statusColors; std::vector m_statusTooltips; @@ -115,6 +114,7 @@ private slots: void on_lastCommandLog_clicked(); void updateStatus(); + void updateFeatureState(); void audioSelect(const QPoint& p); }; diff --git a/plugins/feature/simpleptt/simplepttsettings.cpp b/plugins/feature/simpleptt/simplepttsettings.cpp index 7e2f2459f..e1e595c48 100644 --- a/plugins/feature/simpleptt/simplepttsettings.cpp +++ b/plugins/feature/simpleptt/simplepttsettings.cpp @@ -219,7 +219,7 @@ void SimplePTTSettings::applySettings(const QStringList& settingsKeys, const Sim m_gpioControl = settings.m_gpioControl; } if (settingsKeys.contains("rx2txGPIOEnable")) { - m_rx2txGPIOMask = settings.m_rx2txGPIOEnable; + m_rx2txGPIOEnable = settings.m_rx2txGPIOEnable; } if (settingsKeys.contains("rx2txGPIOMask")) { m_rx2txGPIOMask = settings.m_rx2txGPIOMask; @@ -234,7 +234,7 @@ void SimplePTTSettings::applySettings(const QStringList& settingsKeys, const Sim m_rx2txCommand = settings.m_rx2txCommand; } if (settingsKeys.contains("tx2rxGPIOEnable")) { - m_tx2rxGPIOMask = settings.m_tx2rxGPIOEnable; + m_tx2rxGPIOEnable = settings.m_tx2rxGPIOEnable; } if (settingsKeys.contains("tx2rxGPIOMask")) { m_tx2rxGPIOMask = settings.m_tx2rxGPIOMask; diff --git a/plugins/feature/skymap/skymap.cpp b/plugins/feature/skymap/skymap.cpp index 1ab429b67..bc3cb63db 100644 --- a/plugins/feature/skymap/skymap.cpp +++ b/plugins/feature/skymap/skymap.cpp @@ -46,7 +46,7 @@ SkyMap::SkyMap(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("SkyMap::SkyMap: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "SkyMap error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -234,10 +234,26 @@ void SkyMap::webapiFormatFeatureSettings( response.getSkyMapSettings()->setDisplayReticle(settings.m_displayReticle ? 1 : 0); response.getSkyMapSettings()->setDisplayGrid(settings.m_displayGrid ? 1 : 0); response.getSkyMapSettings()->setDisplayAntennaFoV(settings.m_displayAntennaFoV ? 1 : 0); - response.getSkyMapSettings()->setMap(new QString(settings.m_map)); - response.getSkyMapSettings()->setBackground(new QString(settings.m_background)); - response.getSkyMapSettings()->setProjection(new QString(settings.m_projection)); - response.getSkyMapSettings()->setSource(new QString(settings.m_source)); + if (response.getSkyMapSettings()->getMap()) { + *response.getSkyMapSettings()->getMap() = settings.m_map; + } else { + response.getSkyMapSettings()->setMap(new QString(settings.m_map)); + } + if (response.getSkyMapSettings()->getBackground()) { + *response.getSkyMapSettings()->getBackground() = settings.m_background; + } else { + response.getSkyMapSettings()->setBackground(new QString(settings.m_background)); + } + if (response.getSkyMapSettings()->getProjection()) { + *response.getSkyMapSettings()->getProjection() = settings.m_projection; + } else { + response.getSkyMapSettings()->setProjection(new QString(settings.m_projection)); + } + if (response.getSkyMapSettings()->getSource()) { + *response.getSkyMapSettings()->getSource() = settings.m_source; + } else { + response.getSkyMapSettings()->setSource(new QString(settings.m_source)); + } response.getSkyMapSettings()->setTrack(settings.m_track ? 1 : 0); response.getSkyMapSettings()->setLatitude(settings.m_latitude); response.getSkyMapSettings()->setLongitude(settings.m_longitude); diff --git a/plugins/feature/startracker/startracker.cpp b/plugins/feature/startracker/startracker.cpp index 3f3c9d054..1fa53a1c4 100644 --- a/plugins/feature/startracker/startracker.cpp +++ b/plugins/feature/startracker/startracker.cpp @@ -54,7 +54,7 @@ StarTracker::StarTracker(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("StarTracker::StarTracker: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "StarTracker error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -117,7 +117,7 @@ void StarTracker::start() m_worker->setMessageQueueToGUI(getMessageQueueToGUI()); m_thread->start(); m_thread->start(); - m_state = StRunning; + setState(StRunning); m_worker->getInputMessageQueue()->push(StarTrackerWorker::MsgConfigureStarTrackerWorker::create(m_settings, QList(), true)); m_worker->getInputMessageQueue()->push(MsgSetSolarFlux::create(m_solarFlux)); @@ -126,7 +126,7 @@ void StarTracker::start() void StarTracker::stop() { qDebug("StarTracker::stop"); - m_state = StIdle; + setState(StIdle); if (m_thread) { m_thread->quit(); @@ -267,7 +267,11 @@ void StarTracker::applySettings(const StarTrackerSettings& settings, const QList webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } int StarTracker::webapiRun(bool run, @@ -365,13 +369,36 @@ void StarTracker::webapiFormatFeatureSettings( SWGSDRangel::SWGFeatureSettings& response, const StarTrackerSettings& settings) { - response.getStarTrackerSettings()->setTarget(new QString(settings.m_target)); - response.getStarTrackerSettings()->setRa(new QString(settings.m_ra)); - response.getStarTrackerSettings()->setDec(new QString(settings.m_dec)); + if (response.getStarTrackerSettings()->getTarget()) { + *response.getStarTrackerSettings()->getTarget() = settings.m_target; + } else { + response.getStarTrackerSettings()->setTarget(new QString(settings.m_target)); + } + if (response.getStarTrackerSettings()->getRa()) { + *response.getStarTrackerSettings()->getRa() = settings.m_ra; + } else { + response.getStarTrackerSettings()->setRa(new QString(settings.m_ra)); + } + if (response.getStarTrackerSettings()->getDec()) { + *response.getStarTrackerSettings()->getDec() = settings.m_dec; + } else { + response.getStarTrackerSettings()->setDec(new QString(settings.m_dec)); + } response.getStarTrackerSettings()->setLatitude(settings.m_latitude); response.getStarTrackerSettings()->setLongitude(settings.m_longitude); - response.getStarTrackerSettings()->setDateTime(new QString(settings.m_dateTime)); - response.getStarTrackerSettings()->setRefraction(new QString(settings.m_refraction)); + if (response.getStarTrackerSettings()->getDateTime()) { + *response.getStarTrackerSettings()->getDateTime() = settings.m_dateTime; + } else { + response.getStarTrackerSettings()->setDateTime(new QString(settings.m_dateTime)); + } + if (response.getStarTrackerSettings()->getRefraction()) { + *response.getStarTrackerSettings()->getRefraction() = settings.m_refraction; + } else { + response.getStarTrackerSettings()->setRefraction(new QString(settings.m_refraction)); + } + response.getStarTrackerSettings()->setDrawSunOnMap(settings.m_drawSunOnMap ? 1 : 0); + response.getStarTrackerSettings()->setDrawMoonOnMap(settings.m_drawMoonOnMap ? 1 : 0); + response.getStarTrackerSettings()->setDrawStarOnMap(settings.m_drawStarOnMap ? 1 : 0); response.getStarTrackerSettings()->setPressure(settings.m_pressure); response.getStarTrackerSettings()->setTemperature(settings.m_temperature); response.getStarTrackerSettings()->setHumidity(settings.m_humidity); @@ -516,6 +543,18 @@ void StarTracker::webapiUpdateFeatureSettings( if (featureSettingsKeys.contains("elevationOffset")) { settings.m_elevationOffset = response.getStarTrackerSettings()->getElevationOffset(); } + if (featureSettingsKeys.contains("drawSunOnMap")) { + settings.m_drawSunOnMap = response.getStarTrackerSettings()->getDrawSunOnMap() != 0; + } + if (featureSettingsKeys.contains("drawMoonOnMap")) { + settings.m_drawMoonOnMap = response.getStarTrackerSettings()->getDrawMoonOnMap() != 0; + } + if (featureSettingsKeys.contains("drawStarOnMap")) { + settings.m_drawStarOnMap = response.getStarTrackerSettings()->getDrawStarOnMap() != 0; + } + if (featureSettingsKeys.contains("refraction")) { + settings.m_refraction = *response.getStarTrackerSettings()->getRefraction(); + } if (settings.m_rollupState && featureSettingsKeys.contains("rollupState")) { settings.m_rollupState->updateFrom(featureSettingsKeys, response.getStarTrackerSettings()->getRollupState()); } diff --git a/plugins/feature/startracker/startrackergui.cpp b/plugins/feature/startracker/startrackergui.cpp index 10de4320a..3fed1fb62 100644 --- a/plugins/feature/startracker/startrackergui.cpp +++ b/plugins/feature/startracker/startrackergui.cpp @@ -38,6 +38,7 @@ #include "feature/featureutils.h" #include "feature/featurewebapiutils.h" #include "channel/channelwebapiutils.h" +#include "gui/messagedialog.h" #include "gui/basicfeaturesettingsdialog.h" #include "gui/dmsspinbox.h" #include "gui/graphicsviewzoom.h" @@ -353,7 +354,6 @@ StarTrackerGUI::StarTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, m_featureUISet(featureUISet), m_doApplySettings(true), m_doPlotChart(true), - m_lastFeatureState(0), m_azElLineChart(nullptr), m_azElPolarChart(nullptr), m_solarFluxChart(nullptr), @@ -420,6 +420,8 @@ StarTrackerGUI::StarTrackerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(1000); + connect(m_starTracker, &Feature::stateChanged, this, &StarTrackerGUI::updateFeatureState); + updateFeatureState(); connect(&m_redrawTimer, &QTimer::timeout, this, &StarTrackerGUI::plotChart); @@ -1053,43 +1055,14 @@ void StarTrackerGUI::updateLST() void StarTrackerGUI::updateStatus() { - int state = m_starTracker->getState(); - - if (m_lastFeatureState != state) - { - // We set checked state of start/stop button, in case it was changed via API - bool oldState; - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(false); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - oldState = ui->startStop->blockSignals(true); - ui->startStop->setChecked(true); - ui->startStop->blockSignals(oldState); - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_starTracker->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } - updateLST(); } +void StarTrackerGUI::updateFeatureState() +{ + updateStartStopButton(ui->startStop); +} + void StarTrackerGUI::applySettings(bool force) { if (m_doApplySettings) @@ -1614,7 +1587,7 @@ void StarTrackerGUI::on_saveAnimation_clicked() apng.addImage(m_animationImages[i]); } if (!apng.save(fileNames[0])) { - QMessageBox::critical(this, "Star Tracker", QString("Failed to write to file %1").arg(fileNames[0])); + MessageDialog::critical(this, "Star Tracker", QString("Failed to write to file %1").arg(fileNames[0])); } } } @@ -3330,7 +3303,7 @@ void StarTrackerGUI::downloadFinished(const QString& filename, bool success) if (success && filename.endsWith("solar_flux.srd")) { readSolarFlux(); } else if (!success) { - QMessageBox::warning(this, "Failed to download file", QString("Failed to download %1").arg(filename)); + MessageDialog::warning(this, "Failed to download file", QString("Failed to download %1").arg(filename)); } } diff --git a/plugins/feature/startracker/startrackergui.h b/plugins/feature/startracker/startrackergui.h index 0a1bb3d92..dc8ed8ec8 100644 --- a/plugins/feature/startracker/startrackergui.h +++ b/plugins/feature/startracker/startrackergui.h @@ -93,7 +93,6 @@ private: MessageQueue m_inputMessageQueue; QTimer m_statusTimer; QTimer m_solarFluxTimer; - int m_lastFeatureState; QChart *m_azElLineChart; QPolarChart *m_azElPolarChart; @@ -257,6 +256,7 @@ private slots: void on_utc_clicked(bool checked=false); void on_setTimeToNow_clicked(bool checked=false); void updateStatus(); + void updateFeatureState(); void on_viewOnMap_clicked(); void on_chartSelect_currentIndexChanged(int index); void on_chartSubSelect_currentIndexChanged(int index); diff --git a/plugins/feature/vorlocalizer/vorlocalizer.cpp b/plugins/feature/vorlocalizer/vorlocalizer.cpp index 6e5d7d010..113d8ae3c 100644 --- a/plugins/feature/vorlocalizer/vorlocalizer.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizer.cpp @@ -54,7 +54,7 @@ VORLocalizer::VORLocalizer(WebAPIAdapterInterface *webAPIAdapterInterface) : m_running(false) { setObjectName(m_featureId); - m_state = StIdle; + setState(StIdle); m_errorMessage = "VORLocalizer error"; m_networkManager = new QNetworkAccessManager(); QObject::connect( @@ -124,7 +124,7 @@ void VORLocalizer::start() m_worker->setMessageQueueToFeature(getInputMessageQueue()); m_worker->setAvailableChannels(&m_availableChannels); m_worker->startWork(); - m_state = StRunning; + setState(StRunning); m_thread->start(); VorLocalizerWorker::MsgConfigureVORLocalizerWorker *msg = VorLocalizerWorker::MsgConfigureVORLocalizerWorker::create(m_settings, QList(), true); @@ -144,7 +144,7 @@ void VORLocalizer::stop() qDebug("VORLocalizer::stop"); m_running = false; m_worker->stopWork(); - m_state = StIdle; + setState(StIdle); m_thread->quit(); m_thread->wait(); } @@ -357,7 +357,11 @@ void VORLocalizer::applySettings(const VORLocalizerSettings& settings, const QLi webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } } void VORLocalizer::updateChannels() diff --git a/plugins/feature/vorlocalizer/vorlocalizergui.cpp b/plugins/feature/vorlocalizer/vorlocalizergui.cpp index 02b4172d1..307ed229e 100644 --- a/plugins/feature/vorlocalizer/vorlocalizergui.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizergui.cpp @@ -36,6 +36,7 @@ #include "plugin/pluginapi.h" #include "util/morse.h" #include "util/units.h" +#include "gui/messagedialog.h" #include "gui/basicfeaturesettingsdialog.h" #include "gui/dialpopup.h" #include "gui/dialogpositioner.h" @@ -920,7 +921,7 @@ void VORLocalizerGUI::downloadingURL(const QString& url) void VORLocalizerGUI::downloadError(const QString& error) { - QMessageBox::critical(this, "VOR Localizer", error); + MessageDialog::critical(this, "VOR Localizer", error); if (m_progressDialog) { @@ -1134,7 +1135,6 @@ VORLocalizerGUI::VORLocalizerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe m_tickCount(0), m_progressDialog(nullptr), m_vorModel(this), - m_lastFeatureState(0), m_rrSecondsCount(0) { m_feature = feature; @@ -1197,8 +1197,8 @@ VORLocalizerGUI::VORLocalizerGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISe connect(ui->vorData->horizontalHeader(), SIGNAL(sectionMoved(int, int, int)), SLOT(vorData_sectionMoved(int, int, int))); connect(ui->vorData->horizontalHeader(), SIGNAL(sectionResized(int, int, int)), SLOT(vorData_sectionResized(int, int, int))); - connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); - m_statusTimer.start(1000); + connect(m_vorLocalizer, &Feature::stateChanged, this, &VORLocalizerGUI::updateFeatureState); + updateFeatureState(); ui->rrTurnTimeProgress->setMaximum(m_settings.m_rrTime); ui->rrTurnTimeProgress->setValue(0); @@ -1294,33 +1294,9 @@ void VORLocalizerGUI::displaySettings() blockApplySettings(false); } -void VORLocalizerGUI::updateStatus() +void VORLocalizerGUI::updateFeatureState() { - int state = m_vorLocalizer->getState(); - - if (m_lastFeatureState != state) - { - switch (state) - { - case Feature::StNotStarted: - ui->startStop->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); - break; - case Feature::StIdle: - ui->startStop->setStyleSheet("QToolButton { background-color : blue; }"); - break; - case Feature::StRunning: - ui->startStop->setStyleSheet("QToolButton { background-color : green; }"); - break; - case Feature::StError: - ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_vorLocalizer->getErrorMessage()); - break; - default: - break; - } - - m_lastFeatureState = state; - } + updateStartStopButton(ui->startStop); } void VORLocalizerGUI::tick() @@ -1411,6 +1387,8 @@ void VORLocalizerGUI::redrawMap() void VORLocalizerGUI::showEvent(QShowEvent *event) { + FeatureGUI::showEvent(event); + if (!event->spontaneous()) { // Workaround for https://bugreports.qt.io/browse/QTBUG-100333 diff --git a/plugins/feature/vorlocalizer/vorlocalizergui.h b/plugins/feature/vorlocalizer/vorlocalizergui.h index 2c3ac99b8..9a1eda683 100644 --- a/plugins/feature/vorlocalizer/vorlocalizergui.h +++ b/plugins/feature/vorlocalizer/vorlocalizergui.h @@ -265,8 +265,6 @@ private: QHash m_selectedVORs; AzEl m_azEl; // Position of station QIcon m_muteIcon; - QTimer m_statusTimer; - int m_lastFeatureState; int m_rrSecondsCount; QTimer m_redrawMapTimer; QString m_mapFeaturePositionName; @@ -309,7 +307,7 @@ private slots: void onWidgetRolled(QWidget* widget, bool rollDown); void onMenuDialogCalled(const QPoint& p); void handleInputMessages(); - void updateStatus(); + void updateFeatureState(); void tick(); void downloadingURL(const QString& url); void downloadError(const QString& error); diff --git a/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp b/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp index c50e0eea4..70d295ae1 100644 --- a/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp +++ b/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp @@ -799,13 +799,13 @@ void AudioCATSISO::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("catPTTMethodIndex")) { settings.m_catPTTMethodIndex = response.getAudioCatsisoSettings()->getCatPttMethodIndex(); } - if (deviceSettingsKeys.contains("catPTTMethodIndex")) { + if (deviceSettingsKeys.contains("catDTRHigh")) { settings.m_catDTRHigh = response.getAudioCatsisoSettings()->getCatDtrHigh() != 0; } if (deviceSettingsKeys.contains("catRTSHigh")) { settings.m_catRTSHigh = response.getAudioCatsisoSettings()->getCatRtsHigh() != 0; } - if (deviceSettingsKeys.contains("catRTSHigh")) { + if (deviceSettingsKeys.contains("catPollingMs")) { settings.m_catPollingMs = response.getAudioCatsisoSettings()->getCatPollingMs(); } @@ -844,7 +844,11 @@ void AudioCATSISO::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re response.getAudioCatsisoSettings()->setIqCorrection(settings.m_iqCorrection ? 1 : 0); response.getAudioCatsisoSettings()->setTransverterDeltaFrequency(settings.m_transverterDeltaFrequency); response.getAudioCatsisoSettings()->setTransverterMode(settings.m_transverterMode ? 1 : 0); - response.getAudioCatsisoSettings()->setRxDeviceName(new QString(settings.m_rxDeviceName)); + if (response.getAudioCatsisoSettings()->getRxDeviceName()) { + *response.getAudioCatsisoSettings()->getRxDeviceName() = settings.m_rxDeviceName; + } else { + response.getAudioCatsisoSettings()->setRxDeviceName(new QString(settings.m_rxDeviceName)); + } response.getAudioCatsisoSettings()->setRxIqMapping((int)settings.m_rxIQMapping); response.getAudioCatsisoSettings()->setLog2Decim(settings.m_log2Decim); response.getAudioCatsisoSettings()->setFcPosRx((int) settings.m_fcPosRx); @@ -852,7 +856,11 @@ void AudioCATSISO::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re response.getAudioCatsisoSettings()->setIqCorrection(settings.m_iqCorrection ? 1 : 0); response.getAudioCatsisoSettings()->setRxVolume(settings.m_rxVolume); - response.getAudioCatsisoSettings()->setTxDeviceName(new QString(settings.m_txDeviceName)); + if (response.getAudioCatsisoSettings()->getTxDeviceName()) { + *response.getAudioCatsisoSettings()->getTxDeviceName() = settings.m_txDeviceName; + } else { + response.getAudioCatsisoSettings()->setTxDeviceName(new QString(settings.m_txDeviceName)); + } response.getAudioCatsisoSettings()->setTxIqMapping((int)settings.m_txIQMapping); response.getAudioCatsisoSettings()->setTxVolume(settings.m_txVolume); diff --git a/plugins/samplemimo/audiocatsiso/audiocatsisogui.cpp b/plugins/samplemimo/audiocatsiso/audiocatsisogui.cpp index 1592c4da5..81696d3c4 100644 --- a/plugins/samplemimo/audiocatsiso/audiocatsisogui.cpp +++ b/plugins/samplemimo/audiocatsiso/audiocatsisogui.cpp @@ -26,6 +26,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/dialpopup.h" @@ -649,7 +650,7 @@ void AudioCATSISOGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplemimo/audiocatsiso/audiocatsisosettings.cpp b/plugins/samplemimo/audiocatsiso/audiocatsisosettings.cpp index 8f7731482..23547156f 100644 --- a/plugins/samplemimo/audiocatsiso/audiocatsisosettings.cpp +++ b/plugins/samplemimo/audiocatsiso/audiocatsisosettings.cpp @@ -286,6 +286,9 @@ void AudioCATSISOSettings::applySettings(const QStringList& settingsKeys, const if (settingsKeys.contains("log2Decim")) { m_log2Decim = settings.m_log2Decim; } + if (settingsKeys.contains("iqOrder")) { + m_iqOrder = settings.m_iqOrder; + } if (settingsKeys.contains("rxIQMapping")) { m_rxIQMapping = settings.m_rxIQMapping; } diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mimo.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mimo.cpp index 544a8ec72..075047ebf 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mimo.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mimo.cpp @@ -742,7 +742,11 @@ bool BladeRF2MIMO::applySettings(const BladeRF2MIMOSettings& settings, const QLi webapiReverseSendSettings(settingsKeys, settings, fullUpdate || force); } - m_settings = settings; + if (force) { + m_settings = settings; + } else { + m_settings.applySettings(settingsKeys, settings); + } return true; } @@ -967,7 +971,7 @@ void BladeRF2MIMO::webapiUpdateDeviceSettings( settings.m_log2Interp = response.getBladeRf2MimoSettings()->getLog2Interp(); } if (deviceSettingsKeys.contains("fcPosTx")) { - settings.m_fcPosRx = static_cast(response.getBladeRf2MimoSettings()->getFcPosTx()); + settings.m_fcPosTx = static_cast(response.getBladeRf2MimoSettings()->getFcPosTx()); } if (deviceSettingsKeys.contains("txBandwidth")) { settings.m_txBandwidth = response.getBladeRf2MimoSettings()->getTxBandwidth(); diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp index bc59a06a7..fbc29e68d 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp @@ -27,6 +27,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -841,7 +842,7 @@ void BladeRF2MIMOGui::updateStatus() break; case DeviceAPI::StError: ui->startStopRx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(0)); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(0)); break; default: break; @@ -866,7 +867,7 @@ void BladeRF2MIMOGui::updateStatus() break; case DeviceAPI::StError: ui->startStopTx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); break; default: break; diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp index fd4f817c8..ae591348b 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp @@ -26,6 +26,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -691,7 +692,7 @@ void LimeSDRMIMOGUI::updateStatus() break; case DeviceAPI::StError: ui->startStopRx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(0)); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(0)); break; default: break; @@ -716,7 +717,7 @@ void LimeSDRMIMOGUI::updateStatus() break; case DeviceAPI::StError: ui->startStopTx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); break; default: break; diff --git a/plugins/samplemimo/metismiso/metismisogui.cpp b/plugins/samplemimo/metismiso/metismisogui.cpp index 4e780a39a..ae2e68e74 100644 --- a/plugins/samplemimo/metismiso/metismisogui.cpp +++ b/plugins/samplemimo/metismiso/metismisogui.cpp @@ -26,6 +26,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/dialpopup.h" @@ -452,7 +453,7 @@ void MetisMISOGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmimo.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmimo.cpp index 7b4684583..a6b5ab79e 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmimo.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmimo.cpp @@ -1277,9 +1277,17 @@ void PlutoSDRMIMO::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respon response.getPlutoSdrMimoReport()->setAdcRate(getADCSampleRate()); std::string rssiStr; getRxRSSI(rssiStr, 0); - response.getPlutoSdrMimoReport()->setRssiRx0(new QString(rssiStr.c_str())); + if (response.getPlutoSdrMimoReport()->getRssiRx0()) { + *response.getPlutoSdrMimoReport()->getRssiRx0() = rssiStr.c_str(); + } else { + response.getPlutoSdrMimoReport()->setRssiRx0(new QString(rssiStr.c_str())); + } getRxRSSI(rssiStr, 1); - response.getPlutoSdrMimoReport()->setRssiRx1(new QString(rssiStr.c_str())); + if (response.getPlutoSdrMimoReport()->getRssiRx1()) { + *response.getPlutoSdrMimoReport()->getRssiRx1() = rssiStr.c_str(); + } else { + response.getPlutoSdrMimoReport()->setRssiRx1(new QString(rssiStr.c_str())); + } int gainDB; getRxGain(gainDB, 0); response.getPlutoSdrMimoReport()->setRx0GainDb(gainDB); @@ -1287,9 +1295,17 @@ void PlutoSDRMIMO::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respon response.getPlutoSdrMimoReport()->setRx1GainDb(gainDB); response.getPlutoSdrMimoReport()->setDacRate(getDACSampleRate()); getTxRSSI(rssiStr, 0); - response.getPlutoSdrMimoReport()->setRssiTx0(new QString(rssiStr.c_str())); + if (response.getPlutoSdrMimoReport()->getRssiTx0()) { + *response.getPlutoSdrMimoReport()->getRssiTx0() = rssiStr.c_str(); + } else { + response.getPlutoSdrMimoReport()->setRssiTx0(new QString(rssiStr.c_str())); + } getTxRSSI(rssiStr, 1); - response.getPlutoSdrMimoReport()->setRssiTx1(new QString(rssiStr.c_str())); + if (response.getPlutoSdrMimoReport()->getRssiTx1()) { + *response.getPlutoSdrMimoReport()->getRssiTx1() = rssiStr.c_str(); + } else { + response.getPlutoSdrMimoReport()->setRssiTx1(new QString(rssiStr.c_str())); + } } void PlutoSDRMIMO::networkManagerFinished(QNetworkReply *reply) diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp index 2c088565b..229056d51 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp @@ -26,6 +26,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -492,7 +493,7 @@ void PlutoSDRMIMOGUI::updateStatus() ui->startStopRx->setChecked(false); } ui->startStopRx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; @@ -520,7 +521,7 @@ void PlutoSDRMIMOGUI::updateStatus() ui->startStopTx->setChecked(false); } ui->startStopTx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplemimo/testmi/testmigui.cpp b/plugins/samplemimo/testmi/testmigui.cpp index 3276418ce..3e9df1512 100644 --- a/plugins/samplemimo/testmi/testmigui.cpp +++ b/plugins/samplemimo/testmi/testmigui.cpp @@ -26,6 +26,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -475,7 +476,7 @@ void TestMIGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplemimo/testmosync/testmosyncgui.cpp b/plugins/samplemimo/testmosync/testmosyncgui.cpp index 5a1c4b070..dadee8359 100644 --- a/plugins/samplemimo/testmosync/testmosyncgui.cpp +++ b/plugins/samplemimo/testmosync/testmosyncgui.cpp @@ -23,6 +23,7 @@ #include #include +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -250,7 +251,7 @@ void TestMOSyncGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplemimo/xtrxmimo/xtrxmimo.cpp b/plugins/samplemimo/xtrxmimo/xtrxmimo.cpp index 14c6a60c4..f8c8fdb0e 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmimo.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmimo.cpp @@ -1355,7 +1355,7 @@ void XTRXMIMO::webapiUpdateDeviceSettings( settings.m_gainTx0 = response.getXtrxMimoSettings()->getGainTx0(); } if (deviceSettingsKeys.contains("pwrmodeTx0")) { - settings.m_pwrmodeRx0 = response.getXtrxMimoSettings()->getPwrmodeTx0(); + settings.m_pwrmodeTx0 = response.getXtrxMimoSettings()->getPwrmodeTx0(); } // Tx1 if (deviceSettingsKeys.contains("lpfBWTx1")) { @@ -1365,7 +1365,7 @@ void XTRXMIMO::webapiUpdateDeviceSettings( settings.m_gainTx1 = response.getXtrxMimoSettings()->getGainTx1(); } if (deviceSettingsKeys.contains("pwrmodeTx1")) { - settings.m_pwrmodeRx1 = response.getXtrxMimoSettings()->getPwrmodeTx1(); + settings.m_pwrmodeTx1 = response.getXtrxMimoSettings()->getPwrmodeTx1(); } } diff --git a/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp b/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp index 61bbd371f..f61e535d7 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmimogui.cpp @@ -25,6 +25,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -577,7 +578,7 @@ void XTRXMIMOGUI::updateStatus() break; case DeviceAPI::StError: ui->startStopRx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; @@ -601,7 +602,7 @@ void XTRXMIMOGUI::updateStatus() break; case DeviceAPI::StError: ui->startStopTx->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage(1)); break; default: break; diff --git a/plugins/samplemimo/xtrxmimo/xtrxmimosettings.cpp b/plugins/samplemimo/xtrxmimo/xtrxmimosettings.cpp index 4f5c1a49e..480de37a3 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmimosettings.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmimosettings.cpp @@ -225,6 +225,12 @@ void XTRXMIMOSettings::applySettings(const QStringList& settingsKeys, const XTRX if (settingsKeys.contains("title")) { m_title = settings.m_title; } + if (settingsKeys.contains("gpioDir")) { + m_gpioDir = settings.m_gpioDir; + } + if (settingsKeys.contains("gpioPins")) { + m_gpioPins = settings.m_gpioPins; + } if (settingsKeys.contains("extClock")) { m_extClock = settings.m_extClock; } diff --git a/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutputgui.cpp b/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutputgui.cpp index 704ef368b..af9672a05 100644 --- a/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutputgui.cpp +++ b/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutputgui.cpp @@ -31,6 +31,7 @@ #include #include "ui_aaroniartsaoutputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -353,7 +354,7 @@ void AaroniaRTSAOutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/audiooutput/audiooutput.cpp b/plugins/samplesink/audiooutput/audiooutput.cpp index 11fb8c777..2978c1f5e 100644 --- a/plugins/samplesink/audiooutput/audiooutput.cpp +++ b/plugins/samplesink/audiooutput/audiooutput.cpp @@ -366,7 +366,11 @@ void AudioOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res response.getAudioOutputSettings()->setTitle(new QString(settings.m_title)); } - response.getAudioOutputSettings()->setDeviceName(new QString(settings.m_deviceName)); + if (response.getAudioOutputSettings()->getDeviceName()) { + *response.getAudioOutputSettings()->getDeviceName() = settings.m_deviceName; + } else { + response.getAudioOutputSettings()->setDeviceName(new QString(settings.m_deviceName)); + } response.getAudioOutputSettings()->setVolume(settings.m_volume); response.getAudioOutputSettings()->setIqMapping((int) settings.m_iqMapping); diff --git a/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp b/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp index 72cd5f1e1..a67814896 100644 --- a/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp +++ b/plugins/samplesink/bladerf1output/bladerf1outputgui.cpp @@ -22,6 +22,7 @@ #include #include "ui_bladerf1outputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -431,7 +432,7 @@ void Bladerf1OutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp index 797550286..a26d065d5 100644 --- a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp +++ b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp @@ -23,6 +23,7 @@ #include #include "ui_bladerf2outputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -447,7 +448,7 @@ void BladeRF2OutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/fileoutput/fileoutput.cpp b/plugins/samplesink/fileoutput/fileoutput.cpp index e8e942afb..f9544c0f2 100644 --- a/plugins/samplesink/fileoutput/fileoutput.cpp +++ b/plugins/samplesink/fileoutput/fileoutput.cpp @@ -417,7 +417,11 @@ void FileOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& resp response.getFileOutputSettings()->setTitle(new QString(settings.m_title)); } - response.getFileOutputSettings()->setFileName(new QString(settings.m_fileName)); + if (response.getFileOutputSettings()->getFileName()) { + *response.getFileOutputSettings()->getFileName() = settings.m_fileName; + } else { + response.getFileOutputSettings()->setFileName(new QString(settings.m_fileName)); + } response.getFileOutputSettings()->setCenterFrequency(settings.m_centerFrequency); response.getFileOutputSettings()->setSampleRate(settings.m_sampleRate); response.getFileOutputSettings()->setLog2Interp(settings.m_log2Interp); diff --git a/plugins/samplesink/fileoutput/fileoutputgui.cpp b/plugins/samplesink/fileoutput/fileoutputgui.cpp index e94058045..71e8b4fbc 100644 --- a/plugins/samplesink/fileoutput/fileoutputgui.cpp +++ b/plugins/samplesink/fileoutput/fileoutputgui.cpp @@ -26,6 +26,7 @@ #include #include "ui_fileoutputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -256,7 +257,7 @@ void FileOutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp index 1cae2ddf6..c2a12c5f5 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp @@ -21,6 +21,7 @@ #include +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -464,7 +465,7 @@ void HackRFOutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp index a24a254b2..995db5c00 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp @@ -20,6 +20,7 @@ #include #include "ui_limesdroutputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -504,7 +505,7 @@ void LimeSDROutputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/localoutput/localoutputgui.cpp b/plugins/samplesink/localoutput/localoutputgui.cpp index 6c4bb79f0..248838827 100644 --- a/plugins/samplesink/localoutput/localoutputgui.cpp +++ b/plugins/samplesink/localoutput/localoutputgui.cpp @@ -31,6 +31,7 @@ #include #include "ui_localoutputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -279,7 +280,7 @@ void LocalOutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/plutosdroutput/plutosdroutput.cpp b/plugins/samplesink/plutosdroutput/plutosdroutput.cpp index 7ddeda423..7ebb8af76 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutput.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutput.cpp @@ -904,7 +904,11 @@ void PlutoSDROutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp response.getPlutoSdrOutputReport()->setDacRate(getDACSampleRate()); std::string rssiStr; getRSSI(rssiStr); - response.getPlutoSdrOutputReport()->setRssi(new QString(rssiStr.c_str())); + if (response.getPlutoSdrOutputReport()->getRssi()) { + *response.getPlutoSdrOutputReport()->getRssi() = rssiStr.c_str(); + } else { + response.getPlutoSdrOutputReport()->setRssi(new QString(rssiStr.c_str())); + } fetchTemperature(); response.getPlutoSdrOutputReport()->setTemperature(getTemperature()); } diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp index 9bfdbf630..d43246ebc 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp @@ -25,6 +25,7 @@ #include #include "dsp/dspcommands.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialpopup.h" @@ -414,7 +415,7 @@ void PlutoSDROutputGUI::updateStatus() ui->startStop->setChecked(false); } ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/remoteoutput/remoteoutput.cpp b/plugins/samplesink/remoteoutput/remoteoutput.cpp index 38e0a4ffe..e39eb9218 100644 --- a/plugins/samplesink/remoteoutput/remoteoutput.cpp +++ b/plugins/samplesink/remoteoutput/remoteoutput.cpp @@ -461,9 +461,17 @@ void RemoteOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& re response.getRemoteOutputSettings()->setNbFecBlocks(settings.m_nbFECBlocks); response.getRemoteOutputSettings()->setNbTxBytes(settings.m_nbTxBytes); - response.getRemoteOutputSettings()->setApiAddress(new QString(settings.m_apiAddress)); + if (response.getRemoteOutputSettings()->getApiAddress()) { + *response.getRemoteOutputSettings()->getApiAddress() = settings.m_apiAddress; + } else { + response.getRemoteOutputSettings()->setApiAddress(new QString(settings.m_apiAddress)); + } response.getRemoteOutputSettings()->setApiPort(settings.m_apiPort); - response.getRemoteOutputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + if (response.getRemoteOutputSettings()->getDataAddress()) { + *response.getRemoteOutputSettings()->getDataAddress() = settings.m_dataAddress; + } else { + response.getRemoteOutputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + } response.getRemoteOutputSettings()->setDataPort(settings.m_dataPort); response.getRemoteOutputSettings()->setDeviceIndex(settings.m_deviceIndex); response.getRemoteOutputSettings()->setChannelIndex(settings.m_channelIndex); diff --git a/plugins/samplesink/remoteoutput/remoteoutputgui.cpp b/plugins/samplesink/remoteoutput/remoteoutputgui.cpp index 8a23ffc93..8d09a582e 100644 --- a/plugins/samplesink/remoteoutput/remoteoutputgui.cpp +++ b/plugins/samplesink/remoteoutput/remoteoutputgui.cpp @@ -27,6 +27,7 @@ #include #include "ui_remoteoutputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialpopup.h" @@ -276,7 +277,7 @@ void RemoteOutputSinkGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/soapysdroutput/soapysdroutput.cpp b/plugins/samplesink/soapysdroutput/soapysdroutput.cpp index 589053b88..e9b0232c7 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutput.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutput.cpp @@ -1652,10 +1652,22 @@ void SoapySDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& for (const auto& itName : settings.m_tunableElements.keys()) { response.getSoapySdrOutputSettings()->getTunableElements()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrOutputSettings()->getTunableElements()->back()->setKey(new QString( itName)); + if (response.getSoapySdrOutputSettings()->getTunableElements()->back()->getKey()) { + *response.getSoapySdrOutputSettings()->getTunableElements()->back()->getKey() = itName; + } else { + response.getSoapySdrOutputSettings()->getTunableElements()->back()->setKey(new QString( itName)); + } double value = settings.m_tunableElements.value(itName); - response.getSoapySdrOutputSettings()->getTunableElements()->back()->setValueString(new QString(tr("%1").arg(value))); - response.getSoapySdrOutputSettings()->getTunableElements()->back()->setValueType(new QString("float")); + if (response.getSoapySdrOutputSettings()->getTunableElements()->back()->getValueString()) { + *response.getSoapySdrOutputSettings()->getTunableElements()->back()->getValueString() = tr("%1").arg(value); + } else { + response.getSoapySdrOutputSettings()->getTunableElements()->back()->setValueString(new QString(tr("%1").arg(value))); + } + if (response.getSoapySdrOutputSettings()->getTunableElements()->back()->getValueType()) { + *response.getSoapySdrOutputSettings()->getTunableElements()->back()->getValueType() = "float"; + } else { + response.getSoapySdrOutputSettings()->getTunableElements()->back()->setValueType(new QString("float")); + } } response.getSoapySdrOutputSettings()->setBandwidth(settings.m_bandwidth); @@ -1670,10 +1682,22 @@ void SoapySDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& for (const auto& itName : settings.m_individualGains.keys()) { response.getSoapySdrOutputSettings()->getIndividualGains()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setKey(new QString(itName)); + if (response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getKey()) { + *response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getKey() = itName; + } else { + response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setKey(new QString(itName)); + } double value = settings.m_individualGains.value(itName); - response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setValueString(new QString(tr("%1").arg(value))); - response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setValueType(new QString("float")); + if (response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getValueString()) { + *response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getValueString() = tr("%1").arg(value); + } else { + response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setValueString(new QString(tr("%1").arg(value))); + } + if (response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getValueType()) { + *response.getSoapySdrOutputSettings()->getIndividualGains()->back()->getValueType() = "float"; + } else { + response.getSoapySdrOutputSettings()->getIndividualGains()->back()->setValueType(new QString("float")); + } } response.getSoapySdrOutputSettings()->setAutoGain(settings.m_autoGain ? 1 : 0); @@ -1703,7 +1727,11 @@ void SoapySDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& for (const auto& itName : settings.m_streamArgSettings.keys()) { response.getSoapySdrOutputSettings()->getStreamArgSettings()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrOutputSettings()->getStreamArgSettings()->back()->setKey(new QString(itName)); + if (response.getSoapySdrOutputSettings()->getStreamArgSettings()->back()->getKey()) { + *response.getSoapySdrOutputSettings()->getStreamArgSettings()->back()->getKey() = itName; + } else { + response.getSoapySdrOutputSettings()->getStreamArgSettings()->back()->setKey(new QString(itName)); + } const QVariant& v = settings.m_streamArgSettings.value(itName); webapiFormatArgValue(v, response.getSoapySdrOutputSettings()->getStreamArgSettings()->back()); } @@ -1717,7 +1745,11 @@ void SoapySDROutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& for (const auto& itName : settings.m_deviceArgSettings.keys()) { response.getSoapySdrOutputSettings()->getDeviceArgSettings()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back()->setKey(new QString(itName)); + if (response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back()->getKey()) { + *response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back()->getKey() = itName; + } else { + response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back()->setKey(new QString(itName)); + } const QVariant& v = settings.m_deviceArgSettings.value(itName); webapiFormatArgValue(v, response.getSoapySdrOutputSettings()->getDeviceArgSettings()->back()); } @@ -1819,7 +1851,11 @@ void SoapySDROutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp response.getSoapySdrOutputReport()->getGainSettings()->back()->setRange(new SWGSDRangel::SWGRangeFloat()); response.getSoapySdrOutputReport()->getGainSettings()->back()->getRange()->setMin(itGain.m_range.minimum()); response.getSoapySdrOutputReport()->getGainSettings()->back()->getRange()->setMax(itGain.m_range.maximum()); - response.getSoapySdrOutputReport()->getGainSettings()->back()->setName(new QString(itGain.m_name.c_str())); + if (response.getSoapySdrOutputReport()->getGainSettings()->back()->getName()) { + *response.getSoapySdrOutputReport()->getGainSettings()->back()->getName() = itGain.m_name.c_str(); + } else { + response.getSoapySdrOutputReport()->getGainSettings()->back()->setName(new QString(itGain.m_name.c_str())); + } } } @@ -1839,7 +1875,11 @@ void SoapySDROutput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp response.getSoapySdrOutputReport()->getFrequencySettings()->back()->getRanges()->back()->setMax(itRange.maximum()); } - response.getSoapySdrOutputReport()->getFrequencySettings()->back()->setName(new QString(itFreq.m_name.c_str())); + if (response.getSoapySdrOutputReport()->getFrequencySettings()->back()->getName()) { + *response.getSoapySdrOutputReport()->getFrequencySettings()->back()->getName() = itFreq.m_name.c_str(); + } else { + response.getSoapySdrOutputReport()->getFrequencySettings()->back()->setName(new QString(itFreq.m_name.c_str())); + } } } diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp index aad51e64d..f3339cf32 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp @@ -24,6 +24,7 @@ #include "device/deviceapi.h" #include "device/deviceuiset.h" #include "ui_soapysdroutputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -877,7 +878,7 @@ void SoapySDROutputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/testsink/testsinkgui.cpp b/plugins/samplesink/testsink/testsinkgui.cpp index 1670122e7..e69112d25 100644 --- a/plugins/samplesink/testsink/testsinkgui.cpp +++ b/plugins/samplesink/testsink/testsinkgui.cpp @@ -24,6 +24,7 @@ #include #include "ui_testsinkgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -232,7 +233,7 @@ void TestSinkGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/usrpoutput/usrpoutput.cpp b/plugins/samplesink/usrpoutput/usrpoutput.cpp index b5ba7eb02..a6a6c1072 100644 --- a/plugins/samplesink/usrpoutput/usrpoutput.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutput.cpp @@ -1115,11 +1115,19 @@ void USRPOutput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& resp response.getUsrpOutputSettings()->setTitle(new QString(settings.m_title)); } - response.getUsrpOutputSettings()->setAntennaPath(new QString(settings.m_antennaPath)); + if (response.getUsrpOutputSettings()->getAntennaPath()) { + *response.getUsrpOutputSettings()->getAntennaPath() = settings.m_antennaPath; + } else { + response.getUsrpOutputSettings()->setAntennaPath(new QString(settings.m_antennaPath)); + } response.getUsrpOutputSettings()->setCenterFrequency(settings.m_centerFrequency); response.getUsrpOutputSettings()->setDevSampleRate(settings.m_devSampleRate); response.getUsrpOutputSettings()->setLoOffset(settings.m_loOffset); - response.getUsrpOutputSettings()->setClockSource(new QString(settings.m_clockSource)); + if (response.getUsrpOutputSettings()->getClockSource()) { + *response.getUsrpOutputSettings()->getClockSource() = settings.m_clockSource; + } else { + response.getUsrpOutputSettings()->setClockSource(new QString(settings.m_clockSource)); + } response.getUsrpOutputSettings()->setGain(settings.m_gain); response.getUsrpOutputSettings()->setLog2SoftInterp(settings.m_log2SoftInterp); response.getUsrpOutputSettings()->setLpfBw(settings.m_lpfBW); diff --git a/plugins/samplesink/usrpoutput/usrpoutputgui.cpp b/plugins/samplesink/usrpoutput/usrpoutputgui.cpp index 4d864efd3..593a50f3c 100644 --- a/plugins/samplesink/usrpoutput/usrpoutputgui.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutputgui.cpp @@ -20,6 +20,7 @@ #include #include "ui_usrpoutputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -436,7 +437,7 @@ void USRPOutputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp b/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp index f23c6a2ec..e98661f1a 100644 --- a/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp +++ b/plugins/samplesink/xtrxoutput/xtrxoutputgui.cpp @@ -22,6 +22,7 @@ #include #include "ui_xtrxoutputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -414,7 +415,7 @@ void XTRXOutputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/aaroniartsainput/aaroniartsainputgui.cpp b/plugins/samplesource/aaroniartsainput/aaroniartsainputgui.cpp index d4b35cb05..696df68bb 100644 --- a/plugins/samplesource/aaroniartsainput/aaroniartsainputgui.cpp +++ b/plugins/samplesource/aaroniartsainput/aaroniartsainputgui.cpp @@ -26,6 +26,7 @@ #include #include "ui_aaroniartsainputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -217,7 +218,7 @@ void AaroniaRTSAInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/airspy/airspygui.cpp b/plugins/samplesource/airspy/airspygui.cpp index 36a3d4bbd..65ef826f0 100644 --- a/plugins/samplesource/airspy/airspygui.cpp +++ b/plugins/samplesource/airspy/airspygui.cpp @@ -28,6 +28,7 @@ #include "device/deviceuiset.h" #include "ui_airspygui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -438,7 +439,7 @@ void AirspyGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/airspyhf/airspyhfgui.cpp b/plugins/samplesource/airspyhf/airspyhfgui.cpp index 34a56a387..47f03ab59 100644 --- a/plugins/samplesource/airspyhf/airspyhfgui.cpp +++ b/plugins/samplesource/airspyhf/airspyhfgui.cpp @@ -26,6 +26,7 @@ #include "device/deviceuiset.h" #include "ui_airspyhfgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -466,7 +467,7 @@ void AirspyHFGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp index 481d9d1b1..7b1647fde 100644 --- a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp +++ b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp @@ -368,6 +368,10 @@ void AndroidSDRDriverInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("agc")) { settings.m_agc = response.getAndroidSdrDriverInputSettings()->getAgc() != 0; } + // The API exposes a single gain, which is the first stage, as the report does + if (deviceSettingsKeys.contains("gain")) { + settings.m_gain[0] = response.getAndroidSdrDriverInputSettings()->getGain(); + } if (deviceSettingsKeys.contains("rfBW")) { settings.m_rfBW = response.getAndroidSdrDriverInputSettings()->getRfBw(); } diff --git a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputgui.cpp b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputgui.cpp index ae4d11612..5e2b456f7 100644 --- a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputgui.cpp +++ b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinputgui.cpp @@ -21,6 +21,7 @@ #include #include "ui_androidsdrdriverinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -542,7 +543,7 @@ void AndroidSDRDriverInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/audioinput/audioinput.cpp b/plugins/samplesource/audioinput/audioinput.cpp index 9af945b0a..ca0e8744c 100644 --- a/plugins/samplesource/audioinput/audioinput.cpp +++ b/plugins/samplesource/audioinput/audioinput.cpp @@ -385,12 +385,22 @@ int AudioInput::webapiSettingsPutPatch( AudioInputSettings settings = m_settings; webapiUpdateDeviceSettings(settings, deviceSettingsKeys, response); - MsgConfigureAudioInput *msg = MsgConfigureAudioInput::create(settings, deviceSettingsKeys, force); + // Map API names to setting names + QStringList settingsKeys = deviceSettingsKeys; + + if (settingsKeys.contains("device") && !settingsKeys.contains("deviceName")) { + settingsKeys.append("deviceName"); + } + if (settingsKeys.contains("devSampleRate") && !settingsKeys.contains("sampleRate")) { + settingsKeys.append("sampleRate"); + } + + MsgConfigureAudioInput *msg = MsgConfigureAudioInput::create(settings, settingsKeys, force); m_inputMessageQueue.push(msg); if (m_guiMessageQueue) // forward to GUI if any { - MsgConfigureAudioInput *msgToGUI = MsgConfigureAudioInput::create(settings, deviceSettingsKeys, force); + MsgConfigureAudioInput *msgToGUI = MsgConfigureAudioInput::create(settings, settingsKeys, force); m_guiMessageQueue->push(msgToGUI); } @@ -452,7 +462,11 @@ void AudioInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& resp response.getAudioInputSettings()->setTitle(new QString(settings.m_title)); } - response.getAudioInputSettings()->setDevice(new QString(settings.m_deviceName)); + if (response.getAudioInputSettings()->getDevice()) { + *response.getAudioInputSettings()->getDevice() = settings.m_deviceName; + } else { + response.getAudioInputSettings()->setDevice(new QString(settings.m_deviceName)); + } response.getAudioInputSettings()->setDevSampleRate(settings.m_sampleRate); response.getAudioInputSettings()->setVolume(settings.m_volume); response.getAudioInputSettings()->setLog2Decim(settings.m_log2Decim); diff --git a/plugins/samplesource/audioinput/audioinputgui.cpp b/plugins/samplesource/audioinput/audioinputgui.cpp index 26959dea8..c38597fe5 100644 --- a/plugins/samplesource/audioinput/audioinputgui.cpp +++ b/plugins/samplesource/audioinput/audioinputgui.cpp @@ -20,6 +20,7 @@ #include #include "ui_audioinputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialpopup.h" @@ -384,7 +385,7 @@ void AudioInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/bladerf1input/bladerf1input.cpp b/plugins/samplesource/bladerf1input/bladerf1input.cpp index f634cb617..83157a59b 100644 --- a/plugins/samplesource/bladerf1input/bladerf1input.cpp +++ b/plugins/samplesource/bladerf1input/bladerf1input.cpp @@ -551,7 +551,11 @@ void Bladerf1Input::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r response.getBladeRf1InputSettings()->setTitle(new QString(settings.m_title)); } - response.getBladeRf1InputSettings()->setTitle(new QString(settings.m_title)); + if (response.getBladeRf1InputSettings()->getTitle()) { + *response.getBladeRf1InputSettings()->getTitle() = settings.m_title; + } else { + response.getBladeRf1InputSettings()->setTitle(new QString(settings.m_title)); + } response.getBladeRf1InputSettings()->setCenterFrequency(settings.m_centerFrequency); response.getBladeRf1InputSettings()->setDevSampleRate(settings.m_devSampleRate); response.getBladeRf1InputSettings()->setLnaGain(settings.m_lnaGain); diff --git a/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp b/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp index 20c7a3512..5a5599096 100644 --- a/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp +++ b/plugins/samplesource/bladerf1input/bladerf1inputgui.cpp @@ -23,6 +23,7 @@ #include #include "ui_bladerf1inputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -502,7 +503,7 @@ void Bladerf1InputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/bladerf2input/bladerf2input.cpp b/plugins/samplesource/bladerf2input/bladerf2input.cpp index d2f0c7617..d0968e8cd 100644 --- a/plugins/samplesource/bladerf2input/bladerf2input.cpp +++ b/plugins/samplesource/bladerf2input/bladerf2input.cpp @@ -1194,7 +1194,11 @@ void BladeRF2Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo for (; it != modes.end(); ++it) { response.getBladeRf2InputReport()->getGainModes()->append(new SWGSDRangel::SWGNamedEnum); - response.getBladeRf2InputReport()->getGainModes()->back()->setName(new QString(it->m_name)); + if (response.getBladeRf2InputReport()->getGainModes()->back()->getName()) { + *response.getBladeRf2InputReport()->getGainModes()->back()->getName() = it->m_name; + } else { + response.getBladeRf2InputReport()->getGainModes()->back()->setName(new QString(it->m_name)); + } response.getBladeRf2InputReport()->getGainModes()->back()->setValue(it->m_value); } } diff --git a/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp b/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp index e90312881..be09f903b 100644 --- a/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp +++ b/plugins/samplesource/bladerf2input/bladerf2inputgui.cpp @@ -23,6 +23,7 @@ #include #include "ui_bladerf2inputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -540,7 +541,7 @@ void BladeRF2InputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/fcdpro/fcdprogui.cpp b/plugins/samplesource/fcdpro/fcdprogui.cpp index 797e64005..e2f148427 100644 --- a/plugins/samplesource/fcdpro/fcdprogui.cpp +++ b/plugins/samplesource/fcdpro/fcdprogui.cpp @@ -21,6 +21,7 @@ #include #include "ui_fcdprogui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -577,7 +578,7 @@ void FCDProGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp index c63d4347e..1e40594b6 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusgui.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusgui.cpp @@ -22,6 +22,7 @@ #include #include "ui_fcdproplusgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -316,7 +317,7 @@ void FCDProPlusGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/fileinput/fileinput.cpp b/plugins/samplesource/fileinput/fileinput.cpp index aad6f5210..eca61566e 100644 --- a/plugins/samplesource/fileinput/fileinput.cpp +++ b/plugins/samplesource/fileinput/fileinput.cpp @@ -689,7 +689,11 @@ void FileInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& respo response.getFileInputSettings()->setTitle(new QString(settings.m_title)); } - response.getFileInputSettings()->setFileName(new QString(settings.m_fileName)); + if (response.getFileInputSettings()->getFileName()) { + *response.getFileInputSettings()->getFileName() = settings.m_fileName; + } else { + response.getFileInputSettings()->setFileName(new QString(settings.m_fileName)); + } response.getFileInputSettings()->setAccelerationFactor(settings.m_accelerationFactor); response.getFileInputSettings()->setLoop(settings.m_loop ? 1 : 0); @@ -724,19 +728,35 @@ void FileInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response) QTime t(0, 0, 0, 0); t = t.addSecs(t_sec); t = t.addMSecs(t_msec); - response.getFileInputReport()->setElapsedTime(new QString(t.toString("HH:mm:ss.zzz"))); + if (response.getFileInputReport()->getElapsedTime()) { + *response.getFileInputReport()->getElapsedTime() = t.toString("HH:mm:ss.zzz"); + } else { + response.getFileInputReport()->setElapsedTime(new QString(t.toString("HH:mm:ss.zzz"))); + } qint64 startingTimeStampMsec = m_startingTimeStamp; QDateTime dt = QDateTime::fromMSecsSinceEpoch(startingTimeStampMsec); dt = dt.addSecs(t_sec); dt = dt.addMSecs(t_msec); - response.getFileInputReport()->setAbsoluteTime(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + if (response.getFileInputReport()->getAbsoluteTime()) { + *response.getFileInputReport()->getAbsoluteTime() = dt.toString("yyyy-MM-dd HH:mm:ss.zzz"); + } else { + response.getFileInputReport()->setAbsoluteTime(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + } QTime recordLength(0, 0, 0, 0); recordLength = recordLength.addMSecs(m_recordLengthMuSec / 1000UL); - response.getFileInputReport()->setDurationTime(new QString(recordLength.toString("HH:mm:ss.zzz"))); + if (response.getFileInputReport()->getDurationTime()) { + *response.getFileInputReport()->getDurationTime() = recordLength.toString("HH:mm:ss.zzz"); + } else { + response.getFileInputReport()->setDurationTime(new QString(recordLength.toString("HH:mm:ss.zzz"))); + } - response.getFileInputReport()->setFileName(new QString(m_settings.m_fileName)); + if (response.getFileInputReport()->getFileName()) { + *response.getFileInputReport()->getFileName() = m_settings.m_fileName; + } else { + response.getFileInputReport()->setFileName(new QString(m_settings.m_fileName)); + } response.getFileInputReport()->setSampleRate(m_sampleRate); response.getFileInputReport()->setSampleSize(m_sampleSize); } diff --git a/plugins/samplesource/fileinput/fileinputgui.cpp b/plugins/samplesource/fileinput/fileinputgui.cpp index 7b702c36d..d432193bc 100644 --- a/plugins/samplesource/fileinput/fileinputgui.cpp +++ b/plugins/samplesource/fileinput/fileinputgui.cpp @@ -28,6 +28,7 @@ #include #include "ui_fileinputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -287,7 +288,7 @@ void FileInputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/fobos/fobosgui.cpp b/plugins/samplesource/fobos/fobosgui.cpp index a12106ffb..9b7517c87 100644 --- a/plugins/samplesource/fobos/fobosgui.cpp +++ b/plugins/samplesource/fobos/fobosgui.cpp @@ -41,6 +41,7 @@ #include #include "ui_fobosgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -544,7 +545,7 @@ void FOBOSGui::updateStatus() case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); ui->power->setText(QStringLiteral("Error")); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/fobos/fobosinput.cpp b/plugins/samplesource/fobos/fobosinput.cpp index d75adbecf..291d857ba 100644 --- a/plugins/samplesource/fobos/fobosinput.cpp +++ b/plugins/samplesource/fobos/fobosinput.cpp @@ -660,7 +660,7 @@ void FOBOSInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("autoCorrOptions")) { int autoCorrOptions = response.getTestSourceSettings()->getAutoCorrOptions(); autoCorrOptions = autoCorrOptions < 0 ? 0 : autoCorrOptions >= FOBOSSettings::AutoCorrLast ? FOBOSSettings::AutoCorrLast-1 : autoCorrOptions; - settings.m_sampleSizeIndex = (FOBOSSettings::AutoCorrOptions) autoCorrOptions; + settings.m_autoCorrOptions = (FOBOSSettings::AutoCorrOptions) autoCorrOptions; } if (deviceSettingsKeys.contains("modulation")) { int modulation = response.getTestSourceSettings()->getModulation(); @@ -775,7 +775,7 @@ void FOBOSInput::webapiReverseSendSettings(const QList& deviceSettingsK SWGTestSourceSettings->setAmplitudeBits(settings.m_amplitudeBits); } if (deviceSettingsKeys.contains("autoCorrOptions") || force) { - SWGTestSourceSettings->setAutoCorrOptions((int) settings.m_sampleSizeIndex); + SWGTestSourceSettings->setAutoCorrOptions((int) settings.m_autoCorrOptions); } if (deviceSettingsKeys.contains("modulation") || force) { SWGTestSourceSettings->setModulation((int) settings.m_modulation); diff --git a/plugins/samplesource/hackrfinput/hackrfinputgui.cpp b/plugins/samplesource/hackrfinput/hackrfinputgui.cpp index 5c154a861..d452fc8bf 100644 --- a/plugins/samplesource/hackrfinput/hackrfinputgui.cpp +++ b/plugins/samplesource/hackrfinput/hackrfinputgui.cpp @@ -25,6 +25,7 @@ #include +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -528,7 +529,7 @@ void HackRFInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/kiwisdr/kiwisdrgui.cpp b/plugins/samplesource/kiwisdr/kiwisdrgui.cpp index 916d28077..2ec50e2a2 100644 --- a/plugins/samplesource/kiwisdr/kiwisdrgui.cpp +++ b/plugins/samplesource/kiwisdr/kiwisdrgui.cpp @@ -26,6 +26,7 @@ #include #include "ui_kiwisdrgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -233,7 +234,7 @@ void KiwiSDRGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/limesdrinput/limesdrinputgui.cpp b/plugins/samplesource/limesdrinput/limesdrinputgui.cpp index c87ba80ec..e6988a1b4 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputgui.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinputgui.cpp @@ -25,6 +25,7 @@ #include #include "ui_limesdrinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -557,7 +558,7 @@ void LimeSDRInputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/localinput/localinputgui.cpp b/plugins/samplesource/localinput/localinputgui.cpp index 896000d58..8ba0c4234 100644 --- a/plugins/samplesource/localinput/localinputgui.cpp +++ b/plugins/samplesource/localinput/localinputgui.cpp @@ -32,6 +32,7 @@ #include #include "ui_localinputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -309,7 +310,7 @@ void LocalInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/perseus/perseusgui.cpp b/plugins/samplesource/perseus/perseusgui.cpp index 6050f2dae..a9ad6b96b 100644 --- a/plugins/samplesource/perseus/perseusgui.cpp +++ b/plugins/samplesource/perseus/perseusgui.cpp @@ -24,6 +24,7 @@ #include "device/deviceuiset.h" #include "ui_perseusgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -377,7 +378,7 @@ void PerseusGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/plutosdrinput/plutosdrinput.cpp b/plugins/samplesource/plutosdrinput/plutosdrinput.cpp index 4327db0df..3b04c2653 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinput.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinput.cpp @@ -932,10 +932,10 @@ void PlutoSDRInput::webapiUpdateDeviceSettings( settings.m_hwBBDCBlock = response.getPlutoSdrInputSettings()->getHwBbdcBlock() != 0; } if (deviceSettingsKeys.contains("hwRFDCBlock")) { - settings.m_hwBBDCBlock = response.getPlutoSdrInputSettings()->getHwRfdcBlock() != 0; + settings.m_hwRFDCBlock = response.getPlutoSdrInputSettings()->getHwRfdcBlock() != 0; } if (deviceSettingsKeys.contains("hwIQCorrection")) { - settings.m_hwBBDCBlock = response.getPlutoSdrInputSettings()->getHwIqCorrection() != 0; + settings.m_hwIQCorrection = response.getPlutoSdrInputSettings()->getHwIqCorrection() != 0; } if (deviceSettingsKeys.contains("log2Decim")) { settings.m_log2Decim = response.getPlutoSdrInputSettings()->getLog2Decim(); @@ -1037,7 +1037,11 @@ void PlutoSDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo response.getPlutoSdrInputReport()->setAdcRate(getADCSampleRate()); std::string rssiStr; getRSSI(rssiStr); - response.getPlutoSdrInputReport()->setRssi(new QString(rssiStr.c_str())); + if (response.getPlutoSdrInputReport()->getRssi()) { + *response.getPlutoSdrInputReport()->getRssi() = rssiStr.c_str(); + } else { + response.getPlutoSdrInputReport()->setRssi(new QString(rssiStr.c_str())); + } int gainDB; getGain(gainDB); response.getPlutoSdrInputReport()->setGainDb(gainDB); diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp index 2add33dbe..8bd0f243f 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinputgui.cpp @@ -26,6 +26,7 @@ #include #include "dsp/dspcommands.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialpopup.h" @@ -508,7 +509,7 @@ void PlutoSDRInputGui::updateStatus() ui->startStop->setChecked(false); } ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/remoteinput/remoteinput.cpp b/plugins/samplesource/remoteinput/remoteinput.cpp index d7d5dd47f..df62a0bce 100644 --- a/plugins/samplesource/remoteinput/remoteinput.cpp +++ b/plugins/samplesource/remoteinput/remoteinput.cpp @@ -451,7 +451,7 @@ void RemoteInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("multicastAddress")) { settings.m_multicastAddress = *response.getRemoteInputSettings()->getMulticastAddress(); } - if (deviceSettingsKeys.contains("multicastAddress")) { + if (deviceSettingsKeys.contains("multicastJoin")) { settings.m_multicastJoin = response.getRemoteInputSettings()->getMulticastJoin() != 0; } if (deviceSettingsKeys.contains("dcBlock")) { @@ -482,11 +482,23 @@ void RemoteInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& res response.getRemoteInputSettings()->setTitle(new QString(settings.m_title)); } - response.getRemoteInputSettings()->setApiAddress(new QString(settings.m_apiAddress)); + if (response.getRemoteInputSettings()->getApiAddress()) { + *response.getRemoteInputSettings()->getApiAddress() = settings.m_apiAddress; + } else { + response.getRemoteInputSettings()->setApiAddress(new QString(settings.m_apiAddress)); + } response.getRemoteInputSettings()->setApiPort(settings.m_apiPort); - response.getRemoteInputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + if (response.getRemoteInputSettings()->getDataAddress()) { + *response.getRemoteInputSettings()->getDataAddress() = settings.m_dataAddress; + } else { + response.getRemoteInputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + } response.getRemoteInputSettings()->setDataPort(settings.m_dataPort); - response.getRemoteInputSettings()->setMulticastAddress(new QString(settings.m_multicastAddress)); + if (response.getRemoteInputSettings()->getMulticastAddress()) { + *response.getRemoteInputSettings()->getMulticastAddress() = settings.m_multicastAddress; + } else { + response.getRemoteInputSettings()->setMulticastAddress(new QString(settings.m_multicastAddress)); + } response.getRemoteInputSettings()->setMulticastJoin(settings.m_multicastJoin ? 1 : 0); response.getRemoteInputSettings()->setDcBlock(settings.m_dcBlock ? 1 : 0); response.getRemoteInputSettings()->setIqCorrection(settings.m_iqCorrection); @@ -521,7 +533,11 @@ void RemoteInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respons response.getRemoteInputReport()->setBufferRwBalance(m_remoteInputUDPHandler->getBufferGauge()); QDateTime dt = QDateTime::fromMSecsSinceEpoch(m_remoteInputUDPHandler->getTVmSec()); - response.getRemoteInputReport()->setRemoteTimestamp(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + if (response.getRemoteInputReport()->getRemoteTimestamp()) { + *response.getRemoteInputReport()->getRemoteTimestamp() = dt.toString("yyyy-MM-dd HH:mm:ss.zzz"); + } else { + response.getRemoteInputReport()->setRemoteTimestamp(new QString(dt.toString("yyyy-MM-dd HH:mm:ss.zzz"))); + } response.getRemoteInputReport()->setMinNbBlocks(m_remoteInputUDPHandler->getMinNbBlocks()); response.getRemoteInputReport()->setMaxNbRecovery(m_remoteInputUDPHandler->getMaxNbRecovery()); diff --git a/plugins/samplesource/remoteinput/remoteinputgui.cpp b/plugins/samplesource/remoteinput/remoteinputgui.cpp index 535383a85..7b9b1464e 100644 --- a/plugins/samplesource/remoteinput/remoteinputgui.cpp +++ b/plugins/samplesource/remoteinput/remoteinputgui.cpp @@ -29,6 +29,7 @@ #include #include "ui_remoteinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -673,7 +674,7 @@ void RemoteInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/remotetcpinput/remotetcpinput.cpp b/plugins/samplesource/remotetcpinput/remotetcpinput.cpp index 4585b42ed..9b90f0fad 100644 --- a/plugins/samplesource/remotetcpinput/remotetcpinput.cpp +++ b/plugins/samplesource/remotetcpinput/remotetcpinput.cpp @@ -518,11 +518,19 @@ void RemoteTCPInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response.getRemoteTcpInputSettings()->setChannelSampleRate(settings.m_channelSampleRate); response.getRemoteTcpInputSettings()->setChannelDecimation(settings.m_channelDecimation); response.getRemoteTcpInputSettings()->setSampleBits(settings.m_sampleBits); - response.getRemoteTcpInputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + if (response.getRemoteTcpInputSettings()->getDataAddress()) { + *response.getRemoteTcpInputSettings()->getDataAddress() = settings.m_dataAddress; + } else { + response.getRemoteTcpInputSettings()->setDataAddress(new QString(settings.m_dataAddress)); + } response.getRemoteTcpInputSettings()->setDataPort(settings.m_dataPort); response.getRemoteTcpInputSettings()->setOverrideRemoteSettings(settings.m_overrideRemoteSettings ? 1 : 0); response.getRemoteTcpInputSettings()->setPreFill(settings.m_preFill ? 1 : 0); - response.getRemoteTcpInputSettings()->setProtocol(new QString(settings.m_protocol)); + if (response.getRemoteTcpInputSettings()->getProtocol()) { + *response.getRemoteTcpInputSettings()->getProtocol() = settings.m_protocol; + } else { + response.getRemoteTcpInputSettings()->setProtocol(new QString(settings.m_protocol)); + } response.getRemoteTcpInputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); diff --git a/plugins/samplesource/remotetcpinput/remotetcpinputgui.cpp b/plugins/samplesource/remotetcpinput/remotetcpinputgui.cpp index 1bc853ec6..aeb1c10aa 100644 --- a/plugins/samplesource/remotetcpinput/remotetcpinputgui.cpp +++ b/plugins/samplesource/remotetcpinput/remotetcpinputgui.cpp @@ -23,6 +23,7 @@ #include #include "ui_remotetcpinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -1011,7 +1012,7 @@ void RemoteTCPInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp index 1399637ae..509797f00 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp @@ -30,6 +30,7 @@ #include "device/deviceuiset.h" #include "ui_rtlsdrgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "mainspectrum/mainspectrumgui.h" @@ -472,7 +473,7 @@ void RTLSDRGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp index b5497ef9b..f7fdf6b01 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrinput.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrinput.cpp @@ -677,7 +677,11 @@ void RTLSDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respons response.getRtlSdrReport()->getGains()->back()->setGainCb(*it); } - response.getRtlSdrReport()->setTunerType(new QString(getTunerName())); + if (response.getRtlSdrReport()->getTunerType()) { + *response.getRtlSdrReport()->getTunerType() = getTunerName(); + } else { + response.getRtlSdrReport()->setTunerType(new QString(getTunerName())); + } } void RTLSDRInput::webapiReverseSendSettings(const QList& deviceSettingsKeys, const RTLSDRSettings& settings, bool force) diff --git a/plugins/samplesource/rtlsdr/rtlsdrthread.cpp b/plugins/samplesource/rtlsdr/rtlsdrthread.cpp index fc23a5b86..f023510ac 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrthread.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrthread.cpp @@ -453,6 +453,11 @@ bool RTLSDRThread::applySettings(const RTLSDRSettings& settings, const QStringLi if (rtlsdr_set_center_freq(m_dev, deviceCenterFrequency) != 0) { qWarning("RTLSDRThread::applySettings: rtlsdr_set_center_freq(%lld) failed", deviceCenterFrequency); + // Retry after PLL has settled + QThread::msleep(5); + if (rtlsdr_set_center_freq(m_dev, deviceCenterFrequency) != 0) { + qWarning("RTLSDRThread::applySettings: rtlsdr_set_center_freq(%lld) failed", deviceCenterFrequency); + } } else { qDebug("RTLSDRThread::applySettings: rtlsdr_set_center_freq(%lld)", deviceCenterFrequency); } diff --git a/plugins/samplesource/sdrplay/sdrplaygui.cpp b/plugins/samplesource/sdrplay/sdrplaygui.cpp index 5c215b882..190bf501a 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.cpp +++ b/plugins/samplesource/sdrplay/sdrplaygui.cpp @@ -26,6 +26,7 @@ #include "device/deviceuiset.h" #include "ui_sdrplaygui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -314,7 +315,7 @@ void SDRPlayGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/sdrplay/sdrplayinput.cpp b/plugins/samplesource/sdrplay/sdrplayinput.cpp index 71ed7e2d9..b07d742f4 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.cpp +++ b/plugins/samplesource/sdrplay/sdrplayinput.cpp @@ -831,7 +831,11 @@ void SDRPlayInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respon for (unsigned int i = 0; i < SDRPlayBands::getNbBands(); i++) { response.getSdrPlayReport()->getFrequencyBands()->append(new SWGSDRangel::SWGFrequencyBand); - response.getSdrPlayReport()->getFrequencyBands()->back()->setName(new QString(SDRPlayBands::getBandName(i))); + if (response.getSdrPlayReport()->getFrequencyBands()->back()->getName()) { + *response.getSdrPlayReport()->getFrequencyBands()->back()->getName() = SDRPlayBands::getBandName(i); + } else { + response.getSdrPlayReport()->getFrequencyBands()->back()->setName(new QString(SDRPlayBands::getBandName(i))); + } response.getSdrPlayReport()->getFrequencyBands()->back()->setLowerBound(SDRPlayBands::getBandLow(i) * 1000); response.getSdrPlayReport()->getFrequencyBands()->back()->setHigherBound(SDRPlayBands::getBandHigh(i) * 1000); } diff --git a/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp b/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp index 9ef095e89..0d0740e7e 100644 --- a/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp +++ b/plugins/samplesource/sdrplayv3/sdrplayv3gui.cpp @@ -27,6 +27,7 @@ #include "device/deviceuiset.h" #include "ui_sdrplayv3gui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -389,7 +390,7 @@ void SDRPlayV3Gui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/sdrplayv3/sdrplayv3input.cpp b/plugins/samplesource/sdrplayv3/sdrplayv3input.cpp index e66519af2..dee4a6b98 100644 --- a/plugins/samplesource/sdrplayv3/sdrplayv3input.cpp +++ b/plugins/samplesource/sdrplayv3/sdrplayv3input.cpp @@ -1010,28 +1010,60 @@ void SDRPlayV3Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp switch(getDeviceId()) { case SDRPLAY_RSP1_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSP1"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1")); + } break; case SDRPLAY_RSP1A_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1A")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSP1A"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1A")); + } break; case SDRPLAY_RSP1B_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1B")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSP1B"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1B")); + } break; case SDRPLAY_RSP2_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSP2")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSP2"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSP2")); + } break; case SDRPLAY_RSPduo_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSPduo")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSPduo"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSPduo")); + } break; case SDRPLAY_RSPdx_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSPdx")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSPdx"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSPdx")); + } break; case SDRPLAY_RSPdxR2_ID: - response.getSdrPlayV3Report()->setDeviceType(new QString("RSPdx-R2")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "RSPdx-R2"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("RSPdx-R2")); + } break; default: - response.getSdrPlayV3Report()->setDeviceType(new QString("Unknown")); + if (response.getSdrPlayV3Report()->getDeviceType()) { + *response.getSdrPlayV3Report()->getDeviceType() = "Unknown"; + } else { + response.getSdrPlayV3Report()->setDeviceType(new QString("Unknown")); + } break; } } diff --git a/plugins/samplesource/sigmffileinput/sigmffileinput.cpp b/plugins/samplesource/sigmffileinput/sigmffileinput.cpp index 55a7d022a..d4a893cb9 100644 --- a/plugins/samplesource/sigmffileinput/sigmffileinput.cpp +++ b/plugins/samplesource/sigmffileinput/sigmffileinput.cpp @@ -897,7 +897,7 @@ void SigMFFileInput::webapiUpdateDeviceSettings( settings.m_trackLoop = response.getSigMfFileInputSettings()->getTrackLoop() != 0; } if (deviceSettingsKeys.contains("fullLoop")) { - settings.m_trackLoop = response.getSigMfFileInputSettings()->getFullLoop() != 0; + settings.m_fullLoop = response.getSigMfFileInputSettings()->getFullLoop() != 0; } if (deviceSettingsKeys.contains("useReverseAPI")) { settings.m_useReverseAPI = response.getSigMfFileInputSettings()->getUseReverseApi() != 0; @@ -1039,7 +1039,11 @@ void SigMFFileInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response.getSigMfFileInputSettings()->setTitle(new QString(settings.m_title)); } - response.getSigMfFileInputSettings()->setFileName(new QString(settings.m_fileName)); + if (response.getSigMfFileInputSettings()->getFileName()) { + *response.getSigMfFileInputSettings()->getFileName() = settings.m_fileName; + } else { + response.getSigMfFileInputSettings()->setFileName(new QString(settings.m_fileName)); + } response.getSigMfFileInputSettings()->setAccelerationFactor(settings.m_accelerationFactor); response.getSigMfFileInputSettings()->setTrackLoop(settings.m_trackLoop ? 1 : 0); response.getSigMfFileInputSettings()->setFullLoop(settings.m_fullLoop ? 1 : 0); diff --git a/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp b/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp index 4c7658ebe..5131b0490 100644 --- a/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp +++ b/plugins/samplesource/sigmffileinput/sigmffileinputgui.cpp @@ -25,6 +25,7 @@ #include #include "ui_sigmffileinputgui.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -517,7 +518,7 @@ void SigMFFileInputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/soapysdrinput/soapysdrinput.cpp b/plugins/samplesource/soapysdrinput/soapysdrinput.cpp index ccfb8f4f8..5caf22cd9 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinput.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinput.cpp @@ -1674,10 +1674,22 @@ void SoapySDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r for (const auto& itName : settings.m_tunableElements.keys()) { response.getSoapySdrInputSettings()->getTunableElements()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrInputSettings()->getTunableElements()->back()->setKey(new QString(itName)); + if (response.getSoapySdrInputSettings()->getTunableElements()->back()->getKey()) { + *response.getSoapySdrInputSettings()->getTunableElements()->back()->getKey() = itName; + } else { + response.getSoapySdrInputSettings()->getTunableElements()->back()->setKey(new QString(itName)); + } double value = settings.m_tunableElements.value(itName); - response.getSoapySdrInputSettings()->getTunableElements()->back()->setValueString(new QString(tr("%1").arg(value))); - response.getSoapySdrInputSettings()->getTunableElements()->back()->setValueType(new QString("float")); + if (response.getSoapySdrInputSettings()->getTunableElements()->back()->getValueString()) { + *response.getSoapySdrInputSettings()->getTunableElements()->back()->getValueString() = tr("%1").arg(value); + } else { + response.getSoapySdrInputSettings()->getTunableElements()->back()->setValueString(new QString(tr("%1").arg(value))); + } + if (response.getSoapySdrInputSettings()->getTunableElements()->back()->getValueType()) { + *response.getSoapySdrInputSettings()->getTunableElements()->back()->getValueType() = "float"; + } else { + response.getSoapySdrInputSettings()->getTunableElements()->back()->setValueType(new QString("float")); + } } response.getSoapySdrInputSettings()->setBandwidth(settings.m_bandwidth); @@ -1692,10 +1704,22 @@ void SoapySDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r for (const auto& itName : settings.m_individualGains.keys()) { response.getSoapySdrInputSettings()->getIndividualGains()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrInputSettings()->getIndividualGains()->back()->setKey(new QString(itName)); + if (response.getSoapySdrInputSettings()->getIndividualGains()->back()->getKey()) { + *response.getSoapySdrInputSettings()->getIndividualGains()->back()->getKey() = itName; + } else { + response.getSoapySdrInputSettings()->getIndividualGains()->back()->setKey(new QString(itName)); + } double value = settings.m_individualGains.value(itName); - response.getSoapySdrInputSettings()->getIndividualGains()->back()->setValueString(new QString(tr("%1").arg(value))); - response.getSoapySdrInputSettings()->getIndividualGains()->back()->setValueType(new QString("float")); + if (response.getSoapySdrInputSettings()->getIndividualGains()->back()->getValueString()) { + *response.getSoapySdrInputSettings()->getIndividualGains()->back()->getValueString() = tr("%1").arg(value); + } else { + response.getSoapySdrInputSettings()->getIndividualGains()->back()->setValueString(new QString(tr("%1").arg(value))); + } + if (response.getSoapySdrInputSettings()->getIndividualGains()->back()->getValueType()) { + *response.getSoapySdrInputSettings()->getIndividualGains()->back()->getValueType() = "float"; + } else { + response.getSoapySdrInputSettings()->getIndividualGains()->back()->setValueType(new QString("float")); + } } response.getSoapySdrInputSettings()->setAutoGain(settings.m_autoGain ? 1 : 0); @@ -1725,7 +1749,11 @@ void SoapySDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r for (const auto& itName : settings.m_streamArgSettings.keys()) { response.getSoapySdrInputSettings()->getStreamArgSettings()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrInputSettings()->getStreamArgSettings()->back()->setKey(new QString(itName)); + if (response.getSoapySdrInputSettings()->getStreamArgSettings()->back()->getKey()) { + *response.getSoapySdrInputSettings()->getStreamArgSettings()->back()->getKey() = itName; + } else { + response.getSoapySdrInputSettings()->getStreamArgSettings()->back()->setKey(new QString(itName)); + } const QVariant& v = settings.m_streamArgSettings.value(itName); webapiFormatArgValue(v, response.getSoapySdrInputSettings()->getStreamArgSettings()->back()); } @@ -1739,7 +1767,11 @@ void SoapySDRInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& r for (const auto& itName : settings.m_deviceArgSettings.keys()) { response.getSoapySdrInputSettings()->getDeviceArgSettings()->append(new SWGSDRangel::SWGArgValue); - response.getSoapySdrInputSettings()->getDeviceArgSettings()->back()->setKey(new QString(itName)); + if (response.getSoapySdrInputSettings()->getDeviceArgSettings()->back()->getKey()) { + *response.getSoapySdrInputSettings()->getDeviceArgSettings()->back()->getKey() = itName; + } else { + response.getSoapySdrInputSettings()->getDeviceArgSettings()->back()->setKey(new QString(itName)); + } const QVariant& v = settings.m_deviceArgSettings.value(itName); webapiFormatArgValue(v, response.getSoapySdrInputSettings()->getDeviceArgSettings()->back()); } @@ -1816,7 +1848,11 @@ void SoapySDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo response.getSoapySdrInputReport()->getGainSettings()->back()->setRange(new SWGSDRangel::SWGRangeFloat()); response.getSoapySdrInputReport()->getGainSettings()->back()->getRange()->setMin(itGain.m_range.minimum()); response.getSoapySdrInputReport()->getGainSettings()->back()->getRange()->setMax(itGain.m_range.maximum()); - response.getSoapySdrInputReport()->getGainSettings()->back()->setName(new QString(itGain.m_name.c_str())); + if (response.getSoapySdrInputReport()->getGainSettings()->back()->getName()) { + *response.getSoapySdrInputReport()->getGainSettings()->back()->getName() = itGain.m_name.c_str(); + } else { + response.getSoapySdrInputReport()->getGainSettings()->back()->setName(new QString(itGain.m_name.c_str())); + } } } @@ -1836,7 +1872,11 @@ void SoapySDRInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& respo response.getSoapySdrInputReport()->getFrequencySettings()->back()->getRanges()->back()->setMax(itRange.maximum()); } - response.getSoapySdrInputReport()->getFrequencySettings()->back()->setName(new QString(itFreq.m_name.c_str())); + if (response.getSoapySdrInputReport()->getFrequencySettings()->back()->getName()) { + *response.getSoapySdrInputReport()->getFrequencySettings()->back()->getName() = itFreq.m_name.c_str(); + } else { + response.getSoapySdrInputReport()->getFrequencySettings()->back()->setName(new QString(itFreq.m_name.c_str())); + } } } diff --git a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp index e2cbbce18..3b4764dbe 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp @@ -24,6 +24,7 @@ #include "dsp/dspcommands.h" #include "device/deviceapi.h" #include "device/deviceuiset.h" +#include "gui/messagedialog.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" #include "gui/dialogpositioner.h" @@ -919,7 +920,7 @@ void SoapySDRInputGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/testsource/readme.md b/plugins/samplesource/testsource/readme.md index 1327e1459..9520782cc 100644 --- a/plugins/samplesource/testsource/readme.md +++ b/plugins/samplesource/testsource/readme.md @@ -83,10 +83,10 @@ This controls the generator sample rate in samples per second. - Sync pattern: 010 at full amplitude - Binary pattern LSB first on 3 bits from 0 to 7 at 0.3 amplitude - **P1**: Pattern 1 is a sawtooth pattern - - Pulse width: 1000 samples + - Pulse width: Set by period setting - Starts at full amplitude then amplitude decreases linearly down to zero - - **P2**: Pattern 2 is a 50% duty cycle square pattern - - Pulse width: 1000 samples + - **P2**: Pattern 2 is a square pattern + - Pulse width: Set by period and duty cycle settings - Starts with a full amplitude pulse then down to zero for the duration of one pulse

5: Modulating tone frequency

@@ -105,6 +105,14 @@ This controls the AM modulation factor from 0 to 99% This controls the frequency modulation deviation in kHz in 100 Hz steps. It cannot exceed the sample rate. +

Period

+ +Specifies the period of the P1 and P2 patterns in samples. The minimum is one sample. + +

Duty Cycle

+ +Specifies the duty cycle for the P2 pattern. This is the percent of time period the signal is high. +

9: Amplitude coarse control

This slider controls the number of amplitude bits by steps of 100 bits. The total number of amplitude bits appear on the right. diff --git a/plugins/samplesource/testsource/testsourcegui.cpp b/plugins/samplesource/testsource/testsourcegui.cpp index 0c6d0b467..3cafa5304 100644 --- a/plugins/samplesource/testsource/testsourcegui.cpp +++ b/plugins/samplesource/testsource/testsourcegui.cpp @@ -25,6 +25,7 @@ #include #include "ui_testsourcegui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -289,6 +290,42 @@ void TestSourceGui::on_phaseImbalance_valueChanged(int value) sendSettings(); } +void TestSourceGui::on_period_valueChanged(int value) +{ + m_settings.m_period = value; + displayPeriod(); + m_settingsKeys.append("period"); + sendSettings(); +} + +void TestSourceGui::on_dutyCycle_valueChanged(int value) +{ + m_settings.m_dutyCycle = value; + ui->dutyCycleText->setText(QString("%1").arg(m_settings.m_dutyCycle)); + m_settingsKeys.append("dutyCycle"); + sendSettings(); +} + +void TestSourceGui::displayPeriod() +{ + float periodSecs = m_settings.m_period / (float) m_settings.m_sampleRate; + QString periodText; + + if (periodSecs >= 1.0) { + periodText = QString("%1s").arg(periodSecs, 0, 'f', 1); + } else if (periodSecs >= 1e-3) { + periodText = QString("%1ms").arg(periodSecs * 1e3, 0, 'f', 1); + } else if (periodSecs >= 1e-6) { + periodText = QString("%1us").arg(periodSecs * 1e6, 0, 'f', 1); + } else if (periodSecs >= 1e-9) { + periodText = QString("%1ns").arg(periodSecs * 1e9, 0, 'f', 1); + } else { + periodText = QString("%1ps").arg(periodSecs * 1e12, 0, 'f', 1); + } + + ui->periodText->setText(QString("(%1)").arg(periodText)); +} + void TestSourceGui::displayAmplitude() { int amplitudeInt = ui->amplitudeCoarse->value() * 100 + ui->amplitudeFine->value(); @@ -406,6 +443,10 @@ void TestSourceGui::displaySettings() ui->amModulationText->setText(QString("%1").arg(m_settings.m_amModulation)); ui->fmDeviation->setValue(m_settings.m_fmDeviation); ui->fmDeviationText->setText(QString("%1").arg(m_settings.m_fmDeviation / 10.0, 0, 'f', 1)); + ui->period->setValue(m_settings.m_period); + displayPeriod(); + ui->dutyCycle->setValue(m_settings.m_dutyCycle); + ui->dutyCycleText->setText(QString("%1").arg(m_settings.m_dutyCycle)); blockApplySettings(false); } @@ -447,7 +488,7 @@ void TestSourceGui::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; @@ -582,4 +623,6 @@ void TestSourceGui::makeUIConnections() QObject::connect(ui->iBias, &QSlider::valueChanged, this, &TestSourceGui::on_iBias_valueChanged); QObject::connect(ui->qBias, &QSlider::valueChanged, this, &TestSourceGui::on_qBias_valueChanged); QObject::connect(ui->phaseImbalance, &QSlider::valueChanged, this, &TestSourceGui::on_phaseImbalance_valueChanged); + QObject::connect(ui->period, QOverload::of(&QSpinBox::valueChanged), this, &TestSourceGui::on_period_valueChanged); + QObject::connect(ui->dutyCycle, &QDial::valueChanged, this, &TestSourceGui::on_dutyCycle_valueChanged); } diff --git a/plugins/samplesource/testsource/testsourcegui.h b/plugins/samplesource/testsource/testsourcegui.h index 4151e9197..38df7bd4c 100644 --- a/plugins/samplesource/testsource/testsourcegui.h +++ b/plugins/samplesource/testsource/testsourcegui.h @@ -68,6 +68,7 @@ private: void sendSettings(); void updateSampleRateAndFrequency(); void displayAmplitude(); + void displayPeriod(); void updateAmpCoarseLimit(); void updateAmpFineLimit(); void updateFrequencyShiftLimit(); @@ -94,6 +95,8 @@ private slots: void on_iBias_valueChanged(int value); void on_qBias_valueChanged(int value); void on_phaseImbalance_valueChanged(int value); + void on_period_valueChanged(int value); + void on_dutyCycle_valueChanged(int value); void openDeviceSettingsDialog(const QPoint& p); void updateStatus(); void updateHardware(); diff --git a/plugins/samplesource/testsource/testsourcegui.ui b/plugins/samplesource/testsource/testsourcegui.ui index 34984691c..2b95861a5 100644 --- a/plugins/samplesource/testsource/testsourcegui.ui +++ b/plugins/samplesource/testsource/testsourcegui.ui @@ -7,7 +7,7 @@ 0 0 360 - 331 + 343 @@ -696,6 +696,116 @@
+ + + + + + Period + + + + + + + Period for P1 and P2 patterns as number of samples + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 1 + + + 1000000000 + + + + + + + S + + + + + + + (0.0ms) + + + + + + + Qt::Vertical + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Duty cycle + + + + + + + + 22 + 22 + + + + Duty cycle for P2 pattern in percent + + + 100 + + + 1 + + + + + + + + 26 + 0 + + + + 100 + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + % + + + + + diff --git a/plugins/samplesource/testsource/testsourceinput.cpp b/plugins/samplesource/testsource/testsourceinput.cpp index 093c5d5bd..488d7c25c 100644 --- a/plugins/samplesource/testsource/testsourceinput.cpp +++ b/plugins/samplesource/testsource/testsourceinput.cpp @@ -102,7 +102,7 @@ bool TestSourceInput::start() m_testSourceWorker->moveToThread(m_testSourceWorkerThread); QObject::connect(m_testSourceWorkerThread, &QThread::started, m_testSourceWorker, &TestSourceWorker::startWork); - QObject::connect(m_testSourceWorkerThread, &QThread::finished, m_testSourceWorker, &QObject::deleteLater, Qt::QueuedConnection); + QObject::connect(m_testSourceWorkerThread, &QThread::finished, m_testSourceWorker, &QObject::deleteLater); QObject::connect(m_testSourceWorkerThread, &QThread::finished, m_testSourceWorkerThread, &QThread::deleteLater); m_testSourceWorker->setSamplerate(m_settings.m_sampleRate); @@ -128,9 +128,18 @@ void TestSourceInput::stop() if (m_testSourceWorkerThread) { - m_testSourceWorker->stopWork(); + // The worker's timer lives in the worker thread and Qt will not let this one stop it, so + // ask the worker to do it and wait for that before the event loop goes away. Where there is + // no waiting for the thread there is no blocking on it either: the worker's destructor, + // which does run in the worker thread, stops the timer there instead + TestSourceWorker *worker = m_testSourceWorker; +#ifndef __EMSCRIPTEN__ + QMetaObject::invokeMethod(worker, [worker]() { worker->stopWork(); }, Qt::BlockingQueuedConnection); +#endif m_testSourceWorkerThread->quit(); +#ifndef __EMSCRIPTEN__ m_testSourceWorkerThread->wait(); +#endif m_testSourceWorker = nullptr; m_testSourceWorkerThread = nullptr; } @@ -380,7 +389,9 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, const QL } } - if (settingsKeys.contains("modulation") || force) + if (settingsKeys.contains("modulation") + || settingsKeys.contains("period") + || settingsKeys.contains("dutyCycle") || force) { if (m_testSourceWorker != 0) { @@ -389,9 +400,9 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, const QL if (settings.m_modulation == TestSourceSettings::ModulationPattern0) { m_testSourceWorker->setPattern0(); } else if (settings.m_modulation == TestSourceSettings::ModulationPattern1) { - m_testSourceWorker->setPattern1(); + m_testSourceWorker->setPattern1(settings.m_period); } else if (settings.m_modulation == TestSourceSettings::ModulationPattern2) { - m_testSourceWorker->setPattern2(); + m_testSourceWorker->setPattern2(settings.m_period, settings.m_dutyCycle); } } } @@ -526,7 +537,7 @@ void TestSourceInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("autoCorrOptions")) { int autoCorrOptions = response.getTestSourceSettings()->getAutoCorrOptions(); autoCorrOptions = autoCorrOptions < 0 ? 0 : autoCorrOptions >= TestSourceSettings::AutoCorrLast ? TestSourceSettings::AutoCorrLast-1 : autoCorrOptions; - settings.m_sampleSizeIndex = (TestSourceSettings::AutoCorrOptions) autoCorrOptions; + settings.m_autoCorrOptions = (TestSourceSettings::AutoCorrOptions) autoCorrOptions; } if (deviceSettingsKeys.contains("modulation")) { int modulation = response.getTestSourceSettings()->getModulation(); @@ -554,6 +565,14 @@ void TestSourceInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("phaseImbalance")) { settings.m_phaseImbalance = response.getTestSourceSettings()->getPhaseImbalance(); }; + if (deviceSettingsKeys.contains("period")) { + int period = response.getTestSourceSettings()->getPeriod(); + settings.m_period = period < 1 ? 1 : period; + }; + if (deviceSettingsKeys.contains("dutyCycle")) { + int dutyCycle = response.getTestSourceSettings()->getDutyCycle(); + settings.m_dutyCycle = dutyCycle < 0 ? 0 : dutyCycle > 100 ? 100 : dutyCycle; + }; if (deviceSettingsKeys.contains("useReverseAPI")) { settings.m_useReverseAPI = response.getTestSourceSettings()->getUseReverseApi() != 0; } @@ -592,6 +611,8 @@ void TestSourceInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response.getTestSourceSettings()->setIFactor(settings.m_iFactor); response.getTestSourceSettings()->setQFactor(settings.m_qFactor); response.getTestSourceSettings()->setPhaseImbalance(settings.m_phaseImbalance); + response.getTestSourceSettings()->setPeriod(settings.m_period); + response.getTestSourceSettings()->setDutyCycle(settings.m_dutyCycle); response.getTestSourceSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); @@ -641,7 +662,7 @@ void TestSourceInput::webapiReverseSendSettings(const QList& deviceSett swgTestSourceSettings->setAmplitudeBits(settings.m_amplitudeBits); } if (deviceSettingsKeys.contains("autoCorrOptions") || force) { - swgTestSourceSettings->setAutoCorrOptions((int) settings.m_sampleSizeIndex); + swgTestSourceSettings->setAutoCorrOptions((int) settings.m_autoCorrOptions); } if (deviceSettingsKeys.contains("modulation") || force) { swgTestSourceSettings->setModulation((int) settings.m_modulation); @@ -667,6 +688,12 @@ void TestSourceInput::webapiReverseSendSettings(const QList& deviceSett if (deviceSettingsKeys.contains("phaseImbalance") || force) { swgTestSourceSettings->setPhaseImbalance(settings.m_phaseImbalance); }; + if (deviceSettingsKeys.contains("period") || force) { + swgTestSourceSettings->setPeriod(settings.m_period); + }; + if (deviceSettingsKeys.contains("dutyCycle") || force) { + swgTestSourceSettings->setDutyCycle(settings.m_dutyCycle); + }; QString channelSettingsURL = QString("http://%1:%2/sdrangel/deviceset/%3/device/settings") .arg(settings.m_reverseAPIAddress) diff --git a/plugins/samplesource/testsource/testsourcesettings.cpp b/plugins/samplesource/testsource/testsourcesettings.cpp index 4b946b488..50c9c46b1 100644 --- a/plugins/samplesource/testsource/testsourcesettings.cpp +++ b/plugins/samplesource/testsource/testsourcesettings.cpp @@ -45,6 +45,8 @@ void TestSourceSettings::resetToDefaults() m_iFactor = 0.0f; m_qFactor = 0.0f; m_phaseImbalance = 0.0f; + m_period = 1000; + m_dutyCycle = 50; m_useReverseAPI = false; m_reverseAPIAddress = "127.0.0.1"; m_reverseAPIPort = 8888; @@ -75,6 +77,8 @@ QByteArray TestSourceSettings::serialize() const s.writeString(19, m_reverseAPIAddress); s.writeU32(20, m_reverseAPIPort); s.writeU32(21, m_reverseAPIDeviceIndex); + s.writeS32(22, m_period); + s.writeS32(23, m_dutyCycle); return s.final(); } @@ -139,6 +143,11 @@ bool TestSourceSettings::deserialize(const QByteArray& data) d.readU32(21, &utmp, 0); m_reverseAPIDeviceIndex = utmp > 99 ? 99 : utmp; + d.readS32(22, &m_period, 1000); + m_period = m_period < 1 ? 1 : m_period; + d.readS32(23, &m_dutyCycle, 50); + m_dutyCycle = m_dutyCycle < 0 ? 0 : m_dutyCycle > 100 ? 100 : m_dutyCycle; + return true; } else @@ -201,6 +210,12 @@ void TestSourceSettings::applySettings(const QStringList& settingsKeys, const Te if (settingsKeys.contains("phaseImbalance")) { m_phaseImbalance = settings.m_phaseImbalance; } + if (settingsKeys.contains("period")) { + m_period = settings.m_period; + } + if (settingsKeys.contains("dutyCycle")) { + m_dutyCycle = settings.m_dutyCycle; + } if (settingsKeys.contains("useReverseAPI")) { m_useReverseAPI = settings.m_useReverseAPI; } @@ -270,6 +285,12 @@ QString TestSourceSettings::getDebugString(const QStringList& settingsKeys, bool if (settingsKeys.contains("phaseImbalance") || force) { ostr << " m_phaseImbalance: " << m_phaseImbalance; } + if (settingsKeys.contains("period") || force) { + ostr << " m_period: " << m_period; + } + if (settingsKeys.contains("dutyCycle") || force) { + ostr << " m_dutyCycle: " << m_dutyCycle; + } if (settingsKeys.contains("useReverseAPI") || force) { ostr << " m_useReverseAPI: " << m_useReverseAPI; } diff --git a/plugins/samplesource/testsource/testsourcesettings.h b/plugins/samplesource/testsource/testsourcesettings.h index 4888faf36..fbe3cd1f7 100644 --- a/plugins/samplesource/testsource/testsourcesettings.h +++ b/plugins/samplesource/testsource/testsourcesettings.h @@ -64,6 +64,8 @@ struct TestSourceSettings { float m_iFactor; //!< -1.0 < x < 1.0 float m_qFactor; //!< -1.0 < x < 1.0 float m_phaseImbalance; //!< -1.0 < x < 1.0 + qint32 m_period; //!< Period of the P1 and P2 patterns in samples + qint32 m_dutyCycle; //!< Percentage of the period the P2 pattern is high bool m_useReverseAPI; QString m_reverseAPIAddress; uint16_t m_reverseAPIPort; diff --git a/plugins/samplesource/testsource/testsourceworker.cpp b/plugins/samplesource/testsource/testsourceworker.cpp index c868ac992..2cd14b5e1 100644 --- a/plugins/samplesource/testsource/testsourceworker.cpp +++ b/plugins/samplesource/testsource/testsourceworker.cpp @@ -29,7 +29,6 @@ TestSourceWorker::TestSourceWorker(SampleSinkFifo* sampleFifo, QObject* parent) : QObject(parent), - m_running(false), m_buf(0), m_bufsize(0), m_chunksize(0), @@ -42,6 +41,7 @@ TestSourceWorker::TestSourceWorker(SampleSinkFifo* sampleFifo, QObject* parent) m_fmDeviationUnit(0.0f), m_fmPhasor(0.0f), m_pulseWidth(150), + m_period(2000), m_pulseSampleCount(0), m_pulsePatternCount(0), m_pulsePatternCycle(8), @@ -62,31 +62,32 @@ TestSourceWorker::TestSourceWorker(SampleSinkFifo* sampleFifo, QObject* parent) m_frequency(435*1000), m_fcPosShift(0), m_throttlems(TESTSOURCE_THROTTLE_MS), + m_timer(this), m_throttleToggle(false), m_histoCounter(0) { connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection); connect(&m_timer, SIGNAL(timeout()), this, SLOT(tick())); m_timer.setTimerType(Qt::PreciseTimer); - m_timer.start(50); } TestSourceWorker::~TestSourceWorker() { - m_timer.stop(); + qDebug("TestSourceWorker::~TestSourceWorker"); + stopWork(); disconnect(&m_timer, SIGNAL(timeout()), this, SLOT(tick())); } void TestSourceWorker::startWork() { qDebug("TestSourceWorker::startWork"); - m_running = true; + m_timer.start(50); } void TestSourceWorker::stopWork() { qDebug("TestSourceWorker::stopWork"); - m_running = false; + m_timer.stop(); } void TestSourceWorker::setSamplerate(int samplerate) @@ -316,7 +317,7 @@ void TestSourceWorker::generate(quint32 chunksize) m_buf[i++] = 0; } - if (m_pulseSampleCount < 2*m_pulseWidth - 1) { + if (m_pulseSampleCount < m_period - 1) { m_pulseSampleCount++; } else { m_pulseSampleCount = 0; @@ -366,39 +367,36 @@ void TestSourceWorker::callback(const qint16* buf, qint32 len) void TestSourceWorker::tick() { - if (m_running) - { - qint64 throttlems = m_elapsedTimer.restart(); - - std::map::iterator it; - it = m_timerHistogram.find(throttlems); + qint64 throttlems = m_elapsedTimer.restart(); - if (it == m_timerHistogram.end()) { - m_timerHistogram[throttlems] = 1; - } else { - it->second++; - } + std::map::iterator it; + it = m_timerHistogram.find(throttlems); - if (m_histoCounter < 49) { - m_histoCounter++; - } else { - // qDebug("TestSourceWorker::tick: -----------"); - // for (std::map::iterator it = m_timerHistogram.begin(); it != m_timerHistogram.end(); ++it) { - // qDebug("TestSourceWorker::tick: %d: %d", it->first, it->second); - // } - m_histoCounter = 0; - } + if (it == m_timerHistogram.end()) { + m_timerHistogram[throttlems] = 1; + } else { + it->second++; + } - if ((throttlems > 45) && (throttlems < 55) && (throttlems != m_throttlems)) - { - QMutexLocker mutexLocker(&m_mutex); - m_throttlems = throttlems; - m_chunksize = 4 * ((m_samplerate * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000); - m_throttleToggle = !m_throttleToggle; - } + if (m_histoCounter < 49) { + m_histoCounter++; + } else { + // qDebug("TestSourceWorker::tick: -----------"); + // for (std::map::iterator it = m_timerHistogram.begin(); it != m_timerHistogram.end(); ++it) { + // qDebug("TestSourceWorker::tick: %d: %d", it->first, it->second); + // } + m_histoCounter = 0; + } - generate(m_chunksize); + if ((throttlems > 45) && (throttlems < 55) && (throttlems != m_throttlems)) + { + QMutexLocker mutexLocker(&m_mutex); + m_throttlems = throttlems; + m_chunksize = 4 * ((m_samplerate * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000); + m_throttleToggle = !m_throttleToggle; } + + generate(m_chunksize); } void TestSourceWorker::handleInputMessages() @@ -414,14 +412,16 @@ void TestSourceWorker::setPattern0() m_pulsePatternPlaces = 3; } -void TestSourceWorker::setPattern1() +void TestSourceWorker::setPattern1(int period) { - m_pulseWidth = 1000; + m_pulseWidth = period < 1 ? 1 : period; m_pulseSampleCount = 0; } -void TestSourceWorker::setPattern2() +void TestSourceWorker::setPattern2(int period, int dutyCycle) { - m_pulseWidth = 1000; + m_period = period < 1 ? 1 : period; + dutyCycle = dutyCycle < 0 ? 0 : dutyCycle > 100 ? 100 : dutyCycle; + m_pulseWidth = m_period * (dutyCycle / 100.0f); m_pulseSampleCount = 0; } diff --git a/plugins/samplesource/testsource/testsourceworker.h b/plugins/samplesource/testsource/testsourceworker.h index e8084c78f..378f45f06 100644 --- a/plugins/samplesource/testsource/testsourceworker.h +++ b/plugins/samplesource/testsource/testsourceworker.h @@ -59,12 +59,10 @@ public: void setAMModulation(float amModulation); void setFMDeviation(float deviation); void setPattern0(); - void setPattern1(); - void setPattern2(); + void setPattern1(int period); + void setPattern2(int period, int dutyCycle); private: - volatile bool m_running; - qint16 *m_buf; quint32 m_bufsize; quint32 m_chunksize; @@ -79,6 +77,7 @@ private: float m_fmDeviationUnit; float m_fmPhasor; uint32_t m_pulseWidth; //!< pulse width in number of samples + uint32_t m_period; //!< period of the P2 pattern in number of samples uint32_t m_pulseSampleCount; uint32_t m_pulsePatternCount; uint32_t m_pulsePatternCycle; diff --git a/plugins/samplesource/usrpinput/usrpinput.cpp b/plugins/samplesource/usrpinput/usrpinput.cpp index 27b682758..c4dab0928 100644 --- a/plugins/samplesource/usrpinput/usrpinput.cpp +++ b/plugins/samplesource/usrpinput/usrpinput.cpp @@ -1231,12 +1231,20 @@ void USRPInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& respo response.getUsrpInputSettings()->setTitle(new QString(settings.m_title)); } - response.getUsrpInputSettings()->setAntennaPath(new QString(settings.m_antennaPath)); + if (response.getUsrpInputSettings()->getAntennaPath()) { + *response.getUsrpInputSettings()->getAntennaPath() = settings.m_antennaPath; + } else { + response.getUsrpInputSettings()->setAntennaPath(new QString(settings.m_antennaPath)); + } response.getUsrpInputSettings()->setCenterFrequency(settings.m_centerFrequency); response.getUsrpInputSettings()->setDcBlock(settings.m_dcBlock ? 1 : 0); response.getUsrpInputSettings()->setDevSampleRate(settings.m_devSampleRate); response.getUsrpInputSettings()->setLoOffset(settings.m_loOffset); - response.getUsrpInputSettings()->setClockSource(new QString(settings.m_clockSource)); + if (response.getUsrpInputSettings()->getClockSource()) { + *response.getUsrpInputSettings()->getClockSource() = settings.m_clockSource; + } else { + response.getUsrpInputSettings()->setClockSource(new QString(settings.m_clockSource)); + } response.getUsrpInputSettings()->setGain(settings.m_gain); response.getUsrpInputSettings()->setGainMode((int) settings.m_gainMode); response.getUsrpInputSettings()->setIqCorrection(settings.m_iqCorrection ? 1 : 0); diff --git a/plugins/samplesource/usrpinput/usrpinputgui.cpp b/plugins/samplesource/usrpinput/usrpinputgui.cpp index 7594a18af..17f1519a8 100644 --- a/plugins/samplesource/usrpinput/usrpinputgui.cpp +++ b/plugins/samplesource/usrpinput/usrpinputgui.cpp @@ -25,6 +25,7 @@ #include #include "ui_usrpinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -472,7 +473,7 @@ void USRPInputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/plugins/samplesource/xtrxinput/xtrxinput.cpp b/plugins/samplesource/xtrxinput/xtrxinput.cpp index 5aac520ca..7e8aa75b7 100644 --- a/plugins/samplesource/xtrxinput/xtrxinput.cpp +++ b/plugins/samplesource/xtrxinput/xtrxinput.cpp @@ -1304,6 +1304,9 @@ void XTRXInput::webapiUpdateDeviceSettings( if (deviceSettingsKeys.contains("iqOrder")) { settings.m_iqOrder = response.getXtrxInputSettings()->getIqOrder() != 0; } + if (deviceSettingsKeys.contains("title")) { + settings.m_title = *response.getXtrxInputSettings()->getTitle(); + } if (deviceSettingsKeys.contains("lpfBW")) { settings.m_lpfBW = response.getXtrxInputSettings()->getLpfBw(); } @@ -1376,6 +1379,12 @@ void XTRXInput::webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& respo response.getXtrxInputSettings()->setExtClockFreq(settings.m_extClockFreq); response.getXtrxInputSettings()->setPwrmode(settings.m_pwrmode); + if (response.getXtrxInputSettings()->getTitle()) { + *response.getXtrxInputSettings()->getTitle() = settings.m_title; + } else { + response.getXtrxInputSettings()->setTitle(new QString(settings.m_title)); + } + response.getXtrxInputSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0); if (response.getXtrxInputSettings()->getReverseApiAddress()) { diff --git a/plugins/samplesource/xtrxinput/xtrxinputgui.cpp b/plugins/samplesource/xtrxinput/xtrxinputgui.cpp index 5b8c84218..017a5d821 100644 --- a/plugins/samplesource/xtrxinput/xtrxinputgui.cpp +++ b/plugins/samplesource/xtrxinput/xtrxinputgui.cpp @@ -26,6 +26,7 @@ #include #include "ui_xtrxinputgui.h" +#include "gui/messagedialog.h" #include "gui/colormapper.h" #include "gui/glspectrum.h" #include "gui/basicdevicesettingsdialog.h" @@ -443,7 +444,7 @@ void XTRXInputGUI::updateStatus() break; case DeviceAPI::StError: ui->startStop->setStyleSheet("QToolButton { background-color : red; }"); - QMessageBox::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); + MessageDialog::information(this, tr("Message"), m_deviceUISet->m_deviceAPI->errorMessage()); break; default: break; diff --git a/sdrbase/device/deviceapi.cpp b/sdrbase/device/deviceapi.cpp index 9f6cd2921..10b355baf 100644 --- a/sdrbase/device/deviceapi.cpp +++ b/sdrbase/device/deviceapi.cpp @@ -88,7 +88,7 @@ void DeviceAPI::removeChannelSink(BasebandSampleSink* sink, bool deleting, int s if (m_deviceSourceEngine) { m_deviceSourceEngine->removeSink(sink, deleting); } else if (m_deviceMIMOEngine) { - m_deviceMIMOEngine->removeChannelSink(sink, streamIndex); + m_deviceMIMOEngine->removeChannelSink(sink, deleting, streamIndex); } } diff --git a/sdrbase/device/deviceset.cpp b/sdrbase/device/deviceset.cpp index 731188277..c35b952b6 100644 --- a/sdrbase/device/deviceset.cpp +++ b/sdrbase/device/deviceset.cpp @@ -459,6 +459,34 @@ int DeviceSet::webapiSpectrumSettingsGet(SWGSDRangel::SWGGLSpectrum& response, Q return m_spectrumVis->webapiSpectrumSettingsGet(response, errorMessage); } +int DeviceSet::webapiSpectrumReportGet(SWGSDRangel::SWGGLSpectrumReport& response, QString& errorMessage) const +{ + return m_spectrumVis->webapiSpectrumReportGet(response, errorMessage); +} + +int DeviceSet::webapiSpectrumDataGet(int bins, qint64 startFrequency, qint64 stopFrequency, const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, QString& errorMessage) const +{ + return m_spectrumVis->webapiSpectrumDataGet(bins, startFrequency, stopFrequency, reduce, response, errorMessage); +} + +int DeviceSet::webapiSpectrumHistoryGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, QString& errorMessage) const +{ + return m_spectrumVis->webapiSpectrumHistoryGet(seconds, bins, startFrequency, stopFrequency, thresholdDb, response, errorMessage); +} + +int DeviceSet::webapiSpectrumHistoryImageGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + QByteArray& png, QJsonObject& description, QString& errorMessage) const +{ + return m_spectrumVis->webapiSpectrumHistoryImageGet(seconds, bins, startFrequency, stopFrequency, maxRows, png, description, errorMessage); +} + +int DeviceSet::webapiSpectrumActionsPost(const QStringList& spectrumActionsKeys, SWGSDRangel::SWGSpectrumActions& query, QString& errorMessage) +{ + return m_spectrumVis->webapiActionsPost(spectrumActionsKeys, query, errorMessage); +} + int DeviceSet::webapiSpectrumSettingsPutPatch( bool force, const QStringList& spectrumSettingsKeys, diff --git a/sdrbase/device/deviceset.h b/sdrbase/device/deviceset.h index f412bb788..09596a252 100644 --- a/sdrbase/device/deviceset.h +++ b/sdrbase/device/deviceset.h @@ -22,6 +22,7 @@ #define SDRSRV_DEVICE_DEVICESET_H_ #include +#include #include "export.h" @@ -36,6 +37,10 @@ class SpectrumVis; namespace SWGSDRangel { class SWGGLSpectrum; + class SWGGLSpectrumReport; + class SWGSpectrumActions; + class SWGGLSpectrumData; + class SWGGLSpectrumHistory; class SWGSpectrumServer; class SWGSuccessResponse; }; @@ -76,6 +81,14 @@ public: // REST API int webapiSpectrumSettingsGet(SWGSDRangel::SWGGLSpectrum& response, QString& errorMessage) const; + int webapiSpectrumReportGet(SWGSDRangel::SWGGLSpectrumReport& response, QString& errorMessage) const; + int webapiSpectrumDataGet(int bins, qint64 startFrequency, qint64 stopFrequency, const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, QString& errorMessage) const; + int webapiSpectrumHistoryGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, QString& errorMessage) const; + int webapiSpectrumHistoryImageGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + QByteArray& png, QJsonObject& description, QString& errorMessage) const; + int webapiSpectrumActionsPost(const QStringList& spectrumActionsKeys, SWGSDRangel::SWGSpectrumActions& query, QString& errorMessage); int webapiSpectrumSettingsPutPatch( bool force, const QStringList& spectrumSettingsKeys, diff --git a/sdrbase/dsp/dspdevicemimoengine.cpp b/sdrbase/dsp/dspdevicemimoengine.cpp index fdeb2390b..176541b4b 100644 --- a/sdrbase/dsp/dspdevicemimoengine.cpp +++ b/sdrbase/dsp/dspdevicemimoengine.cpp @@ -17,6 +17,7 @@ /////////////////////////////////////////////////////////////////////////////////// #include +#include #include "dspcommands.h" #include "basebandsamplesink.h" @@ -155,12 +156,33 @@ void DSPDeviceMIMOEngine::addChannelSource(BasebandSampleSource* source, int ind getInputMessageQueue()->push(cmd); } +// Whether a removal can be run on the engine thread and waited for: not from that thread +// itself, which would deadlock, and not once it has stopped, which would wait forever +static bool canWaitOn(const QObject *engine) +{ + QThread *engineThread = engine->thread(); + return engineThread && engineThread->isRunning() && (QThread::currentThread() != engineThread); +} + void DSPDeviceMIMOEngine::removeChannelSource(BasebandSampleSource* source, bool deleting, int index) { qDebug() << "DSPDeviceMIMOEngine::removeChannelSource: " << source->getSourceName().toStdString().c_str() << " at: " << index; + + // A source about to be deleted has to be removed before this returns + if (deleting && canWaitOn(this)) + { + // Same code as for RemoveBasebandSampleSource in handleMessage + QMetaObject::invokeMethod(this, [this, source, index]() { + if ((unsigned int) index < m_basebandSampleSources.size()) { + m_basebandSampleSources[index].remove(source); + } + }, Qt::BlockingQueuedConnection); + return; + } + auto *cmd = new RemoveBasebandSampleSource(source, index, deleting); getInputMessageQueue()->push(cmd); } @@ -175,12 +197,25 @@ void DSPDeviceMIMOEngine::addChannelSink(BasebandSampleSink* sink, int index) getInputMessageQueue()->push(cmd); } -void DSPDeviceMIMOEngine::removeChannelSink(BasebandSampleSink* sink, int index) +void DSPDeviceMIMOEngine::removeChannelSink(BasebandSampleSink* sink, bool deleting, int index) { qDebug() << "DSPDeviceMIMOEngine::removeChannelSink: " << sink->getSinkName().toStdString().c_str() << " at: " << index; + + // A sink about to be deleted has to be removed before this returns + if (deleting && canWaitOn(this)) + { + // Same code as for RemoveBasebandSampleSink in handleMessage + QMetaObject::invokeMethod(this, [this, sink, index]() { + if ((unsigned int) index < m_basebandSampleSinks.size()) { + m_basebandSampleSinks[index].remove(sink); + } + }, Qt::BlockingQueuedConnection); + return; + } + auto *cmd = new RemoveBasebandSampleSink(sink, index); getInputMessageQueue()->push(cmd); } @@ -197,6 +232,18 @@ void DSPDeviceMIMOEngine::removeMIMOChannel(MIMOChannel *channel) { qDebug() << "DSPDeviceMIMOEngine::removeMIMOChannel: " << channel->getMIMOName().toStdString().c_str(); + // Called by destructors and when a channel moves to another device, and neither can go + // on until the engine has let go of it. + if (canWaitOn(this)) + { + QMetaObject::invokeMethod(this, [this, channel]() { + channel->stopSinks(); + channel->stopSources(); + m_mimoChannels.remove(channel); + }, Qt::BlockingQueuedConnection); + return; + } + auto *cmd = new RemoveMIMOChannel(channel); getInputMessageQueue()->push(cmd); } diff --git a/sdrbase/dsp/dspdevicemimoengine.h b/sdrbase/dsp/dspdevicemimoengine.h index 11b2e779c..0e3b04740 100644 --- a/sdrbase/dsp/dspdevicemimoengine.h +++ b/sdrbase/dsp/dspdevicemimoengine.h @@ -232,7 +232,7 @@ public: void addChannelSource(BasebandSampleSource* source, int index = 0); //!< Add a channel source void removeChannelSource(BasebandSampleSource* source, bool deleting, int index = 0); //!< Remove a channel source void addChannelSink(BasebandSampleSink* sink, int index = 0); //!< Add a channel sink - void removeChannelSink(BasebandSampleSink* sink, int index = 0); //!< Remove a channel sink + void removeChannelSink(BasebandSampleSink* sink, bool deleting, int index = 0); //!< Remove a channel sink void addMIMOChannel(MIMOChannel *channel); //!< Add a MIMO channel void removeMIMOChannel(MIMOChannel *channel); //!< Remove a MIMO channel diff --git a/sdrbase/dsp/dspdevicesinkengine.cpp b/sdrbase/dsp/dspdevicesinkengine.cpp index 9282e7257..0bdfd6615 100644 --- a/sdrbase/dsp/dspdevicesinkengine.cpp +++ b/sdrbase/dsp/dspdevicesinkengine.cpp @@ -101,9 +101,30 @@ void DSPDeviceSinkEngine::addChannelSource(BasebandSampleSource* source) getInputMessageQueue()->push(cmd); } +// Whether a removal can be run on the engine thread and waited for: not from that thread +// itself, which would deadlock, and not once it has stopped, which would wait forever +// Neither should happen in practice: channels are deleted from the main thread, and a device +// set's channels go before its engine does +static bool canWaitOn(const QObject *engine) +{ + QThread *engineThread = engine->thread(); + return engineThread && engineThread->isRunning() && (QThread::currentThread() != engineThread); +} + void DSPDeviceSinkEngine::removeChannelSource(BasebandSampleSource* source, bool deleting) { qDebug() << "DSPDeviceSinkEngine::removeChannelSource: " << source->getSourceName().toStdString().c_str(); + + // When deleting, the source needs to be removed before returning + if (deleting && canWaitOn(this)) + { + // Same code as for DSPRemoveBasebandSampleSource in handleMessage + QMetaObject::invokeMethod(this, [this, source]() { + m_basebandSampleSources.remove(source); + }, Qt::BlockingQueuedConnection); + return; + } + auto *cmd = new DSPRemoveBasebandSampleSource(source, deleting); getInputMessageQueue()->push(cmd); } diff --git a/sdrbase/dsp/dspdevicesourceengine.cpp b/sdrbase/dsp/dspdevicesourceengine.cpp index edbf39ad7..067fc73ae 100644 --- a/sdrbase/dsp/dspdevicesourceengine.cpp +++ b/sdrbase/dsp/dspdevicesourceengine.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "dsp/dspcommands.h" #include "samplesinkfifo.h" @@ -109,9 +110,31 @@ void DSPDeviceSourceEngine::addSink(BasebandSampleSink* sink) getInputMessageQueue()->push(cmd); } +// Whether a removal can be run on the engine thread and waited for: not from that thread +// itself, which would deadlock, and not once it has stopped, which would wait forever. +// Neither should happen in practice: channels are deleted from the main thread, and a device +// set's channels go before its engine does +static bool canWaitOn(const QObject *engine) +{ + QThread *engineThread = engine->thread(); + return engineThread && engineThread->isRunning() && (QThread::currentThread() != engineThread); +} + void DSPDeviceSourceEngine::removeSink(BasebandSampleSink* sink, bool deleting) { qDebug() << "DSPDeviceSourceEngine::removeSink: " << sink->getSinkName().toStdString().c_str(); + + // When deleting, the sink needs to be removed before returning + if (deleting && canWaitOn(this)) + { + QMetaObject::invokeMethod(this, [this, sink]() { + // Same code as for DSPRemoveBasebandSampleSink in handleMessage + m_basebandSampleSinks.remove(sink); + emit sinkRemoved(); + }, Qt::BlockingQueuedConnection); + return; + } + auto *cmd = new DSPRemoveBasebandSampleSink(sink, deleting); getInputMessageQueue()->push(cmd); } diff --git a/sdrbase/dsp/glscopeinterface.h b/sdrbase/dsp/glscopeinterface.h index d98266581..ad8a52aa6 100644 --- a/sdrbase/dsp/glscopeinterface.h +++ b/sdrbase/dsp/glscopeinterface.h @@ -22,11 +22,15 @@ #include "glscopesettings.h" +class ScopeVis; + class GLScopeInterface { public: GLScopeInterface() {} virtual ~GLScopeInterface() {} + // Called by the ScopeVis this is attached to: set to null before being destroyed + virtual void setScopeVis(ScopeVis *scopeVis) { (void) scopeVis; } virtual void setTraces(std::vector* tracesData, std::vector* traces) = 0; virtual void newTraces(std::vector* traces, int traceIndex, std::vector* projectionTypes) = 0; virtual void setSampleRate(int sampleRate) = 0; diff --git a/sdrbase/dsp/glspectruminterface.h b/sdrbase/dsp/glspectruminterface.h index 72581e543..e3569d32e 100644 --- a/sdrbase/dsp/glspectruminterface.h +++ b/sdrbase/dsp/glspectruminterface.h @@ -21,8 +21,12 @@ #define SDRBASE_DSP_GLSPECTRUMINTERFACE_H_ #include +#include +#include #include "dsp/dsptypes.h" +class SpectrumVis; + class GLSpectrumInterface { public: @@ -33,6 +37,31 @@ public: (void) spectrum; (void) fftSize; } + + // Called by the SpectrumVis this is attached to: set to null before being destroyed + virtual void setSpectrumVis(SpectrumVis *spectrumVis) { (void) spectrumVis; } + + //!< One row of the spectrum history + typedef std::function HistoryRowCallback; + + //!< Get spectrum history from scroll buffe, that are no older than since + //!< folded together by maximum so that at most maxRows are delivered over + //!< the whole period. Returns false when there is no history at all + virtual bool getSpectrumHistory(const QDateTime& since, int maxRows, const HistoryRowCallback& row) + { + (void) since; + (void) maxRows; + (void) row; + return false; + } + + // Actions on what is displayed. The default does nothing, so a spectrum with no GUI simply + // ignores them rather than needing every caller to know whether one is attached. + virtual void spectrumAutoscale() {} + virtual void spectrumClear() {} + virtual void spectrumResetMeasurements() {} + virtual void spectrumGotoMarker(int markerIndex) { (void) markerIndex; } + }; #endif // SDRBASE_DSP_GLSPECTRUMINTERFACE_H_ diff --git a/sdrbase/dsp/scopevis.cpp b/sdrbase/dsp/scopevis.cpp index fc3c52082..d2e872a02 100644 --- a/sdrbase/dsp/scopevis.cpp +++ b/sdrbase/dsp/scopevis.cpp @@ -81,6 +81,10 @@ ScopeVis::ScopeVis() : ScopeVis::~ScopeVis() { + if (m_glScope) { + m_glScope->setScopeVis(nullptr); + } + disconnect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); for (std::vector::iterator it = m_triggerConditions.begin(); it != m_triggerConditions.end(); ++ it) { @@ -90,8 +94,19 @@ ScopeVis::~ScopeVis() void ScopeVis::setGLScope(GLScopeInterface* glScope) { + QMutexLocker configLocker(&m_mutex); + + if (m_glScope && (m_glScope != glScope)) { + m_glScope->setScopeVis(nullptr); + } + m_glScope = glScope; - m_glScope->setTraces(&m_traces.m_tracesData, &m_traces.m_traces[0]); + + if (m_glScope) + { + m_glScope->setScopeVis(this); + m_glScope->setTraces(&m_traces.m_tracesData, &m_traces.m_traces[0]); + } } void ScopeVis::setLiveRate(int sampleRate) diff --git a/sdrbase/dsp/spectrumsettings.cpp b/sdrbase/dsp/spectrumsettings.cpp index 2f51e5872..b88f286a6 100644 --- a/sdrbase/dsp/spectrumsettings.cpp +++ b/sdrbase/dsp/spectrumsettings.cpp @@ -409,6 +409,8 @@ void SpectrumSettings::formatTo(SWGSDRangel::SWGObject *swgObject) const swgSpectrum->setDisplayTraceIntensity(m_displayTraceIntensity); swgSpectrum->setInvertedWaterfall(m_invertedWaterfall ? 1 : 0); swgSpectrum->setDisplayWaterfall(m_displayWaterfall ? 1 : 0); + swgSpectrum->setDisplay3DSpectrogram(m_display3DSpectrogram ? 1 : 0); + swgSpectrum->setSpectrogramStyle((int) m_3DSpectrogramStyle); swgSpectrum->setDisplayGrid(m_displayGrid ? 1 : 0); swgSpectrum->setDisplayGridIntensity(m_displayGridIntensity); swgSpectrum->setSsb(m_ssb ? 1 : 0); @@ -417,6 +419,57 @@ void SpectrumSettings::formatTo(SWGSDRangel::SWGObject *swgObject) const swgSpectrum->setMarkersDisplay((int) m_markersDisplay); swgSpectrum->setUseCalibration(m_useCalibration ? 1 : 0); swgSpectrum->setCalibrationInterpMode((int) m_calibrationInterpMode); + swgSpectrum->setTruncateFreqScale(m_truncateFreqScale ? 1 : 0); + swgSpectrum->setSpectrumStyle((int) m_spectrumStyle); + swgSpectrum->setSpectrumColor((int) m_spectrumColor); + swgSpectrum->setMeasurement((int) m_measurement); + swgSpectrum->setMeasurementCenterFrequencyOffset(m_measurementCenterFrequencyOffset); + swgSpectrum->setMeasurementBandwidth(m_measurementBandwidth); + swgSpectrum->setMeasurementChSpacing(m_measurementChSpacing); + swgSpectrum->setMeasurementAdjChBandwidth(m_measurementAdjChBandwidth); + swgSpectrum->setMeasurementHarmonics(m_measurementHarmonics); + swgSpectrum->setMeasurementPeaks(m_measurementPeaks); + swgSpectrum->setMeasurementHighlight(m_measurementHighlight ? 1 : 0); + swgSpectrum->setMeasurementsPosition((int) m_measurementsPosition); + swgSpectrum->setMeasurementPrecision(m_measurementPrecision); + swgSpectrum->setMeasurementMemMasks((int) m_measurementMemMasks); + swgSpectrum->setFindHistogramPeaks(m_findHistogramPeaks ? 1 : 0); + swgSpectrum->setShowControls((int) m_showControls); + swgSpectrum->setFrequencyZoomFactor(m_frequencyZoomFactor); + swgSpectrum->setFrequencyZoomPos(m_frequencyZoomPos); + swgSpectrum->setWaterfallTimeUnits((int) m_waterfallTimeUnits); + swgSpectrum->setScrollBar(m_scrollBar ? 1 : 0); + swgSpectrum->setScrollLength(m_scrollLength); + swgSpectrum->setMathMode((int) m_mathMode); + swgSpectrum->setMathAvgCount((int) m_mathAvgCount); + swgSpectrum->setDisplayRbw(m_displayRBW ? 1 : 0); + swgSpectrum->setDisplayCursorStats(m_displayCursorStats ? 1 : 0); + swgSpectrum->setDisplayPeakStats(m_displayPeakStats ? 1 : 0); + + if (swgSpectrum->getColorMap()) { + *swgSpectrum->getColorMap() = m_colorMap; + } else { + swgSpectrum->setColorMap(new QString(m_colorMap)); + } + + if (swgSpectrum->getWaterfallTimeFormat()) { + *swgSpectrum->getWaterfallTimeFormat() = m_waterfallTimeFormat; + } else { + swgSpectrum->setWaterfallTimeFormat(new QString(m_waterfallTimeFormat)); + } + + if (m_spectrumMemory.size() > 0) + { + swgSpectrum->setSpectrumMemory(new QList); + + for (const auto &memory : m_spectrumMemory) + { + swgSpectrum->getSpectrumMemory()->append(new SWGSDRangel::SWGSpectrumMemorySettings); + swgSpectrum->getSpectrumMemory()->back()->setDisplay(memory.m_display ? 1 : 0); + swgSpectrum->getSpectrumMemory()->back()->setColor((int) memory.m_color); + swgSpectrum->getSpectrumMemory()->back()->setLabel(new QString(memory.m_label)); + } + } if (m_histogramMarkers.size() > 0) { @@ -458,6 +511,7 @@ void SpectrumSettings::formatTo(SWGSDRangel::SWGObject *swgObject) const swgSpectrum->getAnnotationMarkers()->back()->setBandwidth(marker.m_bandwidth); swgSpectrum->getAnnotationMarkers()->back()->setMarkerColor(qColorToInt(marker.m_markerColor)); swgSpectrum->getAnnotationMarkers()->back()->setShow((int) marker.m_show); + swgSpectrum->getAnnotationMarkers()->back()->setText(new QString(marker.m_text)); } } @@ -545,8 +599,24 @@ void SpectrumSettings::updateFrom(const QStringList& keys, const SWGSDRangel::SW if (keys.contains("spectrumConfig.invertedWaterfall")) { m_invertedWaterfall = swgSpectrum->getInvertedWaterfall() != 0; } - if (keys.contains("spectrumConfig.displayWaterfall")) { + if (keys.contains("spectrumConfig.displayWaterfall")) + { m_displayWaterfall = swgSpectrum->getDisplayWaterfall() != 0; + + if (m_displayWaterfall) { + m_display3DSpectrogram = false; + } + } + if (keys.contains("spectrumConfig.display3DSpectrogram")) + { + m_display3DSpectrogram = swgSpectrum->getDisplay3DSpectrogram() != 0; + + if (m_display3DSpectrogram) { + m_displayWaterfall = false; + } + } + if (keys.contains("spectrumConfig.spectrogramStyle")) { + m_3DSpectrogramStyle = (SpectrumSettings::SpectrogramStyle) swgSpectrum->getSpectrogramStyle(); } if (keys.contains("spectrumConfig.displayGrid")) { m_displayGrid = swgSpectrum->getDisplayGrid() != 0; @@ -572,6 +642,103 @@ void SpectrumSettings::updateFrom(const QStringList& keys, const SWGSDRangel::SW if (keys.contains("spectrumConfig.calibrationInterpMode")) { m_calibrationInterpMode = (CalibrationInterpolationMode) swgSpectrum->getCalibrationInterpMode(); } + if (keys.contains("spectrumConfig.truncateFreqScale")) { + m_truncateFreqScale = swgSpectrum->getTruncateFreqScale() != 0; + } + if (keys.contains("spectrumConfig.colorMap")) { + m_colorMap = *swgSpectrum->getColorMap(); + } + if (keys.contains("spectrumConfig.spectrumStyle")) { + m_spectrumStyle = (SpectrumSettings::SpectrumStyle) swgSpectrum->getSpectrumStyle(); + } + if (keys.contains("spectrumConfig.spectrumColor")) { + m_spectrumColor = (QRgb) swgSpectrum->getSpectrumColor(); + } + if (keys.contains("spectrumConfig.measurement")) { + m_measurement = (SpectrumSettings::Measurement) swgSpectrum->getMeasurement(); + } + if (keys.contains("spectrumConfig.measurementCenterFrequencyOffset")) { + m_measurementCenterFrequencyOffset = swgSpectrum->getMeasurementCenterFrequencyOffset(); + } + if (keys.contains("spectrumConfig.measurementBandwidth")) { + m_measurementBandwidth = swgSpectrum->getMeasurementBandwidth(); + } + if (keys.contains("spectrumConfig.measurementChSpacing")) { + m_measurementChSpacing = swgSpectrum->getMeasurementChSpacing(); + } + if (keys.contains("spectrumConfig.measurementAdjChBandwidth")) { + m_measurementAdjChBandwidth = swgSpectrum->getMeasurementAdjChBandwidth(); + } + if (keys.contains("spectrumConfig.measurementHarmonics")) { + m_measurementHarmonics = swgSpectrum->getMeasurementHarmonics(); + } + if (keys.contains("spectrumConfig.measurementPeaks")) { + m_measurementPeaks = swgSpectrum->getMeasurementPeaks(); + } + if (keys.contains("spectrumConfig.measurementHighlight")) { + m_measurementHighlight = swgSpectrum->getMeasurementHighlight() != 0; + } + if (keys.contains("spectrumConfig.measurementsPosition")) { + m_measurementsPosition = (SpectrumSettings::MeasurementsPosition) swgSpectrum->getMeasurementsPosition(); + } + if (keys.contains("spectrumConfig.measurementPrecision")) { + m_measurementPrecision = swgSpectrum->getMeasurementPrecision(); + } + if (keys.contains("spectrumConfig.measurementMemMasks")) { + m_measurementMemMasks = swgSpectrum->getMeasurementMemMasks(); + } + if (keys.contains("spectrumConfig.findHistogramPeaks")) { + m_findHistogramPeaks = swgSpectrum->getFindHistogramPeaks() != 0; + } + if (keys.contains("spectrumConfig.showControls")) { + m_showControls = (SpectrumSettings::ShowControls) swgSpectrum->getShowControls(); + } + if (keys.contains("spectrumConfig.frequencyZoomFactor")) { + m_frequencyZoomFactor = swgSpectrum->getFrequencyZoomFactor(); + } + if (keys.contains("spectrumConfig.frequencyZoomPos")) { + m_frequencyZoomPos = swgSpectrum->getFrequencyZoomPos(); + } + if (keys.contains("spectrumConfig.waterfallTimeUnits")) { + m_waterfallTimeUnits = (SpectrumSettings::WaterfallTimeUnits) swgSpectrum->getWaterfallTimeUnits(); + } + if (keys.contains("spectrumConfig.waterfallTimeFormat")) { + m_waterfallTimeFormat = *swgSpectrum->getWaterfallTimeFormat(); + } + if (keys.contains("spectrumConfig.scrollBar")) { + m_scrollBar = swgSpectrum->getScrollBar() != 0; + } + if (keys.contains("spectrumConfig.scrollLength")) { + m_scrollLength = swgSpectrum->getScrollLength(); + } + if (keys.contains("spectrumConfig.mathMode")) { + m_mathMode = (SpectrumSettings::MathMode) swgSpectrum->getMathMode(); + } + if (keys.contains("spectrumConfig.mathAvgCount")) { + m_mathAvgCount = swgSpectrum->getMathAvgCount(); + } + if (keys.contains("spectrumConfig.displayRBW")) { + m_displayRBW = swgSpectrum->getDisplayRbw() != 0; + } + if (keys.contains("spectrumConfig.displayCursorStats")) { + m_displayCursorStats = swgSpectrum->getDisplayCursorStats() != 0; + } + if (keys.contains("spectrumConfig.displayPeakStats")) { + m_displayPeakStats = swgSpectrum->getDisplayPeakStats() != 0; + } + + if (keys.contains("spectrumConfig.spectrumMemory")) + { + QList *swgSpectrumMemory = swgSpectrum->getSpectrumMemory(); + validateSpectrumMemories(); + + for (int i = 0; (i < swgSpectrumMemory->size()) && (i < m_maxSpectrumMemories); i++) + { + m_spectrumMemory[i].m_display = swgSpectrumMemory->at(i)->getDisplay() != 0; + m_spectrumMemory[i].m_color = (QRgb) swgSpectrumMemory->at(i)->getColor(); + m_spectrumMemory[i].m_label = *swgSpectrumMemory->at(i)->getLabel(); + } + } if (keys.contains("spectrumConfig.histogramMarkers")) { @@ -617,15 +784,27 @@ void SpectrumSettings::updateFrom(const QStringList& keys, const SWGSDRangel::SW if (keys.contains("spectrumConfig.annotationMarkers")) { QList *swgAnnotationMarkers = swgSpectrum->getAnnotationMarkers(); - m_waterfallMarkers.clear(); - for (const auto &swgAnnotationMarker : *swgAnnotationMarkers) + // Replacing the list is what a PATCH of an array means, but it also means the obvious call + // silently discards whatever was there, a loaded band plan included. Mode 1 appends instead + bool append = keys.contains("spectrumConfig.annotationMarkersMode") + && (swgSpectrum->getAnnotationMarkersMode() == 1); + + if (!append) { + m_annoationMarkers.clear(); + } + + for (const auto &swgAnnotationMarker : swgAnnotationMarkers ? *swgAnnotationMarkers : QList()) { m_annoationMarkers.push_back(SpectrumAnnotationMarker()); m_annoationMarkers.back().m_startFrequency = swgAnnotationMarker->getStartFrequency(); m_annoationMarkers.back().m_bandwidth = swgAnnotationMarker->getBandwidth() < 0 ? 0 : swgAnnotationMarker->getBandwidth(); m_annoationMarkers.back().m_markerColor = intToQColor(swgAnnotationMarker->getMarkerColor()); m_annoationMarkers.back().m_show = (SpectrumAnnotationMarker::ShowState) swgAnnotationMarker->getShow(); + + if (swgAnnotationMarker->getText()) { + m_annoationMarkers.back().m_text = *swgAnnotationMarker->getText(); + } } } diff --git a/sdrbase/dsp/spectrumvis.cpp b/sdrbase/dsp/spectrumvis.cpp index f0e0ef93e..937399c9f 100644 --- a/sdrbase/dsp/spectrumvis.cpp +++ b/sdrbase/dsp/spectrumvis.cpp @@ -23,6 +23,17 @@ /////////////////////////////////////////////////////////////////////////////////// #include "SWGGLSpectrum.h" +#include "SWGGLSpectrumReport.h" +#include "SWGSpectrumActions.h" +#include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" +#include "SWGSpectrumHistorySignal.h" +#include +#include +#include +#include +#include +#include "SWGSpectrumPeak.h" #include "SWGSpectrumServer.h" #include "SWGSuccessResponse.h" @@ -68,10 +79,29 @@ SpectrumVis::SpectrumVis(Real scalef) : SpectrumVis::~SpectrumVis() { + if (m_glSpectrum) { + m_glSpectrum->setSpectrumVis(nullptr); + } + FFTFactory *fftFactory = DSPEngine::instance()->getFFTFactory(); fftFactory->releaseEngine(m_settings.m_fftSize, false, m_fftEngineSequence); } +void SpectrumVis::setGLSpectrum(GLSpectrumInterface* glSpectrum) +{ + QMutexLocker mutexLocker(&m_mutex); + + if (m_glSpectrum && (m_glSpectrum != glSpectrum)) { + m_glSpectrum->setSpectrumVis(nullptr); + } + + m_glSpectrum = glSpectrum; + + if (m_glSpectrum) { + m_glSpectrum->setSpectrumVis(this); + } +} + void SpectrumVis::setScalef(Real scalef) { MsgConfigureScalingFactor* cmd = new MsgConfigureScalingFactor(scalef); @@ -609,6 +639,8 @@ void SpectrumVis::processFFT(const Complex* fftOut, bool reorder, bool positiveO m_mathMovingAverage.nextAverage(); } + m_powerSpectrumUpdated = QDateTime::currentDateTimeUtc(); + // Stop profiling before newSpectrum, as we profile that separately PROFILER_STOP("processFFT"); @@ -869,6 +901,623 @@ void SpectrumVis::handleConfigureWSSpectrum(const QString& address, uint16_t por } } +// The history reduced to a matrix of rows by bins, in dB, over one frequency range and one +// device setting: rows taken while the device was tuned or sampling differently are left out, +// since their bins mean other frequencies +struct SpectrumVis::ReducedHistory +{ + int m_bins = 0; + int m_rows = 0; + qint64 m_startFrequency = 0; //!< Centre of the first bin + double m_binBandwidth = 0.0; + qint64 m_centerFrequency = 0; + int m_bandwidth = 0; + int m_skippedRows = 0; + std::vector m_values; //!< rows * bins, oldest row first + QList m_times; +}; + +// Collects the rows of the display's scroll buffer into a reduced matrix. Returns an HTTP status +int SpectrumVis::reduceHistory(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + ReducedHistory& out, QString& errorMessage) const +{ + QMutexLocker locker(&m_mutex); + const int fftSize = m_settings.m_fftSize; + const qint64 centerFrequency = m_centerFrequency; + const int bandwidth = m_sampleRate; + const bool linear = m_settings.m_linear; + const bool scrolling = m_settings.m_scrollBar; + GLSpectrumInterface *display = m_glSpectrum; + + if (!display) + { + errorMessage = "There is no spectrum display for this device set, so there is no history"; + return 404; + } + + if (!scrolling) + { + errorMessage = "The spectrum history is kept only while scrolling is enabled: " + "set scrollBar to 1 (and scrollLength to the rows to keep) in the spectrum settings"; + return 404; + } + + if ((fftSize <= 0) || (bandwidth <= 0)) + { + errorMessage = "The spectrum has no sample rate yet"; + return 500; + } + + bins = std::max(1, std::min(bins, m_maxDataBins)); + const double hzPerBin = bandwidth / (double) fftSize; + const qint64 spectrumStart = centerFrequency - bandwidth / 2; + const qint64 wantedStart = (startFrequency == 0) ? spectrumStart : startFrequency; + const qint64 wantedStop = (stopFrequency == 0) ? spectrumStart + bandwidth : stopFrequency; + + if (wantedStop <= wantedStart) + { + errorMessage = "stopFrequency must be above startFrequency"; + return 400; + } + + int firstBin = (int) std::floor((wantedStart - spectrumStart) / hzPerBin); + int lastBin = (int) std::ceil((wantedStop - spectrumStart) / hzPerBin) - 1; + firstBin = std::max(0, std::min(firstBin, fftSize - 1)); + lastBin = std::max(firstBin, std::min(lastBin, fftSize - 1)); + const int available = lastBin - firstBin + 1; + const int returned = std::min(bins, available); + const double binsPerGroup = available / (double) returned; + + out.m_bins = returned; + out.m_centerFrequency = centerFrequency; + out.m_bandwidth = bandwidth; + out.m_binBandwidth = hzPerBin * binsPerGroup; + out.m_startFrequency = spectrumStart + (qint64) (firstBin * hzPerBin + out.m_binBandwidth / 2); + out.m_rows = 0; + out.m_skippedRows = 0; + out.m_values.clear(); + out.m_times.clear(); + + const QDateTime since = QDateTime::currentDateTimeUtc().addMSecs(-(qint64) (seconds * 1000.0)); + + const bool have = display->getSpectrumHistory(since, maxRows, + [&](const Real *spectrum, int rowFftSize, quint32 rowSampleRate, qint64 rowCentre, const QDateTime& dateTime) + { + if ((rowFftSize != fftSize) || ((int) rowSampleRate != bandwidth) || (rowCentre != centerFrequency)) + { + out.m_skippedRows++; + return; + } + + const size_t base = out.m_values.size(); + out.m_values.resize(base + returned); + + for (int i = 0; i < returned; i++) + { + const int from = firstBin + (int) std::floor(i * binsPerGroup); + int to = firstBin + (int) std::floor((i + 1) * binsPerGroup) - 1; + to = std::max(from, std::min(to, lastBin)); + float value = spectrum[from]; + + for (int bin = from + 1; bin <= to; bin++) { + value = std::max(value, spectrum[bin]); + } + + if (linear) { + value = (float) (10.0 * std::log10(std::max((double) value, 1e-20))); + } + + out.m_values[base + i] = value; + } + + out.m_times.append(dateTime); + out.m_rows++; + }); + + if (!have) + { + errorMessage = "The spectrum history is kept only while scrolling is enabled in the spectrum display"; + return 404; + } + + if (out.m_rows == 0) + { + errorMessage = out.m_skippedRows > 0 + ? QString("The %1 rows of history in that time were taken with the device tuned or sampling differently, so they do not describe the current band").arg(out.m_skippedRows) + : "There is no spectrum history yet for that time: the spectrum is only computed while it is displayed, and rows arrive at the display's refresh rate"; + return 404; + } + + return 200; +} + +int SpectrumVis::webapiSpectrumHistoryGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, QString& errorMessage) const +{ + ReducedHistory history; + const int status = reduceHistory(seconds, bins, startFrequency, stopFrequency, m_maxHistoryRows, history, errorMessage); + + if (status != 200) { + return status; + } + + const int rows = history.m_rows; + const int n = history.m_bins; + std::vector maxDb(n, -1e9f); + std::vector meanDb(n, 0.0); + + for (int r = 0; r < rows; r++) + { + const float *row = &history.m_values[(size_t) r * n]; + + for (int i = 0; i < n; i++) + { + maxDb[i] = std::max(maxDb[i], row[i]); + meanDb[i] += row[i]; + } + } + + for (int i = 0; i < n; i++) { + meanDb[i] /= rows; + } + + // The floor is the median of the per bin means: most bins of most bands hold no signal, + // and a mean survives the odd burst that a minimum would not + std::vector sorted(meanDb); + std::sort(sorted.begin(), sorted.end()); + const double floorDb = sorted[n / 2]; + const double threshold = floorDb + thresholdDb; + std::vector above(n, 0); + + for (int r = 0; r < rows; r++) + { + const float *row = &history.m_values[(size_t) r * n]; + + for (int i = 0; i < n; i++) + { + if (row[i] > threshold) { + above[i]++; + } + } + } + + response.init(); + response.setCenterFrequency(history.m_centerFrequency); + response.setBandwidth(history.m_bandwidth); + response.setStartFrequency(history.m_startFrequency); + response.setStopFrequency(history.m_startFrequency + (qint64) ((n - 1) * history.m_binBandwidth)); + response.setBinBandwidth((int) history.m_binBandwidth); + response.setBins(n); + response.setRows(rows); + response.setSkippedRows(history.m_skippedRows); + response.setFirstTime(new QString(history.m_times.first().toString(Qt::ISODateWithMs))); + response.setLastTime(new QString(history.m_times.last().toString(Qt::ISODateWithMs))); + response.setSeconds((float) (history.m_times.first().msecsTo(history.m_times.last()) / 1000.0)); + response.setFloorDb((float) floorDb); + response.setThresholdDb((float) threshold); + + for (int i = 0; i < n; i++) + { + response.getMaxDb()->append(maxDb[i]); + response.getMeanDb()->append((float) meanDb[i]); + response.getOccupancy()->append((float) (above[i] / (double) rows)); + } + + // Signals: runs of bins whose maximum rose above the threshold. Each is judged over the + // rows as a whole, so a signal hopping within its run still counts as one transmission + // per row, and its duty cycle is the share of rows in which any of its bins was up + struct Found { int m_first; int m_last; }; + std::vector runs; + + for (int i = 0; i < n; i++) + { + if (maxDb[i] <= threshold) { + continue; + } + + if (!runs.empty() && (runs.back().m_last == i - 1)) { + runs.back().m_last = i; + } else { + runs.push_back({i, i}); + } + } + + // Over thousands of rows, noise alone rises past a threshold a few dB above the floor now + // and then, so a run that was up in only a row or two of many is noise, not a signal, + // unless it stood well clear when it did + const int minActive = std::max(2, rows / 200); + + for (const Found& run : runs) + { + int peakBin = run.m_first; + int active = 0; + int firstRow = -1; + int lastRow = -1; + + for (int i = run.m_first + 1; i <= run.m_last; i++) + { + if (maxDb[i] > maxDb[peakBin]) { + peakBin = i; + } + } + + for (int r = 0; r < rows; r++) + { + const float *row = &history.m_values[(size_t) r * n]; + bool up = false; + + for (int i = run.m_first; (i <= run.m_last) && !up; i++) { + up = row[i] > threshold; + } + + if (up) + { + active++; + lastRow = r; + + if (firstRow < 0) { + firstRow = r; + } + } + } + + if ((active < minActive) && (maxDb[peakBin] < threshold + 6.0)) { + continue; + } + + SWGSDRangel::SWGSpectrumHistorySignal *found = new SWGSDRangel::SWGSpectrumHistorySignal(); + found->init(); + found->setFrequency(history.m_startFrequency + (qint64) (peakBin * history.m_binBandwidth)); + found->setStartFrequency(history.m_startFrequency + (qint64) (run.m_first * history.m_binBandwidth - history.m_binBandwidth / 2)); + found->setStopFrequency(history.m_startFrequency + (qint64) (run.m_last * history.m_binBandwidth + history.m_binBandwidth / 2)); + found->setBandwidth((int) ((run.m_last - run.m_first + 1) * history.m_binBandwidth)); + found->setPeakDb(maxDb[peakBin]); + found->setDutyCycle((float) (active / (double) rows)); + found->setFirstSeen(new QString(history.m_times[firstRow].toString(Qt::ISODateWithMs))); + found->setLastSeen(new QString(history.m_times[lastRow].toString(Qt::ISODateWithMs))); + response.getSignalList()->append(found); + } + + response.setSignalCount(response.getSignalList()->size()); + return 200; +} + +int SpectrumVis::webapiSpectrumHistoryImageGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + QByteArray& png, QJsonObject& description, QString& errorMessage) const +{ + ReducedHistory history; + maxRows = std::max(1, std::min(maxRows, m_maxHistoryRows)); + const int status = reduceHistory(seconds, bins, startFrequency, stopFrequency, maxRows, history, errorMessage); + + if (status != 200) { + return status; + } + + const int n = history.m_bins; + const int rows = history.m_rows; + + // Greyscale from the floor to the peak: the floor as the median of everything, black a + // little below it so noise is not solid black, white at the hottest bin + std::vector sorted(history.m_values); + std::sort(sorted.begin(), sorted.end()); + const float floorDb = sorted[sorted.size() / 2]; + const float peakDb = sorted.back(); + const float low = floorDb - 5.0f; + const float high = std::max(peakDb, low + 10.0f); + + QImage image(n, rows, QImage::Format_Grayscale8); + + for (int r = 0; r < rows; r++) + { + uchar *line = image.scanLine(r); + const float *row = &history.m_values[(size_t) r * n]; + + for (int i = 0; i < n; i++) + { + float v = (row[i] - low) / (high - low); + v = std::max(0.0f, std::min(1.0f, v)); + line[i] = (uchar) (v * 255.0f); + } + } + + QBuffer buffer(&png); + buffer.open(QIODevice::WriteOnly); + + if (!image.save(&buffer, "PNG")) + { + errorMessage = "The image could not be encoded"; + return 500; + } + + description["width"] = n; + description["height"] = rows; + description["startFrequency"] = (double) history.m_startFrequency; + description["stopFrequency"] = (double) (history.m_startFrequency + (qint64) ((n - 1) * history.m_binBandwidth)); + description["binBandwidth"] = history.m_binBandwidth; + description["centerFrequency"] = (double) history.m_centerFrequency; + description["firstTime"] = history.m_times.first().toString(Qt::ISODateWithMs); + description["lastTime"] = history.m_times.last().toString(Qt::ISODateWithMs); + description["seconds"] = history.m_times.first().msecsTo(history.m_times.last()) / 1000.0; + description["blackDb"] = low; + description["whiteDb"] = high; + description["skippedRows"] = history.m_skippedRows; + return 200; +} + +int SpectrumVis::webapiActionsPost(const QStringList& spectrumActionsKeys, SWGSDRangel::SWGSpectrumActions& query, QString& errorMessage) +{ + static const QStringList known = {"autoscale", "clearSpectrum", "resetMeasurements", "freeze", "gotoMarker"}; + QStringList unknown; + + for (const QString& key : spectrumActionsKeys) + { + if (!known.contains(key)) { + unknown.append(key); + } + } + + // An action that does not exist is a mistake worth reporting: accepting it would answer + // "submitted successfully" to a request that does nothing at all + if (!unknown.isEmpty()) + { + errorMessage = QString("Unknown action %1. This spectrum takes: %2") + .arg(unknown.join(", ")).arg(known.join(", ")); + return 400; + } + + if (spectrumActionsKeys.isEmpty()) + { + errorMessage = QString("No action given. This spectrum takes: %1").arg(known.join(", ")); + return 400; + } + + // Everything except freeze acts on what is displayed. Checked before anything is applied, so + // that a request carrying both freeze and a display action is refused whole rather than + // leaving the spectrum stopped behind a 400 + if (!m_glSpectrum) + { + for (const QString& key : {QString("autoscale"), QString("clearSpectrum"), QString("resetMeasurements"), QString("gotoMarker")}) + { + if (spectrumActionsKeys.contains(key)) + { + errorMessage = QString("%1 acts on the spectrum display, which this instance does not have").arg(key); + return 400; + } + } + } + + // freeze is ours: it stops the spectrum rather than its display, so it needs no GUI + if (spectrumActionsKeys.contains("freeze")) + { + MsgStartStop *msg = MsgStartStop::create(query.getFreeze() == 0); + getInputMessageQueue()->push(msg); + } + + if (!m_glSpectrum) { + return 202; + } + + if (spectrumActionsKeys.contains("autoscale") && (query.getAutoscale() != 0)) { + m_glSpectrum->spectrumAutoscale(); + } + + if (spectrumActionsKeys.contains("clearSpectrum") && (query.getClearSpectrum() != 0)) { + m_glSpectrum->spectrumClear(); + } + + if (spectrumActionsKeys.contains("resetMeasurements") && (query.getResetMeasurements() != 0)) { + m_glSpectrum->spectrumResetMeasurements(); + } + + if (spectrumActionsKeys.contains("gotoMarker")) { + m_glSpectrum->spectrumGotoMarker(query.getGotoMarker()); + } + + return 202; +} + + +int SpectrumVis::webapiSpectrumDataGet( + int bins, + qint64 startFrequency, + qint64 stopFrequency, + const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, + QString& errorMessage) const +{ + if ((reduce != "max") && (reduce != "mean")) + { + errorMessage = QString("reduce must be max or mean, not %1").arg(reduce); + return 400; + } + + if ((bins < 1) || (bins > m_maxDataBins)) + { + errorMessage = QString("bins must be between 1 and %1").arg(m_maxDataBins); + return 400; + } + + std::vector spectrum; + int fftSize; + qint64 centerFrequency; + int bandwidth; + bool linear; + QDateTime updated; + + { + // feed() takes this with tryLock and gives up rather than waiting, so the worst this can + // do to the sample path is cost it one FFT + QMutexLocker locker(&m_mutex); + fftSize = m_settings.m_fftSize; + centerFrequency = m_centerFrequency; + bandwidth = m_sampleRate; + linear = m_settings.m_linear; + updated = m_powerSpectrumUpdated; + + if ((int) m_powerSpectrum.size() < fftSize) + { + errorMessage = "The spectrum has not been computed yet"; + return 500; + } + + // Both divide the bin arithmetic below, and a device that has notified a zero sample rate + // leaves the spectrum sized but unscaled + if ((fftSize <= 0) || (bandwidth <= 0)) + { + errorMessage = "The spectrum has no sample rate yet"; + return 500; + } + + spectrum.assign(m_powerSpectrum.begin(), m_powerSpectrum.begin() + fftSize); + } + + double hzPerBin = bandwidth / (double) fftSize; + qint64 spectrumStart = centerFrequency - bandwidth / 2; + + // The range asked for, clamped to what there is + qint64 wantedStart = (startFrequency == 0) ? spectrumStart : startFrequency; + qint64 wantedStop = (stopFrequency == 0) ? spectrumStart + bandwidth : stopFrequency; + + if (wantedStop <= wantedStart) + { + errorMessage = "stopFrequency must be above startFrequency"; + return 400; + } + + int firstBin = (int) std::floor((wantedStart - spectrumStart) / hzPerBin); + int lastBin = (int) std::ceil((wantedStop - spectrumStart) / hzPerBin) - 1; + firstBin = std::max(0, std::min(firstBin, fftSize - 1)); + lastBin = std::max(firstBin, std::min(lastBin, fftSize - 1)); + + int available = lastBin - firstBin + 1; + int returned = std::min(bins, available); + double binsPerGroup = available / (double) returned; + + response.setPower(new QList()); + + for (int i = 0; i < returned; i++) + { + int from = firstBin + (int) std::floor(i * binsPerGroup); + int to = firstBin + (int) std::floor((i + 1) * binsPerGroup) - 1; + to = std::max(from, std::min(to, lastBin)); + + float value = spectrum[from]; + + if (reduce == "max") + { + for (int bin = from + 1; bin <= to; bin++) { + value = std::max(value, spectrum[bin]); + } + } + else + { + double sum = 0.0; + + for (int bin = from; bin <= to; bin++) { + sum += spectrum[bin]; + } + + value = (float) (sum / (to - from + 1)); + } + + response.getPower()->append(value); + } + + response.setCenterFrequency(centerFrequency); + response.setBandwidth(bandwidth); + response.setFftSize(fftSize); + response.setLinear(linear ? 1 : 0); + response.setBins(returned); + response.setReduce(new QString(reduce)); + response.setBinBandwidth((float) (available * hzPerBin / returned)); + // The centre of the first and last groups, so a caller can place every value without + // knowing how the grouping fell out + response.setStartFrequency((qint64) (spectrumStart + (firstBin + binsPerGroup / 2.0) * hzPerBin)); + response.setStopFrequency((qint64) (spectrumStart + (firstBin + (returned - 0.5) * binsPerGroup) * hzPerBin)); + + if (updated.isValid()) { + response.setUpdated(new QString(updated.toString(Qt::ISODateWithMs))); + } + + return 200; +} + +int SpectrumVis::webapiSpectrumReportGet(SWGSDRangel::SWGGLSpectrumReport& response, QString& errorMessage) const +{ + (void) errorMessage; + SpectrumMeasurementResults results; + getMeasurementResults(results); + response.setMeasurement((int) results.m_measurement); + + if (results.m_updated.isValid()) { + response.setUpdated(new QString(results.m_updated.toString(Qt::ISODateWithMs))); + } + + // Only the fields the selected measurement actually produces are set, so that a caller cannot + // read a zero from a measurement that was never taken + switch (results.m_measurement) + { + case SpectrumSettings::MeasurementPeaks: + response.setPeaks(new QList); + + for (const auto& peak : results.m_peaks) + { + SWGSDRangel::SWGSpectrumPeak *swgPeak = new SWGSDRangel::SWGSpectrumPeak(); + swgPeak->setFrequency(peak.m_frequency); + swgPeak->setPower(peak.m_power); + response.getPeaks()->append(swgPeak); + } + + break; + + case SpectrumSettings::MeasurementChannelPower: + response.setChannelPower(results.m_channelPower); + break; + + case SpectrumSettings::MeasurementAdjacentChannelPower: + response.setAdjChannelPowerLeft(results.m_adjChannelPowerLeft); + response.setAdjChannelPowerLeftRatio(results.m_adjChannelPowerLeftACPR); + response.setAdjChannelPowerCentre(results.m_adjChannelPowerCentre); + response.setAdjChannelPowerRight(results.m_adjChannelPowerRight); + response.setAdjChannelPowerRightRatio(results.m_adjChannelPowerRightACPR); + break; + + case SpectrumSettings::MeasurementOccupiedBandwidth: + response.setOccupiedBandwidth(results.m_occupiedBandwidth); + break; + + case SpectrumSettings::Measurement3dBBandwidth: + response.setBandwidth3dB(results.m_bandwidth3dB); + break; + + case SpectrumSettings::MeasurementSNR: + response.setSnr(results.m_snr); + response.setSnfr(results.m_snfr); + response.setThd(results.m_thd); + response.setThdPlusNoise(results.m_thdPlusNoise); + response.setSinad(results.m_sinad); + response.setSfdr(results.m_sfdr); + break; + + default: + break; + } + + return 200; +} + +void SpectrumVis::setMeasurementResults(const SpectrumMeasurementResults& results) +{ + QMutexLocker locker(&m_measurementResultsMutex); + m_measurementResults = results; +} + +void SpectrumVis::getMeasurementResults(SpectrumMeasurementResults& results) const +{ + QMutexLocker locker(&m_measurementResultsMutex); + results = m_measurementResults; +} + int SpectrumVis::webapiSpectrumSettingsGet(SWGSDRangel::SWGGLSpectrum& response, QString& errorMessage) const { (void) errorMessage; diff --git a/sdrbase/dsp/spectrumvis.h b/sdrbase/dsp/spectrumvis.h index fdd727727..e11ef2bb0 100644 --- a/sdrbase/dsp/spectrumvis.h +++ b/sdrbase/dsp/spectrumvis.h @@ -23,6 +23,9 @@ #define INCLUDE_SPECTRUMVIS_H #include +#include +#include +#include #include #include "dsp/basebandsamplesink.h" @@ -42,10 +45,70 @@ class GLSpectrumInterface; namespace SWGSDRangel { class SWGGLSpectrum; + class SWGGLSpectrumReport; + class SWGSpectrumActions; + class SWGGLSpectrumData; + class SWGGLSpectrumHistory; class SWGSpectrumServer; class SWGSuccessResponse; }; + +// The latest value of whichever spectrum measurement is switched on. Which members mean anything +// depends on m_measurement, and with no measurement selected nothing is computed at all, so the +// report says so rather than returning zeros. +// +// Held as plain values behind a lock rather than pushed as a message: the measuring code runs on +// every displayed frame regardless of whether anyone is looking, so storing a handful of scalars +// costs nothing next to the FFT, and a report is only built when one is asked for. +struct SDRBASE_API SpectrumMeasurementResults +{ + struct Peak + { + qint64 m_frequency; //!< Hz + float m_power; //!< dB + + Peak() : m_frequency(0), m_power(0.0f) {} + Peak(qint64 frequency, float power) : m_frequency(frequency), m_power(power) {} + }; + + SpectrumSettings::Measurement m_measurement; + QList m_peaks; + float m_channelPower; //!< dB + float m_adjChannelPowerLeft; //!< dB + float m_adjChannelPowerLeftACPR; //!< dB + float m_adjChannelPowerCentre; //!< dB + float m_adjChannelPowerRight; //!< dB + float m_adjChannelPowerRightACPR;//!< dB + float m_occupiedBandwidth; //!< Hz + float m_bandwidth3dB; //!< Hz + float m_snr; //!< dB + float m_snfr; //!< dB + float m_thd; //!< dB + float m_thdPlusNoise; //!< dB + float m_sinad; //!< dB + float m_sfdr; //!< dB + QDateTime m_updated; //!< When these were last measured, invalid until the first one + + SpectrumMeasurementResults() : + m_measurement(SpectrumSettings::MeasurementNone), + m_channelPower(0.0f), + m_adjChannelPowerLeft(0.0f), + m_adjChannelPowerLeftACPR(0.0f), + m_adjChannelPowerCentre(0.0f), + m_adjChannelPowerRight(0.0f), + m_adjChannelPowerRightACPR(0.0f), + m_occupiedBandwidth(0.0f), + m_bandwidth3dB(0.0f), + m_snr(0.0f), + m_snfr(0.0f), + m_thd(0.0f), + m_thdPlusNoise(0.0f), + m_sinad(0.0f), + m_sfdr(0.0f) + {} +}; + class SDRBASE_API SpectrumVis : public QObject, public BasebandSampleSink { Q_OBJECT public: @@ -114,7 +177,7 @@ public: SpectrumVis(Real scalef); virtual ~SpectrumVis(); - void setGLSpectrum(GLSpectrumInterface* glSpectrum) { m_glSpectrum = glSpectrum; } + void setGLSpectrum(GLSpectrumInterface* glSpectrum); void setWorkspaceIndex(int index) { m_workspaceIndex = index; } int getWorkspaceIndex() const { return m_workspaceIndex; } @@ -140,6 +203,32 @@ public: MessageQueue *getMessageQueueToGUI() { return m_guiMessageQueue; } int webapiSpectrumSettingsGet(SWGSDRangel::SWGGLSpectrum& response, QString& errorMessage) const; + int webapiSpectrumReportGet(SWGSDRangel::SWGGLSpectrumReport& response, QString& errorMessage) const; + int webapiSpectrumDataGet(int bins, qint64 startFrequency, qint64 stopFrequency, const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, QString& errorMessage) const; + + static const int m_maxDataBins = 4096; //!< A reduced spectrum any larger is not a summary + + //!< Statistics over the spectrum history the display keeps for scrolling: per bin max, mean + //!< and occupancy, and the signals found. thresholdDb is above the measured floor + int webapiSpectrumHistoryGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, QString& errorMessage) const; + //!< The same history as a greyscale PNG, newest row at the bottom, bins wide and one row per pixel up to maxRows + int webapiSpectrumHistoryImageGet(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + QByteArray& png, QJsonObject& description, QString& errorMessage) const; + static const int m_maxHistoryRows = 4000; + +private: + struct ReducedHistory; + int reduceHistory(double seconds, int bins, qint64 startFrequency, qint64 stopFrequency, int maxRows, + ReducedHistory& out, QString& errorMessage) const; + +public: + int webapiActionsPost(const QStringList& spectrumActionsKeys, SWGSDRangel::SWGSpectrumActions& query, QString& errorMessage); + + //!< Called by whatever measures the spectrum, once per set of results + void setMeasurementResults(const SpectrumMeasurementResults& results); + void getMeasurementResults(SpectrumMeasurementResults& results) const; int webapiSpectrumSettingsPutPatch( bool force, const QStringList& spectrumSettingsKeys, @@ -203,6 +292,9 @@ private: Real m_scalef; GLSpectrumInterface* m_glSpectrum; + SpectrumMeasurementResults m_measurementResults; + QDateTime m_powerSpectrumUpdated; //!< When the power spectrum was last computed + mutable QMutex m_measurementResultsMutex; //!< Kept away from the DSP mutex: read from HTTP threads WSSpectrum m_wsSpectrum; MovingAverage2D m_movingAverage; FixedAverage2D m_fixedAverage; @@ -220,7 +312,7 @@ private: MessageQueue m_inputMessageQueue; MessageQueue *m_guiMessageQueue; //!< Input message queue to the GUI - QRecursiveMutex m_mutex; + mutable QRecursiveMutex m_mutex; //!< mutable so a const read, such as the web API ones, can take it void performFFT(bool positiveOnly); void processFFT(const Complex* fftOut, bool reorder, bool positiveOnly, int fftSize); diff --git a/sdrbase/feature/feature.cpp b/sdrbase/feature/feature.cpp index 3b3bd40a8..8502e7606 100644 --- a/sdrbase/feature/feature.cpp +++ b/sdrbase/feature/feature.cpp @@ -29,6 +29,7 @@ Feature::Feature(const QString& uri, WebAPIAdapterInterface *webAPIAdapterInterface) : m_guiMessageQueue(nullptr), + m_state(StNotStarted), m_webAPIAdapterInterface(webAPIAdapterInterface), m_name(uri), m_uri(uri), @@ -91,3 +92,12 @@ void Feature::getFeatureStateStr(QString& stateStr) const break; } } + +void Feature::setState(FeatureState state) +{ + if (m_state != state) + { + m_state = state; + emit stateChanged(this); + } +} diff --git a/sdrbase/feature/feature.h b/sdrbase/feature/feature.h index 5df31f945..3744471f1 100644 --- a/sdrbase/feature/feature.h +++ b/sdrbase/feature/feature.h @@ -165,6 +165,7 @@ protected: WebAPIAdapterInterface *m_webAPIAdapterInterface; void getFeatureStateStr(QString& stateStr) const; + void setState(FeatureState state); protected slots: void handleInputMessages(); @@ -179,6 +180,7 @@ private: signals: void indexInFeatureSetChanged(int index); + void stateChanged(Feature *feature); }; #endif // SDRBASE_FETURE_FEATUREAPI_H_ diff --git a/sdrbase/maincore.cpp b/sdrbase/maincore.cpp index a6962fc70..af5bba9bf 100644 --- a/sdrbase/maincore.cpp +++ b/sdrbase/maincore.cpp @@ -66,6 +66,8 @@ MESSAGE_CLASS_DEFINITION(MainCore::MsgChannelSettings, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgChannelDemodReport, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgChannelDemodQuery, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgMoveDeviceUIToWorkspace, Message) +MESSAGE_CLASS_DEFINITION(MainCore::MsgArrangeWorkspace, Message) +MESSAGE_CLASS_DEFINITION(MainCore::MsgSetWindowHidden, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgMoveMainSpectrumUIToWorkspace, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgMoveFeatureUIToWorkspace, Message) MESSAGE_CLASS_DEFINITION(MainCore::MsgMoveChannelUIToWorkspace, Message) @@ -799,3 +801,28 @@ QStringList MainCore::getChannelIds(const QString& uri) return list; } + +void MainCore::setWindowState(const void* owner, const WindowState& state) +{ + QMutexLocker locker(&m_windowStatesMutex); + m_windowStates[owner] = state; +} + +void MainCore::removeWindowState(const void* owner) +{ + QMutexLocker locker(&m_windowStatesMutex); + m_windowStates.remove(owner); +} + +bool MainCore::getWindowState(const void* owner, WindowState& state) const +{ + QMutexLocker locker(&m_windowStatesMutex); + auto it = m_windowStates.constFind(owner); + + if (it == m_windowStates.constEnd()) { + return false; + } + + state = it.value(); + return true; +} diff --git a/sdrbase/maincore.h b/sdrbase/maincore.h index dfa78024c..9d459a0d5 100644 --- a/sdrbase/maincore.h +++ b/sdrbase/maincore.h @@ -25,6 +25,8 @@ #include #include +#include +#include #include #include #include @@ -623,6 +625,60 @@ public: { } }; + class SDRBASE_API MsgArrangeWorkspace : public Message { + MESSAGE_CLASS_DECLARATION + + public: + enum Arrangement { Cascade, Tile, StackVertical, Stack, AutoStack, Tab }; + + int getWorkspaceIndex() const { return m_workspaceIndex; } + Arrangement getArrangement() const { return m_arrangement; } + + static MsgArrangeWorkspace* create(int workspaceIndex, Arrangement arrangement) { + return new MsgArrangeWorkspace(workspaceIndex, arrangement); + } + + private: + int m_workspaceIndex; + Arrangement m_arrangement; + + MsgArrangeWorkspace(int workspaceIndex, Arrangement arrangement) : + Message(), + m_workspaceIndex(workspaceIndex), + m_arrangement(arrangement) + { } + }; + + class SDRBASE_API MsgSetWindowHidden : public Message { + MESSAGE_CLASS_DECLARATION + + public: + enum Kind { Device, Spectrum, Channel, Feature }; + + Kind getKind() const { return m_kind; } + int getDeviceSetIndex() const { return m_deviceSetIndex; } //!< Unused for a feature + int getIndex() const { return m_index; } //!< Channel or feature index; unused for a device or spectrum + bool getHidden() const { return m_hidden; } + + static MsgSetWindowHidden* create(Kind kind, int deviceSetIndex, int index, bool hidden) { + return new MsgSetWindowHidden(kind, deviceSetIndex, index, hidden); + } + + private: + Kind m_kind; + int m_deviceSetIndex; + int m_index; + bool m_hidden; + + MsgSetWindowHidden(Kind kind, int deviceSetIndex, int index, bool hidden) : + Message(), + m_kind(kind), + m_deviceSetIndex(deviceSetIndex), + m_index(index), + m_hidden(hidden) + { } + }; + class SDRBASE_API MsgMoveMainSpectrumUIToWorkspace : public Message { MESSAGE_CLASS_DECLARATION @@ -953,7 +1009,26 @@ signals: void featureAdded(int featureSetIndex, Feature *feature); void featureRemoved(int featureSetIndex, Feature *oldFeature); +public: + // What the GUI shows of a window, kept here so that the Web API, which has no access to + // the GUI and runs on its own threads, can answer for it. Keyed by the object the window + // belongs to (DeviceAPI, SpectrumVis, ChannelAPI or Feature) rather than an index, as + // indices renumber when a lower one is removed. The GUI publishes on every show, hide, + // move and retitle, and removes the entry when the window goes. Empty in the server + struct WindowState + { + int m_workspaceIndex = -1; + bool m_hidden = false; + QString m_title; + }; + + void setWindowState(const void *owner, const WindowState& state); + void removeWindowState(const void *owner); + bool getWindowState(const void *owner, WindowState& state) const; //!< False when the GUI has published nothing for it + private: + mutable QMutex m_windowStatesMutex; + QHash m_windowStates; MainSettings m_settings; qtwebapp::LoggerWithFile *m_logger; MessageQueue *m_mainMessageQueue; diff --git a/sdrbase/resources/webapi.qrc b/sdrbase/resources/webapi.qrc index 7decb2748..d3ba86e63 100644 --- a/sdrbase/resources/webapi.qrc +++ b/sdrbase/resources/webapi.qrc @@ -108,6 +108,7 @@ webapi/doc/swagger/include/RemoteTCPInput.yaml webapi/doc/swagger/include/RemoteTCPSink.yaml webapi/doc/swagger/include/RigCtlServer.yaml + webapi/doc/swagger/include/MCPServer.yaml webapi/doc/swagger/include/RollupState.yaml webapi/doc/swagger/include/RtlSdr.yaml webapi/doc/swagger/include/RTTYDemod.yaml diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 8c1533cc7..25a9a0d55 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -709,12 +709,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude of aircraft in degrees" + "description" : "Latitude of aircraft in degrees", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude of aircraft in degrees" + "description" : "Longitude of aircraft in degrees", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "integer", @@ -734,25 +738,31 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "targetName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the selected or tracked target." }, "targetAzimuth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target azimuth in degrees clockwise from north." }, "targetElevation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target elevation in degrees above the horizon." }, "targetRange" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Distance to the selected or tracked target." }, "aircraftState" : { "type" : "array", + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "items" : { "$ref" : "#/definitions/ADSBDemodAircraftState" } @@ -774,18 +784,18 @@ margin-bottom: 20px; }, "correlationThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum correlation score required to accept a frame preamble." }, "samplesPerBit" : { - "type" : "integer" - }, - "correlateFullPreamble" : { "type" : "integer", - "description" : "Correlate on part or full preamble\n * 0 - part\n * 1 - full\n" + "description" : "Number of input samples used to represent each bit." }, "demodModeS" : { "type" : "integer", - "description" : "Demodulate all mode S frames or just ADS-B\n * 0 - just ADS-B\n * 1 - All mode S\n" + "description" : "Demodulate all mode S frames or just ADS-B\n * 0 - just ADS-B\n * 1 - All mode S\n", + "minimum" : 0, + "maximum" : 1 }, "interpolatorPhaseSteps" : { "type" : "integer", @@ -797,37 +807,58 @@ margin-bottom: 20px; "description" : "Number of taps per phase in channel interpolator" }, "removeTimeout" : { - "type" : "integer" + "type" : "integer", + "description" : "Seconds without a frame after which an aircraft is removed from the display." }, "feedEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable forwarding of received data to the configured feed (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "exportClientEnabled" : { "type" : "integer", - "description" : "Send data to server\n * 0 - Do not send data\n * 1 - Send data\n" + "description" : "Send data to server\n * 0 - Do not send data\n * 1 - Send data\n", + "minimum" : 0, + "maximum" : 1 }, "exportClientHost" : { "type" : "string", "description" : "Host to send data to" }, "exportClientPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Export client port.", + "minimum" : 1, + "maximum" : 65535 }, "exportClientFormat" : { "type" : "integer", - "description" : "Format of sent data\n * 0 - Beast binary\n * 1 - Beast hex\n" + "description" : "Format of sent data\n * 0 - Beast binary\n * 1 - Beast hex\n", + "minimum" : 0, + "maximum" : 1 }, "exportServerEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the data-export server (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "exportServerPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Export server port.", + "minimum" : 1, + "maximum" : 65535 }, "importEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable importing data from the configured service (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "importHost" : { - "type" : "string" + "type" : "string", + "description" : "Import host setting for ADS-B demod." }, "importUsername" : { "type" : "string", @@ -838,35 +869,47 @@ margin-bottom: 20px; "description" : "OpenSky OAuth2 client secret." }, "importParameters" : { - "type" : "string" + "type" : "string", + "description" : "Import parameters setting for ADS-B demod." }, "importPeriod" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "How often to import aircraft from the configured web service, in seconds." }, "importMinLatitude" : { - "type" : "string" + "type" : "string", + "description" : "Import min latitude setting for ADS-B demod." }, "importMaxLatitude" : { - "type" : "string" + "type" : "string", + "description" : "Import max latitude setting for ADS-B demod." }, "importMinLongitude" : { - "type" : "string" + "type" : "string", + "description" : "Import min longitude setting for ADS-B demod." }, "importMaxLongitude" : { - "type" : "string" + "type" : "string", + "description" : "Import max longitude setting for ADS-B demod." }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -874,24 +917,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -901,15 +954,21 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "deviceTrack" : { "type" : "integer", - "description" : "(Re)initialize tracker target frequency adjustment\n * 0 - release\n * 1 - engage\n" + "description" : "(Re)initialize tracker target frequency adjustment\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 }, "devicesApply" : { "type" : "integer", - "description" : "(Re)initialize device sets tracking\n * 0 - release\n * 1 - engage\n" + "description" : "(Re)initialize device sets tracking\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "AFC actions" @@ -918,7 +977,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "trackerChannelIndex" : { "type" : "integer", @@ -927,11 +988,11 @@ margin-bottom: 20px; "trackerDeviceFrequency" : { "type" : "integer", "format" : "int64", - "description" : "Center frequency of tracker device" + "description" : "Centre frequency of the tracking device, in Hz." }, "trackerChannelOffset" : { "type" : "integer", - "description" : "Tracker channel offset from device center frequency" + "description" : "Tracker channel offset from the device centre frequency, in Hz." } }, "description" : "AFC report" @@ -939,10 +1000,12 @@ margin-bottom: 20px; defs.AFCSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "trackerDeviceSetIndex" : { "type" : "integer", @@ -954,20 +1017,24 @@ margin-bottom: 20px; }, "hasTargetFrequency" : { "type" : "integer", - "description" : "Adjust device frequency to match tracker frequency\n * 0 - disabled\n * 1 - enabled\n" + "description" : "Adjust device frequency to match tracker frequency\n * 0 - disabled\n * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "transverterTarget" : { "type" : "integer", - "description" : "Use transverter or device frequency for tracker frequency adjustment\n * 0 - device\n * 1 - transverter\n" + "description" : "Use transverter or device frequency for tracker frequency adjustment\n * 0 - device\n * 1 - transverter\n", + "minimum" : 0, + "maximum" : 1 }, "targetFrequency" : { "type" : "integer", "format" : "int64", - "description" : "Target frequency for the tracker" + "description" : "Frequency the tracker should settle on, in Hz." }, "freqTolerance" : { "type" : "integer", - "description" : "Frequency shift tolerance before tracker frequency is (re)adjusted" + "description" : "Frequency error in Hz that is tolerated before the tracker frequency is adjusted again." }, "trackerAdjustPeriod" : { "type" : "integer", @@ -975,21 +1042,30 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1003,7 +1079,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AISDemod" @@ -1016,24 +1093,31 @@ margin-bottom: 20px; }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "correlationThreshold" : { "type" : "number", "format" : "float", - "description" : "Normalised correlation threshold with the preamble, from 0 to 1" + "description" : "Normalised correlation threshold with the preamble, from 0 to 1", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -1041,26 +1125,39 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "udpFormat" : { "type" : "integer", - "description" : "0 for binary, 1 for NMEA" + "description" : "0 for binary, 1 for NMEA", + "minimum" : 0, + "maximum" : 1 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1068,27 +1165,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1098,14 +1206,19 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit stored message\n * 0 - do nothing\n * 1 - transmit\n" + "description" : "Transmit stored message\n * 0 - do nothing\n * 1 - transmit\n", + "minimum" : 0, + "maximum" : 1 }, "encode" : { "type" : "integer", - "description" : "Encode message from discrete data\n * 0 - do nothing\n * 1 - encode\n" + "description" : "Encode message from discrete data\n * 0 - do nothing\n * 1 - encode\n", + "minimum" : 0, + "maximum" : 1 }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." } }, "description" : "AISMod" @@ -1118,7 +1231,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AISMod" @@ -1131,7 +1245,8 @@ margin-bottom: 20px; "description" : "channel center frequency shift from baseband center in Hz" }, "baud" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol or serial rate in baud." }, "rfBandwidth" : { "type" : "number", @@ -1144,83 +1259,118 @@ margin-bottom: 20px; }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Delay between repetitions." }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for AIS mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for AIS mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for AIS mod." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "msgType" : { "type" : "integer", - "description" : "Message Type\n * 0 - Scheduled position report\n * 1 - Assigned position report\n * 2 - Special position report\n * 3 - Base station report\n" + "description" : "Message Type\n * 0 - Scheduled position report\n * 1 - Assigned position report\n * 2 - Special position report\n * 3 - Base station report\n", + "minimum" : 0, + "maximum" : 3 }, "mmsi" : { - "type" : "string" + "type" : "string", + "description" : "Maritime Mobile Service Identity number." }, "status" : { "type" : "integer", - "description" : "Ship status\n * 0 - Under way using engine\n * 1 - At anchor\n * 2 - Not under command\n * 3 - Restricted manoeuvrability\n * 4 - Constrained by her draught\n * 4 - Moored\n * 5 - Aground\n * 6 - Engaged in fishing\n * 7 - Under way sailing\n * 8 - Not defined\n" + "description" : "Ship status\n * 0 - Under way using engine\n * 1 - At anchor\n * 2 - Not under command\n * 3 - Restricted manoeuvrability\n * 4 - Constrained by her draught\n * 4 - Moored\n * 5 - Aground\n * 6 - Engaged in fishing\n * 7 - Under way sailing\n * 8 - Not defined\n", + "minimum" : 0, + "maximum" : 8 }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "course" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Course over ground in degrees." }, "speed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported speed." }, "heading" : { - "type" : "integer" + "type" : "integer", + "description" : "Heading in degrees." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." }, "bt" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bt setting for AIS mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for AIS mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1228,23 +1378,33 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive messages to transmit on specified UDP port" + "description" : "Whether to receive messages to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -1252,58 +1412,180 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive messages to transmit via" + "description" : "UDP port to receive messages to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "AISMod" +}; + defs.AISReport = { + "properties" : { + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "vesselCount" : { + "type" : "integer", + "description" : "Number of vessels currently held." + }, + "vessels" : { + "type" : "array", + "description" : "The vessels heard.", + "items" : { + "$ref" : "#/definitions/AISVessel" + } + } + }, + "description" : "Vessels heard by the AIS feature, which collects the decoded messages of every AIS demodulator in the instance. A field is present only once a message carrying it has been received, so an absent position means unknown rather than zero.\n" }; defs.AISSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "vesselColumnIndexes" : { "type" : "array", + "description" : "List of vessel column indexes.", "items" : { "type" : "integer" } }, "vesselColumnSizes" : { "type" : "array", + "description" : "List of vessel column sizes.", "items" : { "type" : "integer" } } }, "description" : "AIS settings" +}; + defs.AISVessel = { + "properties" : { + "mmsi" : { + "type" : "string", + "description" : "Maritime Mobile Service Identity, nine digits. The only field always present." + }, + "name" : { + "type" : "string", + "description" : "Vessel name, from a static and voyage related message or an aid-to-navigation report." + }, + "callsign" : { + "type" : "string", + "description" : "Radio callsign." + }, + "imo" : { + "type" : "string", + "description" : "IMO number, where transmitted." + }, + "country" : { + "type" : "string", + "description" : "Flag state, derived from the MMSI maritime identification digits." + }, + "type" : { + "type" : "string", + "description" : "What is transmitting: Vessel, Base station, Aircraft or Aid-to-nav." + }, + "shipType" : { + "type" : "string", + "description" : "Ship and cargo type, such as Cargo or Tug." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "course" : { + "type" : "number", + "format" : "float", + "description" : "Course over ground in degrees true." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Speed over ground in knots." + }, + "heading" : { + "type" : "integer", + "description" : "True heading in degrees, which differs from course when set and drift apply." + }, + "status" : { + "type" : "string", + "description" : "Navigational status, such as Under way using engine or At anchor." + }, + "length" : { + "type" : "integer", + "description" : "Overall length in metres." + }, + "destination" : { + "type" : "string", + "description" : "Destination as entered by the crew." + }, + "positionUpdate" : { + "type" : "string", + "description" : "When the position was last updated, ISO 8601." + }, + "lastUpdate" : { + "type" : "string", + "description" : "When any field was last updated, ISO 8601." + }, + "messages" : { + "type" : "integer", + "description" : "Messages received from this vessel." + } + }, + "description" : "Vessel heard by the AIS feature" }; defs.AMBEActions = { "properties" : { @@ -1384,28 +1666,39 @@ margin-bottom: 20px; defs.AMBESettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1423,10 +1716,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AMDemod" @@ -1455,23 +1750,32 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "bandpassEnable" : { "type" : "integer", - "description" : "use bandpass filter (1 for yes, 0 for no)" + "description" : "use bandpass filter (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "pll" : { "type" : "integer", @@ -1483,7 +1787,9 @@ margin-bottom: 20px; }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k)" + "description" : "(0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k)", + "minimum" : 0, + "maximum" : 3 }, "frequency" : { "type" : "integer", @@ -1500,24 +1806,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1531,10 +1847,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AMMod" @@ -1543,42 +1861,58 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "modFactor" : { "type" : "number", "format" : "float", - "description" : "modulation factor from 0.0 to 1.0" + "description" : "modulation factor from 0.0 to 1.0", + "minimum" : 0, + "maximum" : 1 }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Am mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -1586,151 +1920,333 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "AMMod" +}; + defs.APRSReport = { + "properties" : { + "runningState" : { + "type" : "integer", + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 + }, + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "stationCount" : { + "type" : "integer", + "description" : "Number of stations and objects currently held." + }, + "packetCount" : { + "type" : "integer", + "description" : "Packets received across all stations." + }, + "stations" : { + "type" : "array", + "description" : "The stations and objects heard.", + "items" : { + "$ref" : "#/definitions/APRSStation" + } + } + }, + "description" : "Stations and objects heard by the APRS feature, which collects the AX.25 packets of every packet demodulator in the instance. A field is present only once a packet carrying it has been received.\n" }; defs.APRSSettings = { "properties" : { "igateServer" : { - "type" : "string" + "type" : "string", + "description" : "Igate server setting for Aprs." }, "igatePort" : { - "type" : "integer" + "type" : "integer", + "description" : "Igate port.", + "minimum" : 1, + "maximum" : 65535 }, "igateCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Igate callsign setting for Aprs." }, "igatePasscode" : { - "type" : "string" + "type" : "string", + "description" : "Igate passcode setting for Aprs." }, "igateFilter" : { - "type" : "string" + "type" : "string", + "description" : "Igate filter setting for Aprs." }, "igateEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable igate (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "packetsTableColumnIndexes" : { "type" : "array", + "description" : "List of packets table column indexes.", "items" : { "type" : "integer" } }, "packetsTableColumnSizes" : { "type" : "array", + "description" : "List of packets table column sizes.", "items" : { "type" : "integer" } }, "weatherTableColumnIndexes" : { "type" : "array", + "description" : "List of weather table column indexes.", "items" : { "type" : "integer" } }, "weatherTableColumnSizes" : { "type" : "array", + "description" : "List of weather table column sizes.", "items" : { "type" : "integer" } }, "statusTableColumnIndexes" : { "type" : "array", + "description" : "List of status table column indexes.", "items" : { "type" : "integer" } }, "statusTableColumnSizes" : { "type" : "array", + "description" : "List of status table column sizes.", "items" : { "type" : "integer" } }, "messagesTableColumnIndexes" : { "type" : "array", + "description" : "List of messages table column indexes.", "items" : { "type" : "integer" } }, "messagesTableColumnSizes" : { "type" : "array", + "description" : "List of messages table column sizes.", "items" : { "type" : "integer" } }, "telemetryTableColumnIndexes" : { "type" : "array", + "description" : "List of telemetry table column indexes.", "items" : { "type" : "integer" } }, "telemetryTableColumnSizes" : { "type" : "array", + "description" : "List of telemetry table column sizes.", "items" : { "type" : "integer" } }, "motionTableColumnIndexes" : { "type" : "array", + "description" : "List of motion table column indexes.", "items" : { "type" : "integer" } }, "motionTableColumnSizes" : { "type" : "array", + "description" : "List of motion table column sizes.", "items" : { "type" : "integer" } } }, "description" : "APRS settings" +}; + defs.APRSStation = { + "properties" : { + "callsign" : { + "type" : "string", + "description" : "Station callsign with SSID, or the name of the object or item." + }, + "isObject" : { + "type" : "integer", + "description" : "1 when this is an object or item rather than a station.", + "minimum" : 0, + "maximum" : 1 + }, + "reportingStation" : { + "type" : "string", + "description" : "Callsign that reported this object. Empty for a station." + }, + "symbol" : { + "type" : "string", + "description" : "APRS symbol identifier." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "altitude" : { + "type" : "number", + "format" : "float", + "description" : "Altitude in metres above mean sea level." + }, + "course" : { + "type" : "number", + "format" : "float", + "description" : "Course in degrees true." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Speed in km/h." + }, + "status" : { + "type" : "string", + "description" : "Latest status text." + }, + "comment" : { + "type" : "string", + "description" : "Latest position comment." + }, + "powerWatts" : { + "type" : "number", + "format" : "float", + "description" : "Transmitter power in watts, from a reported PHG value." + }, + "antennaHeight" : { + "type" : "number", + "format" : "float", + "description" : "Antenna height above average terrain in metres, from a reported PHG value." + }, + "antennaGain" : { + "type" : "number", + "format" : "float", + "description" : "Antenna gain in dB, from a reported PHG value." + }, + "antennaDirectivity" : { + "type" : "string", + "description" : "Antenna directivity, from a reported PHG value." + }, + "radioRange" : { + "type" : "number", + "format" : "float", + "description" : "Reported range in km." + }, + "hasWeather" : { + "type" : "integer", + "description" : "1 when weather reports have been received from this station.", + "minimum" : 0, + "maximum" : 1 + }, + "hasTelemetry" : { + "type" : "integer", + "description" : "1 when telemetry has been received from this station.", + "minimum" : 0, + "maximum" : 1 + }, + "telemetryProjectName" : { + "type" : "string", + "description" : "Telemetry project name, where reported." + }, + "packets" : { + "type" : "integer", + "description" : "Packets received from this station." + }, + "lastPacketDateTime" : { + "type" : "string", + "description" : "When the most recent packet was received, ISO 8601." + } + }, + "description" : "Station or object heard by the APRS feature" }; defs.APTDemodActions = { "properties" : { @@ -1819,7 +2335,9 @@ margin-bottom: 20px; }, "decodeEnabled" : { "type" : "integer", - "description" : "Controls whether the decoder is enabled" + "description" : "Controls whether the decoder is enabled", + "minimum" : 0, + "maximum" : 1 }, "autoSave" : { "type" : "integer", @@ -1884,10 +2402,12 @@ margin-bottom: 20px; "description" : "Yaw angle offset in degrees, for aligning image on map" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1895,24 +2415,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1921,47 +2451,62 @@ margin-bottom: 20px; defs.ATVDemodSettings = { "properties" : { "fpsIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected fps index." }, "halfImage" : { "type" : "integer", - "description" : "(boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0" + "description" : "Display only half of the image rows\n * 0 - display all rows\n * 1 - display half the rows\n", + "minimum" : 0, + "maximum" : 1 }, "RFBandwidthFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth factor setting for Atv demod." }, "OppBandwidthFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Opp bandwidth factor setting for Atv demod." }, "nbLinesIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected nb lines index." }, "intFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Int frequency offset in Hz." }, "enmModulation" : { "type" : "integer", - "description" : "see ATVDemodSettings::ATVModulation" + "description" : "Modulation of the received ATV signal\n * 0 - FM with discriminator 1\n * 1 - FM with discriminator 2\n * 2 - FM with phase derivative discriminator\n * 3 - AM\n * 4 - AM with vestigial lower sideband, signal in the upper sideband\n * 5 - AM with vestigial upper sideband, signal in the lower sideband\n", + "minimum" : 0, + "maximum" : 5 }, "fltRFBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt RF bandwidth in Hz." }, "fltRFOppBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt RF opp bandwidth in Hz." }, "blnFFTFiltering" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "fltBFOFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt bfo frequency in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "amScalingFactor" : { "type" : "integer", @@ -1972,71 +2517,96 @@ margin-bottom: 20px; "description" : "Factor in % to apply to adjusted signal scale" }, "intSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Int sample rate in samples per second." }, "enmATVStandard" : { "type" : "integer", - "description" : "see ATVDemodSettings::ATVStd" + "description" : "Television standard, which sets the line count and timings\n * 0 - PAL 625 lines\n * 1 - PAL 525 lines\n * 2 - 819 lines\n * 3 - short, interleaved\n * 4 - short\n * 5 - horizontal sync skip\n", + "minimum" : 0, + "maximum" : 5 }, "intNumberOfLines" : { - "type" : "integer" + "type" : "integer", + "description" : "Int number of lines setting for Atv demod." }, "fltLineDuration" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt line duration setting for Atv demod." }, "fltTopDuration" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt top duration setting for Atv demod." }, "fltFramePerS" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt frame per s setting for Atv demod." }, "fltRatioOfRowsToDisplay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt ratio of rows to display setting for Atv demod." }, "fltVoltLevelSynchroTop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt volt level synchro top setting for Atv demod." }, "fltVoltLevelSynchroBlack" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt volt level synchro black setting for Atv demod." }, "blnHSync" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "blnVSync" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "blnInvertVideo" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "intVideoTabIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected int video tab index." }, "intTVSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Int tv sample rate in samples per second." }, "intNumberSamplePerLine" : { - "type" : "integer" + "type" : "integer", + "description" : "Int number sample per line setting for Atv demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 } }, "description" : "ATVDemod" @@ -2049,7 +2619,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ATVMod" @@ -2058,78 +2629,103 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "rfOppBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF opp bandwidth in Hz." }, "atvStd" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv std setting for Atv mod." }, "nbLines" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb lines setting for Atv mod." }, "fps" : { - "type" : "integer" + "type" : "integer", + "description" : "Fps setting for Atv mod." }, "atvModInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv mod input setting for Atv mod." }, "uniformLevel" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Uniform level setting for Atv mod." }, "atvModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv modulation setting for Atv mod." }, "videoPlayLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Video play loop setting for Atv mod." }, "videoPlay" : { - "type" : "integer" + "type" : "integer", + "description" : "Video play setting for Atv mod." }, "cameraPlay" : { - "type" : "integer" + "type" : "integer", + "description" : "Camera play setting for Atv mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "invertedVideo" : { - "type" : "integer" + "type" : "integer", + "description" : "Inverted video setting for Atv mod." }, "rfScalingFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF scaling factor setting for Atv mod." }, "fmExcursion" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM excursion setting for Atv mod." }, "forceDecimator" : { - "type" : "integer" + "type" : "integer", + "description" : "Force decimator setting for Atv mod." }, "showOverlayText" : { - "type" : "integer" + "type" : "integer", + "description" : "Show overlay text setting for Atv mod." }, "overlayText" : { - "type" : "string" + "type" : "string", + "description" : "Overlay text setting for Atv mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "imageFileName" : { - "type" : "string" + "type" : "string", + "description" : "Image file name or path." }, "videoFileName" : { - "type" : "string" + "type" : "string", + "description" : "Video file name." }, "streamIndex" : { "type" : "integer", @@ -2137,24 +2733,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -2164,7 +2770,9 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n" + "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "AaroniaRTSAOutput" @@ -2172,7 +2780,8 @@ margin-bottom: 20px; defs.AaroniaRTSAOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", @@ -2189,16 +2798,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AaroniaRTSAOutput" @@ -2207,7 +2823,9 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n" + "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "AaroniaRTSA" @@ -2215,7 +2833,8 @@ margin-bottom: 20px; defs.AaroniaRTSASettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", @@ -2232,16 +2851,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AaroniaRTSA" @@ -2250,6 +2876,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -2260,73 +2887,108 @@ margin-bottom: 20px; defs.AirspyHFSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 8 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "bandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected band index." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "useAGC" : { "type" : "integer", - "description" : "AGC (1 for on, 0 for off)" + "description" : "AGC (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "agcHigh" : { "type" : "integer", - "description" : "AGC threshold (1 for high, 0 for low)" + "description" : "AGC threshold (1 for high, 0 for low)", + "minimum" : 0, + "maximum" : 1 }, "useDSP" : { "type" : "integer", - "description" : "LibairspyHF DSP (1 for on, 0 for off)" + "description" : "LibairspyHF DSP (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "useLNA" : { "type" : "integer", - "description" : "LNA (1 for on, 0 for off)" + "description" : "LNA (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "attenuatorSteps" : { "type" : "integer", "description" : "Attenuator in number of 6 dB steps" }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 } }, "description" : "AirspyHF" @@ -2335,6 +2997,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -2345,26 +3008,39 @@ margin-bottom: 20px; defs.AirspySettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low noise amplifier gain as a step index, not a dB value. Ignored when lnaAGC is enabled.", + "minimum" : 0, + "maximum" : 14 }, "mixerGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Mixer gain as a step index, not a dB value. Ignored when mixerAGC is enabled.", + "minimum" : 0, + "maximum" : 15 }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable gain amplifier (IF) gain as a step index, not a dB value.", + "minimum" : 0, + "maximum" : 15 }, "lnaAGC" : { "type" : "integer", @@ -2375,45 +3051,71 @@ margin-bottom: 20px; "description" : "Mixer AGC (1 if active else 0)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "biasT" : { "type" : "integer", - "description" : "Bias tee (1 if active else 0)" + "description" : "Bias tee (1 if active else 0)", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "Airspy" @@ -2421,7 +3123,8 @@ margin-bottom: 20px; defs.AndroidSDRDriverInputReport = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "AndroidSDRDriverInput" @@ -2430,56 +3133,86 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "directSampling" : { - "type" : "integer" + "type" : "integer", + "description" : "Direct sampling setting for Android sdr driver input." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bw in Hz." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AndroidSDRDriverInput" @@ -2488,50 +3221,67 @@ margin-bottom: 20px; "properties" : { "dipoleFrequencyMHz" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dipole frequency in MHz." }, "dipoleEndEffectFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dipole end effect factor setting for Antenna tools." }, "dishFrequencyMHz" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish frequency in MHz." }, "dishDiameter" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish diameter setting for Antenna tools." }, "dishDepth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish depth setting for Antenna tools." }, "dishEfficiency" : { - "type" : "integer" + "type" : "integer", + "description" : "Dish efficiency setting for Antenna tools." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -2540,35 +3290,44 @@ margin-bottom: 20px; defs.ArgInfo = { "properties" : { "key" : { - "type" : "string" + "type" : "string", + "description" : "Key for Definitions." }, "valueType" : { "type" : "string", + "description" : "Value type for Definitions.", "enum" : [ "bool", "int", "float", "string" ] }, "valueString" : { - "type" : "string" + "type" : "string", + "description" : "Value string for Definitions." }, "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "units" : { - "type" : "string" + "type" : "string", + "description" : "Units for Definitions." }, "range" : { + "description" : "Range configuration for Definitions.", "$ref" : "#/definitions/RangeFloat" }, "valueOptions" : { "type" : "array", + "description" : "List of value options.", "items" : { "type" : "string" } }, "optionNames" : { "type" : "array", + "description" : "List of option names.", "items" : { "type" : "string" } @@ -2579,14 +3338,17 @@ margin-bottom: 20px; defs.ArgValue = { "properties" : { "key" : { - "type" : "string" + "type" : "string", + "description" : "Key for Definitions." }, "valueType" : { "type" : "string", + "description" : "Value type for Definitions.", "enum" : [ "bool", "int", "float", "string" ] }, "valueString" : { - "type" : "string" + "type" : "string", + "description" : "Value string for Definitions." } }, "description" : "Generic argument value" @@ -2594,40 +3356,55 @@ margin-bottom: 20px; defs.AudioCATSISOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "rxSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive sample rate in samples per second." }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "txSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit sample rate in samples per second." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "txEnable" : { "type" : "integer", - "description" : "Enable or disable transmission\n * 0 - Disable transmission\n * 1 - Enable transmission\n" + "description" : "Enable or disable transmission\n * 0 - Disable transmission\n * 1 - Enable transmission\n", + "minimum" : 0, + "maximum" : 1 }, "pttSpectrumLink" : { "type" : "integer", - "description" : "Main spectrum display (Rx/Tx) follows PTT (GUI)\n * 0 - Disable PTT following\n * 1 - Enable PTT following\n" + "description" : "Main spectrum display (Rx/Tx) follows PTT (GUI)\n * 0 - Disable PTT following\n * 1 - Enable PTT following\n", + "minimum" : 0, + "maximum" : 1 }, "rxDeviceName" : { "type" : "string", @@ -2635,7 +3412,9 @@ margin-bottom: 20px; }, "rxIQMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n * 2 - I=L, Q=0\n * 3 - I=R, Q=0\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n * 2 - I=L, Q=0\n * 3 - I=R, Q=0\n", + "minimum" : 0, + "maximum" : 3 }, "log2Decim" : { "type" : "integer", @@ -2643,19 +3422,26 @@ margin-bottom: 20px; }, "fcPosRx" : { "type" : "integer", - "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n" + "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n", + "minimum" : 0, + "maximum" : 2 }, "dcBlock" : { "type" : "integer", - "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n" + "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n" + "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "rxVolume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Receive volume setting for Audio catsiso." }, "txDeviceName" : { "type" : "string", @@ -2663,7 +3449,9 @@ margin-bottom: 20px; }, "txIQMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 1 }, "txVolume" : { "type" : "integer", @@ -2671,31 +3459,45 @@ margin-bottom: 20px; }, "catSpeedIndex" : { "type" : "integer", - "description" : "CAT serial link baud rate\n * 0 - 1200\n * 1 - 2400\n * 2 - 4800\n * 3 - 9800\n * 4 - 19200 (default)\n * 5 - 38400\n * 6 - 57600\n * 7 - 115200\n" + "description" : "CAT serial link baud rate\n * 0 - 1200\n * 1 - 2400\n * 2 - 4800\n * 3 - 9800\n * 4 - 19200 (default)\n * 5 - 38400\n * 6 - 57600\n * 7 - 115200\n", + "minimum" : 0, + "maximum" : 7 }, "catDataBitsIndex" : { "type" : "integer", - "description" : "CAT serial link data bits\n * 0 - 7\n * 1 - 8 (default)\n" + "description" : "CAT serial link data bits\n * 0 - 7\n * 1 - 8 (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catStopBitsIndex" : { "type" : "integer", - "description" : "CAT serial link stop bits\n * 0 - 1 (default)\n * 1 - 2\n" + "description" : "CAT serial link stop bits\n * 0 - 1 (default)\n * 1 - 2\n", + "minimum" : 0, + "maximum" : 1 }, "catHandshakeIndex" : { "type" : "integer", - "description" : "CAT serial link handshake type\n * 0 - none (default)\n * 1 - XON/XOFF\n * 2 - hardware\n" + "description" : "CAT serial link handshake type\n * 0 - none (default)\n * 1 - XON/XOFF\n * 2 - hardware\n", + "minimum" : 0, + "maximum" : 2 }, "catPTTMethodIndex" : { "type" : "integer", - "description" : "CAT PTT method\n * 0 - PTT (default)\n * 1 - DTR\n * 2 - RTS\n" + "description" : "CAT PTT method\n * 0 - PTT (default)\n * 1 - DTR\n * 2 - RTS\n", + "minimum" : 0, + "maximum" : 2 }, "catDTRHigh" : { "type" : "integer", - "description" : "CAT DTR control\n * 0 - low\n * 1 - high (default)\n" + "description" : "CAT DTR control\n * 0 - low\n * 1 - high (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catRTSHigh" : { "type" : "integer", - "description" : "CAT RTS control\n * 0 - low\n * 1 - high (default)\n" + "description" : "CAT RTS control\n * 0 - low\n * 1 - high (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catPollingMs" : { "type" : "integer", @@ -2703,16 +3505,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioCATSISO" @@ -2778,7 +3587,8 @@ margin-bottom: 20px; defs.AudioInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "device" : { "type" : "string", @@ -2790,7 +3600,8 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "log2Decim" : { "type" : "integer", @@ -2798,32 +3609,47 @@ margin-bottom: 20px; }, "iqMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=0\n * 1 - I=R, Q=0\n * 2 - I=L, Q=R\n * 3 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=0\n * 1 - I=R, Q=0\n * 2 - I=L, Q=R\n * 3 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 3 }, "dcBlock" : { "type" : "integer", - "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n" + "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { "type" : "integer", - "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n" + "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fcPos" : { "type" : "integer", - "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n" + "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n", + "minimum" : 0, + "maximum" : 2 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioInput" @@ -2896,7 +3722,8 @@ margin-bottom: 20px; defs.AudioOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "deviceName" : { "type" : "string", @@ -2904,24 +3731,34 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "iqMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioOutput" @@ -2938,10 +3775,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective complex baseband sample rate delivered to this channel in samples per second. This must be greater than rfBandwidth.\n" }, "pilotLocked" : { "type" : "integer", @@ -2953,6 +3792,7 @@ margin-bottom: 20px; "description" : "power of stereo pilot (dB)" }, "rdsReport" : { + "description" : "RDS decoder status and decoded programme information.", "$ref" : "#/definitions/RDSReport" } }, @@ -2962,51 +3802,81 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF channel bandwidth in Hz. The channel/baseband sample rate must be greater than this bandwidth. For 180 kHz broadcast FM use at least 240 kS/s; 256 kS/s is recommended.\n", + "minimum" : 80000, + "maximum" : 250000 }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demodulated audio bandwidth in Hz. Broadcast FM normally uses 15 kHz.\n", + "minimum" : 1000, + "maximum" : 20000, + "default" : 15000.0 }, "deEmphasis" : { "type" : "integer", - "description" : "De-emphasis time constant (us)\n * 0 - 50us (Europe, Australia)\n * 1 - 75us (US, Japan)\n" + "description" : "De-emphasis time constant (us)\n * 0 - 50us (Europe, Australia)\n * 1 - 75us (US, Japan)\n", + "minimum" : 0, + "maximum" : 1 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "audioStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable stereo audio decoding (1 stereo, 0 mono).", + "minimum" : 0, + "maximum" : 1 }, "lsbStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Use lower-sideband stereo decoding (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "showPilot" : { - "type" : "integer" + "type" : "integer", + "description" : "Show the stereo pilot spectrum (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rdsActive" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable RDS decoding (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -3014,27 +3884,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3043,7 +3924,8 @@ margin-bottom: 20px; defs.Bandwidth = { "properties" : { "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." } }, "description" : "A bandwidth expressed in Hertz (Hz)" @@ -3061,40 +3943,55 @@ margin-bottom: 20px; defs.BeamSteeringCWModSettings = { "properties" : { "steerDegrees" : { - "type" : "integer" + "type" : "integer", + "description" : "Steer degrees setting for Beam steering CW mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3103,64 +4000,91 @@ margin-bottom: 20px; defs.BladeRF1InputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "vga1" : { - "type" : "integer" + "type" : "integer", + "description" : "First variable-gain-amplifier gain setting." }, "vga2" : { - "type" : "integer" + "type" : "integer", + "description" : "Second variable-gain-amplifier gain setting." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "xb200" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 setting for Blade rf1 input." }, "xb200Path" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 path setting for Blade rf1 input." }, "xb200Filter" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 filter setting for Blade rf1 input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF1" @@ -3168,48 +4092,65 @@ margin-bottom: 20px; defs.BladeRF1OutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "vga1" : { - "type" : "integer" + "type" : "integer", + "description" : "First variable-gain-amplifier gain setting." }, "vga2" : { - "type" : "integer" + "type" : "integer", + "description" : "Second variable-gain-amplifier gain setting." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "xb200" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 setting for Blade rf1 output." }, "xb200Path" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 path setting for Blade rf1 output." }, "xb200Filter" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 filter setting for Blade rf1 output." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF1" @@ -3217,19 +4158,24 @@ margin-bottom: 20px; defs.BladeRF2InputReport = { "properties" : { "frequencyRange" : { + "description" : "Frequency range data for Blade rf2 input.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRange" : { + "description" : "Sample rate range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "bandwidthRange" : { + "description" : "Bandwidth range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "globalGainRange" : { + "description" : "Global gain range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "gainModes" : { "type" : "array", + "description" : "List of gain modes.", "items" : { "$ref" : "#/definitions/NamedEnum" } @@ -3240,65 +4186,96 @@ margin-bottom: 20px; defs.BladeRF2InputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3306,33 +4283,42 @@ margin-bottom: 20px; defs.BladeRF2MIMOReport = { "properties" : { "frequencyRangeRx" : { + "description" : "Frequency range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRangeRx" : { + "description" : "Sample rate range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "bandwidthRangeRx" : { + "description" : "Bandwidth range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "globalGainRangeRx" : { + "description" : "Global gain range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "gainModesRx" : { "type" : "array", + "description" : "List of gain modes receive.", "items" : { "$ref" : "#/definitions/NamedEnum" } }, "frequencyRangeTx" : { + "description" : "Frequency range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRangeTx" : { + "description" : "Sample rate range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "bandwidthRangeTx" : { + "description" : "Bandwidth range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "globalGainRangeTx" : { + "description" : "Global gain range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" } }, @@ -3341,108 +4327,146 @@ margin-bottom: 20px; defs.BladeRF2MIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPosRx" : { "type" : "integer", "description" : "See BladeRF2MIMO::fcPos_t" }, "rxBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive bandwidth in Hz." }, "rx0GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain mode setting for Blade rf2 MIMO." }, "rx0GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 global gain setting for Blade rf2 MIMO." }, "rx1GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain mode setting for Blade rf2 MIMO." }, "rx1GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 global gain setting for Blade rf2 MIMO." }, "rxBiasTee" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterMode" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "fcPosTx" : { "type" : "integer", "description" : "See BladeRF2MIMO::fcPos_t" }, "txBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit bandwidth in Hz." }, "tx0GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx0 global gain setting for Blade rf2 MIMO." }, "tx1GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx1 global gain setting for Blade rf2 MIMO." }, "txBiasTee" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterMode" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3450,15 +4474,19 @@ margin-bottom: 20px; defs.BladeRF2OutputReport = { "properties" : { "frequencyRange" : { + "description" : "Frequency range data for Blade rf2 output.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRange" : { + "description" : "Sample rate range data for Blade rf2 output.", "$ref" : "#/definitions/Range" }, "bandwidthRange" : { + "description" : "Bandwidth range data for Blade rf2 output.", "$ref" : "#/definitions/Range" }, "globalGainRange" : { + "description" : "Global gain range data for Blade rf2 output.", "$ref" : "#/definitions/Range" } }, @@ -3467,49 +4495,70 @@ margin-bottom: 20px; defs.BladeRF2OutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3517,7 +4566,8 @@ margin-bottom: 20px; defs.CWKeyerSettings = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "wpm" : { "type" : "integer", @@ -3525,10 +4575,13 @@ margin-bottom: 20px; }, "mode" : { "type" : "integer", - "description" : "see enum CWKeyerSettings::CWMode" + "description" : "Source of the keying\n * 0 - none, key up\n * 1 - send the text in the text field\n * 2 - send continuous dots\n * 3 - send continuous dashes\n * 4 - key from the keyboard\n", + "minimum" : 0, + "maximum" : 4 }, "text" : { - "type" : "string" + "type" : "string", + "description" : "Text setting for CW keyer." }, "loop" : { "type" : "integer", @@ -3536,23 +4589,25 @@ margin-bottom: 20px; }, "keyboardIambic" : { "type" : "integer", - "description" : "1 for iambic input 0 for straight input using the keyboard" + "description" : "1 for iambic input 0 for straight input using the keyboard", + "minimum" : 0, + "maximum" : 1 }, "dotKey" : { "type" : "integer", - "description" : "key for dots keyboard input. See enum Qt::Key" + "description" : "Keyboard key that sends dots. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "dotKeyModifiers" : { "type" : "integer", - "description" : "key modifier for dots keyboard input. See flags Qt::KeyboardModifiers" + "description" : "Modifiers for the dot key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" }, "dashKey" : { "type" : "integer", - "description" : "key for dashes keyboard input. See enum Qt::Key" + "description" : "Keyboard key that sends dashes. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "dashKeyModifiers" : { "type" : "integer", - "description" : "key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers" + "description" : "Modifiers for the dash key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" } } }; @@ -3634,7 +4689,9 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorDeviceSetIndex" : { "type" : "integer", @@ -3645,39 +4702,51 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the channel index from where the message comes from." }, "AISModActions" : { + "description" : "AIS mod actions configuration for Channel.", "$ref" : "#/definitions/AISModActions" }, "APTDemodActions" : { + "description" : "Apt demod actions configuration for Channel.", "$ref" : "#/definitions/APTDemodActions" }, "FileSinkActions" : { + "description" : "File sink actions configuration for Channel.", "$ref" : "#/definitions/FileSinkActions" }, "FileSourceActions" : { + "description" : "File source actions configuration for Channel.", "$ref" : "#/definitions/FileSourceActions" }, "FreqScannerActions" : { + "description" : "Freq scanner actions configuration for Channel.", "$ref" : "#/definitions/FreqScannerActions" }, "IEEE_802_15_4_ModActions" : { + "description" : "Ieee 802 15 4 mod actions configuration for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModActions" }, "MeshcoreModActions" : { + "description" : "Meshcore mod actions configuration for Channel.", "$ref" : "#/definitions/MeshcoreModActions" }, "PacketModActions" : { + "description" : "Packet mod actions configuration for Channel.", "$ref" : "#/definitions/PacketModActions" }, "PSK31ModActions" : { + "description" : "Psk31 mod actions configuration for Channel.", "$ref" : "#/definitions/PSK31ModActions" }, "RadioAstronomyActions" : { + "description" : "Radio astronomy actions configuration for Channel.", "$ref" : "#/definitions/RadioAstronomyActions" }, "RTTYModActions" : { + "description" : "Rtty mod actions configuration for Channel.", "$ref" : "#/definitions/RTTYModActions" }, "SigMFFileSinkActions" : { + "description" : "Sig mf file sink actions configuration for Channel.", "$ref" : "#/definitions/SigMFFileSinkActions" } }, @@ -3686,72 +4755,97 @@ margin-bottom: 20px; defs.ChannelAnalyzerSettings = { "properties" : { "frequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency in Hz." }, "downSample" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "downSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Down sample rate in samples per second." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "lowCutoff" : { - "type" : "integer" + "type" : "integer", + "description" : "Lower filter cutoff frequency in Hz." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "ssb" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "pll" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "fll" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "costasLoop" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rrc" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rrcRolloff" : { "type" : "integer", "description" : "in 100ths" }, "pllPskOrder" : { - "type" : "integer" + "type" : "integer", + "description" : "Pll psk order setting for Channel analyzer." }, "pllBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll bandwidth in Hz." }, "pllDampingFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll damping factor setting for Channel analyzer." }, "pllLoopGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll loop gain setting for Channel analyzer." }, "inputType" : { "type" : "integer", - "description" : "see ChannelAnalyzerSettings::InputType" + "description" : "Signal fed to the analyser\n * 0 - the channel signal\n * 1 - the PLL output\n * 2 - the autocorrelation of the signal\n", + "minimum" : 0, + "maximum" : 2 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -3759,30 +4853,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3795,6 +4901,7 @@ margin-bottom: 20px; "description" : "Channel type ID in URI form" }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/ChannelSettings" } }, @@ -3833,18 +4940,22 @@ margin-bottom: 20px; defs.ChannelMarker = { "properties" : { "centerFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Device center frequency in Hz." }, "color" : { "type" : "integer", "description" : "RGB color" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "frequencyScaleDisplayType" : { "type" : "integer", - "description" : "ChannelMarker::frequencyScaleDisplay_t" + "description" : "What is written against the channel on the frequency scale\n * 0 - the frequency\n * 1 - the channel title\n * 2 - the send address\n * 3 - the receive address\n * 4 - nothing\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "ChannelMarker settings" @@ -3872,7 +4983,8 @@ margin-bottom: 20px; "description" : "pulse power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ChannelPower" @@ -3881,11 +4993,14 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for Absolute)" + "description" : "(0 for Offset, 1 for Absolute)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -3894,7 +5009,8 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "pulseThreshold" : { "type" : "number", @@ -3906,10 +5022,12 @@ margin-bottom: 20px; "description" : "Average period in microseconds" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -3917,24 +5035,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3950,174 +5078,236 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "ADSBDemodReport" : { + "description" : "ADS-B demod report data for Channel.", "$ref" : "#/definitions/ADSBDemodReport" }, "AISDemodReport" : { + "description" : "AIS demod report data for Channel.", "$ref" : "#/definitions/AISDemodReport" }, "AISModReport" : { + "description" : "AIS mod report data for Channel.", "$ref" : "#/definitions/AISModReport" }, "AMDemodReport" : { + "description" : "Am demod report data for Channel.", "$ref" : "#/definitions/AMDemodReport" }, "AMModReport" : { + "description" : "Am mod report data for Channel.", "$ref" : "#/definitions/AMModReport" }, "ATVModReport" : { + "description" : "Atv mod report data for Channel.", "$ref" : "#/definitions/ATVModReport" }, "BFMDemodReport" : { + "description" : "BFM demod report data for Channel.", "$ref" : "#/definitions/BFMDemodReport" }, + "DABDemodReport" : { + "description" : "DAB demod report data for Channel.", + "$ref" : "#/definitions/DABDemodReport" + }, "ChannelPowerReport" : { + "description" : "Channel power report data for Channel.", "$ref" : "#/definitions/ChannelPowerReport" }, "ChirpChatDemodReport" : { + "description" : "Chirp chat demod report data for Channel.", "$ref" : "#/definitions/ChirpChatDemodReport" }, "ChirpChatModReport" : { + "description" : "Chirp chat mod report data for Channel.", "$ref" : "#/definitions/ChirpChatModReport" }, "DATVDemodReport" : { + "description" : "Datv demod report data for Channel.", "$ref" : "#/definitions/DATVDemodReport" }, "DATVModReport" : { + "description" : "Datv mod report data for Channel.", "$ref" : "#/definitions/DATVModReport" }, "DOA2Report" : { + "description" : "Doa2 report data for Channel.", "$ref" : "#/definitions/DOA2Report" }, "DSCDemodReport" : { + "description" : "Dsc demod report data for Channel.", "$ref" : "#/definitions/DSCDemodReport" }, "DSDDemodReport" : { + "description" : "Dsd demod report data for Channel.", "$ref" : "#/definitions/DSDDemodReport" }, "EndOfTrainDemodReport" : { + "description" : "End of train demod report data for Channel.", "$ref" : "#/definitions/EndOfTrainDemodReport" }, "IEEE_802_15_4_ModReport" : { + "description" : "Ieee 802 15 4 mod report data for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModReport" }, "FileSinkReport" : { + "description" : "File sink report data for Channel.", "$ref" : "#/definitions/FileSinkReport" }, "FileSourceReport" : { + "description" : "File source report data for Channel.", "$ref" : "#/definitions/FileSourceReport" }, "FreeDVDemodReport" : { + "description" : "Free dv demod report data for Channel.", "$ref" : "#/definitions/FreeDVDemodReport" }, "FreeDVModReport" : { + "description" : "Free dv mod report data for Channel.", "$ref" : "#/definitions/FreeDVModReport" }, "FreqScannerReport" : { + "description" : "Freq scanner report data for Channel.", "$ref" : "#/definitions/FreqScannerReport" }, "FreqTrackerReport" : { + "description" : "Freq tracker report data for Channel.", "$ref" : "#/definitions/FreqTrackerReport" }, "FT8DemodReport" : { + "description" : "Ft8 demod report data for Channel.", "$ref" : "#/definitions/FT8DemodReport" }, "HeatMapReport" : { + "description" : "Heat map report data for Channel.", "$ref" : "#/definitions/HeatMapReport" }, "ILSDemodReport" : { + "description" : "Ils demod report data for Channel.", "$ref" : "#/definitions/ILSDemodReport" }, "InmarsatDemodReport" : { + "description" : "Inmarsat demod report data for Channel.", "$ref" : "#/definitions/InmarsatDemodReport" }, "M17DemodReport" : { + "description" : "M17 demod report data for Channel.", "$ref" : "#/definitions/M17DemodReport" }, "M17ModReport" : { + "description" : "M17 mod report data for Channel.", "$ref" : "#/definitions/M17ModReport" }, "MeshtasticDemodReport" : { + "description" : "Meshtastic demod report data for Channel.", "$ref" : "#/definitions/MeshtasticDemodReport" }, "MeshtasticModReport" : { + "description" : "Meshtastic mod report data for Channel.", "$ref" : "#/definitions/MeshtasticModReport" }, "MeshcoreDemodReport" : { + "description" : "Meshcore demod report data for Channel.", "$ref" : "#/definitions/MeshcoreDemodReport" }, "MeshcoreModReport" : { + "description" : "Meshcore mod report data for Channel.", "$ref" : "#/definitions/MeshcoreModReport" }, "NavtexDemodReport" : { + "description" : "Navtex demod report data for Channel.", "$ref" : "#/definitions/NavtexDemodReport" }, "NFMDemodReport" : { + "description" : "Nfm demod report data for Channel.", "$ref" : "#/definitions/NFMDemodReport" }, "NFMModReport" : { + "description" : "Nfm mod report data for Channel.", "$ref" : "#/definitions/NFMModReport" }, "NoiseFigureReport" : { + "description" : "Noise figure report data for Channel.", "$ref" : "#/definitions/NoiseFigureReport" }, "SSBDemodReport" : { + "description" : "Ssb demod report data for Channel.", "$ref" : "#/definitions/SSBDemodReport" }, "RadioAstronomyReport" : { + "description" : "Radio astronomy report data for Channel.", "$ref" : "#/definitions/RadioAstronomyReport" }, "RadioClockReport" : { + "description" : "Radio clock report data for Channel.", "$ref" : "#/definitions/RadioClockReport" }, "RadiosondeDemodReport" : { + "description" : "Radiosonde demod report data for Channel.", "$ref" : "#/definitions/RadiosondeDemodReport" }, "RemoteSourceReport" : { + "description" : "Remote source report data for Channel.", "$ref" : "#/definitions/RemoteSourceReport" }, "RTTYDemodReport" : { + "description" : "Rtty demod report data for Channel.", "$ref" : "#/definitions/RTTYDemodReport" }, "RTTYModReport" : { + "description" : "Rtty mod report data for Channel.", "$ref" : "#/definitions/RTTYModReport" }, "PacketDemodReport" : { + "description" : "Packet demod report data for Channel.", "$ref" : "#/definitions/PacketDemodReport" }, "PacketModReport" : { + "description" : "Packet mod report data for Channel.", "$ref" : "#/definitions/PacketModReport" }, "PagerDemodReport" : { + "description" : "Pager demod report data for Channel.", "$ref" : "#/definitions/PagerDemodReport" }, "PSK31ModReport" : { + "description" : "Psk31 mod report data for Channel.", "$ref" : "#/definitions/PSK31ModReport" }, "SigMFFileSinkReport" : { + "description" : "Sig mf file sink report data for Channel.", "$ref" : "#/definitions/SigMFFileSinkReport" }, "SSBModReport" : { + "description" : "Ssb mod report data for Channel.", "$ref" : "#/definitions/SSBModReport" }, "UDPSourceReport" : { + "description" : "UDP source report data for Channel.", "$ref" : "#/definitions/UDPSourceReport" }, "UDPSinkReport" : { + "description" : "UDP sink report data for Channel.", "$ref" : "#/definitions/UDPSinkReport" }, "VORDemodReport" : { + "description" : "Vor demod report data for Channel.", "$ref" : "#/definitions/VORDemodReport" }, "WDSPRxReport" : { + "description" : "Wdsp receive report data for Channel.", "$ref" : "#/definitions/WDSPRxReport" }, "WFMDemodReport" : { + "description" : "Wfm demod report data for Channel.", "$ref" : "#/definitions/WFMDemodReport" }, "WFMModReport" : { + "description" : "Wfm mod report data for Channel.", "$ref" : "#/definitions/WFMModReport" } }, @@ -4133,7 +5323,9 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorDeviceSetIndex" : { "type" : "integer", @@ -4144,201 +5336,267 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the channel index from where the message comes from." }, "ADSBDemodSettings" : { + "description" : "ADS-B demod settings configuration for Channel.", "$ref" : "#/definitions/ADSBDemodSettings" }, "AISDemodSettings" : { + "description" : "AIS demod settings configuration for Channel.", "$ref" : "#/definitions/AISDemodSettings" }, "AISModSettings" : { + "description" : "AIS mod settings configuration for Channel.", "$ref" : "#/definitions/AISModSettings" }, "AMDemodSettings" : { + "description" : "Am demod settings configuration for Channel.", "$ref" : "#/definitions/AMDemodSettings" }, "AMModSettings" : { + "description" : "Am mod settings configuration for Channel.", "$ref" : "#/definitions/AMModSettings" }, "APTDemodSettings" : { + "description" : "Apt demod settings configuration for Channel.", "$ref" : "#/definitions/APTDemodSettings" }, "ATVDemodSettings" : { + "description" : "Atv demod settings configuration for Channel.", "$ref" : "#/definitions/ATVDemodSettings" }, "ATVModSettings" : { + "description" : "Atv mod settings configuration for Channel.", "$ref" : "#/definitions/ATVModSettings" }, "BeamSteeringCWModSettings" : { + "description" : "Beam steering CW mod settings configuration for Channel.", "$ref" : "#/definitions/BeamSteeringCWModSettings" }, "BFMDemodSettings" : { + "description" : "BFM demod settings configuration for Channel.", "$ref" : "#/definitions/BFMDemodSettings" }, "ChannelAnalyzerSettings" : { + "description" : "Channel analyzer settings configuration for Channel.", "$ref" : "#/definitions/ChannelAnalyzerSettings" }, "ChannelPowerSettings" : { + "description" : "Channel power settings configuration for Channel.", "$ref" : "#/definitions/ChannelPowerSettings" }, "ChirpChatDemodSettings" : { + "description" : "Chirp chat demod settings configuration for Channel.", "$ref" : "#/definitions/ChirpChatDemodSettings" }, "ChirpChatModSettings" : { + "description" : "Chirp chat mod settings configuration for Channel.", "$ref" : "#/definitions/ChirpChatModSettings" }, "DATVModSettings" : { + "description" : "Datv mod settings configuration for Channel.", "$ref" : "#/definitions/DATVModSettings" }, "DATVDemodSettings" : { + "description" : "Datv demod settings configuration for Channel.", "$ref" : "#/definitions/DATVDemodSettings" }, "DABDemodSettings" : { + "description" : "Dab demod settings configuration for Channel.", "$ref" : "#/definitions/DABDemodSettings" }, "DOA2Settings" : { + "description" : "Doa2 settings configuration for Channel.", "$ref" : "#/definitions/DOA2Settings" }, "DSCDemodSettings" : { + "description" : "Dsc demod settings configuration for Channel.", "$ref" : "#/definitions/DSCDemodSettings" }, "DSDDemodSettings" : { + "description" : "Dsd demod settings configuration for Channel.", "$ref" : "#/definitions/DSDDemodSettings" }, "EndOfTrainDemodSettings" : { + "description" : "End of train demod settings configuration for Channel.", "$ref" : "#/definitions/EndOfTrainDemodSettings" }, "FileSinkSettings" : { + "description" : "File sink settings configuration for Channel.", "$ref" : "#/definitions/FileSinkSettings" }, "FileSourceSettings" : { + "description" : "File source settings configuration for Channel.", "$ref" : "#/definitions/FileSourceSettings" }, "FreeDVDemodSettings" : { + "description" : "Free dv demod settings configuration for Channel.", "$ref" : "#/definitions/FreeDVDemodSettings" }, "FreeDVModSettings" : { + "description" : "Free dv mod settings configuration for Channel.", "$ref" : "#/definitions/FreeDVModSettings" }, "FreqScannerSettings" : { + "description" : "Freq scanner settings configuration for Channel.", "$ref" : "#/definitions/FreqScannerSettings" }, "FreqTrackerSettings" : { + "description" : "Freq tracker settings configuration for Channel.", "$ref" : "#/definitions/FreqTrackerSettings" }, "FT8DemodSettings" : { + "description" : "Ft8 demod settings configuration for Channel.", "$ref" : "#/definitions/FT8DemodSettings" }, "HeatMapSettings" : { + "description" : "Heat map settings configuration for Channel.", "$ref" : "#/definitions/HeatMapSettings" }, "ILSDemodSettings" : { + "description" : "Ils demod settings configuration for Channel.", "$ref" : "#/definitions/ILSDemodSettings" }, "InmarsatDemodSettings" : { + "description" : "Inmarsat demod settings configuration for Channel.", "$ref" : "#/definitions/InmarsatDemodSettings" }, "InterferometerSettings" : { + "description" : "Interferometer settings configuration for Channel.", "$ref" : "#/definitions/InterferometerSettings" }, "IEEE_802_15_4_ModSettings" : { + "description" : "Ieee 802 15 4 mod settings configuration for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModSettings" }, "M17DemodSettings" : { + "description" : "M17 demod settings configuration for Channel.", "$ref" : "#/definitions/M17DemodSettings" }, "M17ModSettings" : { + "description" : "M17 mod settings configuration for Channel.", "$ref" : "#/definitions/M17ModSettings" }, "MeshtasticDemodSettings" : { + "description" : "Meshtastic demod settings configuration for Channel.", "$ref" : "#/definitions/MeshtasticDemodSettings" }, "MeshtasticModSettings" : { + "description" : "Meshtastic mod settings configuration for Channel.", "$ref" : "#/definitions/MeshtasticModSettings" }, "MeshcoreDemodSettings" : { + "description" : "Meshcore demod settings configuration for Channel.", "$ref" : "#/definitions/MeshcoreDemodSettings" }, "MeshcoreModSettings" : { + "description" : "Meshcore mod settings configuration for Channel.", "$ref" : "#/definitions/MeshcoreModSettings" }, "NavtexDemodSettings" : { + "description" : "Navtex demod settings configuration for Channel.", "$ref" : "#/definitions/NavtexDemodSettings" }, "NFMDemodSettings" : { + "description" : "Nfm demod settings configuration for Channel.", "$ref" : "#/definitions/NFMDemodSettings" }, "NFMModSettings" : { + "description" : "Nfm mod settings configuration for Channel.", "$ref" : "#/definitions/NFMModSettings" }, "NoiseFigureSettings" : { + "description" : "Noise figure settings configuration for Channel.", "$ref" : "#/definitions/NoiseFigureSettings" }, "LocalSinkSettings" : { + "description" : "Local sink settings configuration for Channel.", "$ref" : "#/definitions/LocalSinkSettings" }, "LocalSourceSettings" : { + "description" : "Local source settings configuration for Channel.", "$ref" : "#/definitions/LocalSourceSettings" }, "PacketDemodSettings" : { + "description" : "Packet demod settings configuration for Channel.", "$ref" : "#/definitions/PacketDemodSettings" }, "PacketModSettings" : { + "description" : "Packet mod settings configuration for Channel.", "$ref" : "#/definitions/PacketModSettings" }, "PagerDemodSettings" : { + "description" : "Pager demod settings configuration for Channel.", "$ref" : "#/definitions/PagerDemodSettings" }, "PSK31ModSettings" : { + "description" : "Psk31 mod settings configuration for Channel.", "$ref" : "#/definitions/PSK31ModSettings" }, "RadioAstronomySettings" : { + "description" : "Radio astronomy settings configuration for Channel.", "$ref" : "#/definitions/RadioAstronomySettings" }, "RadioClockSettings" : { + "description" : "Radio clock settings configuration for Channel.", "$ref" : "#/definitions/RadioClockSettings" }, "RadiosondeDemodSettings" : { + "description" : "Radiosonde demod settings configuration for Channel.", "$ref" : "#/definitions/RadiosondeDemodSettings" }, "RemoteSinkSettings" : { + "description" : "Remote sink settings configuration for Channel.", "$ref" : "#/definitions/RemoteSinkSettings" }, "RemoteSourceSettings" : { + "description" : "Remote source settings configuration for Channel.", "$ref" : "#/definitions/RemoteSourceSettings" }, "RemoteTCPSinkSettings" : { + "description" : "Remote TCP sink settings configuration for Channel.", "$ref" : "#/definitions/RemoteTCPSinkSettings" }, "RTTYDemodSettings" : { + "description" : "Rtty demod settings configuration for Channel.", "$ref" : "#/definitions/RTTYDemodSettings" }, "RTTYModSettings" : { + "description" : "Rtty mod settings configuration for Channel.", "$ref" : "#/definitions/RTTYModSettings" }, "SigMFFileSinkSettings" : { + "description" : "Sig mf file sink settings configuration for Channel.", "$ref" : "#/definitions/SigMFFileSinkSettings" }, "SSBModSettings" : { + "description" : "Ssb mod settings configuration for Channel.", "$ref" : "#/definitions/SSBModSettings" }, "SSBDemodSettings" : { + "description" : "Ssb demod settings configuration for Channel.", "$ref" : "#/definitions/SSBDemodSettings" }, "UDPSourceSettings" : { + "description" : "UDP source settings configuration for Channel.", "$ref" : "#/definitions/UDPSourceSettings" }, "UDPSinkSettings" : { + "description" : "UDP sink settings configuration for Channel.", "$ref" : "#/definitions/UDPSinkSettings" }, "VORDemodSettings" : { + "description" : "Vor demod settings configuration for Channel.", "$ref" : "#/definitions/VORDemodSettings" }, "WDSPRxSettings" : { + "description" : "Wdsp receive settings configuration for Channel.", "$ref" : "#/definitions/WDSPRxSettings" }, "WFMDemodSettings" : { + "description" : "Wfm demod settings configuration for Channel.", "$ref" : "#/definitions/WFMDemodSettings" }, "WFMModSettings" : { + "description" : "Wfm mod settings configuration for Channel.", "$ref" : "#/definitions/WFMModSettings" } }, @@ -4384,15 +5642,20 @@ margin-bottom: 20px; "description" : "last message de-chirped signal to noise ratio power (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "syncWord" : { "type" : "integer", - "description" : "2 bytes sync word (0..65535)" + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 }, "hasCRC" : { "type" : "integer", - "description" : "boolean 1 if payload CRC is present else 0 (LoRa)" + "description" : "boolean 1 if payload CRC is present else 0 (LoRa)", + "minimum" : 0, + "maximum" : 1 }, "nbParityBits" : { "type" : "integer", @@ -4412,7 +5675,9 @@ margin-bottom: 20px; }, "headerParityStatus" : { "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "headerCRCStatus" : { "type" : "integer", @@ -4420,7 +5685,9 @@ margin-bottom: 20px; }, "payloadParityStatus" : { "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "payloadCRCStatus" : { "type" : "integer", @@ -4443,7 +5710,9 @@ margin-bottom: 20px; }, "decoding" : { "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "ChirpChatDemod" @@ -4452,14 +5721,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Chirp chat demod." }, "deBits" : { "type" : "integer", @@ -4467,15 +5740,21 @@ margin-bottom: 20px; }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "codingScheme" : { "type" : "integer", - "description" : "message encoding scheme (ChirpChatDemodSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n" + "description" : "message encoding scheme (ChirpChatDemodSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n", + "minimum" : 0, + "maximum" : 2 }, "decodeActive" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 }, "eomSquelchTenths" : { "type" : "integer", @@ -4511,11 +5790,15 @@ margin-bottom: 20px; }, "sendViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udoEnabled" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -4523,17 +5806,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4541,27 +5830,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -4575,7 +5875,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "symbolTimeMs" : { "type" : "number", @@ -4594,7 +5895,9 @@ margin-bottom: 20px; }, "playing" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "ChirpChatMod" @@ -4603,14 +5906,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Chirp chat mod." }, "deBits" : { "type" : "integer", @@ -4626,15 +5933,21 @@ margin-bottom: 20px; }, "syncWord" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 }, "channelMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "codingScheme" : { "type" : "integer", - "description" : "message encoding scheme (ChirpChatModSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n" + "description" : "message encoding scheme (ChirpChatModSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n", + "minimum" : 0, + "maximum" : 2 }, "nbParityBits" : { "type" : "integer", @@ -4666,7 +5979,9 @@ margin-bottom: 20px; }, "messageType" : { "type" : "integer", - "description" : "type of message to send (ChirpChatModSettings::MessageType):\n * 0 - No message i.e no output. Use this as a transition to resend the same message.\n * 1 - Beacon. Sends message specified in beaconMessage\n * 2 - CQ call. Sends message specified in cqMessage\n * 3 - Reply to CQ call. Sends message specified in replyMessage\n * 4 - Report to callee. Sends message specified in reportMessage\n * 5 - Report to caller. Sends message specified in replyReportMessage\n * 6 - RRR to callee. Sends message specified in rrrMessage\n * 7 - 73 to caller. Sends message specified in message73\n * 8 - Random message with callsigns. Sends message specified in qsoTextMessage\n * 9 - Plain text. Sends message specified in textMessage\n * 10 - Binary payload. Sends bytes specified in bytesMessage\n" + "description" : "type of message to send (ChirpChatModSettings::MessageType):\n * 0 - No message i.e no output. Use this as a transition to resend the same message.\n * 1 - Beacon. Sends message specified in beaconMessage\n * 2 - CQ call. Sends message specified in cqMessage\n * 3 - Reply to CQ call. Sends message specified in replyMessage\n * 4 - Report to callee. Sends message specified in reportMessage\n * 5 - Report to caller. Sends message specified in replyReportMessage\n * 6 - RRR to callee. Sends message specified in rrrMessage\n * 7 - 73 to caller. Sends message specified in message73\n * 8 - Random message with callsigns. Sends message specified in qsoTextMessage\n * 9 - Plain text. Sends message specified in textMessage\n * 10 - Binary payload. Sends bytes specified in bytesMessage\n", + "minimum" : 0, + "maximum" : 10 }, "beaconMessage" : { "type" : "string", @@ -4717,7 +6032,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -4725,17 +6042,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4743,24 +6066,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -4769,32 +6102,40 @@ margin-bottom: 20px; defs.Command = { "properties" : { "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Command." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "command" : { - "type" : "string" + "type" : "string", + "description" : "Command for Command." }, "argString" : { - "type" : "string" + "type" : "string", + "description" : "Arg string for Command." }, "key" : { "type" : "integer", - "description" : "Qt::Key" + "description" : "Keyboard key that triggers the command. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "keyModifiers" : { "type" : "integer", - "description" : "Qt::KeyboardModifiers" + "description" : "Modifiers for the trigger key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" }, "associateKey" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "release" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Represents a Command object" @@ -4803,11 +6144,13 @@ margin-bottom: 20px; "properties" : { "real" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Real component of the complex number." }, "imag" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Imaginary component of the complex number." } }, "description" : "A complex number" @@ -4884,35 +6227,150 @@ margin-bottom: 20px; } }, "description" : "Configuration presets" +}; + defs.DABDemodReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "Average power in the demodulator channel in dB." + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective complex channel sample rate in samples per second. DAB requires 2048000." + }, + "audioSampleRate" : { + "type" : "integer", + "description" : "Audio output sample rate in samples per second." + }, + "sync" : { + "type" : "integer", + "description" : "DAB synchronization state (1 synchronized, 0 not synchronized).", + "minimum" : 0, + "maximum" : 1 + }, + "snr" : { + "type" : "integer", + "description" : "DAB decoder signal-to-noise ratio in dB. A value of 0 dB or less after synchronization and audio become active is not a healthy result and can indicate receiver overload. With an RTL-SDR, reduce tuner gain through its supported values, wait briefly after each change, and re-read this report. Select the gain that gives the best positive SNR rather than assuming that higher gain is better.\n" + }, + "frequencyOffset" : { + "type" : "integer", + "description" : "Frequency offset estimated by the DAB decoder in Hz." + }, + "ensembleName" : { + "type" : "string", + "description" : "Label of the currently decoded ensemble." + }, + "ensembleId" : { + "type" : "integer", + "description" : "Identifier of the currently decoded ensemble." + }, + "programs" : { + "type" : "array", + "description" : "Programme services discovered in the currently tuned ensemble.", + "items" : { + "$ref" : "#/definitions/DABProgram" + } + }, + "selectedProgram" : { + "type" : "string", + "description" : "Exact service label currently requested by the program setting." + }, + "audioActive" : { + "type" : "integer", + "description" : "Whether programme audio metadata has been received and audio decoding is active.", + "minimum" : 0, + "maximum" : 1 + }, + "bitrate" : { + "type" : "integer", + "description" : "Selected programme audio bitrate in kbit/s." + }, + "audio" : { + "type" : "string", + "description" : "Selected programme audio codec and channel-mode description." + }, + "language" : { + "type" : "string", + "description" : "Selected programme language." + }, + "programType" : { + "type" : "string", + "description" : "Selected programme type, such as News or Pop Music." + }, + "frameQuality" : { + "type" : "integer", + "description" : "Audio frame decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "reedSolomonQuality" : { + "type" : "integer", + "description" : "Reed-Solomon decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "aacQuality" : { + "type" : "integer", + "description" : "AAC decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "fibQuality" : { + "type" : "integer", + "description" : "Fast Information Block decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "tii" : { + "type" : "integer", + "description" : "Decoded Transmitter Identification Information value." + }, + "data" : { + "type" : "string", + "description" : "Latest dynamic text/data associated with the selected programme." + } + }, + "description" : "Live DAB demodulator, ensemble and selected-programme status. Synchronization, discovered programmes and active audio do not by themselves prove clean reception; check SNR after selecting a programme and after every receiver gain change.\n" }; defs.DABDemodSettings = { "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "program" : { - "type" : "string" + "type" : "string", + "description" : "Program setting for Dab demod." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4920,28 +6378,51 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "DABDemod" +}; + defs.DABProgram = { + "properties" : { + "name" : { + "type" : "string", + "description" : "Exact transmitted service label. Use this value for the program setting." + }, + "id" : { + "type" : "integer", + "description" : "DAB service identifier." + } + }, + "description" : "A programme service discovered in the currently tuned DAB ensemble." }; defs.DATVDemodReport = { "properties" : { @@ -4952,19 +6433,27 @@ margin-bottom: 20px; }, "audioActive" : { "type" : "integer", - "description" : "Audio is active (1 for yes, 0 for now)" + "description" : "Audio is active (1 for yes, 0 for now)", + "minimum" : 0, + "maximum" : 1 }, "audioDecodeOK" : { "type" : "integer", - "description" : "Audio decode (1 for OK, 0 for KO)" + "description" : "Audio decode (1 for OK, 0 for KO)", + "minimum" : 0, + "maximum" : 1 }, "videoActive" : { "type" : "integer", - "description" : "Audio is active (1 for yes, 0 for now)" + "description" : "Audio is active (1 for yes, 0 for now)", + "minimum" : 0, + "maximum" : 1 }, "videoDecodeOK" : { "type" : "integer", - "description" : "Video decode (1 for OK, 0 for KO)" + "description" : "Video decode (1 for OK, 0 for KO)", + "minimum" : 0, + "maximum" : 1 }, "udpRunning" : { "type" : "integer", @@ -4984,15 +6473,19 @@ margin-bottom: 20px; }, "setByModcod" : { "type" : "integer", - "description" : "Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no)" + "description" : "Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "mer" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported mer." }, "cnr" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported cnr." } }, "description" : "DATVDemod" @@ -5000,28 +6493,38 @@ margin-bottom: 20px; defs.DATVDemodSettings = { "properties" : { "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "centerFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Device center frequency in Hz." }, "standard" : { "type" : "integer", - "description" : "DVB bersion (see DATVDemodSettings::dvb_version)\n * 0 - DVB-S\n * 1 - DVB-S2\n" + "description" : "DVB bersion (see DATVDemodSettings::dvb_version)\n * 0 - DVB-S\n * 1 - DVB-S2\n", + "minimum" : 0, + "maximum" : 1 }, "modulation" : { "type" : "integer", - "description" : "Modulation type (DATVDemodSettings::DATVModulation)\n * 0 - BPSK\n * 1 - QPSK\n * 2 - PSK8\n * 3 - APSK16\n * 4 - APSK32\n * 5 - APSK64E\n * 6 - QAM16\n * 7 - QAM64\n * 8 - QAM256\n" + "description" : "Modulation type (DATVDemodSettings::DATVModulation)\n * 0 - BPSK\n * 1 - QPSK\n * 2 - PSK8\n * 3 - APSK16\n * 4 - APSK32\n * 5 - APSK64E\n * 6 - QAM16\n * 7 - QAM64\n * 8 - QAM256\n", + "minimum" : 0, + "maximum" : 8 }, "fec" : { "type" : "integer", - "description" : "FEC rate (see DATVDemodSettings::DATVCodeRate)\n * 0 - 1/2\n * 1 - 2/3\n * 2 - 4/6\n * 3 - 3/4\n * 4 - 4/6\n * 5 - 7/8\n * 6 - 4/5\n * 7 - 8/9\n * 8 - 9/10\n * 9 - 1/4\n * 10 - 1/3\n * 11 - 2/5\n * 12 - 3/5\n" + "description" : "FEC rate (see DATVDemodSettings::DATVCodeRate)\n * 0 - 1/2\n * 1 - 2/3\n * 2 - 4/6\n * 3 - 3/4\n * 4 - 4/6\n * 5 - 7/8\n * 6 - 4/5\n * 7 - 8/9\n * 8 - 9/10\n * 9 - 1/4\n * 10 - 1/3\n * 11 - 2/5\n * 12 - 3/5\n", + "minimum" : 0, + "maximum" : 12 }, "softLDPC" : { "type" : "integer", @@ -5037,16 +6540,21 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "(boolean) mute audio output" + "description" : "(boolean) mute audio output", + "minimum" : 0, + "maximum" : 1 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "symbolRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol rate setting for Datv demod." }, "notchFilters" : { - "type" : "integer" + "type" : "integer", + "description" : "Notch filters setting for Datv demod." }, "allowDrift" : { "type" : "integer", @@ -5058,7 +6566,9 @@ margin-bottom: 20px; }, "filter" : { "type" : "integer", - "description" : "Type of symbol filtering (see DATVDemodSettings::dvb_sampler)\n * 0 - Nearest\n * 1 - Linear\n * 2 - Root Raised Cosine\n" + "description" : "Type of symbol filtering (see DATVDemodSettings::dvb_sampler)\n * 0 - Nearest\n * 1 - Linear\n * 2 - Root Raised Cosine\n", + "minimum" : 0, + "maximum" : 2 }, "hardMetric" : { "type" : "integer", @@ -5067,7 +6577,9 @@ margin-bottom: 20px; "rollOff" : { "type" : "number", "format" : "float", - "description" : "RRC filter roll-off factor (0..1)" + "description" : "RRC filter roll-off factor (0..1)", + "minimum" : 0, + "maximum" : 1 }, "viterbi" : { "type" : "integer", @@ -5078,25 +6590,34 @@ margin-bottom: 20px; "description" : "RRC filter envelope excursion (dB)" }, "audioVolume" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio volume setting for Datv demod." }, "videoMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "udpTSAddress" : { - "type" : "string" + "type" : "string", + "description" : "UDP ts address." }, "udpTSPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP ts port." }, "udpTS" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "playerEnable" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -5104,24 +6625,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5135,20 +6666,25 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "dataRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported data rate." }, "tsFileBitrate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported ts file bitrate." }, "tsFileLength" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported ts file length." }, "udpByteCount" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Number of udp byte events or items." } }, "description" : "DATVMod" @@ -5157,11 +6693,13 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "standard" : { "type" : "integer", @@ -5189,11 +6727,14 @@ margin-bottom: 20px; "description" : "Transport stream source (File=0 UDP=1)" }, "imageFileName" : { - "type" : "string" + "type" : "string", + "description" : "Image file name or path." }, "imageOverlayTimestamp" : { "type" : "integer", - "description" : "Overlay timestamp on still image (1 for yes, 0 for no)" + "description" : "Overlay timestamp on still image (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "imageServiceProvider" : { "type" : "string", @@ -5208,30 +6749,40 @@ margin-bottom: 20px; "description" : "Image codec (HEVC=0 H264=1)" }, "tsFileName" : { - "type" : "string" + "type" : "string", + "description" : "Ts file name." }, "tsFilePlayLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Ts file play loop setting for Datv mod." }, "tsFilePlay" : { "type" : "integer", "description" : "(Pause=0 Play=1)" }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { "type" : "integer", - "description" : "UDP port number to receive MPEG transport stream on" + "description" : "UDP port number to receive MPEG transport stream on", + "minimum" : 1, + "maximum" : 65535 }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -5239,24 +6790,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5266,15 +6827,21 @@ margin-bottom: 20px; "properties" : { "phi" : { "type" : "integer", - "description" : "Raw phase difference in degrees from 0 to 180" + "description" : "Raw phase difference in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "posAz" : { "type" : "integer", - "description" : "Calculated port side (positive) arrival angle in degrees from 0 to 180" + "description" : "Calculated port side (positive) arrival angle in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "negAz" : { "type" : "integer", - "description" : "Calculated starboard side (negative) arrival angle in degrees from 0 to 180" + "description" : "Calculated starboard side (negative) arrival angle in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "blindAngle" : { "type" : "integer", @@ -5298,16 +6865,20 @@ margin-bottom: 20px; "description" : "see DOA2Settings::CorrelationType" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "phase" : { "type" : "integer", @@ -5315,11 +6886,15 @@ margin-bottom: 20px; }, "antennaAz" : { "type" : "integer", - "description" : "Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359" + "description" : "Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359", + "minimum" : 0, + "maximum" : 359 }, "basebandDistance" : { "type" : "integer", - "description" : "Antennas baseline distance in millimeters from 1 to 99999" + "description" : "Antennas baseline distance in millimeters from 1 to 99999", + "minimum" : 1, + "maximum" : 99999 }, "squelchdB" : { "type" : "integer", @@ -5331,27 +6906,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5365,7 +6951,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "DSCDemod" @@ -5374,44 +6961,65 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "filterInvalid" : { - "type" : "integer" + "type" : "integer", + "description" : "Filter invalid setting for Dsc demod." }, "filterColumn" : { - "type" : "integer" + "type" : "integer", + "description" : "Filter column setting for Dsc demod." }, "filter" : { - "type" : "string" + "type" : "string", + "description" : "Filter setting for Dsc demod." }, "udpEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable udp (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -5419,27 +7027,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5453,10 +7072,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "squelch" : { "type" : "integer", @@ -5505,66 +7126,89 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "demodGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demod gain setting for Dsd demod." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "baudRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Serial-port baud rate in bits per second." }, "squelchGate" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch gate duration." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "enableCosineFiltering" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable cosine filtering (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "syncOrConstellation" : { - "type" : "integer" + "type" : "integer", + "description" : "Sync or constellation setting for Dsd demod." }, "slot1On" : { - "type" : "integer" + "type" : "integer", + "description" : "Slot1 on setting for Dsd demod." }, "slot2On" : { - "type" : "integer" + "type" : "integer", + "description" : "Slot2 on setting for Dsd demod." }, "tdmaStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Tdma stereo setting for Dsd demod." }, "pllLock" : { - "type" : "integer" + "type" : "integer", + "description" : "Pll lock setting for Dsd demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "highPassFilter" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass filter setting for Dsd demod." }, "traceLengthMutliplier" : { "type" : "integer", @@ -5572,11 +7216,15 @@ margin-bottom: 20px; }, "traceStroke" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "traceDecay" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "streamIndex" : { "type" : "integer", @@ -5584,24 +7232,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "ambeFeatureIndex" : { @@ -5610,7 +7268,9 @@ margin-bottom: 20px; }, "connectAMBE" : { "type" : "integer", - "description" : "Decode frames with AMBE feature\n * 0 - Do not decode frames with AMBE feature\n * 1 - Decode frames with AMBE feature\n" + "description" : "Decode frames with AMBE feature\n * 0 - Do not decode frames with AMBE feature\n * 1 - Decode frames with AMBE feature\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "DSDDemod" @@ -5658,13 +7318,16 @@ margin-bottom: 20px; defs.DemodAnalyzerSettings = { "properties" : { "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "fileRecordName" : { "type" : "string", @@ -5672,7 +7335,9 @@ margin-bottom: 20px; }, "recordToFile" : { "type" : "integer", - "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n" + "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordSilenceTime" : { "type" : "integer", @@ -5680,27 +7345,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5724,11 +7400,15 @@ margin-bottom: 20px; "properties" : { "denoiserType" : { "type" : "integer", - "description" : "Denoiser type\n * 0 - none\n * 1 - RNnoise\n" + "description" : "Denoiser type\n * 0 - none\n * 1 - RNnoise\n", + "minimum" : 0, + "maximum" : 1 }, "enableDenoiser" : { "type" : "integer", - "description" : "Enable denoiser\n * 1 - enable\n * 0 - disable\n" + "description" : "Enable denoiser\n * 1 - enable\n * 0 - disable\n", + "minimum" : 0, + "maximum" : 1 }, "volumeTenths" : { "type" : "integer", @@ -5740,13 +7420,17 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Audio mute\n * 1 - mute\n * 0 - unmute\n" + "description" : "Audio mute\n * 1 - mute\n * 0 - unmute\n", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "fileRecordName" : { "type" : "string", @@ -5754,25 +7438,36 @@ margin-bottom: 20px; }, "recordToFile" : { "type" : "integer", - "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n" + "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5788,13 +7483,16 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorIndex" : { "type" : "integer", "description" : "Optional for reverse API. This is the device set index from where the message comes from." }, "sigMFFileInputActions" : { + "description" : "Sig mf file input actions configuration for Device.", "$ref" : "#/definitions/SigMFFileInputActions" } }, @@ -5803,15 +7501,19 @@ margin-bottom: 20px; defs.DeviceConfig = { "properties" : { "deviceId" : { - "type" : "string" + "type" : "string", + "description" : "Device id for Device config." }, "deviceSerial" : { - "type" : "string" + "type" : "string", + "description" : "Device serial for Device config." }, "deviceSequence" : { - "type" : "integer" + "type" : "integer", + "description" : "Device sequence for Device config." }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/DeviceSettings" } }, @@ -5868,105 +7570,140 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "airspyReport" : { + "description" : "Airspy report data for Device.", "$ref" : "#/definitions/AirspyReport" }, "airspyHFReport" : { + "description" : "Airspy hf report data for Device.", "$ref" : "#/definitions/AirspyHFReport" }, "androidSDRDriverInputReport" : { + "description" : "Android sdr driver input report data for Device.", "$ref" : "#/definitions/AndroidSDRDriverInputReport" }, "bladeRF2InputReport" : { + "description" : "Blade rf2 input report data for Device.", "$ref" : "#/definitions/BladeRF2InputReport" }, "bladeRF2OutputReport" : { + "description" : "Blade rf2 output report data for Device.", "$ref" : "#/definitions/BladeRF2OutputReport" }, "bladeRF2MIMOReport" : { + "description" : "Blade rf2 MIMO report data for Device.", "$ref" : "#/definitions/BladeRF2MIMOReport" }, "fileInputReport" : { + "description" : "File input report data for Device.", "$ref" : "#/definitions/FileInputReport" }, "kiwiSDRReport" : { + "description" : "Kiwi sdr report data for Device.", "$ref" : "#/definitions/KiwiSDRReport" }, "limeSdrInputReport" : { + "description" : "Lime sdr input report data for Device.", "$ref" : "#/definitions/LimeSdrInputReport" }, "limeSdrOutputReport" : { + "description" : "Lime sdr output report data for Device.", "$ref" : "#/definitions/LimeSdrOutputReport" }, "limeSdrMIMOReport" : { + "description" : "Lime sdr MIMO report data for Device.", "$ref" : "#/definitions/LimeSdrMIMOReport" }, "localInputReport" : { + "description" : "Local input report data for Device.", "$ref" : "#/definitions/LocalInputReport" }, "localOutputReport" : { + "description" : "Local output report data for Device.", "$ref" : "#/definitions/LocalOutputReport" }, "perseusReport" : { + "description" : "Perseus report data for Device.", "$ref" : "#/definitions/PerseusReport" }, "plutoSdrInputReport" : { + "description" : "Pluto sdr input report data for Device.", "$ref" : "#/definitions/PlutoSdrInputReport" }, "plutoSdrOutputReport" : { + "description" : "Pluto sdr output report data for Device.", "$ref" : "#/definitions/PlutoSdrOutputReport" }, "plutoSdrMIMOReport" : { + "description" : "Pluto sdr MIMO report data for Device.", "$ref" : "#/definitions/PlutoSdrMIMOReport" }, "rtlSdrReport" : { + "description" : "Rtl sdr report data for Device.", "$ref" : "#/definitions/RtlSdrReport" }, "remoteOutputReport" : { + "description" : "Remote output report data for Device.", "$ref" : "#/definitions/RemoteOutputReport" }, "remoteInputReport" : { + "description" : "Remote input report data for Device.", "$ref" : "#/definitions/RemoteInputReport" }, "remoteTCPInputReport" : { + "description" : "Remote TCP input report data for Device.", "$ref" : "#/definitions/RemoteTCPInputReport" }, "sdrPlayReport" : { + "description" : "Sdr play report data for Device.", "$ref" : "#/definitions/SDRPlayReport" }, "sdrPlayV3Report" : { + "description" : "Sdr play v3 report data for Device.", "$ref" : "#/definitions/SDRPlayV3Report" }, "sigMFFileInputReport" : { + "description" : "Sig mf file input report data for Device.", "$ref" : "#/definitions/SigMFFileInputReport" }, "soapySDRInputReport" : { + "description" : "Soapy sdr input report data for Device.", "$ref" : "#/definitions/SoapySDRReport" }, "soapySDROutputReport" : { + "description" : "Soapy sdr output report data for Device.", "$ref" : "#/definitions/SoapySDRReport" }, "usrpInputReport" : { + "description" : "Usrp input report data for Device.", "$ref" : "#/definitions/USRPInputReport" }, "usrpOutputReport" : { + "description" : "Usrp output report data for Device.", "$ref" : "#/definitions/USRPOutputReport" }, "xtrxInputReport" : { + "description" : "Xtrx input report data for Device.", "$ref" : "#/definitions/XtrxInputReport" }, "xtrxOutputReport" : { + "description" : "Xtrx output report data for Device.", "$ref" : "#/definitions/XtrxOutputReport" }, "xtrxMIMOReport" : { + "description" : "Xtrx MIMO report data for Device.", "$ref" : "#/definitions/XtrxMIMOReport" }, "AaroniaRTSAReport" : { + "description" : "Aaronia rtsa report data for Device.", "$ref" : "#/definitions/AaroniaRTSAReport" }, "aaroniaRTSAOutputReport" : { + "description" : "Aaronia rtsa output report data for Device.", "$ref" : "#/definitions/AaroniaRTSAOutputReport" } }, @@ -6022,151 +7759,200 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorIndex" : { "type" : "integer", "description" : "Optional for reverse API. This is the device set index from where the message comes from." }, "airspySettings" : { + "description" : "Airspy settings configuration for Device.", "$ref" : "#/definitions/AirspySettings" }, "airspyHFSettings" : { + "description" : "Airspy hf settings configuration for Device.", "$ref" : "#/definitions/AirspyHFSettings" }, "androidSDRDriverInputSettings" : { + "description" : "Android sdr driver input settings configuration for Device.", "$ref" : "#/definitions/AndroidSDRDriverInputSettings" }, "audioCATSISOSettings" : { + "description" : "Audio catsiso settings configuration for Device.", "$ref" : "#/definitions/AudioCATSISOSettings" }, "audioInputSettings" : { + "description" : "Audio input settings configuration for Device.", "$ref" : "#/definitions/AudioInputSettings" }, "audioOutputSettings" : { + "description" : "Audio output settings configuration for Device.", "$ref" : "#/definitions/AudioOutputSettings" }, "bladeRF1InputSettings" : { + "description" : "Blade rf1 input settings configuration for Device.", "$ref" : "#/definitions/BladeRF1InputSettings" }, "bladeRF2InputSettings" : { + "description" : "Blade rf2 input settings configuration for Device.", "$ref" : "#/definitions/BladeRF2InputSettings" }, "bladeRF1OutputSettings" : { + "description" : "Blade rf1 output settings configuration for Device.", "$ref" : "#/definitions/BladeRF1OutputSettings" }, "bladeRF2OutputSettings" : { + "description" : "Blade rf2 output settings configuration for Device.", "$ref" : "#/definitions/BladeRF2OutputSettings" }, "bladeRF2MIMOSettings" : { + "description" : "Blade rf2 MIMO settings configuration for Device.", "$ref" : "#/definitions/BladeRF2MIMOSettings" }, "fcdProSettings" : { + "description" : "Fcd pro settings configuration for Device.", "$ref" : "#/definitions/FCDProSettings" }, "fcdProPlusSettings" : { + "description" : "Fcd pro plus settings configuration for Device.", "$ref" : "#/definitions/FCDProPlusSettings" }, "fileInputSettings" : { + "description" : "File input settings configuration for Device.", "$ref" : "#/definitions/FileInputSettings" }, "fileOutputSettings" : { + "description" : "File output settings configuration for Device.", "$ref" : "#/definitions/FileOutputSettings" }, "hackRFInputSettings" : { + "description" : "Hack RF input settings configuration for Device.", "$ref" : "#/definitions/HackRFInputSettings" }, "hackRFOutputSettings" : { + "description" : "Hack RF output settings configuration for Device.", "$ref" : "#/definitions/HackRFOutputSettings" }, "kiwiSDRSettings" : { + "description" : "Kiwi sdr settings configuration for Device.", "$ref" : "#/definitions/KiwiSDRSettings" }, "limeSdrInputSettings" : { + "description" : "Lime sdr input settings configuration for Device.", "$ref" : "#/definitions/LimeSdrInputSettings" }, "limeSdrOutputSettings" : { + "description" : "Lime sdr output settings configuration for Device.", "$ref" : "#/definitions/LimeSdrOutputSettings" }, "limeSdrMIMOSettings" : { + "description" : "Lime sdr MIMO settings configuration for Device.", "$ref" : "#/definitions/LimeSdrMIMOSettings" }, "localInputSettings" : { + "description" : "Local input settings configuration for Device.", "$ref" : "#/definitions/LocalInputSettings" }, "localOutputSettings" : { + "description" : "Local output settings configuration for Device.", "$ref" : "#/definitions/LocalOutputSettings" }, "metisMISOSettings" : { + "description" : "Metis miso settings configuration for Device.", "$ref" : "#/definitions/MetisMISOSettings" }, "perseusSettings" : { + "description" : "Perseus settings configuration for Device.", "$ref" : "#/definitions/PerseusSettings" }, "plutoSdrInputSettings" : { + "description" : "Pluto sdr input settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrInputSettings" }, "plutoSdrOutputSettings" : { + "description" : "Pluto sdr output settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrOutputSettings" }, "plutoSdrMIMOSettings" : { + "description" : "Pluto sdr MIMO settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrMIMOSettings" }, "rtlSdrSettings" : { + "description" : "Rtl sdr settings configuration for Device.", "$ref" : "#/definitions/RtlSdrSettings" }, "remoteOutputSettings" : { + "description" : "Remote output settings configuration for Device.", "$ref" : "#/definitions/RemoteOutputSettings" }, "remoteInputSettings" : { + "description" : "Remote input settings configuration for Device.", "$ref" : "#/definitions/RemoteInputSettings" }, "remoteTCPInputSettings" : { + "description" : "Remote TCP input settings configuration for Device.", "$ref" : "#/definitions/RemoteTCPInputSettings" }, "sdrPlaySettings" : { + "description" : "Sdr play settings configuration for Device.", "$ref" : "#/definitions/SDRPlaySettings" }, "sdrPlayV3Settings" : { + "description" : "Sdr play v3 settings configuration for Device.", "$ref" : "#/definitions/SDRPlayV3Settings" }, "sigMFFileInputSettings" : { + "description" : "Sig mf file input settings configuration for Device.", "$ref" : "#/definitions/SigMFFileInputSettings" }, "soapySDRInputSettings" : { + "description" : "Soapy sdr input settings configuration for Device.", "$ref" : "#/definitions/SoapySDRInputSettings" }, "soapySDROutputSettings" : { + "description" : "Soapy sdr output settings configuration for Device.", "$ref" : "#/definitions/SoapySDROutputSettings" }, "testMISettings" : { + "description" : "Test mi settings configuration for Device.", "$ref" : "#/definitions/TestMISettings" }, "testMOSyncSettings" : { + "description" : "Test mo sync settings configuration for Device.", "$ref" : "#/definitions/TestMOSyncSettings" }, "testSourceSettings" : { + "description" : "Test source settings configuration for Device.", "$ref" : "#/definitions/TestSourceSettings" }, "usrpInputSettings" : { + "description" : "Usrp input settings configuration for Device.", "$ref" : "#/definitions/USRPInputSettings" }, "usrpOutputSettings" : { + "description" : "Usrp output settings configuration for Device.", "$ref" : "#/definitions/USRPOutputSettings" }, "xtrxInputSettings" : { + "description" : "Xtrx input settings configuration for Device.", "$ref" : "#/definitions/XtrxInputSettings" }, "xtrxOutputSettings" : { + "description" : "Xtrx output settings configuration for Device.", "$ref" : "#/definitions/XtrxOutputSettings" }, "xtrxMIMOSettings" : { + "description" : "Xtrx MIMO settings configuration for Device.", "$ref" : "#/definitions/XtrxMIMOSettings" }, "aaroniaRTSASettings" : { + "description" : "Aaronia rtsa settings configuration for Device.", "$ref" : "#/definitions/AaroniaRTSASettings" }, "aaroniaRTSAOutputSettings" : { + "description" : "Aaronia rtsa output settings configuration for Device.", "$ref" : "#/definitions/AaroniaRTSAOutputSettings" } }, @@ -6189,7 +7975,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "EndOfTrainDemod" @@ -6198,19 +7985,24 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received packets to specified UDP port" + "description" : "Whether to forward received packets to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -6218,22 +8010,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received packets to" + "description" : "UDP port to forward received packets to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -6241,24 +8044,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -6276,17 +8089,21 @@ margin-bottom: 20px; defs.FCDProPlusSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "rangeLow" : { "type" : "integer", @@ -6302,49 +8119,74 @@ margin-bottom: 20px; }, "biasT" : { "type" : "integer", - "description" : "Bias tee select (1 if selected else 0)" + "description" : "Bias tee select (1 if selected else 0)", + "minimum" : 0, + "maximum" : 1 }, "ifGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Intermediate-frequency gain setting." }, "ifFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if filter index." }, "rfFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rf filter index." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FCDProPlus" @@ -6352,98 +8194,138 @@ margin-bottom: 20px; defs.FCDProSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lnaGainIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna gain index." }, "rfFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rf filter index." }, "lnaEnhanceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna enhance index." }, "bandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected band index." }, "mixerGainIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mixer gain index." }, "mixerFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mixer filter index." }, "biasCurrentIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bias current index." }, "modeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mode index." }, "gain1Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain1 index." }, "rcFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rc filter index." }, "gain2Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain2 index." }, "gain3Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain3 index." }, "gain4Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain4 index." }, "ifFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if filter index." }, "gain5Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain5 index." }, "gain6Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain6 index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FCDPro" @@ -6475,7 +8357,8 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FT8Demod" @@ -6484,41 +8367,55 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "filterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected filter index." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "recordWav" : { "type" : "integer", - "description" : "Record received audio as 12000S/s 16 bit .wav file\n * 0 - Do not record\n * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location\n" + "description" : "Record received audio as 12000S/s 16 bit .wav file\n * 0 - Do not record\n * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location\n", + "minimum" : 0, + "maximum" : 1 }, "logMessages" : { "type" : "integer", - "description" : "Log decoded messages in WSJT CALL.TXT format\n * 0 - Do not log messages\n * 1 - Log messages as sdrangel/ft8/logs/YYYYMMDD_call.txt in writable location (daily files)\n" + "description" : "Log decoded messages in WSJT CALL.TXT format\n * 0 - Do not log messages\n * 1 - Log messages as sdrangel/ft8/logs/YYYYMMDD_call.txt in writable location (daily files)\n", + "minimum" : 0, + "maximum" : 1 }, "nbDecoderThreads" : { "type" : "integer", @@ -6531,7 +8428,9 @@ margin-bottom: 20px; }, "useOSD" : { "type" : "integer", - "description" : "Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "osdDepth" : { "type" : "integer", @@ -6543,26 +8442,35 @@ margin-bottom: 20px; }, "verifyOSD" : { "type" : "integer", - "description" : "Verify OSD decoded message against a list of validated callsigns\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Verify OSD decoded message against a list of validated callsigns\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "enablePSKReporter" : { "type" : "integer", - "description" : "Enable reporting of decoded messages to PSK Reporter server\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Enable reporting of decoded messages to PSK Reporter server\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "pskReporterCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter callsign setting for Ft8 demod." }, "pskReporterLocator" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter locator setting for Ft8 demod." }, "pskReporterSoftware" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter software setting for Ft8 demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -6570,27 +8478,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -6636,48 +8555,67 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the feature index from where the message comes from." }, "AFCActions" : { + "description" : "Afc actions configuration for Feature.", "$ref" : "#/definitions/AFCActions" }, "AMBEActions" : { + "description" : "Ambe actions configuration for Feature.", "$ref" : "#/definitions/AMBEActions" }, "GS232ControllerActions" : { + "description" : "Gs232 controller actions configuration for Feature.", "$ref" : "#/definitions/GS232ControllerActions" }, "LimeRFEActions" : { + "description" : "Lime rfe actions configuration for Feature.", "$ref" : "#/definitions/LimeRFEActions" }, "MapActions" : { + "description" : "Map actions configuration for Feature.", "$ref" : "#/definitions/MapActions" }, "MorseDecoderActions" : { + "description" : "Morse decoder actions configuration for Feature.", "$ref" : "#/definitions/MorseDecoderActions" }, "PERTesterActions" : { + "description" : "Per tester actions configuration for Feature.", "$ref" : "#/definitions/PERTesterActions" }, "RigCtlServerActions" : { + "description" : "Rig ctl server actions configuration for Feature.", "$ref" : "#/definitions/RigCtlServerActions" }, + "MCPServerActions" : { + "description" : "Mcp server actions configuration for Feature.", + "$ref" : "#/definitions/MCPServerActions" + }, "SatelliteTrackerActions" : { + "description" : "Satellite tracker actions configuration for Feature.", "$ref" : "#/definitions/SatelliteTrackerActions" }, "SimplePTTActions" : { + "description" : "Simple ptt actions configuration for Feature.", "$ref" : "#/definitions/SimplePTTActions" }, "SkyMapActions" : { + "description" : "Sky map actions configuration for Feature.", "$ref" : "#/definitions/SkyMapActions" }, "StarTrackerActions" : { + "description" : "Star tracker actions configuration for Feature.", "$ref" : "#/definitions/StarTrackerActions" }, "VORLocalizerActions" : { + "description" : "Vor localizer actions configuration for Feature.", "$ref" : "#/definitions/VORLocalizerActions" }, "DemodAnalyzerActions" : { + "description" : "Demod analyzer actions configuration for Feature.", "$ref" : "#/definitions/DemodAnalyzerActions" }, "DenoiserActions" : { + "description" : "Denoiser actions configuration for Feature.", "$ref" : "#/definitions/DenoiserActions" } }, @@ -6690,6 +8628,7 @@ margin-bottom: 20px; "description" : "Feature type ID in URI form" }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/FeatureSettings" } }, @@ -6789,43 +8728,72 @@ margin-bottom: 20px; "type" : "string", "description" : "Feature type code" }, + "AISReport" : { + "description" : "Ais report data for Feature.", + "$ref" : "#/definitions/AISReport" + }, + "APRSReport" : { + "description" : "Aprs report data for Feature.", + "$ref" : "#/definitions/APRSReport" + }, + "RadiosondeReport" : { + "description" : "Radiosonde report data for Feature.", + "$ref" : "#/definitions/RadiosondeReport" + }, "AFCReport" : { + "description" : "Afc report data for Feature.", "$ref" : "#/definitions/AFCReport" }, "AMBEReport" : { + "description" : "Ambe report data for Feature.", "$ref" : "#/definitions/AMBEReport" }, "FreqDisplayReport" : { + "description" : "Freq display report data for Feature.", "$ref" : "#/definitions/FreqDisplayReport" }, "GS232ControllerReport" : { + "description" : "Gs232 controller report data for Feature.", "$ref" : "#/definitions/GS232ControllerReport" }, "LimeRFEReport" : { + "description" : "Lime rfe report data for Feature.", "$ref" : "#/definitions/LimeRFEReport" }, "MapReport" : { + "description" : "Map report data for Feature.", "$ref" : "#/definitions/MapReport" }, "PERTesterReport" : { + "description" : "Per tester report data for Feature.", "$ref" : "#/definitions/PERTesterReport" }, "RigCtlServerReport" : { + "description" : "Rig ctl server report data for Feature.", "$ref" : "#/definitions/RigCtlServerReport" }, + "MCPServerReport" : { + "description" : "Mcp server report data for Feature.", + "$ref" : "#/definitions/MCPServerReport" + }, "SatelliteTrackerReport" : { + "description" : "Satellite tracker report data for Feature.", "$ref" : "#/definitions/SatelliteTrackerReport" }, "SimplePTTReport" : { + "description" : "Simple ptt report data for Feature.", "$ref" : "#/definitions/SimplePTTReport" }, "SkyMapReport" : { + "description" : "Sky map report data for Feature.", "$ref" : "#/definitions/SkyMapReport" }, "StarTrackerReport" : { + "description" : "Star tracker report data for Feature.", "$ref" : "#/definitions/StarTrackerReport" }, "VORLocalizerReport" : { + "description" : "Vor localizer report data for Feature.", "$ref" : "#/definitions/VORLocalizerReport" } }, @@ -6851,13 +8819,16 @@ margin-bottom: 20px; defs.FeatureSetPreset = { "properties" : { "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Feature set preset." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "featureConfigs" : { "type" : "array", + "description" : "List of feature configs.", "items" : { "$ref" : "#/definitions/FeatureConfig" } @@ -6882,69 +8853,95 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the feature index from where the message comes from." }, "AFCSettings" : { + "description" : "Afc settings configuration for Feature.", "$ref" : "#/definitions/AFCSettings" }, "AISSettings" : { + "description" : "AIS settings configuration for Feature.", "$ref" : "#/definitions/AISSettings" }, "AMBESettings" : { + "description" : "Ambe settings configuration for Feature.", "$ref" : "#/definitions/AMBESettings" }, "AntennaToolsSettings" : { + "description" : "Antenna tools settings configuration for Feature.", "$ref" : "#/definitions/AntennaToolsSettings" }, "APRSSettings" : { + "description" : "Aprs settings configuration for Feature.", "$ref" : "#/definitions/APRSSettings" }, "DemodAnalyzerSettings" : { + "description" : "Demod analyzer settings configuration for Feature.", "$ref" : "#/definitions/DemodAnalyzerSettings" }, "DenoiserSettings" : { + "description" : "Denoiser settings configuration for Feature.", "$ref" : "#/definitions/DenoiserSettings" }, "JogdialControllerSettings" : { + "description" : "Jogdial controller settings configuration for Feature.", "$ref" : "#/definitions/JogdialControllerSettings" }, "FreqDisplaySettings" : { + "description" : "Freq display settings configuration for Feature.", "$ref" : "#/definitions/FreqDisplaySettings" }, "GS232ControllerSettings" : { + "description" : "Gs232 controller settings configuration for Feature.", "$ref" : "#/definitions/GS232ControllerSettings" }, "LimeRFESettings" : { + "description" : "Lime rfe settings configuration for Feature.", "$ref" : "#/definitions/LimeRFESettings" }, "MapSettings" : { + "description" : "Map settings configuration for Feature.", "$ref" : "#/definitions/MapSettings" }, "MorseDecoderSettings" : { + "description" : "Morse decoder settings configuration for Feature.", "$ref" : "#/definitions/MorseDecoderSettings" }, "PERTesterSettings" : { + "description" : "Per tester settings configuration for Feature.", "$ref" : "#/definitions/PERTesterSettings" }, "RadiosondeSettings" : { + "description" : "Radiosonde settings configuration for Feature.", "$ref" : "#/definitions/RadiosondeSettings" }, "RigCtlServerSettings" : { + "description" : "Rig ctl server settings configuration for Feature.", "$ref" : "#/definitions/RigCtlServerSettings" }, + "MCPServerSettings" : { + "description" : "Mcp server settings configuration for Feature.", + "$ref" : "#/definitions/MCPServerSettings" + }, "SatelliteTrackerSettings" : { + "description" : "Satellite tracker settings configuration for Feature.", "$ref" : "#/definitions/SatelliteTrackerSettings" }, "SIDSettings" : { + "description" : "Sid settings configuration for Feature.", "$ref" : "#/definitions/SIDSettings" }, "SimplePTTSettings" : { + "description" : "Simple ptt settings configuration for Feature.", "$ref" : "#/definitions/SimplePTTSettings" }, "SkyMapSettings" : { + "description" : "Sky map settings configuration for Feature.", "$ref" : "#/definitions/SkyMapSettings" }, "StarTrackerSettings" : { + "description" : "Star tracker settings configuration for Feature.", "$ref" : "#/definitions/StarTrackerSettings" }, "VORLocalizerSettings" : { + "description" : "Vor localizer settings configuration for Feature.", "$ref" : "#/definitions/VORLocalizerSettings" } }, @@ -6953,7 +8950,8 @@ margin-bottom: 20px; defs.FileInputReport = { "properties" : { "fileName" : { - "type" : "string" + "type" : "string", + "description" : "File name or path." }, "sampleRate" : { "type" : "integer", @@ -6981,7 +8979,8 @@ margin-bottom: 20px; defs.FileInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -6997,16 +8996,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FileInput" @@ -7014,7 +9020,8 @@ margin-bottom: 20px; defs.FileOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -7022,27 +9029,37 @@ margin-bottom: 20px; }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Sample rate in samples per second." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FileInput" @@ -7061,7 +9078,9 @@ margin-bottom: 20px; "properties" : { "record" : { "type" : "integer", - "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n" + "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "FileSink" @@ -7070,7 +9089,9 @@ margin-bottom: 20px; "properties" : { "spectrumSquelch" : { "type" : "integer", - "description" : "Spectrum squelch status * 0 - closed * 1 - open\n" + "description" : "Spectrum squelch status * 0 - closed * 1 - open\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumMax" : { "type" : "number", @@ -7078,14 +9099,18 @@ margin-bottom: 20px; "description" : "Current spectrum max in squared magnitude (power)" }, "sinkSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate accepted by the sink in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "recording" : { "type" : "integer", - "description" : "Recording status * 0 - not recording * 1 - recording\n" + "description" : "Recording status * 0 - not recording * 1 - recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordTimeMs" : { "type" : "integer", @@ -7106,24 +9131,30 @@ margin-bottom: 20px; defs.FileSinkSettings = { "properties" : { "inputFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fileRecordName" : { "type" : "string", "description" : "full path of the reference file" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "spectrumSquelchMode" : { "type" : "integer", - "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n" + "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumSquelch" : { "type" : "number", @@ -7140,7 +9171,9 @@ margin-bottom: 20px; }, "squelchRecordingEnable" : { "type" : "integer", - "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n" + "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -7148,27 +9181,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7178,7 +9222,9 @@ margin-bottom: 20px; "properties" : { "play" : { "type" : "integer", - "description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n" + "description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n", + "minimum" : 0, + "maximum" : 1 }, "seekMillis" : { "type" : "integer", @@ -7190,7 +9236,8 @@ margin-bottom: 20px; defs.FileSourceReport = { "properties" : { "fileName" : { - "type" : "string" + "type" : "string", + "description" : "File name or path." }, "fileSampleRate" : { "type" : "integer", @@ -7235,19 +9282,24 @@ margin-bottom: 20px; "description" : "1 if playing in a loop else 0" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "gainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain dB in dB." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -7255,24 +9307,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7290,10 +9352,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreeDVDemod" @@ -7302,7 +9366,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "volume" : { "type" : "number", @@ -7315,27 +9380,36 @@ margin-bottom: 20px; "description" : "Modem input volume" }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "freeDVMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Free dv mode setting for Free dv demod." }, "streamIndex" : { "type" : "integer", @@ -7343,27 +9417,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7377,10 +9462,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreeDVMod" @@ -7389,42 +9476,58 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Free dv mod." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "freeDVMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Free dv mode setting for Free dv mod." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "gaugeInputElseModem" : { - "type" : "integer" + "type" : "integer", + "description" : "Gauge input else modem setting for Free dv mod." }, "streamIndex" : { "type" : "integer", @@ -7432,30 +9535,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7483,63 +9598,87 @@ margin-bottom: 20px; "description" : "Channel to display frequency/power for" }, "fontName" : { - "type" : "string" + "type" : "string", + "description" : "Font name setting for Freq display." }, "transparentBackground" : { - "type" : "integer" + "type" : "integer", + "description" : "Transparent background setting for Freq display." }, "displayMode" : { "type" : "integer", "description" : "(0 Frequency, 1 Power, 2 Frequency and Power)" }, "speechEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable speech (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "frequencyUnits" : { "type" : "integer", "description" : "(0 Hz, 1 kHz, 2 MHz, 3 GHz)" }, "showUnits" : { - "type" : "integer" + "type" : "integer", + "description" : "Show units setting for Freq display." }, "freqDecimalPlaces" : { - "type" : "integer" + "type" : "integer", + "description" : "Freq decimal places setting for Freq display." }, "powerDecimalPlaces" : { - "type" : "integer" + "type" : "integer", + "description" : "Power decimal places setting for Freq display." }, "textcolor" : { - "type" : "integer" + "type" : "integer", + "description" : "Textcolor setting for Freq display." }, "dropShadowEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable drop shadow (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "dropShadowColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Drop shadow color encoded as an integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7549,7 +9688,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Frequency Scanner actions" @@ -7571,32 +9712,40 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency to scan, in Hz.\n" }, "enabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Whether this frequency takes part in the scan (1 to scan it, 0 to skip it).\n" }, "notes" : { - "type" : "string" + "type" : "string", + "description" : "Free text note about this frequency, such as the station or service name.\n" }, "channel" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide channel for this frequency only, as a device set and channel index such as \"R1:0\". Empty to use the scanner's own channel setting.\n" }, "channelBandwidth" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide channel bandwidth in Hz for this frequency only. Empty to use the scanner's own setting.\n" }, "threshold" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide power threshold in dB for this frequency only. Empty to use the scanner's own setting.\n" }, "squelch" : { - "type" : "string" + "type" : "string", + "description" : "Squelch threshold in dB to apply to the tuned channel when this frequency becomes active. Empty to leave the channel's own squelch alone.\n" } } }; defs.FreqScannerReport = { "properties" : { "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "scanState" : { "type" : "integer", @@ -7604,6 +9753,7 @@ margin-bottom: 20px; }, "channelState" : { "type" : "array", + "description" : "List of channel state.", "items" : { "$ref" : "#/definitions/FreqScannerChannelState" } @@ -7615,55 +9765,66 @@ margin-bottom: 20px; "properties" : { "channelBandwidth" : { "type" : "integer", - "description" : "channel RF bandwidth in Hz" + "description" : "Bandwidth in Hz of each scanned channel.\n" }, "channelShift" : { "type" : "integer", - "description" : "controlled channel frequency shift in Hz" + "description" : "Frequency shift in Hz applied to the tuned channel from the scanned frequency, for modes such as SSB or CW where the signal sits on one side of centre.\n" }, "channelFrequencyOffset" : { "type" : "integer", - "description" : "channel center frequency shift from baseband center in Hz" + "description" : "Minimum frequency shift in Hz of the tuned channel from the centre of reception, used to keep it clear of a DC spike.\n" }, "threshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power threshold in dB above which a scanned frequency counts as active.\n" }, "frequencies" : { "type" : "array", + "description" : "List of frequencies.", "items" : { "$ref" : "#/definitions/FreqScannerFrequency" } }, "channel" : { - "type" : "string" + "type" : "string", + "description" : "Channel that is tuned to the active frequency, as a device set and channel index, for example \"R1:0\" for channel 0 of receive device set 1.\n" }, "scanTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in seconds that each power measurement is averaged over.\n" }, "retransmitTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in seconds to wait after the power on the active frequency falls below the threshold before scanning restarts. In multiplex mode this is instead the time spent listening to each frequency.\n" }, "tuneTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in milliseconds to wait after retuning the device before measuring, to allow for PLL settling and device to host transfer latency.\n" }, "priority" : { - "type" : "integer" + "type" : "integer", + "description" : "Which frequency becomes active when several are above the threshold\n * 0 - the one with the highest power\n * 1 - the one earliest in the frequency list\n" }, "measurement" : { - "type" : "integer" + "type" : "integer", + "description" : "How channel power is measured from the FFT bins\n * 0 - peak, the highest bin\n * 1 - total, the sum of every bin\n" }, "mode" : { - "type" : "integer" + "type" : "integer", + "description" : "Run mode\n * 0 - single, scan every frequency once and stop\n * 1 - continuous, rescan when the active frequency goes quiet\n * 2 - scan only, measure repeatedly without ever tuning the channel\n * 3 - multiplex, step through the frequencies listening to each in turn\n" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -7671,24 +9832,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7710,10 +9881,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreqTracker" @@ -7731,7 +9904,10 @@ margin-bottom: 20px; "description" : "channel RF bandwidth in Hz (floors to next 100 Hz)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "squelch" : { "type" : "number", @@ -7739,13 +9915,16 @@ margin-bottom: 20px; "description" : "power squelch threshold in decibels" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "alphaEMA" : { "type" : "number", @@ -7754,7 +9933,9 @@ margin-bottom: 20px; }, "tracking" : { "type" : "integer", - "description" : "Tracking 1 for enabled 0 for disabled" + "description" : "Tracking 1 for enabled 0 for disabled", + "minimum" : 0, + "maximum" : 1 }, "trackerType" : { "type" : "integer", @@ -7766,7 +9947,9 @@ margin-bottom: 20px; }, "rrc" : { "type" : "integer", - "description" : "RRC filter (1 for on, 0 for off)" + "description" : "RRC filter (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "rrcRolloff" : { "type" : "integer", @@ -7782,27 +9965,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7811,7 +10005,8 @@ margin-bottom: 20px; defs.Frequency = { "properties" : { "frequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency in Hz." } }, "description" : "A frequency expressed in Hertz (Hz)" @@ -7819,13 +10014,16 @@ margin-bottom: 20px; defs.FrequencyBand = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "lowerBound" : { - "type" : "integer" + "type" : "integer", + "description" : "Inclusive lower bound of the range." }, "higherBound" : { - "type" : "integer" + "type" : "integer", + "description" : "Inclusive upper bound of the range." } }, "description" : "A band of frequencies given its boundaries in Hertz (Hz)" @@ -7834,18 +10032,22 @@ margin-bottom: 20px; "properties" : { "min" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Minimum value of the range." }, "max" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Maximum value of the range." }, "step" : { - "type" : "integer" + "type" : "integer", + "description" : "Increment between adjacent supported values." }, "scale" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Scale factor applied to the value." } }, "description" : "A frequency range with 64 bit support for min and max" @@ -7854,35 +10056,44 @@ margin-bottom: 20px; "properties" : { "displayMode" : { "type" : "integer", - "description" : "see GLScopeSettings::DisplayMode" + "description" : "Arrangement of the two traces on the scope\n * 0 - X and Y side by side horizontally\n * 1 - X and Y stacked vertically\n * 2 - X only\n * 3 - Y only\n * 4 - polar, Y against X\n", + "minimum" : 0, + "maximum" : 4 }, "traceIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Trace intensity for Gl scope." }, "gridIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Grid intensity for Gl scope." }, "time" : { - "type" : "integer" + "type" : "integer", + "description" : "Time for Gl scope." }, "timeOfs" : { - "type" : "integer" + "type" : "integer", + "description" : "Time ofs for Gl scope." }, "traceLenMult" : { "type" : "integer", "description" : "Trace length multiplier (multiplies 4800 samples)" }, "trigPre" : { - "type" : "integer" + "type" : "integer", + "description" : "Trig pre for Gl scope." }, "tracesData" : { "type" : "array", + "description" : "List of traces data.", "items" : { "$ref" : "#/definitions/TraceData" } }, "triggersData" : { "type" : "array", + "description" : "List of triggers data.", "items" : { "$ref" : "#/definitions/TriggerData" } @@ -7893,22 +10104,28 @@ margin-bottom: 20px; defs.GLSpectrum = { "properties" : { "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftOverlap" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT overlap for Gl spectrum." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "refLevel" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ref level for Gl spectrum." }, "powerRange" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power range for Gl spectrum." }, "fpsPeriodMs" : { "type" : "integer", @@ -7916,69 +10133,270 @@ margin-bottom: 20px; }, "displayWaterfall" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 + }, + "display3DSpectrogram" : { + "type" : "integer", + "description" : "Display the 3D spectrogram instead of the 2D waterfall (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "spectrogramStyle" : { + "type" : "integer", + "description" : "Rendering style for the 3D spectrogram.\n * 0 - Points\n * 1 - Lines\n * 2 - Solid\n * 3 - Outline\n * 4 - Shaded (requires OpenGL 3.3 or later)\n", + "minimum" : 0, + "maximum" : 4 + }, + "truncateFreqScale" : { + "type" : "integer", + "description" : "Truncate the frequency scale to the displayed span (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "colorMap" : { + "type" : "string", + "description" : "Colour-map name used for waterfall, 3D spectrogram rendering and spectrum colour gradient." + }, + "spectrumStyle" : { + "type" : "integer", + "description" : "Current spectrum trace style: 0 line, 1 filled solid colour, 2 filled colour gradient.", + "minimum" : 0, + "maximum" : 2 + }, + "measurement" : { + "type" : "integer", + "description" : "Measurement mode: 0 none, 1 peaks, 2 channel power, 3 adjacent-channel power, 4 occupied bandwidth, 5 3 dB bandwidth, 6 SNR, 7 mask.", + "minimum" : 0, + "maximum" : 7 + }, + "measurementCenterFrequencyOffset" : { + "type" : "integer", + "description" : "Measurement centre-frequency offset in Hz." + }, + "measurementBandwidth" : { + "type" : "integer", + "description" : "Measurement bandwidth in Hz.", + "minimum" : 0 + }, + "measurementChSpacing" : { + "type" : "integer", + "description" : "Adjacent-channel measurement channel spacing in Hz.", + "minimum" : 0 + }, + "measurementAdjChBandwidth" : { + "type" : "integer", + "description" : "Adjacent-channel measurement bandwidth in Hz.", + "minimum" : 0 + }, + "measurementHarmonics" : { + "type" : "integer", + "description" : "Number of harmonics to measure.", + "minimum" : 0 + }, + "measurementPeaks" : { + "type" : "integer", + "description" : "Number of peaks to report.", + "minimum" : 0 + }, + "measurementHighlight" : { + "type" : "integer", + "description" : "Highlight the selected measurement (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "measurementsPosition" : { + "type" : "integer", + "description" : "Measurement panel position: 0 above, 1 below, 2 left, 3 right.", + "minimum" : 0, + "maximum" : 3 + }, + "measurementPrecision" : { + "type" : "integer", + "description" : "Decimal precision for measurement values.", + "minimum" : 0 + }, + "findHistogramPeaks" : { + "type" : "integer", + "description" : "Find peaks in the spectrum histogram (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "showControls" : { + "type" : "integer", + "description" : "Spectrum control visibility: 0 minimum, 1 standard, 2 all.", + "minimum" : 0, + "maximum" : 2 + }, + "frequencyZoomFactor" : { + "type" : "number", + "format" : "float", + "description" : "Horizontal frequency zoom factor.", + "minimum" : 1 + }, + "frequencyZoomPos" : { + "type" : "number", + "format" : "float", + "description" : "Horizontal frequency-zoom position as a fraction of the span.", + "minimum" : 0, + "maximum" : 1 + }, + "waterfallTimeUnits" : { + "type" : "integer", + "description" : "Waterfall time axis: 0 offset, 1 local time, 2 UTC.", + "minimum" : 0, + "maximum" : 2 + }, + "waterfallTimeFormat" : { + "type" : "string", + "description" : "Qt date/time format used for the waterfall time axis." + }, + "scrollBar" : { + "type" : "integer", + "description" : "Enable waterfall/3D spectrogram scrolling (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "scrollLength" : { + "type" : "integer", + "description" : "Maximum waterfall/3D spectrogram history length.", + "minimum" : 1 + }, + "mathMode" : { + "type" : "integer", + "description" : "Spectrum math mode: 0 none, 1-4 moving-average modes, 5-10 saved-memory comparison modes.", + "minimum" : 0, + "maximum" : 10 + }, + "mathAvgCount" : { + "type" : "integer", + "description" : "Number of FFT frames used by spectrum math averaging.", + "minimum" : 1 + }, + "measurementMemMasks" : { + "type" : "integer", + "description" : "Bitmask selecting saved spectrum memories used as measurement masks.", + "minimum" : 0, + "maximum" : 3 + }, + "displayRBW" : { + "type" : "integer", + "description" : "Display resolution bandwidth (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "displayCursorStats" : { + "type" : "integer", + "description" : "Display cursor statistics (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "displayPeakStats" : { + "type" : "integer", + "description" : "Display peak statistics (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "spectrumMemory" : { + "type" : "array", + "description" : "Display settings for the two saved spectrum memories.", + "items" : { + "$ref" : "#/definitions/SpectrumMemorySettings" + } + }, + "spectrumColor" : { + "type" : "integer", + "description" : "Current spectrum trace colour encoded as an RGB integer." }, "invertedWaterfall" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayMaxHold" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayHistogram" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "decay" : { - "type" : "integer" + "type" : "integer", + "description" : "Decay for Gl spectrum." }, "displayGrid" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayGridIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Display grid intensity for Gl spectrum." }, "decayDivisor" : { - "type" : "integer" + "type" : "integer", + "description" : "Decay divisor for Gl spectrum." }, "histogramStroke" : { - "type" : "integer" + "type" : "integer", + "description" : "Histogram stroke for Gl spectrum." }, "displayCurrent" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayTraceIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Display trace intensity for Gl spectrum." }, "waterfallShare" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Waterfall share for Gl spectrum." }, "averagingMode" : { "type" : "integer", - "description" : "See GLSpectrumGUI::AveragingMode" + "description" : "How successive FFTs are averaged. Selecting a mode does nothing on its own: the number of FFTs it works over is averagingValue, which must be above 1 for any smoothing to happen.\n * 0 - no averaging\n * 1 - moving average\n * 2 - fixed average over each block\n * 3 - maximum held over each block\n * 4 - minimum held over each block\n", + "minimum" : 0, + "maximum" : 4 }, "averagingValue" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of successive FFTs the averaging mode works over. 1 is no averaging whatever the mode. Only 1, 2, 5, 10, 20, 50, 100 and so on are available and anything else is rounded down to one of them. 10 smooths a noisy trace without hiding short signals; 50 or more is for measuring a noise floor.\n" }, "linear" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "ssb" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "usb" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "wsSpectrum" : { "type" : "integer", - "description" : "Boolean - Start or stop websocket server\n * 0 - Stop server\n * 1 - Start server\n" + "description" : "Boolean - Start or stop websocket server\n * 0 - Stop server\n * 1 - Start server\n", + "minimum" : 0, + "maximum" : 1 }, "wsSpectrumAddress" : { "type" : "string", @@ -7990,48 +10408,310 @@ margin-bottom: 20px; }, "markersDisplay" : { "type" : "integer", - "description" : "Display markers (SpectrumSettings::MarkersDisplay)\n * 0 - Mome\n * 1 - Spectrum markers (histogram and waterfall)\n * 2 - Spectrum annotation markers\n" + "description" : "Display markers (SpectrumSettings::MarkersDisplay)\n * 0 - Mome\n * 1 - Spectrum markers (histogram and waterfall)\n * 2 - Spectrum annotation markers\n", + "minimum" : 0, + "maximum" : 2 }, "useCalibration" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "calibrationInterpMode" : { "type" : "integer", - "description" : "Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode\n * 0 - Linear\n * 1 - Log (dB linear)\n" + "description" : "Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode\n * 0 - Linear\n * 1 - Log (dB linear)\n", + "minimum" : 0, + "maximum" : 1 }, "histogramMarkers" : { "type" : "array", + "description" : "List of histogram markers.", "items" : { "$ref" : "#/definitions/SpectrumHistogramMarker" } }, "waterfallMarkers" : { "type" : "array", + "description" : "List of waterfall markers.", "items" : { "$ref" : "#/definitions/SpectrumWaterfallMarker" } }, + "annotationMarkersMode" : { + "type" : "integer", + "description" : "How annotationMarkers in the same request is applied. Replacing is what a PATCH of an array means and is what the other marker lists do, but it discards annotations already there, such as a loaded band plan. Append adds to them instead, so a caller adding one annotation need not read the list, modify it and write it back.\n * 0 - Replace the annotations with those given (the default)\n * 1 - Append those given to the annotations already there\n", + "minimum" : 0, + "maximum" : 1 + }, "annotationMarkers" : { "type" : "array", + "description" : "List of annotation markers.", "items" : { "$ref" : "#/definitions/SpectrumAnnotationMarker" } }, "calibrationPoints" : { "type" : "array", + "description" : "List of calibration points.", "items" : { "$ref" : "#/definitions/SpectrumCalibrationPoint" } } }, "description" : "GLSpectrumGUI settings" +}; + defs.GLSpectrumData = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the whole spectrum in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "fftSize" : { + "type" : "integer", + "description" : "Number of bins the spectrum was computed with, before reduction." + }, + "linear" : { + "type" : "integer", + "description" : "1 when the powers are linear, 0 when they are in dB.", + "minimum" : 0, + "maximum" : 1 + }, + "updated" : { + "type" : "string", + "description" : "When the spectrum was last computed, ISO 8601. Absent if it never has been." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "number", + "format" : "float", + "description" : "Width of each returned bin in Hz, after reduction." + }, + "bins" : { + "type" : "integer", + "description" : "Number of values in power." + }, + "reduce" : { + "type" : "string", + "description" : "How several FFT bins were combined into each returned one, max or mean. Max keeps a narrow carrier that averaging would bury in its neighbours, which is why it is the default.\n" + }, + "power" : { + "type" : "array", + "description" : "The reduced powers, first bin first.", + "items" : { + "type" : "number", + "format" : "float" + } + } + }, + "description" : "A copy of the current power spectrum, reduced to the number of bins asked for so that the answer stays a sensible size whatever the FFT size. The spectrum is only computed while something is consuming it, a spectrum window or a websocket client, so updated says how old these values are and is absent if none has been produced yet.\n" +}; + defs.GLSpectrumHistory = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "integer", + "description" : "Width of each returned bin in Hz." + }, + "bins" : { + "type" : "integer" + }, + "rows" : { + "type" : "integer", + "description" : "Rows of history used." + }, + "skippedRows" : { + "type" : "integer", + "description" : "Rows in the period that were taken with the device tuned or sampling differently, and left out." + }, + "firstTime" : { + "type" : "string", + "description" : "Time of the oldest row used, ISO 8601." + }, + "lastTime" : { + "type" : "string", + "description" : "Time of the newest row used, ISO 8601." + }, + "seconds" : { + "type" : "number", + "format" : "float", + "description" : "Span between the oldest and newest rows used." + }, + "floorDb" : { + "type" : "number", + "format" : "float", + "description" : "The measured noise floor." + }, + "thresholdDb" : { + "type" : "number", + "format" : "float", + "description" : "The level above which a bin counts as occupied." + }, + "maxDb" : { + "type" : "array", + "description" : "Per bin maximum over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "meanDb" : { + "type" : "array", + "description" : "Per bin mean over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "occupancy" : { + "type" : "array", + "description" : "Per bin fraction of rows in which the bin was above the threshold, 0 to 1.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "signalCount" : { + "type" : "integer" + }, + "signalList" : { + "type" : "array", + "description" : "Runs of adjacent bins whose maximum rose above the threshold.", + "items" : { + "$ref" : "#/definitions/SpectrumHistorySignal" + } + } + }, + "description" : "Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted.\n" +}; + defs.GLSpectrumReport = { + "properties" : { + "measurement" : { + "type" : "integer", + "description" : "Which measurement produced these values.\n * 0 - None, nothing is being measured\n * 1 - Peaks\n * 2 - Channel power\n * 3 - Adjacent channel power\n * 4 - Occupied bandwidth\n * 5 - 3 dB bandwidth\n * 6 - SNR\n" + }, + "updated" : { + "type" : "string", + "description" : "When these values were last measured, ISO 8601. Absent until the first measurement." + }, + "peaks" : { + "type" : "array", + "description" : "The strongest peaks, most powerful first. Peaks measurement only.", + "items" : { + "$ref" : "#/definitions/SpectrumPeak" + } + }, + "channelPower" : { + "type" : "number", + "format" : "float", + "description" : "Total power in the measurement bandwidth in dB. Channel power measurement only." + }, + "adjChannelPowerLeft" : { + "type" : "number", + "format" : "float", + "description" : "Power in the lower adjacent channel in dB." + }, + "adjChannelPowerLeftRatio" : { + "type" : "number", + "format" : "float", + "description" : "Lower adjacent channel power ratio in dB, relative to the centre channel." + }, + "adjChannelPowerCentre" : { + "type" : "number", + "format" : "float", + "description" : "Power in the centre channel in dB." + }, + "adjChannelPowerRight" : { + "type" : "number", + "format" : "float", + "description" : "Power in the upper adjacent channel in dB." + }, + "adjChannelPowerRightRatio" : { + "type" : "number", + "format" : "float", + "description" : "Upper adjacent channel power ratio in dB, relative to the centre channel." + }, + "occupiedBandwidth" : { + "type" : "number", + "format" : "float", + "description" : "Occupied bandwidth in Hz. Occupied bandwidth measurement only." + }, + "bandwidth3dB" : { + "type" : "number", + "format" : "float", + "description" : "3 dB bandwidth in Hz. 3 dB bandwidth measurement only." + }, + "snr" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise ratio in dB. SNR measurement only." + }, + "snfr" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise and distortion free ratio in dB." + }, + "thd" : { + "type" : "number", + "format" : "float", + "description" : "Total harmonic distortion in dB." + }, + "thdPlusNoise" : { + "type" : "number", + "format" : "float", + "description" : "Total harmonic distortion plus noise in dB." + }, + "sinad" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise and distortion ratio in dB." + }, + "sfdr" : { + "type" : "number", + "format" : "float", + "description" : "Spurious free dynamic range in dB." + } + }, + "description" : "The latest values of whichever spectrum measurement is switched on. Which fields are present depends on the measurement: with none selected nothing is measured at all and only the measurement field is returned. The figures are those of the spectrum as displayed, so they match the window rather than the full span when it is zoomed, and they are only produced by a running GUI.\n" }; defs.GS232ControllerActions = { "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "GS-232 Controller actions" @@ -8040,7 +10720,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "sources" : { "type" : "array", @@ -8113,7 +10795,9 @@ margin-bottom: 20px; }, "track" : { "type" : "integer", - "description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)" + "description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "source" : { "type" : "string", @@ -8172,28 +10856,39 @@ margin-bottom: 20px; "description" : "Input controller sensitivity" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8202,7 +10897,8 @@ margin-bottom: 20px; defs.Gain = { "properties" : { "gainCB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain in centibels (tenths of a decibel)." } }, "description" : "A gain expressed in centi-Bels (tenths of dB)" @@ -8210,69 +10906,102 @@ margin-bottom: 20px; defs.HackRFInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable-gain-amplifier gain setting." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "biasT" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable antenna bias power (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaExt" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA ext setting for Hack RF input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "HackRF" @@ -8280,56 +11009,80 @@ margin-bottom: 20px; defs.HackRFOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable-gain-amplifier gain setting." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "biasT" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable antenna bias power (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaExt" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA ext setting for Hack RF output." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "HackRF" @@ -8342,7 +11095,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "HeatMap" @@ -8351,7 +11105,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", @@ -8360,35 +11115,44 @@ margin-bottom: 20px; }, "minPower" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Min power setting for Heat map." }, "maxPower" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Max power setting for Heat map." }, "colorMapName" : { - "type" : "string" + "type" : "string", + "description" : "Color map name setting for Heat map." }, "mode" : { "type" : "integer", - "description" : "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)" + "description" : "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)", + "minimum" : 0, + "maximum" : 4 }, "pulseThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pulse threshold setting for Heat map." }, "averagePeriodUS" : { "type" : "integer", "description" : "Averaging period in microseconds" }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8396,27 +11160,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8426,7 +11201,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Initialize a transmission cycle\n * 0 - Do nothing\n * 1 - Start transmission cycle\n" + "description" : "Initialize a transmission cycle\n * 0 - Do nothing\n * 1 - Start transmission cycle\n", + "minimum" : 0, + "maximum" : 1 }, "data" : { "type" : "string", @@ -8443,7 +11220,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "IEEE_802_15_4_Mod" @@ -8452,34 +11230,46 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "modulation" : { "type" : "integer", - "description" : "Modulation type\n * 0 - BPSK\n * 1 - OQPSK\n" + "description" : "Modulation type\n * 0 - BPSK\n * 1 - OQPSK\n", + "minimum" : 0, + "maximum" : 1 }, "bitRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Bit rate setting for Ieee 802 15 4 mod." }, "subGHzBand" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Over 1 GHz standard\n * 1 - Under 1 GHz standard\n" + "description" : "Boolean value\n * 0 - Over 1 GHz standard\n * 1 - Under 1 GHz standard\n", + "minimum" : 0, + "maximum" : 1 }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { "type" : "integer", - "description" : "* 0 - Effective transmission * 1 - Transmission is muted\n" + "description" : "* 0 - Effective transmission * 1 - Transmission is muted\n", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { "type" : "integer", - "description" : "Whether to repeated transmit the frame (1 for yes, 0 for no)." + "description" : "Whether to repeated transmit the frame (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", @@ -8491,41 +11281,54 @@ margin-bottom: 20px; "description" : "Number of times to repeat the frame (-1 for infinite)." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for Ieee 802 15 4 mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for Ieee 802 15 4 mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for Ieee 802 15 4 mod." }, "modulateWhileRamping" : { "type" : "integer", - "description" : "Boolean value\n * 0 - do not modulate in ramping phase\n * 1 - modulate in ramping phase\n" + "description" : "Boolean value\n * 0 - do not modulate in ramping phase\n * 1 - modulate in ramping phase\n", + "minimum" : 0, + "maximum" : 1 }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "bbNoise" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not add gaussian noise in baseband\n * 1 - Add gaussian noise in baseband\n" + "description" : "Boolean value\n * 0 - Do not add gaussian noise in baseband\n * 1 - Add gaussian noise in baseband\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not write frames to .csv file\n * 1 - Write frames to .csv file\n" + "description" : "Boolean value\n * 0 - Do not write frames to .csv file\n * 1 - Write frames to .csv file\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Spectrum rate setting for Ieee 802 15 4 mod." }, "data" : { "type" : "string", "description" : "Hex coded bytes of data to transmit, excluding CRC (E.g for an ACK - 02 00 00)" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8533,23 +11336,33 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scramble" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not scramble data\n * 1 - Scramble data\n" + "description" : "Boolean value\n * 0 - Do not scramble data\n * 1 - Scramble data\n", + "minimum" : 0, + "maximum" : 1 }, "polynomial" : { "type" : "integer", @@ -8557,7 +11370,9 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Pulse shaping filter\n * 0 - Root Cosime\n * 1 - Sine\n" + "description" : "Pulse shaping filter\n * 0 - Root Cosime\n * 1 - Sine\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", @@ -8565,15 +11380,20 @@ margin-bottom: 20px; "description" : "Pulse shaping filter beta factor" }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Ieee 802 15 4 mod." }, "udpEnabled" : { "type" : "integer", - "description" : "Enable forwarding of frames via UDP" + "description" : "Enable forwarding of frames via UDP", + "minimum" : 0, + "maximum" : 1 }, "udpBytesFormat" : { "type" : "integer", - "description" : "Payload format\n * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a\n * 1 - Raw bytes\n" + "description" : "Payload format\n * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a\n * 1 - Raw bytes\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8581,12 +11401,16 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for frames to transmit on" + "description" : "UDP port to listen for frames to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8600,10 +11424,12 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "ident" : { - "type" : "string" + "type" : "string", + "description" : "Reported ident." }, "deviation" : { "type" : "number", @@ -8637,73 +11463,97 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "mode" : { "type" : "integer", - "description" : "(0 for LOC, 1 for G/S)" + "description" : "(0 for LOC, 1 for G/S)", + "minimum" : 0, + "maximum" : 1 }, "frequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected frequency index." }, "squelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch threshold in dB." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "average" : { - "type" : "integer" + "type" : "integer", + "description" : "Average setting for Ils demod." }, "ddmUnits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ddm units setting for Ils demod." }, "identThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ident threshold setting for Ils demod." }, "ident" : { - "type" : "string" + "type" : "string", + "description" : "Ident setting for Ils demod." }, "runway" : { - "type" : "string" + "type" : "string", + "description" : "Runway setting for Ils demod." }, "trueBearing" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "True bearing setting for Ils demod." }, "latitude" : { - "type" : "string" + "type" : "string", + "description" : "Latitude in degrees, positive north." }, "longitude" : { - "type" : "string" + "type" : "string", + "description" : "Longitude in degrees, positive east." }, "elevation" : { - "type" : "integer" + "type" : "integer", + "description" : "Elevation setting for Ils demod." }, "glidePath" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Glide path setting for Ils demod." }, "refHeight" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ref height setting for Ils demod." }, "courseWidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Course width setting for Ils demod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward DDM to specified UDP port" + "description" : "Whether to forward DDM to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8711,19 +11561,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward DDM to" + "description" : "UDP port to forward DDM to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8731,27 +11589,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8765,7 +11634,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "InmarsatDemod" @@ -8774,23 +11644,29 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "rrcRolloff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Rrc rolloff setting for Inmarsat demod." }, "pllBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll bandwidth in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8798,26 +11674,39 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "udpFormat" : { "type" : "integer", - "description" : "0 for binary, 1 for NMEA" + "description" : "0 for binary, 1 for NMEA", + "minimum" : 0, + "maximum" : 1 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8825,27 +11714,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8982,19 +11882,25 @@ margin-bottom: 20px; "properties" : { "correlationType" : { "type" : "integer", - "description" : "see InterferometerSettings::CorrelationType" + "description" : "Operation applied to the two input streams\n * 0 - stream 0 only\n * 1 - stream 1 only\n * 2 - add the streams\n * 3 - multiply the streams\n * 4 - inverse FFT of the cross spectrum\n * 5 - inverse FFT of the conjugate cross spectrum\n * 6 - FFT of the cross spectrum\n * 7 - second form of the inverse FFT correlation\n", + "minimum" : 0, + "maximum" : 7 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "phase" : { "type" : "integer", @@ -9010,34 +11916,48 @@ margin-bottom: 20px; }, "play" : { "type" : "integer", - "description" : "Run correlated IQ samples transfer\n * 0 - stop\n * 1 - run\n" + "description" : "Run correlated IQ samples transfer\n * 0 - stop\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9046,28 +11966,39 @@ margin-bottom: 20px; defs.JogdialControllerSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9077,19 +12008,28 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected" + "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected", + "minimum" : 0, + "maximum" : 4 }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Altitude above mean sea level." } }, "description" : "KiwiSDR" @@ -9097,21 +12037,29 @@ margin-bottom: 20px; defs.KiwiSDRSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "useAGC" : { "type" : "integer", - "description" : "AGC active (1 for yes, 0 for no)" + "description" : "AGC active (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "serverAddress" : { "type" : "string", @@ -9119,16 +12067,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "KiwiSDR" @@ -9137,7 +12092,9 @@ margin-bottom: 20px; "properties" : { "selectChannel" : { "type" : "integer", - "description" : "Select channel\n * 0 - Rx\n * 1 - Tx\n" + "description" : "Select channel\n * 0 - Rx\n * 1 - Tx\n", + "minimum" : 0, + "maximum" : 1 }, "deviceSetIndex" : { "type" : "integer", @@ -9145,7 +12102,9 @@ margin-bottom: 20px; }, "switchChannel" : { "type" : "integer", - "description" : "Switch on or off\n * 0 - Off\n * 1 - On\n" + "description" : "Switch on or off\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "getState" : { "type" : "integer", @@ -9153,19 +12112,27 @@ margin-bottom: 20px; }, "fromToSettings" : { "type" : "integer", - "description" : "Move from/to settings to/from device\n * 0 - From device to settings. The toGUI button in GUI mode\n * 1 - From settings to device. The Apply button in GUI mode\n" + "description" : "Move from/to settings to/from device\n * 0 - From device to settings. The toGUI button in GUI mode\n * 1 - From settings to device. The Apply button in GUI mode\n", + "minimum" : 0, + "maximum" : 1 }, "openCloseDevice" : { "type" : "integer", - "description" : "Open or close device\n * 0 - Close device\n * 1 - Open device\n" + "description" : "Open or close device\n * 0 - Close device\n * 1 - Open device\n", + "minimum" : 0, + "maximum" : 1 }, "setRx" : { "type" : "integer", - "description" : "Set Rx om or off\n * 0 - Rx off\n * 1 - Rx on\n" + "description" : "Set Rx om or off\n * 0 - Rx off\n * 1 - Rx on\n", + "minimum" : 0, + "maximum" : 1 }, "setTx" : { "type" : "integer", - "description" : "Set Tx om or off\n * 0 - Tx off\n * 1 - Tx on\n" + "description" : "Set Tx om or off\n * 0 - Tx off\n * 1 - Tx on\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "LimeRFE" @@ -9200,11 +12167,15 @@ margin-bottom: 20px; "properties" : { "rxOn" : { "type" : "integer", - "description" : "Boolean 1 if Rx is active else 0" + "description" : "Boolean 1 if Rx is active else 0", + "minimum" : 0, + "maximum" : 1 }, "txOn" : { "type" : "integer", - "description" : "Boolean 1 if Tx is active else 0" + "description" : "Boolean 1 if Tx is active else 0", + "minimum" : 0, + "maximum" : 1 }, "forwardPower" : { "type" : "integer", @@ -9220,10 +12191,12 @@ margin-bottom: 20px; defs.LimeRFESettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "devicePath" : { "type" : "string", @@ -9231,23 +12204,33 @@ margin-bottom: 20px; }, "rxChannels" : { "type" : "integer", - "description" : "Rx channels group (LimeRFEController::ChannelGroups):\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n" + "description" : "Rx channels group (LimeRFEController::ChannelGroups):\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n", + "minimum" : 0, + "maximum" : 2 }, "rxWidebandChannel" : { "type" : "integer", - "description" : "Rx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n" + "description" : "Rx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n", + "minimum" : 0, + "maximum" : 1 }, "rxHAMChannel" : { "type" : "integer", - "description" : "Rx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n" + "description" : "Rx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n", + "minimum" : 0, + "maximum" : 8 }, "rxCellularChannel" : { "type" : "integer", - "description" : "Rx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n" + "description" : "Rx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n", + "minimum" : 0, + "maximum" : 4 }, "rxPort" : { "type" : "integer", - "description" : "Rx port selected (LimeRFEController::RxPort)\n * 0 - J3\n * 1 - J5\n" + "description" : "Rx port selected (LimeRFEController::RxPort)\n * 0 - J3\n * 1 - J5\n", + "minimum" : 0, + "maximum" : 1 }, "attenuationFactor" : { "type" : "integer", @@ -9259,53 +12242,78 @@ margin-bottom: 20px; }, "txChannels" : { "type" : "integer", - "description" : "Tx channels group (LimeRFEController::ChannelGroups)\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n" + "description" : "Tx channels group (LimeRFEController::ChannelGroups)\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n", + "minimum" : 0, + "maximum" : 2 }, "txWidebandChannel" : { "type" : "integer", - "description" : "Tx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n" + "description" : "Tx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n", + "minimum" : 0, + "maximum" : 1 }, "txHAMChannel" : { "type" : "integer", - "description" : "Tx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n" + "description" : "Tx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n", + "minimum" : 0, + "maximum" : 8 }, "txCellularChannel" : { "type" : "integer", - "description" : "Tx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n" + "description" : "Tx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n", + "minimum" : 0, + "maximum" : 4 }, "txPort" : { "type" : "integer", - "description" : "Tx port selected (LimeRFEController::TxPort)\n * 0 - J3\n * 1 - J4\n * 2 - J5\n" + "description" : "Tx port selected (LimeRFEController::TxPort)\n * 0 - J3\n * 1 - J4\n * 2 - J5\n", + "minimum" : 0, + "maximum" : 2 }, "swrEnable" : { "type" : "integer", - "description" : "Boolean if SWR measurements are enabled else 0" + "description" : "Boolean if SWR measurements are enabled else 0", + "minimum" : 0, + "maximum" : 1 }, "swrSource" : { "type" : "integer", - "description" : "SWR measurement source (LimeRFEController::SWRSource)\n * 0 - External\n * 1 - Cellular\n" + "description" : "SWR measurement source (LimeRFEController::SWRSource)\n * 0 - External\n * 1 - Cellular\n", + "minimum" : 0, + "maximum" : 1 }, "txRxDriven" : { "type" : "integer", - "description" : "Boolean 1 if Tx is copy of Rx else 0" + "description" : "Boolean 1 if Tx is copy of Rx else 0", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9319,26 +12327,34 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." }, "linkRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Measured streaming link rate." }, "hwTimestamp" : { "type" : "integer", @@ -9347,15 +12363,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." } }, "description" : "LimeSDR" @@ -9363,100 +12382,146 @@ margin-bottom: 20px; defs.LimeSdrInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "splitFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "Split freq setting for Lime sdr input." }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "lpfFIREnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the digital FIR low-pass filter (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Digital FIR low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "ncoEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the numerically controlled oscillator (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Numerically controlled oscillator frequency in Hz." }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "tiaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "TIA gain setting for Lime sdr input." }, "pgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "PGA gain setting for Lime sdr input." }, "extClock" : { - "type" : "integer" + "type" : "integer", + "description" : "Use an external reference clock (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "External reference-clock frequency in Hz." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LimeSDR" @@ -9470,15 +12535,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "successRx" : { "type" : "integer", @@ -9489,23 +12557,29 @@ margin-bottom: 20px; "description" : "1 if active else 0" }, "fifoSizeRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported fifo size receive." }, "fifoFillRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current receive FIFO fill level." }, "underrunCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported underrun count receive." }, "overrunCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported overrun count receive." }, "droppedPacketsCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported dropped packets count receive." }, "linkRateRx" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported link rate receive." }, "successTx" : { "type" : "integer", @@ -9516,23 +12590,29 @@ margin-bottom: 20px; "description" : "1 if active else 0" }, "fifoSizeTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported fifo size transmit." }, "fifoFillTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current transmit FIFO fill level." }, "underrunCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported underrun count transmit." }, "overrunCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported overrun count transmit." }, "droppedPacketsCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported dropped packets count transmit." }, "linkRateTx" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported link rate transmit." } }, "description" : "LimeSDR" @@ -9540,10 +12620,12 @@ margin-bottom: 20px; defs.LimeSdrMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "gpioDir" : { "type" : "integer", @@ -9557,7 +12639,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Boolean 1 if external clock source else 0" + "description" : "Boolean 1 if external clock source else 0", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -9565,50 +12649,71 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "dcBlock" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterMode" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "ncoEnableRx" : { "type" : "integer", - "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + "description" : "Boolean 1 to enable TSP NCO and mixing else 0", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyRx" : { "type" : "integer", @@ -9621,7 +12726,9 @@ margin-bottom: 20px; }, "lpfFIREnableRx0" : { "type" : "integer", - "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWRx0" : { "type" : "number", @@ -9634,11 +12741,15 @@ margin-bottom: 20px; }, "antennaPathRx0" : { "type" : "integer", - "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n", + "minimum" : 0, + "maximum" : 5 }, "gainModeRx0" : { "type" : "integer", - "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n" + "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx0" : { "type" : "integer", @@ -9659,7 +12770,9 @@ margin-bottom: 20px; }, "lpfFIREnableRx1" : { "type" : "integer", - "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWRx1" : { "type" : "number", @@ -9672,11 +12785,15 @@ margin-bottom: 20px; }, "antennaPathRx1" : { "type" : "integer", - "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n", + "minimum" : 0, + "maximum" : 5 }, "gainModeRx1" : { "type" : "integer", - "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n" + "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx1" : { "type" : "integer", @@ -9692,25 +12809,33 @@ margin-bottom: 20px; }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "txTransverterMode" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "ncoEnableTx" : { "type" : "integer", - "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + "description" : "Boolean 1 to enable TSP NCO and mixing else 0", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyTx" : { "type" : "integer", @@ -9723,7 +12848,9 @@ margin-bottom: 20px; }, "lpfFIREnableTx0" : { "type" : "integer", - "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWTx0" : { "type" : "number", @@ -9736,7 +12863,9 @@ margin-bottom: 20px; }, "antennaPathTx0" : { "type" : "integer", - "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n", + "minimum" : 0, + "maximum" : 2 }, "lpfBWTx1" : { "type" : "number", @@ -9745,7 +12874,9 @@ margin-bottom: 20px; }, "lpfFIREnableTx1" : { "type" : "integer", - "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWTx1" : { "type" : "number", @@ -9758,7 +12889,9 @@ margin-bottom: 20px; }, "antennaPathTx1" : { "type" : "integer", - "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n", + "minimum" : 0, + "maximum" : 2 } }, "description" : "LimeSDR" @@ -9771,26 +12904,34 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." }, "linkRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Measured streaming link rate." }, "hwTimestamp" : { "type" : "integer", @@ -9799,15 +12940,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." } }, "description" : "LimeSDR" @@ -9815,75 +12959,108 @@ margin-bottom: 20px; defs.LimeSdrOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "lpfFIREnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the digital FIR low-pass filter (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Digital FIR low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "ncoEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the numerically controlled oscillator (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Numerically controlled oscillator frequency in Hz." }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "extClock" : { - "type" : "integer" + "type" : "integer", + "description" : "Use an external reference clock (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "External reference-clock frequency in Hz." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LimeSDR" @@ -9892,10 +13069,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "LocalInput" @@ -9903,26 +13082,40 @@ margin-bottom: 20px; defs.LocalInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LocalInput" @@ -9931,10 +13124,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "LocalOutput" @@ -9942,20 +13137,28 @@ margin-bottom: 20px; defs.LocalOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LocalOutput" @@ -9967,24 +13170,32 @@ margin-bottom: 20px; "description" : "Receiving local device index" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "play" : { "type" : "integer", - "description" : "Run samples transfer\n * 0 - stop\n * 1 - run\n" + "description" : "Run samples transfer\n * 0 - stop\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "dsp" : { "type" : "integer", - "description" : "Activate DSP\n * 0 - Skip DSP functions\n * 1 - Run DSP functions\n" + "description" : "Activate DSP\n * 0 - Skip DSP functions\n * 1 - Run DSP functions\n", + "minimum" : 0, + "maximum" : 1 }, "gaindB" : { "type" : "integer", @@ -9992,7 +13203,9 @@ margin-bottom: 20px; }, "fftOn" : { "type" : "integer", - "description" : "Activate FFT multiband filter\n * 0 - do not run filter\n * 1 - run filter\n" + "description" : "Activate FFT multiband filter\n * 0 - do not run filter\n * 1 - run filter\n", + "minimum" : 0, + "maximum" : 1 }, "log2FFT" : { "type" : "integer", @@ -10000,17 +13213,22 @@ margin-bottom: 20px; }, "fftWindow" : { "type" : "integer", - "description" : "FFT window type\n * 0 - Bartlett\n * 1 - Blackman-Harris\n * 2 - Flat top\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman\n * 8 - Blackman-Harris (7th order)\n" + "description" : "FFT window type\n * 0 - Bartlett\n * 1 - Blackman-Harris\n * 2 - Flat top\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman\n * 8 - Blackman-Harris (7th order)\n", + "minimum" : 0, + "maximum" : 8 }, "fftBands" : { "type" : "array", + "description" : "List of fft bands.", "items" : { "$ref" : "#/definitions/FFTBand" } }, "reverseFilter" : { "type" : "integer", - "description" : "* 0 - band definitions are bandpass * 1 - band definitions are band reject\n" + "description" : "* 0 - band definitions are bandpass * 1 - band definitions are band reject\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10018,24 +13236,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10048,20 +13276,26 @@ margin-bottom: 20px; "description" : "Sending local device index" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "play" : { "type" : "integer", - "description" : "boolean (1 to play, 0 to stop)" + "description" : "boolean (1 to play, 0 to stop)", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10069,24 +13303,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10137,10 +13381,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "squelch" : { "type" : "integer", @@ -10153,48 +13399,63 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "demodGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demod gain setting for M17 demod." }, "baudRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Serial-port baud rate in bits per second." }, "squelchGate" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch gate duration." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "syncOrConstellation" : { - "type" : "integer" + "type" : "integer", + "description" : "Sync or constellation setting for M17 demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "highPassFilter" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass filter setting for M17 demod." }, "traceLengthMutliplier" : { "type" : "integer", @@ -10202,17 +13463,25 @@ margin-bottom: 20px; }, "traceStroke" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "traceDecay" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "statusLogEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable status log (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10220,24 +13489,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10251,10 +13530,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "M17Mod" @@ -10263,35 +13544,48 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for M17 mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "m17Mode" : { "type" : "integer", @@ -10306,17 +13600,21 @@ margin-bottom: 20px; "description" : "PacketType" }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "feedbackAudioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Feedback audio device name setting for M17 mod." }, "feedbackVolumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Feedback volume factor setting for M17 mod." }, "feedbackAudioEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Feedback audio enable setting for M17 mod." }, "streamIndex" : { "type" : "integer", @@ -10324,64 +13622,171 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "sourceCall" : { - "type" : "string" + "type" : "string", + "description" : "Source call setting for M17 mod." }, "destCall" : { - "type" : "string" + "type" : "string", + "description" : "Dest call setting for M17 mod." }, "insertPosition" : { - "type" : "integer" + "type" : "integer", + "description" : "Insert position setting for M17 mod." }, "can" : { - "type" : "integer" + "type" : "integer", + "description" : "Can setting for M17 mod." }, "smsText" : { - "type" : "string" + "type" : "string", + "description" : "Sms text setting for M17 mod." }, "loopPacket" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop packet setting for M17 mod." }, "loopPacketInterval" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop packet interval setting for M17 mod." }, "aprsCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Aprs callsign setting for M17 mod." }, "aprsTo" : { - "type" : "string" + "type" : "string", + "description" : "Aprs to setting for M17 mod." }, "aprsVia" : { - "type" : "string" + "type" : "string", + "description" : "Aprs via setting for M17 mod." }, "aprsData" : { - "type" : "string" + "type" : "string", + "description" : "Aprs data setting for M17 mod." }, "aprsInsertPosition" : { - "type" : "integer" + "type" : "integer", + "description" : "Aprs insert position setting for M17 mod." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "M17Mod" +}; + defs.MCPServerActions = { + "properties" : { + "run" : { + "type" : "integer", + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MCP server actions" +}; + defs.MCPServerReport = { + "properties" : { + "runningState" : { + "type" : "integer", + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 + }, + "requestCount" : { + "type" : "integer", + "description" : "Number of MCP requests served since the server was started" + } + }, + "description" : "MCP server report" +}; + defs.MCPServerSettings = { + "properties" : { + "address" : { + "type" : "string", + "description" : "Address to bind the HTTP listener to. Defaults to 127.0.0.1 (local connections only)" + }, + "port" : { + "type" : "integer", + "description" : "TCP port the MCP server listens on", + "minimum" : 1024, + "maximum" : 65535 + }, + "token" : { + "type" : "string", + "description" : "Optional bearer token clients must present in the Authorization header. Empty for no authentication" + }, + "captureDir" : { + "type" : "string", + "description" : "Directory that IQ and audio captures are written to. Capture tools refuse paths outside it" + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIFeatureSetIndex" : { + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." + }, + "reverseAPIFeatureIndex" : { + "type" : "integer", + "description" : "Feature index used by the reverse API peer." + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MCP (Model Context Protocol) server settings" }; defs.MapActions = { "properties" : { @@ -10399,13 +13804,16 @@ margin-bottom: 20px; defs.MapAircraftState = { "properties" : { "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "aircraftType" : { - "type" : "string" + "type" : "string", + "description" : "Aircraft type for Map aircraft state." }, "onSurface" : { - "type" : "integer" + "type" : "integer", + "description" : "On surface for Map aircraft state." }, "airspeed" : { "type" : "number", @@ -10428,7 +13836,8 @@ margin-bottom: 20px; }, "mach" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Mach for Map aircraft state." }, "altitude" : { "type" : "number", @@ -10465,15 +13874,18 @@ margin-bottom: 20px; }, "selectedAirspeed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected airspeed for Map aircraft state." }, "selectedAltitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected altitude for Map aircraft state." }, "selectedHeading" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected heading for Map aircraft state." }, "autopilot" : { "type" : "integer", @@ -10493,15 +13905,18 @@ margin-bottom: 20px; }, "windSpeed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Wind speed for Map aircraft state." }, "windDirection" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Wind direction for Map aircraft state." }, "staticAirTemperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Static air temperature for Map aircraft state." } }, "description" : "Aircraft state for PFD/ND" @@ -10514,11 +13929,15 @@ margin-bottom: 20px; }, "reverse" : { "type" : "integer", - "description" : "(0 - Forward, 1 - Reverse)" + "description" : "(0 - Forward, 1 - Reverse)", + "minimum" : 0, + "maximum" : 1 }, "loop" : { "type" : "integer", - "description" : "(0 - Play once, 1 - Play in loop)" + "description" : "(0 - Play once, 1 - Play in loop)", + "minimum" : 0, + "maximum" : 1 }, "startDateTime" : { "type" : "string", @@ -10554,12 +13973,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10595,12 +14018,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10609,7 +14036,9 @@ margin-bottom: 20px; }, "fixedPosition" : { "type" : "integer", - "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" + "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)", + "minimum" : 0, + "maximum" : 1 }, "positionDateTime" : { "type" : "string", @@ -10639,7 +14068,9 @@ margin-bottom: 20px; }, "orientation" : { "type" : "integer", - "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" + "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)", + "minimum" : 0, + "maximum" : 1 }, "heading" : { "type" : "number", @@ -10680,7 +14111,9 @@ margin-bottom: 20px; }, "altitudeReference" : { "type" : "integer", - "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." + "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND.", + "minimum" : 0, + "maximum" : 3 }, "animations" : { "type" : "array", @@ -10691,23 +14124,29 @@ margin-bottom: 20px; }, "type" : { "type" : "integer", - "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" + "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)", + "minimum" : 0, + "maximum" : 3 }, "imageTileWest" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile west for Map item." }, "imageTileSouth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile south for Map item." }, "imageTileEast" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile east for Map item." }, "imageTileNorth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile north for Map item." }, "imageZoomLevel" : { "type" : "number", @@ -10736,13 +14175,16 @@ margin-bottom: 20px; }, "colorValid" : { "type" : "integer", - "description" : "0 - Use default color, 1 - Use specified color" + "description" : "0 - Use default color, 1 - Use specified color", + "minimum" : 0, + "maximum" : 1 }, "color" : { "type" : "integer", "description" : "RGBA for polygon and polyline" }, "aircraftState" : { + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "$ref" : "#/definitions/MapAircraftState" } }, @@ -10770,12 +14212,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10784,7 +14230,9 @@ margin-bottom: 20px; }, "fixedPosition" : { "type" : "integer", - "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" + "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)", + "minimum" : 0, + "maximum" : 1 }, "positionDateTime" : { "type" : "string", @@ -10814,7 +14262,9 @@ margin-bottom: 20px; }, "orientation" : { "type" : "integer", - "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" + "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)", + "minimum" : 0, + "maximum" : 1 }, "heading" : { "type" : "number", @@ -10855,7 +14305,9 @@ margin-bottom: 20px; }, "altitudeReference" : { "type" : "integer", - "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." + "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND.", + "minimum" : 0, + "maximum" : 3 }, "animations" : { "type" : "array", @@ -10866,23 +14318,29 @@ margin-bottom: 20px; }, "type" : { "type" : "integer", - "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" + "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)", + "minimum" : 0, + "maximum" : 3 }, "imageTileWest" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile west for Map item." }, "imageTileSouth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile south for Map item." }, "imageTileEast" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile east for Map item." }, "imageTileNorth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile north for Map item." }, "imageZoomLevel" : { "type" : "number", @@ -10911,13 +14369,16 @@ margin-bottom: 20px; }, "colorValid" : { "type" : "integer", - "description" : "0 - Use default color, 1 - Use specified color" + "description" : "0 - Use default color, 1 - Use specified color", + "minimum" : 0, + "maximum" : 1 }, "color" : { "type" : "integer", "description" : "RGBA for polygon and polyline" }, "aircraftState" : { + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "$ref" : "#/definitions/MapAircraftState" } }, @@ -10936,372 +14397,244 @@ margin-bottom: 20px; "properties" : { "displayNames" : { "type" : "integer", - "description" : "Display object names on the map (1 for yes, 0 for no)" - }, - "terrain" : { - "type" : "string", - "description" : "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" - }, - "title" : { - "type" : "string" - }, - "rgbColor" : { - "type" : "integer" - }, - "useReverseAPI" : { - "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" - }, - "reverseAPIAddress" : { - "type" : "string" - }, - "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIFeatureSetIndex" : { - "type" : "integer" - }, - "reverseAPIFeatureIndex" : { - "type" : "integer" - }, - "rollupState" : { - "$ref" : "#/definitions/RollupState" - } - }, - "description" : "Map" -}; - defs.MeshcoreDemodReport = { - "properties" : { - "channelPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "current de-chirped total channel power (dB)" - }, - "noisePowerDB" : { - "type" : "number", - "format" : "float", - "description" : "current de-chirped noise argmax power (dB)" - }, - "signalPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "last message de-chirped signal argmax power (dB)" - }, - "snrPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "last message de-chirped signal to noise ratio power (dB)" - }, - "channelSampleRate" : { - "type" : "integer" - }, - "syncWord" : { - "type" : "integer", - "description" : "2 bytes sync word (0..65535)" - }, - "nbParityBits" : { - "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" + "description" : "Display object names on the map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, - "packetLength" : { + "map2DEnabled" : { "type" : "integer", - "description" : "Packet length in number of bytes (LoRa)" + "description" : "Display the 2D map pane (1 for yes, 0 for no). Disable this while keeping map3DEnabled enabled to show only the 3D map.", + "minimum" : 0, + "maximum" : 1 }, - "nbSymbols" : { + "map3DEnabled" : { "type" : "integer", - "description" : "Number of symbols in the payload with header and CRC (LoRa)" + "description" : "Display the 3D map pane (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbCodewords" : { - "type" : "integer", - "description" : "Number of codewords in the payload with header and CRC (LoRa)" - }, - "headerParityStatus" : { - "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" - }, - "headerCRCStatus" : { - "type" : "integer", - "description" : "header CRC check status. Boolean 1 if OK else 0" - }, - "payloadParityStatus" : { - "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" - }, - "payloadCRCStatus" : { - "type" : "integer", - "description" : "payload CRC check status. Boolean 1 if OK else 0" - }, - "messageTimestamp" : { + "mapProvider" : { "type" : "string", - "description" : "timestamp of the last decoded message" + "description" : "2D map provider identifier." }, - "messageString" : { + "mapType" : { "type" : "string", - "description" : "string representation of the last decoded message" + "description" : "Selected 2D map type, for example Street Map or Satellite Map." }, - "frameType" : { + "osmURL" : { "type" : "string", - "description" : "frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP)" + "description" : "Custom OpenStreetMap tile-server URL." }, - "channelType" : { + "mapBoxStyles" : { "type" : "string", - "description" : "Channel type code e.g. LONG_FAST" + "description" : "Mapbox style identifier used by the selected 2D provider." }, - "messageBytes" : { - "type" : "array", - "description" : "bytes of the last decoded message as an array of hex string represented bytes (00..FF)", - "items" : { - "type" : "string" - } - }, - "decoding" : { - "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" - } - }, - "description" : "MeshcoreDemod" -}; - defs.MeshcoreDemodSettings = { - "properties" : { - "inputFrequencyOffset" : { + "displaySelectedGroundTracks" : { "type" : "integer", - "format" : "int64" + "description" : "Display ground tracks for selected items (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "bandwidthIndex" : { + "displayAllGroundTracks" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "Display ground tracks for all items (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "spreadFactor" : { - "type" : "integer" + "terrain" : { + "type" : "string", + "description" : "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" }, - "deBits" : { - "type" : "integer", - "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + "buildings" : { + "type" : "string", + "description" : "3D buildings layer, for example None or Cesium OSM Buildings." }, - "decodeActive" : { + "sunLightEnabled" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "Light the globe from the Sun's direction (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "eomSquelchTenths" : { - "type" : "integer", - "description" : "argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10" + "lightIntensity" : { + "type" : "number", + "format" : "float", + "description" : "Camera light intensity used by the 3D map.", + "minimum" : 0 }, - "nbSymbolsMax" : { + "eciCamera" : { "type" : "integer", - "description" : "expected maximum number of symbols in a payload" + "description" : "Use an ECI rather than ECEF camera frame (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "preambleChirps" : { + "fxaa" : { "type" : "integer", - "description" : "Number of expected preamble chirps" + "description" : "Enable fast approximate anti-aliasing (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbParityBits" : { + "msaa" : { "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" + "description" : "Multisample anti-aliasing level.", + "minimum" : 1, + "maximum" : 8 }, - "packetLength" : { + "terrainLighting" : { "type" : "integer", - "description" : "expected packet length in number of bytes (LoRa)" + "description" : "Enable terrain lighting (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "sendViaUDP" : { + "water" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "Enable water effects (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "sendJsonViaUDP" : { + "hdr" : { "type" : "integer", - "description" : "boolean 1 to send decoded message as JSON via UDP else 0" + "description" : "Enable high dynamic range rendering (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpEnabled" : { + "fog" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" - }, - "udpAddress" : { - "type" : "string", - "description" : "UDP destination udpAddress" + "description" : "Enable atmospheric fog (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpPort" : { + "fps" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "Display the 3D map frame rate (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "invertRamps" : { + "displayMUF" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" - }, - "rgbColor" : { - "type" : "integer" - }, - "title" : { - "type" : "string" + "description" : "Display maximum-usable-frequency contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "streamIndex" : { + "displayfoF2" : { "type" : "integer", - "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + "description" : "Display F2 critical-frequency contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "useReverseAPI" : { + "displayRain" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" - }, - "reverseAPIAddress" : { - "type" : "string" - }, - "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIDeviceIndex" : { - "type" : "integer" + "description" : "Display weather-radar rain and snow overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "reverseAPIChannelIndex" : { - "type" : "integer" - }, - "spectrumConfig" : { - "$ref" : "#/definitions/GLSpectrum" - }, - "channelMarker" : { - "$ref" : "#/definitions/ChannelMarker" - }, - "rollupState" : { - "$ref" : "#/definitions/RollupState" - } - }, - "description" : "MeshcoreDemod" -}; - defs.MeshcoreModActions = { - "properties" : { - "sendNow" : { + "displayClouds" : { "type" : "integer", - "description" : "Send packet immediately\n * 0 - Do nothing\n * 1 - Send packet\n" - } - }, - "description" : "MeshcoreMod" -}; - defs.MeshcoreModReport = { - "properties" : { - "channelPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "power transmitted in channel (dB)" + "description" : "Display satellite infrared cloud overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "channelSampleRate" : { - "type" : "integer" - }, - "symbolTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "symbol duration (ms)" - }, - "payloadTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "payload duration (ms)" - }, - "totalTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "total message duration inc. preamble and SFD (ms)" - }, - "playing" : { + "displaySeaMarks" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" - } - }, - "description" : "MeshcoreMod" -}; - defs.MeshcoreModSettings = { - "properties" : { - "inputFrequencyOffset" : { - "type" : "integer", - "format" : "int64" + "description" : "Display sea marks (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "bandwidthIndex" : { + "displayRailways" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "Display railways (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "spreadFactor" : { - "type" : "integer" - }, - "deBits" : { + "displayNASAGlobalImagery" : { "type" : "integer", - "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + "description" : "Display NASA GIBS imagery (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "preambleChirps" : { - "type" : "integer", - "description" : "Number of preamble chirps" + "nasaGlobalImageryIdentifier" : { + "type" : "string", + "description" : "NASA GIBS imagery-layer identifier." }, - "quietMillis" : { + "nasaGlobalImageryOpacity" : { "type" : "integer", - "description" : "Number of milliseconds to pause between transmissions" + "description" : "NASA GIBS imagery opacity as a percentage.", + "minimum" : 0, + "maximum" : 100 }, - "syncWord" : { + "displayAurora" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "Display aurora-probability overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "channelMute" : { + "displayMagDec" : { "type" : "integer", - "description" : "boolean" + "description" : "Display magnetic-declination contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbParityBits" : { + "displayMaidenheadGrid" : { "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" - }, - "textMessage" : { - "type" : "string", - "description" : "freeform text message" + "description" : "Display Maidenhead grid (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "messageRepeat" : { + "displayPFD" : { "type" : "integer", - "description" : "number of repetitions of the same message (0 for infinite)" + "description" : "Display the aircraft primary-flight display (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpEnabled" : { + "viewFirstPerson" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "Use first-person 3D map view (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpAddress" : { + "defaultImagery" : { "type" : "string", - "description" : "UDP address to listen for messages to transmit on" - }, - "udpPort" : { - "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" - }, - "invertRamps" : { - "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" - }, - "rgbColor" : { - "type" : "integer" + "description" : "Default imagery layer for the 3D map." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, - "streamIndex" : { + "rgbColor" : { "type" : "integer", - "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, - "reverseAPIChannelIndex" : { - "type" : "integer" + "reverseAPIFeatureSetIndex" : { + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, - "channelMarker" : { - "$ref" : "#/definitions/ChannelMarker" + "reverseAPIFeatureIndex" : { + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, - "description" : "MeshcoreMod" + "description" : "Map" }; - defs.MeshtasticDemodReport = { + defs.MeshcoreDemodReport = { "properties" : { "channelPowerDB" : { "type" : "number", @@ -11324,11 +14657,414 @@ margin-bottom: 20px; "description" : "last message de-chirped signal to noise ratio power (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." + }, + "syncWord" : { + "type" : "integer", + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "packetLength" : { + "type" : "integer", + "description" : "Packet length in number of bytes (LoRa)" + }, + "nbSymbols" : { + "type" : "integer", + "description" : "Number of symbols in the payload with header and CRC (LoRa)" + }, + "nbCodewords" : { + "type" : "integer", + "description" : "Number of codewords in the payload with header and CRC (LoRa)" + }, + "headerParityStatus" : { + "type" : "integer", + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 + }, + "headerCRCStatus" : { + "type" : "integer", + "description" : "header CRC check status. Boolean 1 if OK else 0" + }, + "payloadParityStatus" : { + "type" : "integer", + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 + }, + "payloadCRCStatus" : { + "type" : "integer", + "description" : "payload CRC check status. Boolean 1 if OK else 0" + }, + "messageTimestamp" : { + "type" : "string", + "description" : "timestamp of the last decoded message" + }, + "messageString" : { + "type" : "string", + "description" : "string representation of the last decoded message" + }, + "frameType" : { + "type" : "string", + "description" : "frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP)" + }, + "channelType" : { + "type" : "string", + "description" : "Channel type code e.g. LONG_FAST" + }, + "messageBytes" : { + "type" : "array", + "description" : "bytes of the last decoded message as an array of hex string represented bytes (00..FF)", + "items" : { + "type" : "string" + } + }, + "decoding" : { + "type" : "integer", + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreDemod" +}; + defs.MeshcoreDemodSettings = { + "properties" : { + "inputFrequencyOffset" : { + "type" : "integer", + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." + }, + "bandwidthIndex" : { + "type" : "integer", + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 + }, + "spreadFactor" : { + "type" : "integer", + "description" : "Spread factor setting for Meshcore demod." + }, + "deBits" : { + "type" : "integer", + "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + }, + "decodeActive" : { + "type" : "integer", + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 + }, + "eomSquelchTenths" : { + "type" : "integer", + "description" : "argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10" + }, + "nbSymbolsMax" : { + "type" : "integer", + "description" : "expected maximum number of symbols in a payload" + }, + "preambleChirps" : { + "type" : "integer", + "description" : "Number of expected preamble chirps" + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "packetLength" : { + "type" : "integer", + "description" : "expected packet length in number of bytes (LoRa)" + }, + "sendViaUDP" : { + "type" : "integer", + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "sendJsonViaUDP" : { + "type" : "integer", + "description" : "boolean 1 to send decoded message as JSON via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "udpEnabled" : { + "type" : "integer", + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 + }, + "udpAddress" : { + "type" : "string", + "description" : "UDP destination udpAddress" + }, + "udpPort" : { + "type" : "integer", + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 + }, + "invertRamps" : { + "type" : "integer", + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "streamIndex" : { + "type" : "integer", + "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIDeviceIndex" : { + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." + }, + "reverseAPIChannelIndex" : { + "type" : "integer", + "description" : "Channel index used by the reverse API peer." + }, + "spectrumConfig" : { + "description" : "Spectrum-display configuration.", + "$ref" : "#/definitions/GLSpectrum" + }, + "channelMarker" : { + "description" : "Channel-marker display configuration.", + "$ref" : "#/definitions/ChannelMarker" + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MeshcoreDemod" +}; + defs.MeshcoreModActions = { + "properties" : { + "sendNow" : { + "type" : "integer", + "description" : "Send packet immediately\n * 0 - Do nothing\n * 1 - Send packet\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshcoreModReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "power transmitted in channel (dB)" + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." + }, + "symbolTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "symbol duration (ms)" + }, + "payloadTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "payload duration (ms)" + }, + "totalTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "total message duration inc. preamble and SFD (ms)" + }, + "playing" : { + "type" : "integer", + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshcoreModSettings = { + "properties" : { + "inputFrequencyOffset" : { + "type" : "integer", + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." + }, + "bandwidthIndex" : { + "type" : "integer", + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 + }, + "spreadFactor" : { + "type" : "integer", + "description" : "Spread factor setting for Meshcore mod." + }, + "deBits" : { + "type" : "integer", + "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + }, + "preambleChirps" : { + "type" : "integer", + "description" : "Number of preamble chirps" + }, + "quietMillis" : { + "type" : "integer", + "description" : "Number of milliseconds to pause between transmissions" + }, + "syncWord" : { + "type" : "integer", + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 + }, + "channelMute" : { + "type" : "integer", + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "textMessage" : { + "type" : "string", + "description" : "freeform text message" + }, + "messageRepeat" : { + "type" : "integer", + "description" : "number of repetitions of the same message (0 for infinite)" + }, + "udpEnabled" : { + "type" : "integer", + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "udpAddress" : { + "type" : "string", + "description" : "UDP address to listen for messages to transmit on" + }, + "udpPort" : { + "type" : "integer", + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 + }, + "invertRamps" : { + "type" : "integer", + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "streamIndex" : { + "type" : "integer", + "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIDeviceIndex" : { + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." + }, + "reverseAPIChannelIndex" : { + "type" : "integer", + "description" : "Channel index used by the reverse API peer." + }, + "channelMarker" : { + "description" : "Channel-marker display configuration.", + "$ref" : "#/definitions/ChannelMarker" + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshtasticDemodReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "current de-chirped total channel power (dB)" + }, + "noisePowerDB" : { + "type" : "number", + "format" : "float", + "description" : "current de-chirped noise argmax power (dB)" + }, + "signalPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "last message de-chirped signal argmax power (dB)" + }, + "snrPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "last message de-chirped signal to noise ratio power (dB)" + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "syncWord" : { "type" : "integer", - "description" : "2 bytes sync word (0..65535)" + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 }, "nbParityBits" : { "type" : "integer", @@ -11348,7 +15084,9 @@ margin-bottom: 20px; }, "headerParityStatus" : { "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "headerCRCStatus" : { "type" : "integer", @@ -11356,7 +15094,9 @@ margin-bottom: 20px; }, "payloadParityStatus" : { "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "payloadCRCStatus" : { "type" : "integer", @@ -11387,7 +15127,9 @@ margin-bottom: 20px; }, "decoding" : { "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "MeshtasticDemod" @@ -11396,14 +15138,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Meshtastic demod." }, "deBits" : { "type" : "integer", @@ -11411,7 +15157,9 @@ margin-bottom: 20px; }, "decodeActive" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 }, "eomSquelchTenths" : { "type" : "integer", @@ -11435,15 +15183,21 @@ margin-bottom: 20px; }, "sendViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "sendJsonViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message as JSON via UDP else 0" + "description" : "boolean 1 to send decoded message as JSON via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11451,17 +15205,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -11469,27 +15229,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11503,7 +15274,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "symbolTimeMs" : { "type" : "number", @@ -11522,7 +15294,9 @@ margin-bottom: 20px; }, "playing" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "MeshtasticMod" @@ -11531,14 +15305,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Meshtastic mod." }, "deBits" : { "type" : "integer", @@ -11554,11 +15332,15 @@ margin-bottom: 20px; }, "syncWord" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 }, "channelMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "nbParityBits" : { "type" : "integer", @@ -11574,7 +15356,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11582,17 +15366,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -11600,24 +15390,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11626,7 +15426,8 @@ margin-bottom: 20px; defs.MetisMISOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "nbReceivers" : { "type" : "integer", @@ -11634,7 +15435,9 @@ margin-bottom: 20px; }, "txEnable" : { "type" : "integer", - "description" : "Enable Tx * 0 - disabled sends null payload to Metis device * 1 - enabled sends Tx payload to Metis device\n" + "description" : "Enable Tx * 0 - disabled sends null payload to Metis device * 1 - enabled sends Tx payload to Metis device\n", + "minimum" : 0, + "maximum" : 1 }, "rx1CenterFrequency" : { "type" : "integer", @@ -11678,27 +15481,36 @@ margin-bottom: 20px; }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "rxTransverterMode" : { "type" : "integer", - "description" : "Rx transverter activated * 0 - disabled * 1 - enabled\n" + "description" : "Rx transverter activated * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "txTransverterMode" : { "type" : "integer", - "description" : "Tx transverter activated * 0 - disabled * 1 - enabled\n" + "description" : "Tx transverter activated * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "I/Q samples order * 0 - I then Q (direct) * 1 - Q then I (reversed)\n" + "description" : "I/Q samples order * 0 - I then Q (direct) * 1 - Q then I (reversed)\n", + "minimum" : 0, + "maximum" : 1 }, "rx1SubsamplingIndex" : { "type" : "integer", @@ -11733,10 +15545,14 @@ margin-bottom: 20px; "description" : "subsampling band indexes of receiver 8" }, "sampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 3 }, "LOppmTenths" : { "type" : "integer", @@ -11744,27 +15560,39 @@ margin-bottom: 20px; }, "preamp" : { "type" : "integer", - "description" : "Preamplifer * 0 - disabled * 1 - enabled\n" + "description" : "Preamplifer * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "random" : { "type" : "integer", - "description" : "LT2208 Random * 0 - disabled * 1 - enabled\n" + "description" : "LT2208 Random * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dither" : { "type" : "integer", - "description" : "LT2208 Dither * 0 - disabled * 1 - enabled\n" + "description" : "LT2208 Dither * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "duplex" : { "type" : "integer", - "description" : "Duplex * 0 - disabled * 1 - enabled\n" + "description" : "Duplex * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { "type" : "integer", - "description" : "DC block in software * 0 - disabled * 1 - enabled\n" + "description" : "DC block in software * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "DC block in software * 0 - disabled * 1 - enabled\n" + "description" : "DC block in software * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "txDrive" : { "type" : "integer", @@ -11780,24 +15608,35 @@ margin-bottom: 20px; }, "streamLock" : { "type" : "integer", - "description" : "Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked\n" + "description" : "Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked\n", + "minimum" : 0, + "maximum" : 1 }, "rxLock" : { "type" : "integer", - "description" : "Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied\n" + "description" : "Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API * 0 - disabled * 1 - enabled\n" + "description" : "Synchronize with reverse API * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "MetisMISOSettings" @@ -11819,24 +15658,34 @@ margin-bottom: 20px; defs.MorseDecoderSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "udpEnabled" : { "type" : "integer", - "description" : "Send decoded text via UDP\n * 1 - send\n * 0 - do not send\n" + "description" : "Send decoded text via UDP\n * 1 - send\n * 0 - do not send\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11844,7 +15693,9 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "Port to send text via UDP" + "description" : "Port to send text via UDP", + "minimum" : 1, + "maximum" : 65535 }, "logFiledName" : { "type" : "string", @@ -11852,26 +15703,36 @@ margin-bottom: 20px; }, "logEnabled" : { "type" : "integer", - "description" : "Log decoded text to file\n * 1 - log\n * 0 - do not log\n" + "description" : "Log decoded text to file\n * 1 - log\n * 0 - do not log\n", + "minimum" : 0, + "maximum" : 1 }, "auto" : { "type" : "integer", - "description" : "Auto detect CW pitch and keying speed\n * 1 - auto detect\n * 0 - use last values\n" + "description" : "Auto detect CW pitch and keying speed\n * 1 - auto detect\n * 0 - use last values\n", + "minimum" : 0, + "maximum" : 1 }, "showThreshold" : { "type" : "integer", - "description" : "Show GGMorse decoder threshold on the imaginary part of the scope trace\n * 1 - show\n * 0 - do not show\n" + "description" : "Show GGMorse decoder threshold on the imaginary part of the scope trace\n * 1 - show\n * 0 - do not show\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11894,10 +15755,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NFMDemod" @@ -11920,14 +15783,16 @@ margin-bottom: 20px; "description" : "AF bandwidth in Hz (rounds to lower kHz)" }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "squelchGate" : { "type" : "integer", "description" : "squelch gate in tens of ms" }, "deltaSquelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Delta squelch setting for Nfm demod." }, "squelch" : { "type" : "number", @@ -11936,28 +15801,38 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "ctcssOn" : { - "type" : "integer" + "type" : "integer", + "description" : "Ctcss on setting for Nfm demod." }, "highPass" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass setting for Nfm demod." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "ctcssIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected ctcss index." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -11965,24 +15840,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11996,10 +15881,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NFMMod" @@ -12008,71 +15895,99 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Nfm mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ctcssOn" : { "type" : "integer", - "description" : "Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled\n" + "description" : "Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "ctcssIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected ctcss index." }, "dcsOn" : { "type" : "integer", - "description" : "Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled\n" + "description" : "Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dcsCode" : { - "type" : "integer" + "type" : "integer", + "description" : "Dcs code setting for Nfm mod." }, "dcsPositive" : { "type" : "integer", - "description" : "Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1\n" + "description" : "Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "preEmphasisOn" : { "type" : "integer", - "description" : "Activate pre-emphasis filter: * 0 - inactive * 1 - active\n" + "description" : "Activate pre-emphasis filter: * 0 - inactive * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "bpfOn" : { "type" : "integer", - "description" : "Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive * 1 - active\n" + "description" : "Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -12080,27 +15995,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12109,10 +16035,12 @@ margin-bottom: 20px; defs.NamedEnum = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "value" : { - "type" : "integer" + "type" : "integer", + "description" : "Numeric enumeration value." } }, "description" : "Enumeration with name for values" @@ -12125,7 +16053,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ACARSDemod" @@ -12134,24 +16063,31 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "navArea" : { - "type" : "integer" + "type" : "integer", + "description" : "Nav area setting for Navtex demod." }, "filterStation" : { - "type" : "string" + "type" : "string", + "description" : "Filter station setting for Navtex demod." }, "filterType" : { - "type" : "string" + "type" : "string", + "description" : "Filter type setting for Navtex demod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12159,19 +16095,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12179,27 +16123,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12213,7 +16168,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NoiseFigure" @@ -12222,64 +16178,82 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of fft events or items." }, "sweepSpec" : { "type" : "integer", - "description" : "(0 - Range, 1 - Step, 2 - List)" + "description" : "(0 - Range, 1 - Step, 2 - List)", + "minimum" : 0, + "maximum" : 2 }, "startValue" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Start value setting for Noise figure." }, "stopValue" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Stop value setting for Noise figure." }, "steps" : { - "type" : "integer" + "type" : "integer", + "description" : "Steps setting for Noise figure." }, "step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Increment between adjacent supported values." }, "list" : { - "type" : "string" + "type" : "string", + "description" : "List setting for Noise figure." }, "setting" : { "type" : "string", "description" : "The device setting to sweep (E.g. centerFrequency or gain)" }, "visaDevice" : { - "type" : "string" + "type" : "string", + "description" : "Visa device setting for Noise figure." }, "powerOnSCPI" : { - "type" : "string" + "type" : "string", + "description" : "Power on scpi setting for Noise figure." }, "powerOffSCPI" : { - "type" : "string" + "type" : "string", + "description" : "Power off scpi setting for Noise figure." }, "powerOnCommand" : { - "type" : "string" + "type" : "string", + "description" : "Power on command setting for Noise figure." }, "powerOffCommand" : { - "type" : "string" + "type" : "string", + "description" : "Power off command setting for Noise figure." }, "powerDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power delay setting for Noise figure." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12287,24 +16261,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12314,7 +16298,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "aos" : { "$ref" : "#/definitions/PERTesterActions_aos" @@ -12343,7 +16329,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "PERTester" @@ -12351,15 +16339,19 @@ margin-bottom: 20px; defs.PERTesterSettings = { "properties" : { "packetCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of packet events or items." }, "interval" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Interval setting for Per tester." }, "start" : { "type" : "integer", - "description" : "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass" + "description" : "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass", + "minimum" : 0, + "maximum" : 2 }, "satellites" : { "type" : "array", @@ -12373,10 +16365,12 @@ margin-bottom: 20px; "description" : "Packet of data to send" }, "ignoreLeadingBytes" : { - "type" : "integer" + "type" : "integer", + "description" : "Ignore leading bytes setting for Per tester." }, "ignoreTrailingBytes" : { - "type" : "integer" + "type" : "integer", + "description" : "Ignore trailing bytes setting for Per tester." }, "txUDPAddress" : { "type" : "string", @@ -12395,28 +16389,39 @@ margin-bottom: 20px; "description" : "UDP port to receive packets via" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12426,7 +16431,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/PSK31ModActions_payload" @@ -12440,7 +16447,8 @@ margin-bottom: 20px; "type" : "string", "description" : "PSK31 content to transmit" } - } + }, + "description" : "Payload data." }; defs.PSK31ModReport = { "properties" : { @@ -12450,7 +16458,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PSK31Mod" @@ -12459,30 +16468,43 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "text" : { "type" : "string", @@ -12490,24 +16512,36 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Psk31 mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Psk31 mod." }, "prefixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable prefix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "postfixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable postfix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive text to transmit on specified UDP port" + "description" : "Whether to receive text to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12515,13 +16549,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive text to transmit via" + "description" : "UDP port to receive text to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12529,24 +16567,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12560,7 +16608,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PacketDemod" @@ -12569,7 +16618,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "mode" : { "type" : "integer", @@ -12577,7 +16627,8 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "chase" : { "type" : "integer", @@ -12589,7 +16640,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received packets to specified UDP port" + "description" : "Whether to forward received packets to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12597,22 +16650,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received packets to" + "description" : "UDP port to forward received packets to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12620,24 +16684,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12647,7 +16721,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit with current data\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit with current data\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/PacketModActions_payload" @@ -12658,18 +16734,23 @@ margin-bottom: 20px; defs.PacketModActions_payload = { "properties" : { "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "to" : { - "type" : "string" + "type" : "string", + "description" : "To action parameter." }, "via" : { - "type" : "string" + "type" : "string", + "description" : "Via action parameter." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." } - } + }, + "description" : "Payload data." }; defs.PacketModReport = { "properties" : { @@ -12679,10 +16760,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PacketMod" @@ -12691,11 +16774,14 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "modulation" : { "type" : "integer", - "description" : "Modulation mode\n * 0 - AFSK\n * 1 - FSK\n" + "description" : "Modulation mode\n * 0 - AFSK\n * 1 - FSK\n", + "minimum" : 0, + "maximum" : 1 }, "baud" : { "type" : "integer", @@ -12703,136 +16789,186 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Delay between repetitions." }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for Packet mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for Packet mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for Packet mod." }, "modulateWhileRamping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "markFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Mark frequency in Hz." }, "spaceFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Space frequency in Hz." }, "ax25PreFlags" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 pre flags setting for Packet mod." }, "ax25PostFlags" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 post flags setting for Packet mod." }, "ax25Control" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 control setting for Packet mod." }, "ax25PID" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 pid setting for Packet mod." }, "preEmphasis" : { - "type" : "integer" + "type" : "integer", + "description" : "Pre emphasis setting for Packet mod." }, "preEmphasisTau" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pre emphasis tau setting for Packet mod." }, "preEmphasisHighFreq" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pre emphasis high freq setting for Packet mod." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "bbNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Spectrum rate setting for Packet mod." }, "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "to" : { - "type" : "string" + "type" : "string", + "description" : "To setting for Packet mod." }, "via" : { - "type" : "string" + "type" : "string", + "description" : "Via setting for Packet mod." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." }, "bpf" : { - "type" : "integer" + "type" : "integer", + "description" : "Bpf setting for Packet mod." }, "bpfLowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bpf low cutoff setting for Packet mod." }, "bpfHighCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bpf high cutoff setting for Packet mod." }, "bpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Bpf taps setting for Packet mod." }, "scramble" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "polynomial" : { - "type" : "integer" + "type" : "integer", + "description" : "Polynomial setting for Packet mod." }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Packet mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Packet mod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive packets to transmit on specified UDP port" + "description" : "Whether to receive packets to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12840,13 +16976,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive packets to transmit via" + "description" : "UDP port to receive packets to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12854,24 +16994,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12885,7 +17035,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PagerDemod" @@ -12894,27 +17045,36 @@ margin-bottom: 20px; "properties" : { "decode" : { "type" : "integer", - "description" : "Decode mode\n * 0 - Standard\n * 1 - Inverted\n * 2 - Numeric\n * 3 - Alphanumeric\n * 4 - Heuristic\n" + "description" : "Decode mode\n * 0 - Standard\n * 1 - Inverted\n * 2 - Numeric\n * 3 - Alphanumeric\n * 4 - Heuristic\n", + "minimum" : 0, + "maximum" : 4 }, "reverse" : { "type" : "integer", - "description" : "Whether characters should be reversed, for right-to-left reading order\n * 0 - Straight\n * 1 - Reversed\n" + "description" : "Whether characters should be reversed, for right-to-left reading order\n * 0 - Straight\n * 1 - Reversed\n", + "minimum" : 0, + "maximum" : 1 }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12922,19 +17082,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12942,27 +17110,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12972,6 +17151,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -12982,20 +17162,27 @@ margin-bottom: 20px; defs.PerseusSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 2 }, "adcDither" : { "type" : "integer", @@ -13010,15 +17197,21 @@ margin-bottom: 20px; "description" : "Wideband mode i.e. bypass automatic RF filter (1 if active else 0)" }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "attenuator" : { "type" : "integer", @@ -13026,16 +17219,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "Perseus" @@ -13043,17 +17243,21 @@ margin-bottom: 20px; defs.PlutoSdrInputReport = { "properties" : { "adcRate" : { - "type" : "integer" + "type" : "integer", + "description" : "ADC sample rate in samples per second." }, "rssi" : { - "type" : "string" + "type" : "string", + "description" : "Received signal strength indication." }, "gainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain dB in dB." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." } }, "description" : "PlutoSDR" @@ -13061,21 +17265,27 @@ margin-bottom: 20px; defs.PlutoSdrInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lpfFIREnable" : { "type" : "integer", - "description" : "Low pass FIR filter enable (1 if enabled else 0)" + "description" : "Low pass FIR filter enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { "type" : "integer", @@ -13083,7 +17293,9 @@ margin-bottom: 20px; }, "lpfFIRlog2Decim" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfFIRGain" : { "type" : "integer", @@ -13091,25 +17303,43 @@ margin-bottom: 20px; }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwBBDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw bbdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwRFDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw rfdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwIQCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw i/q correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "lpfBW" : { "type" : "integer", @@ -13120,34 +17350,49 @@ margin-bottom: 20px; "description" : "Hardware gain" }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13155,28 +17400,36 @@ margin-bottom: 20px; defs.PlutoSdrMIMOReport = { "properties" : { "adcRate" : { - "type" : "integer" + "type" : "integer", + "description" : "ADC sample rate in samples per second." }, "dacRate" : { - "type" : "integer" + "type" : "integer", + "description" : "DAC sample rate in samples per second." }, "rx0GainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain dB in dB." }, "rx1GainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain dB in dB." }, "rssiRx0" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi rx0." }, "rssiRx1" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi rx1." }, "rssiTx0" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi tx0." }, "rssiTx1" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi tx1." } }, "description" : "PlutoSDR" @@ -13184,47 +17437,72 @@ margin-bottom: 20px; defs.PlutoSdrMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwBBDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw bbdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwRFDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw rfdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwIQCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw i/q correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "fcPosRx" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "rxTransverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive transverter mode setting for Pluto sdr MIMO." }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWRx" : { "type" : "integer", @@ -13240,49 +17518,61 @@ margin-bottom: 20px; }, "lpfRxFIRlog2Decim" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfRxFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "rx0Gain" : { "type" : "integer", "description" : "Hardware gain" }, "rx0GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain mode setting for Pluto sdr MIMO." }, "rx0AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 antenna path setting for Pluto sdr MIMO." }, "rx1Gain" : { "type" : "integer", "description" : "Hardware gain" }, "rx1GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain mode setting for Pluto sdr MIMO." }, "rx1AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 antenna path setting for Pluto sdr MIMO." }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "fcPosTx" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "txTransverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit transverter mode setting for Pluto sdr MIMO." }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "lpfBWTx" : { "type" : "integer", @@ -13298,41 +17588,53 @@ margin-bottom: 20px; }, "lpfTxFIRlog2Interp" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfTxFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "tx0Att" : { "type" : "integer", "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "tx0AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx0 antenna path setting for Pluto sdr MIMO." }, "tx1Att" : { "type" : "integer", "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "tx1AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx1 antenna path setting for Pluto sdr MIMO." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13340,14 +17642,17 @@ margin-bottom: 20px; defs.PlutoSdrOutputReport = { "properties" : { "dacRate" : { - "type" : "integer" + "type" : "integer", + "description" : "DAC sample rate in samples per second." }, "rssi" : { - "type" : "string" + "type" : "string", + "description" : "Received signal strength indication." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." } }, "description" : "PlutoSDR" @@ -13355,21 +17660,27 @@ margin-bottom: 20px; defs.PlutoSdrOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lpfFIREnable" : { "type" : "integer", - "description" : "Low pass FIR filter enable (1 if enabled else 0)" + "description" : "Low pass FIR filter enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { "type" : "integer", @@ -13377,14 +17688,17 @@ margin-bottom: 20px; }, "lpfFIRlog2Interp" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "lpfBW" : { "type" : "integer", @@ -13395,27 +17709,39 @@ margin-bottom: 20px; "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13431,18 +17757,26 @@ margin-bottom: 20px; "description" : "Index of the source used in R0 tab (GUI flavor) at startup" }, "audioType" : { - "type" : "string" + "type" : "string", + "description" : "Audio type for Preferences." }, "audioDevice" : { - "type" : "string" + "type" : "string", + "description" : "Audio device for Preferences." }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "consoleMinLogLevel" : { "type" : "integer", @@ -13450,10 +17784,13 @@ margin-bottom: 20px; }, "useLogFile" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "logFileName" : { - "type" : "string" + "type" : "string", + "description" : "Log file name." }, "fileMinLogLevel" : { "type" : "integer", @@ -13466,37 +17803,49 @@ margin-bottom: 20px; "properties" : { "presetType" : { "type" : "integer", - "description" : "See Preset::PresetType" + "description" : "Which kind of device set the preset applies to\n * 0 - receiver\n * 1 - transmitter\n * 2 - MIMO\n", + "minimum" : 0, + "maximum" : 2 }, "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Preset." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "dcOffsetCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "iqImbalanceCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "channelConfigs" : { "type" : "array", + "description" : "List of channel configs.", "items" : { "$ref" : "#/definitions/ChannelConfig" } }, "deviceConfigs" : { "type" : "array", + "description" : "List of device configs.", "items" : { "$ref" : "#/definitions/DeviceConfig" } @@ -13630,11 +17979,15 @@ margin-bottom: 20px; "properties" : { "demodStatus" : { "type" : "integer", - "description" : "Demodulation success (%)" + "description" : "Demodulation success (%)", + "minimum" : 0, + "maximum" : 100 }, "decodStatus" : { "type" : "integer", - "description" : "Decoding success (%)" + "description" : "Decoding success (%)", + "minimum" : 0, + "maximum" : 100 }, "rdsDemodAccumDB" : { "type" : "number", @@ -13680,6 +18033,7 @@ margin-bottom: 20px; }, "altFrequencies" : { "type" : "array", + "description" : "Alternative broadcast frequencies reported by RDS.", "items" : { "$ref" : "#/definitions/RDSReport_altFrequencies" } @@ -13691,7 +18045,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." } } }; @@ -13703,7 +18058,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ACARSDemod" @@ -13712,22 +18068,28 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "baudRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Serial-port baud rate in bits per second." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -13735,37 +18097,57 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "characterSet" : { - "type" : "integer" + "type" : "integer", + "description" : "Character set setting for Rtty demod." }, "suppressCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Suppress crlf setting for Rtty demod." }, "unshiftOnSpace" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable unshift on space (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "msbFirst" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable msb first (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "spaceHigh" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable space high (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "squelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch threshold in dB." }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -13773,27 +18155,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -13803,7 +18196,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/RTTYModActions_payload" @@ -13817,7 +18212,8 @@ margin-bottom: 20px; "type" : "string", "description" : "RTTY content to transmit" } - } + }, + "description" : "Payload data." }; defs.RTTYModReport = { "properties" : { @@ -13827,7 +18223,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RTTYMod" @@ -13836,7 +18233,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "baud" : { "type" : "number", @@ -13844,30 +18242,43 @@ margin-bottom: 20px; "description" : "Baud rate" }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "text" : { "type" : "string", @@ -13875,36 +18286,58 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Rtty mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Rtty mod." }, "characterSet" : { - "type" : "integer" + "type" : "integer", + "description" : "Character set setting for Rtty mod." }, "unshiftOnSpace" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable unshift on space (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "msbFirst" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable msb first (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "spaceHigh" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable space high (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "prefixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable prefix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "postfixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable postfix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive text to transmit on specified UDP port" + "description" : "Whether to receive text to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -13912,13 +18345,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive text to transmit via" + "description" : "UDP port to receive text to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -13926,24 +18363,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -13967,7 +18414,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RadioAstronomy" @@ -13976,84 +18424,110 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "integration" : { - "type" : "integer" + "type" : "integer", + "description" : "Integration setting for Radio astronomy." }, "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftWindow" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT window setting for Radio astronomy." }, "filterFreqs" : { - "type" : "string" + "type" : "string", + "description" : "Filter freqs setting for Radio astronomy." }, "starTracker" : { - "type" : "string" + "type" : "string", + "description" : "Star tracker setting for Radio astronomy." }, "rotator" : { - "type" : "string" + "type" : "string", + "description" : "Rotator setting for Radio astronomy." }, "runMode" : { "type" : "integer", - "description" : "(0 for single, 1 for continuous, 2 for sweep)" + "description" : "(0 for single, 1 for continuous, 2 for sweep)", + "minimum" : 0, + "maximum" : 2 }, "sweepStartAtTime" : { "type" : "integer", - "description" : "(0 for now, 1 for at sweepStartDateTime)" + "description" : "(0 for now, 1 for at sweepStartDateTime)", + "minimum" : 0, + "maximum" : 1 }, "sweepStartDateTime" : { - "type" : "string" + "type" : "string", + "description" : "Sweep start date time setting for Radio astronomy." }, "sweepType" : { "type" : "integer", - "description" : "(0 for Az/El, 1 for l/b, 2 for offset)" + "description" : "(0 for Az/El, 1 for l/b, 2 for offset)", + "minimum" : 0, + "maximum" : 2 }, "sweep1Start" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 start setting for Radio astronomy." }, "sweep1Stop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 stop setting for Radio astronomy." }, "sweep1Step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 step setting for Radio astronomy." }, "sweep1Delay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 delay setting for Radio astronomy." }, "sweep2Start" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 start setting for Radio astronomy." }, "sweep2Stop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 stop setting for Radio astronomy." }, "sweep2Step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 step setting for Radio astronomy." }, "sweep2Delay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 delay setting for Radio astronomy." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14061,24 +18535,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14092,13 +18576,16 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "date" : { - "type" : "string" + "type" : "string", + "description" : "Reported date." }, "time" : { - "type" : "string" + "type" : "string", + "description" : "Reported time." } }, "description" : "RadioClock" @@ -14112,7 +18599,9 @@ margin-bottom: 20px; }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for Absolute)" + "description" : "(0 for Offset, 1 for Absolute)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -14126,21 +18615,28 @@ margin-bottom: 20px; }, "threshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Threshold setting for Radio clock." }, "modulation" : { "type" : "integer", - "description" : "0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY" + "description" : "0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY", + "minimum" : 0, + "maximum" : 4 }, "timezone" : { "type" : "integer", - "description" : "0 - Broadcast, 1 - Local, 2 - UTC" + "description" : "0 - Broadcast, 1 - Local, 2 - UTC", + "minimum" : 0, + "maximum" : 2 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14148,31 +18644,134 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "RadioClock" +}; + defs.Radiosonde = { + "properties" : { + "serial" : { + "type" : "string", + "description" : "Serial number, which identifies the sonde across a flight." + }, + "type" : { + "type" : "string", + "description" : "Sonde model, such as RS41." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "altitude" : { + "type" : "number", + "format" : "float", + "description" : "Altitude in metres above mean sea level." + }, + "altitudeMax" : { + "type" : "number", + "format" : "float", + "description" : "Greatest altitude seen this flight in metres, which indicates the burst altitude." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Ground speed in km/h." + }, + "verticalRate" : { + "type" : "number", + "format" : "float", + "description" : "Ascent rate in m/s. Negative after burst." + }, + "heading" : { + "type" : "number", + "format" : "float", + "description" : "Direction of travel in degrees true." + }, + "status" : { + "type" : "string", + "description" : "Status as reported by the sonde." + }, + "pressure" : { + "type" : "number", + "format" : "float", + "description" : "Atmospheric pressure in hPa." + }, + "temperature" : { + "type" : "number", + "format" : "float", + "description" : "Air temperature in degrees Celsius." + }, + "humidity" : { + "type" : "number", + "format" : "float", + "description" : "Relative humidity as a percentage." + }, + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Transmit frequency in Hz." + }, + "burstKillStatus" : { + "type" : "string", + "description" : "Whether the burst-kill timer is armed." + }, + "burstKillTimer" : { + "type" : "string", + "description" : "Time remaining on the burst-kill timer." + }, + "lastUpdate" : { + "type" : "string", + "description" : "When any field was last updated, ISO 8601." + }, + "messages" : { + "type" : "integer", + "description" : "Frames received from this radiosonde." + } + }, + "description" : "Radiosonde heard by the Radiosonde feature" }; defs.RadiosondeDemodReport = { "properties" : { @@ -14182,7 +18781,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RadiosondeDemod" @@ -14195,23 +18795,29 @@ margin-bottom: 20px; }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "correlationThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum correlation score required to accept a frame preamble." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -14219,22 +18825,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14242,67 +18859,111 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "RadiosondeDemod" +}; + defs.RadiosondeReport = { + "properties" : { + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "radiosondeCount" : { + "type" : "integer", + "description" : "Number of radiosondes currently held." + }, + "radiosondes" : { + "type" : "array", + "description" : "The radiosondes heard.", + "items" : { + "$ref" : "#/definitions/Radiosonde" + } + } + }, + "description" : "Radiosondes heard by the Radiosonde feature, which collects the decoded frames of every radiosonde demodulator in the instance. A field is present only once a frame carrying it has been received.\n" }; defs.RadiosondeSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "radiosondesColumnIndexes" : { "type" : "array", + "description" : "List of radiosondes column indexes.", "items" : { "type" : "integer" } }, "radiosondesColumnSizes" : { "type" : "array", + "description" : "List of radiosondes column sizes.", "items" : { "type" : "integer" } @@ -14313,17 +18974,21 @@ margin-bottom: 20px; defs.Range = { "properties" : { "min" : { - "type" : "integer" + "type" : "integer", + "description" : "Minimum value of the range." }, "max" : { - "type" : "integer" + "type" : "integer", + "description" : "Maximum value of the range." }, "step" : { - "type" : "integer" + "type" : "integer", + "description" : "Increment between adjacent supported values." }, "scale" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Scale factor applied to the value." } }, "description" : "An arbitrary range of integer values" @@ -14332,15 +18997,18 @@ margin-bottom: 20px; "properties" : { "min" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum value of the range." }, "max" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Maximum value of the range." }, "step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Increment between adjacent supported values." } }, "description" : "An arbitrary range of floating point values" @@ -14349,10 +19017,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "bufferRWBalance" : { "type" : "integer", @@ -14376,45 +19046,70 @@ margin-bottom: 20px; defs.RemoteInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "apiAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the API endpoint." }, "apiPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the API endpoint.", + "minimum" : 1, + "maximum" : 65535 }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "multicastAddress" : { - "type" : "string" + "type" : "string", + "description" : "IP multicast group address." }, "multicastJoin" : { "type" : "integer", - "description" : "Join multicast group * 0 - leave group * 1 - join group\n" + "description" : "Join multicast group * 0 - leave group * 1 - join group\n", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteInput" @@ -14423,10 +19118,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "queueLength" : { "type" : "integer", @@ -14462,26 +19159,36 @@ margin-bottom: 20px; defs.RemoteOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "nbFECBlocks" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb fec blocks setting for Remote output." }, "nbTxBytes" : { "type" : "integer", "description" : "Number of bytes in a transmitted I or Q sample\n * 1\n * 2\n * 4\n" }, "apiAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the API endpoint." }, "apiPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the API endpoint.", + "minimum" : 1, + "maximum" : 65535 }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "deviceIndex" : { "type" : "integer", @@ -14493,16 +19200,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteOutput" @@ -14527,19 +19241,25 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Receiving USB data port" + "description" : "Receiving USB data port", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "streamIndex" : { "type" : "integer", @@ -14547,24 +19267,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14636,19 +19366,25 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Remote USB data port" + "description" : "Remote USB data port", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "streamIndex" : { "type" : "integer", @@ -14656,24 +19392,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14682,19 +19428,27 @@ margin-bottom: 20px; defs.RemoteTCPInputReport = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Altitude above mean sea level." } }, "description" : "RemoteTCPInput" @@ -14702,69 +19456,102 @@ margin-bottom: 20px; defs.RemoteTCPInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "directSampling" : { - "type" : "integer" + "type" : "integer", + "description" : "Direct sampling setting for Remote TCP input." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bw in Hz." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "channelGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel gain setting for Remote TCP input." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "channelDecimation" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel decimation setting for Remote TCP input." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "overrideRemoteSettings" : { - "type" : "integer" + "type" : "integer", + "description" : "Override remote settings setting for Remote TCP input." }, "preFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Pre fill setting for Remote TCP input." }, "protocol" : { "type" : "string", @@ -14772,16 +19559,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteTCPInput" @@ -14789,17 +19583,21 @@ margin-bottom: 20px; defs.RemoteTCPSinkSettings = { "properties" : { "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataAddress" : { "type" : "string", @@ -14807,16 +19605,21 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Receiving TCP data port" + "description" : "Receiving TCP data port", + "minimum" : 1, + "maximum" : 65535 }, "protocol" : { - "type" : "integer" + "type" : "integer", + "description" : "Protocol setting for Remote TCP sink." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14824,24 +19627,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14851,7 +19664,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "RigCtl server actions" @@ -14860,7 +19675,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "RigCtl server report" @@ -14869,43 +19686,60 @@ margin-bottom: 20px; "properties" : { "enabled" : { "type" : "integer", - "description" : "Enable RigCtl server\n * 1 - enabled\n * 0 - disabled\n" + "description" : "Enable RigCtl server\n * 1 - enabled\n * 0 - disabled\n", + "minimum" : 0, + "maximum" : 1 }, "rigCtlPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Rig ctl port." }, "maxFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Max frequency offset in Hz." }, "deviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected device index." }, "channelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected channel index." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14914,11 +19748,14 @@ margin-bottom: 20px; defs.RollupChildState = { "properties" : { "objectName" : { - "type" : "string" + "type" : "string", + "description" : "Object name for Rollup child state." }, "isHidden" : { "type" : "integer", - "description" : "Boolean - child hidden state\n * 0 - visible\n * 1 - hidden\n" + "description" : "Boolean - child hidden state\n * 0 - visible\n * 1 - hidden\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Rollup widget child state" @@ -14926,10 +19763,12 @@ margin-bottom: 20px; defs.RollupState = { "properties" : { "version" : { - "type" : "integer" + "type" : "integer", + "description" : "Version for Rollup state." }, "childrenStates" : { "type" : "array", + "description" : "List of children states.", "items" : { "$ref" : "#/definitions/RollupChildState" } @@ -14941,12 +19780,14 @@ margin-bottom: 20px; "properties" : { "gains" : { "type" : "array", + "description" : "List of gains.", "items" : { "$ref" : "#/definitions/Gain" } }, "tunerType" : { - "type" : "string" + "type" : "string", + "description" : "Reported tuner type." } }, "description" : "RTLSDR" @@ -14954,75 +19795,116 @@ margin-bottom: 20px; defs.RtlSdrSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "RTL-SDR device I/Q sample rate in samples per second before software decimation. The baseband sample rate delivered to channels is devSampleRate / 2^log2Decim.\n" }, "lowSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Use the RTL-SDR low sample-rate range (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner gain in tenths of a dB, so 496 means 49.6 dB. Only the discrete values the tuner supports can be used; they are listed in the gains field of RtlSdrReport, which must be read from the device report before setting this. Ignored unless agc is disabled.\n" }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor. The baseband sample rate delivered to channels is devSampleRate / 2^log2Decim and must be high enough for every channel's RF bandwidth. For example, broadcast FM with 180 kHz RF bandwidth should use at least 240 kS/s (256 kS/s is recommended); at 1.024 MS/s set log2Decim to 2, not 4.\n", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "noModMode" : { - "type" : "integer" + "type" : "integer", + "description" : "No mod mode setting for Rtl sdr." }, "offsetTuning" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable tuner offset tuning (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "biasTee" : { "type" : "integer", - "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n" + "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RTLSDR" @@ -15031,24 +19913,28 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } }, "bandwidths" : { "type" : "array", + "description" : "Supported bandwidths in Hz.", "items" : { "$ref" : "#/definitions/Bandwidth" } }, "intermediateFrequencies" : { "type" : "array", + "description" : "List of intermediate frequencies.", "items" : { "$ref" : "#/definitions/Frequency" } }, "frequencyBands" : { "type" : "array", + "description" : "List of frequency bands.", "items" : { "$ref" : "#/definitions/FrequencyBand" } @@ -15059,71 +19945,101 @@ margin-bottom: 20px; defs.SDRPlaySettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "tunerGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner gain setting for Sdr play." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "frequencyBandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected frequency band index." }, "ifFrequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if frequency index." }, "bandwidthIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bandwidth index." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "tunerGainMode" : { "type" : "integer", "description" : "1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain" }, "lnaOn" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA on setting for Sdr play." }, "mixerAmpOn" : { - "type" : "integer" + "type" : "integer", + "description" : "Mixer amp on setting for Sdr play." }, "basebandGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Baseband gain setting for Sdr play." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SDRplay1" @@ -15136,12 +20052,14 @@ margin-bottom: 20px; }, "bandwidths" : { "type" : "array", + "description" : "Supported bandwidths in Hz.", "items" : { "$ref" : "#/definitions/Bandwidth" } }, "intermediateFrequencies" : { "type" : "array", + "description" : "List of intermediate frequencies.", "items" : { "$ref" : "#/definitions/Frequency" } @@ -15152,94 +20070,134 @@ margin-bottom: 20px; defs.SDRPlayV3Settings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "ifFrequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if frequency index." }, "bandwidthIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bandwidth index." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna index." }, "lnaGain" : { "type" : "integer", "description" : "Gain in dB, as an alternative to lnaIndex setting" }, "ifAGC" : { - "type" : "integer" + "type" : "integer", + "description" : "IF agc setting for Sdr play v3." }, "ifGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Intermediate-frequency gain setting." }, "amNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "Am notch setting for Sdr play v3." }, "fmNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "FM notch setting for Sdr play v3." }, "dabNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "Dab notch setting for Sdr play v3." }, "extRef" : { - "type" : "integer" + "type" : "integer", + "description" : "Ext ref setting for Sdr play v3." }, "tuner" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner setting for Sdr play v3." }, "antenna" : { - "type" : "integer" + "type" : "integer", + "description" : "Antenna setting for Sdr play v3." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { "type" : "integer", - "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n" + "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SDRplayV3" @@ -15248,43 +20206,59 @@ margin-bottom: 20px; "properties" : { "period" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Period setting for Sid." }, "autosave" : { - "type" : "integer" + "type" : "integer", + "description" : "Autosave setting for Sid." }, "autoload" : { - "type" : "integer" + "type" : "integer", + "description" : "Autoload setting for Sid." }, "filename" : { - "type" : "integer" + "type" : "string", + "description" : "File that measurements are written to and read back from when autosave or autoload is enabled.\n" }, "autosavePeriod" : { - "type" : "integer" + "type" : "integer", + "description" : "Autosave period setting for Sid." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15302,10 +20276,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "SSBDemod" @@ -15314,29 +20290,37 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "filterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected filter index." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioBinaural" : { "type" : "integer", @@ -15352,11 +20336,15 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "agcClamping" : { "type" : "integer", @@ -15376,11 +20364,15 @@ margin-bottom: 20px; }, "dnr" : { "type" : "integer", - "description" : "Toggle noise reduction:\n * 0 - Noise reduction off\n * 1 - Noise reduction on\n" + "description" : "Toggle noise reduction:\n * 0 - Noise reduction off\n * 1 - Noise reduction on\n", + "minimum" : 0, + "maximum" : 1 }, "dnrScheme" : { "type" : "integer", - "description" : "Noise reduction scheme:\n * 0 - Average of magnitudes\n * 1 - Average and standard deviation of magnitudes\n * 2 - Magnitude maxima (peaks)\n" + "description" : "Noise reduction scheme:\n * 0 - Average of magnitudes\n * 1 - Average and standard deviation of magnitudes\n * 2 - Magnitude maxima (peaks)\n", + "minimum" : 0, + "maximum" : 2 }, "dnrAboveAvgFactor" : { "type" : "number", @@ -15399,16 +20391,21 @@ margin-bottom: 20px; "dnrAlpha" : { "type" : "number", "format" : "float", - "description" : "Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1." + "description" : "Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1.", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -15416,27 +20413,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15450,10 +20458,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "SSBMod" @@ -15462,65 +20472,90 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "usb" : { - "type" : "integer" + "type" : "integer", + "description" : "USB setting for Ssb mod." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Ssb mod." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioBinaural" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio binaural setting for Ssb mod." }, "audioFlipChannels" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio flip channels setting for Ssb mod." }, "dsb" : { - "type" : "integer" + "type" : "integer", + "description" : "Dsb setting for Ssb mod." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "cmpPreGainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Cmp pre gain dB in dB." }, "cmpThresholdDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Cmp threshold dB in dB." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -15528,30 +20563,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15560,7 +20607,8 @@ margin-bottom: 20px; defs.SampleRate = { "properties" : { "rate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "A sample rate expressed in samples per second (S/s)" @@ -15648,15 +20696,21 @@ margin-bottom: 20px; }, "startOnAOS" : { "type" : "integer", - "description" : "Start acquisition on AOS (1 for yes, 0 for no)" + "description" : "Start acquisition on AOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "stopOnLOS" : { "type" : "integer", - "description" : "Stop acquisition on LOS (1 for yes, 0 for no)" + "description" : "Stop acquisition on LOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "startStopFileSinks" : { "type" : "integer", - "description" : "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)" + "description" : "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -15710,17 +20764,22 @@ margin-bottom: 20px; defs.SatelliteState = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude of satellite in degrees" + "description" : "Latitude of satellite in degrees", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude of satellite in degrees" + "description" : "Longitude of satellite in degrees", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -15759,6 +20818,7 @@ margin-bottom: 20px; }, "passes" : { "type" : "array", + "description" : "List of passes.", "items" : { "$ref" : "#/definitions/SatellitePass" } @@ -15769,7 +20829,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Satellite Tracker actions" @@ -15778,18 +20840,23 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "targetAzimuth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target azimuth in degrees clockwise from north." }, "targetElevation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target elevation in degrees above the horizon." }, "satelliteState" : { "type" : "array", + "description" : "List of satellite state.", "items" : { "$ref" : "#/definitions/SatelliteState" } @@ -15802,12 +20869,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of antenna location" + "description" : "Latitude in decimal degrees (North positive) of antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of antenna location" + "description" : "Longitude in decimal degrees (East positive) of antenna location", + "minimum" : -180, + "maximum" : 180 }, "heightAboveSeaLevel" : { "type" : "number", @@ -15897,11 +20968,15 @@ margin-bottom: 20px; }, "drawOnMap" : { "type" : "integer", - "description" : "Draw satellites on the Map (1 for yes, 0 for no)" + "description" : "Draw satellites on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "autoTarget" : { "type" : "integer", - "description" : "Automatically select target on AOS (1 for yes, 0 for no)" + "description" : "Automatically select target on AOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "aosSpeech" : { "type" : "string", @@ -15928,35 +21003,48 @@ margin-bottom: 20px; }, "azimuthOffset" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Azimuth offset setting for Satellite tracker." }, "elevationOffset" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Elevation offset setting for Satellite tracker." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15966,11 +21054,15 @@ margin-bottom: 20px; "properties" : { "playTrack" : { "type" : "integer", - "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n" + "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n", + "minimum" : 0, + "maximum" : 1 }, "playRecord" : { "type" : "integer", - "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n" + "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n", + "minimum" : 0, + "maximum" : 1 }, "seekTrack" : { "type" : "integer", @@ -15999,26 +21091,37 @@ margin-bottom: 20px; }, "sampleFormat" : { "type" : "integer", - "description" : "Sample format * 0 - integer * 1 - float\n" + "description" : "Sample format * 0 - integer * 1 - float\n", + "minimum" : 0, + "maximum" : 1 }, "sampleSigned" : { "type" : "integer", - "description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n" + "description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n", + "minimum" : 0, + "maximum" : 1 }, "sampleSwapIQ" : { "type" : "integer", - "description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n" + "description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n", + "minimum" : 0, + "maximum" : 1 }, "crcStatus" : { "type" : "integer", - "description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n" + "description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n", + "minimum" : 0, + "maximum" : 2 }, "totalBytesStatus" : { "type" : "integer", - "description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n" + "description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n", + "minimum" : 0, + "maximum" : 1 }, "captures" : { "type" : "array", + "description" : "List of captures.", "items" : { "$ref" : "#/definitions/Capture" } @@ -16063,7 +21166,8 @@ margin-bottom: 20px; defs.SigMFFileInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -16083,16 +21187,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SigMFFileInput" @@ -16101,7 +21212,9 @@ margin-bottom: 20px; "properties" : { "record" : { "type" : "integer", - "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n" + "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "SigMFFileSink" @@ -16110,7 +21223,9 @@ margin-bottom: 20px; "properties" : { "spectrumSquelch" : { "type" : "integer", - "description" : "Spectrum squelch status * 0 - closed * 1 - open\n" + "description" : "Spectrum squelch status * 0 - closed * 1 - open\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumMax" : { "type" : "number", @@ -16118,14 +21233,18 @@ margin-bottom: 20px; "description" : "Current spectrum max in squared magnitude (power)" }, "sinkSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate accepted by the sink in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "recording" : { "type" : "integer", - "description" : "Recording status * 0 - not recording * 1 - recording\n" + "description" : "Recording status * 0 - not recording * 1 - recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordTimeMs" : { "type" : "integer", @@ -16146,24 +21265,30 @@ margin-bottom: 20px; defs.SigMFFileSinkSettings = { "properties" : { "inputFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fileRecordName" : { "type" : "string", "description" : "full path of the meta file" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "spectrumSquelchMode" : { "type" : "integer", - "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n" + "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumSquelch" : { "type" : "number", @@ -16180,7 +21305,9 @@ margin-bottom: 20px; }, "squelchRecordingEnable" : { "type" : "integer", - "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n" + "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "log2RecordSampleSize" : { "type" : "integer", @@ -16192,27 +21319,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16222,11 +21360,15 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "ptt" : { "type" : "integer", - "description" : "PTT action\n * 0 - release\n * 1 - engage\n" + "description" : "PTT action\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Simple PTT actions" @@ -16235,11 +21377,15 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "ptt" : { "type" : "integer", - "description" : "PTT status\n * 0 - released\n * 1 - engaged\n" + "description" : "PTT status\n * 0 - released\n * 1 - engaged\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Simple PTT report" @@ -16247,10 +21393,12 @@ margin-bottom: 20px; defs.SimplePTTSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "rxDeviceSetIndex" : { "type" : "integer", @@ -16270,11 +21418,15 @@ margin-bottom: 20px; }, "vox" : { "type" : "integer", - "description" : "Activate vox system\n * 0 - not active\n * 1 - active\n" + "description" : "Activate vox system\n * 0 - not active\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "voxEnable" : { "type" : "integer", - "description" : "Allow vox to control PTT\n * 0 - vox does not control PTT\n * 1 - vox controls PTT\n" + "description" : "Allow vox to control PTT\n * 0 - vox does not control PTT\n * 1 - vox controls PTT\n", + "minimum" : 0, + "maximum" : 1 }, "voxLevel" : { "type" : "integer", @@ -16285,15 +21437,20 @@ margin-bottom: 20px; "description" : "Vox hold timeout in milliseconds" }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "gpioControl" : { "type" : "integer", - "description" : "GPIO control\n * 0 - No GPIO control\n * 1 - Rx side controls GPIO\n * 2 - Tx side controls GPIO\n" + "description" : "GPIO control\n * 0 - No GPIO control\n * 1 - Rx side controls GPIO\n * 2 - Tx side controls GPIO\n", + "minimum" : 0, + "maximum" : 2 }, "rx2txGPIOEnable" : { "type" : "integer", - "description" : "Enable Rx to Tx GPIO control\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Rx to Tx GPIO control\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "rx2txGPIOMask" : { "type" : "integer", @@ -16307,7 +21464,9 @@ margin-bottom: 20px; }, "rx2txCommandEnable" : { "type" : "integer", - "description" : "Enable Rx to Tx command\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Rx to Tx command\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "rx2txCommand" : { "type" : "string", @@ -16315,7 +21474,9 @@ margin-bottom: 20px; }, "tx2rxGPIOEnable" : { "type" : "integer", - "description" : "Enable Tx to Rx GPIO control\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Tx to Rx GPIO control\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "tx2rxGPIOMask" : { "type" : "integer", @@ -16329,7 +21490,9 @@ margin-bottom: 20px; }, "tx2rxCommandEnable" : { "type" : "integer", - "description" : "Enable Tx to Rx command\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Tx to Rx command\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "tx2rxCommand" : { "type" : "string", @@ -16337,21 +21500,30 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16385,12 +21557,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16419,23 +21595,33 @@ margin-bottom: 20px; "properties" : { "displayNames" : { "type" : "integer", - "description" : "Display names on the sky map (1 for yes, 0 for no)" + "description" : "Display names on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayConstellations" : { "type" : "integer", - "description" : "Display constellations on the sky map (1 for yes, 0 for no)" + "description" : "Display constellations on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayReticle" : { "type" : "integer", - "description" : "Display reticle on the sky map (1 for yes, 0 for no)" + "description" : "Display reticle on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayGrid" : { "type" : "integer", - "description" : "Display grid on the sky map (1 for yes, 0 for no)" + "description" : "Display grid on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayAntennaFoV" : { "type" : "integer", - "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "map" : { "type" : "string", @@ -16446,7 +21632,8 @@ margin-bottom: 20px; "description" : "Name of background image set" }, "projection" : { - "type" : "string" + "type" : "string", + "description" : "Projection setting for Sky map." }, "source" : { "type" : "string", @@ -16459,12 +21646,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16479,31 +21670,44 @@ margin-bottom: 20px; "useMyPosition" : { "type" : "number", "format" : "float", - "description" : "Use My Position instead of latitude/longitude settings" + "description" : "Use My Position instead of latitude/longitude settings", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16524,12 +21728,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16563,12 +21771,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16590,10 +21802,12 @@ margin-bottom: 20px; defs.SoapySDRFrequencySetting = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "ranges" : { "type" : "array", + "description" : "List of ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } @@ -16604,9 +21818,11 @@ margin-bottom: 20px; defs.SoapySDRGainSetting = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "range" : { + "description" : "Range configuration for Definitions.", "$ref" : "#/definitions/RangeFloat" } }, @@ -16615,107 +21831,144 @@ margin-bottom: 20px; defs.SoapySDRInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "softDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "softIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "antenna" : { - "type" : "string" + "type" : "string", + "description" : "Antenna setting for Soapy sdr input." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "tunableElements" : { "type" : "array", + "description" : "List of tunable elements.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "individualGains" : { "type" : "array", + "description" : "List of individual gains.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "autoGain" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "dcCorrection" : { + "description" : "Enable DC-offset correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "iqCorrection" : { + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "streamArgSettings" : { "type" : "array", + "description" : "List of stream arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "deviceArgSettings" : { "type" : "array", + "description" : "List of device arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SoapySDR" @@ -16723,92 +21976,122 @@ margin-bottom: 20px; defs.SoapySDROutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "transverterMode" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "antenna" : { - "type" : "string" + "type" : "string", + "description" : "Antenna setting for Soapy sdr output." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "tunableElements" : { "type" : "array", + "description" : "List of tunable elements.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "individualGains" : { "type" : "array", + "description" : "List of individual gains.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "autoGain" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "dcCorrection" : { + "description" : "Enable DC-offset correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "iqCorrection" : { + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "streamArgSettings" : { "type" : "array", + "description" : "List of stream arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "deviceArgSettings" : { "type" : "array", + "description" : "List of device arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SoapySDR" @@ -16817,86 +22100,141 @@ margin-bottom: 20px; "properties" : { "deviceSettingsArgs" : { "type" : "array", + "description" : "List of device settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "streamSettingsArgs" : { "type" : "array", + "description" : "List of stream settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "hasDCAutoCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasDCOffsetValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasIQBalanceValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasFrequencyCorrectionValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "antennas" : { "type" : "array", + "description" : "List of antennas.", "items" : { "type" : "string" } }, "hasAGC" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "gainRange" : { + "description" : "Gain range data for Soapy sdr.", "$ref" : "#/definitions/RangeFloat" }, "gainSettings" : { "type" : "array", + "description" : "List of gain settings.", "items" : { "$ref" : "#/definitions/SoapySDRGainSetting" } }, "frequencySettings" : { "type" : "array", + "description" : "List of frequency settings.", "items" : { "$ref" : "#/definitions/SoapySDRFrequencySetting" } }, "frequencySettingsArgs" : { "type" : "array", + "description" : "List of frequency settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "ratesRanges" : { "type" : "array", + "description" : "List of rates ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } }, "bandwidthsRanges" : { "type" : "array", + "description" : "List of bandwidths ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } } }, "description" : "SoapySDR" +}; + defs.SpectrumActions = { + "properties" : { + "autoscale" : { + "type" : "integer", + "description" : "Set the reference level and range from the spectrum currently displayed, as the autoscale button does. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "clearSpectrum" : { + "type" : "integer", + "description" : "Discard the accumulated histogram and max hold traces, as the clear button does. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "resetMeasurements" : { + "type" : "integer", + "description" : "Discard the accumulated measurement statistics, so the minimum, maximum and mean columns start again. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "freeze" : { + "type" : "integer", + "description" : "Stop or resume spectrum processing. Unlike the others this acts on the spectrum itself rather than its display, so it works without a GUI (1 to freeze, 0 to resume).\n", + "minimum" : 0, + "maximum" : 1 + }, + "gotoMarker" : { + "type" : "integer", + "description" : "Retune the device to the annotation marker at this index, counting from 0, as choosing it in the goto list does. Needs a running GUI.\n", + "minimum" : 0 + } + }, + "description" : "Actions on the main spectrum of a device set" }; defs.SpectrumAnnotationMarker = { "properties" : { "startFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Start frequency in Hz." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "markerColor" : { "type" : "integer", @@ -16904,7 +22242,13 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "SpectrumAnnotationMarker::ShowState - Marker display state\n * 0 - Hidden\n * 1 - Only top marker visible\n * 2 - Fully visible with text and full sized limits\n" + "description" : "SpectrumAnnotationMarker::ShowState - Marker display state\n * 0 - Hidden\n * 1 - Only top marker visible\n * 2 - Fully visible with text and full sized limits\n * 3 - Text only\n", + "minimum" : 0, + "maximum" : 3 + }, + "text" : { + "type" : "string", + "description" : "Text displayed against the marker." } }, "description" : "Spectrum annotation marker settings" @@ -16913,15 +22257,18 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency in Hz." }, "powerRelativeReference" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power relative reference for Spectrum calibration point." }, "powerAbsoluteReference" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power absolute reference for Spectrum calibration point." } }, "description" : "Spectrum calibration point settings" @@ -16930,7 +22277,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." }, "power" : { "type" : "number", @@ -16939,7 +22287,9 @@ margin-bottom: 20px; }, "markerType" : { "type" : "integer", - "description" : "Marker type\n * 0 - Fixed power\n * 1 - Current power\n * 2 - Max power\n" + "description" : "Marker type\n * 0 - Fixed power\n * 1 - Current power\n * 2 - Max power\n", + "minimum" : 0, + "maximum" : 2 }, "markerColor" : { "type" : "integer", @@ -16947,10 +22297,87 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n" + "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Spectrum histogram marker settings" +}; + defs.SpectrumHistorySignal = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the strongest bin in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Lower edge in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Upper edge in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width in Hz, to the bin." + }, + "peakDb" : { + "type" : "number", + "format" : "float" + }, + "dutyCycle" : { + "type" : "number", + "format" : "float", + "description" : "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + }, + "firstSeen" : { + "type" : "string", + "description" : "Time of the first row it was up in, ISO 8601." + }, + "lastSeen" : { + "type" : "string", + "description" : "Time of the last row it was up in, ISO 8601." + } + }, + "description" : "A signal found in the spectrum history" +}; + defs.SpectrumMemorySettings = { + "properties" : { + "display" : { + "type" : "integer", + "description" : "Display this saved spectrum memory (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "color" : { + "type" : "integer", + "description" : "Display colour encoded as an RGB integer." + }, + "label" : { + "type" : "string", + "description" : "User-visible label for this saved spectrum memory." + } + }, + "description" : "Display settings for one saved spectrum memory. The captured spectrum samples are not transferred through settings APIs." +}; + defs.SpectrumPeak = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the peak in Hz." + }, + "power" : { + "type" : "number", + "format" : "float", + "description" : "Power of the peak in dB." + } + }, + "description" : "One peak found in the spectrum" }; defs.SpectrumServer = { "properties" : { @@ -16988,7 +22415,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." }, "time" : { "type" : "number", @@ -17001,7 +22429,9 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n" + "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Spectrum waterfall marker settings" @@ -17010,7 +22440,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Star Tracker actions" @@ -17018,7 +22450,8 @@ margin-bottom: 20px; defs.StarTrackerDisplayLoSSettings = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "b" : { "type" : "number", @@ -17041,7 +22474,8 @@ margin-bottom: 20px; defs.StarTrackerDisplayLoSSettings_2 = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "b" : { "type" : "number", @@ -17103,7 +22537,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "RigCtl server report" @@ -17155,12 +22591,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "dateTime" : { "type" : "string", @@ -17202,7 +22642,9 @@ margin-bottom: 20px; }, "stellariumServerEnabled" : { "type" : "integer", - "description" : "Enable Stellarium server (1 for yes, 0 for no)" + "description" : "Enable Stellarium server (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "stellariumPort" : { "type" : "integer", @@ -17219,39 +22661,56 @@ margin-bottom: 20px; }, "drawSunOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "drawMoonOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "drawStarOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -17435,20 +22894,28 @@ margin-bottom: 20px; defs.TestMISettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "streams" : { "type" : "array", @@ -17463,18 +22930,24 @@ margin-bottom: 20px; defs.TestMOSyncSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Sample rate in samples per second." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp.", + "minimum" : 0, + "maximum" : 6 }, "fcPosTx" : { "type" : "integer", @@ -17491,56 +22964,72 @@ margin-bottom: 20px; }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "sampleSizeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample size index." }, "amplitudeBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Amplitude bits for Definitions." }, "autoCorrOptions" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto corr options for Definitions." }, "modulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation for Definitions." }, "modulationTone" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation tone for Definitions." }, "amModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Am modulation for Definitions." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "dcFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dc factor for Definitions." }, "iFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "I factor for Definitions." }, "qFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Q factor for Definitions." }, "phaseImbalance" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Phase imbalance for Definitions." } }, "description" : "TestMiStreamSettings" @@ -17548,73 +23037,108 @@ margin-bottom: 20px; defs.TestSourceSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "sampleSizeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample size index." }, "amplitudeBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Amplitude bits setting for Test source." }, "autoCorrOptions" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto corr options setting for Test source." }, "modulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation setting for Test source." }, "modulationTone" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation tone setting for Test source." }, "amModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Am modulation setting for Test source." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "dcFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dc factor setting for Test source." }, "iFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "I factor setting for Test source." }, "qFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Q factor setting for Test source." }, "phaseImbalance" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Phase imbalance setting for Test source." + }, + "period" : { + "type" : "integer", + "description" : "Period of the P1 and P2 patterns in samples.", + "minimum" : 1 + }, + "dutyCycle" : { + "type" : "integer", + "description" : "Percentage of the period the P2 pattern is high.", + "minimum" : 0, + "maximum" : 100 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "TestSource" @@ -17627,7 +23151,9 @@ margin-bottom: 20px; }, "projectionType" : { "type" : "integer", - "description" : "Complex to real projection type. See Projector::ProjectionType" + "description" : "Projection applied to turn the complex signal into a real trace\n * 0 - real part\n * 1 - imaginary part\n * 2 - magnitude, linear\n * 3 - squared magnitude (power), linear\n * 4 - time derivative of the squared magnitude\n * 5 - squared magnitude in dB\n * 6 - phase\n * 7 - direction of arrival from phase, positive branch\n * 8 - direction of arrival from phase, negative branch\n * 9 - phase derivative, instantaneous frequency\n * 10 - BPSK phase comparator\n * 11 - QPSK phase comparator\n * 12 - 8-PSK phase comparator\n * 13 - 16-PSK phase comparator\n", + "minimum" : 0, + "maximum" : 13 }, "inputIndex" : { "type" : "integer", @@ -17702,7 +23228,9 @@ margin-bottom: 20px; }, "projectionType" : { "type" : "integer", - "description" : "Complex to real projection type. See Projector::ProjectionType" + "description" : "Projection applied to turn the complex signal into a real trace\n * 0 - real part\n * 1 - imaginary part\n * 2 - magnitude, linear\n * 3 - squared magnitude (power), linear\n * 4 - time derivative of the squared magnitude\n * 5 - squared magnitude in dB\n * 6 - phase\n * 7 - direction of arrival from phase, positive branch\n * 8 - direction of arrival from phase, negative branch\n * 9 - phase derivative, instantaneous frequency\n * 10 - BPSK phase comparator\n * 11 - QPSK phase comparator\n * 12 - 8-PSK phase comparator\n * 13 - 16-PSK phase comparator\n", + "minimum" : 0, + "maximum" : 13 }, "inputIndex" : { "type" : "integer", @@ -17714,10 +23242,12 @@ margin-bottom: 20px; "description" : "Level in real units" }, "triggerLevelCoarse" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger level coarse for Trigger data." }, "triggerLevelFine" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger level fine for Trigger data." }, "triggerPositiveEdge" : { "type" : "integer", @@ -17741,10 +23271,12 @@ margin-bottom: 20px; "description" : "Trigger delay as a multiplier of trace length" }, "triggerDelayCoarse" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger delay coarse for Trigger data." }, "triggerDelayFine" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger delay fine for Trigger data." }, "triggerRepeat" : { "type" : "integer", @@ -17789,7 +23321,8 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "inputSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Input sample rate in samples per second." } }, "description" : "UDPSink" @@ -17798,29 +23331,37 @@ margin-bottom: 20px; "properties" : { "outputSampleRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Output sample rate in samples per second." }, "sampleFormat" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample format setting for UDP sink." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "channelMute" : { "type" : "integer", - "description" : "channel mute (1 if muted else 0)" + "description" : "channel mute (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "squelchDB" : { "type" : "integer", @@ -17832,22 +23373,31 @@ margin-bottom: 20px; }, "squelchEnabled" : { "type" : "integer", - "description" : "squelch enable (1 if enabled else 0)" + "description" : "squelch enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC enable (1 if enabled else 0)" + "description" : "AGC enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "audioActive" : { "type" : "integer", - "description" : "Audio return enable (1 if enabled else 0)" + "description" : "Audio return enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "audioStereo" : { "type" : "integer", - "description" : "Audio return stereo (1 if stereo else 0)" + "description" : "Audio return stereo (1 if stereo else 0)", + "minimum" : 0, + "maximum" : 1 }, "volume" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio volume multiplier." }, "udpAddress" : { "type" : "string", @@ -17856,7 +23406,9 @@ margin-bottom: 20px; "udpPort" : { "type" : "integer", "format" : "uint16", - "description" : "destination UDP port (remote)" + "description" : "destination UDP port (remote)", + "minimum" : 1, + "maximum" : 65535 }, "audioPort" : { "type" : "integer", @@ -17864,10 +23416,12 @@ margin-bottom: 20px; "description" : "audio return UDP port (local)" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -17875,27 +23429,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -17922,7 +23487,8 @@ margin-bottom: 20px; "description" : "buffer R/W balance indicator" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "UDPSource" @@ -17930,78 +23496,106 @@ margin-bottom: 20px; defs.UDPSourceSettings = { "properties" : { "sampleFormat" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample format setting for UDP source." }, "inputSampleRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Input sample rate in samples per second." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "amModFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Am mod factor setting for UDP source." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "gainIn" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain in setting for UDP source." }, "gainOut" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain out setting for UDP source." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "squelchGate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch gate duration." }, "squelchEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable squelch (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "autoRWBalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto rw balance setting for UDP source." }, "stereoInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Stereo input setting for UDP source." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { "type" : "integer", - "format" : "uint16" + "format" : "uint16", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 }, "multicastAddress" : { - "type" : "string" + "type" : "string", + "description" : "IP multicast group address." }, "multicastJoin" : { "type" : "integer", - "description" : "Join multicast group * 0 - leave group * 1 - join group\n" + "description" : "Join multicast group * 0 - leave group * 1 - join group\n", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -18009,27 +23603,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18043,13 +23648,17 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "timeoutCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of timeout events or items." } }, "description" : "USRP" @@ -18057,70 +23666,100 @@ margin-bottom: 20px; defs.USRPInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "loOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "LO offset setting for Usrp input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "antennaPath" : { - "type" : "string" + "type" : "string", + "description" : "Selected RF antenna path." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "gainMode" : { "type" : "integer", - "description" : "0 for auto, 1 for manual" + "description" : "0 for auto, 1 for manual", + "minimum" : 0, + "maximum" : 1 }, "clockSource" : { - "type" : "string" + "type" : "string", + "description" : "Clock source setting for Usrp input." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "USRP" @@ -18133,13 +23772,17 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." } }, "description" : "USRP" @@ -18147,60 +23790,82 @@ margin-bottom: 20px; defs.USRPOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "loOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "LO offset setting for Usrp output." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "antennaPath" : { - "type" : "string" + "type" : "string", + "description" : "Selected RF antenna path." }, "clockSource" : { - "type" : "string" + "type" : "string", + "description" : "Clock source setting for Usrp output." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "USRP" @@ -18217,11 +23882,13 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "navId" : { "type" : "integer", @@ -18244,15 +23911,21 @@ margin-bottom: 20px; }, "validRadial" : { "type" : "integer", - "description" : "Radial validity estimation\n * 0 - Radial is invalid\n * 1 - Radial is valid\n" + "description" : "Radial validity estimation\n * 0 - Radial is invalid\n * 1 - Radial is valid\n", + "minimum" : 0, + "maximum" : 1 }, "validRefMag" : { "type" : "integer", - "description" : "Reference signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n" + "description" : "Reference signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n", + "minimum" : 0, + "maximum" : 1 }, "validVarMag" : { "type" : "integer", - "description" : "Variable signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n" + "description" : "Variable signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n", + "minimum" : 0, + "maximum" : 1 }, "morseIdent" : { "type" : "string", @@ -18265,7 +23938,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "navId" : { "type" : "integer", @@ -18278,22 +23952,30 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "identBandpassEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Ident bandpass enable setting for Vor demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18301,28 +23983,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "identThreshold" : { "type" : "integer", "description" : "Morse code ident threshold (linear SNR)" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18332,7 +24024,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "VORLocalizer" @@ -18341,7 +24035,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "VORLocalizers" @@ -18349,26 +24045,36 @@ margin-bottom: 20px; defs.VORLocalizerSettings = { "properties" : { "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "magDecAdjust" : { "type" : "integer", @@ -18380,23 +24086,28 @@ margin-bottom: 20px; }, "forceRRAveraging" : { "type" : "integer", - "description" : "Force radial and signal magnitudes averaging over the round robin turn\n * 0 - Do not force averaging\n * 1 - Force averaging\n" + "description" : "Force radial and signal magnitudes averaging over the round robin turn\n * 0 - Do not force averaging\n * 1 - Force averaging\n", + "minimum" : 0, + "maximum" : 1 }, "centerShift" : { "type" : "integer", "description" : "Shift of center frequency in Hz" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "columnIndexes" : { "type" : "array", + "description" : "List of column indexes.", "items" : { "type" : "integer" } }, "columnSizes" : { "type" : "array", + "description" : "List of column sizes.", "items" : { "type" : "integer" } @@ -18416,10 +24127,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WDSPRx" @@ -18428,18 +24141,23 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "profileIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected profile index." }, "demod" : { "type" : "integer", - "description" : "Demodulator type:\n * 0 - SSB\n * 1 - AM\n * 2 - SAM\n * 3 - FM\n" + "description" : "Demodulator type:\n * 0 - SSB\n * 1 - AM\n * 2 - SAM\n * 3 - FM\n", + "minimum" : 0, + "maximum" : 3 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioBinaural" : { "type" : "integer", @@ -18455,15 +24173,21 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "agcMode" : { "type" : "integer", - "description" : "AGC Mode:\n * 0 - Long\n * 1 - Slow\n * 2 - Medium\n * 3 - Fast\n" + "description" : "AGC Mode:\n * 0 - Long\n * 1 - Slow\n * 2 - Medium\n * 3 - Fast\n", + "minimum" : 0, + "maximum" : 3 }, "agcGain" : { "type" : "integer", @@ -18474,19 +24198,26 @@ margin-bottom: 20px; "description" : "Slope in centi-Bels" }, "agcHangThreshold" : { - "type" : "integer" + "type" : "integer", + "description" : "Agc hang threshold setting for Wdsp receive." }, "dnb" : { "type" : "integer", - "description" : "Digital Noise Blanker:\n * 0 - Off\n * 1 - On\n" + "description" : "Digital Noise Blanker:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "nbScheme" : { "type" : "integer", - "description" : "Noise blanker scheme:\n * 0 - NB or Preemptive Wideband Noise Blanker\n * 1 - NB2 or Interpolating Wideband Noise Blanker\n" + "description" : "Noise blanker scheme:\n * 0 - NB or Preemptive Wideband Noise Blanker\n * 1 - NB2 or Interpolating Wideband Noise Blanker\n", + "minimum" : 0, + "maximum" : 1 }, "nb2Mode" : { "type" : "integer", - "description" : "NB2 Noise blanking mode:\n * 0 - Zero mode (estimate as zero)\n * 1 - Sample‐hold (take the value of non‐corrupt signal at the beginning of the impulse and hold that throughout the corrupt sequence)\n * 2 - Mean‐hold (average the non‐corrupt values at the beginning and end of the corrupt sequence and use that as the estimate during the corrupt sequence)\n * 3 - hold‐sample (take the value of non‐corrupt signal at the end of the impulse and hold that throughout the corrupt sequence)\n * 4 - linearly interpolate across the corrupt sequence.\n" + "description" : "NB2 Noise blanking mode:\n * 0 - Zero mode (estimate as zero)\n * 1 - Sample‐hold (take the value of non‐corrupt signal at the beginning of the impulse and hold that throughout the corrupt sequence)\n * 2 - Mean‐hold (average the non‐corrupt values at the beginning and end of the corrupt sequence and use that as the estimate during the corrupt sequence)\n * 3 - hold‐sample (take the value of non‐corrupt signal at the end of the impulse and hold that throughout the corrupt sequence)\n * 4 - linearly interpolate across the corrupt sequence.\n", + "minimum" : 0, + "maximum" : 4 }, "nbSlewTime" : { "type" : "number", @@ -18504,47 +24235,67 @@ margin-bottom: 20px; "description" : "Hang time (S)" }, "nbThreshold" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb threshold setting for Wdsp receive." }, "nbAvgTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Nb avg time setting for Wdsp receive." }, "dnr" : { "type" : "integer", - "description" : "Digital Noise Reduction:\n * 0 - Off\n * 1 - On\n" + "description" : "Digital Noise Reduction:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "anf" : { "type" : "integer", - "description" : "Automatic Notch Filter:\n * 0 - Off\n * 1 - On\n" + "description" : "Automatic Notch Filter:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "nrScheme" : { "type" : "integer", - "description" : "Noise Reduction Scheme:\n * 0 - NR or LMS Noise Reduction\n * 1 - NR2 or Spectral Noise Reduction\n" + "description" : "Noise Reduction Scheme:\n * 0 - NR or LMS Noise Reduction\n * 1 - NR2 or Spectral Noise Reduction\n", + "minimum" : 0, + "maximum" : 1 }, "nr2Gain" : { "type" : "integer", - "description" : "Noise Reduction gain for NR2:\n * 0 - Linear\n * 1 - Log\n * 2 - Gamma\n" + "description" : "Noise Reduction gain for NR2:\n * 0 - Linear\n * 1 - Log\n * 2 - Gamma\n", + "minimum" : 0, + "maximum" : 2 }, "nr2NPE" : { "type" : "integer", - "description" : "Noise Power Estimation algorithm for NR2:\n * 0 - Optimal Smoothing Minimum Statistics (OSMS)\n * 1 - Minimum Mean‐Square Error (MMSE)\n" + "description" : "Noise Power Estimation algorithm for NR2:\n * 0 - Optimal Smoothing Minimum Statistics (OSMS)\n * 1 - Minimum Mean‐Square Error (MMSE)\n", + "minimum" : 0, + "maximum" : 1 }, "nrPosition" : { "type" : "integer", - "description" : "Noise reduction position:\n * 0 - Before AGC\n * 1 - After AGC\n" + "description" : "Noise reduction position:\n * 0 - Before AGC\n * 1 - After AGC\n", + "minimum" : 0, + "maximum" : 1 }, "nr2ArtifactReduction" : { "type" : "integer", - "description" : "NR2 artifacts reduction:\n * 0 - Off\n * 1 - On\n" + "description" : "NR2 artifacts reduction:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "amFadeLevel" : { "type" : "integer", - "description" : "AM fade levelling:\n * 0 - Off\n * 1 - On\n" + "description" : "AM fade levelling:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "cwPeaking" : { "type" : "integer", - "description" : "CW peaking filter:\n * 0 - Off\n * 1 - On\n" + "description" : "CW peaking filter:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "cwPeakFrequency" : { "type" : "number", @@ -18578,7 +24329,9 @@ margin-bottom: 20px; }, "fmAFLimiter" : { "type" : "integer", - "description" : "FM Audio level limiter (audio AGC)\n * 0 - Off\n * 1 - On\n" + "description" : "FM Audio level limiter (audio AGC)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fmAFLimiterGain" : { "type" : "number", @@ -18587,7 +24340,9 @@ margin-bottom: 20px; }, "fmCTCSSNotch" : { "type" : "integer", - "description" : "FM CTCSS notch filter\n * 0 - Off\n * 1 - On\n" + "description" : "FM CTCSS notch filter\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fmCTCSSNotchFrequency" : { "type" : "number", @@ -18596,7 +24351,9 @@ margin-bottom: 20px; }, "squelch" : { "type" : "integer", - "description" : "Squelch:\n * 0 - Off\n * 1 - On\n" + "description" : "Squelch:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "squelchThreshold" : { "type" : "integer", @@ -18604,12 +24361,16 @@ margin-bottom: 20px; }, "squelchMode" : { "type" : "integer", - "description" : "Squelch mode:\n * 0 - Voice squelch (for SSB). Based on voice artifacts.\n * 1 - AM squelch (for AM, SAM, CW). Signal power based.\n * 2 - FM squelch (for FM). Demod noise based squelch\n" + "description" : "Squelch mode:\n * 0 - Voice squelch (for SSB). Based on voice artifacts.\n * 1 - AM squelch (for AM, SAM, CW). Signal power based.\n * 2 - FM squelch (for FM). Demod noise based squelch\n", + "minimum" : 0, + "maximum" : 2 }, "ssqlTauMute" : { "type" : "number", "format" : "float", - "description" : "Voice squelch tau mute (s)" + "description" : "Voice squelch tau mute (s)", + "minimum" : 0, + "maximum" : 1 }, "ssqlTauUnmute" : { "type" : "number", @@ -18623,7 +24384,9 @@ margin-bottom: 20px; }, "equalizer" : { "type" : "integer", - "description" : "AF equalizer:\n * 0 - Off\n * 1 - On\n" + "description" : "AF equalizer:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "eqF" : { "type" : "array", @@ -18643,7 +24406,9 @@ margin-bottom: 20px; }, "rit" : { "type" : "integer", - "description" : "RIT:\n * 0 - Off\n * 1 - On\n" + "description" : "RIT:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "ritFrequency" : { "type" : "number", @@ -18651,28 +24416,36 @@ margin-bottom: 20px; "description" : "RIT shift frequency (Hz)" }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Blackman-Harris 4 term\n * 1 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Blackman-Harris 4 term\n * 1 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18680,27 +24453,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18718,10 +24502,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WFMDemod" @@ -18730,36 +24516,46 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { "type" : "integer", - "description" : "audio mute (1 if muted else 0)" + "description" : "audio mute (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18767,24 +24563,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18798,10 +24604,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WFMMod" @@ -18810,45 +24618,61 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Wfm mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -18856,41 +24680,107 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "WFMMod" +}; + defs.WindowInfo = { + "properties" : { + "kind" : { + "type" : "string", + "description" : "device, spectrum, channel or feature" + }, + "deviceSetIndex" : { + "type" : "integer", + "description" : "Index of the device set, for a device, spectrum or channel window" + }, + "index" : { + "type" : "integer", + "description" : "Channel index within the device set, or feature index; absent for a device or spectrum window" + }, + "title" : { + "type" : "string" + }, + "workspaceIndex" : { + "type" : "integer" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown" + } + }, + "description" : "One window of the GUI" +}; + defs.WindowList = { + "properties" : { + "windowCount" : { + "type" : "integer" + }, + "windows" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/WindowInfo" + } + } + }, + "description" : "Every device, spectrum, channel and feature window of the GUI" +}; + defs.WorkspaceActions = { + "required" : [ "arrange" ], + "properties" : { + "arrange" : { + "type" : "string", + "description" : "How to arrange the workspace's windows. cascade, tile, stackVertical and stack rearrange them once, and turn auto stacking and tabs off. autostack stacks them now and again whenever a window is added or resized, and stays on until another arrangement is asked for. tab shows one window at a time with a tab for each, and turns auto stacking off.\n", + "enum" : [ "cascade", "tile", "stackVertical", "stack", "autostack", "tab" ] + } + }, + "description" : "Actions on a workspace" }; defs.WorkspaceInfo = { - "required" : [ "index" ], "properties" : { "index" : { "type" : "integer", "description" : "index of workspace in the list of workspaces" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" } }, - "description" : "Workspace information" + "description" : "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" }; defs.XtrxInputReport = { "properties" : { @@ -18899,14 +24789,17 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", @@ -18918,28 +24811,37 @@ margin-bottom: 20px; defs.XtrxInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "dcBlock" : { "type" : "integer", - "description" : "Software DC blocking (1 for yes, 0 for no)" + "description" : "Software DC blocking (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Software IQ imbalance correction (1 for yes, 0 for no)" + "description" : "Software IQ imbalance correction (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { "type" : "integer", @@ -18951,7 +24853,9 @@ margin-bottom: 20px; }, "ncoEnable" : { "type" : "integer", - "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { "type" : "integer", @@ -18979,7 +24883,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Use external clock source (1 for yes, 0 for no)" + "description" : "Use external clock source (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -18991,20 +24897,29 @@ margin-bottom: 20px; }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "XTRX" @@ -19016,30 +24931,37 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFillRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current receive FIFO fill level." }, "fifoFillTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current transmit FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", "description" : "1 if GPSDO is locked else 0" }, "actualInputRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported actual input rate." }, "actualOutputRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported actual output rate." }, "clockGenRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported clock gen rate." } }, "description" : "XTRX" @@ -19047,11 +24969,14 @@ margin-bottom: 20px; defs.XtrxMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "extClock" : { "type" : "integer", - "description" : "Boolean 1 if external clock source else 0" + "description" : "Boolean 1 if external clock source else 0", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -19067,7 +24992,9 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Boolean 1 use 0 do not use reverse API" + "description" : "Boolean 1 use 0 do not use reverse API", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { "type" : "string", @@ -19075,13 +25002,17 @@ margin-bottom: 20px; }, "reverseAPIPort" : { "type" : "integer", - "description" : "Network port from 1024 to 65535" + "description" : "Network port from 1024 to 65535", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "rxDevSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive dev sample rate in samples per second." }, "log2HardDecim" : { "type" : "integer", @@ -19089,23 +25020,32 @@ margin-bottom: 20px; }, "log2SoftDecim" : { "type" : "integer", - "description" : "log2 of software decimation factor from 0 to 6" + "description" : "log2 of software decimation factor from 0 to 6", + "minimum" : 0, + "maximum" : 6 }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "dcBlock" : { "type" : "integer", - "description" : "Software DC blocking (1 for yes, 0 for no)" + "description" : "Software DC blocking (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Software IQ imbalance correction (1 for yes, 0 for no)" + "description" : "Software IQ imbalance correction (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoEnableRx" : { "type" : "integer", - "description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyRx" : { "type" : "integer", @@ -19113,11 +25053,15 @@ margin-bottom: 20px; }, "antennaPathRx" : { "type" : "integer", - "description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n" + "description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n", + "minimum" : 0, + "maximum" : 2 }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWRx0" : { "type" : "integer", @@ -19129,7 +25073,9 @@ margin-bottom: 20px; }, "gainModeRx0" : { "type" : "integer", - "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n" + "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx0" : { "type" : "integer", @@ -19144,7 +25090,8 @@ margin-bottom: 20px; "description" : "Manual PGA gain (dB) for Rx channel 0" }, "pwrmodeRx0" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode rx0 setting for Xtrx MIMO." }, "lpfBWRx1" : { "type" : "integer", @@ -19156,7 +25103,9 @@ margin-bottom: 20px; }, "gainModeRx1" : { "type" : "integer", - "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n" + "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx1" : { "type" : "integer", @@ -19171,10 +25120,12 @@ margin-bottom: 20px; "description" : "Manual PGA gain (dB) for Rx channel 1" }, "pwrmodeRx1" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode rx1 setting for Xtrx MIMO." }, "txDevSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit dev sample rate in samples per second." }, "log2HardInterp" : { "type" : "integer", @@ -19182,15 +25133,20 @@ margin-bottom: 20px; }, "log2SoftInterp" : { "type" : "integer", - "description" : "log2 of software interpolation factor from 0 to 6" + "description" : "log2 of software interpolation factor from 0 to 6", + "minimum" : 0, + "maximum" : 6 }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "ncoEnableTx" : { "type" : "integer", - "description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyTx" : { "type" : "integer", @@ -19198,7 +25154,9 @@ margin-bottom: 20px; }, "antennaPathTx" : { "type" : "integer", - "description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n" + "description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWTx0" : { "type" : "integer", @@ -19209,7 +25167,8 @@ margin-bottom: 20px; "description" : "Optimally distributed gain (dB) for Tx channel 0" }, "pwrmodeTx0" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode tx0 setting for Xtrx MIMO." }, "lpfBWTx1" : { "type" : "integer", @@ -19220,7 +25179,8 @@ margin-bottom: 20px; "description" : "Optimally distributed gain (dB) for Tx channel 1" }, "pwrmodeTx1" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode tx1 setting for Xtrx MIMO." } }, "description" : "XTRX" @@ -19232,14 +25192,17 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", @@ -19251,20 +25214,25 @@ margin-bottom: 20px; defs.XtrxOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { "type" : "integer", @@ -19276,7 +25244,9 @@ margin-bottom: 20px; }, "ncoEnable" : { "type" : "integer", - "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { "type" : "integer", @@ -19288,7 +25258,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Use external clock source (1 for yes, 0 for no)" + "description" : "Use external clock source (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -19300,16 +25272,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "XTRX" @@ -19406,6 +25385,21 @@ margin-bottom: 20px;
  • devicesetGet
  • +
  • + devicesetSpectrumActionsPost +
  • +
  • + devicesetSpectrumDataGet +
  • +
  • + devicesetSpectrumHistoryGet +
  • +
  • + devicesetSpectrumHistoryImageGet +
  • +
  • + devicesetSpectrumReportGet +
  • devicesetSpectrumServerDelete
  • @@ -19606,6 +25600,9 @@ margin-bottom: 20px;
  • instanceSummary
  • +
  • + instanceWindowsGet +
  • instanceWorkspaceAdd @@ -19613,6 +25610,9 @@ margin-bottom: 20px;
  • instanceWorkspacesDeleteEmpty
  • +
  • + workspaceActionsPost +
  • @@ -31922,41 +37922,41 @@ except ApiException as e:
    -
    -
    +
    +
    -

    devicesetSpectrumServerDelete

    +

    devicesetSpectrumActionsPost

    -

    Stop main spectrum websocket server

    +

    post an action or actions on the main spectrum


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/actions

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -31971,18 +37971,19 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        SpectrumActions body = ; // SpectrumActions | Action(s) to apply to the main spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -31990,26 +37991,29 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        SpectrumActions body = ; // SpectrumActions | Action(s) to apply to the main spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +SpectrumActions *body = ; // Action(s) to apply to the main spectrum
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    +[apiInstance devicesetSpectrumActionsPostWith:deviceSetIndex
    +    body:body
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -32021,13 +38025,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var body = ; // {SpectrumActions} Action(s) to apply to the main spectrum
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32036,14 +38042,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
    +api.devicesetSpectrumActionsPost(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32052,22 +38058,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerDeleteExample
    +    public class devicesetSpectrumActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new SpectrumActions(); // SpectrumActions | Action(s) to apply to the main spectrum
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumActionsPost: " + e.Message );
                 }
             }
         }
    @@ -32075,40 +38082,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // SpectrumActions | Action(s) to apply to the main spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumActionsPost($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::SpectrumActions->new(); # SpectrumActions | Action(s) to apply to the main spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32118,12 +38127,13 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # SpectrumActions | Action(s) to apply to the main spectrum
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_actions_post(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: %s\n" % e)
    @@ -32139,7 +38149,7 @@ except ApiException as e: -
    +
    @@ -32161,26 +38171,68 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Server successfully stopped

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set index

    +

    Status: 400 - Unknown action, no action given, or an action that needs a spectrum display

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -32298,14 +38350,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32341,14 +38393,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerGet

    +

    devicesetSpectrumDataGet

    -

    Get main spectrum websocket server status

    +

    Get the main spectrum power values, reduced to a number of bins


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/data

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/data?bins=&startFrequency=&stopFrequency=&reduce="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -32432,18 +38484,22 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +        Long startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +        String reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumDataGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -32451,27 +38507,39 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +        Long startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +        String reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumDataGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *bins = 56; // Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional)
    +Long *startFrequency = 789; // Lowest frequency to return in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to return in Hz. Default is the end of the spectrum (optional)
    +String *reduce = reduce_example; // How several bins are combined into one, max or mean (default max) (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    -              completionHandler: ^(SpectrumServer output, NSError* error) {
    +[apiInstance devicesetSpectrumDataGetWith:deviceSetIndex
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    reduce:reduce
    +              completionHandler: ^(GLSpectrumData output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -32482,13 +38550,19 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'bins': 56, // {Integer} Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +  'startFrequency': 789, // {Long} Lowest frequency to return in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789, // {Long} Highest frequency to return in Hz. Default is the end of the spectrum
    +  'reduce': reduce_example // {String} How several bins are combined into one, max or mean (default max)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32497,14 +38571,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerGet(deviceSetIndex, callback);
    +api.devicesetSpectrumDataGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32513,22 +38587,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerGetExample
    +    public class devicesetSpectrumDataGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var bins = 56;  // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to return in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to return in Hz. Default is the end of the spectrum (optional) 
    +            var reduce = reduce_example;  // String | How several bins are combined into one, max or mean (default max) (optional) 
     
                 try
                 {
    -                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +                GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumDataGet: " + e.Message );
                 }
             }
         }
    @@ -32536,40 +38614,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +$startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +$reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumDataGet($deviceSetIndex, $bins, $startFrequency, $stopFrequency, $reduce);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumDataGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $bins = 56; # Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +my $startFrequency = 789; # Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +my $reduce = reduce_example; # String | How several bins are combined into one, max or mean (default max)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumDataGet(deviceSetIndex => $deviceSetIndex, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, reduce => $reduce);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumDataGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32579,12 +38665,16 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +bins = 56 # Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional)
    +startFrequency = 789 # Long | Lowest frequency to return in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to return in Hz. Default is the end of the spectrum (optional)
    +reduce = reduce_example # String | How several bins are combined into one, max or mean (default max) (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_data_get(deviceSetIndex, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, reduce=reduce)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumDataGet: %s\n" % e)
    @@ -32600,7 +38690,7 @@ except ApiException as e: -
    +
    @@ -32624,26 +38714,119 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    bins + + +
    +
    +
    + + Integer + + +
    + Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to return in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to return in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    reduce + + +
    +
    +
    + + String + + +
    + How several bins are combined into one, max or mean (default max) +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return main spectrum server status

    +

    Status: 200 - On success return the reduced spectrum

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid bins, frequency range or reduction

    + + + +
    +
    +
    + +
    +
    @@ -32673,14 +38899,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32716,14 +38942,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32759,14 +38985,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerPost

    +

    devicesetSpectrumHistoryGet

    -

    Start main spectrum websocket server

    +

    Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and occupancy over a period, and the signals found. Only rows taken with the device tuned and sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, scrollLength); the server keeps no history +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history?seconds=&bins=&startFrequency=&stopFrequency=&threshold="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -32850,18 +39077,23 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +        Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -32869,27 +39101,42 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +        Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
    +Integer *bins = 56; // Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
    +Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
    +Integer *threshold = 56; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumHistoryGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    threshold:threshold
    +              completionHandler: ^(GLSpectrumHistory output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -32900,13 +39147,20 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
    +  'bins': 56, // {Integer} Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +  'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789, // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +  'threshold': 56 // {Integer} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32915,14 +39169,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerPost(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32931,22 +39185,27 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerPostExample
    +    public class devicesetSpectrumHistoryGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var seconds = 56;  // Integer | How far back to look, in seconds (default 60) (optional) 
    +            var bins = 56;  // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
    +            var threshold = 56;  // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional) 
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +                GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryGet: " + e.Message );
                 }
             }
         }
    @@ -32954,40 +39213,50 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +$bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +$threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
    +my $bins = 56; # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +my $threshold = 56; # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32997,12 +39266,17 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
    +bins = 56 # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
    +startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
    +threshold = 56 # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: %s\n" % e)
    @@ -33018,7 +39292,7 @@ except ApiException as e: -
    +
    @@ -33042,69 +39316,139 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + -
    -
    -
    - -
    - -
    -
    -

    Status: 400 - Invalid device set index

    +
    +
    +
    + + Integer + + +
    + Number of bins to reduce the spectrum to, 1 to 4096 (default 128) +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    NameDescription
    seconds -

    Responses

    -

    Status: 200 - Server successfully started

    - +
    + How far back to look, in seconds (default 60) +
    + + + +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    threshold + + +
    +
    +
    + + Integer + + +
    + How far above the measured floor a bin must rise to count as occupied, in dB (default 6) +
    +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - On success return the statistics

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsGet

    +

    devicesetSpectrumHistoryImageGet

    -

    Get main spectrum settings

    +

    The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row down with the newest row at the bottom, black a little below the noise floor and white at the strongest bin. The frequency and time extents come back in X-Spectrum-History headers and in the JSON form of the same call +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image?seconds=&bins=&rows=&startFrequency=&stopFrequency="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -33311,18 +39656,22 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +        Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -33330,30 +39679,41 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +        Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
    +Integer *bins = 56; // Width in pixels, 1 to 4096 (default 512) (optional)
    +Integer *rows = 56; // At most this many rows, the most recent (default 512, up to 4000) (optional)
    +Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    +[apiInstance devicesetSpectrumHistoryImageGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    rows:rows
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -33361,29 +39721,36 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
    +  'bins': 56, // {Integer} Width in pixels, 1 to 4096 (default 512)
    +  'rows': 56, // {Integer} At most this many rows, the most recent (default 512, up to 4000)
    +  'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789 // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +};
     
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
       } else {
    -    console.log('API called successfully. Returned data: ' + data);
    +    console.log('API called successfully.');
       }
     };
    -api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryImageGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -33392,22 +39759,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsGetExample
    +    public class devicesetSpectrumHistoryImageGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var seconds = 56;  // Integer | How far back to look, in seconds (default 60) (optional) 
    +            var bins = 56;  // Integer | Width in pixels, 1 to 4096 (default 512) (optional) 
    +            var rows = 56;  // Integer | At most this many rows, the most recent (default 512, up to 4000) (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -                Debug.WriteLine(result);
    +                apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryImageGet: " + e.Message );
                 }
             }
         }
    @@ -33415,40 +39786,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +$bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +$rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
    -    print_r($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet($deviceSetIndex, $seconds, $bins, $rows, $startFrequency, $stopFrequency);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
    +my $bins = 56; # Integer | Width in pixels, 1 to 4096 (default 512)
    +my $rows = 56; # Integer | At most this many rows, the most recent (default 512, up to 4000)
    +my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
    -    print Dumper($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, rows => $rows, startFrequency => $startFrequency, stopFrequency => $stopFrequency);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -33458,12 +39837,16 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
    +bins = 56 # Integer | Width in pixels, 1 to 4096 (default 512) (optional)
    +rows = 56 # Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
    +startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
    -    pprint(api_response)
    +    api_instance.deviceset_spectrum_history_image_get(deviceSetIndex, seconds=seconds, bins=bins, rows=rows, startFrequency=startFrequency, stopFrequency=stopFrequency)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: %s\n" % e)
    @@ -33479,7 +39862,7 @@ except ApiException as e: -
    +
    @@ -33503,67 +39886,145 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    seconds + + +
    +
    +
    + + Integer + + +
    + How far back to look, in seconds (default 60) +
    +
    +
    +
    +
    bins + + +
    +
    +
    + + Integer + + +
    + Width in pixels, 1 to 4096 (default 512) +
    +
    +
    +
    +
    rows + + +
    +
    +
    + + Integer + + +
    + At most this many rows, the most recent (default 512, up to 4000) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return details on the main spectrum

    +

    Status: 200 - The PNG image

    -
    -
    - -
    - -
    -

    Status: 404 - Invalid index

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPatch

    +

    devicesetSpectrumReportGet

    -

    Apply main spectrum settings differentially (no force)

    +

    Get the latest main spectrum measurement results


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -33729,19 +40190,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -33749,30 +40209,27 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrumReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -33783,15 +40240,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -33800,14 +40255,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
    +api.devicesetSpectrumReportGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -33816,23 +40271,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPatchExample
    +    public class devicesetSpectrumReportGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
                 }
             }
         }
    @@ -33840,42 +40294,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -33885,13 +40337,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    @@ -33907,7 +40358,7 @@ except ApiException as e: -
    +
    @@ -33929,70 +40380,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success returns new settings values

    +

    Status: 200 - On success return the results of the selected measurement

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -34065,14 +40474,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -34108,14 +40517,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPut

    +

    devicesetSpectrumServerDelete

    -

    Apply main spectrum settings unconditionally (force)

    +

    Stop main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -34199,19 +40608,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -34219,30 +40627,27 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -34253,15 +40658,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -34270,14 +40673,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -34286,23 +40689,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPutExample
    +    public class devicesetSpectrumServerDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
                 }
             }
         }
    @@ -34310,42 +40712,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -34355,13 +40755,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    @@ -34377,7 +40776,7 @@ except ApiException as e: -
    +
    @@ -34399,70 +40798,71 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully stopped

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -34535,14 +40935,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -34578,14 +40978,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspaceGet

    +

    devicesetSpectrumServerGet

    -

    Get main spectrum UI workspace information (GUI)

    +

    Get main spectrum websocket server status


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -34670,17 +41070,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -34689,26 +41089,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    +              completionHandler: ^(SpectrumServer output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -34719,7 +41119,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -34734,14 +41134,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +api.devicesetSpectrumServerGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -34750,7 +41150,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspaceGetExample
    +    public class devicesetSpectrumServerGetExample
         {
             public void main()
             {
    @@ -34760,12 +41160,12 @@ namespace Example
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
                 }
             }
         }
    @@ -34773,7 +41173,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -34781,15 +41181,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -34798,15 +41198,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -34818,10 +41218,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    @@ -34837,7 +41237,7 @@ except ApiException as e: -
    +
    @@ -34863,24 +41263,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return main spectrum UI workspace index

    +

    Status: 200 - On success return main spectrum server status

    -
    -
    +
    +
    - +
    @@ -34910,14 +41310,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -34953,14 +41353,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -34996,14 +41396,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspacePut

    +

    devicesetSpectrumServerPost

    -

    move main spectrum UI to workspace (GUI)

    +

    Start main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35087,19 +41487,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -35107,29 +41506,26 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -WorkspaceInfo *body = ; // Destination workspace information
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspacePutWith:deviceSetIndex
    -    body:body
    +[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -35141,15 +41537,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {WorkspaceInfo} Destination workspace information
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -35158,14 +41552,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspacePut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerPost(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -35174,23 +41568,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspacePutExample
    +    public class devicesetSpectrumServerPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspacePut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
                 }
             }
         }
    @@ -35198,42 +41591,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspacePut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspacePut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -35243,13 +41634,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    @@ -35265,7 +41655,7 @@ except ApiException as e: -
    +
    @@ -35287,70 +41677,71 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully started

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set or workspace index

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -35423,14 +41814,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -35466,14 +41857,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetDelete

    +

    devicesetSpectrumSettingsGet

    -

    Remove last device set. The GUI version does not remove the first device.

    +

    Get main spectrum settings


    -
    /sdrangel/deviceset
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35556,44 +41947,47 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance instanceDeviceSetDeleteWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -35604,11 +41998,14 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -35616,14 +42013,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetDelete(callback);
    +api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -35632,21 +42029,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetDeleteExample
    +    public class devicesetSpectrumSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -35654,38 +42052,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->instanceDeviceSetDelete();
    +    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetDelete();
    +    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->instanceDeviceSetDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -35694,41 +42094,72 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.instance_device_set_delete()
    +    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->instanceDeviceSetDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +

    Responses

    -

    Status: 202 - Message to remove last device set was sent successfully

    +

    Status: 200 - On success return details on the main spectrum

    -
    -
    +
    +
    - +
    -

    Status: 404 - No more device sets to be deleted

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -35801,14 +42232,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -35844,14 +42275,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetPost

    +

    devicesetSpectrumSettingsPatch

    -

    Add (append) a new device set with default values

    +

    Apply main spectrum settings differentially (no force)


    -
    /sdrangel/deviceset
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset?direction="
    -
    -
    +
    +
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35934,47 +42365,51 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance instanceDeviceSetPostWith:direction
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -35985,14 +42420,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -36001,14 +42437,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetPost(opts, callback);
    +api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36017,22 +42453,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetPostExample
    +    public class devicesetSpectrumSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -36040,40 +42477,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->instanceDeviceSetPost($direction);
    +    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetPost(direction => $direction);
    +    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->instanceDeviceSetPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36082,33 +42521,30 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.instance_device_set_post(direction=direction)
    +    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->instanceDeviceSetPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + @@ -36126,25 +42565,71 @@ except ApiException as e:
    NameDescription
    direction
    NameDescription
    deviceSetIndex* -
    +
    @@ -36116,9 +42552,12 @@ except ApiException as e:
    - 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) + Index of device set in the device set list
    +
    + Required +
    + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + +

    Responses

    -

    Status: 202 - Message to add a new device set was sent successfully

    +

    Status: 200 - On success returns new settings values

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    +
    @@ -36174,14 +42702,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -36217,14 +42745,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    - -
    -

    FeatureSet

    -
    -
    +
    +
    -

    featuresetFEatureSettingsPut

    +

    devicesetSpectrumSettingsPut

    -

    apply all settings unconditionally (force)

    +

    Apply main spectrum settings unconditionally (force)


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureSettings *body = ; // Feature settings to apply
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFEatureSettingsPutWith:featureIndex
    +[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
         body:body
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -36365,14 +42890,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    +var api = new SdRangel.DeviceSetApi()
     
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {FeatureSettings} Feature settings to apply
    +var body = ; // {GLSpectrum} Spectrum settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -36382,14 +42907,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFEatureSettingsPut(featureIndex, body, callback);
    +api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36398,23 +42923,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFEatureSettingsPutExample
    +    public class devicesetSpectrumSettingsPutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFEatureSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
                 }
             }
         }
    @@ -36422,42 +42947,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureSettings | Feature settings to apply
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->featuresetFEatureSettingsPut($featureIndex, $body);
    +    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFEatureSettingsPut(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36465,15 +42990,15 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureSettings | Feature settings to apply
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.featureset_f_eature_settings_put(featureIndex, body)
    +    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    @@ -36485,11 +43010,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -36497,7 +43022,7 @@ except ApiException as e:
    - Index of the feature in the features list + Index of device set in the device set list
    @@ -36526,10 +43051,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Feature settings to apply", + "description" : "Spectrum settings to apply", "required" : true, "schema" : { - "$ref" : "#/definitions/FeatureSettings" + "$ref" : "#/definitions/GLSpectrum" } }; var schema = schemaWrapper.schema; @@ -36543,12 +43068,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_featuresetFEatureSettingsPut_body'); + var result = $('#d2e199_devicesetSpectrumSettingsPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -36557,67 +43082,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return feature new settings

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 200 - On success returns new settings values

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Invalid device set index or device not found

    -
    -
    +
    +
    - +
    @@ -36690,14 +43172,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -36733,14 +43215,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureActionsPost

    +

    devicesetSpectrumWorkspaceGet

    -

    post an action or actions on a channel

    +

    Get main spectrum UI workspace information (GUI)


    -
    /sdrangel/featureset/feature/{featureIndex}/actions
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/actions"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureActions *body = ; // Action(s) to apply to the feature
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureActionsPostWith:featureIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -36878,14 +43356,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var api = new SdRangel.DeviceSetApi()
     
    -var body = ; // {FeatureActions} Action(s) to apply to the feature
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
     
     var callback = function(error, data, response) {
    @@ -36895,14 +43371,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureActionsPost(featureIndex, body, callback);
    +api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36911,23 +43387,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureActionsPostExample
    +    public class devicesetSpectrumWorkspaceGetExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureActions(); // FeatureActions | Action(s) to apply to the feature
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureActionsPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
                 }
             }
         }
    @@ -36935,42 +43410,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureActions | Action(s) to apply to the feature
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->featuresetFeatureActionsPost($featureIndex, $body);
    +    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureActionsPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureActions->new(); # FeatureActions | Action(s) to apply to the feature
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureActionsPost(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureActionsPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36978,15 +43451,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureActions | Action(s) to apply to the feature
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.featureset_feature_actions_post(featureIndex, body)
    +    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureActionsPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    @@ -36998,11 +43470,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -37010,7 +43482,7 @@ except ApiException as e:
    - Index of the feature in the features list + Index of device set in the device set list
    @@ -37024,113 +43496,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 200 - On success return main spectrum UI workspace index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -37203,14 +43590,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -37246,14 +43633,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureDelete

    +

    devicesetSpectrumWorkspacePut

    -

    delete a feature

    +

    move main spectrum UI to workspace (GUI)


    -
    /sdrangel/featureset/feature/{featureIndex}
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}"
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +WorkspaceInfo *body = ; // Destination workspace information
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureDeleteWith:featureIndex
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance devicesetSpectrumWorkspacePutWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -37387,12 +43778,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    +var api = new SdRangel.DeviceSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {WorkspaceInfo} Destination workspace information
     
     
     var callback = function(error, data, response) {
    @@ -37402,14 +43795,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureDelete(featureIndex, callback);
    +api.devicesetSpectrumWorkspacePut(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -37418,22 +43811,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureDeleteExample
    +    public class devicesetSpectrumWorkspacePutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspacePut: " + e.Message );
                 }
             }
         }
    @@ -37441,40 +43835,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->featuresetFeatureDelete($featureIndex);
    +    $result = $api_instance->devicesetSpectrumWorkspacePut($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureDelete(featureIndex => $featureIndex);
    +    my $result = $api_instance->devicesetSpectrumWorkspacePut(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -37482,14 +43878,15 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.featureset_feature_delete(featureIndex)
    +    api_response = api_instance.deviceset_spectrum_workspace_put(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: %s\n" % e)
    @@ -37501,11 +43898,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -37513,7 +43910,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of device set in the device set list
    @@ -37527,28 +43924,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return deleted feature settings

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature index

    +

    Status: 400 - Invalid device set or workspace index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 500 - Error

    -
    -
    +
    +
    -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    -
    - +
    @@ -37707,14 +44103,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeaturePost

    +

    instanceDeviceSetDelete

    -

    add a feature

    +

    Remove last device set. The GUI version does not remove the first device.


    -
    /sdrangel/featureset/feature
    +
    /sdrangel/deviceset

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
    +        DeviceSetApi apiInstance = new DeviceSetApi();
             try {
    -            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
    +        DeviceSetApi apiInstance = new DeviceSetApi();
             try {
    -            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeatureSettings *body = ; // Feature identification (no settings data)
    -
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +                            
    +
    
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeaturePostWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceDeviceSetDeleteWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -37848,13 +44241,10 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var body = ; // {FeatureSettings} Feature identification (no settings data)
    -
    +var api = new SdRangel.DeviceSetApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -37863,14 +44253,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeaturePost(body, callback);
    +api.instanceDeviceSetDelete(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -37879,22 +44269,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeaturePostExample
    +    public class instanceDeviceSetDeleteExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var body = new FeatureSettings(); // FeatureSettings | Feature identification (no settings data)
    +            var apiInstance = new DeviceSetApi();
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +                SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeaturePost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetDelete: " + e.Message );
                 }
             }
         }
    @@ -37902,40 +44291,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeatureSettings | Feature identification (no settings data)
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
     
     try {
    -    $result = $api_instance->featuresetFeaturePost($body);
    +    $result = $api_instance->instanceDeviceSetDelete();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeaturePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature identification (no settings data)
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
     
     eval { 
    -    my $result = $api_instance->featuresetFeaturePost(body => $body);
    +    my $result = $api_instance->instanceDeviceSetDelete();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeaturePost: $@\n";
    +    warn "Exception when calling DeviceSetApi->instanceDeviceSetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -37943,14 +44330,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeatureSettings | Feature identification (no settings data)
    +api_instance = swagger_sdrangel.DeviceSetApi()
     
     try: 
    -    api_response = api_instance.featureset_feature_post(body)
    +    api_response = api_instance.instance_device_set_delete()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeaturePost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->instanceDeviceSetDelete: %s\n" % e)
    @@ -37958,68 +44344,26 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to add a feature was sent successfully

    +

    Status: 202 - Message to remove last device set was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 404 - No more device sets to be deleted

    -
    -
    +
    +
    - +
    @@ -38094,14 +44438,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -38137,14 +44481,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureReportGet

    +

    instanceDeviceSetPost

    -

    get a feature report

    +

    Add (append) a new device set with default values


    -
    /sdrangel/featureset/feature/{featureIndex}/report
    +
    /sdrangel/deviceset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/report"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureReportGetWith:featureIndex
    -              completionHandler: ^(FeatureReport output, NSError* error) {
    +[apiInstance instanceDeviceSetPostWith:direction
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38278,13 +44622,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var api = new SdRangel.DeviceSetApi()
     
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -38293,14 +44638,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureReportGet(featureIndex, callback);
    +api.instanceDeviceSetPost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38309,22 +44654,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureReportGetExample
    +    public class instanceDeviceSetPostExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var apiInstance = new DeviceSetApi();
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +                SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureReportGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetPost: " + e.Message );
                 }
             }
         }
    @@ -38332,40 +44677,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->featuresetFeatureReportGet($featureIndex);
    +    $result = $api_instance->instanceDeviceSetPost($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureReportGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureReportGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->instanceDeviceSetPost(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureReportGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->instanceDeviceSetPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -38373,30 +44718,34 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.featureset_feature_report_get(featureIndex)
    +    api_response = api_instance.instance_device_set_post(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureReportGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->instanceDeviceSetPost: %s\n" % e)

    Parameters

    -
    Path parameters
    + + + + +
    Query parameters
    - - - - - + + + + + @@ -38417,29 +44763,25 @@ except ApiException as e:
    NameDescription
    featureIndex*
    NameDescription
    direction -
    +
    @@ -38404,12 +44753,9 @@ except ApiException as e:
    - Index of the feature in the features list + 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -
    - Required -
    - - - -

    Responses

    -

    Status: 200 - On success return feature report

    +

    Status: 202 - Message to add a new device set was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature index

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 501 - Function not implemented

    -
    -
    +
    +
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - +

    -
    -
    +
    +
    +

    FeatureSet

    +
    +
    -

    featuresetFeatureRunDelete

    +

    featuresetFEatureSettingsPut

    -

    stop feature

    +

    apply all settings unconditionally (force)


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -38688,47 +44947,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunDeleteWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFEatureSettingsPutWith:featureIndex
    +    body:body
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38739,12 +45002,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureSettings} Feature settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -38754,14 +45019,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunDelete(featureIndex, callback);
    +api.featuresetFEatureSettingsPut(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38770,22 +45035,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunDeleteExample
    +    public class featuresetFEatureSettingsPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +                FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunDelete: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFEatureSettingsPut: " + e.Message );
                 }
             }
         }
    @@ -38793,40 +45059,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetFeatureRunDelete($featureIndex);
    +    $result = $api_instance->featuresetFEatureSettingsPut($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunDelete(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFEatureSettingsPut(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunDelete: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -38835,13 +45103,14 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_feature_run_delete(featureIndex)
    +    api_response = api_instance.featureset_f_eature_settings_put(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunDelete: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: %s\n" % e)
    @@ -38857,7 +45126,7 @@ except ApiException as e: -
    +
    @@ -38865,7 +45134,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of the feature in the features list
    @@ -38879,28 +45148,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return state before change

    +

    Status: 200 - On success return feature new settings

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set index

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -39016,14 +45327,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -39059,14 +45370,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureRunGet

    +

    featuresetFeatureActionsPost

    -

    get feature run status

    +

    post an action or actions on a channel


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}/actions

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39149,47 +45460,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureActions *body = ; // Action(s) to apply to the feature
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunGetWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFeatureActionsPostWith:featureIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39200,12 +45515,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureActions} Action(s) to apply to the feature
     
     
     var callback = function(error, data, response) {
    @@ -39215,14 +45532,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunGet(featureIndex, callback);
    +api.featuresetFeatureActionsPost(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39231,22 +45548,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunGetExample
    +    public class featuresetFeatureActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureActions(); // FeatureActions | Action(s) to apply to the feature
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +                SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureActionsPost: " + e.Message );
                 }
             }
         }
    @@ -39254,40 +45572,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureActions | Action(s) to apply to the feature
     
     try {
    -    $result = $api_instance->featuresetFeatureRunGet($featureIndex);
    +    $result = $api_instance->featuresetFeatureActionsPost($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureActions->new(); # FeatureActions | Action(s) to apply to the feature
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureActionsPost(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39296,13 +45616,14 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureActions | Action(s) to apply to the feature
     
     try: 
    -    api_response = api_instance.featureset_feature_run_get(featureIndex)
    +    api_response = api_instance.featureset_feature_actions_post(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureActionsPost: %s\n" % e)
    @@ -39318,7 +45639,7 @@ except ApiException as e: -
    +
    @@ -39326,7 +45647,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of the feature in the features list
    @@ -39340,28 +45661,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return current feature run state

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    +
    @@ -39477,14 +45883,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureRunPost

    +

    featuresetFeatureDelete

    -

    start feature

    +

    delete a feature


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39569,17 +45975,17 @@ public class FeatureSetApiExample {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
    @@ -39588,26 +45994,26 @@ public class FeatureSetApiExample {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunPostWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFeatureDeleteWith:featureIndex
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39618,7 +46024,7 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
    @@ -39633,14 +46039,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunPost(featureIndex, callback);
    +api.featuresetFeatureDelete(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39649,7 +46055,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunPostExample
    +    public class featuresetFeatureDeleteExample
         {
             public void main()
             {
    @@ -39659,12 +46065,12 @@ namespace Example
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +                FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunPost: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureDelete: " + e.Message );
                 }
             }
         }
    @@ -39672,7 +46078,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -39680,15 +46086,15 @@ $api_instance = new Swagger\Client\Api\FeatureSetApi();
     $featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureRunPost($featureIndex);
    +    $result = $api_instance->featuresetFeatureDelete($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
    @@ -39697,15 +46103,15 @@ my $api_instance = SWGSDRangel::FeatureSetApi->new();
     my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunPost(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureDelete(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunPost: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39717,10 +46123,10 @@ api_instance = swagger_sdrangel.FeatureSetApi()
     featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_run_post(featureIndex)
    +    api_response = api_instance.featureset_feature_delete(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunPost: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureDelete: %s\n" % e)
    @@ -39736,7 +46142,7 @@ except ApiException as e: -
    +
    @@ -39762,24 +46168,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return state before change

    +

    Status: 200 - On success return deleted feature settings

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Feature set or feature not found

    + + + +
    +
    +
    + +
    +
    @@ -39852,14 +46301,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -39895,14 +46344,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureSettingsGet

    +

    featuresetFeaturePost

    -

    get a feature settings

    +

    add a feature


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/featureset/feature

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39985,47 +46434,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    +                            
    +
    FeatureSettings *body = ; // Feature identification (no settings data)
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureSettingsGetWith:featureIndex
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance featuresetFeaturePostWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40036,12 +46485,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var body = ; // {FeatureSettings} Feature identification (no settings data)
     
     
     var callback = function(error, data, response) {
    @@ -40051,14 +46500,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureSettingsGet(featureIndex, callback);
    +api.featuresetFeaturePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40067,22 +46516,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureSettingsGetExample
    +    public class featuresetFeaturePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature identification (no settings data)
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +                SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeaturePost: " + e.Message );
                 }
             }
         }
    @@ -40090,40 +46539,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature identification (no settings data)
     
     try {
    -    $result = $api_instance->featuresetFeatureSettingsGet($featureIndex);
    +    $result = $api_instance->featuresetFeaturePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeaturePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature identification (no settings data)
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureSettingsGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeaturePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeaturePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40132,44 +46581,58 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature identification (no settings data)
     
     try: 
    -    api_response = api_instance.featureset_feature_settings_get(featureIndex)
    +    api_response = api_instance.featureset_feature_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeaturePost: %s\n" % e)

    Parameters

    -
    Path parameters
    + + +
    Body parameters
    - - - - - + + + + + @@ -40177,70 +46640,25 @@ except ApiException as e: - -

    Responses

    -

    Status: 200 - On success return feature settings

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 202 - Message to add a feature was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Feature not found

    -
    -
    +
    +
    - +
    @@ -40313,14 +46731,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40356,14 +46774,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureSettingsPatch

    +

    featuresetFeatureReportGet

    -

    apply settings differentially (no force)

    +

    get a feature report


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/featureset/feature/{featureIndex}/report

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40447,19 +46865,18 @@ public class FeatureSetApiExample {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
    @@ -40467,30 +46884,27 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureSettingsPatchWith:featureIndex
    -    body:body
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance featuresetFeatureReportGetWith:featureIndex
    +              completionHandler: ^(FeatureReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40501,15 +46915,13 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
     var featureIndex = 56; // {Integer} Index of the feature in the features list
     
    -var body = ; // {FeatureSettings} Feature settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -40518,14 +46930,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureSettingsPatch(featureIndex, body, callback);
    +api.featuresetFeatureReportGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40534,23 +46946,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureSettingsPatchExample
    +    public class featuresetFeatureReportGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
                 var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +                FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureReportGet: " + e.Message );
                 }
             }
         }
    @@ -40558,42 +46969,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
     $featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetFeatureSettingsPatch($featureIndex, $body);
    +    $result = $api_instance->featuresetFeatureReportGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
     my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureSettingsPatch(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->featuresetFeatureReportGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40603,13 +47012,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
     featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_feature_settings_patch(featureIndex, body)
    +    api_response = api_instance.featureset_feature_report_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureReportGet: %s\n" % e)
    @@ -40625,7 +47033,7 @@ except ApiException as e:
    NameDescription
    featureIndex*
    NameDescription
    body * -
    -
    -
    - - Integer - + +
    -
    +
    @@ -40647,70 +47055,28 @@ except ApiException as e:
    -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success return feature new settings

    +

    Status: 200 - On success return feature report

    -
    -
    +
    +
    - +
    @@ -40740,14 +47106,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40783,14 +47149,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40826,14 +47192,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40869,14 +47235,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureWorkspaceGet

    +

    featuresetFeatureRunDelete

    -

    get feature UI workspace information (GUI)

    +

    stop feature


    -
    /sdrangel/featureset/feature/{featureIndex}/workspace
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40959,47 +47325,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the feature set
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureWorkspaceGetWith:featureIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance featuresetFeatureRunDeleteWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41010,12 +47376,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the feature set
    +var featureIndex = 56; // {Integer} Index of feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -41025,14 +47391,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureWorkspaceGet(featureIndex, callback);
    +api.featuresetFeatureRunDelete(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41041,22 +47407,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureWorkspaceGetExample
    +    public class featuresetFeatureRunDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the feature set
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +                DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunDelete: " + e.Message );
                 }
             }
         }
    @@ -41064,40 +47430,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the feature set
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureWorkspaceGet($featureIndex);
    +    $result = $api_instance->featuresetFeatureRunDelete($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the feature set
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureWorkspaceGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureRunDelete(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41106,13 +47472,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the feature set
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_workspace_get(featureIndex)
    +    api_response = api_instance.featureset_feature_run_delete(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunDelete: %s\n" % e)
    @@ -41128,7 +47494,7 @@ except ApiException as e: -
    +
    @@ -41136,7 +47502,7 @@ except ApiException as e:
    - Index of feature in the feature set + Index of feature in the features list
    @@ -41154,24 +47520,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return workspace information

    +

    Status: 200 - On success return state before change

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature set index

    +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Device not found

    + + + +
    +
    +
    + +
    +
    @@ -41244,14 +47653,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -41287,14 +47696,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureWorkspacePut

    +

    featuresetFeatureRunGet

    -

    move feature UI to workspace (GUI)

    +

    get feature run status


    -
    /sdrangel/featureset/feature/{featureIndex}/workspace
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41377,51 +47786,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the feature set
    -WorkspaceInfo *body = ; // Destination workspace information
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureWorkspacePutWith:featureIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance featuresetFeatureRunGetWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41432,14 +47837,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the feature set
    -
    -var body = ; // {WorkspaceInfo} Destination workspace information
    +var featureIndex = 56; // {Integer} Index of feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -41449,14 +47852,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureWorkspacePut(featureIndex, body, callback);
    +api.featuresetFeatureRunGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41465,23 +47868,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureWorkspacePutExample
    +    public class featuresetFeatureRunGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the feature set
    -            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +                DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspacePut: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunGet: " + e.Message );
                 }
             }
         }
    @@ -41489,42 +47891,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the feature set
    -$body = ; // WorkspaceInfo | Destination workspace information
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureWorkspacePut($featureIndex, $body);
    +    $result = $api_instance->featuresetFeatureRunGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the feature set
    -my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureWorkspacePut(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->featuresetFeatureRunGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41533,14 +47933,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the feature set
    -body =  # WorkspaceInfo | Destination workspace information
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_workspace_put(featureIndex, body)
    +    api_response = api_instance.featureset_feature_run_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunGet: %s\n" % e)
    @@ -41556,7 +47955,7 @@ except ApiException as e: -
    +
    @@ -41564,7 +47963,7 @@ except ApiException as e:
    - Index of feature in the feature set + Index of feature in the features list
    @@ -41578,70 +47977,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    +

    Status: 200 - On success return current feature run state

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set or workspace index

    +

    Status: 404 - Feature not found

    -
    -
    +
    +
    - +
    @@ -41714,14 +48071,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41757,14 +48114,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetGet

    +

    featuresetFeatureRunPost

    -

    Get features information

    +

    start feature


    -
    /sdrangel/featureset
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41847,44 +48204,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            FeatureSet result = apiInstance.featuresetGet();
    +            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            FeatureSet result = apiInstance.featuresetGet();
    +            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
    +
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetGetWithCompletionHandler: 
    -              ^(FeatureSet output, NSError* error) {
    +[apiInstance featuresetFeatureRunPostWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41895,11 +48255,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    +var featureIndex = 56; // {Integer} Index of feature in the features list
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -41907,14 +48270,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetGet(callback);
    +api.featuresetFeatureRunPost(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41923,21 +48286,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetGetExample
    +    public class featuresetFeatureRunPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                FeatureSet result = apiInstance.featuresetGet();
    +                DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunPost: " + e.Message );
                 }
             }
         }
    @@ -41945,38 +48309,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetGet();
    +    $result = $api_instance->featuresetFeatureRunPost($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetGet();
    +    my $result = $api_instance->featuresetFeatureRunPost(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41985,41 +48351,72 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_get()
    +    api_response = api_instance.featureset_feature_run_post(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunPost: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of feature in the features list +
    +
    +
    + Required +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return details on the features present in the system

    +

    Status: 200 - On success return state before change

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Feature not found

    + + + +
    +
    +
    + +
    +
    @@ -42049,14 +48489,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -42092,14 +48532,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPatch

    +

    featuresetFeatureSettingsGet

    -

    Load a preset in features

    +

    get a feature settings


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42182,47 +48622,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // Load preset settings to the features
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPatchWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureSettingsGetWith:featureIndex
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42233,12 +48673,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} Load preset settings to the features
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -42248,14 +48688,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPatch(body, callback);
    +api.featuresetFeatureSettingsGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42264,22 +48704,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPatchExample
    +    public class featuresetFeatureSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | Load preset settings to the features
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +                FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -42287,40 +48727,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +$featureIndex = 56; // Integer | Index of the feature in the features list
     
     try {
    -    $result = $api_instance->featuresetPresetPatch($body);
    +    $result = $api_instance->featuresetFeatureSettingsGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | Load preset settings to the features
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPatch(body => $body);
    +    my $result = $api_instance->featuresetFeatureSettingsGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42329,58 +48769,44 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | Load preset settings to the features
    +featureIndex = 56 # Integer | Index of the feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_preset_patch(body)
    +    api_response = api_instance.featureset_feature_settings_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: %s\n" % e)

    Parameters

    - - -
    Body parameters
    +
    Path parameters
    - - - - - + + + + + @@ -42388,25 +48814,27 @@ $(document).ready(function() { + +

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return feature settings

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 404 - No preset found

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -42522,14 +48950,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -42565,14 +48993,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPost

    +

    featuresetFeatureSettingsPatch

    -

    Create a new preset from features settings.

    +

    apply settings differentially (no force)


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42655,47 +49083,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // save features settings on a new preset
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureSettingsPatchWith:featureIndex
    +    body:body
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42706,12 +49138,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} save features settings on a new preset
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureSettings} Feature settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -42721,14 +49155,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPost(body, callback);
    +api.featuresetFeatureSettingsPatch(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42737,22 +49171,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPostExample
    +    public class featuresetFeatureSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings on a new preset
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +                FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPost: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -42760,40 +49195,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetPresetPost($body);
    +    $result = $api_instance->featuresetFeatureSettingsPatch($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings on a new preset
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPost(body => $body);
    +    my $result = $api_instance->featuresetFeatureSettingsPatch(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPost: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42802,18 +49239,49 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | save features settings on a new preset
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_preset_post(body)
    +    api_response = api_instance.featureset_feature_settings_patch(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPost: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: %s\n" % e)

    Parameters

    +
    Path parameters
    +
    NameDescription
    body *
    NameDescription
    featureIndex* - -
    +
    + Index of the feature in the features list +
    + +
    + Required +
    + +
    + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of the feature in the features list +
    +
    +
    + Required +
    +
    +
    +
    Body parameters
    @@ -42831,10 +49299,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "save features settings on a new preset", + "description" : "Feature settings to apply", "required" : true, "schema" : { - "$ref" : "#/definitions/FeaturePresetIdentifier" + "$ref" : "#/definitions/FeatureSettings" } }; var schema = schemaWrapper.schema; @@ -42848,12 +49316,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_featuresetPresetPost_body'); + var result = $('#d2e199_featuresetFeatureSettingsPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -42862,67 +49330,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the created preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    +

    Status: 200 - On success return feature new settings

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 409 - Preset already exists

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -43038,14 +49463,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -43081,14 +49506,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPut

    +

    featuresetFeatureWorkspaceGet

    -

    Update an existing preset with features settings.

    +

    get feature UI workspace information (GUI)


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/workspace

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -43171,47 +49596,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // save features settings to the preset
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the feature set
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPutWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureWorkspaceGetWith:featureIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -43222,12 +49647,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} save features settings to the preset
    +var featureIndex = 56; // {Integer} Index of feature in the feature set
     
     
     var callback = function(error, data, response) {
    @@ -43237,14 +49662,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPut(body, callback);
    +api.featuresetFeatureWorkspaceGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -43253,22 +49678,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPutExample
    +    public class featuresetFeatureWorkspaceGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings to the preset
    +            var featureIndex = 56;  // Integer | Index of feature in the feature set
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +                WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPut: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspaceGet: " + e.Message );
                 }
             }
         }
    @@ -43276,40 +49701,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | save features settings to the preset
    +$featureIndex = 56; // Integer | Index of feature in the feature set
     
     try {
    -    $result = $api_instance->featuresetPresetPut($body);
    +    $result = $api_instance->featuresetFeatureWorkspaceGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings to the preset
    +my $featureIndex = 56; # Integer | Index of feature in the feature set
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPut(body => $body);
    +    my $result = $api_instance->featuresetFeatureWorkspaceGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPut: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -43318,58 +49743,44 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | save features settings to the preset
    +featureIndex = 56 # Integer | Index of feature in the feature set
     
     try: 
    -    api_response = api_instance.featureset_preset_put(body)
    +    api_response = api_instance.featureset_feature_workspace_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPut: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: %s\n" % e)

    Parameters

    - - -
    Body parameters
    +
    Path parameters
    - - - - - + + + + + @@ -43377,25 +49788,27 @@ $(document).ready(function() { + +

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return workspace information

    -
    -
    +
    +
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - +
    -

    Status: 404 - No preset found

    +

    Status: 400 - Invalid feature set index

    -
    -
    +
    +
    - +
    @@ -43511,14 +49881,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -43554,14 +49924,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    - -
    -

    Instance

    -
    -
    +
    +
    -

    instanceAudioGet

    +

    featuresetFeatureWorkspacePut

    -

    Get audio devices list available to this instance

    +

    move feature UI to workspace (GUI)


    -
    /sdrangel/audio
    +
    /sdrangel/featureset/feature/{featureIndex}/workspace

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/audio"
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            AudioDevices result = apiInstance.instanceAudioGet();
    +            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            AudioDevices result = apiInstance.instanceAudioGet();
    +            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the feature set
    +WorkspaceInfo *body = ; // Destination workspace information
     
    -[apiInstance instanceAudioGetWithCompletionHandler: 
    -              ^(AudioDevices output, NSError* error) {
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +
    +[apiInstance featuresetFeatureWorkspacePutWith:featureIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -43695,10 +50069,15 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
    +
    +var featureIndex = 56; // {Integer} Index of feature in the feature set
    +
    +var body = ; // {WorkspaceInfo} Destination workspace information
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -43707,14 +50086,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioGet(callback);
    +api.featuresetFeatureWorkspacePut(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -43723,21 +50102,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioGetExample
    +    public class featuresetFeatureWorkspacePutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new FeatureSetApi();
    +            var featureIndex = 56;  // Integer | Index of feature in the feature set
    +            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                AudioDevices result = apiInstance.instanceAudioGet();
    +                SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspacePut: " + e.Message );
                 }
             }
         }
    @@ -43745,38 +50126,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$featureIndex = 56; // Integer | Index of feature in the feature set
    +$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->instanceAudioGet();
    +    $result = $api_instance->featuresetFeatureWorkspacePut($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $featureIndex = 56; # Integer | Index of feature in the feature set
    +my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->instanceAudioGet();
    +    my $result = $api_instance->featuresetFeatureWorkspacePut(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -43784,42 +50169,116 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +featureIndex = 56 # Integer | Index of feature in the feature set
    +body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.instance_audio_get()
    +    api_response = api_instance.featureset_feature_workspace_put(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: %s\n" % e)

    Parameters

    +
    Path parameters
    +
    NameDescription
    body *
    NameDescription
    featureIndex* - -
    +
    + Index of feature in the feature set +
    + +
    + Required +
    + +
    + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of feature in the feature set +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid device set or workspace index

    + + + +
    +
    +
    + +
    +
    @@ -43849,14 +50351,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -43892,14 +50394,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputCleanupPatch

    +

    featuresetGet

    -

    Remove registered parameters for devices not in list of available input devices for this instance

    +

    Get features information


    -
    /sdrangel/audio/input/cleanup
    +
    /sdrangel/featureset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/input/cleanup"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
             try {
    -            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            FeatureSet result = apiInstance.featuresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
             try {
    -            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            FeatureSet result = apiInstance.featuresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputCleanupPatchWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance featuresetGetWithCompletionHandler: 
    +              ^(FeatureSet output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44030,10 +50532,10 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -44042,14 +50544,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputCleanupPatch(callback);
    +api.featuresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44058,21 +50560,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputCleanupPatchExample
    +    public class featuresetGetExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new FeatureSetApi();
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +                FeatureSet result = apiInstance.featuresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputCleanupPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetGet: " + e.Message );
                 }
             }
         }
    @@ -44080,38 +50582,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
     
     try {
    -    $result = $api_instance->instanceAudioInputCleanupPatch();
    +    $result = $api_instance->featuresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputCleanupPatch();
    +    my $result = $api_instance->featuresetGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputCleanupPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44119,13 +50621,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.FeatureSetApi()
     
     try: 
    -    api_response = api_instance.instance_audio_input_cleanup_patch()
    +    api_response = api_instance.featureset_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputCleanupPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetGet: %s\n" % e)
    @@ -44137,24 +50639,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Success.

    +

    Status: 200 - On success return details on the features present in the system

    -
    -
    +
    +
    - +
    @@ -44184,14 +50686,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -44227,14 +50729,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputDelete

    +

    featuresetPresetPatch

    -

    Delete audio input device parameters and return to defaults

    +

    Load a preset in features


    -
    /sdrangel/audio/input/parameters
    +
    /sdrangel/featureset/preset

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/featureset/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device.
    +                            
    +
    FeaturePresetIdentifier *body = ; // Load preset settings to the features
     
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputDeleteWith:body
    -              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +[apiInstance featuresetPresetPatchWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44368,12 +50870,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device.
    +var body = ; // {FeaturePresetIdentifier} Load preset settings to the features
     
     
     var callback = function(error, data, response) {
    @@ -44383,14 +50885,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputDelete(body, callback);
    +api.featuresetPresetPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44399,22 +50901,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputDeleteExample
    +    public class featuresetPresetPatchExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    -            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | Load preset settings to the features
     
                 try
                 {
    -                AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +                FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputDelete: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPatch: " + e.Message );
                 }
             }
         }
    @@ -44422,40 +50924,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | Load preset settings to the features
     
     try {
    -    $result = $api_instance->instanceAudioInputDelete($body);
    +    $result = $api_instance->featuresetPresetPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | Load preset settings to the features
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputDelete(body => $body);
    +    my $result = $api_instance->featuresetPresetPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputDelete: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44463,14 +50965,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | Load preset settings to the features
     
     try: 
    -    api_response = api_instance.instance_audio_input_delete(body)
    +    api_response = api_instance.featureset_preset_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputDelete: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetPresetPatch: %s\n" % e)
    @@ -44493,10 +50995,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Audio input parameters. Index is used to identify the device.", + "description" : "Load preset settings to the features", "required" : true, "schema" : { - "$ref" : "#/definitions/AudioInputDevice" + "$ref" : "#/definitions/FeaturePresetIdentifier" } }; var schema = schemaWrapper.schema; @@ -44510,12 +51012,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceAudioInputDelete_body'); + var result = $('#d2e199_featuresetPresetPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -44524,24 +51026,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success. Returns default parameters.

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 404 - Audio input device not found

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - No preset found

    + + + +
    +
    +
    + +
    +
    @@ -44614,14 +51159,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -44657,14 +51202,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputPatch

    +

    featuresetPresetPost

    -

    Set audio input device parameters

    +

    Create a new preset from features settings.


    -
    /sdrangel/audio/input/parameters
    +
    /sdrangel/featureset/preset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +                            
    +
    FeaturePresetIdentifier *body = ; // save features settings on a new preset
     
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputPatchWith:body
    -              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +[apiInstance featuresetPresetPostWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44798,12 +51343,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +var body = ; // {FeaturePresetIdentifier} save features settings on a new preset
     
     
     var callback = function(error, data, response) {
    @@ -44813,14 +51358,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputPatch(body, callback);
    +api.featuresetPresetPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44829,22 +51374,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputPatchExample
    +    public class featuresetPresetPostExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    -            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings on a new preset
     
                 try
                 {
    -                AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +                PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPost: " + e.Message );
                 }
             }
         }
    @@ -44852,40 +51397,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | save features settings on a new preset
     
     try {
    -    $result = $api_instance->instanceAudioInputPatch($body);
    +    $result = $api_instance->featuresetPresetPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputPatch(body => $body);
    +    my $result = $api_instance->featuresetPresetPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44893,14 +51438,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | save features settings on a new preset
     
     try: 
    -    api_response = api_instance.instance_audio_input_patch(body)
    +    api_response = api_instance.featureset_preset_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetPresetPost: %s\n" % e)
    @@ -44923,10 +51468,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Audio input parameters. Index is used to identify the device. Only settable fields are considered.", + "description" : "save features settings on a new preset", "required" : true, "schema" : { - "$ref" : "#/definitions/AudioInputDevice" + "$ref" : "#/definitions/FeaturePresetIdentifier" } }; var schema = schemaWrapper.schema; @@ -44940,12 +51485,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceAudioInputPatch_body'); + var result = $('#d2e199_featuresetPresetPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -44954,24 +51499,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    +

    Status: 202 - On successful sending of the message the created preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 404 - Audio input device not found

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Feature set not found

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 409 - Preset already exists

    -
    -
    +
    +
    - +
    -
    -
    -
    -
    -
    -
    -

    instanceAudioOutputCleanupPatch

    -

    -
    -
    -
    -

    -

    Remove registered parameters for devices not in list of available output devices for this instance

    -

    -
    -
    /sdrangel/audio/output/cleanup
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/output/cleanup"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +                            

    Status: 500 - Error

    -import java.io.File; -import java.util.*; + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    featuresetPresetPut

    +

    +
    +
    +
    +

    +

    Update an existing preset with features settings.

    +

    +
    +
    /sdrangel/featureset/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/preset"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.FeatureSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class FeatureSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        try {
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.FeatureSetApi;
    +
    +public class FeatureSetApiExample {
    +
    +    public static void main(String[] args) {
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        try {
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    FeaturePresetIdentifier *body = ; // save features settings to the preset
    +
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +
    +[apiInstance featuresetPresetPutWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.FeatureSetApi()
    +
    +var body = ; // {FeaturePresetIdentifier} save features settings to the preset
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.featuresetPresetPut(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class featuresetPresetPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings to the preset
    +
    +            try
    +            {
    +                FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | save features settings to the preset
    +
    +try {
    +    $result = $api_instance->featuresetPresetPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::FeatureSetApi;
    +
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings to the preset
    +
    +eval { 
    +    my $result = $api_instance->featuresetPresetPut(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPut: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | save features settings to the preset
    +
    +try: 
    +    api_response = api_instance.featureset_preset_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling FeatureSetApi->featuresetPresetPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - No preset found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +

    Instance

    +
    +
    +
    +

    instanceAudioGet

    +

    +
    +
    +
    +

    +

    Get audio devices list available to this instance

    +

    +
    +
    /sdrangel/audio
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/audio"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            AudioDevices result = apiInstance.instanceAudioGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            AudioDevices result = apiInstance.instanceAudioGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioGetWithCompletionHandler: 
    +              ^(AudioDevices output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                AudioDevices result = apiInstance.instanceAudioGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputCleanupPatch

    +

    +
    +
    +
    +

    +

    Remove registered parameters for devices not in list of available input devices for this instance

    +

    +
    +
    /sdrangel/audio/input/cleanup
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/input/cleanup"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputCleanupPatchWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputCleanupPatch(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputCleanupPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputCleanupPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioInputCleanupPatch();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputCleanupPatch();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputCleanupPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_cleanup_patch()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputCleanupPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputDelete

    +

    +
    +
    +
    +

    +

    Delete audio input device parameters and return to defaults

    +

    +
    +
    /sdrangel/audio/input/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputDeleteWith:body
    +              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputDelete(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputDeleteExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +            try
    +            {
    +                AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputDelete: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +try {
    +    $result = $api_instance->instanceAudioInputDelete($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputDelete: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputDelete(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputDelete: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_delete(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputDelete: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns default parameters.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio input device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputPatch

    +

    +
    +
    +
    +

    +

    Set audio input device parameters

    +

    +
    +
    /sdrangel/audio/input/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputPatchWith:body
    +              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputPatch(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +            try
    +            {
    +                AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try {
    +    $result = $api_instance->instanceAudioInputPatch($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputPatch(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_patch(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio input device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputCleanupPatch

    +

    +
    +
    +
    +

    +

    Remove registered parameters for devices not in list of available output devices for this instance

    +

    +
    +
    /sdrangel/audio/output/cleanup
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/output/cleanup"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioOutputCleanupPatchWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioOutputCleanupPatch(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioOutputCleanupPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputCleanupPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_cleanup_patch()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputDelete

    +

    +
    +
    +
    +

    +

    Delete audio output device parameters and return to defaults

    +

    +
    +
    /sdrangel/audio/output/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        try {
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        try {
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioOutputDeleteWith:body
    +              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioOutputDelete(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioOutputDeleteExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +            try
    +            {
    +                AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputDelete: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +try {
    +    $result = $api_instance->instanceAudioOutputDelete($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputDelete: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioOutputDelete(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioOutputDelete: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_delete(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputDelete: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio output device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputPatch

    +

    +
    +
    +
    +

    +

    Set audio output device parameters

    +

    +
    +
    /sdrangel/audio/output/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputCleanupPatchWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceAudioOutputPatchWith:body
    +              completionHandler: ^(AudioOutputDevice output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45225,11 +54630,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -45237,14 +54645,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputCleanupPatch(callback);
    +api.instanceAudioOutputPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -45253,21 +54661,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputCleanupPatchExample
    +    public class instanceAudioOutputPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +                AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputCleanupPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputPatch: " + e.Message );
                 }
             }
         }
    @@ -45275,81 +54684,169 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     try {
    -    $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    $result = $api_instance->instanceAudioOutputPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    my $result = $api_instance->instanceAudioOutputPatch(body => $body);
         print Dumper($result);
     };
    -if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: $@\n";
    -}
    -
    +if ($@) { + warn "Exception when calling InstanceApi->instanceAudioOutputPatch: $@\n"; +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_patch(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + -# create an instance of the API class -api_instance = swagger_sdrangel.InstanceApi() +
    NameDescription
    body * + + + +
    +
    -try: - api_response = api_instance.instance_audio_output_cleanup_patch() - pprint(api_response) -except ApiException as e: - print("Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: %s\n" % e)
    -
    -
    -

    Parameters

    +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - Success.

    +

    Status: 404 - Audio output device not found

    -
    -
    +
    +
    - +
    @@ -45379,14 +54876,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -45422,14 +54919,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioOutputDelete

    +

    instanceChannels

    -

    Delete audio output device parameters and return to defaults

    +

    Get a list of channel plugins available in this instance


    -
    /sdrangel/audio/output/parameters
    +
    /sdrangel/channels

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    curl -X GET "http://localhost/sdrangel/channels?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -45512,47 +55009,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceChannels");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceChannels");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device.
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputDeleteWith:body
    -              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +[apiInstance instanceChannelsWith:direction
    +              completionHandler: ^(InstanceChannelsResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45563,13 +55060,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device.
    -
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -45578,14 +55076,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputDelete(body, callback);
    +api.instanceChannels(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -45594,22 +55092,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputDeleteExample
    +    public class instanceChannelsExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +                InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceChannels: " + e.Message );
                 }
             }
         }
    @@ -45617,40 +55115,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceAudioOutputDelete($body);
    +    $result = $api_instance->instanceChannels($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputDelete(body => $body);
    +    my $result = $api_instance->instanceChannels(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceChannels: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -45659,13 +55157,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_audio_output_delete(body)
    +    api_response = api_instance.instance_channels(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioOutputDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceChannels: %s\n" % e)
    @@ -45673,113 +55171,55 @@ except ApiException as e: -
    Body parameters
    + + +
    Query parameters
    - +
    Name Description
    body *
    direction - -
    +
    + 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) +
    + + +
    - -

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Audio output device not found

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -45809,14 +55249,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -45852,14 +55292,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioOutputPatch

    +

    instanceConfigGet

    -

    Set audio output device parameters

    +

    Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.


    -
    /sdrangel/audio/output/parameters
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    curl -X GET "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -45942,47 +55382,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +            InstanceConfigResponse result = apiInstance.instanceConfigGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +            InstanceConfigResponse result = apiInstance.instanceConfigGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputPatchWith:body
    -              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +[apiInstance instanceConfigGetWithCompletionHandler: 
    +              ^(InstanceConfigResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45993,14 +55430,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -46008,14 +55442,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputPatch(body, callback);
    +api.instanceConfigGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46024,22 +55458,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputPatchExample
    +    public class instanceConfigGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
                 try
                 {
    -                AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +                InstanceConfigResponse result = apiInstance.instanceConfigGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
                 }
             }
         }
    @@ -46047,169 +55480,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     try {
    -    $result = $api_instance->instanceAudioOutputPatch($body);
    +    $result = $api_instance->instanceConfigGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputPatch(body => $body);
    +    my $result = $api_instance->instanceConfigGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputPatch: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    -try: 
    -    api_response = api_instance.instance_audio_output_patch(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioOutputPatch: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
     
    -                            
    NameDescription
    body * - - - -
    -
    +# create an instance of the API class +api_instance = swagger_sdrangel.InstanceApi() +try: + api_response = api_instance.instance_config_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
    +
    +
    +

    Parameters

    -

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 404 - Audio output device not found

    +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -46239,14 +55584,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -46282,14 +55627,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceChannels

    +

    instanceConfigPatch

    -

    Get a list of channel plugins available in this instance

    +

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Presets and Commands if available in the payload are added. Channels in the working preset are added. Devices in the working preset are patched or added (upsert).


    -
    /sdrangel/channels
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/channels?direction="
    +
    +
    curl -X PATCH "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -46372,47 +55717,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +            SuccessResponse result = apiInstance.instanceConfigPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceChannels");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +            SuccessResponse result = apiInstance.instanceConfigPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceChannels");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +                            
    +
    InstanceConfigResponse *body = ; // Config information
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceChannelsWith:direction
    -              completionHandler: ^(InstanceChannelsResponse output, NSError* error) {
    +[apiInstance instanceConfigPatchWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -46423,14 +55768,13 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    +var body = ; // {InstanceConfigResponse} Config information
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -46439,14 +55783,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceChannels(opts, callback);
    +api.instanceConfigPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46455,22 +55799,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceChannelsExample
    +    public class instanceConfigPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
    +            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
     
                 try
                 {
    -                InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +                SuccessResponse result = apiInstance.instanceConfigPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceChannels: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigPatch: " + e.Message );
                 }
             }
         }
    @@ -46478,40 +55822,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +$body = ; // InstanceConfigResponse | Config information
     
     try {
    -    $result = $api_instance->instanceChannels($direction);
    +    $result = $api_instance->instanceConfigPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
     
     eval { 
    -    my $result = $api_instance->instanceChannels(direction => $direction);
    +    my $result = $api_instance->instanceConfigPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceChannels: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -46520,13 +55864,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +body =  # InstanceConfigResponse | Config information
     
     try: 
    -    api_response = api_instance.instance_channels(direction=direction)
    +    api_response = api_instance.instance_config_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceChannels: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigPatch: %s\n" % e)
    @@ -46534,55 +55878,70 @@ except ApiException as e: - - -
    Query parameters
    +
    Body parameters
    - +
    Name Description
    direction
    body * -
    -
    -
    - - Integer - + +
    + +

    Responses

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -46612,14 +55971,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46655,14 +56014,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigGet

    +

    instanceConfigPut

    -

    Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.

    +

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.


    -
    /sdrangel/config
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/config"
    +
    +
    curl -X PUT "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -46745,44 +56104,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +            SuccessResponse result = apiInstance.instanceConfigPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +            SuccessResponse result = apiInstance.instanceConfigPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    InstanceConfigResponse *body = ; // Config information
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigGetWithCompletionHandler: 
    -              ^(InstanceConfigResponse output, NSError* error) {
    +[apiInstance instanceConfigPutWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -46793,11 +56155,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {InstanceConfigResponse} Config information
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -46805,14 +56170,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigGet(callback);
    +api.instanceConfigPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46821,21 +56186,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigGetExample
    +    public class instanceConfigPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
     
                 try
                 {
    -                InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +                SuccessResponse result = apiInstance.instanceConfigPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
                 }
             }
         }
    @@ -46843,38 +56209,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // InstanceConfigResponse | Config information
     
     try {
    -    $result = $api_instance->instanceConfigGet();
    +    $result = $api_instance->instanceConfigPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
     
     eval { 
    -    my $result = $api_instance->instanceConfigGet();
    +    my $result = $api_instance->instanceConfigPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -46883,12 +56251,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # InstanceConfigResponse | Config information
     
     try: 
    -    api_response = api_instance.instance_config_get()
    +    api_response = api_instance.instance_config_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
    @@ -46896,6 +56265,48 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    @@ -46904,20 +56315,20 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46947,14 +56358,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46990,14 +56401,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigPatch

    +

    instanceConfigurationBlobPost

    -

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Presets and Commands if available in the payload are added. Channels in the working preset are added. Devices in the working preset are patched or added (upsert).

    +

    serialize a configuration to a base64 blob.


    -
    /sdrangel/config
    +
    /sdrangel/configuration/blob

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/config"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47080,47 +56491,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    InstanceConfigResponse *body = ; // Config information
    +                            
    +
    ConfigurationIdentifier *body = ; // configuration identification
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigPatchWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceConfigurationBlobPostWith:body
    +              completionHandler: ^(Base64Blob output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47131,12 +56542,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {InstanceConfigResponse} Config information
    +var body = ; // {ConfigurationIdentifier} configuration identification
     
     
     var callback = function(error, data, response) {
    @@ -47146,14 +56557,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigPatch(body, callback);
    +api.instanceConfigurationBlobPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47162,22 +56573,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigPatchExample
    +    public class instanceConfigurationBlobPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | configuration identification
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +                Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPost: " + e.Message );
                 }
             }
         }
    @@ -47185,40 +56596,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // InstanceConfigResponse | Config information
    +$body = ; // ConfigurationIdentifier | configuration identification
     
     try {
    -    $result = $api_instance->instanceConfigPatch($body);
    +    $result = $api_instance->instanceConfigurationBlobPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | configuration identification
     
     eval { 
    -    my $result = $api_instance->instanceConfigPatch(body => $body);
    +    my $result = $api_instance->instanceConfigurationBlobPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationBlobPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -47227,13 +56638,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # InstanceConfigResponse | Config information
    +body =  # ConfigurationIdentifier | configuration identification
     
     try: 
    -    api_response = api_instance.instance_config_patch(body)
    +    api_response = api_instance.instance_configuration_blob_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationBlobPost: %s\n" % e)
    @@ -47256,10 +56667,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Config information", + "description" : "configuration identification", "required" : true, "schema" : { - "$ref" : "#/definitions/InstanceConfigResponse" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -47273,12 +56684,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigPatch_body'); + var result = $('#d2e199_instanceConfigurationBlobPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -47287,24 +56698,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return blob

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Preset not found

    + + + +
    +
    +
    + +
    +
    @@ -47334,14 +56831,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -47377,14 +56874,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigPut

    +

    instanceConfigurationBlobPut

    -

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.

    +

    deserialize base64 blob to a new configuration.


    -
    /sdrangel/config
    +
    /sdrangel/configuration/blob

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/config"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47467,47 +56964,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    InstanceConfigResponse *body = ; // Config information
    +                            
    +
    Base64Blob *body = ; // Blob in base64 format
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigPutWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceConfigurationBlobPutWith:body
    +              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47518,12 +57015,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {InstanceConfigResponse} Config information
    +var body = ; // {Base64Blob} Blob in base64 format
     
     
     var callback = function(error, data, response) {
    @@ -47533,14 +57030,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigPut(body, callback);
    +api.instanceConfigurationBlobPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47549,22 +57046,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigPutExample
    +    public class instanceConfigurationBlobPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
    +            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceConfigPut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPut: " + e.Message );
                 }
             }
         }
    @@ -47572,40 +57069,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // InstanceConfigResponse | Config information
    +$body = ; // Base64Blob | Blob in base64 format
     
     try {
    -    $result = $api_instance->instanceConfigPut($body);
    +    $result = $api_instance->instanceConfigurationBlobPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
    +my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
     
     eval { 
    -    my $result = $api_instance->instanceConfigPut(body => $body);
    +    my $result = $api_instance->instanceConfigurationBlobPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationBlobPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -47614,13 +57111,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # InstanceConfigResponse | Config information
    +body =  # Base64Blob | Blob in base64 format
     
     try: 
    -    api_response = api_instance.instance_config_put(body)
    +    api_response = api_instance.instance_configuration_blob_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationBlobPut: %s\n" % e)
    @@ -47643,10 +57140,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Config information", + "description" : "Blob in base64 format", "required" : true, "schema" : { - "$ref" : "#/definitions/InstanceConfigResponse" + "$ref" : "#/definitions/Base64Blob" } }; var schema = schemaWrapper.schema; @@ -47660,12 +57157,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigPut_body'); + var result = $('#d2e199_instanceConfigurationBlobPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -47674,24 +57171,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return configuration identification

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    +
    @@ -47721,14 +57261,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -47764,14 +57304,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationBlobPost

    +

    instanceConfigurationDelete

    -

    serialize a configuration to a base64 blob.

    +

    Deletes a configuration


    -
    /sdrangel/configuration/blob
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration/blob"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47854,47 +57394,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
             try {
    -            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
             try {
    -            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // configuration identification
    +                            
    +
    ConfigurationIdentifier *body = ; // delete this configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationBlobPostWith:body
    -              completionHandler: ^(Base64Blob output, NSError* error) {
    +[apiInstance instanceConfigurationDeleteWith:body
    +              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47905,12 +57445,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} configuration identification
    +var body = ; // {ConfigurationIdentifier} delete this configuration
     
     
     var callback = function(error, data, response) {
    @@ -47920,14 +57460,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationBlobPost(body, callback);
    +api.instanceConfigurationDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47936,22 +57476,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationBlobPostExample
    +    public class instanceConfigurationDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | configuration identification
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | delete this configuration
     
                 try
                 {
    -                Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationDelete: " + e.Message );
                 }
             }
         }
    @@ -47959,40 +57499,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | configuration identification
    +$body = ; // ConfigurationIdentifier | delete this configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationBlobPost($body);
    +    $result = $api_instance->instanceConfigurationDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | configuration identification
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | delete this configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationBlobPost(body => $body);
    +    my $result = $api_instance->instanceConfigurationDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationBlobPost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48001,13 +57541,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | configuration identification
    +body =  # ConfigurationIdentifier | delete this configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_blob_post(body)
    +    api_response = api_instance.instance_configuration_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationBlobPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationDelete: %s\n" % e)
    @@ -48030,7 +57570,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "configuration identification", + "description" : "delete this configuration", "required" : true, "schema" : { "$ref" : "#/definitions/ConfigurationIdentifier" @@ -48047,12 +57587,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationBlobPost_body'); + var result = $('#d2e199_instanceConfigurationDelete_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48061,24 +57601,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return blob

    +

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -48108,14 +57648,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Preset not found

    +

    Status: 404 - Configuration not found

    -
    -
    +
    +
    - +
    @@ -48194,14 +57734,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48237,14 +57777,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationBlobPut

    +

    instanceConfigurationFilePost

    -

    deserialize base64 blob to a new configuration.

    +

    export a configuration to file.


    -
    /sdrangel/configuration/blob
    +
    /sdrangel/configuration/file

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration/blob"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -48327,46 +57867,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Base64Blob *body = ; // Blob in base64 format
    +                            
    +
    ConfigurationImportExport *body = ; // export details
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationBlobPutWith:body
    +[apiInstance instanceConfigurationFilePostWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -48378,12 +57918,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {Base64Blob} Blob in base64 format
    +var body = ; // {ConfigurationImportExport} export details
     
     
     var callback = function(error, data, response) {
    @@ -48393,14 +57933,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationBlobPut(body, callback);
    +api.instanceConfigurationFilePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -48409,22 +57949,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationBlobPutExample
    +    public class instanceConfigurationFilePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
    +            var body = new ConfigurationImportExport(); // ConfigurationImportExport | export details
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePost: " + e.Message );
                 }
             }
         }
    @@ -48432,40 +57972,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // Base64Blob | Blob in base64 format
    +$body = ; // ConfigurationImportExport | export details
     
     try {
    -    $result = $api_instance->instanceConfigurationBlobPut($body);
    +    $result = $api_instance->instanceConfigurationFilePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationFilePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
    +my $body = SWGSDRangel::Object::ConfigurationImportExport->new(); # ConfigurationImportExport | export details
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationBlobPut(body => $body);
    +    my $result = $api_instance->instanceConfigurationFilePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationBlobPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationFilePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48474,13 +58014,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # Base64Blob | Blob in base64 format
    +body =  # ConfigurationImportExport | export details
     
     try: 
    -    api_response = api_instance.instance_configuration_blob_put(body)
    +    api_response = api_instance.instance_configuration_file_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationBlobPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationFilePost: %s\n" % e)
    @@ -48503,10 +58043,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Blob in base64 format", + "description" : "export details", "required" : true, "schema" : { - "$ref" : "#/definitions/Base64Blob" + "$ref" : "#/definitions/ConfigurationImportExport" } }; var schema = schemaWrapper.schema; @@ -48520,12 +58060,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationBlobPut_body'); + var result = $('#d2e199_instanceConfigurationFilePost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48538,14 +58078,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48581,14 +58121,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Configuration or file path not found

    + + + +
    +
    +
    + +
    +
    @@ -48624,14 +58207,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48667,14 +58250,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationDelete

    +

    instanceConfigurationFilePut

    -

    Deletes a configuration

    +

    import a configuration from file as a new configuration.


    -
    /sdrangel/configuration
    +
    /sdrangel/configuration/file

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/configuration"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -48757,46 +58340,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
    +        FilePath body = ; // FilePath | File path
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
    +        FilePath body = ; // FilePath | File path
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // delete this configuration
    +                            
    +
    FilePath *body = ; // File path
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationDeleteWith:body
    +[apiInstance instanceConfigurationFilePutWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -48808,12 +58391,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} delete this configuration
    +var body = ; // {FilePath} File path
     
     
     var callback = function(error, data, response) {
    @@ -48823,14 +58406,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationDelete(body, callback);
    +api.instanceConfigurationFilePut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -48839,22 +58422,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationDeleteExample
    +    public class instanceConfigurationFilePutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | delete this configuration
    +            var body = new FilePath(); // FilePath | File path
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePut: " + e.Message );
                 }
             }
         }
    @@ -48862,40 +58445,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | delete this configuration
    +$body = ; // FilePath | File path
     
     try {
    -    $result = $api_instance->instanceConfigurationDelete($body);
    +    $result = $api_instance->instanceConfigurationFilePut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationFilePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | delete this configuration
    +my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationDelete(body => $body);
    +    my $result = $api_instance->instanceConfigurationFilePut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationFilePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48904,13 +58487,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | delete this configuration
    +body =  # FilePath | File path
     
     try: 
    -    api_response = api_instance.instance_configuration_delete(body)
    +    api_response = api_instance.instance_configuration_file_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationFilePut: %s\n" % e)
    @@ -48933,10 +58516,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "delete this configuration", + "description" : "File path", "required" : true, "schema" : { - "$ref" : "#/definitions/ConfigurationIdentifier" + "$ref" : "#/definitions/FilePath" } }; var schema = schemaWrapper.schema; @@ -48950,12 +58533,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationDelete_body'); + var result = $('#d2e199_instanceConfigurationFilePut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48964,22 +58547,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    +

    Status: 200 - On success return configuration identification

    -
    -
    +
    +
    - +
    @@ -49011,14 +58594,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Configuration not found

    +

    Status: 404 - File not found

    -
    -
    +
    +
    - +
    @@ -49097,14 +58680,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -49140,14 +58723,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationFilePost

    +

    instanceConfigurationPatch

    -

    export a configuration to file.

    +

    Load a configuration


    -
    /sdrangel/configuration/file
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration/file"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -49230,46 +58813,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationImportExport *body = ; // export details
    +                            
    +
    ConfigurationIdentifier *body = ; // Load configuration settings
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationFilePostWith:body
    +[apiInstance instanceConfigurationPatchWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -49281,12 +58864,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationImportExport} export details
    +var body = ; // {ConfigurationIdentifier} Load configuration settings
     
     
     var callback = function(error, data, response) {
    @@ -49296,14 +58879,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationFilePost(body, callback);
    +api.instanceConfigurationPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -49312,22 +58895,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationFilePostExample
    +    public class instanceConfigurationPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationImportExport(); // ConfigurationImportExport | export details
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | Load configuration settings
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPatch: " + e.Message );
                 }
             }
         }
    @@ -49335,40 +58918,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationImportExport | export details
    +$body = ; // ConfigurationIdentifier | Load configuration settings
     
     try {
    -    $result = $api_instance->instanceConfigurationFilePost($body);
    +    $result = $api_instance->instanceConfigurationPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationFilePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationImportExport->new(); # ConfigurationImportExport | export details
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | Load configuration settings
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationFilePost(body => $body);
    +    my $result = $api_instance->instanceConfigurationPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationFilePost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -49377,13 +58960,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationImportExport | export details
    +body =  # ConfigurationIdentifier | Load configuration settings
     
     try: 
    -    api_response = api_instance.instance_configuration_file_post(body)
    +    api_response = api_instance.instance_configuration_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationFilePost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPatch: %s\n" % e)
    @@ -49406,10 +58989,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "export details", + "description" : "Load configuration settings", "required" : true, "schema" : { - "$ref" : "#/definitions/ConfigurationImportExport" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -49423,12 +59006,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationFilePost_body'); + var result = $('#d2e199_instanceConfigurationPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -49437,22 +59020,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return configuration identification

    +

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -49484,14 +59067,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Configuration or file path not found

    +

    Status: 404 - No configuration found

    -
    -
    +
    +
    - +
    @@ -49570,14 +59153,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -49613,14 +59196,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationFilePut

    +

    instanceConfigurationPost

    -

    import a configuration from file as a new configuration.

    +

    Create a new configuration from the current setup.


    -
    /sdrangel/configuration/file
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration/file"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -49703,46 +59286,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FilePath *body = ; // File path
    +                            
    +
    ConfigurationIdentifier *body = ; // save setup in a new configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationFilePutWith:body
    +[apiInstance instanceConfigurationPostWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -49754,12 +59337,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FilePath} File path
    +var body = ; // {ConfigurationIdentifier} save setup in a new configuration
     
     
     var callback = function(error, data, response) {
    @@ -49769,14 +59352,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationFilePut(body, callback);
    +api.instanceConfigurationPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -49785,22 +59368,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationFilePutExample
    +    public class instanceConfigurationPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FilePath(); // FilePath | File path
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup in a new configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPost: " + e.Message );
                 }
             }
         }
    @@ -49808,40 +59391,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FilePath | File path
    +$body = ; // ConfigurationIdentifier | save setup in a new configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationFilePut($body);
    +    $result = $api_instance->instanceConfigurationPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationFilePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup in a new configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationFilePut(body => $body);
    +    my $result = $api_instance->instanceConfigurationPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationFilePut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -49850,13 +59433,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FilePath | File path
    +body =  # ConfigurationIdentifier | save setup in a new configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_file_put(body)
    +    api_response = api_instance.instance_configuration_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationFilePut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPost: %s\n" % e)
    @@ -49879,10 +59462,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "File path", + "description" : "save setup in a new configuration", "required" : true, "schema" : { - "$ref" : "#/definitions/FilePath" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -49896,12 +59479,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationFilePut_body'); + var result = $('#d2e199_instanceConfigurationPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -49910,22 +59493,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return configuration identification

    +

    Status: 202 - On successful sending of the message the created configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -49957,14 +59540,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - File not found

    +

    Status: 409 - Configuration already exists

    -
    -
    +
    +
    - +
    @@ -50043,14 +59626,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50086,14 +59669,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPatch

    +

    instanceConfigurationPut

    -

    Load a configuration

    +

    Update an existing configuration with current setup.


    -
    /sdrangel/configuration
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/configuration"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -50176,46 +59759,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // Load configuration settings
    +                            
    +
    ConfigurationIdentifier *body = ; // save setup to the configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPatchWith:body
    +[apiInstance instanceConfigurationPutWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -50227,12 +59810,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} Load configuration settings
    +var body = ; // {ConfigurationIdentifier} save setup to the configuration
     
     
     var callback = function(error, data, response) {
    @@ -50242,14 +59825,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPatch(body, callback);
    +api.instanceConfigurationPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -50258,22 +59841,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPatchExample
    +    public class instanceConfigurationPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | Load configuration settings
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup to the configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPut: " + e.Message );
                 }
             }
         }
    @@ -50281,40 +59864,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | Load configuration settings
    +$body = ; // ConfigurationIdentifier | save setup to the configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPatch($body);
    +    $result = $api_instance->instanceConfigurationPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | Load configuration settings
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup to the configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPatch(body => $body);
    +    my $result = $api_instance->instanceConfigurationPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -50323,13 +59906,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | Load configuration settings
    +body =  # ConfigurationIdentifier | save setup to the configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_patch(body)
    +    api_response = api_instance.instance_configuration_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPut: %s\n" % e)
    @@ -50352,7 +59935,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Load configuration settings", + "description" : "save setup to the configuration", "required" : true, "schema" : { "$ref" : "#/definitions/ConfigurationIdentifier" @@ -50369,12 +59952,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationPatch_body'); + var result = $('#d2e199_instanceConfigurationPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -50387,14 +59970,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50430,14 +60013,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50473,14 +60056,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50516,14 +60099,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50559,14 +60142,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPost

    +

    instanceConfigurationsGet

    -

    Create a new configuration from the current setup.

    +

    List all configurations in the instance


    -
    /sdrangel/configuration
    +
    /sdrangel/configurations

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration"
    +
    +
    curl -X GET "http://localhost/sdrangel/configurations"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -50649,47 +60232,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +            Configurations result = apiInstance.instanceConfigurationsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +            Configurations result = apiInstance.instanceConfigurationsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // save setup in a new configuration
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPostWith:body
    -              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
    +[apiInstance instanceConfigurationsGetWithCompletionHandler: 
    +              ^(Configurations output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -50700,14 +60280,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} save setup in a new configuration
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -50715,14 +60292,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPost(body, callback);
    +api.instanceConfigurationsGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -50731,22 +60308,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPostExample
    +    public class instanceConfigurationsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup in a new configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +                Configurations result = apiInstance.instanceConfigurationsGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationsGet: " + e.Message );
                 }
             }
         }
    @@ -50754,40 +60330,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | save setup in a new configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPost($body);
    +    $result = $api_instance->instanceConfigurationsGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup in a new configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPost(body => $body);
    +    my $result = $api_instance->instanceConfigurationsGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -50796,13 +60370,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | save setup in a new configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_post(body)
    +    api_response = api_instance.instance_configurations_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationsGet: %s\n" % e)
    @@ -50810,156 +60383,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the created configuration identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 409 - Configuration already exists

    +

    Status: 200 - On success return configurations list

    -
    -
    +
    +
    - +
    @@ -50989,14 +60434,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -51032,14 +60477,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPut

    +

    instanceDelete

    -

    Update an existing configuration with current setup.

    +

    Stop SDRangel instance (server only)


    -
    /sdrangel/configuration
    +
    /sdrangel

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration"
    +
    +
    curl -X DELETE "http://localhost/sdrangel"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -51122,47 +60567,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +            InstanceSummaryResponse result = apiInstance.instanceDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +            InstanceSummaryResponse result = apiInstance.instanceDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // save setup to the configuration
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPutWith:body
    -              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
    +[apiInstance instanceDeleteWithCompletionHandler: 
    +              ^(InstanceSummaryResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -51173,14 +60615,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} save setup to the configuration
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -51188,14 +60627,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPut(body, callback);
    +api.instanceDelete(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -51204,22 +60643,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPutExample
    +    public class instanceDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup to the configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +                InstanceSummaryResponse result = apiInstance.instanceDelete();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceDelete: " + e.Message );
                 }
             }
         }
    @@ -51227,40 +60665,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | save setup to the configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPut($body);
    +    $result = $api_instance->instanceDelete();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup to the configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPut(body => $body);
    +    my $result = $api_instance->instanceDelete();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -51269,13 +60705,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | save setup to the configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_put(body)
    +    api_response = api_instance.instance_delete()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceDelete: %s\n" % e)
    @@ -51283,113 +60718,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    +

    Status: 202 - Message to stop the SDRangel instance was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - No configuration found

    +

    Status: 400 - Unsupported (GUI instance)

    -
    -
    +
    +
    - +
    @@ -51462,14 +60812,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -51505,14 +60855,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationsGet

    +

    instanceDeviceSetsGet

    -

    List all configurations in the instance

    +

    Get summary information about device sets opened in the instance


    -
    /sdrangel/configurations
    +
    /sdrangel/devicesets

    -

    Usage and SDK Samples

    -

    -

    -
    -
    +
    +
    -

    instanceDelete

    +

    instanceDevices

    -

    Stop SDRangel instance (server only)

    +

    Get a list of sampling devices that can be used to take part in a device set


    -
    /sdrangel
    +
    /sdrangel/devices

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel"
    +
    +
    curl -X GET "http://localhost/sdrangel/devices?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -51930,44 +61280,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceDelete();
    +            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceDevices");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceDelete();
    +            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceDevices");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDeleteWithCompletionHandler: 
    -              ^(InstanceSummaryResponse output, NSError* error) {
    +[apiInstance instanceDevicesWith:direction
    +              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -51978,11 +61331,15 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -51990,14 +61347,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDelete(callback);
    +api.instanceDevices(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52006,21 +61363,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeleteExample
    +    public class instanceDevicesExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                InstanceSummaryResponse result = apiInstance.instanceDelete();
    +                InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceDevices: " + e.Message );
                 }
             }
         }
    @@ -52028,38 +61386,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceDelete();
    +    $result = $api_instance->instanceDevices($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceDelete();
    +    my $result = $api_instance->instanceDevices(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceDevices: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52068,12 +61428,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_delete()
    +    api_response = api_instance.instance_devices(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceDevices: %s\n" % e)
    @@ -52083,69 +61444,53 @@ except ApiException as e: +
    Query parameters
    + + + + + + +
    NameDescription
    direction -

    Responses

    -

    Status: 202 - Message to stop the SDRangel instance was sent successfully

    - - +
    +
    +
    + + Integer + -
    -
    -
    - -
    - -
    -
    +
    -

    Status: 400 - Unsupported (GUI instance)

    +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -52175,14 +61520,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52218,14 +61563,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetsGet

    +

    instanceFeaturePresetDelete

    -

    Get summary information about device sets opened in the instance

    +

    Deletes a feature preset


    -
    /sdrangel/devicesets
    +
    /sdrangel/featurepreset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/devicesets"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featurepreset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -52308,44 +61653,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    FeaturePresetIdentifier *body = ; // delete this feature preset
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDeviceSetsGetWithCompletionHandler: 
    -              ^(DeviceSetList output, NSError* error) {
    +[apiInstance instanceFeaturePresetDeleteWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -52356,11 +61704,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {FeaturePresetIdentifier} delete this feature preset
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -52368,14 +61719,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetsGet(callback);
    +api.instanceFeaturePresetDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52384,21 +61735,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetsGetExample
    +    public class instanceFeaturePresetDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | delete this feature preset
     
                 try
                 {
    -                DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +                FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetDelete: " + e.Message );
                 }
             }
         }
    @@ -52406,38 +61758,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // FeaturePresetIdentifier | delete this feature preset
     
     try {
    -    $result = $api_instance->instanceDeviceSetsGet();
    +    $result = $api_instance->instanceFeaturePresetDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDeviceSetsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeaturePresetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | delete this feature preset
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetsGet();
    +    my $result = $api_instance->instanceFeaturePresetDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDeviceSetsGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeaturePresetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52446,12 +61800,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # FeaturePresetIdentifier | delete this feature preset
     
     try: 
    -    api_response = api_instance.instance_device_sets_get()
    +    api_response = api_instance.instance_feature_preset_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDeviceSetsGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeaturePresetDelete: %s\n" % e)
    @@ -52459,28 +61814,156 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the selected feature preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - On success return device set list

    +

    Status: 404 - Preset not found

    -
    -
    +
    +
    - +
    @@ -52510,14 +61993,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52553,14 +62036,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDevices

    +

    instanceFeaturePresetGet

    -

    Get a list of sampling devices that can be used to take part in a device set

    +

    List all feature presets in the instance


    -
    /sdrangel/devices
    +
    /sdrangel/featurepresets

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/devices?direction="
    +
    +
    curl -X GET "http://localhost/sdrangel/featurepresets"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -52643,47 +62126,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDevices");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDevices");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDevicesWith:direction
    -              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
    +[apiInstance instanceFeaturePresetGetWithCompletionHandler: 
    +              ^(FeaturePresets output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -52694,15 +62174,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -52710,14 +62186,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDevices(opts, callback);
    +api.instanceFeaturePresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52726,22 +62202,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDevicesExample
    +    public class instanceFeaturePresetGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +                FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDevices: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetGet: " + e.Message );
                 }
             }
         }
    @@ -52749,40 +62224,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceDevices($direction);
    +    $result = $api_instance->instanceFeaturePresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeaturePresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceDevices(direction => $direction);
    +    my $result = $api_instance->instanceFeaturePresetGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDevices: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeaturePresetGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52791,13 +62264,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_devices(direction=direction)
    +    api_response = api_instance.instance_feature_preset_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDevices: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeaturePresetGet: %s\n" % e)
    @@ -52807,53 +62279,26 @@ except ApiException as e: -
    Query parameters
    - - - - - - - - - -
    NameDescription
    direction - - -
    -
    -
    - - Integer - - -
    - 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) -
    -
    -
    -
    -

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return feature preset list

    -
    -
    +
    +
    - +
    @@ -52883,14 +62328,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52926,14 +62371,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeaturePresetDelete

    +

    instanceFeatures

    -

    Deletes a feature preset

    +

    Get a list of feature plugins available in this instance


    -
    /sdrangel/featurepreset
    +
    /sdrangel/features

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featurepreset"
    +
    +
    curl -X GET "http://localhost/sdrangel/features"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53016,47 +62461,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceFeatures");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceFeatures");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // delete this feature preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturePresetDeleteWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance instanceFeaturesWithCompletionHandler: 
    +              ^(InstanceFeaturesResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53067,14 +62509,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FeaturePresetIdentifier} delete this feature preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -53082,14 +62521,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeaturePresetDelete(body, callback);
    +api.instanceFeatures(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53098,22 +62537,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturePresetDeleteExample
    +    public class instanceFeaturesExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | delete this feature preset
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +                InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeatures: " + e.Message );
                 }
             }
         }
    @@ -53121,40 +62559,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FeaturePresetIdentifier | delete this feature preset
     
     try {
    -    $result = $api_instance->instanceFeaturePresetDelete($body);
    +    $result = $api_instance->instanceFeatures();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeaturePresetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeatures: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | delete this feature preset
     
     eval { 
    -    my $result = $api_instance->instanceFeaturePresetDelete(body => $body);
    +    my $result = $api_instance->instanceFeatures();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeaturePresetDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeatures: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53163,13 +62599,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FeaturePresetIdentifier | delete this feature preset
     
     try: 
    -    api_response = api_instance.instance_feature_preset_delete(body)
    +    api_response = api_instance.instance_features()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeaturePresetDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeatures: %s\n" % e)
    @@ -53177,156 +62612,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected feature preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Preset not found

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -53356,14 +62663,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -53399,14 +62706,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeaturePresetGet

    +

    instanceLocationGet

    -

    List all feature presets in the instance

    +

    Get instance geolocation information


    -
    /sdrangel/featurepresets
    +
    /sdrangel/location

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featurepresets"
    +
    +
    curl -X GET "http://localhost/sdrangel/location"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53490,17 +62797,17 @@ public class InstanceApiExample {
             
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
    @@ -53508,25 +62815,25 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturePresetGetWithCompletionHandler: 
    -              ^(FeaturePresets output, NSError* error) {
    +[apiInstance instanceLocationGetWithCompletionHandler: 
    +              ^(LocationInformation output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53537,7 +62844,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
    @@ -53549,14 +62856,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeaturePresetGet(callback);
    +api.instanceLocationGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53565,7 +62872,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturePresetGetExample
    +    public class instanceLocationGetExample
         {
             public void main()
             {
    @@ -53574,12 +62881,12 @@ namespace Example
     
                 try
                 {
    -                FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +                LocationInformation result = apiInstance.instanceLocationGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLocationGet: " + e.Message );
                 }
             }
         }
    @@ -53587,22 +62894,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
     
     try {
    -    $result = $api_instance->instanceFeaturePresetGet();
    +    $result = $api_instance->instanceLocationGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeaturePresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
    @@ -53610,15 +62917,15 @@ use SWGSDRangel::InstanceApi;
     my $api_instance = SWGSDRangel::InstanceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceFeaturePresetGet();
    +    my $result = $api_instance->instanceLocationGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeaturePresetGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLocationGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53629,10 +62936,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.InstanceApi()
     
     try: 
    -    api_response = api_instance.instance_feature_preset_get()
    +    api_response = api_instance.instance_location_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeaturePresetGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLocationGet: %s\n" % e)
    @@ -53644,24 +62951,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return feature preset list

    +

    Status: 200 - On success return location

    -
    -
    +
    +
    - +
    @@ -53691,14 +62998,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -53734,14 +63041,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeatures

    +

    instanceLocationPut

    -

    Get a list of feature plugins available in this instance

    +

    Set instance geolocation information


    -
    /sdrangel/features
    +
    /sdrangel/location

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/features"
    +
    +
    curl -X PUT "http://localhost/sdrangel/location"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53824,44 +63131,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
             try {
    -            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +            LocationInformation result = apiInstance.instanceLocationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeatures");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
             try {
    -            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +            LocationInformation result = apiInstance.instanceLocationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeatures");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    LocationInformation *body = ; // Location of instance in latitude and longitude
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturesWithCompletionHandler: 
    -              ^(InstanceFeaturesResponse output, NSError* error) {
    +[apiInstance instanceLocationPutWith:body
    +              completionHandler: ^(LocationInformation output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53872,11 +63182,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {LocationInformation} Location of instance in latitude and longitude
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -53884,14 +63197,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeatures(callback);
    +api.instanceLocationPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53900,21 +63213,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturesExample
    +    public class instanceLocationPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
     
                 try
                 {
    -                InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +                LocationInformation result = apiInstance.instanceLocationPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeatures: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLocationPut: " + e.Message );
                 }
             }
         }
    @@ -53922,38 +63236,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // LocationInformation | Location of instance in latitude and longitude
     
     try {
    -    $result = $api_instance->instanceFeatures();
    +    $result = $api_instance->instanceLocationPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeatures: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::LocationInformation->new(); # LocationInformation | Location of instance in latitude and longitude
     
     eval { 
    -    my $result = $api_instance->instanceFeatures();
    +    my $result = $api_instance->instanceLocationPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeatures: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLocationPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53962,12 +63278,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # LocationInformation | Location of instance in latitude and longitude
     
     try: 
    -    api_response = api_instance.instance_features()
    +    api_response = api_instance.instance_location_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeatures: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLocationPut: %s\n" % e)
    @@ -53975,28 +63292,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return location

    -
    -
    +
    +
    - +
    +

    Status: 400 - Location invalid

    + + + +
    +
    +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    @@ -54069,14 +63436,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLocationGet

    +

    instanceLoggingGet

    -

    Get instance geolocation information

    +

    Get logging information for this instance


    -
    /sdrangel/location
    +
    /sdrangel/logging

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/location"
    +
    +
    curl -X GET "http://localhost/sdrangel/logging"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54160,17 +63527,17 @@ public class InstanceApiExample {
             
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
    @@ -54178,25 +63545,25 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLocationGetWithCompletionHandler: 
    -              ^(LocationInformation output, NSError* error) {
    +[apiInstance instanceLoggingGetWithCompletionHandler: 
    +              ^(LoggingInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54207,7 +63574,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
    @@ -54219,14 +63586,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLocationGet(callback);
    +api.instanceLoggingGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54235,7 +63602,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLocationGetExample
    +    public class instanceLoggingGetExample
         {
             public void main()
             {
    @@ -54244,12 +63611,12 @@ namespace Example
     
                 try
                 {
    -                LocationInformation result = apiInstance.instanceLocationGet();
    +                LoggingInfo result = apiInstance.instanceLoggingGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLocationGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLoggingGet: " + e.Message );
                 }
             }
         }
    @@ -54257,22 +63624,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
     
     try {
    -    $result = $api_instance->instanceLocationGet();
    +    $result = $api_instance->instanceLoggingGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
    @@ -54280,15 +63647,15 @@ use SWGSDRangel::InstanceApi;
     my $api_instance = SWGSDRangel::InstanceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceLocationGet();
    +    my $result = $api_instance->instanceLoggingGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLocationGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLoggingGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -54299,10 +63666,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.InstanceApi()
     
     try: 
    -    api_response = api_instance.instance_location_get()
    +    api_response = api_instance.instance_logging_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLocationGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLoggingGet: %s\n" % e)
    @@ -54314,24 +63681,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return location

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -54361,14 +63728,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -54404,14 +63771,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLocationPut

    +

    instanceLoggingPut

    -

    Set instance geolocation information

    +

    Change logging parameters for this instance


    -
    /sdrangel/location
    +
    /sdrangel/logging

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/location"
    +
    +
    curl -X PUT "http://localhost/sdrangel/logging"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54494,47 +63861,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    +        LoggingInfo body = ; // LoggingInfo | Logging information
             try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    +            LoggingInfo result = apiInstance.instanceLoggingPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    +        LoggingInfo body = ; // LoggingInfo | Logging information
             try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    +            LoggingInfo result = apiInstance.instanceLoggingPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    LocationInformation *body = ; // Location of instance in latitude and longitude
    +                            
    +
    LoggingInfo *body = ; // Logging information
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLocationPutWith:body
    -              completionHandler: ^(LocationInformation output, NSError* error) {
    +[apiInstance instanceLoggingPutWith:body
    +              completionHandler: ^(LoggingInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54545,12 +63912,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {LocationInformation} Location of instance in latitude and longitude
    +var body = ; // {LoggingInfo} Logging information
     
     
     var callback = function(error, data, response) {
    @@ -54560,14 +63927,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLocationPut(body, callback);
    +api.instanceLoggingPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54576,22 +63943,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLocationPutExample
    +    public class instanceLoggingPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
    +            var body = new LoggingInfo(); // LoggingInfo | Logging information
     
                 try
                 {
    -                LocationInformation result = apiInstance.instanceLocationPut(body);
    +                LoggingInfo result = apiInstance.instanceLoggingPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLocationPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLoggingPut: " + e.Message );
                 }
             }
         }
    @@ -54599,40 +63966,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // LocationInformation | Location of instance in latitude and longitude
    +$body = ; // LoggingInfo | Logging information
     
     try {
    -    $result = $api_instance->instanceLocationPut($body);
    +    $result = $api_instance->instanceLoggingPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::LocationInformation->new(); # LocationInformation | Location of instance in latitude and longitude
    +my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
     
     eval { 
    -    my $result = $api_instance->instanceLocationPut(body => $body);
    +    my $result = $api_instance->instanceLoggingPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLocationPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLoggingPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -54641,13 +64008,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # LocationInformation | Location of instance in latitude and longitude
    +body =  # LoggingInfo | Logging information
     
     try: 
    -    api_response = api_instance.instance_location_put(body)
    +    api_response = api_instance.instance_logging_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLocationPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLoggingPut: %s\n" % e)
    @@ -54670,10 +64037,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Location of instance in latitude and longitude", + "description" : "Logging information", "required" : true, "schema" : { - "$ref" : "#/definitions/LocationInformation" + "$ref" : "#/definitions/LoggingInfo" } }; var schema = schemaWrapper.schema; @@ -54687,12 +64054,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceLocationPut_body'); + var result = $('#d2e199_instanceLoggingPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -54701,24 +64068,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return location

    +

    Status: 200 - Return new data on success

    -
    -
    +
    +
    - +
    -

    Status: 400 - Location invalid

    +

    Status: 400 - Invalid data

    +
    +
    + +
    + +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    @@ -54799,14 +64201,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLoggingGet

    +

    instancePresetBlobPost

    -

    Get logging information for this instance

    +

    serialize a preset to a base64 blob.


    -
    /sdrangel/logging
    +
    /sdrangel/preset/blob

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/logging"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54889,44 +64291,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        PresetIdentifier body = ; // PresetIdentifier | Preset identification
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    +            Base64Blob result = apiInstance.instancePresetBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        PresetIdentifier body = ; // PresetIdentifier | Preset identification
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    +            Base64Blob result = apiInstance.instancePresetBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    PresetIdentifier *body = ; // Preset identification
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLoggingGetWithCompletionHandler: 
    -              ^(LoggingInfo output, NSError* error) {
    +[apiInstance instancePresetBlobPostWith:body
    +              completionHandler: ^(Base64Blob output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54937,11 +64342,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {PresetIdentifier} Preset identification
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -54949,14 +64357,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLoggingGet(callback);
    +api.instancePresetBlobPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54965,21 +64373,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLoggingGetExample
    +    public class instancePresetBlobPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new PresetIdentifier(); // PresetIdentifier | Preset identification
     
                 try
                 {
    -                LoggingInfo result = apiInstance.instanceLoggingGet();
    +                Base64Blob result = apiInstance.instancePresetBlobPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLoggingGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPost: " + e.Message );
                 }
             }
         }
    @@ -54987,38 +64396,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // PresetIdentifier | Preset identification
     
     try {
    -    $result = $api_instance->instanceLoggingGet();
    +    $result = $api_instance->instancePresetBlobPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetBlobPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | Preset identification
     
     eval { 
    -    my $result = $api_instance->instanceLoggingGet();
    +    my $result = $api_instance->instancePresetBlobPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLoggingGet: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetBlobPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55027,12 +64438,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # PresetIdentifier | Preset identification
     
     try: 
    -    api_response = api_instance.instance_logging_get()
    +    api_response = api_instance.instance_preset_blob_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLoggingGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetBlobPost: %s\n" % e)
    @@ -55040,28 +64452,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return blob

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Preset not found

    + + + +
    +
    +
    + +
    +
    @@ -55091,14 +64631,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -55134,14 +64674,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLoggingPut

    +

    instancePresetBlobPut

    -

    Change logging parameters for this instance

    +

    deserialize base64 blob to a new preset.


    -
    /sdrangel/logging
    +
    /sdrangel/preset/blob

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/logging"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -55224,47 +64764,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    LoggingInfo *body = ; // Logging information
    +                            
    +
    Base64Blob *body = ; // Blob in base64 format
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLoggingPutWith:body
    -              completionHandler: ^(LoggingInfo output, NSError* error) {
    +[apiInstance instancePresetBlobPutWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -55275,12 +64815,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {LoggingInfo} Logging information
    +var body = ; // {Base64Blob} Blob in base64 format
     
     
     var callback = function(error, data, response) {
    @@ -55290,14 +64830,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLoggingPut(body, callback);
    +api.instancePresetBlobPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -55306,22 +64846,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLoggingPutExample
    +    public class instancePresetBlobPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new LoggingInfo(); // LoggingInfo | Logging information
    +            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
     
                 try
                 {
    -                LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +                PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLoggingPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPut: " + e.Message );
                 }
             }
         }
    @@ -55329,40 +64869,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // LoggingInfo | Logging information
    +$body = ; // Base64Blob | Blob in base64 format
     
     try {
    -    $result = $api_instance->instanceLoggingPut($body);
    +    $result = $api_instance->instancePresetBlobPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetBlobPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
    +my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
     
     eval { 
    -    my $result = $api_instance->instanceLoggingPut(body => $body);
    +    my $result = $api_instance->instancePresetBlobPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLoggingPut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetBlobPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55371,13 +64911,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # LoggingInfo | Logging information
    +body =  # Base64Blob | Blob in base64 format
     
     try: 
    -    api_response = api_instance.instance_logging_put(body)
    +    api_response = api_instance.instance_preset_blob_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLoggingPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetBlobPut: %s\n" % e)
    @@ -55400,10 +64940,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Logging information", + "description" : "Blob in base64 format", "required" : true, "schema" : { - "$ref" : "#/definitions/LoggingInfo" + "$ref" : "#/definitions/Base64Blob" } }; var schema = schemaWrapper.schema; @@ -55417,12 +64957,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceLoggingPut_body'); + var result = $('#d2e199_instancePresetBlobPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -55431,24 +64971,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Return new data on success

    +

    Status: 200 - On success return preset identification

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid data

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    @@ -55521,14 +65061,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55564,14 +65104,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetBlobPost

    +

    instancePresetDelete

    -

    serialize a preset to a base64 blob.

    +

    Deletes a preset


    -
    /sdrangel/preset/blob
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset/blob"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -55654,47 +65194,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | Preset identification
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | Preset identification
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetIdentifier *body = ; // Preset identification
    +                            
    +
    PresetIdentifier *body = ; // delete this preset
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetBlobPostWith:body
    -              completionHandler: ^(Base64Blob output, NSError* error) {
    +[apiInstance instancePresetDeleteWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -55705,12 +65245,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetIdentifier} Preset identification
    +var body = ; // {PresetIdentifier} delete this preset
     
     
     var callback = function(error, data, response) {
    @@ -55720,14 +65260,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetBlobPost(body, callback);
    +api.instancePresetDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -55736,22 +65276,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetBlobPostExample
    +    public class instancePresetDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetIdentifier(); // PresetIdentifier | Preset identification
    +            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
     
                 try
                 {
    -                Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +                PresetIdentifier result = apiInstance.instancePresetDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetDelete: " + e.Message );
                 }
             }
         }
    @@ -55759,40 +65299,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetIdentifier | Preset identification
    +$body = ; // PresetIdentifier | delete this preset
     
     try {
    -    $result = $api_instance->instancePresetBlobPost($body);
    +    $result = $api_instance->instancePresetDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetBlobPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | Preset identification
    +my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | delete this preset
     
     eval { 
    -    my $result = $api_instance->instancePresetBlobPost(body => $body);
    +    my $result = $api_instance->instancePresetDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetBlobPost: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55801,13 +65341,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetIdentifier | Preset identification
    +body =  # PresetIdentifier | delete this preset
     
     try: 
    -    api_response = api_instance.instance_preset_blob_post(body)
    +    api_response = api_instance.instance_preset_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetBlobPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetDelete: %s\n" % e)
    @@ -55830,7 +65370,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Preset identification", + "description" : "delete this preset", "required" : true, "schema" : { "$ref" : "#/definitions/PresetIdentifier" @@ -55847,12 +65387,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetBlobPost_body'); + var result = $('#d2e199_instancePresetDelete_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -55861,24 +65401,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return blob

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    @@ -55908,14 +65448,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55951,14 +65491,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55994,14 +65534,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56037,14 +65577,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetBlobPut

    +

    instancePresetFilePost

    -

    deserialize base64 blob to a new preset.

    +

    export a preset to file (server only).


    -
    /sdrangel/preset/blob
    +
    /sdrangel/preset/file

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset/blob"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -56127,46 +65667,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Base64Blob *body = ; // Blob in base64 format
    +                            
    +
    PresetExport *body = ; // export details
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetBlobPutWith:body
    +[apiInstance instancePresetFilePostWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -56178,12 +65718,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {Base64Blob} Blob in base64 format
    +var body = ; // {PresetExport} export details
     
     
     var callback = function(error, data, response) {
    @@ -56193,14 +65733,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetBlobPut(body, callback);
    +api.instancePresetFilePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -56209,22 +65749,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetBlobPutExample
    +    public class instancePresetFilePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
    +            var body = new PresetExport(); // PresetExport | export details
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +                PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetFilePost: " + e.Message );
                 }
             }
         }
    @@ -56232,40 +65772,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // Base64Blob | Blob in base64 format
    +$body = ; // PresetExport | export details
     
     try {
    -    $result = $api_instance->instancePresetBlobPut($body);
    +    $result = $api_instance->instancePresetFilePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetBlobPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetFilePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
    +my $body = SWGSDRangel::Object::PresetExport->new(); # PresetExport | export details
     
     eval { 
    -    my $result = $api_instance->instancePresetBlobPut(body => $body);
    +    my $result = $api_instance->instancePresetFilePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetBlobPut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetFilePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -56274,13 +65814,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # Base64Blob | Blob in base64 format
    +body =  # PresetExport | export details
     
     try: 
    -    api_response = api_instance.instance_preset_blob_put(body)
    +    api_response = api_instance.instance_preset_file_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetBlobPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetFilePost: %s\n" % e)
    @@ -56303,10 +65843,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Blob in base64 format", + "description" : "export details", "required" : true, "schema" : { - "$ref" : "#/definitions/Base64Blob" + "$ref" : "#/definitions/PresetExport" } }; var schema = schemaWrapper.schema; @@ -56320,12 +65860,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetBlobPut_body'); + var result = $('#d2e199_instancePresetFilePost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -56338,14 +65878,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56381,14 +65921,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Preset or file path not found

    + + + +
    +
    +
    + +
    +
    @@ -56424,14 +66007,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56467,14 +66050,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetDelete

    +

    instancePresetFilePut

    -

    Deletes a preset

    +

    import a preset from file as a new preset.


    -
    /sdrangel/preset
    +
    /sdrangel/preset/file

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/preset"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -56557,46 +66140,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    +        FilePath body = ; // FilePath | File path
             try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    +        FilePath body = ; // FilePath | File path
             try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetIdentifier *body = ; // delete this preset
    +                            
    +
    FilePath *body = ; // File path
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetDeleteWith:body
    +[apiInstance instancePresetFilePutWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -56608,12 +66191,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetIdentifier} delete this preset
    +var body = ; // {FilePath} File path
     
     
     var callback = function(error, data, response) {
    @@ -56623,14 +66206,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetDelete(body, callback);
    +api.instancePresetFilePut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -56639,22 +66222,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetDeleteExample
    +    public class instancePresetFilePutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
    +            var body = new FilePath(); // FilePath | File path
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +                PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetFilePut: " + e.Message );
                 }
             }
         }
    @@ -56662,40 +66245,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetIdentifier | delete this preset
    +$body = ; // FilePath | File path
     
     try {
    -    $result = $api_instance->instancePresetDelete($body);
    +    $result = $api_instance->instancePresetFilePut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetFilePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | delete this preset
    +my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
     
     eval { 
    -    my $result = $api_instance->instancePresetDelete(body => $body);
    +    my $result = $api_instance->instancePresetFilePut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetFilePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -56704,13 +66287,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetIdentifier | delete this preset
    +body =  # FilePath | File path
     
     try: 
    -    api_response = api_instance.instance_preset_delete(body)
    +    api_response = api_instance.instance_preset_file_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetFilePut: %s\n" % e)
    @@ -56733,10 +66316,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "delete this preset", + "description" : "File path", "required" : true, "schema" : { - "$ref" : "#/definitions/PresetIdentifier" + "$ref" : "#/definitions/FilePath" } }; var schema = schemaWrapper.schema; @@ -56750,12 +66333,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetDelete_body'); + var result = $('#d2e199_instancePresetFilePut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -56764,22 +66347,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return preset identification

    -
    -
    +
    +
    - +
    @@ -56811,14 +66394,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Preset not found

    +

    Status: 404 - File not found

    -
    -
    +
    +
    - +
    @@ -56897,14 +66480,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56940,14 +66523,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetFilePost

    +

    instancePresetGet

    -

    export a preset to file (server only).

    +

    List all presets in the instance


    -
    /sdrangel/preset/file
    +
    /sdrangel/presets

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset/file"
    +
    +
    curl -X GET "http://localhost/sdrangel/presets"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57030,47 +66613,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +            Presets result = apiInstance.instancePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +            Presets result = apiInstance.instancePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetExport *body = ; // export details
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetFilePostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instancePresetGetWithCompletionHandler: 
    +              ^(Presets output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -57081,14 +66661,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetExport} export details
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -57096,14 +66673,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetFilePost(body, callback);
    +api.instancePresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -57112,22 +66689,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetFilePostExample
    +    public class instancePresetGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetExport(); // PresetExport | export details
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +                Presets result = apiInstance.instancePresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetFilePost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetGet: " + e.Message );
                 }
             }
         }
    @@ -57135,212 +66711,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetExport | export details
     
     try {
    -    $result = $api_instance->instancePresetFilePost($body);
    +    $result = $api_instance->instancePresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetFilePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetExport->new(); # PresetExport | export details
     
     eval { 
    -    my $result = $api_instance->instancePresetFilePost(body => $body);
    +    my $result = $api_instance->instancePresetGet();
         print Dumper($result);
     };
    -if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetFilePost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetExport | export details
    -
    -try: 
    -    api_response = api_instance.instance_preset_file_post(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetFilePost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 200 - On success return preset identification

    - - - -
    -
    -
    - -
    - -
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_preset_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instancePresetGet: %s\n" % e)
    +
    -

    Status: 400 - Invalid JSON request

    +

    Parameters

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 404 - Preset or file path not found

    + +

    Responses

    +

    Status: 200 - On success return preset list

    -
    -
    +
    +
    - +
    @@ -57370,14 +66815,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -57413,14 +66858,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetFilePut

    +

    instancePresetPatch

    -

    import a preset from file as a new preset.

    +

    Load a preset in a device set


    -
    /sdrangel/preset/file
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset/file"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57503,46 +66948,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FilePath *body = ; // File path
    +                            
    +
    PresetTransfer *body = ; // Load preset settings to the device set
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetFilePutWith:body
    +[apiInstance instancePresetPatchWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -57554,12 +66999,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FilePath} File path
    +var body = ; // {PresetTransfer} Load preset settings to the device set
     
     
     var callback = function(error, data, response) {
    @@ -57569,14 +67014,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetFilePut(body, callback);
    +api.instancePresetPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -57585,22 +67030,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetFilePutExample
    +    public class instancePresetPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FilePath(); // FilePath | File path
    +            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +                PresetIdentifier result = apiInstance.instancePresetPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetFilePut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPatch: " + e.Message );
                 }
             }
         }
    @@ -57608,40 +67053,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FilePath | File path
    +$body = ; // PresetTransfer | Load preset settings to the device set
     
     try {
    -    $result = $api_instance->instancePresetFilePut($body);
    +    $result = $api_instance->instancePresetPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetFilePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | Load preset settings to the device set
     
     eval { 
    -    my $result = $api_instance->instancePresetFilePut(body => $body);
    +    my $result = $api_instance->instancePresetPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetFilePut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -57650,13 +67095,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FilePath | File path
    +body =  # PresetTransfer | Load preset settings to the device set
     
     try: 
    -    api_response = api_instance.instance_preset_file_put(body)
    +    api_response = api_instance.instance_preset_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetFilePut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetPatch: %s\n" % e)
    @@ -57679,10 +67124,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "File path", + "description" : "Load preset settings to the device set", "required" : true, "schema" : { - "$ref" : "#/definitions/FilePath" + "$ref" : "#/definitions/PresetTransfer" } }; var schema = schemaWrapper.schema; @@ -57696,12 +67141,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetFilePut_body'); + var result = $('#d2e199_instancePresetPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -57710,22 +67155,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return preset identification

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request

    +

    Status: 400 - Invalid JSON request or preset type and device set type mismatch

    -
    -
    +
    +
    - +
    -

    Status: 404 - File not found

    +

    Status: 404 - No preset or device set found

    -
    -
    +
    +
    - +
    @@ -57843,14 +67288,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -57886,14 +67331,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetGet

    +

    instancePresetPost

    -

    List all presets in the instance

    +

    Create a new preset from a device set settings. Frequency and type is ignored and taken from the the device set values.


    -
    /sdrangel/presets
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/presets"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57976,44 +67421,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            Presets result = apiInstance.instancePresetGet();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            Presets result = apiInstance.instancePresetGet();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    PresetTransfer *body = ; // save device set settings on a new preset
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetGetWithCompletionHandler: 
    -              ^(Presets output, NSError* error) {
    +[apiInstance instancePresetPostWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -58024,11 +67472,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {PresetTransfer} save device set settings on a new preset
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -58036,14 +67487,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetGet(callback);
    +api.instancePresetPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58052,21 +67503,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetGetExample
    +    public class instancePresetPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
     
                 try
                 {
    -                Presets result = apiInstance.instancePresetGet();
    +                PresetIdentifier result = apiInstance.instancePresetPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPost: " + e.Message );
                 }
             }
         }
    @@ -58074,81 +67526,255 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // PresetTransfer | save device set settings on a new preset
     
     try {
    -    $result = $api_instance->instancePresetGet();
    +    $result = $api_instance->instancePresetPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instancePresetGet();
    +    my $result = $api_instance->instancePresetPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetGet: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPost: $@\n";
     }
    -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    +                            
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # PresetTransfer | save device set settings on a new preset
    +
    +try: 
    +    api_response = api_instance.instance_preset_post(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instancePresetPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the created preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + -try: - api_response = api_instance.instance_preset_get() - pprint(api_response) -except ApiException as e: - print("Exception when calling InstanceApi->instancePresetGet: %s\n" % e)
    -
    -
    +
    +
    +
    + +
    + +
    +
    +

    Status: 404 - Device set not found

    + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - On success return preset list

    +

    Status: 409 - Preset already exists

    -
    -
    +
    +
    - +
    @@ -58178,14 +67804,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -58221,14 +67847,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPatch

    +

    instancePresetPut

    -

    Load a preset in a device set

    +

    Update an existing preset with device set settings.


    -
    /sdrangel/preset
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/preset"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -58311,46 +67937,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    +        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +            PresetIdentifier result = apiInstance.instancePresetPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    +        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +            PresetIdentifier result = apiInstance.instancePresetPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // Load preset settings to the device set
    +                            
    +
    PresetTransfer *body = ; // save device set settings to the preset
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPatchWith:body
    +[apiInstance instancePresetPutWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -58362,12 +67988,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} Load preset settings to the device set
    +var body = ; // {PresetTransfer} save device set settings to the preset
     
     
     var callback = function(error, data, response) {
    @@ -58377,14 +68003,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPatch(body, callback);
    +api.instancePresetPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58393,22 +68019,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPatchExample
    +    public class instancePresetPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
    +            var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +                PresetIdentifier result = apiInstance.instancePresetPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPut: " + e.Message );
                 }
             }
         }
    @@ -58416,40 +68042,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | Load preset settings to the device set
    +$body = ; // PresetTransfer | save device set settings to the preset
     
     try {
    -    $result = $api_instance->instancePresetPatch($body);
    +    $result = $api_instance->instancePresetPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | Load preset settings to the device set
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings to the preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPatch(body => $body);
    +    my $result = $api_instance->instancePresetPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -58458,13 +68084,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | Load preset settings to the device set
    +body =  # PresetTransfer | save device set settings to the preset
     
     try: 
    -    api_response = api_instance.instance_preset_patch(body)
    +    api_response = api_instance.instance_preset_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetPut: %s\n" % e)
    @@ -58487,7 +68113,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Load preset settings to the device set", + "description" : "save device set settings to the preset", "required" : true, "schema" : { "$ref" : "#/definitions/PresetTransfer" @@ -58504,12 +68130,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetPatch_body'); + var result = $('#d2e199_instancePresetPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -58522,14 +68148,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request or preset type and device set type mismatch

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    @@ -58608,14 +68234,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -58651,14 +68277,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -58694,14 +68320,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPost

    +

    instanceSummary

    -

    Create a new preset from a device set settings. Frequency and type is ignored and taken from the the device set values.

    +

    SDRangel instance summary


    -
    /sdrangel/preset
    +
    /sdrangel

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -58784,47 +68410,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    +            InstanceSummaryResponse result = apiInstance.instanceSummary();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPost");
    +            System.err.println("Exception when calling InstanceApi#instanceSummary");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    +            InstanceSummaryResponse result = apiInstance.instanceSummary();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPost");
    +            System.err.println("Exception when calling InstanceApi#instanceSummary");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // save device set settings on a new preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instanceSummaryWithCompletionHandler: 
    +              ^(InstanceSummaryResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -58835,14 +68458,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} save device set settings on a new preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -58850,14 +68470,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPost(body, callback);
    +api.instanceSummary(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58866,22 +68486,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPostExample
    +    public class instanceSummaryExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPost(body);
    +                InstanceSummaryResponse result = apiInstance.instanceSummary();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceSummary: " + e.Message );
                 }
             }
         }
    @@ -58889,255 +68508,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | save device set settings on a new preset
     
     try {
    -    $result = $api_instance->instancePresetPost($body);
    +    $result = $api_instance->instanceSummary();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPost(body => $body);
    +    my $result = $api_instance->instanceSummary();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | save device set settings on a new preset
    -
    -try: 
    -    api_response = api_instance.instance_preset_post(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - On successful sending of the message the created preset identification is returned

    - - - -
    -
    -
    - -
    - -
    + warn "Exception when calling InstanceApi->instanceSummary: $@\n"; +}
    -

    Status: 400 - Invalid JSON request

    - - +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
     
    -                            
    -
    -
    - -
    - -
    +try: + api_response = api_instance.instance_summary() + pprint(api_response) +except ApiException as e: + print("Exception when calling InstanceApi->instanceSummary: %s\n" % e)
    +
    -

    Status: 404 - Device set not found

    +

    Parameters

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 409 - Preset already exists

    + +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -59167,14 +68612,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -59210,14 +68655,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPut

    +

    instanceWindowsGet

    -

    Update an existing preset with device set settings.

    +

    List the windows of the GUI with their workspace and whether each is hidden (GUI)


    -
    /sdrangel/preset
    +
    /sdrangel/windows

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/windows"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -59300,47 +68745,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    +            WindowList result = apiInstance.instanceWindowsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPut");
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    +            WindowList result = apiInstance.instanceWindowsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPut");
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // save device set settings to the preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPutWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instanceWindowsGetWithCompletionHandler: 
    +              ^(WindowList output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -59351,14 +68793,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} save device set settings to the preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -59366,14 +68805,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPut(body, callback);
    +api.instanceWindowsGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -59382,22 +68821,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPutExample
    +    public class instanceWindowsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPut(body);
    +                WindowList result = apiInstance.instanceWindowsGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceWindowsGet: " + e.Message );
                 }
             }
         }
    @@ -59405,40 +68843,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | save device set settings to the preset
     
     try {
    -    $result = $api_instance->instancePresetPut($body);
    +    $result = $api_instance->instanceWindowsGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceWindowsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings to the preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPut(body => $body);
    +    my $result = $api_instance->instanceWindowsGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceWindowsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -59447,13 +68883,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | save device set settings to the preset
     
     try: 
    -    api_response = api_instance.instance_preset_put(body)
    +    api_response = api_instance.instance_windows_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceWindowsGet: %s\n" % e)
    @@ -59461,156 +68896,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - No preset or device set found

    +

    Status: 200 - On success return the window list

    -
    -
    +
    +
    - +
    @@ -59640,14 +68947,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    Status: 501 - Function not implemented

    -
    -
    - -
    - -

    -
    -
    + +
    +

    Workspace

    +
    +
    -

    instanceSummary

    +

    instanceWorkspaceAdd

    -

    SDRangel instance summary

    +

    Add new workspace


    -
    /sdrangel
    +
    /sdrangel/workspace

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel"
    +
    +
    curl -X POST "http://localhost/sdrangel/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.WorkspaceApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class WorkspaceApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceSummary");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.WorkspaceApi;
     
    -public class InstanceApiExample {
    +public class WorkspaceApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceSummary");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceSummaryWithCompletionHandler: 
    -              ^(InstanceSummaryResponse output, NSError* error) {
    +[apiInstance instanceWorkspaceAddWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -59821,10 +69096,10 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.WorkspaceApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -59833,14 +69108,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceSummary(callback);
    +api.instanceWorkspaceAdd(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -59849,21 +69124,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceSummaryExample
    +    public class instanceWorkspaceAddExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new WorkspaceApi();
     
                 try
                 {
    -                InstanceSummaryResponse result = apiInstance.instanceSummary();
    +                SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceSummary: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspaceAdd: " + e.Message );
                 }
             }
         }
    @@ -59871,38 +69146,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\WorkspaceApi();
     
     try {
    -    $result = $api_instance->instanceSummary();
    +    $result = $api_instance->instanceWorkspaceAdd();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->instanceWorkspaceAdd: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::WorkspaceApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::WorkspaceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceSummary();
    +    my $result = $api_instance->instanceWorkspaceAdd();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceSummary: $@\n";
    +    warn "Exception when calling WorkspaceApi->instanceWorkspaceAdd: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -59910,13 +69185,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.WorkspaceApi()
     
     try: 
    -    api_response = api_instance.instance_summary()
    +    api_response = api_instance.instance_workspace_add()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceSummary: %s\n" % e)
    + print("Exception when calling WorkspaceApi->instanceWorkspaceAdd: %s\n" % e)
    @@ -59928,24 +69203,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Success

    +

    Status: 202 - Successful sending of the message

    -
    -
    +
    +
    - +
    @@ -59975,14 +69250,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60018,14 +69293,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    -

    Workspace

    -
    -
    +
    +
    -

    instanceWorkspaceAdd

    +

    instanceWorkspacesDeleteEmpty

    -

    Add new workspace

    +

    Delete empty workspaces


    -
    /sdrangel/workspace
    +
    /sdrangel/workspace

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/workspace"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -60112,17 +69384,17 @@ public class WorkspaceApiExample {
             
             WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.WorkspaceApi;
     
     public class WorkspaceApiExample {
    @@ -60130,24 +69402,24 @@ public class WorkspaceApiExample {
         public static void main(String[] args) {
             WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceWorkspaceAddWithCompletionHandler: 
    +[apiInstance instanceWorkspacesDeleteEmptyWithCompletionHandler: 
                   ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -60159,7 +69431,7 @@ WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.WorkspaceApi()
    @@ -60171,14 +69443,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceWorkspaceAdd(callback);
    +api.instanceWorkspacesDeleteEmpty(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -60187,7 +69459,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceWorkspaceAddExample
    +    public class instanceWorkspacesDeleteEmptyExample
         {
             public void main()
             {
    @@ -60196,12 +69468,12 @@ namespace Example
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +                SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspaceAdd: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspacesDeleteEmpty: " + e.Message );
                 }
             }
         }
    @@ -60209,22 +69481,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\WorkspaceApi();
     
     try {
    -    $result = $api_instance->instanceWorkspaceAdd();
    +    $result = $api_instance->instanceWorkspacesDeleteEmpty();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling WorkspaceApi->instanceWorkspaceAdd: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::WorkspaceApi;
    @@ -60232,15 +69504,15 @@ use SWGSDRangel::WorkspaceApi;
     my $api_instance = SWGSDRangel::WorkspaceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceWorkspaceAdd();
    +    my $result = $api_instance->instanceWorkspacesDeleteEmpty();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling WorkspaceApi->instanceWorkspaceAdd: $@\n";
    +    warn "Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -60251,10 +69523,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.WorkspaceApi()
     
     try: 
    -    api_response = api_instance.instance_workspace_add()
    +    api_response = api_instance.instance_workspaces_delete_empty()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling WorkspaceApi->instanceWorkspaceAdd: %s\n" % e)
    + print("Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: %s\n" % e)
    @@ -60270,14 +69542,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60313,14 +69585,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60356,14 +69628,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceWorkspacesDeleteEmpty

    +

    workspaceActionsPost

    -

    Delete empty workspaces

    +

    Arrange the windows of a workspace (GUI)


    -
    /sdrangel/workspace
    +
    /sdrangel/workspace/{workspaceIndex}/actions

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/workspace"
    +
    +
    curl -X POST "http://localhost/sdrangel/workspace/{workspaceIndex}/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -60446,44 +69718,51 @@ public class WorkspaceApiExample {
         public static void main(String[] args) {
             
             WorkspaceApi apiInstance = new WorkspaceApi();
    +        Integer workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +        WorkspaceActions body = ; // WorkspaceActions | Action to perform
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +            SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
    +            System.err.println("Exception when calling WorkspaceApi#workspaceActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.WorkspaceApi;
     
     public class WorkspaceApiExample {
     
         public static void main(String[] args) {
             WorkspaceApi apiInstance = new WorkspaceApi();
    +        Integer workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +        WorkspaceActions body = ; // WorkspaceActions | Action to perform
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +            SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
    +            System.err.println("Exception when calling WorkspaceApi#workspaceActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *workspaceIndex = 56; // Index of workspace in the list of workspaces
    +WorkspaceActions *body = ; // Action to perform
    +
     WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceWorkspacesDeleteEmptyWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance workspaceActionsPostWith:workspaceIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -60494,11 +69773,16 @@ WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.WorkspaceApi()
     
    +var workspaceIndex = 56; // {Integer} Index of workspace in the list of workspaces
    +
    +var body = ; // {WorkspaceActions} Action to perform
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -60506,14 +69790,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceWorkspacesDeleteEmpty(callback);
    +api.workspaceActionsPost(workspaceIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -60522,21 +69806,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceWorkspacesDeleteEmptyExample
    +    public class workspaceActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new WorkspaceApi();
    +            var workspaceIndex = 56;  // Integer | Index of workspace in the list of workspaces
    +            var body = new WorkspaceActions(); // WorkspaceActions | Action to perform
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +                SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspacesDeleteEmpty: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.workspaceActionsPost: " + e.Message );
                 }
             }
         }
    @@ -60544,38 +69830,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\WorkspaceApi();
    +$workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +$body = ; // WorkspaceActions | Action to perform
     
     try {
    -    $result = $api_instance->instanceWorkspacesDeleteEmpty();
    +    $result = $api_instance->workspaceActionsPost($workspaceIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->workspaceActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::WorkspaceApi;
     
     my $api_instance = SWGSDRangel::WorkspaceApi->new();
    +my $workspaceIndex = 56; # Integer | Index of workspace in the list of workspaces
    +my $body = SWGSDRangel::Object::WorkspaceActions->new(); # WorkspaceActions | Action to perform
     
     eval { 
    -    my $result = $api_instance->instanceWorkspacesDeleteEmpty();
    +    my $result = $api_instance->workspaceActionsPost(workspaceIndex => $workspaceIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: $@\n";
    +    warn "Exception when calling WorkspaceApi->workspaceActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -60584,19 +69874,93 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.WorkspaceApi()
    +workspaceIndex = 56 # Integer | Index of workspace in the list of workspaces
    +body =  # WorkspaceActions | Action to perform
     
     try: 
    -    api_response = api_instance.instance_workspaces_delete_empty()
    +    api_response = api_instance.workspace_actions_post(workspaceIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: %s\n" % e)
    + print("Exception when calling WorkspaceApi->workspaceActionsPost: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    workspaceIndex* + +
    +
    +
    + + Integer + +
    + Index of workspace in the list of workspaces +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    @@ -60605,14 +69969,14 @@ except ApiException as e:
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid workspace index

    + + + +
    +
    +
    + +
    +
    @@ -60648,14 +70098,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60691,14 +70141,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60747,7 +70197,7 @@ except ApiException as e:
    - Generated 2026-08-04T03:09:32.867+02:00 + Generated 2026-09-15T18:30:50.537+02:00
    diff --git a/sdrbase/resources/webapi/doc/swagger/include/ADSBDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ADSBDemod.yaml index 8edf06537..f4a6d8abc 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ADSBDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ADSBDemod.yaml @@ -12,16 +12,14 @@ ADSBDemodSettings: correlationThreshold: type: number format: float + description: "Minimum correlation score required to accept a frame preamble." samplesPerBit: type: integer - correlateFullPreamble: - type: integer - description: > - Correlate on part or full preamble - * 0 - part - * 1 - full + description: "Number of input samples used to represent each bit." demodModeS: type: integer + minimum: 0 + maximum: 1 description: > Demodulate all mode S frames or just ADS-B * 0 - just ADS-B @@ -35,10 +33,16 @@ ADSBDemodSettings: description: Number of taps per phase in channel interpolator removeTimeout: type: integer + description: "Seconds without a frame after which an aircraft is removed from the display." feedEnabled: type: integer + description: "Enable forwarding of received data to the configured feed (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 exportClientEnabled: type: integer + minimum: 0 + maximum: 1 description: > Send data to server * 0 - Do not send data @@ -48,20 +52,35 @@ ADSBDemodSettings: type: string exportClientPort: type: integer + description: "Export client port." + minimum: 1 + maximum: 65535 exportClientFormat: type: integer + minimum: 0 + maximum: 1 description: > Format of sent data * 0 - Beast binary * 1 - Beast hex exportServerEnabled: type: integer + description: "Enable the data-export server (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 exportServerPort: type: integer + description: "Export server port." + minimum: 1 + maximum: 65535 importEnabled: type: integer + description: "Enable importing data from the configured service (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 importHost: type: string + description: "Import host setting for ADS-B demod." importUsername: type: string description: OpenSky OAuth2 client ID. @@ -70,43 +89,65 @@ ADSBDemodSettings: description: OpenSky OAuth2 client secret. importParameters: type: string + description: "Import parameters setting for ADS-B demod." importPeriod: type: number format: float + description: "How often to import aircraft from the configured web service, in seconds." importMinLatitude: type: string + description: "Import min latitude setting for ADS-B demod." importMaxLatitude: type: string + description: "Import max latitude setting for ADS-B demod." importMinLongitude: type: string + description: "Import min longitude setting for ADS-B demod." importMaxLongitude: type: string + description: "Import max longitude setting for ADS-B demod." logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ADSBDemodReport: description: ADSBDemod @@ -117,19 +158,25 @@ ADSBDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." targetName: type: string + description: "Name of the selected or tracked target." targetAzimuth: type: number format: float + description: "Target azimuth in degrees clockwise from north." targetElevation: type: number format: float + description: "Target elevation in degrees above the horizon." targetRange: type: number format: float + description: "Distance to the selected or tracked target." aircraftState: type: array + description: "Current states of aircraft tracked by the ADS-B demodulator." items: $ref: "/doc/swagger/include/ADSBDemod.yaml#/ADSBDemodAircraftState" @@ -145,10 +192,14 @@ ADSBDemodAircraftState: description: "Latitude of aircraft in degrees" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude of aircraft in degrees" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude of aircraft in feet" type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/AFC.yaml b/sdrbase/resources/webapi/doc/swagger/include/AFC.yaml index 8f7faaf47..e3a9a1ec6 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AFC.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AFC.yaml @@ -3,8 +3,10 @@ AFCSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." trackerDeviceSetIndex: description: index of the device set of frequency tracker being used type: integer @@ -13,22 +15,26 @@ AFCSettings: type: integer hasTargetFrequency: type: integer + minimum: 0 + maximum: 1 description: > Adjust device frequency to match tracker frequency * 0 - disabled * 1 - enabled transverterTarget: type: integer + minimum: 0 + maximum: 1 description: > Use transverter or device frequency for tracker frequency adjustment * 0 - device * 1 - transverter targetFrequency: - description: Target frequency for the tracker + description: "Frequency the tracker should settle on, in Hz." type: integer format: int64 freqTolerance: - description: Frequency shift tolerance before tracker frequency is (re)adjusted + description: "Frequency error in Hz that is tolerated before the tracker frequency is adjusted again." type: integer trackerAdjustPeriod: description: Tracker channel frequency adjustment period in seconds @@ -36,22 +42,33 @@ AFCSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AFCReport: description: "AFC report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -62,11 +79,11 @@ AFCReport: description: Tracker index in device set type: integer trackerDeviceFrequency: - description: Center frequency of tracker device + description: "Centre frequency of the tracking device, in Hz." type: integer format: int64 trackerChannelOffset: - description: Tracker channel offset from device center frequency + description: "Tracker channel offset from the device centre frequency, in Hz." type: integer AFCActions: @@ -74,18 +91,24 @@ AFCActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle * 1 - run deviceTrack: type: integer + minimum: 0 + maximum: 1 description: > (Re)initialize tracker target frequency adjustment * 0 - release * 1 - engage devicesApply: type: integer + minimum: 0 + maximum: 1 description: > (Re)initialize device sets tracking * 0 - release diff --git a/sdrbase/resources/webapi/doc/swagger/include/AIS.yaml b/sdrbase/resources/webapi/doc/swagger/include/AIS.yaml index a62f10bc9..a86fe4b9d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AIS.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AIS.yaml @@ -3,26 +3,123 @@ AISSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." vesselColumnIndexes: type: array + description: "List of vessel column indexes." items: type: integer vesselColumnSizes: type: array + description: "List of vessel column sizes." items: type: integer + +AISReport: + description: > + Vessels heard by the AIS feature, which collects the decoded messages of every AIS + demodulator in the instance. A field is present only once a message carrying it has been + received, so an absent position means unknown rather than zero. + properties: + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + vesselCount: + type: integer + description: "Number of vessels currently held." + vessels: + type: array + description: "The vessels heard." + items: + $ref: "/doc/swagger/include/AIS.yaml#/AISVessel" + +AISVessel: + description: Vessel heard by the AIS feature + properties: + mmsi: + type: string + description: "Maritime Mobile Service Identity, nine digits. The only field always present." + name: + type: string + description: "Vessel name, from a static and voyage related message or an aid-to-navigation report." + callsign: + type: string + description: "Radio callsign." + imo: + type: string + description: "IMO number, where transmitted." + country: + type: string + description: "Flag state, derived from the MMSI maritime identification digits." + type: + type: string + description: "What is transmitting: Vessel, Base station, Aircraft or Aid-to-nav." + shipType: + type: string + description: "Ship and cargo type, such as Cargo or Tug." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + course: + type: number + format: float + description: "Course over ground in degrees true." + speed: + type: number + format: float + description: "Speed over ground in knots." + heading: + type: integer + description: "True heading in degrees, which differs from course when set and drift apply." + status: + type: string + description: "Navigational status, such as Under way using engine or At anchor." + length: + type: integer + description: "Overall length in metres." + destination: + type: string + description: "Destination as entered by the crew." + positionUpdate: + type: string + description: "When the position was last updated, ISO 8601." + lastUpdate: + type: string + description: "When any field was last updated, ISO 8601." + messages: + type: integer + description: "Messages received from this vessel." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AISDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/AISDemod.yaml index ebdd0eb6d..9c34c3ef5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AISDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AISDemod.yaml @@ -7,58 +7,89 @@ AISDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." correlationThreshold: description: "Normalised correlation threshold with the preamble, from 0 to 1" type: number format: float + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 udpFormat: description: "0 for binary, 1 for NMEA" type: integer + minimum: 0 + maximum: 1 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AISDemodReport: description: AISDemod @@ -69,3 +100,4 @@ AISDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AISMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/AISMod.yaml index 22b29f1f7..0e965e14a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AISMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AISMod.yaml @@ -7,6 +7,7 @@ AISModSettings: format: int64 baud: type: integer + description: "Symbol or serial rate in baud." rfBandwidth: description: channel RF bandwidth in Hz type: number @@ -17,35 +18,53 @@ AISModSettings: gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatDelay: type: number format: float + description: "Delay between repetitions." repeatCount: type: integer + description: "Number of repetitions." rampUpBits: type: integer + description: "Ramp up bits setting for AIS mod." rampDownBits: type: integer + description: "Ramp down bits setting for AIS mod." rampRange: type: integer + description: "Ramp range setting for AIS mod." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on msgType: type: integer + minimum: 0 + maximum: 3 description: > Message Type * 0 - Scheduled position report @@ -54,8 +73,11 @@ AISModSettings: * 3 - Base station report mmsi: type: string + description: "Maritime Mobile Service Identity number." status: type: integer + minimum: 0 + maximum: 8 description: > Ship status * 0 - Under way using engine @@ -71,55 +93,83 @@ AISModSettings: latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 course: type: number format: float + description: "Course over ground in degrees." speed: type: number format: float + description: "Reported speed." heading: type: integer + description: "Heading in degrees." data: type: string + description: "Payload data." bt: type: number format: float + description: "Bt setting for AIS mod." symbolSpan: type: integer + description: "Symbol span setting for AIS mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." udpEnabled: description: "Whether to receive messages to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive messages to transmit via" type: string udpPort: description: "UDP port to receive messages to transmit via" type: integer + minimum: 1 + maximum: 65535 channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AISModReport: description: AISMod @@ -130,21 +180,27 @@ AISModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." AISModActions: description: AISMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit stored message * 0 - do nothing * 1 - transmit encode: type: integer + minimum: 0 + maximum: 1 description: > Encode message from discrete data * 0 - do nothing * 1 - encode data: type: string + description: "Payload data." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AMBE.yaml b/sdrbase/resources/webapi/doc/swagger/include/AMBE.yaml index 1720cecfb..fd8d396f8 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AMBE.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AMBE.yaml @@ -3,21 +3,32 @@ AMBESettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMBEReport: description: AMBE diff --git a/sdrbase/resources/webapi/doc/swagger/include/AMDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/AMDemod.yaml index 981ae2a90..77e737ecc 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AMDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AMDemod.yaml @@ -20,17 +20,26 @@ AMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 bandpassEnable: description: use bandpass filter (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." pll: description: PLL active (for synchronous AM) type: integer @@ -40,6 +49,8 @@ AMDemodSettings: frequencyMode: description: (0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k) type: integer + minimum: 0 + maximum: 3 frequency: description: Channel center frequency type: integer @@ -53,18 +64,28 @@ AMDemodSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMDemodReport: description: AMDemod @@ -78,5 +99,7 @@ AMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AMMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/AMMod.yaml index 27c752891..ab929f7ea 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AMMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AMMod.yaml @@ -4,51 +4,78 @@ AMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." modFactor: description: modulation factor from 0.0 to 1.0 type: number format: float + minimum: 0 + maximum: 1 toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Am mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "/doc/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMModReport: description: AMMod @@ -59,5 +86,7 @@ AMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/APRS.yaml b/sdrbase/resources/webapi/doc/swagger/include/APRS.yaml index a3ce0a0c7..31630ac67 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/APRS.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/APRS.yaml @@ -3,78 +3,228 @@ APRSSettings: properties: igateServer: type: string + description: "Igate server setting for Aprs." igatePort: type: integer + description: "Igate port." + minimum: 1 + maximum: 65535 igateCallsign: type: string + description: "Igate callsign setting for Aprs." igatePasscode: type: string + description: "Igate passcode setting for Aprs." igateFilter: type: string + description: "Igate filter setting for Aprs." igateEnabled: type: integer + description: "Enable igate (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." packetsTableColumnIndexes: type: array + description: "List of packets table column indexes." items: type: integer packetsTableColumnSizes: type: array + description: "List of packets table column sizes." items: type: integer weatherTableColumnIndexes: type: array + description: "List of weather table column indexes." items: type: integer weatherTableColumnSizes: type: array + description: "List of weather table column sizes." items: type: integer statusTableColumnIndexes: type: array + description: "List of status table column indexes." items: type: integer statusTableColumnSizes: type: array + description: "List of status table column sizes." items: type: integer messagesTableColumnIndexes: type: array + description: "List of messages table column indexes." items: type: integer messagesTableColumnSizes: type: array + description: "List of messages table column sizes." items: type: integer telemetryTableColumnIndexes: type: array + description: "List of telemetry table column indexes." items: type: integer telemetryTableColumnSizes: type: array + description: "List of telemetry table column sizes." items: type: integer motionTableColumnIndexes: type: array + description: "List of motion table column indexes." items: type: integer motionTableColumnSizes: type: array + description: "List of motion table column sizes." items: type: integer + +APRSReport: + description: > + Stations and objects heard by the APRS feature, which collects the AX.25 packets of every + packet demodulator in the instance. A field is present only once a packet carrying it has + been received. + properties: + runningState: + type: integer + minimum: 0 + maximum: 3 + description: > + Running state + * 0 - not started + * 1 - idle + * 2 - running + * 3 - error + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + stationCount: + type: integer + description: "Number of stations and objects currently held." + packetCount: + type: integer + description: "Packets received across all stations." + stations: + type: array + description: "The stations and objects heard." + items: + $ref: "/doc/swagger/include/APRS.yaml#/APRSStation" + +APRSStation: + description: Station or object heard by the APRS feature + properties: + callsign: + type: string + description: "Station callsign with SSID, or the name of the object or item." + isObject: + type: integer + minimum: 0 + maximum: 1 + description: "1 when this is an object or item rather than a station." + reportingStation: + type: string + description: "Callsign that reported this object. Empty for a station." + symbol: + type: string + description: "APRS symbol identifier." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + altitude: + type: number + format: float + description: "Altitude in metres above mean sea level." + course: + type: number + format: float + description: "Course in degrees true." + speed: + type: number + format: float + description: "Speed in km/h." + status: + type: string + description: "Latest status text." + comment: + type: string + description: "Latest position comment." + powerWatts: + type: number + format: float + description: "Transmitter power in watts, from a reported PHG value." + antennaHeight: + type: number + format: float + description: "Antenna height above average terrain in metres, from a reported PHG value." + antennaGain: + type: number + format: float + description: "Antenna gain in dB, from a reported PHG value." + antennaDirectivity: + type: string + description: "Antenna directivity, from a reported PHG value." + radioRange: + type: number + format: float + description: "Reported range in km." + hasWeather: + type: integer + minimum: 0 + maximum: 1 + description: "1 when weather reports have been received from this station." + hasTelemetry: + type: integer + minimum: 0 + maximum: 1 + description: "1 when telemetry has been received from this station." + telemetryProjectName: + type: string + description: "Telemetry project name, where reported." + packets: + type: integer + description: "Packets received from this station." + lastPacketDateTime: + type: string + description: "When the most recent packet was received, ISO 8601." diff --git a/sdrbase/resources/webapi/doc/swagger/include/APTDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/APTDemod.yaml index b3530fa4c..a2119291a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/APTDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/APTDemod.yaml @@ -36,6 +36,8 @@ APTDemodSettings: decodeEnabled: description: Controls whether the decoder is enabled type: integer + minimum: 0 + maximum: 1 autoSave: description: Automatically save images when acquisition is stopped type: integer @@ -85,26 +87,38 @@ APTDemodSettings: format: float rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." APTDemodActions: description: APTDemod diff --git a/sdrbase/resources/webapi/doc/swagger/include/ATVDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ATVDemod.yaml index 976a48563..5e90999da 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ATVDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ATVDemod.yaml @@ -3,35 +3,60 @@ ATVDemodSettings: properties: fpsIndex: type: integer + description: "Selected fps index." halfImage: - description: (boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0 + description: > + Display only half of the image rows + * 0 - display all rows + * 1 - display half the rows type: integer + minimum: 0 + maximum: 1 RFBandwidthFactor: type: integer + description: "RF bandwidth factor setting for Atv demod." OppBandwidthFactor: type: integer + description: "Opp bandwidth factor setting for Atv demod." nbLinesIndex: type: integer + description: "Selected nb lines index." intFrequencyOffset: type: integer + description: "Int frequency offset in Hz." enmModulation: - description: see ATVDemodSettings::ATVModulation - type: integer + description: > + Modulation of the received ATV signal + * 0 - FM with discriminator 1 + * 1 - FM with discriminator 2 + * 2 - FM with phase derivative discriminator + * 3 - AM + * 4 - AM with vestigial lower sideband, signal in the upper sideband + * 5 - AM with vestigial upper sideband, signal in the lower sideband + type: integer + minimum: 0 + maximum: 5 fltRFBandwidth: type: number format: float + description: "Flt RF bandwidth in Hz." fltRFOppBandwidth: type: number format: float + description: "Flt RF opp bandwidth in Hz." blnFFTFiltering: description: boolean type: integer + minimum: 0 + maximum: 1 fltBFOFrequency: type: number format: float + description: "Flt bfo frequency in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." amScalingFactor: type: integer description: Factor in % to apply to detected signal scale @@ -40,49 +65,81 @@ ATVDemodSettings: description: Factor in % to apply to adjusted signal scale intSampleRate: type: integer + description: "Int sample rate in samples per second." enmATVStandard: - description: see ATVDemodSettings::ATVStd - type: integer + description: > + Television standard, which sets the line count and timings + * 0 - PAL 625 lines + * 1 - PAL 525 lines + * 2 - 819 lines + * 3 - short, interleaved + * 4 - short + * 5 - horizontal sync skip + type: integer + minimum: 0 + maximum: 5 intNumberOfLines: type: integer + description: "Int number of lines setting for Atv demod." fltLineDuration: type: number format: float + description: "Flt line duration setting for Atv demod." fltTopDuration: type: number format: float + description: "Flt top duration setting for Atv demod." fltFramePerS: type: number format: float + description: "Flt frame per s setting for Atv demod." fltRatioOfRowsToDisplay: type: number format: float + description: "Flt ratio of rows to display setting for Atv demod." fltVoltLevelSynchroTop: type: number format: float + description: "Flt volt level synchro top setting for Atv demod." fltVoltLevelSynchroBlack: type: number format: float + description: "Flt volt level synchro black setting for Atv demod." blnHSync: description: boolean type: integer + minimum: 0 + maximum: 1 blnVSync: description: boolean type: integer + minimum: 0 + maximum: 1 blnInvertVideo: description: boolean type: integer + minimum: 0 + maximum: 1 intVideoTabIndex: type: integer + description: "Selected int video tab index." intTVSampleRate: type: integer + description: "Int tv sample rate in samples per second." intNumberSamplePerLine: type: integer + description: "Int number sample per line setting for Atv demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer + description: "UDP port number." + minimum: 1 + maximum: 65535 diff --git a/sdrbase/resources/webapi/doc/swagger/include/ATVMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ATVMod.yaml index e2059ee06..d08a34f1b 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ATVMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ATVMod.yaml @@ -4,73 +4,108 @@ ATVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." rfOppBandwidth: type: number format: float + description: "RF opp bandwidth in Hz." atvStd: type: integer + description: "Atv std setting for Atv mod." nbLines: type: integer + description: "Nb lines setting for Atv mod." fps: type: integer + description: "Fps setting for Atv mod." atvModInput: type: integer + description: "Atv mod input setting for Atv mod." uniformLevel: type: number format: float + description: "Uniform level setting for Atv mod." atvModulation: type: integer + description: "Atv modulation setting for Atv mod." videoPlayLoop: type: integer + description: "Video play loop setting for Atv mod." videoPlay: type: integer + description: "Video play setting for Atv mod." cameraPlay: type: integer + description: "Camera play setting for Atv mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 invertedVideo: type: integer + description: "Inverted video setting for Atv mod." rfScalingFactor: type: number format: float + description: "RF scaling factor setting for Atv mod." fmExcursion: type: number format: float + description: "FM excursion setting for Atv mod." forceDecimator: type: integer + description: "Force decimator setting for Atv mod." showOverlayText: type: integer + description: "Show overlay text setting for Atv mod." overlayText: type: string + description: "Overlay text setting for Atv mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." imageFileName: type: string + description: "Image file name or path." videoFileName: type: string + description: "Video file name." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ATVModReport: description: ATVMod @@ -81,3 +116,4 @@ ATVModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AaroniaRTSA.yaml b/sdrbase/resources/webapi/doc/swagger/include/AaroniaRTSA.yaml index 4ba1ece11..2c50d7583 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AaroniaRTSA.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AaroniaRTSA.yaml @@ -3,6 +3,7 @@ AaroniaRTSASettings: properties: title: type: string + description: "User-visible title." centerFrequency: description: Sets the center frequency (Hz) of the distant IQ demodulator type: integer @@ -16,18 +17,27 @@ AaroniaRTSASettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AaroniaRTSAReport: description: AaroniaRTSA properties: status: type: integer + minimum: 0 + maximum: 4 description: > Connection to RTSA server status: * 0 - Idle @@ -41,6 +51,7 @@ AaroniaRTSAOutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: description: Sets the center frequency (Hz) of the distant IQ demodulator type: integer @@ -54,18 +65,27 @@ AaroniaRTSAOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AaroniaRTSAOutputReport: description: AaroniaRTSAOutput properties: status: type: integer + minimum: 0 + maximum: 4 description: > Connection to RTSA server status: * 0 - Idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/Airspy.yaml b/sdrbase/resources/webapi/doc/swagger/include/Airspy.yaml index 8c7450be4..d15a1abeb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Airspy.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Airspy.yaml @@ -3,19 +3,32 @@ AirspySettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." lnaGain: type: integer + minimum: 0 + maximum: 14 + description: "Low noise amplifier gain as a step index, not a dB value. Ignored when lnaAGC is enabled." mixerGain: type: integer + minimum: 0 + maximum: 15 + description: "Mixer gain as a step index, not a dB value. Ignored when mixerAGC is enabled." vgaGain: type: integer + minimum: 0 + maximum: 15 + description: "Variable gain amplifier (IF) gain as a step index, not a dB value." lnaAGC: description: LNA AGC (1 if active else 0) type: integer @@ -24,23 +37,42 @@ AirspySettings: type: integer log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 biasT: description: Bias tee (1 if active else 0) type: integer + minimum: 0 + maximum: 1 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -48,17 +80,25 @@ AirspySettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AirspyReport: description: Airspy properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "/doc/swagger/include/Structs.yaml#/SampleRate" diff --git a/sdrbase/resources/webapi/doc/swagger/include/AirspyHF.yaml b/sdrbase/resources/webapi/doc/swagger/include/AirspyHF.yaml index 0196940cc..845e91f61 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AirspyHF.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AirspyHF.yaml @@ -3,61 +3,97 @@ AirspyHFSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 8 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) bandIndex: type: integer + description: "Selected band index." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." useAGC: description: AGC (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 agcHigh: description: AGC threshold (1 for high, 0 for low) type: integer + minimum: 0 + maximum: 1 useDSP: description: LibairspyHF DSP (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 useLNA: description: LNA (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 attenuatorSteps: description: Attenuator in number of 6 dB steps type: integer dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 AirspyHFReport: description: AirspyHF properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "/doc/swagger/include/Structs.yaml#/SampleRate" diff --git a/sdrbase/resources/webapi/doc/swagger/include/AndroidSDRDriverInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/AndroidSDRDriverInput.yaml index 9de3fe40c..6cabd8930 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AndroidSDRDriverInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AndroidSDRDriverInput.yaml @@ -4,42 +4,73 @@ AndroidSDRDriverInputSettings: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 directSampling: type: integer + description: "Direct sampling setting for Android sdr driver input." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rfBW: type: integer + description: "RF bw in Hz." sampleBits: type: integer + description: "Number of significant bits in each sample." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AndroidSDRDriverInputReport: description: AndroidSDRDriverInput properties: sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AntennaTools.yaml b/sdrbase/resources/webapi/doc/swagger/include/AntennaTools.yaml index de918989d..88a9069c1 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AntennaTools.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AntennaTools.yaml @@ -4,34 +4,51 @@ AntennaToolsSettings: dipoleFrequencyMHz: type: number format: float + description: "Dipole frequency in MHz." dipoleEndEffectFactor: type: number format: float + description: "Dipole end effect factor setting for Antenna tools." dishFrequencyMHz: type: number format: float + description: "Dish frequency in MHz." dishDiameter: type: number format: float + description: "Dish diameter setting for Antenna tools." dishDepth: type: number format: float + description: "Dish depth setting for Antenna tools." dishEfficiency: type: integer + description: "Dish efficiency setting for Antenna tools." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AudioCATSISO.yaml b/sdrbase/resources/webapi/doc/swagger/include/AudioCATSISO.yaml index efdba0c62..817912e7d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AudioCATSISO.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AudioCATSISO.yaml @@ -3,35 +3,50 @@ AudioCATSISOSettings: properties: title: type: string + description: "User-visible title." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." rxSampleRate: type: integer + description: "Receive sample rate in samples per second." txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." txSampleRate: type: integer + description: "Transmit sample rate in samples per second." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) txEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable or disable transmission * 0 - Disable transmission * 1 - Enable transmission pttSpectrumLink: type: integer + minimum: 0 + maximum: 1 description: > Main spectrum display (Rx/Tx) follows PTT (GUI) * 0 - Disable PTT following @@ -41,6 +56,8 @@ AudioCATSISOSettings: type: string rxIQMapping: type: integer + minimum: 0 + maximum: 3 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -52,6 +69,8 @@ AudioCATSISOSettings: type: integer fcPosRx: type: integer + minimum: 0 + maximum: 2 description: > Decimated bandpass center frequency position * 0 - Infradyne @@ -59,12 +78,16 @@ AudioCATSISOSettings: * 2 - Centered dcBlock: type: integer + minimum: 0 + maximum: 1 description: > Auto DC blocking * 0 - Off * 1 - On iqCorrection: type: integer + minimum: 0 + maximum: 1 description: > Auto IQ balance (you need auto DC blocking active) * 0 - Off @@ -72,11 +95,14 @@ AudioCATSISOSettings: rxVolume: type: number format: float + description: "Receive volume setting for Audio catsiso." txDeviceName: description: The name of the output audio device type: string txIQMapping: type: integer + minimum: 0 + maximum: 1 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -86,6 +112,8 @@ AudioCATSISOSettings: description: Tx volume in dB usually negative catSpeedIndex: type: integer + minimum: 0 + maximum: 7 description: > CAT serial link baud rate * 0 - 1200 @@ -98,18 +126,24 @@ AudioCATSISOSettings: * 7 - 115200 catDataBitsIndex: type: integer + minimum: 0 + maximum: 1 description: > CAT serial link data bits * 0 - 7 * 1 - 8 (default) catStopBitsIndex: type: integer + minimum: 0 + maximum: 1 description: > CAT serial link stop bits * 0 - 1 (default) * 1 - 2 catHandshakeIndex: type: integer + minimum: 0 + maximum: 2 description: > CAT serial link handshake type * 0 - none (default) @@ -117,6 +151,8 @@ AudioCATSISOSettings: * 2 - hardware catPTTMethodIndex: type: integer + minimum: 0 + maximum: 2 description: > CAT PTT method * 0 - PTT (default) @@ -124,12 +160,16 @@ AudioCATSISOSettings: * 2 - RTS catDTRHigh: type: integer + minimum: 0 + maximum: 1 description: > CAT DTR control * 0 - low * 1 - high (default) catRTSHigh: type: integer + minimum: 0 + maximum: 1 description: > CAT RTS control * 0 - low @@ -140,9 +180,16 @@ AudioCATSISOSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml index 2e69cd198..e5c58a2d1 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml @@ -3,6 +3,7 @@ AudioInputSettings: properties: title: type: string + description: "User-visible title." device: description: The name of the audio device type: string @@ -12,11 +13,14 @@ AudioInputSettings: volume: type: number format: float + description: "Audio volume multiplier." log2Decim: description: Decimation factor type: integer iqMapping: type: integer + minimum: 0 + maximum: 3 description: > Audio channel to IQ mapping * 0 - I=L, Q=0 @@ -25,18 +29,24 @@ AudioInputSettings: * 3 - I=R, Q=L dcBlock: type: integer + minimum: 0 + maximum: 1 description: > Auto DC blocking * 0 - Off * 1 - On iqImbalance: type: integer + minimum: 0 + maximum: 1 description: > Auto IQ balance (you need auto DC blocking active) * 0 - Off * 1 - On fcPos: type: integer + minimum: 0 + maximum: 2 description: > Decimated bandpass center frequency position * 0 - Infradyne @@ -45,9 +55,16 @@ AudioInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml index 1c980dd04..6d41e9b77 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/AudioOutput.yaml @@ -3,14 +3,18 @@ AudioOutputSettings: properties: title: type: string + description: "User-visible title." deviceName: description: The name of the audio device type: string volume: type: number format: float + description: "Audio volume multiplier." iqMapping: type: integer + minimum: 0 + maximum: 1 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -18,9 +22,16 @@ AudioOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/BFMDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/BFMDemod.yaml index a0e503898..e68838e63 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/BFMDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/BFMDemod.yaml @@ -4,14 +4,28 @@ BFMDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + minimum: 80000 + maximum: 250000 + description: > + RF channel bandwidth in Hz. The channel/baseband sample rate must be + greater than this bandwidth. For 180 kHz broadcast FM use at least + 240 kS/s; 256 kS/s is recommended. afBandwidth: type: number format: float + minimum: 1000 + maximum: 20000 + default: 15000 + description: > + Demodulated audio bandwidth in Hz. Broadcast FM normally uses 15 kHz. deEmphasis: type: integer + minimum: 0 + maximum: 1 description: > De-emphasis time constant (us) * 0 - 50us (Europe, Australia) @@ -19,45 +33,76 @@ BFMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 audioStereo: type: integer + description: "Enable stereo audio decoding (1 stereo, 0 mono)." + minimum: 0 + maximum: 1 lsbStereo: type: integer + description: "Use lower-sideband stereo decoding (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 showPilot: type: integer + description: "Show the stereo pilot spectrum (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rdsActive: type: integer + description: "Enable RDS decoding (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." BFMDemodReport: description: BFMDemod @@ -71,8 +116,12 @@ BFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: > + Effective complex baseband sample rate delivered to this channel in + samples per second. This must be greater than rfBandwidth. pilotLocked: description: pilot locked status (1 if open else 0) type: integer @@ -81,7 +130,8 @@ BFMDemodReport: type: number format: float rdsReport: - $ref: "#/RDSReport" + $ref: "/doc/swagger/include/BFMDemod.yaml#/RDSReport" + description: "RDS decoder status and decoded programme information." RDSReport: description: RDS information @@ -89,9 +139,13 @@ RDSReport: demodStatus: description: Demodulation success (%) type: integer + minimum: 0 + maximum: 100 decodStatus: description: Decoding success (%) type: integer + minimum: 0 + maximum: 100 rdsDemodAccumDB: description: RDS demodulator accumulator level (dB) type: number @@ -126,8 +180,10 @@ RDSReport: type: string altFrequencies: type: array + description: "Alternative broadcast frequencies reported by RDS." items: properties: frequency: type: number format: float + description: "Frequency in Hz." diff --git a/sdrbase/resources/webapi/doc/swagger/include/BeamSteeringCWMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/BeamSteeringCWMod.yaml index 40dc770c5..5a5ba7dcd 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/BeamSteeringCWMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/BeamSteeringCWMod.yaml @@ -3,26 +3,41 @@ BeamSteeringCWModSettings: properties: steerDegrees: type: integer + description: "Steer degrees setting for Beam steering CW mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/BladeRF1.yaml b/sdrbase/resources/webapi/doc/swagger/include/BladeRF1.yaml index f00b9819d..bf083dbf3 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/BladeRF1.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/BladeRF1.yaml @@ -3,35 +3,55 @@ BladeRF1InputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." vga1: type: integer + description: "First variable-gain-amplifier gain setting." vga2: type: integer + description: "Second variable-gain-amplifier gain setting." bandwidth: type: integer + description: "Bandwidth in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." xb200: type: integer + description: "Xb200 setting for Blade rf1 input." xb200Path: type: integer + description: "Xb200 path setting for Blade rf1 input." xb200Filter: type: integer + description: "Xb200 filter setting for Blade rf1 input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -39,43 +59,67 @@ BladeRF1InputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF1OutputSettings: description: BladeRF1 properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." vga1: type: integer + description: "First variable-gain-amplifier gain setting." vga2: type: integer + description: "Second variable-gain-amplifier gain setting." bandwidth: type: integer + description: "Bandwidth in Hz." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." xb200: type: integer + description: "Xb200 setting for Blade rf1 output." xb200Path: type: integer + description: "Xb200 path setting for Blade rf1 output." xb200Filter: type: integer + description: "Xb200 filter setting for Blade rf1 output." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/BladeRF2.yaml b/sdrbase/resources/webapi/doc/swagger/include/BladeRF2.yaml index 31431a907..fb23ab862 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/BladeRF2.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/BladeRF2.yaml @@ -3,36 +3,60 @@ BladeRF2InputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." bandwidth: type: integer + description: "Bandwidth in Hz." gainMode: type: integer + description: "Gain-control mode selection." globalGain: type: integer + description: "Overall device gain setting." biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -40,26 +64,38 @@ BladeRF2InputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2InputReport: description: BladeRF2 properties: frequencyRange: $ref: "/doc/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range data for Blade rf2 input." sampleRateRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Sample rate range data for Blade rf2 input." bandwidthRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range data for Blade rf2 input." globalGainRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Global gain range data for Blade rf2 input." gainModes: type: array + description: "List of gain modes." items: $ref: "/doc/swagger/include/Structs.yaml#/NamedEnum" @@ -68,92 +104,138 @@ BladeRF2OutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." bandwidth: type: integer + description: "Bandwidth in Hz." globalGain: type: integer + description: "Overall device gain setting." biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2OutputReport: description: BladeRF2 properties: frequencyRange: $ref: "/doc/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range data for Blade rf2 output." sampleRateRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Sample rate range data for Blade rf2 output." bandwidthRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range data for Blade rf2 output." globalGainRange: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Global gain range data for Blade rf2 output." BladeRF2MIMOSettings: description: BladeRF2 properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPosRx: description: See BladeRF2MIMO::fcPos_t type: integer rxBandwidth: type: integer + description: "Receive bandwidth in Hz." rx0GainMode: type: integer + description: "Rx0 gain mode setting for Blade rf2 MIMO." rx0GlobalGain: type: integer + description: "Rx0 global gain setting for Blade rf2 MIMO." rx1GainMode: type: integer + description: "Rx1 gain mode setting for Blade rf2 MIMO." rx1GlobalGain: type: integer + description: "Rx1 global gain setting for Blade rf2 MIMO." rxBiasTee: description: boolean type: integer + minimum: 0 + maximum: 1 dcBlock: description: boolean type: integer + minimum: 0 + maximum: 1 iqCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 rxTransverterMode: description: boolean type: integer + minimum: 0 + maximum: 1 rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -161,56 +243,82 @@ BladeRF2MIMOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPosTx: description: See BladeRF2MIMO::fcPos_t type: integer txBandwidth: type: integer + description: "Transmit bandwidth in Hz." tx0GlobalGain: type: integer + description: "Tx0 global gain setting for Blade rf2 MIMO." tx1GlobalGain: type: integer + description: "Tx1 global gain setting for Blade rf2 MIMO." txBiasTee: description: boolean type: integer + minimum: 0 + maximum: 1 txTransverterMode: description: boolean type: integer + minimum: 0 + maximum: 1 txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." useReverseAPI: description: boolean type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2MIMOReport: description: BladeRF2 properties: frequencyRangeRx: $ref: "/doc/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range receive data for Blade rf2 MIMO." sampleRateRangeRx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Sample rate range receive data for Blade rf2 MIMO." bandwidthRangeRx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range receive data for Blade rf2 MIMO." globalGainRangeRx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Global gain range receive data for Blade rf2 MIMO." gainModesRx: type: array + description: "List of gain modes receive." items: $ref: "/doc/swagger/include/Structs.yaml#/NamedEnum" frequencyRangeTx: $ref: "/doc/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range transmit data for Blade rf2 MIMO." sampleRateRangeTx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Sample rate range transmit data for Blade rf2 MIMO." bandwidthRangeTx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range transmit data for Blade rf2 MIMO." globalGainRangeTx: $ref: "/doc/swagger/include/Structs.yaml#/Range" + description: "Global gain range transmit data for Blade rf2 MIMO." diff --git a/sdrbase/resources/webapi/doc/swagger/include/CWKeyer.yaml b/sdrbase/resources/webapi/doc/swagger/include/CWKeyer.yaml index 73c98ceee..662d6ec6a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/CWKeyer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/CWKeyer.yaml @@ -2,29 +2,45 @@ CWKeyerSettings: properties: sampleRate: type: integer + description: "Sample rate in samples per second." wpm: description: Words Per Minute keying speed type: integer mode: - description: see enum CWKeyerSettings::CWMode - type: integer + description: > + Source of the keying + * 0 - none, key up + * 1 - send the text in the text field + * 2 - send continuous dots + * 3 - send continuous dashes + * 4 - key from the keyboard + type: integer + minimum: 0 + maximum: 4 text: type: string + description: "Text setting for CW keyer." loop: description: 1 to loop on text keying type: integer keyboardIambic: description: 1 for iambic input 0 for straight input using the keyboard type: integer + minimum: 0 + maximum: 1 dotKey: - description: key for dots keyboard input. See enum Qt::Key + description: > + Keyboard key that sends dots. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer dotKeyModifiers: - description: key modifier for dots keyboard input. See flags Qt::KeyboardModifiers + description: > + Modifiers for the dot key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer dashKey: - description: key for dashes keyboard input. See enum Qt::Key + description: > + Keyboard key that sends dashes. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer dashKeyModifiers: - description: key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers + description: > + Modifiers for the dash key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer \ No newline at end of file diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml index 02856ac8d..580f2fc31 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml @@ -11,6 +11,8 @@ ChannelActions: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorDeviceSetIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer @@ -19,23 +21,37 @@ ChannelActions: type: integer AISModActions: $ref: "/doc/swagger/include/AISMod.yaml#/AISModActions" + description: "AIS mod actions configuration for Channel." APTDemodActions: $ref: "/doc/swagger/include/APTDemod.yaml#/APTDemodActions" + description: "Apt demod actions configuration for Channel." FileSinkActions: $ref: "/doc/swagger/include/FileSink.yaml#/FileSinkActions" + description: "File sink actions configuration for Channel." FileSourceActions: $ref: "/doc/swagger/include/FileSource.yaml#/FileSourceActions" + description: "File source actions configuration for Channel." FreqScannerActions: $ref: "/doc/swagger/include/FreqScanner.yaml#/FreqScannerActions" + description: "Freq scanner actions configuration for Channel." IEEE_802_15_4_ModActions: $ref: "/doc/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModActions" + description: "Ieee 802 15 4 mod actions configuration for Channel." + MeshcoreModActions: + $ref: "/doc/swagger/include/MeshcoreMod.yaml#/MeshcoreModActions" + description: "Meshcore mod actions configuration for Channel." PacketModActions: $ref: "/doc/swagger/include/PacketMod.yaml#/PacketModActions" + description: "Packet mod actions configuration for Channel." PSK31ModActions: $ref: "/doc/swagger/include/PSK31Mod.yaml#/PSK31ModActions" + description: "Psk31 mod actions configuration for Channel." RadioAstronomyActions: $ref: "/doc/swagger/include/RadioAstronomy.yaml#/RadioAstronomyActions" + description: "Radio astronomy actions configuration for Channel." RTTYModActions: $ref: "/doc/swagger/include/RTTYMod.yaml#/RTTYModActions" + description: "Rtty mod actions configuration for Channel." SigMFFileSinkActions: $ref: "/doc/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkActions" + description: "Sig mf file sink actions configuration for Channel." diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelAnalyzer.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelAnalyzer.yaml index e5b74380e..c8b3a3dcd 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelAnalyzer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelAnalyzer.yaml @@ -3,73 +3,114 @@ ChannelAnalyzerSettings: properties: frequency: type: integer + description: "Frequency in Hz." downSample: description: Boolean type: integer + minimum: 0 + maximum: 1 downSampleRate: type: integer + description: "Down sample rate in samples per second." bandwidth: type: integer + description: "Bandwidth in Hz." lowCutoff: type: integer + description: "Lower filter cutoff frequency in Hz." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." ssb: description: Boolean type: integer + minimum: 0 + maximum: 1 pll: description: Boolean type: integer + minimum: 0 + maximum: 1 fll: description: Boolean type: integer + minimum: 0 + maximum: 1 costasLoop: description: Boolean type: integer + minimum: 0 + maximum: 1 rrc: description: Boolean type: integer + minimum: 0 + maximum: 1 rrcRolloff: description: in 100ths type: integer pllPskOrder: type: integer + description: "Pll psk order setting for Channel analyzer." pllBandwidth: type: number format: float + description: "Pll bandwidth in Hz." pllDampingFactor: type: number format: float + description: "Pll damping factor setting for Channel analyzer." pllLoopGain: type: number format: float + description: "Pll loop gain setting for Channel analyzer." inputType: - description: see ChannelAnalyzerSettings::InputType - type: integer + description: > + Signal fed to the analyser + * 0 - the channel signal + * 1 - the PLL output + * 2 - the autocorrelation of the signal + type: integer + minimum: 0 + maximum: 2 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelMarker.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelMarker.yaml index 328397aaf..e24ee2c92 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelMarker.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelMarker.yaml @@ -3,11 +3,21 @@ ChannelMarker: properties: centerFrequency: type: integer + description: "Device center frequency in Hz." color: type: integer description: RGB color title: type: string + description: "User-visible title." frequencyScaleDisplayType: type: integer - description: ChannelMarker::frequencyScaleDisplay_t + minimum: 0 + maximum: 4 + description: > + What is written against the channel on the frequency scale + * 0 - the frequency + * 1 - the channel title + * 2 - the send address + * 3 - the receive address + * 4 - nothing diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelPower.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelPower.yaml index ce8c6cdde..d5880d94c 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelPower.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelPower.yaml @@ -4,9 +4,12 @@ ChannelPowerSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." frequencyMode: description: (0 for Offset, 1 for Absolute) type: integer + minimum: 0 + maximum: 1 frequency: description: Channel center frequency type: integer @@ -14,6 +17,7 @@ ChannelPowerSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." pulseThreshold: description: "In dB" type: number @@ -23,26 +27,38 @@ ChannelPowerSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChannelPowerReport: description: ChannelPower @@ -65,3 +81,4 @@ ChannelPowerReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml index 524401bf3..ab58bad6c 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml @@ -11,113 +11,178 @@ ChannelReport: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 ADSBDemodReport: $ref: "/doc/swagger/include/ADSBDemod.yaml#/ADSBDemodReport" + description: "ADS-B demod report data for Channel." AISDemodReport: $ref: "/doc/swagger/include/AISDemod.yaml#/AISDemodReport" + description: "AIS demod report data for Channel." AISModReport: $ref: "/doc/swagger/include/AISMod.yaml#/AISModReport" + description: "AIS mod report data for Channel." AMDemodReport: $ref: "/doc/swagger/include/AMDemod.yaml#/AMDemodReport" + description: "Am demod report data for Channel." AMModReport: $ref: "/doc/swagger/include/AMMod.yaml#/AMModReport" + description: "Am mod report data for Channel." ATVModReport: $ref: "/doc/swagger/include/ATVMod.yaml#/ATVModReport" + description: "Atv mod report data for Channel." BFMDemodReport: $ref: "/doc/swagger/include/BFMDemod.yaml#/BFMDemodReport" + description: "BFM demod report data for Channel." + DABDemodReport: + $ref: "/doc/swagger/include/DABDemod.yaml#/DABDemodReport" + description: "DAB demod report data for Channel." ChannelPowerReport: $ref: "/doc/swagger/include/ChannelPower.yaml#/ChannelPowerReport" + description: "Channel power report data for Channel." ChirpChatDemodReport: $ref: "/doc/swagger/include/ChirpChatDemod.yaml#/ChirpChatDemodReport" + description: "Chirp chat demod report data for Channel." ChirpChatModReport: $ref: "/doc/swagger/include/ChirpChatMod.yaml#/ChirpChatModReport" + description: "Chirp chat mod report data for Channel." DATVDemodReport: $ref: "/doc/swagger/include/DATVDemod.yaml#/DATVDemodReport" + description: "Datv demod report data for Channel." DATVModReport: $ref: "/doc/swagger/include/DATVMod.yaml#/DATVModReport" + description: "Datv mod report data for Channel." DOA2Report: $ref: "/doc/swagger/include/DOA2.yaml#/DOA2Report" + description: "Doa2 report data for Channel." DSCDemodReport: $ref: "/doc/swagger/include/DSCDemod.yaml#/DSCDemodReport" + description: "Dsc demod report data for Channel." DSDDemodReport: $ref: "/doc/swagger/include/DSDDemod.yaml#/DSDDemodReport" + description: "Dsd demod report data for Channel." EndOfTrainDemodReport: $ref: "/doc/swagger/include/EndOfTrainDemod.yaml#/EndOfTrainDemodReport" + description: "End of train demod report data for Channel." IEEE_802_15_4_ModReport: $ref: "/doc/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModReport" + description: "Ieee 802 15 4 mod report data for Channel." FileSinkReport: $ref: "/doc/swagger/include/FileSink.yaml#/FileSinkReport" + description: "File sink report data for Channel." FileSourceReport: $ref: "/doc/swagger/include/FileSource.yaml#/FileSourceReport" + description: "File source report data for Channel." FreeDVDemodReport: $ref: "/doc/swagger/include/FreeDVDemod.yaml#/FreeDVDemodReport" + description: "Free dv demod report data for Channel." FreeDVModReport: $ref: "/doc/swagger/include/FreeDVMod.yaml#/FreeDVModReport" + description: "Free dv mod report data for Channel." FreqScannerReport: $ref: "/doc/swagger/include/FreqScanner.yaml#/FreqScannerReport" + description: "Freq scanner report data for Channel." FreqTrackerReport: $ref: "/doc/swagger/include/FreqTracker.yaml#/FreqTrackerReport" + description: "Freq tracker report data for Channel." FT8DemodReport: $ref: "/doc/swagger/include/FT8Demod.yaml#/FT8DemodReport" + description: "Ft8 demod report data for Channel." HeatMapReport: $ref: "/doc/swagger/include/HeatMap.yaml#/HeatMapReport" + description: "Heat map report data for Channel." ILSDemodReport: $ref: "/doc/swagger/include/ILSDemod.yaml#/ILSDemodReport" + description: "Ils demod report data for Channel." InmarsatDemodReport: $ref: "/doc/swagger/include/InmarsatDemod.yaml#/InmarsatDemodReport" + description: "Inmarsat demod report data for Channel." M17DemodReport: $ref: "/doc/swagger/include/M17Demod.yaml#/M17DemodReport" + description: "M17 demod report data for Channel." M17ModReport: $ref: "/doc/swagger/include/M17Mod.yaml#/M17ModReport" + description: "M17 mod report data for Channel." MeshtasticDemodReport: $ref: "/doc/swagger/include/MeshtasticDemod.yaml#/MeshtasticDemodReport" + description: "Meshtastic demod report data for Channel." MeshtasticModReport: $ref: "/doc/swagger/include/MeshtasticMod.yaml#/MeshtasticModReport" + description: "Meshtastic mod report data for Channel." + MeshcoreDemodReport: + $ref: "/doc/swagger/include/MeshcoreDemod.yaml#/MeshcoreDemodReport" + description: "Meshcore demod report data for Channel." + MeshcoreModReport: + $ref: "/doc/swagger/include/MeshcoreMod.yaml#/MeshcoreModReport" + description: "Meshcore mod report data for Channel." NavtexDemodReport: $ref: "/doc/swagger/include/NavtexDemod.yaml#/NavtexDemodReport" + description: "Navtex demod report data for Channel." NFMDemodReport: $ref: "/doc/swagger/include/NFMDemod.yaml#/NFMDemodReport" + description: "Nfm demod report data for Channel." NFMModReport: $ref: "/doc/swagger/include/NFMMod.yaml#/NFMModReport" + description: "Nfm mod report data for Channel." NoiseFigureReport: $ref: "/doc/swagger/include/NoiseFigure.yaml#/NoiseFigureReport" + description: "Noise figure report data for Channel." SSBDemodReport: $ref: "/doc/swagger/include/SSBDemod.yaml#/SSBDemodReport" + description: "Ssb demod report data for Channel." RadioAstronomyReport: $ref: "/doc/swagger/include/RadioAstronomy.yaml#/RadioAstronomyReport" + description: "Radio astronomy report data for Channel." RadioClockReport: $ref: "/doc/swagger/include/RadioClock.yaml#/RadioClockReport" + description: "Radio clock report data for Channel." RadiosondeDemodReport: $ref: "/doc/swagger/include/RadiosondeDemod.yaml#/RadiosondeDemodReport" + description: "Radiosonde demod report data for Channel." RemoteSourceReport: $ref: "/doc/swagger/include/RemoteSource.yaml#/RemoteSourceReport" + description: "Remote source report data for Channel." RTTYDemodReport: $ref: "/doc/swagger/include/RTTYDemod.yaml#/RTTYDemodReport" + description: "Rtty demod report data for Channel." RTTYModReport: $ref: "/doc/swagger/include/RTTYMod.yaml#/RTTYModReport" + description: "Rtty mod report data for Channel." PacketDemodReport: $ref: "/doc/swagger/include/PacketDemod.yaml#/PacketDemodReport" + description: "Packet demod report data for Channel." PacketModReport: $ref: "/doc/swagger/include/PacketMod.yaml#/PacketModReport" + description: "Packet mod report data for Channel." PagerDemodReport: $ref: "/doc/swagger/include/PagerDemod.yaml#/PagerDemodReport" + description: "Pager demod report data for Channel." PSK31ModReport: $ref: "/doc/swagger/include/PSK31Mod.yaml#/PSK31ModReport" + description: "Psk31 mod report data for Channel." SigMFFileSinkReport: $ref: "/doc/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkReport" + description: "Sig mf file sink report data for Channel." SSBModReport: $ref: "/doc/swagger/include/SSBMod.yaml#/SSBModReport" + description: "Ssb mod report data for Channel." UDPSourceReport: $ref: "/doc/swagger/include/UDPSource.yaml#/UDPSourceReport" + description: "UDP source report data for Channel." UDPSinkReport: $ref: "/doc/swagger/include/UDPSink.yaml#/UDPSinkReport" + description: "UDP sink report data for Channel." # VORDemodMCReport: # $ref: "/doc/swagger/include/VORDemodMC.yaml#/VORDemodMCReport" VORDemodReport: $ref: "/doc/swagger/include/VORDemod.yaml#/VORDemodReport" + description: "Vor demod report data for Channel." WDSPRxReport: $ref: "/doc/swagger/include/WDSPRx.yaml#/WDSPRxReport" + description: "Wdsp receive report data for Channel." WFMDemodReport: $ref: "/doc/swagger/include/WFMDemod.yaml#/WFMDemodReport" + description: "Wfm demod report data for Channel." WFMModReport: $ref: "/doc/swagger/include/WFMMod.yaml#/WFMModReport" + description: "Wfm mod report data for Channel." diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml index f4e18c23c..401d785c6 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml @@ -11,6 +11,8 @@ ChannelSettings: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorDeviceSetIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer @@ -19,131 +21,201 @@ ChannelSettings: type: integer ADSBDemodSettings: $ref: "/doc/swagger/include/ADSBDemod.yaml#/ADSBDemodSettings" + description: "ADS-B demod settings configuration for Channel." AISDemodSettings: $ref: "/doc/swagger/include/AISDemod.yaml#/AISDemodSettings" + description: "AIS demod settings configuration for Channel." AISModSettings: $ref: "/doc/swagger/include/AISMod.yaml#/AISModSettings" + description: "AIS mod settings configuration for Channel." AMDemodSettings: $ref: "/doc/swagger/include/AMDemod.yaml#/AMDemodSettings" + description: "Am demod settings configuration for Channel." AMModSettings: $ref: "/doc/swagger/include/AMMod.yaml#/AMModSettings" + description: "Am mod settings configuration for Channel." APTDemodSettings: $ref: "/doc/swagger/include/APTDemod.yaml#/APTDemodSettings" + description: "Apt demod settings configuration for Channel." ATVDemodSettings: $ref: "/doc/swagger/include/ATVDemod.yaml#/ATVDemodSettings" + description: "Atv demod settings configuration for Channel." ATVModSettings: $ref: "/doc/swagger/include/ATVMod.yaml#/ATVModSettings" + description: "Atv mod settings configuration for Channel." BeamSteeringCWModSettings: $ref: "/doc/swagger/include/BeamSteeringCWMod.yaml#/BeamSteeringCWModSettings" + description: "Beam steering CW mod settings configuration for Channel." BFMDemodSettings: $ref: "/doc/swagger/include/BFMDemod.yaml#/BFMDemodSettings" + description: "BFM demod settings configuration for Channel." ChannelAnalyzerSettings: $ref: "/doc/swagger/include/ChannelAnalyzer.yaml#/ChannelAnalyzerSettings" + description: "Channel analyzer settings configuration for Channel." ChannelPowerSettings: $ref: "/doc/swagger/include/ChannelPower.yaml#/ChannelPowerSettings" + description: "Channel power settings configuration for Channel." ChirpChatDemodSettings: $ref: "/doc/swagger/include/ChirpChatDemod.yaml#/ChirpChatDemodSettings" + description: "Chirp chat demod settings configuration for Channel." ChirpChatModSettings: $ref: "/doc/swagger/include/ChirpChatMod.yaml#/ChirpChatModSettings" + description: "Chirp chat mod settings configuration for Channel." DATVModSettings: $ref: "/doc/swagger/include/DATVMod.yaml#/DATVModSettings" + description: "Datv mod settings configuration for Channel." DATVDemodSettings: $ref: "/doc/swagger/include/DATVDemod.yaml#/DATVDemodSettings" + description: "Datv demod settings configuration for Channel." DABDemodSettings: $ref: "/doc/swagger/include/DABDemod.yaml#/DABDemodSettings" + description: "Dab demod settings configuration for Channel." DOA2Settings: $ref: "/doc/swagger/include/DOA2.yaml#/DOA2Settings" + description: "Doa2 settings configuration for Channel." DSCDemodSettings: $ref: "/doc/swagger/include/DSCDemod.yaml#/DSCDemodSettings" + description: "Dsc demod settings configuration for Channel." DSDDemodSettings: $ref: "/doc/swagger/include/DSDDemod.yaml#/DSDDemodSettings" + description: "Dsd demod settings configuration for Channel." EndOfTrainDemodSettings: $ref: "/doc/swagger/include/EndOfTrainDemod.yaml#/EndOfTrainDemodSettings" + description: "End of train demod settings configuration for Channel." FileSinkSettings: $ref: "/doc/swagger/include/FileSink.yaml#/FileSinkSettings" + description: "File sink settings configuration for Channel." FileSourceSettings: $ref: "/doc/swagger/include/FileSource.yaml#/FileSourceSettings" + description: "File source settings configuration for Channel." FreeDVDemodSettings: $ref: "/doc/swagger/include/FreeDVDemod.yaml#/FreeDVDemodSettings" + description: "Free dv demod settings configuration for Channel." FreeDVModSettings: $ref: "/doc/swagger/include/FreeDVMod.yaml#/FreeDVModSettings" + description: "Free dv mod settings configuration for Channel." FreqScannerSettings: $ref: "/doc/swagger/include/FreqScanner.yaml#/FreqScannerSettings" + description: "Freq scanner settings configuration for Channel." FreqTrackerSettings: $ref: "/doc/swagger/include/FreqTracker.yaml#/FreqTrackerSettings" + description: "Freq tracker settings configuration for Channel." FT8DemodSettings: $ref: "/doc/swagger/include/FT8Demod.yaml#/FT8DemodSettings" + description: "Ft8 demod settings configuration for Channel." HeatMapSettings: $ref: "/doc/swagger/include/HeatMap.yaml#/HeatMapSettings" + description: "Heat map settings configuration for Channel." ILSDemodSettings: $ref: "/doc/swagger/include/ILSDemod.yaml#/ILSDemodSettings" + description: "Ils demod settings configuration for Channel." InmarsatDemodSettings: $ref: "/doc/swagger/include/InmarsatDemod.yaml#/InmarsatDemodSettings" + description: "Inmarsat demod settings configuration for Channel." InterferometerSettings: $ref: "/doc/swagger/include/Interferometer.yaml#/InterferometerSettings" + description: "Interferometer settings configuration for Channel." IEEE_802_15_4_ModSettings: $ref: "/doc/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModSettings" + description: "Ieee 802 15 4 mod settings configuration for Channel." M17DemodSettings: $ref: "/doc/swagger/include/M17Demod.yaml#/M17DemodSettings" + description: "M17 demod settings configuration for Channel." M17ModSettings: $ref: "/doc/swagger/include/M17Mod.yaml#/M17ModSettings" + description: "M17 mod settings configuration for Channel." MeshtasticDemodSettings: $ref: "/doc/swagger/include/MeshtasticDemod.yaml#/MeshtasticDemodSettings" + description: "Meshtastic demod settings configuration for Channel." MeshtasticModSettings: $ref: "/doc/swagger/include/MeshtasticMod.yaml#/MeshtasticModSettings" + description: "Meshtastic mod settings configuration for Channel." + MeshcoreDemodSettings: + $ref: "/doc/swagger/include/MeshcoreDemod.yaml#/MeshcoreDemodSettings" + description: "Meshcore demod settings configuration for Channel." + MeshcoreModSettings: + $ref: "/doc/swagger/include/MeshcoreMod.yaml#/MeshcoreModSettings" + description: "Meshcore mod settings configuration for Channel." NavtexDemodSettings: $ref: "/doc/swagger/include/NavtexDemod.yaml#/NavtexDemodSettings" + description: "Navtex demod settings configuration for Channel." NFMDemodSettings: $ref: "/doc/swagger/include/NFMDemod.yaml#/NFMDemodSettings" + description: "Nfm demod settings configuration for Channel." NFMModSettings: $ref: "/doc/swagger/include/NFMMod.yaml#/NFMModSettings" + description: "Nfm mod settings configuration for Channel." NoiseFigureSettings: $ref: "/doc/swagger/include/NoiseFigure.yaml#/NoiseFigureSettings" + description: "Noise figure settings configuration for Channel." LocalSinkSettings: $ref: "/doc/swagger/include/LocalSink.yaml#/LocalSinkSettings" + description: "Local sink settings configuration for Channel." LocalSourceSettings: $ref: "/doc/swagger/include/LocalSource.yaml#/LocalSourceSettings" + description: "Local source settings configuration for Channel." PacketDemodSettings: $ref: "/doc/swagger/include/PacketDemod.yaml#/PacketDemodSettings" + description: "Packet demod settings configuration for Channel." PacketModSettings: $ref: "/doc/swagger/include/PacketMod.yaml#/PacketModSettings" + description: "Packet mod settings configuration for Channel." PagerDemodSettings: $ref: "/doc/swagger/include/PagerDemod.yaml#/PagerDemodSettings" + description: "Pager demod settings configuration for Channel." PSK31ModSettings: $ref: "/doc/swagger/include/PSK31Mod.yaml#/PSK31ModSettings" + description: "Psk31 mod settings configuration for Channel." RadioAstronomySettings: $ref: "/doc/swagger/include/RadioAstronomy.yaml#/RadioAstronomySettings" + description: "Radio astronomy settings configuration for Channel." RadioClockSettings: $ref: "/doc/swagger/include/RadioClock.yaml#/RadioClockSettings" + description: "Radio clock settings configuration for Channel." RadiosondeDemodSettings: $ref: "/doc/swagger/include/RadiosondeDemod.yaml#/RadiosondeDemodSettings" + description: "Radiosonde demod settings configuration for Channel." RemoteSinkSettings: $ref: "/doc/swagger/include/RemoteSink.yaml#/RemoteSinkSettings" + description: "Remote sink settings configuration for Channel." RemoteSourceSettings: $ref: "/doc/swagger/include/RemoteSource.yaml#/RemoteSourceSettings" + description: "Remote source settings configuration for Channel." RemoteTCPSinkSettings: $ref: "/doc/swagger/include/RemoteTCPSink.yaml#/RemoteTCPSinkSettings" + description: "Remote TCP sink settings configuration for Channel." RTTYDemodSettings: $ref: "/doc/swagger/include/RTTYDemod.yaml#/RTTYDemodSettings" + description: "Rtty demod settings configuration for Channel." RTTYModSettings: $ref: "/doc/swagger/include/RTTYMod.yaml#/RTTYModSettings" + description: "Rtty mod settings configuration for Channel." SigMFFileSinkSettings: $ref: "/doc/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkSettings" + description: "Sig mf file sink settings configuration for Channel." SSBModSettings: $ref: "/doc/swagger/include/SSBMod.yaml#/SSBModSettings" + description: "Ssb mod settings configuration for Channel." SSBDemodSettings: $ref: "/doc/swagger/include/SSBDemod.yaml#/SSBDemodSettings" + description: "Ssb demod settings configuration for Channel." UDPSourceSettings: $ref: "/doc/swagger/include/UDPSource.yaml#/UDPSourceSettings" + description: "UDP source settings configuration for Channel." UDPSinkSettings: $ref: "/doc/swagger/include/UDPSink.yaml#/UDPSinkSettings" + description: "UDP sink settings configuration for Channel." # VORDemodMCSettings: # $ref: "/doc/swagger/include/VORDemodMC.yaml#/VORDemodMCSettings" VORDemodSettings: $ref: "/doc/swagger/include/VORDemod.yaml#/VORDemodSettings" + description: "Vor demod settings configuration for Channel." WDSPRxSettings: $ref: "/doc/swagger/include/WDSPRx.yaml#/WDSPRxSettings" + description: "Wdsp receive settings configuration for Channel." WFMDemodSettings: $ref: "/doc/swagger/include/WFMDemod.yaml#/WFMDemodSettings" + description: "Wfm demod settings configuration for Channel." WFMModSettings: $ref: "/doc/swagger/include/WFMMod.yaml#/WFMModSettings" + description: "Wfm mod settings configuration for Channel." diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChirpChatDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChirpChatDemod.yaml index 101ae8d26..33166a405 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChirpChatDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChirpChatDemod.yaml @@ -4,8 +4,11 @@ ChirpChatDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,11 +40,14 @@ ChirpChatDemodSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Chirp chat demod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -55,6 +61,8 @@ ChirpChatDemodSettings: * 8 - Blackman-Harris 7 term codingScheme: type: integer + minimum: 0 + maximum: 2 description: > message encoding scheme (ChirpChatDemodSettings::CodingScheme): * 0 - LoRa @@ -63,6 +71,8 @@ ChirpChatDemodSettings: decodeActive: description: boolean 1 to activate 0 to de-activate decoder type: integer + minimum: 0 + maximum: 1 eomSquelchTenths: description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 type: integer @@ -90,8 +100,12 @@ ChirpChatDemodSettings: sendViaUDP: description: boolean 1 to send decoded message via UDP else 0 type: integer + minimum: 0 + maximum: 1 udoEnabled: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Send via UDP * 0 - Do not send decoded messages via UDP @@ -102,36 +116,53 @@ ChirpChatDemodSettings: udpPort: description: UDP destination port type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChirpChatDemodReport: description: ChirpChatDemod @@ -154,12 +185,17 @@ ChirpChatDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." syncWord: description: 2 bytes sync word (0..65535) type: integer + minimum: 0 + maximum: 65535 hasCRC: description: boolean 1 if payload CRC is present else 0 (LoRa) type: integer + minimum: 0 + maximum: 1 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -174,6 +210,8 @@ ChirpChatDemodReport: type: integer headerParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Header FEC parity status: * 0 - Undefined @@ -185,6 +223,8 @@ ChirpChatDemodReport: type: integer payloadParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Payload FEC parity status: * 0 - Undefined @@ -207,6 +247,8 @@ ChirpChatDemodReport: type: string decoding: type: integer + minimum: 0 + maximum: 1 description: > Boolean - decoding status * 0 - no decoding diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChirpChatMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChirpChatMod.yaml index ced9b5310..536964a19 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChirpChatMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChirpChatMod.yaml @@ -4,8 +4,11 @@ ChirpChatModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,6 +40,7 @@ ChirpChatModSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Chirp chat mod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer @@ -49,11 +53,17 @@ ChirpChatModSettings: syncWord: description: 2 byte (0..65535) synchronization syncWord type: integer + minimum: 0 + maximum: 65535 channelMute: description: boolean type: integer + minimum: 0 + maximum: 1 codingScheme: type: integer + minimum: 0 + maximum: 2 description: > message encoding scheme (ChirpChatModSettings::CodingScheme): * 0 - LoRa @@ -82,6 +92,8 @@ ChirpChatModSettings: type: string messageType: type: integer + minimum: 0 + maximum: 10 description: > type of message to send (ChirpChatModSettings::MessageType): * 0 - No message i.e no output. Use this as a transition to resend the same message. @@ -133,40 +145,58 @@ ChirpChatModSettings: udpEnabled: description: boolean 1 to enable forwarding messages via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpAddress: description: UDP address to listen for messages to transmit on type: string udpPort: description: UDP port to listen for messages to transmit on type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChirpChatModReport: description: ChirpChatMod @@ -177,6 +207,7 @@ ChirpChatModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." symbolTimeMs: description: symbol duration (ms) type: number @@ -191,6 +222,8 @@ ChirpChatModReport: format: float playing: type: integer + minimum: 0 + maximum: 1 description: > Boolean - modulator is active (playing) including idle time * 0 - Modulator not active diff --git a/sdrbase/resources/webapi/doc/swagger/include/Command.yaml b/sdrbase/resources/webapi/doc/swagger/include/Command.yaml index 997954296..b0477318d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Command.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Command.yaml @@ -3,21 +3,31 @@ Command: properties: group: type: string + description: "Group for Command." description: type: string + description: "Human-readable description." command: type: string + description: "Command for Command." argString: type: string + description: "Arg string for Command." key: - description: Qt::Key + description: > + Keyboard key that triggers the command. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer keyModifiers: - description: Qt::KeyboardModifiers + description: > + Modifiers for the trigger key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer associateKey: description: boolean type: integer + minimum: 0 + maximum: 1 release: description: boolean - type: integer \ No newline at end of file + type: integer + minimum: 0 + maximum: 1 diff --git a/sdrbase/resources/webapi/doc/swagger/include/DABDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/DABDemod.yaml index a930f2b08..96a0a01ad 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DABDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DABDemod.yaml @@ -4,37 +4,157 @@ DABDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." program: type: string + description: "Program setting for Dab demod." volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 audioDeviceName: type: string + description: "Name of the audio device to use." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +DABProgram: + description: "A programme service discovered in the currently tuned DAB ensemble." + properties: + name: + type: string + description: "Exact transmitted service label. Use this value for the program setting." + id: + type: integer + description: "DAB service identifier." + +DABDemodReport: + description: > + Live DAB demodulator, ensemble and selected-programme status. Synchronization, + discovered programmes and active audio do not by themselves prove clean reception; + check SNR after selecting a programme and after every receiver gain change. + properties: + channelPowerDB: + type: number + format: float + description: "Average power in the demodulator channel in dB." + channelSampleRate: + type: integer + description: "Effective complex channel sample rate in samples per second. DAB requires 2048000." + audioSampleRate: + type: integer + description: "Audio output sample rate in samples per second." + sync: + type: integer + minimum: 0 + maximum: 1 + description: "DAB synchronization state (1 synchronized, 0 not synchronized)." + snr: + type: integer + description: > + DAB decoder signal-to-noise ratio in dB. A value of 0 dB or less after + synchronization and audio become active is not a healthy result and can indicate + receiver overload. With an RTL-SDR, reduce tuner gain through its supported values, + wait briefly after each change, and re-read this report. Select the gain that gives + the best positive SNR rather than assuming that higher gain is better. + frequencyOffset: + type: integer + description: "Frequency offset estimated by the DAB decoder in Hz." + ensembleName: + type: string + description: "Label of the currently decoded ensemble." + ensembleId: + type: integer + description: "Identifier of the currently decoded ensemble." + programs: + type: array + description: "Programme services discovered in the currently tuned ensemble." + items: + $ref: "/doc/swagger/include/DABDemod.yaml#/DABProgram" + selectedProgram: + type: string + description: "Exact service label currently requested by the program setting." + audioActive: + type: integer + minimum: 0 + maximum: 1 + description: "Whether programme audio metadata has been received and audio decoding is active." + bitrate: + type: integer + description: "Selected programme audio bitrate in kbit/s." + audio: + type: string + description: "Selected programme audio codec and channel-mode description." + language: + type: string + description: "Selected programme language." + programType: + type: string + description: "Selected programme type, such as News or Pop Music." + frameQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Audio frame decode quality as a percentage." + reedSolomonQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Reed-Solomon decode quality as a percentage." + aacQuality: + type: integer + minimum: 0 + maximum: 100 + description: "AAC decode quality as a percentage." + fibQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Fast Information Block decode quality as a percentage." + tii: + type: integer + description: "Decoded Transmitter Identification Information value." + data: + type: string + description: "Latest dynamic text/data associated with the selected programme." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DATVDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/DATVDemod.yaml index c254382af..872a9cf15 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DATVDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DATVDemod.yaml @@ -3,20 +3,28 @@ DATVDemodSettings: properties: rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." rfBandwidth: type: integer + description: "RF bandwidth in Hz." centerFrequency: type: integer + description: "Device center frequency in Hz." standard: type: integer + minimum: 0 + maximum: 1 description: > DVB bersion (see DATVDemodSettings::dvb_version) * 0 - DVB-S * 1 - DVB-S2 modulation: type: integer + minimum: 0 + maximum: 8 description: > Modulation type (DATVDemodSettings::DATVModulation) * 0 - BPSK @@ -30,6 +38,8 @@ DATVDemodSettings: * 8 - QAM256 fec: type: integer + minimum: 0 + maximum: 12 description: > FEC rate (see DATVDemodSettings::DATVCodeRate) * 0 - 1/2 @@ -57,12 +67,17 @@ DATVDemodSettings: audioMute: description: (boolean) mute audio output type: integer + minimum: 0 + maximum: 1 audioDeviceName: type: string + description: "Name of the audio device to use." symbolRate: type: integer + description: "Symbol rate setting for Datv demod." notchFilters: type: integer + description: "Notch filters setting for Datv demod." allowDrift: description: (boolean) allow a larger frequency drift (DVB-S) type: integer @@ -76,6 +91,8 @@ DATVDemodSettings: * 1 - Linear * 2 - Root Raised Cosine type: integer + minimum: 0 + maximum: 2 hardMetric: description: (boolean) (DVB-S) type: integer @@ -83,6 +100,8 @@ DATVDemodSettings: description: RRC filter roll-off factor (0..1) type: number format: float + minimum: 0 + maximum: 1 viterbi: description: (boolean) (DVB-S) type: integer @@ -91,37 +110,56 @@ DATVDemodSettings: type: integer audioVolume: type: integer + description: "Audio volume setting for Datv demod." videoMute: description: boolean type: integer + minimum: 0 + maximum: 1 udpTSAddress: type: string + description: "UDP ts address." udpTSPort: type: integer + description: "UDP ts port." udpTS: description: boolean type: integer + minimum: 0 + maximum: 1 playerEnable: description: boolean type: integer + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DATVDemodReport: description: DATVDemod @@ -133,15 +171,23 @@ DATVDemodReport: audioActive: description: Audio is active (1 for yes, 0 for now) type: integer + minimum: 0 + maximum: 1 audioDecodeOK: description: Audio decode (1 for OK, 0 for KO) type: integer + minimum: 0 + maximum: 1 videoActive: description: Audio is active (1 for yes, 0 for now) type: integer + minimum: 0 + maximum: 1 videoDecodeOK: description: Video decode (1 for OK, 0 for KO) type: integer + minimum: 0 + maximum: 1 udpRunning: description: UDP thread (1 running, 0 idle) type: integer @@ -183,10 +229,14 @@ DATVDemodReport: * 12: 3/5 setByModcod: type: integer + minimum: 0 + maximum: 1 description: Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no) mer: type: number format: float + description: "Reported mer." cnr: type: number format: float + description: "Reported cnr." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DATVMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/DATVMod.yaml index a9825d66f..86b211242 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DATVMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DATVMod.yaml @@ -4,9 +4,11 @@ DATVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." standard: description: "Broadcast standard (DVB-S=0)" type: integer @@ -28,9 +30,12 @@ DATVModSettings: type: integer imageFileName: type: string + description: "Image file name or path." imageOverlayTimestamp: description: "Overlay timestamp on still image (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 imageServiceProvider: description: "Service provider name for image overlay" type: string @@ -42,40 +47,60 @@ DATVModSettings: type: integer tsFileName: type: string + description: "Ts file name." tsFilePlayLoop: type: integer + description: "Ts file play loop setting for Datv mod." tsFilePlay: description: "(Pause=0 Play=1)" type: integer udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: description: "UDP port number to receive MPEG transport stream on" type: integer + minimum: 1 + maximum: 65535 channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DATVModReport: description: DATVMod @@ -86,12 +111,17 @@ DATVModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." dataRate: type: integer + description: "Reported data rate." tsFileBitrate: type: integer + description: "Reported ts file bitrate." tsFileLength: type: integer + description: "Reported ts file length." udpByteCount: type: integer format: int64 + description: "Number of udp byte events or items." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DOA2.yaml b/sdrbase/resources/webapi/doc/swagger/include/DOA2.yaml index 6163db2ad..1f5da539d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DOA2.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DOA2.yaml @@ -6,20 +6,28 @@ DOA2Settings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." phase: type: integer description: Phase difference correction in degrees from -180 to +180 antennaAz: type: integer + minimum: 0 + maximum: 359 description: Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359 basebandDistance: type: integer + minimum: 1 + maximum: 99999 description: Antennas baseline distance in millimeters from 1 to 99999 squelchdB: type: integer @@ -30,32 +38,49 @@ DOA2Settings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DOA2Report: description: DOA2 properties: phi: type: integer + minimum: 0 + maximum: 180 description: Raw phase difference in degrees from 0 to 180 posAz: type: integer + minimum: 0 + maximum: 180 description: Calculated port side (positive) arrival angle in degrees from 0 to 180 negAz: type: integer + minimum: 0 + maximum: 180 description: Calculated starboard side (negative) arrival angle in degrees from 0 to 180 blindAngle: type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/DSCDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/DSCDemod.yaml index a26933a93..509b21a5f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DSCDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DSCDemod.yaml @@ -4,51 +4,83 @@ DSCDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." filterInvalid: type: integer + description: "Filter invalid setting for Dsc demod." filterColumn: type: integer + description: "Filter column setting for Dsc demod." filter: type: string + description: "Filter setting for Dsc demod." udpEnabled: type: integer + description: "Enable udp (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer + description: "UDP port number." + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DSCDemodReport: description: DSCDemod @@ -59,3 +91,4 @@ DSCDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DSDDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/DSDDemod.yaml index d61367309..9b7f05453 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DSDDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DSDDemod.yaml @@ -4,79 +4,118 @@ DSDDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." demodGain: type: number format: float + description: "Demod gain setting for Dsd demod." volume: type: number format: float + description: "Audio volume multiplier." baudRate: type: integer + description: "Serial-port baud rate in bits per second." squelchGate: type: integer + description: "Squelch gate duration." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 enableCosineFiltering: type: integer + description: "Enable cosine filtering (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 syncOrConstellation: type: integer + description: "Sync or constellation setting for Dsd demod." slot1On: type: integer + description: "Slot1 on setting for Dsd demod." slot2On: type: integer + description: "Slot2 on setting for Dsd demod." tdmaStereo: type: integer + description: "Tdma stereo setting for Dsd demod." pllLock: type: integer + description: "Pll lock setting for Dsd demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." highPassFilter: type: integer + description: "High pass filter setting for Dsd demod." traceLengthMutliplier: description: multiply by 50ms type: integer traceStroke: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 traceDecay: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ambeFeatureIndex: type: integer description: index of AMBE controller feature to be used for AMBE frames decoding connectAMBE: type: integer + minimum: 0 + maximum: 1 description: > Decode frames with AMBE feature * 0 - Do not decode frames with AMBE feature @@ -90,8 +129,10 @@ DSDDemodReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." squelch: description: squelch status (1 if open else 0) type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/DemodAnalyzer.yaml b/sdrbase/resources/webapi/doc/swagger/include/DemodAnalyzer.yaml index c0399bc7f..fdbe9720e 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DemodAnalyzer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DemodAnalyzer.yaml @@ -3,15 +3,20 @@ DemodAnalyzerSettings: properties: log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." fileRecordName: type: string description: Output wave file name recordToFile: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 1 - recording @@ -21,24 +26,35 @@ DemodAnalyzerSettings: description: Record silence time before stopping recording in 10ths of seconds useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DemodAnalyzerActions: description: "Demod Analyzer actions" diff --git a/sdrbase/resources/webapi/doc/swagger/include/Denoiser.yaml b/sdrbase/resources/webapi/doc/swagger/include/Denoiser.yaml index 3908b2c41..aaccaca88 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Denoiser.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Denoiser.yaml @@ -3,12 +3,16 @@ DenoiserSettings: properties: denoiserType: type: integer + minimum: 0 + maximum: 1 description: > Denoiser type * 0 - none * 1 - RNnoise enableDenoiser: type: integer + minimum: 0 + maximum: 1 description: > Enable denoiser * 1 - enable @@ -22,39 +26,54 @@ DenoiserSettings: description: Audio output device name audioMute: type: integer + minimum: 0 + maximum: 1 description: > Audio mute * 1 - mute * 0 - unmute title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." fileRecordName: type: string description: Output wave file name recordToFile: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 1 - recording * 0 - not recording useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DenoiserActions: description: "Denoiser actions" diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceActions.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceActions.yaml index 2d82b457c..1a31d8e5e 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DeviceActions.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceActions.yaml @@ -11,8 +11,11 @@ DeviceActions: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer sigMFFileInputActions: $ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputActions" + description: "Sig mf file input actions configuration for Device." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceReports.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceReports.yaml index 3b71ac589..19918e64c 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DeviceReports.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceReports.yaml @@ -11,69 +11,104 @@ DeviceReport: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 airspyReport: $ref: "/doc/swagger/include/Airspy.yaml#/AirspyReport" + description: "Airspy report data for Device." airspyHFReport: $ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFReport" + description: "Airspy hf report data for Device." androidSDRDriverInputReport: $ref: "/doc/swagger/include/AndroidSDRDriverInput.yaml#/AndroidSDRDriverInputReport" + description: "Android sdr driver input report data for Device." bladeRF2InputReport: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2InputReport" + description: "Blade rf2 input report data for Device." bladeRF2OutputReport: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2OutputReport" + description: "Blade rf2 output report data for Device." bladeRF2MIMOReport: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2MIMOReport" + description: "Blade rf2 MIMO report data for Device." fileInputReport: $ref: "/doc/swagger/include/FileInput.yaml#/FileInputReport" + description: "File input report data for Device." kiwiSDRReport: $ref: "/doc/swagger/include/KiwiSDR.yaml#/KiwiSDRReport" + description: "Kiwi sdr report data for Device." limeSdrInputReport: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrInputReport" + description: "Lime sdr input report data for Device." limeSdrOutputReport: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport" + description: "Lime sdr output report data for Device." limeSdrMIMOReport: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrMIMOReport" + description: "Lime sdr MIMO report data for Device." localInputReport: $ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputReport" + description: "Local input report data for Device." localOutputReport: $ref: "/doc/swagger/include/LocalOutput.yaml#/LocalOutputReport" + description: "Local output report data for Device." perseusReport: $ref: "/doc/swagger/include/Perseus.yaml#/PerseusReport" + description: "Perseus report data for Device." plutoSdrInputReport: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrInputReport" + description: "Pluto sdr input report data for Device." plutoSdrOutputReport: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrOutputReport" + description: "Pluto sdr output report data for Device." plutoSdrMIMOReport: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrMIMOReport" + description: "Pluto sdr MIMO report data for Device." rtlSdrReport: $ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrReport" + description: "Rtl sdr report data for Device." remoteOutputReport: $ref: "/doc/swagger/include/RemoteOutput.yaml#/RemoteOutputReport" + description: "Remote output report data for Device." remoteInputReport: $ref: "/doc/swagger/include/RemoteInput.yaml#/RemoteInputReport" + description: "Remote input report data for Device." remoteTCPInputReport: $ref: "/doc/swagger/include/RemoteTCPInput.yaml#/RemoteTCPInputReport" + description: "Remote TCP input report data for Device." sdrPlayReport: $ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlayReport" + description: "Sdr play report data for Device." sdrPlayV3Report: $ref: "/doc/swagger/include/SDRPlayV3.yaml#/SDRPlayV3Report" + description: "Sdr play v3 report data for Device." sigMFFileInputReport: $ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputReport" + description: "Sig mf file input report data for Device." soapySDRInputReport: $ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRReport" + description: "Soapy sdr input report data for Device." soapySDROutputReport: $ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRReport" + description: "Soapy sdr output report data for Device." usrpInputReport: $ref: "/doc/swagger/include/USRP.yaml#/USRPInputReport" + description: "Usrp input report data for Device." usrpOutputReport: $ref: "/doc/swagger/include/USRP.yaml#/USRPOutputReport" + description: "Usrp output report data for Device." xtrxInputReport: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputReport" + description: "Xtrx input report data for Device." xtrxOutputReport: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputReport" + description: "Xtrx output report data for Device." xtrxMIMOReport: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxMIMOReport" + description: "Xtrx MIMO report data for Device." AaroniaRTSAReport: $ref: "/doc/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAReport" + description: "Aaronia rtsa report data for Device." aaroniaRTSAOutputReport: $ref: "/doc/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAOutputReport" + description: "Aaronia rtsa output report data for Device." diff --git a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml index 380d82788..57a03a71b 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/DeviceSettings.yaml @@ -11,100 +11,149 @@ DeviceSettings: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer airspySettings: $ref: "/doc/swagger/include/Airspy.yaml#/AirspySettings" + description: "Airspy settings configuration for Device." airspyHFSettings: $ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFSettings" + description: "Airspy hf settings configuration for Device." androidSDRDriverInputSettings: $ref: "/doc/swagger/include/AndroidSDRDriverInput.yaml#/AndroidSDRDriverInputSettings" + description: "Android sdr driver input settings configuration for Device." audioCATSISOSettings: $ref: "/doc/swagger/include/AudioCATSISO.yaml#/AudioCATSISOSettings" + description: "Audio catsiso settings configuration for Device." audioInputSettings: $ref: "/doc/swagger/include/AudioInput.yaml#/AudioInputSettings" + description: "Audio input settings configuration for Device." audioOutputSettings: $ref: "/doc/swagger/include/AudioOutput.yaml#/AudioOutputSettings" + description: "Audio output settings configuration for Device." bladeRF1InputSettings: $ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1InputSettings" + description: "Blade rf1 input settings configuration for Device." bladeRF2InputSettings: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2InputSettings" + description: "Blade rf2 input settings configuration for Device." bladeRF1OutputSettings: $ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1OutputSettings" + description: "Blade rf1 output settings configuration for Device." bladeRF2OutputSettings: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2OutputSettings" + description: "Blade rf2 output settings configuration for Device." bladeRF2MIMOSettings: $ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2MIMOSettings" + description: "Blade rf2 MIMO settings configuration for Device." fcdProSettings: $ref: "/doc/swagger/include/FCDPro.yaml#/FCDProSettings" + description: "Fcd pro settings configuration for Device." fcdProPlusSettings: $ref: "/doc/swagger/include/FCDProPlus.yaml#/FCDProPlusSettings" + description: "Fcd pro plus settings configuration for Device." fileInputSettings: $ref: "/doc/swagger/include/FileInput.yaml#/FileInputSettings" + description: "File input settings configuration for Device." fileOutputSettings: $ref: "/doc/swagger/include/FileOutput.yaml#/FileOutputSettings" + description: "File output settings configuration for Device." hackRFInputSettings: $ref: "/doc/swagger/include/HackRF.yaml#/HackRFInputSettings" + description: "Hack RF input settings configuration for Device." hackRFOutputSettings: $ref: "/doc/swagger/include/HackRF.yaml#/HackRFOutputSettings" + description: "Hack RF output settings configuration for Device." kiwiSDRSettings: $ref: "/doc/swagger/include/KiwiSDR.yaml#/KiwiSDRSettings" + description: "Kiwi sdr settings configuration for Device." limeSdrInputSettings: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrInputSettings" + description: "Lime sdr input settings configuration for Device." limeSdrOutputSettings: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings" + description: "Lime sdr output settings configuration for Device." limeSdrMIMOSettings: $ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrMIMOSettings" + description: "Lime sdr MIMO settings configuration for Device." localInputSettings: $ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputSettings" + description: "Local input settings configuration for Device." localOutputSettings: $ref: "/doc/swagger/include/LocalOutput.yaml#/LocalOutputSettings" + description: "Local output settings configuration for Device." metisMISOSettings: $ref: "/doc/swagger/include/MetisMISO.yaml#/MetisMISOSettings" + description: "Metis miso settings configuration for Device." perseusSettings: $ref: "/doc/swagger/include/Perseus.yaml#/PerseusSettings" + description: "Perseus settings configuration for Device." plutoSdrInputSettings: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrInputSettings" + description: "Pluto sdr input settings configuration for Device." plutoSdrOutputSettings: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrOutputSettings" + description: "Pluto sdr output settings configuration for Device." plutoSdrMIMOSettings: $ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrMIMOSettings" + description: "Pluto sdr MIMO settings configuration for Device." rtlSdrSettings: $ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrSettings" + description: "Rtl sdr settings configuration for Device." remoteOutputSettings: $ref: "/doc/swagger/include/RemoteOutput.yaml#/RemoteOutputSettings" + description: "Remote output settings configuration for Device." remoteInputSettings: $ref: "/doc/swagger/include/RemoteInput.yaml#/RemoteInputSettings" + description: "Remote input settings configuration for Device." remoteTCPInputSettings: $ref: "/doc/swagger/include/RemoteTCPInput.yaml#/RemoteTCPInputSettings" + description: "Remote TCP input settings configuration for Device." sdrPlaySettings: $ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlaySettings" + description: "Sdr play settings configuration for Device." sdrPlayV3Settings: $ref: "/doc/swagger/include/SDRPlayV3.yaml#/SDRPlayV3Settings" + description: "Sdr play v3 settings configuration for Device." sigMFFileInputSettings: $ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputSettings" + description: "Sig mf file input settings configuration for Device." soapySDRInputSettings: $ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRInputSettings" + description: "Soapy sdr input settings configuration for Device." soapySDROutputSettings: $ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDROutputSettings" + description: "Soapy sdr output settings configuration for Device." testMISettings: $ref: "/doc/swagger/include/TestMI.yaml#/TestMISettings" + description: "Test mi settings configuration for Device." testMOSyncSettings: $ref: "/doc/swagger/include/TestMOSync.yaml#/TestMOSyncSettings" + description: "Test mo sync settings configuration for Device." testSourceSettings: $ref: "/doc/swagger/include/TestSource.yaml#/TestSourceSettings" + description: "Test source settings configuration for Device." usrpInputSettings: $ref: "/doc/swagger/include/USRP.yaml#/USRPInputSettings" + description: "Usrp input settings configuration for Device." usrpOutputSettings: $ref: "/doc/swagger/include/USRP.yaml#/USRPOutputSettings" + description: "Usrp output settings configuration for Device." xtrxInputSettings: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputSettings" + description: "Xtrx input settings configuration for Device." xtrxOutputSettings: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxOutputSettings" + description: "Xtrx output settings configuration for Device." xtrxMIMOSettings: $ref: "/doc/swagger/include/Xtrx.yaml#/XtrxMIMOSettings" + description: "Xtrx MIMO settings configuration for Device." aaroniaRTSASettings: $ref: "/doc/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSASettings" + description: "Aaronia rtsa settings configuration for Device." aaroniaRTSAOutputSettings: $ref: "/doc/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAOutputSettings" + description: "Aaronia rtsa output settings configuration for Device." diff --git a/sdrbase/resources/webapi/doc/swagger/include/EndOfTrainDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/EndOfTrainDemod.yaml index 4bc6512a9..09fe64b46 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/EndOfTrainDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/EndOfTrainDemod.yaml @@ -4,49 +4,75 @@ EndOfTrainDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." udpEnabled: description: "Whether to forward received packets to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received packets to" type: string udpPort: description: "UDP port to forward received packets to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." EndOfTrainDemodReport: description: EndOfTrainDemod @@ -57,3 +83,4 @@ EndOfTrainDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FCDPro.yaml b/sdrbase/resources/webapi/doc/swagger/include/FCDPro.yaml index 711cc5bd9..c85e9f444 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FCDPro.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FCDPro.yaml @@ -3,58 +3,91 @@ FCDProSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lnaGainIndex: type: integer + description: "Selected lna gain index." rfFilterIndex: type: integer + description: "Selected rf filter index." lnaEnhanceIndex: type: integer + description: "Selected lna enhance index." bandIndex: type: integer + description: "Selected band index." mixerGainIndex: type: integer + description: "Selected mixer gain index." mixerFilterIndex: type: integer + description: "Selected mixer filter index." biasCurrentIndex: type: integer + description: "Selected bias current index." modeIndex: type: integer + description: "Selected mode index." gain1Index: type: integer + description: "Selected gain1 index." rcFilterIndex: type: integer + description: "Selected rc filter index." gain2Index: type: integer + description: "Selected gain2 index." gain3Index: type: integer + description: "Selected gain3 index." gain4Index: type: integer + description: "Selected gain4 index." ifFilterIndex: type: integer + description: "Selected if filter index." gain5Index: type: integer + description: "Selected gain5 index." gain6Index: type: integer + description: "Selected gain6 index." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -62,9 +95,16 @@ FCDProSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FCDProPlus.yaml b/sdrbase/resources/webapi/doc/swagger/include/FCDProPlus.yaml index 9e8758204..c297b25f5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FCDProPlus.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FCDProPlus.yaml @@ -3,13 +3,17 @@ FCDProPlusSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." rangeLow: description: Range select (1 if low else 0) type: integer @@ -22,25 +26,43 @@ FCDProPlusSettings: biasT: description: Bias tee select (1 if selected else 0) type: integer + minimum: 0 + maximum: 1 ifGain: type: integer + description: "Intermediate-frequency gain setting." ifFilterIndex: type: integer + description: "Selected if filter index." rfFilterIndex: type: integer + description: "Selected rf filter index." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqImbalance: type: integer + description: "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -48,9 +70,16 @@ FCDProPlusSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FT8Demod.yaml b/sdrbase/resources/webapi/doc/swagger/include/FT8Demod.yaml index db425f66f..4d3a8a008 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FT8Demod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FT8Demod.yaml @@ -4,18 +4,25 @@ FT8DemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." filterIndex: type: integer + description: "Selected filter index." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -30,17 +37,24 @@ FT8DemodSettings: volume: type: number format: float + description: "Audio volume multiplier." agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 recordWav: type: integer + minimum: 0 + maximum: 1 description: > Record received audio as 12000S/s 16 bit .wav file * 0 - Do not record * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location logMessages: type: integer + minimum: 0 + maximum: 1 description: > Log decoded messages in WSJT CALL.TXT format * 0 - Do not log messages @@ -54,6 +68,8 @@ FT8DemodSettings: description: Decoder time budget in seconds (will stop after running this time) useOSD: type: integer + minimum: 0 + maximum: 1 description: > Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid * 0 - Disable @@ -66,46 +82,66 @@ FT8DemodSettings: description: minimum of valid LDPC bits (out of 83) necessary to activate OSD verifyOSD: type: integer + minimum: 0 + maximum: 1 description: > Verify OSD decoded message against a list of validated callsigns * 0 - Disable * 1 - Enable enablePSKReporter: type: integer + minimum: 0 + maximum: 1 description: > Enable reporting of decoded messages to PSK Reporter server * 0 - Disable * 1 - Enable pskReporterCallsign: type: string + description: "Psk reporter callsign setting for Ft8 demod." pskReporterLocator: type: string + description: "Psk reporter locator setting for Ft8 demod." pskReporterSoftware: type: string + description: "Psk reporter software setting for Ft8 demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FT8DemodReport: description: FT8Demod @@ -119,3 +155,4 @@ FT8DemodReport: type: integer channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml index 64f10fcaa..a4bd5fb2f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml @@ -15,31 +15,49 @@ FeatureActions: type: integer AFCActions: $ref: "/doc/swagger/include/AFC.yaml#/AFCActions" + description: "Afc actions configuration for Feature." AMBEActions: $ref: "/doc/swagger/include/AMBE.yaml#/AMBEActions" + description: "Ambe actions configuration for Feature." GS232ControllerActions: $ref: "/doc/swagger/include/GS232Controller.yaml#/GS232ControllerActions" + description: "Gs232 controller actions configuration for Feature." LimeRFEActions: $ref: "/doc/swagger/include/LimeRFE.yaml#/LimeRFEActions" + description: "Lime rfe actions configuration for Feature." MapActions: $ref: "/doc/swagger/include/Map.yaml#/MapActions" + description: "Map actions configuration for Feature." MorseDecoderActions: $ref: "/doc/swagger/include/MorseDecoder.yaml#/MorseDecoderActions" + description: "Morse decoder actions configuration for Feature." PERTesterActions: $ref: "/doc/swagger/include/PERTester.yaml#/PERTesterActions" + description: "Per tester actions configuration for Feature." RigCtlServerActions: $ref: "/doc/swagger/include/RigCtlServer.yaml#/RigCtlServerActions" + description: "Rig ctl server actions configuration for Feature." + MCPServerActions: + $ref: "/doc/swagger/include/MCPServer.yaml#/MCPServerActions" + description: "Mcp server actions configuration for Feature." SatelliteTrackerActions: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerActions" + description: "Satellite tracker actions configuration for Feature." SimplePTTActions: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTActions" + description: "Simple ptt actions configuration for Feature." SkyMapActions: $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapActions" + description: "Sky map actions configuration for Feature." StarTrackerActions: $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerActions" + description: "Star tracker actions configuration for Feature." VORLocalizerActions: $ref: "/doc/swagger/include/VORLocalizer.yaml#/VORLocalizerActions" + description: "Vor localizer actions configuration for Feature." DemodAnalyzerActions: $ref: "/doc/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerActions" + description: "Demod analyzer actions configuration for Feature." DenoiserActions: $ref: "/doc/swagger/include/Denoiser.yaml#/DenoiserActions" + description: "Denoiser actions configuration for Feature." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml index b0dee8339..b44a55660 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml @@ -7,29 +7,54 @@ FeatureReport: featureType: description: Feature type code type: string + AISReport: + $ref: "/doc/swagger/include/AIS.yaml#/AISReport" + description: "Ais report data for Feature." + APRSReport: + $ref: "/doc/swagger/include/APRS.yaml#/APRSReport" + description: "Aprs report data for Feature." + RadiosondeReport: + $ref: "/doc/swagger/include/Radiosonde.yaml#/RadiosondeReport" + description: "Radiosonde report data for Feature." AFCReport: $ref: "/doc/swagger/include/AFC.yaml#/AFCReport" + description: "Afc report data for Feature." AMBEReport: $ref: "/doc/swagger/include/AMBE.yaml#/AMBEReport" + description: "Ambe report data for Feature." FreqDisplayReport: $ref: "/doc/swagger/include/FreqDisplay.yaml#/FreqDisplayReport" + description: "Freq display report data for Feature." GS232ControllerReport: $ref: "/doc/swagger/include/GS232Controller.yaml#/GS232ControllerReport" + description: "Gs232 controller report data for Feature." LimeRFEReport: $ref: "/doc/swagger/include/LimeRFE.yaml#/LimeRFEReport" + description: "Lime rfe report data for Feature." MapReport: $ref: "/doc/swagger/include/Map.yaml#/MapReport" + description: "Map report data for Feature." PERTesterReport: $ref: "/doc/swagger/include/PERTester.yaml#/PERTesterReport" + description: "Per tester report data for Feature." RigCtlServerReport: $ref: "/doc/swagger/include/RigCtlServer.yaml#/RigCtlServerReport" + description: "Rig ctl server report data for Feature." + MCPServerReport: + $ref: "/doc/swagger/include/MCPServer.yaml#/MCPServerReport" + description: "Mcp server report data for Feature." SatelliteTrackerReport: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerReport" + description: "Satellite tracker report data for Feature." SimplePTTReport: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTReport" + description: "Simple ptt report data for Feature." SkyMapReport: $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapReport" + description: "Sky map report data for Feature." StarTrackerReport: $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerReport" + description: "Star tracker report data for Feature." VORLocalizerReport: $ref: "/doc/swagger/include/VORLocalizer.yaml#/VORLocalizerReport" + description: "Vor localizer report data for Feature." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureSetPreset.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureSetPreset.yaml index ebf248223..52c864383 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureSetPreset.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureSetPreset.yaml @@ -6,15 +6,19 @@ FeatureConfig: type: string config: $ref: "/doc/swagger/include/FeatureSettings.yaml#/FeatureSettings" + description: "Configuration data." FeatureSetPreset: description: Represents a Feature Set Preset object properties: group: type: string + description: "Group for Feature set preset." description: type: string + description: "Human-readable description." featureConfigs: type: array + description: "List of feature configs." items: $ref: "/doc/swagger/include/FeatureSetPreset.yaml#/FeatureConfig" diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml index 948159a8e..bd6ac332d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml @@ -15,45 +15,70 @@ FeatureSettings: type: integer AFCSettings: $ref: "/doc/swagger/include/AFC.yaml#/AFCSettings" + description: "Afc settings configuration for Feature." AISSettings: $ref: "/doc/swagger/include/AIS.yaml#/AISSettings" + description: "AIS settings configuration for Feature." AMBESettings: $ref: "/doc/swagger/include/AMBE.yaml#/AMBESettings" + description: "Ambe settings configuration for Feature." AntennaToolsSettings: $ref: "/doc/swagger/include/AntennaTools.yaml#/AntennaToolsSettings" + description: "Antenna tools settings configuration for Feature." APRSSettings: $ref: "/doc/swagger/include/APRS.yaml#/APRSSettings" + description: "Aprs settings configuration for Feature." DemodAnalyzerSettings: $ref: "/doc/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerSettings" + description: "Demod analyzer settings configuration for Feature." DenoiserSettings: $ref: "/doc/swagger/include/Denoiser.yaml#/DenoiserSettings" + description: "Denoiser settings configuration for Feature." JogdialControllerSettings: $ref: "/doc/swagger/include/JogdialController.yaml#/JogdialControllerSettings" + description: "Jogdial controller settings configuration for Feature." FreqDisplaySettings: $ref: "/doc/swagger/include/FreqDisplay.yaml#/FreqDisplaySettings" + description: "Freq display settings configuration for Feature." GS232ControllerSettings: $ref: "/doc/swagger/include/GS232Controller.yaml#/GS232ControllerSettings" + description: "Gs232 controller settings configuration for Feature." LimeRFESettings: $ref: "/doc/swagger/include/LimeRFE.yaml#/LimeRFESettings" + description: "Lime rfe settings configuration for Feature." MapSettings: $ref: "/doc/swagger/include/Map.yaml#/MapSettings" + description: "Map settings configuration for Feature." MorseDecoderSettings: $ref: "/doc/swagger/include/MorseDecoder.yaml#/MorseDecoderSettings" + description: "Morse decoder settings configuration for Feature." PERTesterSettings: $ref: "/doc/swagger/include/PERTester.yaml#/PERTesterSettings" + description: "Per tester settings configuration for Feature." RadiosondeSettings: $ref: "/doc/swagger/include/Radiosonde.yaml#/RadiosondeSettings" + description: "Radiosonde settings configuration for Feature." RigCtlServerSettings: $ref: "/doc/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings" + description: "Rig ctl server settings configuration for Feature." + MCPServerSettings: + $ref: "/doc/swagger/include/MCPServer.yaml#/MCPServerSettings" + description: "Mcp server settings configuration for Feature." SatelliteTrackerSettings: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerSettings" + description: "Satellite tracker settings configuration for Feature." SIDSettings: $ref: "/doc/swagger/include/SID.yaml#/SIDSettings" + description: "Sid settings configuration for Feature." SimplePTTSettings: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTSettings" + description: "Simple ptt settings configuration for Feature." SkyMapSettings: $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapSettings" + description: "Sky map settings configuration for Feature." StarTrackerSettings: $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerSettings" + description: "Star tracker settings configuration for Feature." VORLocalizerSettings: $ref: "/doc/swagger/include/VORLocalizer.yaml#/VORLocalizerSettings" + description: "Vor localizer settings configuration for Feature." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FileInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/FileInput.yaml index 9546318e5..f76b67250 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FileInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FileInput.yaml @@ -3,6 +3,7 @@ FileInputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read type: string @@ -15,18 +16,26 @@ FileInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." FileInputReport: description: FileInput properties: fileName: type: string + description: "File name or path." sampleRate: description: Record sample rate in S/s type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/FileOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/FileOutput.yaml index ea5a38846..eb4479c26 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FileOutput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FileOutput.yaml @@ -3,23 +3,34 @@ FileOutputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read type: string centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer format: int64 + description: "Sample rate in samples per second." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FileSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/FileSink.yaml index c638810c1..c78b741eb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FileSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FileSink.yaml @@ -3,17 +3,23 @@ FileSinkSettings: properties: inputFrequencyOffset: type: integer + description: "Channel frequency offset from the device center frequency in Hz." fileRecordName: type: string description: full path of the reference file rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." spectrumSquelchMode: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch system * 0 - deactivated @@ -30,6 +36,8 @@ FileSinkSettings: description: Number of seconds to record after spectrum squelch closes squelchRecordingEnable: type: integer + minimum: 0 + maximum: 1 description: > Automatic recording triggered by spectrum squelch * 0 - disabled @@ -40,26 +48,39 @@ FileSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FileSinkReport: description: FileSink properties: spectrumSquelch: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch status * 0 - closed @@ -70,10 +91,14 @@ FileSinkReport: description: Current spectrum max in squared magnitude (power) sinkSampleRate: type: integer + description: "Sample rate accepted by the sink in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." recording: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 0 - not recording @@ -94,6 +119,8 @@ FileSinkActions: properties: record: type: integer + minimum: 0 + maximum: 1 description: > Record action * 0 - stop recording diff --git a/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml index 45534f4df..66c1279ea 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FileSource.yaml @@ -9,38 +9,54 @@ FileSourceSettings: type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." gainDB: type: integer + description: "Gain dB in dB." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FileSourceReport: description: FileSource properties: fileName: type: string + description: "File name or path." fileSampleRate: description: Record sample rate in S/s type: integer @@ -69,6 +85,8 @@ FileSourceActions: properties: play: type: integer + minimum: 0 + maximum: 1 description: > Play or Pause stream * 0 - Pause diff --git a/sdrbase/resources/webapi/doc/swagger/include/FreeDVDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/FreeDVDemod.yaml index 6ad49b9ff..80acf02f0 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FreeDVDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FreeDVDemod.yaml @@ -4,6 +4,7 @@ FreeDVDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." volume: description: Audio volume type: number @@ -14,40 +15,60 @@ FreeDVDemodSettings: format: float spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." freeDVMode: type: integer + description: "Free dv mode setting for Free dv demod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreeDVDemodReport: description: FreeDVDemod @@ -61,5 +82,7 @@ FreeDVDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FreeDVMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/FreeDVMod.yaml index d50e967cf..69fdd23d3 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FreeDVMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FreeDVMod.yaml @@ -4,52 +4,80 @@ FreeDVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Free dv mod." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." freeDVMode: type: integer + description: "Free dv mode setting for Free dv mod." modAFInput: type: integer + description: "Audio-frequency modulation input selection." gaugeInputElseModem: type: integer + description: "Gauge input else modem setting for Free dv mod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "/doc/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreeDVModReport: description: FreeDVMod @@ -60,5 +88,7 @@ FreeDVModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/FreqDisplay.yaml b/sdrbase/resources/webapi/doc/swagger/include/FreqDisplay.yaml index c61dd4515..36ed7aa59 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FreqDisplay.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FreqDisplay.yaml @@ -6,45 +6,69 @@ FreqDisplaySettings: type: string fontName: type: string + description: "Font name setting for Freq display." transparentBackground: type: integer + description: "Transparent background setting for Freq display." displayMode: description: (0 Frequency, 1 Power, 2 Frequency and Power) type: integer speechEnabled: type: integer + description: "Enable speech (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 frequencyUnits: description: (0 Hz, 1 kHz, 2 MHz, 3 GHz) type: integer showUnits: type: integer + description: "Show units setting for Freq display." freqDecimalPlaces: type: integer + description: "Freq decimal places setting for Freq display." powerDecimalPlaces: type: integer + description: "Power decimal places setting for Freq display." textcolor: type: integer + description: "Textcolor setting for Freq display." dropShadowEnabled: type: integer + description: "Enable drop shadow (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 dropShadowColor: type: integer + description: "Drop shadow color encoded as an integer." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqDisplayReport: description: "Frequency Display report" diff --git a/sdrbase/resources/webapi/doc/swagger/include/FreqScanner.yaml b/sdrbase/resources/webapi/doc/swagger/include/FreqScanner.yaml index b81b2adc8..547eabdcb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FreqScanner.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FreqScanner.yaml @@ -2,71 +2,119 @@ FreqScannerSettings: description: FreqScanner properties: channelBandwidth: - description: channel RF bandwidth in Hz + description: > + Bandwidth in Hz of each scanned channel. type: integer channelShift: - description: controlled channel frequency shift in Hz + description: > + Frequency shift in Hz applied to the tuned channel from the scanned frequency, + for modes such as SSB or CW where the signal sits on one side of centre. type: integer channelFrequencyOffset: - description: channel center frequency shift from baseband center in Hz + description: > + Minimum frequency shift in Hz of the tuned channel from the centre of + reception, used to keep it clear of a DC spike. type: integer threshold: type: number format: float + description: > + Power threshold in dB above which a scanned frequency counts as active. frequencies: type: array + description: "List of frequencies." items: $ref: "/doc/swagger/include/FreqScanner.yaml#/FreqScannerFrequency" channel: type: string + description: > + Channel that is tuned to the active frequency, as a device set and channel + index, for example "R1:0" for channel 0 of receive device set 1. scanTime: type: number format: float + description: > + Time in seconds that each power measurement is averaged over. retransmitTime: type: number format: float + description: > + Time in seconds to wait after the power on the active frequency falls below + the threshold before scanning restarts. In multiplex mode this is instead the + time spent listening to each frequency. tuneTime: type: number format: float + description: > + Time in milliseconds to wait after retuning the device before measuring, to allow + for PLL settling and device to host transfer latency. priority: type: integer + description: > + Which frequency becomes active when several are above the threshold + * 0 - the one with the highest power + * 1 - the one earliest in the frequency list measurement: type: integer + description: > + How channel power is measured from the FFT bins + * 0 - peak, the highest bin + * 1 - total, the sum of every bin mode: type: integer + description: > + Run mode + * 0 - single, scan every frequency once and stop + * 1 - continuous, rescan when the active frequency goes quiet + * 2 - scan only, measure repeatedly without ever tuning the channel + * 3 - multiplex, step through the frequencies listening to each in turn rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqScannerReport: description: FreqScanner properties: channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." scanState: description: (IDLE=0, START_SCAN=1, SCANNING=2, WAIT_FOR_END_TX=3, WAIT_FOR_RETRANSMISSION=4) type: integer channelState: type: array + description: "List of channel state." items: $ref: "/doc/swagger/include/FreqScanner.yaml#/FreqScannerChannelState" @@ -85,24 +133,44 @@ FreqScannerFrequency: frequency: type: integer format: int64 + description: > + Frequency to scan, in Hz. enabled: type: integer + description: > + Whether this frequency takes part in the scan (1 to scan it, 0 to skip it). notes: type: string + description: > + Free text note about this frequency, such as the station or service name. channel: type: string + description: > + Overrides the scanner-wide channel for this frequency only, as a device set and + channel index such as "R1:0". Empty to use the scanner's own channel setting. channelBandwidth: type: string + description: > + Overrides the scanner-wide channel bandwidth in Hz for this frequency only. + Empty to use the scanner's own setting. threshold: type: string + description: > + Overrides the scanner-wide power threshold in dB for this frequency only. + Empty to use the scanner's own setting. squelch: type: string + description: > + Squelch threshold in dB to apply to the tuned channel when this frequency becomes + active. Empty to leave the channel's own squelch alone. FreqScannerActions: description: "Frequency Scanner actions" properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/FreqTracker.yaml b/sdrbase/resources/webapi/doc/swagger/include/FreqTracker.yaml index f05fbb179..074f0c2ad 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FreqTracker.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FreqTracker.yaml @@ -11,16 +11,22 @@ FreqTrackerSettings: format: float log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." squelch: description: power squelch threshold in decibels type: number format: float rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." alphaEMA: description: Alpha factor for delta frequency EMA type: number @@ -28,6 +34,8 @@ FreqTrackerSettings: tracking: description: Tracking 1 for enabled 0 for disabled type: integer + minimum: 0 + maximum: 1 trackerType: description: Tracker element type (FLL, PLL...) type: integer @@ -37,6 +45,8 @@ FreqTrackerSettings: rrc: description: RRC filter (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 rrcRolloff: description: RRC filter rolloff factor in % type: integer @@ -49,20 +59,31 @@ FreqTrackerSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqTrackerReport: description: FreqTracker @@ -79,5 +100,7 @@ FreqTrackerReport: type: integer sampleRate: type: integer + description: "Sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/GLScope.yaml b/sdrbase/resources/webapi/doc/swagger/include/GLScope.yaml index 3a142ca91..1ecc7b65a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/GLScope.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/GLScope.yaml @@ -5,8 +5,25 @@ TraceData: description: Source I/Q stream index type: integer projectionType: - description: Complex to real projection type. See Projector::ProjectionType - type: integer + description: > + Projection applied to turn the complex signal into a real trace + * 0 - real part + * 1 - imaginary part + * 2 - magnitude, linear + * 3 - squared magnitude (power), linear + * 4 - time derivative of the squared magnitude + * 5 - squared magnitude in dB + * 6 - phase + * 7 - direction of arrival from phase, positive branch + * 8 - direction of arrival from phase, negative branch + * 9 - phase derivative, instantaneous frequency + * 10 - BPSK phase comparator + * 11 - QPSK phase comparator + * 12 - 8-PSK phase comparator + * 13 - 16-PSK phase comparator + type: integer + minimum: 0 + maximum: 13 inputIndex: description: Input or feed index this trace is associated with type: integer @@ -63,8 +80,25 @@ TriggerData: description: Source I/Q stream index type: integer projectionType: - description: Complex to real projection type. See Projector::ProjectionType - type: integer + description: > + Projection applied to turn the complex signal into a real trace + * 0 - real part + * 1 - imaginary part + * 2 - magnitude, linear + * 3 - squared magnitude (power), linear + * 4 - time derivative of the squared magnitude + * 5 - squared magnitude in dB + * 6 - phase + * 7 - direction of arrival from phase, positive branch + * 8 - direction of arrival from phase, negative branch + * 9 - phase derivative, instantaneous frequency + * 10 - BPSK phase comparator + * 11 - QPSK phase comparator + * 12 - 8-PSK phase comparator + * 13 - 16-PSK phase comparator + type: integer + minimum: 0 + maximum: 13 inputIndex: description: Input or feed index this trigger is associated with type: integer @@ -74,8 +108,10 @@ TriggerData: format: float triggerLevelCoarse: type: integer + description: "Trigger level coarse for Trigger data." triggerLevelFine: type: integer + description: "Trigger level fine for Trigger data." triggerPositiveEdge: description: Trigger on the positive edge (else negative). Boolean type: integer @@ -94,8 +130,10 @@ TriggerData: format: float triggerDelayCoarse: type: integer + description: "Trigger delay coarse for Trigger data." triggerDelayFine: type: integer + description: "Trigger delay fine for Trigger data." triggerRepeat: description: Number of trigger conditions before the final decisive trigger type: integer @@ -119,26 +157,41 @@ GLScope: description: GLScopeGUI settings properties: displayMode: - description: see GLScopeSettings::DisplayMode - type: integer + description: > + Arrangement of the two traces on the scope + * 0 - X and Y side by side horizontally + * 1 - X and Y stacked vertically + * 2 - X only + * 3 - Y only + * 4 - polar, Y against X + type: integer + minimum: 0 + maximum: 4 traceIntensity: type: integer + description: "Trace intensity for Gl scope." gridIntensity: type: integer + description: "Grid intensity for Gl scope." time: type: integer + description: "Time for Gl scope." timeOfs: type: integer + description: "Time ofs for Gl scope." traceLenMult: type: integer description: Trace length multiplier (multiplies 4800 samples) trigPre: type: integer + description: "Trig pre for Gl scope." tracesData: type: array + description: "List of traces data." items: $ref: "/doc/swagger/include/GLScope.yaml#/TraceData" triggersData: type: array + description: "List of triggers data." items: $ref: "/doc/swagger/include/GLScope.yaml#/TriggerData" diff --git a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml index 6744e2dd4..29a9ee77f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml @@ -4,12 +4,15 @@ SpectrumHistogramMarker: frequency: type: number format: float + description: "Frequency in Hz." power: type: number format: float description: Fixed power mark markerType: type: integer + minimum: 0 + maximum: 2 description: > Marker type * 0 - Fixed power @@ -20,6 +23,8 @@ SpectrumHistogramMarker: description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Marker display state * 0 - Hidden @@ -31,6 +36,7 @@ SpectrumWaterfallMarker: frequency: type: number format: float + description: "Frequency in Hz." time: type: number format: float @@ -40,6 +46,8 @@ SpectrumWaterfallMarker: description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Marker display state * 0 - Hidden @@ -51,18 +59,26 @@ SpectrumAnnotationMarker: startFrequency: type: integer format: int64 + description: "Start frequency in Hz." bandwidth: type: integer + description: "Bandwidth in Hz." markerColor: type: integer description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 3 description: > SpectrumAnnotationMarker::ShowState - Marker display state * 0 - Hidden * 1 - Only top marker visible * 2 - Fully visible with text and full sized limits + * 3 - Text only + text: + type: string + description: "Text displayed against the marker." SpectrumCalibrationPoint: description: Spectrum calibration point settings @@ -70,22 +86,44 @@ SpectrumCalibrationPoint: frequency: type: integer format: int64 + description: "Frequency in Hz." powerRelativeReference: type: number format: float + description: "Power relative reference for Spectrum calibration point." powerAbsoluteReference: type: number format: float + description: "Power absolute reference for Spectrum calibration point." + +SpectrumMemorySettings: + description: Display settings for one saved spectrum memory. The captured spectrum samples are not transferred through settings APIs. + properties: + display: + description: Display this saved spectrum memory (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + color: + description: Display colour encoded as an RGB integer. + type: integer + label: + description: User-visible label for this saved spectrum memory. + type: string GLSpectrum: description: GLSpectrumGUI settings properties: fftSize: type: integer + description: "FFT size in samples." fftOverlap: type: integer + description: "FFT overlap for Gl spectrum." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -100,59 +138,248 @@ GLSpectrum: refLevel: type: number format: float + description: "Ref level for Gl spectrum." powerRange: type: number format: float + description: "Power range for Gl spectrum." fpsPeriodMs: type: integer description: FPS capping period in milliseconds. 0 for no limit. displayWaterfall: description: boolean type: integer + minimum: 0 + maximum: 1 + display3DSpectrogram: + description: Display the 3D spectrogram instead of the 2D waterfall (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + spectrogramStyle: + description: > + Rendering style for the 3D spectrogram. + * 0 - Points + * 1 - Lines + * 2 - Solid + * 3 - Outline + * 4 - Shaded (requires OpenGL 3.3 or later) + type: integer + minimum: 0 + maximum: 4 + truncateFreqScale: + description: Truncate the frequency scale to the displayed span (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + colorMap: + description: Colour-map name used for waterfall, 3D spectrogram rendering and spectrum colour gradient. + type: string + spectrumStyle: + description: "Current spectrum trace style: 0 line, 1 filled solid colour, 2 filled colour gradient." + type: integer + minimum: 0 + maximum: 2 + measurement: + description: "Measurement mode: 0 none, 1 peaks, 2 channel power, 3 adjacent-channel power, 4 occupied bandwidth, 5 3 dB bandwidth, 6 SNR, 7 mask." + type: integer + minimum: 0 + maximum: 7 + measurementCenterFrequencyOffset: + description: Measurement centre-frequency offset in Hz. + type: integer + measurementBandwidth: + description: Measurement bandwidth in Hz. + type: integer + minimum: 0 + measurementChSpacing: + description: Adjacent-channel measurement channel spacing in Hz. + type: integer + minimum: 0 + measurementAdjChBandwidth: + description: Adjacent-channel measurement bandwidth in Hz. + type: integer + minimum: 0 + measurementHarmonics: + description: Number of harmonics to measure. + type: integer + minimum: 0 + measurementPeaks: + description: Number of peaks to report. + type: integer + minimum: 0 + measurementHighlight: + description: Highlight the selected measurement (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + measurementsPosition: + description: "Measurement panel position: 0 above, 1 below, 2 left, 3 right." + type: integer + minimum: 0 + maximum: 3 + measurementPrecision: + description: Decimal precision for measurement values. + type: integer + minimum: 0 + findHistogramPeaks: + description: Find peaks in the spectrum histogram (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + showControls: + description: "Spectrum control visibility: 0 minimum, 1 standard, 2 all." + type: integer + minimum: 0 + maximum: 2 + frequencyZoomFactor: + description: Horizontal frequency zoom factor. + type: number + format: float + minimum: 1 + frequencyZoomPos: + description: Horizontal frequency-zoom position as a fraction of the span. + type: number + format: float + minimum: 0 + maximum: 1 + waterfallTimeUnits: + description: "Waterfall time axis: 0 offset, 1 local time, 2 UTC." + type: integer + minimum: 0 + maximum: 2 + waterfallTimeFormat: + description: Qt date/time format used for the waterfall time axis. + type: string + scrollBar: + description: Enable waterfall/3D spectrogram scrolling (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + scrollLength: + description: Maximum waterfall/3D spectrogram history length. + type: integer + minimum: 1 + mathMode: + description: "Spectrum math mode: 0 none, 1-4 moving-average modes, 5-10 saved-memory comparison modes." + type: integer + minimum: 0 + maximum: 10 + mathAvgCount: + description: Number of FFT frames used by spectrum math averaging. + type: integer + minimum: 1 + measurementMemMasks: + description: Bitmask selecting saved spectrum memories used as measurement masks. + type: integer + minimum: 0 + maximum: 3 + displayRBW: + description: Display resolution bandwidth (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayCursorStats: + description: Display cursor statistics (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayPeakStats: + description: Display peak statistics (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + spectrumMemory: + description: Display settings for the two saved spectrum memories. + type: array + maximum: 2 + items: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumMemorySettings" + spectrumColor: + description: Current spectrum trace colour encoded as an RGB integer. + type: integer invertedWaterfall: description: boolean type: integer + minimum: 0 + maximum: 1 displayMaxHold: description: boolean type: integer + minimum: 0 + maximum: 1 displayHistogram: description: boolean type: integer + minimum: 0 + maximum: 1 decay: type: integer + description: "Decay for Gl spectrum." displayGrid: description: boolean type: integer + minimum: 0 + maximum: 1 displayGridIntensity: type: integer + description: "Display grid intensity for Gl spectrum." decayDivisor: type: integer + description: "Decay divisor for Gl spectrum." histogramStroke: type: integer + description: "Histogram stroke for Gl spectrum." displayCurrent: description: boolean type: integer + minimum: 0 + maximum: 1 displayTraceIntensity: type: integer + description: "Display trace intensity for Gl spectrum." waterfallShare: type: number format: float + description: "Waterfall share for Gl spectrum." averagingMode: - description: See GLSpectrumGUI::AveragingMode - type: integer + description: > + How successive FFTs are averaged. Selecting a mode does nothing on its own: the number of + FFTs it works over is averagingValue, which must be above 1 for any smoothing to happen. + * 0 - no averaging + * 1 - moving average + * 2 - fixed average over each block + * 3 - maximum held over each block + * 4 - minimum held over each block + type: integer + minimum: 0 + maximum: 4 averagingValue: type: integer + description: > + Number of successive FFTs the averaging mode works over. 1 is no averaging whatever the + mode. Only 1, 2, 5, 10, 20, 50, 100 and so on are available and anything else is rounded + down to one of them. 10 smooths a noisy trace without hiding short signals; 50 or more + is for measuring a noise floor. linear: description: boolean type: integer + minimum: 0 + maximum: 1 ssb: description: boolean type: integer + minimum: 0 + maximum: 1 usb: description: boolean type: integer + minimum: 0 + maximum: 1 wsSpectrum: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Start or stop websocket server * 0 - Stop server @@ -165,6 +392,8 @@ GLSpectrum: type: integer markersDisplay: type: integer + minimum: 0 + maximum: 2 description: > Display markers (SpectrumSettings::MarkersDisplay) * 0 - Mome @@ -172,26 +401,337 @@ GLSpectrum: * 2 - Spectrum annotation markers useCalibration: type: integer + minimum: 0 + maximum: 1 description: boolean calibrationInterpMode: type: integer + minimum: 0 + maximum: 1 description: > Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode * 0 - Linear * 1 - Log (dB linear) histogramMarkers: type: array + description: "List of histogram markers." items: $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumHistogramMarker" waterfallMarkers: type: array + description: "List of waterfall markers." items: $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumWaterfallMarker" + annotationMarkersMode: + description: > + How annotationMarkers in the same request is applied. Replacing is what a PATCH of an + array means and is what the other marker lists do, but it discards annotations already + there, such as a loaded band plan. Append adds to them instead, so a caller adding one + annotation need not read the list, modify it and write it back. + * 0 - Replace the annotations with those given (the default) + * 1 - Append those given to the annotations already there + type: integer + minimum: 0 + maximum: 1 annotationMarkers: type: array + description: "List of annotation markers." items: $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumAnnotationMarker" calibrationPoints: type: array + description: "List of calibration points." items: $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumCalibrationPoint" + +GLSpectrumReport: + description: > + The latest values of whichever spectrum measurement is switched on. Which fields are present + depends on the measurement: with none selected nothing is measured at all and only the + measurement field is returned. The figures are those of the spectrum as displayed, so they + match the window rather than the full span when it is zoomed, and they are only produced by a + running GUI. + properties: + measurement: + description: > + Which measurement produced these values. + * 0 - None, nothing is being measured + * 1 - Peaks + * 2 - Channel power + * 3 - Adjacent channel power + * 4 - Occupied bandwidth + * 5 - 3 dB bandwidth + * 6 - SNR + type: integer + updated: + type: string + description: "When these values were last measured, ISO 8601. Absent until the first measurement." + peaks: + type: array + description: "The strongest peaks, most powerful first. Peaks measurement only." + items: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumPeak" + channelPower: + type: number + format: float + description: "Total power in the measurement bandwidth in dB. Channel power measurement only." + adjChannelPowerLeft: + type: number + format: float + description: "Power in the lower adjacent channel in dB." + adjChannelPowerLeftRatio: + type: number + format: float + description: "Lower adjacent channel power ratio in dB, relative to the centre channel." + adjChannelPowerCentre: + type: number + format: float + description: "Power in the centre channel in dB." + adjChannelPowerRight: + type: number + format: float + description: "Power in the upper adjacent channel in dB." + adjChannelPowerRightRatio: + type: number + format: float + description: "Upper adjacent channel power ratio in dB, relative to the centre channel." + occupiedBandwidth: + type: number + format: float + description: "Occupied bandwidth in Hz. Occupied bandwidth measurement only." + bandwidth3dB: + type: number + format: float + description: "3 dB bandwidth in Hz. 3 dB bandwidth measurement only." + snr: + type: number + format: float + description: "Signal to noise ratio in dB. SNR measurement only." + snfr: + type: number + format: float + description: "Signal to noise and distortion free ratio in dB." + thd: + type: number + format: float + description: "Total harmonic distortion in dB." + thdPlusNoise: + type: number + format: float + description: "Total harmonic distortion plus noise in dB." + sinad: + type: number + format: float + description: "Signal to noise and distortion ratio in dB." + sfdr: + type: number + format: float + description: "Spurious free dynamic range in dB." + +SpectrumPeak: + description: One peak found in the spectrum + properties: + frequency: + type: integer + format: int64 + description: "Frequency of the peak in Hz." + power: + type: number + format: float + description: "Power of the peak in dB." + +SpectrumActions: + description: Actions on the main spectrum of a device set + properties: + autoscale: + description: > + Set the reference level and range from the spectrum currently displayed, as the autoscale + button does. Needs a running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + clearSpectrum: + description: > + Discard the accumulated histogram and max hold traces, as the clear button does. Needs a + running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + resetMeasurements: + description: > + Discard the accumulated measurement statistics, so the minimum, maximum and mean columns + start again. Needs a running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + freeze: + description: > + Stop or resume spectrum processing. Unlike the others this acts on the spectrum itself + rather than its display, so it works without a GUI (1 to freeze, 0 to resume). + type: integer + minimum: 0 + maximum: 1 + gotoMarker: + description: > + Retune the device to the annotation marker at this index, counting from 0, as choosing it + in the goto list does. Needs a running GUI. + type: integer + minimum: 0 + +GLSpectrumHistory: + description: > + Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number + of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin + means, and a bin counts as occupied in a row when it is above the floor by the threshold. + Rows taken with another centre frequency or sample rate are skipped and counted. + properties: + centerFrequency: + type: integer + format: int64 + bandwidth: + type: integer + description: "Width of the whole spectrum in Hz." + startFrequency: + type: integer + format: int64 + description: "Centre frequency of the first returned bin in Hz." + stopFrequency: + type: integer + format: int64 + description: "Centre frequency of the last returned bin in Hz." + binBandwidth: + type: integer + description: "Width of each returned bin in Hz." + bins: + type: integer + rows: + type: integer + description: "Rows of history used." + skippedRows: + type: integer + description: "Rows in the period that were taken with the device tuned or sampling differently, and left out." + firstTime: + type: string + description: "Time of the oldest row used, ISO 8601." + lastTime: + type: string + description: "Time of the newest row used, ISO 8601." + seconds: + type: number + format: float + description: "Span between the oldest and newest rows used." + floorDb: + type: number + format: float + description: "The measured noise floor." + thresholdDb: + type: number + format: float + description: "The level above which a bin counts as occupied." + maxDb: + type: array + items: + type: number + format: float + description: "Per bin maximum over the rows." + meanDb: + type: array + items: + type: number + format: float + description: "Per bin mean over the rows." + occupancy: + type: array + items: + type: number + format: float + description: "Per bin fraction of rows in which the bin was above the threshold, 0 to 1." + signalCount: + type: integer + signalList: + type: array + items: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumHistorySignal" + description: "Runs of adjacent bins whose maximum rose above the threshold." +SpectrumHistorySignal: + description: A signal found in the spectrum history + properties: + frequency: + type: integer + format: int64 + description: "Frequency of the strongest bin in Hz." + startFrequency: + type: integer + format: int64 + description: "Lower edge in Hz." + stopFrequency: + type: integer + format: int64 + description: "Upper edge in Hz." + bandwidth: + type: integer + description: "Width in Hz, to the bin." + peakDb: + type: number + format: float + dutyCycle: + type: number + format: float + description: "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + firstSeen: + type: string + description: "Time of the first row it was up in, ISO 8601." + lastSeen: + type: string + description: "Time of the last row it was up in, ISO 8601." +GLSpectrumData: + description: > + A copy of the current power spectrum, reduced to the number of bins asked for so that the + answer stays a sensible size whatever the FFT size. The spectrum is only computed while + something is consuming it, a spectrum window or a websocket client, so updated says how old + these values are and is absent if none has been produced yet. + properties: + centerFrequency: + type: integer + format: int64 + description: "Centre frequency of the whole spectrum in Hz." + bandwidth: + type: integer + description: "Width of the whole spectrum in Hz." + fftSize: + type: integer + description: "Number of bins the spectrum was computed with, before reduction." + linear: + type: integer + minimum: 0 + maximum: 1 + description: "1 when the powers are linear, 0 when they are in dB." + updated: + type: string + description: "When the spectrum was last computed, ISO 8601. Absent if it never has been." + startFrequency: + type: integer + format: int64 + description: "Centre frequency of the first returned bin in Hz." + stopFrequency: + type: integer + format: int64 + description: "Centre frequency of the last returned bin in Hz." + binBandwidth: + type: number + format: float + description: "Width of each returned bin in Hz, after reduction." + bins: + type: integer + description: "Number of values in power." + reduce: + type: string + description: > + How several FFT bins were combined into each returned one, max or mean. Max keeps a narrow + carrier that averaging would bury in its neighbours, which is why it is the default. + power: + type: array + description: "The reduced powers, first bin first." + items: + type: number + format: float diff --git a/sdrbase/resources/webapi/doc/swagger/include/GS232Controller.yaml b/sdrbase/resources/webapi/doc/swagger/include/GS232Controller.yaml index 887f609aa..704821805 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/GS232Controller.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/GS232Controller.yaml @@ -24,6 +24,8 @@ GS232ControllerSettings: track: description: Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 source: description: "Identifier of the channel or feature plugin providing azimuth and elevation (E.g. R0:0 ADSBDemod)" type: string @@ -69,27 +71,40 @@ GS232ControllerSettings: format: float title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." GS232ControllerReport: description: "GS-232 Controller report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -131,6 +146,8 @@ GS232ControllerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/HackRF.yaml b/sdrbase/resources/webapi/doc/swagger/include/HackRF.yaml index bdb5cb5ba..6df4435bf 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/HackRF.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/HackRF.yaml @@ -3,39 +3,65 @@ HackRFInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." bandwidth: type: integer + description: "Bandwidth in Hz." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." vgaGain: type: integer + description: "Variable-gain-amplifier gain setting." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." biasT: type: integer + description: "Enable antenna bias power (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaExt: type: integer + description: "LNA ext setting for Hack RF input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -43,49 +69,80 @@ HackRFInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." HackRFOutputSettings: description: HackRF properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." bandwidth: type: integer + description: "Bandwidth in Hz." vgaGain: type: integer + description: "Variable-gain-amplifier gain setting." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." biasT: type: integer + description: "Enable antenna bias power (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaExt: type: integer + description: "LNA ext setting for Hack RF output." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/HeatMap.yaml b/sdrbase/resources/webapi/doc/swagger/include/HeatMap.yaml index eea541792..513ae3166 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/HeatMap.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/HeatMap.yaml @@ -4,6 +4,7 @@ HeatMapSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: description: channel RF bandwidth in Hz type: number @@ -11,46 +12,66 @@ HeatMapSettings: minPower: type: number format: float + description: "Min power setting for Heat map." maxPower: type: number format: float + description: "Max power setting for Heat map." colorMapName: type: string + description: "Color map name setting for Heat map." mode: description: "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)" type: integer + minimum: 0 + maximum: 4 pulseThreshold: type: number format: float + description: "Pulse threshold setting for Heat map." averagePeriodUS: description: "Averaging period in microseconds" type: integer sampleRate: type: integer + description: "Sample rate in samples per second." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." HeatMapReport: description: HeatMap @@ -61,3 +82,4 @@ HeatMapReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/IEEE_802_15_4_Mod.yaml b/sdrbase/resources/webapi/doc/swagger/include/IEEE_802_15_4_Mod.yaml index 2e2f92672..668e67243 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/IEEE_802_15_4_Mod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/IEEE_802_15_4_Mod.yaml @@ -4,16 +4,22 @@ IEEE_802_15_4_ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." modulation: description: > Modulation type * 0 - BPSK * 1 - OQPSK type: integer + minimum: 0 + maximum: 1 bitRate: type: integer + description: "Bit rate setting for Ieee 802 15 4 mod." subGHzBand: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Over 1 GHz standard @@ -21,17 +27,23 @@ IEEE_802_15_4_ModSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + minimum: 0 + maximum: 1 description: > * 0 - Effective transmission * 1 - Transmission is muted repeat: description: Whether to repeated transmit the frame (1 for yes, 0 for no). type: integer + minimum: 0 + maximum: 1 repeatDelay: description: Delay between repeated transmissions. type: number @@ -41,55 +53,78 @@ IEEE_802_15_4_ModSettings: type: integer rampUpBits: type: integer + description: "Ramp up bits setting for Ieee 802 15 4 mod." rampDownBits: type: integer + description: "Ramp down bits setting for Ieee 802 15 4 mod." rampRange: type: integer + description: "Ramp range setting for Ieee 802 15 4 mod." modulateWhileRamping: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - do not modulate in ramping phase * 1 - modulate in ramping phase lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." bbNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not add gaussian noise in baseband * 1 - Add gaussian noise in baseband writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not write frames to .csv file * 1 - Write frames to .csv file spectrumRate: type: integer + description: "Spectrum rate setting for Ieee 802 15 4 mod." data: type: string description: Hex coded bytes of data to transmit, excluding CRC (E.g for an ACK - 02 00 00) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scramble: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not scramble data @@ -99,6 +134,8 @@ IEEE_802_15_4_ModSettings: description: Scrambling polynomial pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Pulse shaping filter * 0 - Root Cosime @@ -109,11 +146,16 @@ IEEE_802_15_4_ModSettings: description: Pulse shaping filter beta factor symbolSpan: type: integer + description: "Symbol span setting for Ieee 802 15 4 mod." udpEnabled: description: Enable forwarding of frames via UDP type: integer + minimum: 0 + maximum: 1 udpBytesFormat: type: integer + minimum: 0 + maximum: 1 description: > Payload format * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a @@ -124,10 +166,14 @@ IEEE_802_15_4_ModSettings: udpPort: description: UDP port to listen for frames to transmit on type: integer + minimum: 1 + maximum: 65535 channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." IEEE_802_15_4_ModReport: description: IEEE_802_15_4_Mod @@ -138,12 +184,15 @@ IEEE_802_15_4_ModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." IEEE_802_15_4_ModActions: description: IEEE_802_15_4_Mod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Initialize a transmission cycle * 0 - Do nothing diff --git a/sdrbase/resources/webapi/doc/swagger/include/ILSDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/ILSDemod.yaml index 450a939c1..4ef659af2 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ILSDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ILSDemod.yaml @@ -4,87 +4,130 @@ ILSDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." mode: description: "(0 for LOC, 1 for G/S)" type: integer + minimum: 0 + maximum: 1 frequencyIndex: type: integer + description: "Selected frequency index." squelch: type: integer + description: "Squelch threshold in dB." volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 average: type: integer + description: "Average setting for Ils demod." ddmUnits: type: integer + description: "Ddm units setting for Ils demod." identThreshold: type: number format: float + description: "Ident threshold setting for Ils demod." ident: type: string + description: "Ident setting for Ils demod." runway: type: string + description: "Runway setting for Ils demod." trueBearing: type: number format: float + description: "True bearing setting for Ils demod." latitude: type: string + description: "Latitude in degrees, positive north." longitude: type: string + description: "Longitude in degrees, positive east." elevation: type: integer + description: "Elevation setting for Ils demod." glidePath: type: number format: float + description: "Glide path setting for Ils demod." refHeight: type: number format: float + description: "Ref height setting for Ils demod." courseWidth: type: number format: float + description: "Course width setting for Ils demod." udpEnabled: description: "Whether to forward DDM to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward DDM to" type: string udpPort: description: "UDP port to forward DDM to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ILSDemodReport: description: ILSDemod @@ -95,8 +138,10 @@ ILSDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." ident: type: string + description: "Reported ident." deviation: description: deviation in degrees type: number diff --git a/sdrbase/resources/webapi/doc/swagger/include/InmarsatDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/InmarsatDemod.yaml index cb6b971f5..80069d666 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/InmarsatDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/InmarsatDemod.yaml @@ -4,57 +4,87 @@ InmarsatDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." rrcRolloff: type: number format: float + description: "Rrc rolloff setting for Inmarsat demod." pllBandwidth: type: number format: float + description: "Pll bandwidth in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 udpFormat: description: "0 for binary, 1 for NMEA" type: integer + minimum: 0 + maximum: 1 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." InmarsatDemodReport: description: InmarsatDemod @@ -65,3 +95,4 @@ InmarsatDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/Interferometer.yaml b/sdrbase/resources/webapi/doc/swagger/include/Interferometer.yaml index 90e85483d..cebc9a2d4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Interferometer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Interferometer.yaml @@ -2,16 +2,31 @@ InterferometerSettings: description: Interferometer properties: correlationType: - description: see InterferometerSettings::CorrelationType + description: > + Operation applied to the two input streams + * 0 - stream 0 only + * 1 - stream 1 only + * 2 - add the streams + * 3 - multiply the streams + * 4 - inverse FFT of the cross spectrum + * 5 - inverse FFT of the conjugate cross spectrum + * 6 - FFT of the cross spectrum + * 7 - second form of the inverse FFT correlation type: integer + minimum: 0 + maximum: 7 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." phase: description: Channel B phase shift in degrees (-180 to 180) type: integer @@ -23,6 +38,8 @@ InterferometerSettings: type: integer play: type: integer + minimum: 0 + maximum: 1 description: > Run correlated IQ samples transfer * 0 - stop @@ -30,19 +47,31 @@ InterferometerSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/JogdialController.yaml b/sdrbase/resources/webapi/doc/swagger/include/JogdialController.yaml index 0fed67799..3d32e14b4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/JogdialController.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/JogdialController.yaml @@ -3,21 +3,32 @@ JogdialControllerSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml b/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml index a66a9a155..1f6554439 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml @@ -3,28 +3,43 @@ KiwiSDRSettings: properties: title: type: string + description: "User-visible title." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." useAGC: description: AGC active (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." serverAddress: description: Distant KiwiSDR instance URL or IPv4 address with port type: string useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." KiwiSDRReport: description: KiwiSDR @@ -32,12 +47,21 @@ KiwiSDRReport: status: description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected type: integer + minimum: 0 + maximum: 4 latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 altitude: type: number format: float + description: "Altitude above mean sea level." diff --git a/sdrbase/resources/webapi/doc/swagger/include/LimeRFE.yaml b/sdrbase/resources/webapi/doc/swagger/include/LimeRFE.yaml index de299cc8e..6e0918ee4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LimeRFE.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LimeRFE.yaml @@ -3,13 +3,17 @@ LimeRFESettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." devicePath: description: Path to the device serial interface (ex /dev/ttyUSB2) type: string rxChannels: type: integer + minimum: 0 + maximum: 2 description: > Rx channels group (LimeRFEController::ChannelGroups): * 0 - Wideband @@ -17,12 +21,16 @@ LimeRFESettings: * 2 - cellular rxWidebandChannel: type: integer + minimum: 0 + maximum: 1 description: > Rx wideband channel selection (LimeRFEController::WidebandChannel) * 0 - Low: 1 - 1000 MHz * 1 - High: 1 - 4 GHz rxHAMChannel: type: integer + minimum: 0 + maximum: 8 description: > Rx HAM channel selection (LimeRFEController::HAMChannel) * 0 - 30 MHz and lower @@ -36,6 +44,8 @@ LimeRFESettings: * 8 - 3300 - 3500 MHz rxCellularChannel: type: integer + minimum: 0 + maximum: 4 description: > Rx cellular channel selection (LimeRFEController::CellularChannel) * 0 - Band 1: 1.92 - 1.98 GHz @@ -45,6 +55,8 @@ LimeRFESettings: * 4 - Band 38: 2.56 - 2.63 GHz rxPort: type: integer + minimum: 0 + maximum: 1 description: > Rx port selected (LimeRFEController::RxPort) * 0 - J3 @@ -57,6 +69,8 @@ LimeRFESettings: type: integer txChannels: type: integer + minimum: 0 + maximum: 2 description: > Tx channels group (LimeRFEController::ChannelGroups) * 0 - Wideband @@ -64,12 +78,16 @@ LimeRFESettings: * 2 - cellular txWidebandChannel: type: integer + minimum: 0 + maximum: 1 description: > Tx wideband channel selection (LimeRFEController::WidebandChannel) * 0 - Low: 1 - 1000 MHz * 1 - High: 1 - 4 GHz txHAMChannel: type: integer + minimum: 0 + maximum: 8 description: > Tx HAM channel selection (LimeRFEController::HAMChannel) * 0 - 30 MHz and lower @@ -83,6 +101,8 @@ LimeRFESettings: * 8 - 3300 - 3500 MHz txCellularChannel: type: integer + minimum: 0 + maximum: 4 description: > Tx cellular channel selection (LimeRFEController::CellularChannel) * 0 - Band 1: 1.92 - 1.98 GHz @@ -92,6 +112,8 @@ LimeRFESettings: * 4 - Band 38: 2.56 - 2.63 GHz txPort: type: integer + minimum: 0 + maximum: 2 description: > Tx port selected (LimeRFEController::TxPort) * 0 - J3 @@ -100,8 +122,12 @@ LimeRFESettings: swrEnable: description: Boolean if SWR measurements are enabled else 0 type: integer + minimum: 0 + maximum: 1 swrSource: type: integer + minimum: 0 + maximum: 1 description: > SWR measurement source (LimeRFEController::SWRSource) * 0 - External @@ -109,19 +135,30 @@ LimeRFESettings: txRxDriven: description: Boolean 1 if Tx is copy of Rx else 0 type: integer + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." LimeRFEReport: description: LimeRFE @@ -129,9 +166,13 @@ LimeRFEReport: rxOn: description: Boolean 1 if Rx is active else 0 type: integer + minimum: 0 + maximum: 1 txOn: description: Boolean 1 if Tx is active else 0 type: integer + minimum: 0 + maximum: 1 forwardPower: description: relative forward power in centi-Bels type: integer @@ -144,6 +185,8 @@ LimeRFEActions: properties: selectChannel: type: integer + minimum: 0 + maximum: 1 description: > Select channel * 0 - Rx @@ -153,6 +196,8 @@ LimeRFEActions: description: Index of device set to synchronize switch with switchChannel: type: integer + minimum: 0 + maximum: 1 description: > Switch on or off * 0 - Off @@ -162,24 +207,32 @@ LimeRFEActions: description: Set to non zero value to get the board state fromToSettings: type: integer + minimum: 0 + maximum: 1 description: > Move from/to settings to/from device * 0 - From device to settings. The toGUI button in GUI mode * 1 - From settings to device. The Apply button in GUI mode openCloseDevice: type: integer + minimum: 0 + maximum: 1 description: > Open or close device * 0 - Close device * 1 - Open device setRx: type: integer + minimum: 0 + maximum: 1 description: > Set Rx om or off * 0 - Rx off * 1 - Rx on setTx: type: integer + minimum: 0 + maximum: 1 description: > Set Tx om or off * 0 - Tx off diff --git a/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml b/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml index 6645764a2..44f1d6348 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LimeSdr.yaml @@ -3,54 +3,91 @@ LimeSdrInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 splitFreq: type: integer + description: "Split freq setting for Lime sdr input." iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." lpfFIREnable: type: integer + description: "Enable the digital FIR low-pass filter (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lpfFIRBW: type: integer + description: "Digital FIR low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." ncoEnable: type: integer + description: "Enable the numerically controlled oscillator (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ncoFrequency: type: integer + description: "Numerically controlled oscillator frequency in Hz." antennaPath: type: integer + description: "Selected RF antenna path." gainMode: type: integer + description: "Gain-control mode selection." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." tiaGain: type: integer + description: "TIA gain setting for Lime sdr input." pgaGain: type: integer + description: "PGA gain setting for Lime sdr input." extClock: type: integer + description: "Use an external reference clock (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 extClockFreq: type: integer + description: "External reference-clock frequency in Hz." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -58,71 +95,113 @@ LimeSdrInputSettings: gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LimeSdrOutputSettings: description: LimeSDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." lpfFIREnable: type: integer + description: "Enable the digital FIR low-pass filter (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lpfFIRBW: type: integer + description: "Digital FIR low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." ncoEnable: type: integer + description: "Enable the numerically controlled oscillator (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ncoFrequency: type: integer + description: "Numerically controlled oscillator frequency in Hz." antennaPath: type: integer + description: "Selected RF antenna path." extClock: type: integer + description: "Use an external reference clock (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 extClockFreq: type: integer + description: "External reference-clock frequency in Hz." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LimeSdrMIMOSettings: description: LimeSDR @@ -130,8 +209,10 @@ LimeSdrMIMOSettings: # General title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." gpioDir: description: GPIO pin direction LSB first; 0 input, 1 output type: integer @@ -143,40 +224,61 @@ LimeSdrMIMOSettings: extClock: description: Boolean 1 if external clock source else 0 type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer useReverseAPI: description: Boolean type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." # Rx general rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." dcBlock: description: Boolean type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Boolean type: integer + minimum: 0 + maximum: 1 rxTransverterMode: description: Boolean type: integer + minimum: 0 + maximum: 1 rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -184,6 +286,8 @@ LimeSdrMIMOSettings: ncoEnableRx: description: Boolean 1 to enable TSP NCO and mixing else 0 type: integer + minimum: 0 + maximum: 1 ncoFrequencyRx: description: Rx Actual NCO frequency (the resulting frequency with mixing is displayed) type: integer @@ -195,6 +299,8 @@ LimeSdrMIMOSettings: lpfFIREnableRx0: description: Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWRx0: description: Rx[0] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -213,12 +319,16 @@ LimeSdrMIMOSettings: * 4 - LB TX1 * 5 - LB TX2 type: integer + minimum: 0 + maximum: 5 gainModeRx0: description: > Rx[0] Gain mode: * 0 - auto * 1 - manual type: integer + minimum: 0 + maximum: 1 lnaGainRx0: description: Rx[0] Manual LNA gain type: integer @@ -236,6 +346,8 @@ LimeSdrMIMOSettings: lpfFIREnableRx1: description: Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWRx1: description: Rx[1] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -253,12 +365,16 @@ LimeSdrMIMOSettings: * 4 - LB TX1 * 5 - LB TX2 type: integer + minimum: 0 + maximum: 5 gainModeRx1: description: > Rx[1] Gain mode: * 0 - auto * 1 - manual type: integer + minimum: 0 + maximum: 1 lnaGainRx1: description: Rx[1] Manual LNA gain type: integer @@ -272,19 +388,27 @@ LimeSdrMIMOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." txTransverterMode: description: Boolean type: integer + minimum: 0 + maximum: 1 txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." ncoEnableTx: description: Boolean 1 to enable TSP NCO and mixing else 0 type: integer + minimum: 0 + maximum: 1 ncoFrequencyTx: description: Tx Actual NCO frequency (the resulting frequency with mixing is displayed) type: integer @@ -296,6 +420,8 @@ LimeSdrMIMOSettings: lpfFIREnableTx0: description: Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWTx0: description: Tx[0] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -310,6 +436,8 @@ LimeSdrMIMOSettings: * 1 - RF connector 1 * 2 - RF connector 2 type: integer + minimum: 0 + maximum: 2 # Tx channel 1 lpfBWTx1: description: Tx[1] LMS analog lowpass filter bandwidth (Hz) @@ -318,6 +446,8 @@ LimeSdrMIMOSettings: lpfFIREnableTx1: description: Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWTx1: description: Tx[1] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -332,6 +462,8 @@ LimeSdrMIMOSettings: * 1 - RF connector 1 * 2 - RF connector 2 type: integer + minimum: 0 + maximum: 2 LimeSdrInputReport: description: LimeSDR @@ -342,19 +474,27 @@ LimeSdrInputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." underrunCount: type: integer + description: "Number of stream underrun events." overrunCount: type: integer + description: "Number of stream overrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." linkRate: type: number format: float + description: "Measured streaming link rate." hwTimestamp: description: Hardware timestamp type: integer @@ -362,12 +502,15 @@ LimeSdrInputReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." LimeSdrOutputReport: description: LimeSDR @@ -378,19 +521,27 @@ LimeSdrOutputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." underrunCount: type: integer + description: "Number of stream underrun events." overrunCount: type: integer + description: "Number of stream overrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." linkRate: type: number format: float + description: "Measured streaming link rate." hwTimestamp: description: Hardware timestamp type: integer @@ -398,12 +549,15 @@ LimeSdrOutputReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." LimeSdrMIMOReport: description: LimeSDR @@ -415,12 +569,15 @@ LimeSdrMIMOReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." successRx: description: 1 if Rx info was successfully retrieved else 0 type: integer @@ -429,17 +586,23 @@ LimeSdrMIMOReport: type: integer fifoSizeRx: type: integer + description: "Reported fifo size receive." fifoFillRx: type: integer + description: "Current receive FIFO fill level." underrunCountRx: type: integer + description: "Reported underrun count receive." overrunCountRx: type: integer + description: "Reported overrun count receive." droppedPacketsCountRx: type: integer + description: "Reported dropped packets count receive." linkRateRx: type: number format: float + description: "Reported link rate receive." successTx: description: 1 if Tx info was successfully retrieved else 0 type: integer @@ -448,14 +611,20 @@ LimeSdrMIMOReport: type: integer fifoSizeTx: type: integer + description: "Reported fifo size transmit." fifoFillTx: type: integer + description: "Current transmit FIFO fill level." underrunCountTx: type: integer + description: "Reported underrun count transmit." overrunCountTx: type: integer + description: "Reported overrun count transmit." droppedPacketsCountTx: type: integer + description: "Reported dropped packets count transmit." linkRateTx: type: number format: float + description: "Reported link rate transmit." diff --git a/sdrbase/resources/webapi/doc/swagger/include/LocalInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/LocalInput.yaml index 9bb193216..b4e7e3413 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LocalInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LocalInput.yaml @@ -3,19 +3,33 @@ LocalInputSettings: properties: title: type: string + description: "User-visible title." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LocalInputReport: description: LocalInput @@ -23,5 +37,7 @@ LocalInputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml index c077f1dfc..6eedd0efb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml @@ -3,15 +3,23 @@ LocalOutputSettings: properties: title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LocalOutputReport: description: LocalOutput @@ -19,5 +27,7 @@ LocalOutputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/LocalSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/LocalSink.yaml index 2e8cf2187..83c6e7ef3 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LocalSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LocalSink.yaml @@ -6,20 +6,28 @@ LocalSinkSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." play: type: integer + minimum: 0 + maximum: 1 description: > Run samples transfer * 0 - stop * 1 - run dsp: type: integer + minimum: 0 + maximum: 1 description: > Activate DSP * 0 - Skip DSP functions @@ -29,6 +37,8 @@ LocalSinkSettings: type: integer fftOn: type: integer + minimum: 0 + maximum: 1 description: > Activate FFT multiband filter * 0 - do not run filter @@ -38,6 +48,8 @@ LocalSinkSettings: type: integer fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT window type * 0 - Bartlett @@ -51,10 +63,13 @@ LocalSinkSettings: * 8 - Blackman-Harris (7th order) fftBands: type: array + description: "List of fft bands." items: $ref: "/doc/swagger/include/LocalSink.yaml#/FFTBand" reverseFilter: type: integer + minimum: 0 + maximum: 1 description: > * 0 - band definitions are bandpass * 1 - band definitions are band reject @@ -64,18 +79,28 @@ LocalSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FFTBand: diff --git a/sdrbase/resources/webapi/doc/swagger/include/LocalSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/LocalSource.yaml index 4d8f78d45..361cc2f82 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/LocalSource.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/LocalSource.yaml @@ -6,30 +6,46 @@ LocalSourceSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." play: description: boolean (1 to play, 0 to stop) type: integer + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/M17Demod.yaml b/sdrbase/resources/webapi/doc/swagger/include/M17Demod.yaml index 7cb5deb74..d78eedccb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/M17Demod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/M17Demod.yaml @@ -4,66 +4,99 @@ M17DemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." volume: type: number format: float + description: "Audio volume multiplier." demodGain: type: number format: float + description: "Demod gain setting for M17 demod." baudRate: type: integer + description: "Serial-port baud rate in bits per second." squelchGate: type: integer + description: "Squelch gate duration." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 syncOrConstellation: type: integer + description: "Sync or constellation setting for M17 demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." highPassFilter: type: integer + description: "High pass filter setting for M17 demod." traceLengthMutliplier: description: multiply by 50ms type: integer traceStroke: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 traceDecay: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 audioDeviceName: type: string + description: "Name of the audio device to use." statusLogEnabled: type: integer + description: "Enable status log (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." M17DemodReport: description: M17Demod @@ -74,8 +107,10 @@ M17DemodReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." squelch: description: squelch status (1 if open else 0) type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/M17Mod.yaml b/sdrbase/resources/webapi/doc/swagger/include/M17Mod.yaml index c525825b6..831fc700a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/M17Mod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/M17Mod.yaml @@ -4,26 +4,39 @@ M17ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for M17 mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." m17Mode: type: integer description: M17Mode @@ -35,55 +48,81 @@ M17ModSettings: description: PacketType audioDeviceName: type: string + description: "Name of the audio device to use." feedbackAudioDeviceName: type: string + description: "Feedback audio device name setting for M17 mod." feedbackVolumeFactor: type: number format: float + description: "Feedback volume factor setting for M17 mod." feedbackAudioEnable: type: integer + description: "Feedback audio enable setting for M17 mod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." sourceCall: type: string + description: "Source call setting for M17 mod." destCall: type: string + description: "Dest call setting for M17 mod." insertPosition: type: integer + description: "Insert position setting for M17 mod." can: type: integer + description: "Can setting for M17 mod." smsText: type: string + description: "Sms text setting for M17 mod." loopPacket: type: integer + description: "Loop packet setting for M17 mod." loopPacketInterval: type: integer + description: "Loop packet interval setting for M17 mod." aprsCallsign: type: string + description: "Aprs callsign setting for M17 mod." aprsTo: type: string + description: "Aprs to setting for M17 mod." aprsVia: type: string + description: "Aprs via setting for M17 mod." aprsData: type: string + description: "Aprs data setting for M17 mod." aprsInsertPosition: type: integer + description: "Aprs insert position setting for M17 mod." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." M17ModReport: description: M17Mod @@ -94,5 +133,7 @@ M17ModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/MCPServer.yaml b/sdrbase/resources/webapi/doc/swagger/include/MCPServer.yaml new file mode 100644 index 000000000..25bf48fbd --- /dev/null +++ b/sdrbase/resources/webapi/doc/swagger/include/MCPServer.yaml @@ -0,0 +1,77 @@ +MCPServerSettings: + description: "MCP (Model Context Protocol) server settings" + properties: + address: + type: string + description: Address to bind the HTTP listener to. Defaults to 127.0.0.1 (local connections only) + port: + type: integer + minimum: 1024 + maximum: 65535 + description: TCP port the MCP server listens on + token: + type: string + description: Optional bearer token clients must present in the Authorization header. Empty for no authentication + captureDir: + type: string + description: Directory that IQ and audio captures are written to. Capture tools refuse paths outside it + title: + type: string + description: "User-visible title." + rgbColor: + type: integer + description: "Display color encoded as an RGB integer." + useReverseAPI: + type: integer + minimum: 0 + maximum: 1 + description: > + Synchronize with reverse API + * 1 - yes + * 0 - no + reverseAPIAddress: + type: string + description: "IPv4 address or host name of the reverse API peer." + reverseAPIPort: + type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 + reverseAPIFeatureSetIndex: + type: integer + description: "Feature-set index used by the reverse API peer." + reverseAPIFeatureIndex: + type: integer + description: "Feature index used by the reverse API peer." + rollupState: + $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +MCPServerReport: + description: MCP server report + properties: + runningState: + type: integer + minimum: 0 + maximum: 3 + description: > + Running state + * 0 - not started + * 1 - idle + * 2 - running + * 3 - error + requestCount: + type: integer + description: Number of MCP requests served since the server was started + +MCPServerActions: + description: MCP server actions + properties: + run: + type: integer + minimum: 0 + maximum: 1 + description: > + Set the plugin running state + * 0 - idle + * 1 - run diff --git a/sdrbase/resources/webapi/doc/swagger/include/Map.yaml b/sdrbase/resources/webapi/doc/swagger/include/Map.yaml index b4d8a4022..513f01e3c 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Map.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Map.yaml @@ -4,26 +4,195 @@ MapSettings: displayNames: description: Display object names on the map (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 + map2DEnabled: + description: Display the 2D map pane (1 for yes, 0 for no). Disable this while keeping map3DEnabled enabled to show only the 3D map. + type: integer + minimum: 0 + maximum: 1 + map3DEnabled: + description: Display the 3D map pane (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + mapProvider: + description: 2D map provider identifier. + type: string + mapType: + description: Selected 2D map type, for example Street Map or Satellite Map. + type: string + osmURL: + description: Custom OpenStreetMap tile-server URL. + type: string + mapBoxStyles: + description: Mapbox style identifier used by the selected 2D provider. + type: string + displaySelectedGroundTracks: + description: Display ground tracks for selected items (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayAllGroundTracks: + description: Display ground tracks for all items (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 terrain: description: "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" type: string + buildings: + description: 3D buildings layer, for example None or Cesium OSM Buildings. + type: string + sunLightEnabled: + description: Light the globe from the Sun's direction (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + lightIntensity: + description: Camera light intensity used by the 3D map. + type: number + format: float + minimum: 0 + eciCamera: + description: Use an ECI rather than ECEF camera frame (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fxaa: + description: Enable fast approximate anti-aliasing (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + msaa: + description: Multisample anti-aliasing level. + type: integer + minimum: 1 + maximum: 8 + terrainLighting: + description: Enable terrain lighting (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + water: + description: Enable water effects (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + hdr: + description: Enable high dynamic range rendering (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fog: + description: Enable atmospheric fog (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fps: + description: Display the 3D map frame rate (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMUF: + description: Display maximum-usable-frequency contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayfoF2: + description: Display F2 critical-frequency contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayRain: + description: Display weather-radar rain and snow overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayClouds: + description: Display satellite infrared cloud overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displaySeaMarks: + description: Display sea marks (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayRailways: + description: Display railways (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayNASAGlobalImagery: + description: Display NASA GIBS imagery (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + nasaGlobalImageryIdentifier: + description: NASA GIBS imagery-layer identifier. + type: string + nasaGlobalImageryOpacity: + description: NASA GIBS imagery opacity as a percentage. + type: integer + minimum: 0 + maximum: 100 + displayAurora: + description: Display aurora-probability overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMagDec: + description: Display magnetic-declination contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMaidenheadGrid: + description: Display Maidenhead grid (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayPFD: + description: Display the aircraft primary-flight display (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + viewFirstPerson: + description: Use first-person 3D map view (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + defaultImagery: + description: Default imagery layer for the 3D map. + type: string title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MapReport: description: Map @@ -64,10 +233,14 @@ MapItem: description: "Latitude in decimal degrees, positive to the North" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees, positive to the East" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude / height above sea level in metres" type: number @@ -75,6 +248,8 @@ MapItem: fixedPosition: description: "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" type: integer + minimum: 0 + maximum: 1 positionDateTime: description: "Date and time at this position (ISO 8601 extended format)" type: string @@ -97,6 +272,8 @@ MapItem: orientation: description: "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" type: integer + minimum: 0 + maximum: 1 heading: description: "Heading angle, in decimal degrees clockwise from North" type: number @@ -129,6 +306,8 @@ MapItem: altitudeReference: description: "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." type: integer + minimum: 0 + maximum: 3 animations: description: "Animations to play" type: array @@ -137,18 +316,24 @@ MapItem: type: description: "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" type: integer + minimum: 0 + maximum: 3 imageTileWest: type: number format: float + description: "Image tile west for Map item." imageTileSouth: type: number format: float + description: "Image tile south for Map item." imageTileEast: type: number format: float + description: "Image tile east for Map item." imageTileNorth: type: number format: float + description: "Image tile north for Map item." imageZoomLevel: description: "For 2D map" type: number @@ -171,11 +356,14 @@ MapItem: colorValid: description: "0 - Use default color, 1 - Use specified color" type: integer + minimum: 0 + maximum: 1 color: description: "RGBA for polygon and polyline" type: integer aircraftState: $ref: "/doc/swagger/include/Map.yaml#/MapAircraftState" + description: "Current states of aircraft tracked by the ADS-B demodulator." MapAnimation: description: "Animation to play in the model on the 3D map" @@ -186,9 +374,13 @@ MapAnimation: reverse: description: "(0 - Forward, 1 - Reverse)" type: integer + minimum: 0 + maximum: 1 loop: description: "(0 - Play once, 1 - Play in loop)" type: integer + minimum: 0 + maximum: 1 startDateTime: description: "Date and time to start playing this animation (ISO 8601 extended format)" type: string @@ -218,10 +410,14 @@ MapCoordinate: description: "Latitude in decimal degrees, positive to the North" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees, positive to the East" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude / height above sea level in metres" type: number @@ -235,10 +431,13 @@ MapAircraftState: properties: callsign: type: string + description: "Radio callsign." aircraftType: type: string + description: "Aircraft type for Map aircraft state." onSurface: type: integer + description: "On surface for Map aircraft state." airspeed: description: "Indicated airspeed in knots" type: number @@ -257,6 +456,7 @@ MapAircraftState: mach: type: number format: float + description: "Mach for Map aircraft state." altitude: description: "Barometric altitude in feet" type: number @@ -286,12 +486,15 @@ MapAircraftState: selectedAirspeed: type: number format: float + description: "Selected airspeed for Map aircraft state." selectedAltitude: type: number format: float + description: "Selected altitude for Map aircraft state." selectedHeading: type: number format: float + description: "Selected heading for Map aircraft state." autopilot: description: "-1 unknown, 0 off, 1 on" type: integer @@ -307,10 +510,13 @@ MapAircraftState: windSpeed: type: number format: float + description: "Wind speed for Map aircraft state." windDirection: type: number format: float + description: "Wind direction for Map aircraft state." staticAirTemperature: type: number format: float + description: "Static air temperature for Map aircraft state." diff --git a/sdrbase/resources/webapi/doc/swagger/include/MeshcoreDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/MeshcoreDemod.yaml new file mode 100644 index 000000000..b9ddc945d --- /dev/null +++ b/sdrbase/resources/webapi/doc/swagger/include/MeshcoreDemod.yaml @@ -0,0 +1,228 @@ +MeshcoreDemodSettings: + description: MeshcoreDemod + properties: + inputFrequencyOffset: + type: integer + format: int64 + description: "Channel frequency offset from the device center frequency in Hz." + bandwidthIndex: + type: integer + minimum: 0 + maximum: 26 + description: > + standard bandwidths index: + * 0 - 375 Hz (384000 / 1024) + * 1 - 750 Hz (384000 / 512) + * 2 - 1500 Hz (384000 / 256) + * 3 - 2604 Hz (333333 / 128) + * 4 - 3125 Hz (400000 / 128) + * 5 - 3906 Hz (500000 / 128) + * 6 - 5208 Hz (333333 / 64) + * 7 - 6250 Hz (400000 / 64) + * 8 - 7813 Hz (500000 / 64) + * 9 - 10417 Hz (333333 / 32) + * 10 - 12500 Hz (400000 / 32) + * 11 - 15625 Hz (500000 / 32) + * 12 - 20833 Hz (333333 / 16) + * 13 - 25000 Hz (400000 / 16) + * 14 - 31250 Hz (500000 / 16) + * 15 - 41667 Hz (333333 / 8) + * 16 - 50000 Hz (400000 / 8) + * 17 - 62500 Hz (500000 / 8) + * 18 - 83333 Hz (333333 / 4) + * 19 - 100000 Hz (400000 / 4) + * 20 - 125000 Hz (500000 / 4) + * 21 - 166667 Hz (333333 / 2) + * 22 - 200000 Hz (400000 / 2) + * 23 - 250000 Hz (500000 / 2) + * 24 - 333333 Hz (333333 / 1) + * 25 - 400000 Hz (400000 / 1) + * 26 - 500000 Hz (500000 / 1) + spreadFactor: + type: integer + description: "Spread factor setting for Meshcore demod." + deBits: + description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol + type: integer + decodeActive: + description: boolean 1 to activate 0 to de-activate decoder + type: integer + minimum: 0 + maximum: 1 + eomSquelchTenths: + description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 + type: integer + nbSymbolsMax: + description: expected maximum number of symbols in a payload + type: integer + preambleChirps: + description: Number of expected preamble chirps + type: integer + nbParityBits: + description: Hamming FEC parity bits (LoRa) + type: integer + packetLength: + description: expected packet length in number of bytes (LoRa) + type: integer + sendViaUDP: + description: boolean 1 to send decoded message via UDP else 0 + type: integer + minimum: 0 + maximum: 1 + sendJsonViaUDP: + description: boolean 1 to send decoded message as JSON via UDP else 0 + type: integer + minimum: 0 + maximum: 1 + udpEnabled: + type: integer + minimum: 0 + maximum: 1 + description: > + Boolean - Send via UDP + * 0 - Do not send decoded messages via UDP + * 1 - Send decoded messages via UDP + udpAddress: + description: UDP destination udpAddress + type: string + udpPort: + description: UDP destination port + type: integer + minimum: 1 + maximum: 65535 + invertRamps: + type: integer + minimum: 0 + maximum: 1 + description: > + Invert chirp ramps + * 0 - Normal chirp ramps (upchirps for preamble and payload) + * 1 - Inverted chirp ramps (downchirps for preamble and payload) + rgbColor: + type: integer + description: "Display color encoded as an RGB integer." + title: + type: string + description: "User-visible title." + streamIndex: + description: MIMO channel. Not relevant when connected to SI (single Rx). + type: integer + useReverseAPI: + description: Synchronize with reverse API (1 for yes, 0 for no) + type: integer + minimum: 0 + maximum: 1 + reverseAPIAddress: + type: string + description: "IPv4 address or host name of the reverse API peer." + reverseAPIPort: + type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 + reverseAPIDeviceIndex: + type: integer + description: "Device-set index used by the reverse API peer." + reverseAPIChannelIndex: + type: integer + description: "Channel index used by the reverse API peer." + spectrumConfig: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." + channelMarker: + $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." + rollupState: + $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +MeshcoreDemodReport: + description: MeshcoreDemod + properties: + channelPowerDB: + description: current de-chirped total channel power (dB) + type: number + format: float + noisePowerDB: + description: current de-chirped noise argmax power (dB) + type: number + format: float + signalPowerDB: + description: last message de-chirped signal argmax power (dB) + type: number + format: float + snrPowerDB: + description: last message de-chirped signal to noise ratio power (dB) + type: number + format: float + channelSampleRate: + type: integer + description: "Effective sample rate delivered to the channel in samples per second." + syncWord: + description: 2 bytes sync word (0..65535) + type: integer + minimum: 0 + maximum: 65535 + nbParityBits: + description: Hamming FEC parity bits (LoRa) + type: integer + packetLength: + description: Packet length in number of bytes (LoRa) + type: integer + nbSymbols: + description: Number of symbols in the payload with header and CRC (LoRa) + type: integer + nbCodewords: + description: Number of codewords in the payload with header and CRC (LoRa) + type: integer + headerParityStatus: + type: integer + minimum: 0 + maximum: 3 + description: > + Header FEC parity status: + * 0 - Undefined + * 1 - Uncorrectable error + * 2 - Corrected error + * 3 - OK + headerCRCStatus: + description: header CRC check status. Boolean 1 if OK else 0 + type: integer + payloadParityStatus: + type: integer + minimum: 0 + maximum: 3 + description: > + Payload FEC parity status: + * 0 - Undefined + * 1 - Uncorrectable error + * 2 - Corrected error + * 3 - OK + payloadCRCStatus: + description: payload CRC check status. Boolean 1 if OK else 0 + type: integer + messageTimestamp: + description: timestamp of the last decoded message + type: string + messageString: + description: string representation of the last decoded message + type: string + frameType: + description: frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP) + type: string + channelType: + description: Channel type code e.g. LONG_FAST + type: string + messageBytes: + description: bytes of the last decoded message as an array of hex string represented bytes (00..FF) + type: array + items: + type: string + decoding: + type: integer + minimum: 0 + maximum: 1 + description: > + Boolean - decoding status + * 0 - no decoding + * 1 - decoding diff --git a/sdrbase/resources/webapi/doc/swagger/include/MeshcoreMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/MeshcoreMod.yaml new file mode 100644 index 000000000..80df1878d --- /dev/null +++ b/sdrbase/resources/webapi/doc/swagger/include/MeshcoreMod.yaml @@ -0,0 +1,169 @@ +MeshcoreModSettings: + description: MeshcoreMod + properties: + inputFrequencyOffset: + type: integer + format: int64 + description: "Channel frequency offset from the device center frequency in Hz." + bandwidthIndex: + type: integer + minimum: 0 + maximum: 26 + description: > + standard bandwidths index: + * 0 - 375 Hz (384000 / 1024) + * 1 - 750 Hz (384000 / 512) + * 2 - 1500 Hz (384000 / 256) + * 3 - 2604 Hz (333333 / 128) + * 4 - 3125 Hz (400000 / 128) + * 5 - 3906 Hz (500000 / 128) + * 6 - 5208 Hz (333333 / 64) + * 7 - 6250 Hz (400000 / 64) + * 8 - 7813 Hz (500000 / 64) + * 9 - 10417 Hz (333333 / 32) + * 10 - 12500 Hz (400000 / 32) + * 11 - 15625 Hz (500000 / 32) + * 12 - 20833 Hz (333333 / 16) + * 13 - 25000 Hz (400000 / 16) + * 14 - 31250 Hz (500000 / 16) + * 15 - 41667 Hz (333333 / 8) + * 16 - 50000 Hz (400000 / 8) + * 17 - 62500 Hz (500000 / 8) + * 18 - 83333 Hz (333333 / 4) + * 19 - 100000 Hz (400000 / 4) + * 20 - 125000 Hz (500000 / 4) + * 21 - 166667 Hz (333333 / 2) + * 22 - 200000 Hz (400000 / 2) + * 23 - 250000 Hz (500000 / 2) + * 24 - 333333 Hz (333333 / 1) + * 25 - 400000 Hz (400000 / 1) + * 26 - 500000 Hz (500000 / 1) + spreadFactor: + type: integer + description: "Spread factor setting for Meshcore mod." + deBits: + description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol + type: integer + preambleChirps: + description: Number of preamble chirps + type: integer + quietMillis: + description: Number of milliseconds to pause between transmissions + type: integer + syncWord: + description: 2 byte (0..65535) synchronization syncWord + type: integer + minimum: 0 + maximum: 65535 + channelMute: + description: boolean + type: integer + minimum: 0 + maximum: 1 + nbParityBits: + description: Hamming FEC parity bits (LoRa) + type: integer + textMessage: + description: freeform text message + type: string + messageRepeat: + description: number of repetitions of the same message (0 for infinite) + type: integer + udpEnabled: + description: boolean 1 to enable forwarding messages via UDP else 0 + type: integer + minimum: 0 + maximum: 1 + udpAddress: + description: UDP address to listen for messages to transmit on + type: string + udpPort: + description: UDP port to listen for messages to transmit on + type: integer + minimum: 1 + maximum: 65535 + invertRamps: + type: integer + minimum: 0 + maximum: 1 + description: > + Invert chirp ramps + * 0 - Normal chirp ramps (upchirps for preamble and payload) + * 1 - Inverted chirp ramps (downchirps for preamble and payload) + rgbColor: + type: integer + description: "Display color encoded as an RGB integer." + title: + type: string + description: "User-visible title." + streamIndex: + description: MIMO channel. Not relevant when connected to SI (single Rx). + type: integer + useReverseAPI: + description: Synchronize with reverse API (1 for yes, 0 for no) + type: integer + minimum: 0 + maximum: 1 + reverseAPIAddress: + type: string + description: "IPv4 address or host name of the reverse API peer." + reverseAPIPort: + type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 + reverseAPIDeviceIndex: + type: integer + description: "Device-set index used by the reverse API peer." + reverseAPIChannelIndex: + type: integer + description: "Channel index used by the reverse API peer." + channelMarker: + $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." + rollupState: + $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +MeshcoreModReport: + description: MeshcoreMod + properties: + channelPowerDB: + description: power transmitted in channel (dB) + type: number + format: float + channelSampleRate: + type: integer + description: "Effective sample rate delivered to the channel in samples per second." + symbolTimeMs: + description: symbol duration (ms) + type: number + format: float + payloadTimeMs: + description: payload duration (ms) + type: number + format: float + totalTimeMs: + description: total message duration inc. preamble and SFD (ms) + type: number + format: float + playing: + type: integer + minimum: 0 + maximum: 1 + description: > + Boolean - modulator is active (playing) including idle time + * 0 - Modulator not active + * 1 - Modulator active + +MeshcoreModActions: + description: MeshcoreMod + properties: + sendNow: + type: integer + minimum: 0 + maximum: 1 + description: > + Send packet immediately + * 0 - Do nothing + * 1 - Send packet diff --git a/sdrbase/resources/webapi/doc/swagger/include/MeshtasticDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/MeshtasticDemod.yaml index 7666da80b..ff527fb85 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/MeshtasticDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/MeshtasticDemod.yaml @@ -4,8 +4,11 @@ MeshtasticDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,12 +40,15 @@ MeshtasticDemodSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshtastic demod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer decodeActive: description: boolean 1 to activate 0 to de-activate decoder type: integer + minimum: 0 + maximum: 1 eomSquelchTenths: description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 type: integer @@ -61,8 +67,17 @@ MeshtasticDemodSettings: sendViaUDP: description: boolean 1 to send decoded message via UDP else 0 type: integer + minimum: 0 + maximum: 1 + sendJsonViaUDP: + description: boolean 1 to send decoded message as JSON via UDP else 0 + type: integer + minimum: 0 + maximum: 1 udpEnabled: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Send via UDP * 0 - Do not send decoded messages via UDP @@ -73,36 +88,53 @@ MeshtasticDemodSettings: udpPort: description: UDP destination port type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshtasticDemodReport: description: MeshtasticDemod @@ -125,9 +157,12 @@ MeshtasticDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." syncWord: description: 2 bytes sync word (0..65535) type: integer + minimum: 0 + maximum: 65535 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -142,6 +177,8 @@ MeshtasticDemodReport: type: integer headerParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Header FEC parity status: * 0 - Undefined @@ -153,6 +190,8 @@ MeshtasticDemodReport: type: integer payloadParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Payload FEC parity status: * 0 - Undefined @@ -181,6 +220,8 @@ MeshtasticDemodReport: type: string decoding: type: integer + minimum: 0 + maximum: 1 description: > Boolean - decoding status * 0 - no decoding diff --git a/sdrbase/resources/webapi/doc/swagger/include/MeshtasticMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/MeshtasticMod.yaml index becee7420..5439950b7 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/MeshtasticMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/MeshtasticMod.yaml @@ -4,8 +4,11 @@ MeshtasticModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,6 +40,7 @@ MeshtasticModSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshtastic mod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer @@ -49,9 +53,13 @@ MeshtasticModSettings: syncWord: description: 2 byte (0..65535) synchronization syncWord type: integer + minimum: 0 + maximum: 65535 channelMute: description: boolean type: integer + minimum: 0 + maximum: 1 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -64,40 +72,58 @@ MeshtasticModSettings: udpEnabled: description: boolean 1 to enable forwarding messages via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpAddress: description: UDP address to listen for messages to transmit on type: string udpPort: description: UDP port to listen for messages to transmit on type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshtasticModReport: description: MeshtasticMod @@ -108,6 +134,7 @@ MeshtasticModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." symbolTimeMs: description: symbol duration (ms) type: number @@ -122,6 +149,8 @@ MeshtasticModReport: format: float playing: type: integer + minimum: 0 + maximum: 1 description: > Boolean - modulator is active (playing) including idle time * 0 - Modulator not active diff --git a/sdrbase/resources/webapi/doc/swagger/include/MetisMISO.yaml b/sdrbase/resources/webapi/doc/swagger/include/MetisMISO.yaml index bf651b8b2..008f8bc59 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/MetisMISO.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/MetisMISO.yaml @@ -3,11 +3,14 @@ MetisMISOSettings: properties: title: type: string + description: "User-visible title." nbReceivers: type: integer description: Number of activated receivers txEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx * 0 - disabled sends null payload to Metis device @@ -47,8 +50,11 @@ MetisMISOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." rxTransverterMode: type: integer + minimum: 0 + maximum: 1 description: > Rx transverter activated * 0 - disabled @@ -56,8 +62,11 @@ MetisMISOSettings: rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." txTransverterMode: type: integer + minimum: 0 + maximum: 1 description: > Tx transverter activated * 0 - disabled @@ -65,8 +74,11 @@ MetisMISOSettings: txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > I/Q samples order * 0 - I then Q (direct) @@ -97,43 +109,59 @@ MetisMISOSettings: type: integer sampleRateIndex: type: integer + description: "Selected sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 3 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." LOppmTenths: type: integer description: LO correction in tenths of ppm preamp: type: integer + minimum: 0 + maximum: 1 description: > Preamplifer * 0 - disabled * 1 - enabled random: type: integer + minimum: 0 + maximum: 1 description: > LT2208 Random * 0 - disabled * 1 - enabled dither: type: integer + minimum: 0 + maximum: 1 description: > LT2208 Dither * 0 - disabled * 1 - enabled duplex: type: integer + minimum: 0 + maximum: 1 description: > Duplex * 0 - disabled * 1 - enabled dcBlock: type: integer + minimum: 0 + maximum: 1 description: > DC block in software * 0 - disabled * 1 - enabled iqCorrection: type: integer + minimum: 0 + maximum: 1 description: > DC block in software * 0 - disabled @@ -149,25 +177,36 @@ MetisMISOSettings: description: The index of the stream that is used as source of the main spectrum streamLock: type: integer + minimum: 0 + maximum: 1 description: > Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked rxLock: type: integer + minimum: 0 + maximum: 1 description: > Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 0 - disabled * 1 - enabled reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/MorseDecoder.yaml b/sdrbase/resources/webapi/doc/swagger/include/MorseDecoder.yaml index 2354110cb..46e9bef5a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/MorseDecoder.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/MorseDecoder.yaml @@ -3,20 +3,30 @@ MorseDecoderSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 udpEnabled: type: integer + minimum: 0 + maximum: 1 description: > Send decoded text via UDP * 1 - send @@ -26,36 +36,48 @@ MorseDecoderSettings: description: Address to send text via UDP udpPort: type: integer + minimum: 1 + maximum: 65535 description: Port to send text via UDP logFiledName: type: string description: File to log the decoded text to logEnabled: type: integer + minimum: 0 + maximum: 1 description: > Log decoded text to file * 1 - log * 0 - do not log auto: type: integer + minimum: 0 + maximum: 1 description: > Auto detect CW pitch and keying speed * 1 - auto detect * 0 - use last values showThreshold: type: integer + minimum: 0 + maximum: 1 description: > Show GGMorse decoder threshold on the imaginary part of the scope trace * 1 - show * 0 - do not show reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MorseDecoderActions: description: "Morse Decoder actions" diff --git a/sdrbase/resources/webapi/doc/swagger/include/NFMDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/NFMDemod.yaml index 3b245c478..43b02db83 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/NFMDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/NFMDemod.yaml @@ -15,11 +15,13 @@ NFMDemodSettings: format: float fmDeviation: type: integer + description: "FM frequency deviation in Hz." squelchGate: description: squelch gate in tens of ms type: integer deltaSquelch: type: integer + description: "Delta squelch setting for Nfm demod." squelch: description: power squelch threshold in deci-bels type: number @@ -27,38 +29,58 @@ NFMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." ctcssOn: type: integer + description: "Ctcss on setting for Nfm demod." highPass: type: integer + description: "High pass setting for Nfm demod." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 ctcssIndex: type: integer + description: "Selected ctcss index." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NFMDemodReport: description: NFMDemod @@ -76,6 +98,8 @@ NFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/NFMMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/NFMMod.yaml index a20109dd4..529ad051a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/NFMMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/NFMMod.yaml @@ -4,63 +4,91 @@ NFMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Nfm mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ctcssOn: description: > Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled type: integer + minimum: 0 + maximum: 1 ctcssIndex: type: integer + description: "Selected ctcss index." dcsOn: description: > Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled type: integer + minimum: 0 + maximum: 1 dcsCode: type: integer + description: "Dcs code setting for Nfm mod." dcsPositive: description: > Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1 type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." preEmphasisOn: type: integer + minimum: 0 + maximum: 1 description: > Activate pre-emphasis filter: * 0 - inactive * 1 - active bpfOn: type: integer + minimum: 0 + maximum: 1 description: > Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive @@ -71,20 +99,31 @@ NFMModSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "/doc/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NFMModReport: description: NFMMod @@ -95,5 +134,7 @@ NFMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/NavtexDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/NavtexDemod.yaml index 82ff8db2a..e19b6e863 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/NavtexDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/NavtexDemod.yaml @@ -4,52 +4,78 @@ NavtexDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." navArea: type: integer + description: "Nav area setting for Navtex demod." filterStation: type: string + description: "Filter station setting for Navtex demod." filterType: type: string + description: "Filter type setting for Navtex demod." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NavtexDemodReport: description: ACARSDemod @@ -60,3 +86,4 @@ NavtexDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/NoiseFigure.yaml b/sdrbase/resources/webapi/doc/swagger/include/NoiseFigure.yaml index 6b5f0570b..eb4ccc5a2 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/NoiseFigure.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/NoiseFigure.yaml @@ -4,64 +4,92 @@ NoiseFigureSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." fftSize: type: integer + description: "FFT size in samples." fftCount: type: integer + description: "Number of fft events or items." sweepSpec: description: "(0 - Range, 1 - Step, 2 - List)" type: integer + minimum: 0 + maximum: 2 startValue: type: number format: float + description: "Start value setting for Noise figure." stopValue: type: number format: float + description: "Stop value setting for Noise figure." steps: type: integer + description: "Steps setting for Noise figure." step: type: number format: float + description: "Increment between adjacent supported values." list: type: string + description: "List setting for Noise figure." setting: description: "The device setting to sweep (E.g. centerFrequency or gain)" type: string visaDevice: type: string + description: "Visa device setting for Noise figure." powerOnSCPI: type: string + description: "Power on scpi setting for Noise figure." powerOffSCPI: type: string + description: "Power off scpi setting for Noise figure." powerOnCommand: type: string + description: "Power on command setting for Noise figure." powerOffCommand: type: string + description: "Power off command setting for Noise figure." powerDelay: type: number format: float + description: "Power delay setting for Noise figure." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NoiseFigureReport: description: NoiseFigure @@ -72,3 +100,4 @@ NoiseFigureReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/PERTester.yaml b/sdrbase/resources/webapi/doc/swagger/include/PERTester.yaml index 361600140..186069f74 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PERTester.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PERTester.yaml @@ -3,12 +3,16 @@ PERTesterSettings: properties: packetCount: type: integer + description: "Number of packet events or items." interval: type: number format: float + description: "Interval setting for Per tester." start: description: "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass" type: integer + minimum: 0 + maximum: 2 satellites: description: "Satellite names to start test on" type: array @@ -19,8 +23,10 @@ PERTesterSettings: type: string ignoreLeadingBytes: type: integer + description: "Ignore leading bytes setting for Per tester." ignoreTrailingBytes: type: integer + description: "Ignore trailing bytes setting for Per tester." txUDPAddress: description: "UDP address to sent packets to be transmitted to" type: string @@ -35,27 +41,40 @@ PERTesterSettings: type: integer title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PERTesterReport: description: PERTester properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -68,6 +87,8 @@ PERTesterActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/PSK31Mod.yaml b/sdrbase/resources/webapi/doc/swagger/include/PSK31Mod.yaml index c6c694338..66512abd5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PSK31Mod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PSK31Mod.yaml @@ -4,21 +4,34 @@ PSK31ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: integer + description: "RF bandwidth in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatCount: type: integer + description: "Number of repetitions." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -28,6 +41,8 @@ PSK31ModSettings: description: Text to transmit pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -35,43 +50,67 @@ PSK31ModSettings: beta: type: number format: float + description: "Beta setting for Psk31 mod." symbolSpan: type: integer + description: "Symbol span setting for Psk31 mod." prefixCRLF: type: integer + description: "Enable prefix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 postfixCRLF: type: integer + description: "Enable postfix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to receive text to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive text to transmit via" type: string udpPort: description: "UDP port to receive text to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PSK31ModReport: description: PSK31Mod @@ -82,18 +121,22 @@ PSK31ModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." PSK31ModActions: description: PSK31Mod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit current text * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: text: description: PSK31 content to transmit diff --git a/sdrbase/resources/webapi/doc/swagger/include/PacketDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/PacketDemod.yaml index 55670e8c7..823b3fa0f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PacketDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PacketDemod.yaml @@ -4,6 +4,7 @@ PacketDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." mode: type: integer description: > @@ -12,6 +13,7 @@ PacketDemodSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." chase: description: "Chase decoding depth. On CRC failure, retry inverting the n least confident symbols. 0 disables" type: integer @@ -21,40 +23,63 @@ PacketDemodSettings: udpEnabled: description: "Whether to forward received packets to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received packets to" type: string udpPort: description: "UDP port to forward received packets to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PacketDemodReport: description: PacketDemod @@ -65,3 +90,4 @@ PacketDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/PacketMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/PacketMod.yaml index db529c3ca..ac4bc71f9 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PacketMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PacketMod.yaml @@ -4,8 +4,11 @@ PacketModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." modulation: type: integer + minimum: 0 + maximum: 1 description: > Modulation mode * 0 - AFSK @@ -16,103 +19,149 @@ PacketModSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatDelay: type: number format: float + description: "Delay between repetitions." repeatCount: type: integer + description: "Number of repetitions." rampUpBits: type: integer + description: "Ramp up bits setting for Packet mod." rampDownBits: type: integer + description: "Ramp down bits setting for Packet mod." rampRange: type: integer + description: "Ramp range setting for Packet mod." modulateWhileRamping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on markFrequency: type: integer + description: "Mark frequency in Hz." spaceFrequency: type: integer + description: "Space frequency in Hz." ax25PreFlags: type: integer + description: "Ax25 pre flags setting for Packet mod." ax25PostFlags: type: integer + description: "Ax25 post flags setting for Packet mod." ax25Control: type: integer + description: "Ax25 control setting for Packet mod." ax25PID: type: integer + description: "Ax25 pid setting for Packet mod." preEmphasis: type: integer + description: "Pre emphasis setting for Packet mod." preEmphasisTau: type: number format: float + description: "Pre emphasis tau setting for Packet mod." preEmphasisHighFreq: type: number format: float + description: "Pre emphasis high freq setting for Packet mod." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." bbNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on spectrumRate: type: integer + description: "Spectrum rate setting for Packet mod." callsign: type: string + description: "Radio callsign." to: type: string + description: "To setting for Packet mod." via: type: string + description: "Via setting for Packet mod." data: type: string + description: "Payload data." bpf: type: integer + description: "Bpf setting for Packet mod." bpfLowCutoff: type: number format: float + description: "Bpf low cutoff setting for Packet mod." bpfHighCutoff: type: number format: float + description: "Bpf high cutoff setting for Packet mod." bpfTaps: type: integer + description: "Bpf taps setting for Packet mod." scramble: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on polynomial: type: integer + description: "Polynomial setting for Packet mod." pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -120,39 +169,57 @@ PacketModSettings: beta: type: number format: float + description: "Beta setting for Packet mod." symbolSpan: type: integer + description: "Symbol span setting for Packet mod." udpEnabled: description: "Whether to receive packets to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive packets to transmit via" type: string udpPort: description: "UDP port to receive packets to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PacketModReport: description: PacketMod @@ -163,26 +230,35 @@ PacketModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." PacketModActions: description: PacketMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit with current data * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: callsign: type: string + description: "Radio callsign." to: type: string + description: "To action parameter." via: type: string + description: "Via action parameter." data: type: string + description: "Payload data." diff --git a/sdrbase/resources/webapi/doc/swagger/include/PagerDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/PagerDemod.yaml index 4c4f783d9..1151eb3a2 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PagerDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PagerDemod.yaml @@ -3,6 +3,8 @@ PagerDemodSettings: properties: decode: type: integer + minimum: 0 + maximum: 4 description: > Decode mode * 0 - Standard @@ -12,6 +14,8 @@ PagerDemodSettings: * 4 - Heuristic reverse: type: integer + minimum: 0 + maximum: 1 description: > Whether characters should be reversed, for right-to-left reading order * 0 - Straight @@ -19,49 +23,73 @@ PagerDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PagerDemodReport: description: PagerDemod @@ -72,3 +100,4 @@ PagerDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/Perseus.yaml b/sdrbase/resources/webapi/doc/swagger/include/Perseus.yaml index 227992b44..22c38a452 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Perseus.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Perseus.yaml @@ -3,15 +3,22 @@ PerseusSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 2 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." adcDither: description: ADC dithering (1 if active else 0) type: integer @@ -23,11 +30,17 @@ PerseusSettings: type: integer transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -38,17 +51,25 @@ PerseusSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PerseusReport: description: Perseus properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "/doc/swagger/include/Structs.yaml#/SampleRate" diff --git a/sdrbase/resources/webapi/doc/swagger/include/PlutoSdr.yaml b/sdrbase/resources/webapi/doc/swagger/include/PlutoSdr.yaml index 95709d5d3..a6f7f4c79 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/PlutoSdr.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/PlutoSdr.yaml @@ -3,40 +3,66 @@ PlutoSdrInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lpfFIREnable: description: Low pass FIR filter enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 lpfFIRBW: description: digital lowpass FIR filter bandwidth (Hz) type: integer lpfFIRlog2Decim: description: digital lowpass FIR filter log2 of decimation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfFIRGain: description: digital lowpass FIR filter gain (dB) type: integer fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwBBDCBlock: type: integer + description: "Enable hw bbdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwRFDCBlock: type: integer + description: "Enable hw rfdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwIQCorrection: type: integer + description: "Enable hw i/q correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." lpfBW: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -45,15 +71,23 @@ PlutoSdrInputSettings: type: integer antennaPath: type: integer + description: "Selected RF antenna path." gainMode: type: integer + description: "Gain-control mode selection." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -61,39 +95,55 @@ PlutoSdrInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrOutputSettings: description: PlutoSDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lpfFIREnable: description: Low pass FIR filter enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 lpfFIRBW: description: digital lowpass FIR filter bandwidth (Hz) type: integer lpfFIRlog2Interp: description: digital lowpass FIR filter log2 of interpolation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." lpfBW: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -102,53 +152,90 @@ PlutoSdrOutputSettings: type: integer antennaPath: type: integer + description: "Selected RF antenna path." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrMIMOSettings: description: PlutoSDR properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwBBDCBlock: type: integer + description: "Enable hw bbdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwRFDCBlock: type: integer + description: "Enable hw rfdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwIQCorrection: type: integer + description: "Enable hw i/q correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 fcPosRx: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 rxTransverterMode: type: integer + description: "Receive transverter mode setting for Pluto sdr MIMO." rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -165,36 +252,48 @@ PlutoSdrMIMOSettings: lpfRxFIRlog2Decim: description: digital lowpass FIR filter log2 of decimation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfRxFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." rx0Gain: description: Hardware gain type: integer rx0GainMode: type: integer + description: "Rx0 gain mode setting for Pluto sdr MIMO." rx0AntennaPath: type: integer + description: "Rx0 antenna path setting for Pluto sdr MIMO." rx1Gain: description: Hardware gain type: integer rx1GainMode: type: integer + description: "Rx1 gain mode setting for Pluto sdr MIMO." rx1AntennaPath: type: integer + description: "Rx1 antenna path setting for Pluto sdr MIMO." txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." fcPosTx: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 txTransverterMode: type: integer + description: "Transmit transverter mode setting for Pluto sdr MIMO." txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." lpfBWTx: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -207,71 +306,98 @@ PlutoSdrMIMOSettings: lpfTxFIRlog2Interp: description: digital lowpass FIR filter log2 of interpolation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfTxFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." tx0Att: description: Hardware attenuator gain in decibel fourths (negative) type: integer tx0AntennaPath: type: integer + description: "Tx0 antenna path setting for Pluto sdr MIMO." tx1Att: description: Hardware attenuator gain in decibel fourths (negative) type: integer tx1AntennaPath: type: integer + description: "Tx1 antenna path setting for Pluto sdr MIMO." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrInputReport: description: PlutoSDR properties: adcRate: type: integer + description: "ADC sample rate in samples per second." rssi: type: string + description: "Received signal strength indication." gainDB: type: integer + description: "Gain dB in dB." temperature: type: number format: float + description: "Reported device temperature." PlutoSdrOutputReport: description: PlutoSDR properties: dacRate: type: integer + description: "DAC sample rate in samples per second." rssi: type: string + description: "Received signal strength indication." temperature: type: number format: float + description: "Reported device temperature." PlutoSdrMIMOReport: description: PlutoSDR properties: adcRate: type: integer + description: "ADC sample rate in samples per second." dacRate: type: integer + description: "DAC sample rate in samples per second." rx0GainDB: type: integer + description: "Rx0 gain dB in dB." rx1GainDB: type: integer + description: "Rx1 gain dB in dB." rssiRx0: type: string + description: "Reported rssi rx0." rssiRx1: type: string + description: "Reported rssi rx1." rssiTx0: type: string + description: "Reported rssi tx0." rssiTx1: type: string + description: "Reported rssi tx1." diff --git a/sdrbase/resources/webapi/doc/swagger/include/Preferences.yaml b/sdrbase/resources/webapi/doc/swagger/include/Preferences.yaml index 23dcb720b..e984758c5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Preferences.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Preferences.yaml @@ -9,22 +9,33 @@ Preferences: type: integer audioType: type: string + description: "Audio type for Preferences." audioDevice: type: string + description: "Audio device for Preferences." latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 consoleMinLogLevel: description: See QtMsgType type: integer useLogFile: description: boolean type: integer + minimum: 0 + maximum: 1 logFileName: type: string + description: "Log file name." fileMinLogLevel: description: See QtMsgType type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/Preset.yaml b/sdrbase/resources/webapi/doc/swagger/include/Preset.yaml index ffcf4e39c..d76b8bd4e 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Preset.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Preset.yaml @@ -3,12 +3,16 @@ DeviceConfig: properties: deviceId: type: string + description: "Device id for Device config." deviceSerial: type: string + description: "Device serial for Device config." deviceSequence: type: integer + description: "Device sequence for Device config." config: $ref: "/doc/swagger/include/DeviceSettings.yaml#/DeviceSettings" + description: "Configuration data." ChannelConfig: description: Represents a Preset::ChannelConfig object @@ -18,34 +22,51 @@ ChannelConfig: type: string config: $ref: "/doc/swagger/include/ChannelSettings.yaml#/ChannelSettings" + description: "Configuration data." Preset: description: Represents a Preset object properties: presetType: - description: See Preset::PresetType + description: > + Which kind of device set the preset applies to + * 0 - receiver + * 1 - transmitter + * 2 - MIMO type: integer + minimum: 0 + maximum: 2 group: type: string + description: "Group for Preset." description: type: string + description: "Human-readable description." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." dcOffsetCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 iqImbalanceCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 channelConfigs: type: array + description: "List of channel configs." items: $ref: "/doc/swagger/include/Preset.yaml#/ChannelConfig" deviceConfigs: type: array + description: "List of device configs." items: $ref: "/doc/swagger/include/Preset.yaml#/DeviceConfig" layout: diff --git a/sdrbase/resources/webapi/doc/swagger/include/RTTYDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/RTTYDemod.yaml index 29728a85c..e2f0790ab 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RTTYDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RTTYDemod.yaml @@ -4,63 +4,100 @@ RTTYDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." baudRate: type: number format: float + description: "Serial-port baud rate in bits per second." frequencyShift: type: integer + description: "Frequency shift in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 characterSet: type: integer + description: "Character set setting for Rtty demod." suppressCRLF: type: integer + description: "Suppress crlf setting for Rtty demod." unshiftOnSpace: type: integer + description: "Enable unshift on space (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 msbFirst: type: integer + description: "Enable msb first (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 spaceHigh: type: integer + description: "Enable space high (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 squelch: type: integer + description: "Squelch threshold in dB." logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RTTYDemodReport: description: ACARSDemod @@ -71,3 +108,4 @@ RTTYDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RTTYMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/RTTYMod.yaml index f0ae8c487..0ff34589d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RTTYMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RTTYMod.yaml @@ -4,27 +4,41 @@ RTTYModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." baud: type: number format: float description: Baud rate rfBandwidth: type: integer + description: "RF bandwidth in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatCount: type: integer + description: "Number of repetitions." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -34,6 +48,8 @@ RTTYModSettings: description: Text to transmit pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -41,51 +57,85 @@ RTTYModSettings: beta: type: number format: float + description: "Beta setting for Rtty mod." symbolSpan: type: integer + description: "Symbol span setting for Rtty mod." characterSet: type: integer + description: "Character set setting for Rtty mod." unshiftOnSpace: type: integer + description: "Enable unshift on space (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 msbFirst: type: integer + description: "Enable msb first (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 spaceHigh: type: integer + description: "Enable space high (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 prefixCRLF: type: integer + description: "Enable prefix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 postfixCRLF: type: integer + description: "Enable postfix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to receive text to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive text to transmit via" type: string udpPort: description: "UDP port to receive text to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RTTYModReport: description: RTTYMod @@ -96,18 +146,22 @@ RTTYModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." RTTYModActions: description: RTTYMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit current text * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: text: description: RTTY content to transmit diff --git a/sdrbase/resources/webapi/doc/swagger/include/RadioAstronomy.yaml b/sdrbase/resources/webapi/doc/swagger/include/RadioAstronomy.yaml index 20d56e540..0861cb4b1 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RadioAstronomy.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RadioAstronomy.yaml @@ -4,79 +4,115 @@ RadioAstronomySettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." rfBandwidth: type: integer + description: "RF bandwidth in Hz." integration: type: integer + description: "Integration setting for Radio astronomy." fftSize: type: integer + description: "FFT size in samples." fftWindow: type: integer + description: "FFT window setting for Radio astronomy." filterFreqs: type: string + description: "Filter freqs setting for Radio astronomy." starTracker: type: string + description: "Star tracker setting for Radio astronomy." rotator: type: string + description: "Rotator setting for Radio astronomy." runMode: description: "(0 for single, 1 for continuous, 2 for sweep)" type: integer + minimum: 0 + maximum: 2 sweepStartAtTime: description: "(0 for now, 1 for at sweepStartDateTime)" type: integer + minimum: 0 + maximum: 1 sweepStartDateTime: type: string + description: "Sweep start date time setting for Radio astronomy." sweepType: description: "(0 for Az/El, 1 for l/b, 2 for offset)" type: integer + minimum: 0 + maximum: 2 sweep1Start: type: number format: float + description: "Sweep1 start setting for Radio astronomy." sweep1Stop: type: number format: float + description: "Sweep1 stop setting for Radio astronomy." sweep1Step: type: number format: float + description: "Sweep1 step setting for Radio astronomy." sweep1Delay: type: number format: float + description: "Sweep1 delay setting for Radio astronomy." sweep2Start: type: number format: float + description: "Sweep2 start setting for Radio astronomy." sweep2Stop: type: number format: float + description: "Sweep2 stop setting for Radio astronomy." sweep2Step: type: number format: float + description: "Sweep2 step setting for Radio astronomy." sweep2Delay: type: number format: float + description: "Sweep2 delay setting for Radio astronomy." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadioAstronomyReport: description: RadioAstronomy @@ -87,6 +123,7 @@ RadioAstronomyReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." RadioAstronomyActions: description: RadioAstronomy diff --git a/sdrbase/resources/webapi/doc/swagger/include/RadioClock.yaml b/sdrbase/resources/webapi/doc/swagger/include/RadioClock.yaml index 600ee71bb..ac1b1e42b 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RadioClock.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RadioClock.yaml @@ -8,6 +8,8 @@ RadioClockSettings: frequencyMode: description: (0 for Offset, 1 for Absolute) type: integer + minimum: 0 + maximum: 1 frequency: description: Channel center frequency type: integer @@ -19,36 +21,54 @@ RadioClockSettings: threshold: type: number format: float + description: "Threshold setting for Radio clock." modulation: description: 0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY type: integer + minimum: 0 + maximum: 4 timezone: description: 0 - Broadcast, 1 - Local, 2 - UTC type: integer + minimum: 0 + maximum: 2 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadioClockReport: description: RadioClock @@ -59,7 +79,10 @@ RadioClockReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." date: type: string + description: "Reported date." time: type: string + description: "Reported time." diff --git a/sdrbase/resources/webapi/doc/swagger/include/Radiosonde.yaml b/sdrbase/resources/webapi/doc/swagger/include/Radiosonde.yaml index 1e7feb6a9..3a668f676 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Radiosonde.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Radiosonde.yaml @@ -3,26 +3,130 @@ RadiosondeSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." radiosondesColumnIndexes: type: array + description: "List of radiosondes column indexes." items: type: integer radiosondesColumnSizes: type: array + description: "List of radiosondes column sizes." items: type: integer + +RadiosondeReport: + description: > + Radiosondes heard by the Radiosonde feature, which collects the decoded frames of every + radiosonde demodulator in the instance. A field is present only once a frame carrying it has + been received. + properties: + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + radiosondeCount: + type: integer + description: "Number of radiosondes currently held." + radiosondes: + type: array + description: "The radiosondes heard." + items: + $ref: "/doc/swagger/include/Radiosonde.yaml#/Radiosonde" + +Radiosonde: + description: Radiosonde heard by the Radiosonde feature + properties: + serial: + type: string + description: "Serial number, which identifies the sonde across a flight." + type: + type: string + description: "Sonde model, such as RS41." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + altitude: + type: number + format: float + description: "Altitude in metres above mean sea level." + altitudeMax: + type: number + format: float + description: "Greatest altitude seen this flight in metres, which indicates the burst altitude." + speed: + type: number + format: float + description: "Ground speed in km/h." + verticalRate: + type: number + format: float + description: "Ascent rate in m/s. Negative after burst." + heading: + type: number + format: float + description: "Direction of travel in degrees true." + status: + type: string + description: "Status as reported by the sonde." + pressure: + type: number + format: float + description: "Atmospheric pressure in hPa." + temperature: + type: number + format: float + description: "Air temperature in degrees Celsius." + humidity: + type: number + format: float + description: "Relative humidity as a percentage." + frequency: + type: integer + format: int64 + description: "Transmit frequency in Hz." + burstKillStatus: + type: string + description: "Whether the burst-kill timer is armed." + burstKillTimer: + type: string + description: "Time remaining on the burst-kill timer." + lastUpdate: + type: string + description: "When any field was last updated, ISO 8601." + messages: + type: integer + description: "Frames received from this radiosonde." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RadiosondeDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/RadiosondeDemod.yaml index e6efd7fc9..b72c3db9f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RadiosondeDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RadiosondeDemod.yaml @@ -7,54 +7,82 @@ RadiosondeDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." correlationThreshold: type: number format: float + description: "Minimum correlation score required to accept a frame preamble." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "/doc/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadiosondeDemodReport: description: RadiosondeDemod @@ -65,3 +93,4 @@ RadiosondeDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteInput.yaml index b0ce39d43..cf081f6b4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteInput.yaml @@ -3,35 +3,60 @@ RemoteInputSettings: properties: title: type: string + description: "User-visible title." apiAddress: type: string + description: "IPv4 address or host name of the API endpoint." apiPort: type: integer + description: "TCP port of the API endpoint." + minimum: 1 + maximum: 65535 dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 multicastAddress: type: string + description: "IP multicast group address." multicastJoin: type: integer + minimum: 0 + maximum: 1 description: > Join multicast group * 0 - leave group * 1 - join group dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteInputReport: description: RemoteInput @@ -39,8 +64,10 @@ RemoteInputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." bufferRWBalance: description: percentage off the mid buffer (positive read leads) type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteOutput.yaml index 59a8f0ac7..94784c09a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteOutput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteOutput.yaml @@ -3,8 +3,10 @@ RemoteOutputSettings: properties: title: type: string + description: "User-visible title." nbFECBlocks: type: integer + description: "Nb fec blocks setting for Remote output." nbTxBytes: type: integer description: > @@ -14,12 +16,20 @@ RemoteOutputSettings: * 4 apiAddress: type: string + description: "IPv4 address or host name of the API endpoint." apiPort: type: integer + description: "TCP port of the API endpoint." + minimum: 1 + maximum: 65535 dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 deviceIndex: description: remote SDRangel instance deviceset index type: integer @@ -29,12 +39,19 @@ RemoteOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteOutputReport: description: RemoteOutput @@ -42,8 +59,10 @@ RemoteOutputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." queueLength: description: "Data read/write queue length in number of data frames" type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteSink.yaml index e5ff44fe8..5fca32b6d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteSink.yaml @@ -20,29 +20,45 @@ RemoteSinkSettings: dataPort: description: "Receiving USB data port" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteSource.yaml index 347fef743..4ddadace4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteSource.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteSource.yaml @@ -7,32 +7,48 @@ RemoteSourceSettings: dataPort: description: "Remote USB data port" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RemoteSourceReport: description: "Remote channel source report" diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml index e2e92a307..20faac400 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml @@ -3,72 +3,120 @@ RemoteTCPInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 directSampling: type: integer + description: "Direct sampling setting for Remote TCP input." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rfBW: type: integer + description: "RF bw in Hz." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." channelGain: type: integer + description: "Channel gain setting for Remote TCP input." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." channelDecimation: type: integer + description: "Channel decimation setting for Remote TCP input." sampleBits: type: integer + description: "Number of significant bits in each sample." dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 overrideRemoteSettings: type: integer + description: "Override remote settings setting for Remote TCP input." preFill: type: integer + description: "Pre fill setting for Remote TCP input." protocol: description: (SDRangel or Spy Server) type: string useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteTCPInputReport: description: RemoteTCPInput properties: sampleRate: type: integer + description: "Sample rate in samples per second." latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 altitude: type: number format: float + description: "Altitude above mean sea level." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPSink.yaml index 4152765bf..37faae342 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPSink.yaml @@ -3,40 +3,59 @@ RemoteTCPSinkSettings: properties: channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." sampleBits: type: integer + description: "Number of significant bits in each sample." dataAddress: description: "Receiving TCP data address" type: string dataPort: description: "Receiving TCP data port" type: integer + minimum: 1 + maximum: 65535 protocol: type: integer + description: "Protocol setting for Remote TCP sink." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/RigCtlServer.yaml b/sdrbase/resources/webapi/doc/swagger/include/RigCtlServer.yaml index b661b9ea9..8730e8d84 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RigCtlServer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RigCtlServer.yaml @@ -3,44 +3,63 @@ RigCtlServerSettings: properties: enabled: type: integer + minimum: 0 + maximum: 1 description: > Enable RigCtl server * 1 - enabled * 0 - disabled rigCtlPort: type: integer + description: "Rig ctl port." maxFrequencyOffset: type: integer + description: "Max frequency offset in Hz." deviceIndex: type: integer + description: "Selected device index." channelIndex: type: integer + description: "Selected channel index." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RigCtlServerReport: description: RigCtl server report properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -53,6 +72,8 @@ RigCtlServerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/RollupState.yaml b/sdrbase/resources/webapi/doc/swagger/include/RollupState.yaml index 843e01866..0c7178eea 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RollupState.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RollupState.yaml @@ -3,8 +3,11 @@ RollupChildState: properties: objectName: type: string + description: "Object name for Rollup child state." isHidden: type: integer + minimum: 0 + maximum: 1 description: > Boolean - child hidden state * 0 - visible @@ -15,7 +18,9 @@ RollupState: properties: version: type: integer + description: "Version for Rollup state." childrenStates: type: array + description: "List of children states." items: $ref: "/doc/swagger/include/RollupState.yaml#/RollupChildState" diff --git a/sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml b/sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml index f0d7492b7..8fe7254d9 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/RtlSdr.yaml @@ -3,46 +3,91 @@ RtlSdrSettings: properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: > + RTL-SDR device I/Q sample rate in samples per second before software + decimation. The baseband sample rate delivered to channels is + devSampleRate / 2^log2Decim. lowSampleRate: type: integer + minimum: 0 + maximum: 1 + description: "Use the RTL-SDR low sample-rate range (1 enabled, 0 disabled)." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." gain: type: integer + description: > + Tuner gain in tenths of a dB, so 496 means 49.6 dB. Only the discrete values the tuner + supports can be used; they are listed in the gains field of RtlSdrReport, which must be + read from the device report before setting this. Ignored unless agc is disabled. loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: > + Base-2 exponent of the software decimation factor. The baseband sample + rate delivered to channels is devSampleRate / 2^log2Decim and must be + high enough for every channel's RF bandwidth. For example, broadcast FM + with 180 kHz RF bandwidth should use at least 240 kS/s (256 kS/s is + recommended); at 1.024 MS/s set log2Decim to 2, not 4. fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqImbalance: type: integer + description: "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 noModMode: type: integer + description: "No mod mode setting for Rtl sdr." offsetTuning: type: integer + description: "Enable tuner offset tuning (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) rfBandwidth: type: integer + description: "RF bandwidth in Hz." biasTee: type: integer + minimum: 0 + maximum: 1 description: > Bias tee * 0 - inactive @@ -50,19 +95,28 @@ RtlSdrSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RtlSdrReport: description: RTLSDR properties: gains: type: array + description: "List of gains." items: $ref: "/doc/swagger/include/Structs.yaml#/Gain" tunerType: type: string + description: "Reported tuner type." diff --git a/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml b/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml index d766696f5..b0de4c661 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml @@ -3,40 +3,63 @@ SDRPlaySettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." tunerGain: type: integer + description: "Tuner gain setting for Sdr play." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." frequencyBandIndex: type: integer + description: "Selected frequency band index." ifFrequencyIndex: type: integer + description: "Selected if frequency index." bandwidthIndex: type: integer + description: "Selected bandwidth index." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 tunerGainMode: description: 1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain type: integer lnaOn: type: integer + description: "LNA on setting for Sdr play." mixerAmpOn: type: integer + description: "Mixer amp on setting for Sdr play." basebandGain: type: integer + description: "Baseband gain setting for Sdr play." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -44,29 +67,40 @@ SDRPlaySettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SDRPlayReport: description: SDRplay1 properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "/doc/swagger/include/Structs.yaml#/SampleRate" bandwidths: type: array + description: "Supported bandwidths in Hz." items: $ref: "/doc/swagger/include/Structs.yaml#/Bandwidth" intermediateFrequencies: type: array + description: "List of intermediate frequencies." items: $ref: "/doc/swagger/include/Structs.yaml#/Frequency" frequencyBands: type: array + description: "List of frequency bands." items: $ref: "/doc/swagger/include/Structs.yaml#/FrequencyBand" diff --git a/sdrbase/resources/webapi/doc/swagger/include/SDRPlayV3.yaml b/sdrbase/resources/webapi/doc/swagger/include/SDRPlayV3.yaml index cea7865d5..111036c24 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SDRPlayV3.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SDRPlayV3.yaml @@ -3,59 +3,92 @@ SDRPlayV3Settings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." ifFrequencyIndex: type: integer + description: "Selected if frequency index." bandwidthIndex: type: integer + description: "Selected bandwidth index." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaIndex: type: integer + description: "Selected lna index." lnaGain: description: Gain in dB, as an alternative to lnaIndex setting type: integer ifAGC: type: integer + description: "IF agc setting for Sdr play v3." ifGain: type: integer + description: "Intermediate-frequency gain setting." amNotch: type: integer + description: "Am notch setting for Sdr play v3." fmNotch: type: integer + description: "FM notch setting for Sdr play v3." dabNotch: type: integer + description: "Dab notch setting for Sdr play v3." extRef: type: integer + description: "Ext ref setting for Sdr play v3." tuner: type: integer + description: "Tuner setting for Sdr play v3." antenna: type: integer + description: "Antenna setting for Sdr play v3." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) biasTee: type: integer + minimum: 0 + maximum: 1 description: > Bias tee * 0 - inactive @@ -63,12 +96,19 @@ SDRPlayV3Settings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SDRPlayV3Report: description: SDRplayV3 @@ -78,9 +118,11 @@ SDRPlayV3Report: description: SDRplay device type. Can be RSP1, RSP1A, RSP1B, RSP2, RSPduo, RSPdx, Unknown bandwidths: type: array + description: "Supported bandwidths in Hz." items: $ref: "/doc/swagger/include/Structs.yaml#/Bandwidth" intermediateFrequencies: type: array + description: "List of intermediate frequencies." items: $ref: "/doc/swagger/include/Structs.yaml#/Frequency" diff --git a/sdrbase/resources/webapi/doc/swagger/include/SID.yaml b/sdrbase/resources/webapi/doc/swagger/include/SID.yaml index c7f56bdde..18ba77ea0 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SID.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SID.yaml @@ -4,28 +4,46 @@ SIDSettings: period: type: number format: float + description: "Period setting for Sid." autosave: type: integer + description: "Autosave setting for Sid." autoload: type: integer + description: "Autoload setting for Sid." filename: - type: integer + type: string + description: > + File that measurements are written to and read back from when autosave or + autoload is enabled. autosavePeriod: type: integer + description: "Autosave period setting for Sid." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/sdrbase/resources/webapi/doc/swagger/include/SSBDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/SSBDemod.yaml index bbe86d946..5a27a00a5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SSBDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SSBDemod.yaml @@ -4,18 +4,25 @@ SSBDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." filterIndex: type: integer + description: "Selected filter index." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -30,6 +37,7 @@ SSBDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioBinaural: description: Audio binaural mode (1 if active else 0) type: integer @@ -42,9 +50,13 @@ SSBDemodSettings: audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 agcClamping: description: AGC clamping (1 if AGC clampingactive else 0) type: integer @@ -59,12 +71,16 @@ SSBDemodSettings: type: integer dnr: type: integer + minimum: 0 + maximum: 1 description: > Toggle noise reduction: * 0 - Noise reduction off * 1 - Noise reduction on dnrScheme: type: integer + minimum: 0 + maximum: 2 description: > Noise reduction scheme: * 0 - Average of magnitudes @@ -84,33 +100,49 @@ SSBDemodSettings: dnrAlpha: type: number format: float + minimum: 0 + maximum: 1 description: Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1. rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SSBDemodReport: description: SSBDemod @@ -124,5 +156,7 @@ SSBDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/SSBMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/SSBMod.yaml index 59d593d82..f400a4df8 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SSBMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SSBMod.yaml @@ -4,68 +4,105 @@ SSBModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidth: type: number format: float + description: "Bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." usb: type: integer + description: "USB setting for Ssb mod." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Ssb mod." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioBinaural: type: integer + description: "Audio binaural setting for Ssb mod." audioFlipChannels: type: integer + description: "Audio flip channels setting for Ssb mod." dsb: type: integer + description: "Dsb setting for Ssb mod." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 cmpPreGainDB: type: integer + description: "Cmp pre gain dB in dB." cmpThresholdDB: type: integer + description: "Cmp threshold dB in dB." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "/doc/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SSBModReport: description: SSBMod @@ -76,5 +113,7 @@ SSBModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/SatelliteTracker.yaml b/sdrbase/resources/webapi/doc/swagger/include/SatelliteTracker.yaml index 78c606365..54180da06 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SatelliteTracker.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SatelliteTracker.yaml @@ -5,10 +5,14 @@ SatelliteTrackerSettings: description: "Latitude in decimal degrees (North positive) of antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of antenna location" type: number format: float + minimum: -180 + maximum: 180 heightAboveSeaLevel: description: "Height above sea level in metres of antenna location" type: number @@ -77,9 +81,13 @@ SatelliteTrackerSettings: drawOnMap: description: "Draw satellites on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 autoTarget: description: "Automatically select target on AOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 aosSpeech: description: "Speech warning on AOS" type: string @@ -100,26 +108,39 @@ SatelliteTrackerSettings: azimuthOffset: type: number format: float + description: "Azimuth offset setting for Satellite tracker." elevationOffset: type: number format: float + description: "Elevation offset setting for Satellite tracker." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SatelliteDeviceSettingsList: description: "List of device set settings for a satellite" @@ -157,12 +178,18 @@ SatelliteDeviceSettings: startOnAOS: description: "Start acquisition on AOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 stopOnLOS: description: "Stop acquisition on LOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 startStopFileSinks: description: "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 frequency: description: "Frequency to override in preset" type: integer @@ -179,6 +206,8 @@ SatelliteTrackerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -188,11 +217,14 @@ SatelliteTrackerReport: targetAzimuth: type: number format: float + description: "Target azimuth in degrees clockwise from north." targetElevation: type: number format: float + description: "Target elevation in degrees above the horizon." satelliteState: type: array + description: "List of satellite state." items: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteState" @@ -200,14 +232,19 @@ SatelliteState: properties: name: type: string + description: "Name." latitude: description: "Latitude of satellite in degrees" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude of satellite in degrees" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude of satellite in km" type: number @@ -238,6 +275,7 @@ SatelliteState: format: float passes: type: array + description: "List of passes." items: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatellitePass" @@ -259,6 +297,8 @@ SatelliteTrackerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml index 5a5cf61af..01616e990 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml @@ -3,6 +3,7 @@ SigMFFileInputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read without extension type: string @@ -18,12 +19,19 @@ SigMFFileInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SigMFFileInputReport: description: SigMFFileInput @@ -36,24 +44,32 @@ SigMFFileInputReport: type: integer sampleFormat: type: integer + minimum: 0 + maximum: 1 description: > Sample format * 0 - integer * 1 - float sampleSigned: type: integer + minimum: 0 + maximum: 1 description: > Sample signed status * 0 - unsigned * 1 - signed sampleSwapIQ: type: integer + minimum: 0 + maximum: 1 description: > Sample I/Q swap * 0 - I/Q * 1 - Q/I crcStatus: type: integer + minimum: 0 + maximum: 2 description: > CRC status * 0 - no CRC available @@ -61,12 +77,15 @@ SigMFFileInputReport: * 2 - CRC (SHA512) KO totalBytesStatus: type: integer + minimum: 0 + maximum: 1 description: > Total number of bytes in data file vs meta data * 0 - mismatch * 1 - match captures: type: array + description: "List of captures." items: $ref: "#/definitions/Capture" trackNumber: @@ -102,12 +121,16 @@ SigMFFileInputActions: properties: playTrack: type: integer + minimum: 0 + maximum: 1 description: > Play IQ stream action * 0 - stop playing * 1 - start playing current track playRecord: type: integer + minimum: 0 + maximum: 1 description: > Play IQ stream action * 0 - stop playing diff --git a/sdrbase/resources/webapi/doc/swagger/include/SigMFFileSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/SigMFFileSink.yaml index 61a945589..08e2e586d 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SigMFFileSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SigMFFileSink.yaml @@ -3,17 +3,23 @@ SigMFFileSinkSettings: properties: inputFrequencyOffset: type: integer + description: "Channel frequency offset from the device center frequency in Hz." fileRecordName: type: string description: full path of the meta file rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." spectrumSquelchMode: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch system * 0 - deactivated @@ -30,6 +36,8 @@ SigMFFileSinkSettings: description: Number of seconds to record after spectrum squelch closes squelchRecordingEnable: type: integer + minimum: 0 + maximum: 1 description: > Automatic recording triggered by spectrum squelch * 0 - disabled @@ -43,26 +51,39 @@ SigMFFileSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SigMFFileSinkReport: description: SigMFFileSink properties: spectrumSquelch: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch status * 0 - closed @@ -73,10 +94,14 @@ SigMFFileSinkReport: description: Current spectrum max in squared magnitude (power) sinkSampleRate: type: integer + description: "Sample rate accepted by the sink in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." recording: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 0 - not recording @@ -97,6 +122,8 @@ SigMFFileSinkActions: properties: record: type: integer + minimum: 0 + maximum: 1 description: > Record action * 0 - stop recording diff --git a/sdrbase/resources/webapi/doc/swagger/include/SimplePTT.yaml b/sdrbase/resources/webapi/doc/swagger/include/SimplePTT.yaml index a52fa66d6..53f044ca2 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SimplePTT.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SimplePTT.yaml @@ -3,8 +3,10 @@ SimplePTTSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." rxDeviceSetIndex: description: index of the Rx device set to connect the Rx side to type: integer @@ -19,12 +21,16 @@ SimplePTTSettings: type: integer vox: type: integer + minimum: 0 + maximum: 1 description: > Activate vox system * 0 - not active * 1 - active voxEnable: type: integer + minimum: 0 + maximum: 1 description: > Allow vox to control PTT * 0 - vox does not control PTT @@ -37,8 +43,11 @@ SimplePTTSettings: description: Vox hold timeout in milliseconds audioDeviceName: type: string + description: "Name of the audio device to use." gpioControl: type: integer + minimum: 0 + maximum: 2 description: > GPIO control * 0 - No GPIO control @@ -46,6 +55,8 @@ SimplePTTSettings: * 2 - Tx side controls GPIO rx2txGPIOEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Rx to Tx GPIO control * 0 - disable @@ -60,6 +71,8 @@ SimplePTTSettings: description: Rx to Tx change GPIO values rx2txCommandEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Rx to Tx command * 0 - disable @@ -69,6 +82,8 @@ SimplePTTSettings: description: Command to be executed when Rx switches to Tx tx2rxGPIOEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx to Rx GPIO control * 0 - disable @@ -83,6 +98,8 @@ SimplePTTSettings: description: Tx to Rx change GPIO values tx2rxCommandEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx to Rx command * 0 - disable @@ -93,22 +110,33 @@ SimplePTTSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SimplePTTReport: description: "Simple PTT report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -117,6 +145,8 @@ SimplePTTReport: * 3 - error ptt: type: integer + minimum: 0 + maximum: 1 description: > PTT status * 0 - released @@ -127,12 +157,16 @@ SimplePTTActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle * 1 - run ptt: type: integer + minimum: 0 + maximum: 1 description: > PTT action * 0 - release diff --git a/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml b/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml index 1ef724a9f..eb8d69ed4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml @@ -4,18 +4,28 @@ SkyMapSettings: displayNames: description: "Display names on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayConstellations: description: "Display constellations on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayReticle: description: "Display reticle on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayGrid: description: "Display grid on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayAntennaFoV: description: "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 map: description: "WWT, ESASky or Aladin" type: string @@ -24,6 +34,7 @@ SkyMapSettings: type: string projection: type: string + description: "Projection setting for Sky map." source: description: "Channel or Feature plugin to get target from" type: string @@ -34,10 +45,14 @@ SkyMapSettings: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number @@ -50,23 +65,36 @@ SkyMapSettings: description: "Use My Position instead of latitude/longitude settings" type: number format: float + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SkyMapReport: description: Sky Map @@ -86,10 +114,14 @@ SkyMapReport: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number @@ -129,10 +161,14 @@ SkyMapTarget: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number diff --git a/sdrbase/resources/webapi/doc/swagger/include/SoapySDR.yaml b/sdrbase/resources/webapi/doc/swagger/include/SoapySDR.yaml index 6ee87473a..580ff18e4 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/SoapySDR.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/SoapySDR.yaml @@ -3,195 +3,281 @@ SoapySDRInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." softDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 softIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterMode: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) antenna: type: string + description: "Antenna setting for Soapy sdr input." bandwidth: type: integer + description: "Bandwidth in Hz." tunableElements: type: array + description: "List of tunable elements." items: $ref: "#/definitions/ArgValue" globalGain: type: integer + description: "Overall device gain setting." individualGains: type: array + description: "List of individual gains." items: $ref: "#/definitions/ArgValue" autoGain: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 dcCorrection: $ref: "/doc/swagger/include/Structs.yaml#/Complex" + description: "Enable DC-offset correction (1 enabled, 0 disabled)." iqCorrection: $ref: "/doc/swagger/include/Structs.yaml#/Complex" + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." streamArgSettings: type: array + description: "List of stream arg settings." items: $ref: "#/definitions/ArgValue" deviceArgSettings: type: array + description: "List of device arg settings." items: $ref: "#/definitions/ArgValue" useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SoapySDROutputSettings: description: SoapySDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." transverterMode: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." antenna: type: string + description: "Antenna setting for Soapy sdr output." bandwidth: type: integer + description: "Bandwidth in Hz." tunableElements: type: array + description: "List of tunable elements." items: $ref: "#/definitions/ArgValue" globalGain: type: integer + description: "Overall device gain setting." individualGains: type: array + description: "List of individual gains." items: $ref: "#/definitions/ArgValue" autoGain: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 dcCorrection: $ref: "/doc/swagger/include/Structs.yaml#/Complex" + description: "Enable DC-offset correction (1 enabled, 0 disabled)." iqCorrection: $ref: "/doc/swagger/include/Structs.yaml#/Complex" + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." streamArgSettings: type: array + description: "List of stream arg settings." items: $ref: "#/definitions/ArgValue" deviceArgSettings: type: array + description: "List of device arg settings." items: $ref: "#/definitions/ArgValue" useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SoapySDRReport: description: SoapySDR properties: deviceSettingsArgs: type: array + description: "List of device settings args." items: $ref: "#/definitions/ArgInfo" streamSettingsArgs: type: array + description: "List of stream settings args." items: $ref: "#/definitions/ArgInfo" hasDCAutoCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasDCOffsetValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasIQBalanceValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasFrequencyCorrectionValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 antennas: type: array + description: "List of antennas." items: type: string hasAGC: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 gainRange: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" + description: "Gain range data for Soapy sdr." gainSettings: type: array + description: "List of gain settings." items: $ref: "#/definitions/SoapySDRGainSetting" frequencySettings: type: array + description: "List of frequency settings." items: $ref: "#/definitions/SoapySDRFrequencySetting" frequencySettingsArgs: type: array + description: "List of frequency settings args." items: $ref: "#/definitions/ArgInfo" ratesRanges: type: array + description: "List of rates ranges." items: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" bandwidthsRanges: type: array + description: "List of bandwidths ranges." items: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" @@ -202,16 +288,20 @@ definitions: properties: name: type: string + description: "Name." range: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" + description: "Range configuration for Definitions." SoapySDRFrequencySetting: description: A named frequency setting specified by a range list properties: name: type: string + description: "Name." ranges: type: array + description: "List of ranges." items: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" @@ -220,35 +310,47 @@ definitions: properties: key: type: string + description: "Key for Definitions." valueType: type: string + description: "Value type for Definitions." enum: [bool, int, float, string] valueString: type: string + description: "Value string for Definitions." ArgInfo: description: Generic argument information properties: key: type: string + description: "Key for Definitions." valueType: type: string + description: "Value type for Definitions." enum: [bool, int, float, string] valueString: type: string + description: "Value string for Definitions." name: type: string + description: "Name." description: type: string + description: "Human-readable description." units: type: string + description: "Units for Definitions." range: $ref: "/doc/swagger/include/Structs.yaml#/RangeFloat" + description: "Range configuration for Definitions." valueOptions: type: array + description: "List of value options." items: type: string optionNames: type: array + description: "List of option names." items: type: string diff --git a/sdrbase/resources/webapi/doc/swagger/include/StarTracker.yaml b/sdrbase/resources/webapi/doc/swagger/include/StarTracker.yaml index 23934515c..a5ab0341a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/StarTracker.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/StarTracker.yaml @@ -38,10 +38,14 @@ StarTrackerSettings: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 dateTime: description: "Date and time of observation. ISO 8601 extended format: yyyy-MM-ddTHH:mm:ss with Z suffix for UTC. Empty string for current time." type: string @@ -75,6 +79,8 @@ StarTrackerSettings: stellariumServerEnabled: description: "Enable Stellarium server (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 stellariumPort: description: "IP port number for Stellarium server to listen on (Default is 10001)." type: integer @@ -88,29 +94,46 @@ StarTrackerSettings: drawSunOnMap: description: "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 drawMoonOnMap: description: "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 drawStarOnMap: description: "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." StarTrackerTarget: description: "Star Tracker target. Sent to startracker.target message queue for other plugins to use." @@ -191,6 +214,7 @@ StarTrackerDisplayLoSSettings: properties: name: type: string + description: "Name." b: description: "Galactic latitude in degrees" type: number @@ -209,6 +233,8 @@ StarTrackerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -221,6 +247,8 @@ StarTrackerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/Structs.yaml b/sdrbase/resources/webapi/doc/swagger/include/Structs.yaml index f5c1c1ddc..138f6d7d1 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Structs.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Structs.yaml @@ -3,47 +3,58 @@ SampleRate: properties: rate: type: integer + description: "Sample rate in samples per second." Bandwidth: description: A bandwidth expressed in Hertz (Hz) properties: bandwidth: type: integer + description: "Bandwidth in Hz." Frequency: description: A frequency expressed in Hertz (Hz) properties: frequency: type: integer + description: "Frequency in Hz." FrequencyBand: description: A band of frequencies given its boundaries in Hertz (Hz) properties: name: type: string + description: "Name." lowerBound: type: integer + description: "Inclusive lower bound of the range." higherBound: type: integer + description: "Inclusive upper bound of the range." Gain: description: A gain expressed in centi-Bels (tenths of dB) properties: gainCB: type: integer + description: "Gain in centibels (tenths of a decibel)." Range: description: An arbitrary range of integer values properties: min: type: integer + description: "Minimum value of the range." max: type: integer + description: "Maximum value of the range." step: type: integer + description: "Increment between adjacent supported values." scale: type: number format: float + description: "Scale factor applied to the value." RangeFloat: description: An arbitrary range of floating point values @@ -51,12 +62,15 @@ RangeFloat: min: type: number format: float + description: "Minimum value of the range." max: type: number format: float + description: "Maximum value of the range." step: type: number format: float + description: "Increment between adjacent supported values." FrequencyRange: description: A frequency range with 64 bit support for min and max @@ -64,22 +78,28 @@ FrequencyRange: min: type: integer format: int64 + description: "Minimum value of the range." max: type: integer format: int64 + description: "Maximum value of the range." step: type: integer + description: "Increment between adjacent supported values." scale: type: number format: float + description: "Scale factor applied to the value." NamedEnum: description: Enumeration with name for values properties: name: type: string + description: "Name." value: type: integer + description: "Numeric enumeration value." Complex: description: A complex number @@ -87,6 +107,8 @@ Complex: real: type: number format: float + description: "Real component of the complex number." imag: type: number format: float + description: "Imaginary component of the complex number." diff --git a/sdrbase/resources/webapi/doc/swagger/include/TestMI.yaml b/sdrbase/resources/webapi/doc/swagger/include/TestMI.yaml index d13bacf3d..d435d923a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/TestMI.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/TestMI.yaml @@ -3,15 +3,23 @@ TestMISettings: properties: title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." streams: description: Settings for each of the streams type: array @@ -28,37 +36,53 @@ definitions: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." sampleSizeIndex: type: integer + description: "Selected sample size index." amplitudeBits: type: integer + description: "Amplitude bits for Definitions." autoCorrOptions: type: integer + description: "Auto corr options for Definitions." modulation: type: integer + description: "Modulation for Definitions." modulationTone: type: integer + description: "Modulation tone for Definitions." amModulation: type: integer + description: "Am modulation for Definitions." fmDeviation: type: integer + description: "FM frequency deviation in Hz." dcFactor: type: number format: float + description: "Dc factor for Definitions." iFactor: type: number format: float + description: "I factor for Definitions." qFactor: type: number format: float + description: "Q factor for Definitions." phaseImbalance: type: number format: float + description: "Phase imbalance for Definitions." diff --git a/sdrbase/resources/webapi/doc/swagger/include/TestMOSync.yaml b/sdrbase/resources/webapi/doc/swagger/include/TestMOSync.yaml index 75c9975a8..914c29090 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/TestMOSync.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/TestMOSync.yaml @@ -3,14 +3,20 @@ TestMOSyncSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer format: int64 + description: "Sample rate in samples per second." log2Interp: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPosTx: description: See BladeRF2MIMO::fcPos_t type: integer diff --git a/sdrbase/resources/webapi/doc/swagger/include/TestSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/TestSource.yaml index e575929da..6aef508a9 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/TestSource.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/TestSource.yaml @@ -3,49 +3,82 @@ TestSourceSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." sampleSizeIndex: type: integer + description: "Selected sample size index." amplitudeBits: type: integer + description: "Amplitude bits setting for Test source." autoCorrOptions: type: integer + description: "Auto corr options setting for Test source." modulation: type: integer + description: "Modulation setting for Test source." modulationTone: type: integer + description: "Modulation tone setting for Test source." amModulation: type: integer + description: "Am modulation setting for Test source." fmDeviation: type: integer + description: "FM frequency deviation in Hz." dcFactor: type: number format: float + description: "Dc factor setting for Test source." iFactor: type: number format: float + description: "I factor setting for Test source." qFactor: type: number format: float + description: "Q factor setting for Test source." phaseImbalance: type: number format: float + description: "Phase imbalance setting for Test source." + period: + type: integer + description: "Period of the P1 and P2 patterns in samples." + minimum: 1 + dutyCycle: + type: integer + description: "Percentage of the period the P2 pattern is high." + minimum: 0 + maximum: 100 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/sdrbase/resources/webapi/doc/swagger/include/UDPSink.yaml b/sdrbase/resources/webapi/doc/swagger/include/UDPSink.yaml index 359643996..d40eb8e7b 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/UDPSink.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/UDPSink.yaml @@ -4,22 +4,30 @@ UDPSinkSettings: outputSampleRate: type: number format: float + description: "Output sample rate in samples per second." sampleFormat: type: integer + description: "Sample format setting for UDP sink." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: integer + description: "FM frequency deviation in Hz." channelMute: description: channel mute (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." squelchDB: description: power dB type: integer @@ -29,17 +37,26 @@ UDPSinkSettings: squelchEnabled: description: squelch enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 audioActive: description: Audio return enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 audioStereo: description: Audio return stereo (1 if stereo else 0) type: integer + minimum: 0 + maximum: 1 volume: type: integer + description: "Audio volume multiplier." udpAddress: description: destination UDP address (remote) type: string @@ -47,34 +64,49 @@ UDPSinkSettings: description: destination UDP port (remote) type: integer format: uint16 + minimum: 1 + maximum: 65535 audioPort: description: audio return UDP port (local) type: integer format: uint16 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." UDPSinkReport: description: UDPSink @@ -92,3 +124,4 @@ UDPSinkReport: type: integer inputSampleRate: type: integer + description: "Input sample rate in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/UDPSource.yaml b/sdrbase/resources/webapi/doc/swagger/include/UDPSource.yaml index a78e2e93b..2aeadf18a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/UDPSource.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/UDPSource.yaml @@ -3,80 +3,119 @@ UDPSourceSettings: properties: sampleFormat: type: integer + description: "Sample format setting for UDP source." inputSampleRate: type: number format: float + description: "Input sample rate in samples per second." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fmDeviation: type: integer + description: "FM frequency deviation in Hz." amModFactor: type: number format: float + description: "Am mod factor setting for UDP source." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 gainIn: type: number format: float + description: "Gain in setting for UDP source." gainOut: type: number format: float + description: "Gain out setting for UDP source." squelch: type: number format: float + description: "Squelch threshold in dB." squelchGate: type: number format: float + description: "Squelch gate duration." squelchEnabled: type: integer + description: "Enable squelch (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 autoRWBalance: type: integer + description: "Auto rw balance setting for UDP source." stereoInput: type: integer + description: "Stereo input setting for UDP source." rgbColor: type: integer + description: "Display color encoded as an RGB integer." udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer format: uint16 + description: "UDP port number." + minimum: 1 + maximum: 65535 multicastAddress: type: string + description: "IP multicast group address." multicastJoin: type: integer + minimum: 0 + maximum: 1 description: > Join multicast group * 0 - leave group * 1 - join group title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." UDPSourceReport: description: UDPSource @@ -97,3 +136,4 @@ UDPSourceReport: type: integer channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/USRP.yaml b/sdrbase/resources/webapi/doc/swagger/include/USRP.yaml index c8ad85a30..b48947103 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/USRP.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/USRP.yaml @@ -3,93 +3,145 @@ USRPInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." loOffset: type: integer + description: "LO offset setting for Usrp input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." antennaPath: type: string + description: "Selected RF antenna path." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." gainMode: description: 0 for auto, 1 for manual type: integer + minimum: 0 + maximum: 1 clockSource: type: string + description: "Clock source setting for Usrp input." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." USRPOutputSettings: description: USRP properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." loOffset: type: integer + description: "LO offset setting for Usrp output." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." antennaPath: type: string + description: "Selected RF antenna path." clockSource: type: string + description: "Clock source setting for Usrp output." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." USRPInputReport: description: USRP @@ -100,10 +152,14 @@ USRPInputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 overrunCount: type: integer + description: "Number of stream overrun events." timeoutCount: type: integer + description: "Number of timeout events or items." USRPOutputReport: description: USRP @@ -114,7 +170,11 @@ USRPOutputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 underrunCount: type: integer + description: "Number of stream underrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." diff --git a/sdrbase/resources/webapi/doc/swagger/include/User.yaml b/sdrbase/resources/webapi/doc/swagger/include/User.yaml index e4c4ca4c8..fd505ade6 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/User.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/User.yaml @@ -5,5 +5,7 @@ User: properties: index: type: integer + description: "Index for User." name: type: string + description: "Name." diff --git a/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml index 8d612afde..7240ac3bb 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml @@ -4,6 +4,7 @@ VORDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." navId: description: VOR unique identifier when set by VOR localizer feature type: integer @@ -14,37 +15,55 @@ VORDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 identBandpassEnable: type: integer + description: "Ident bandpass enable setting for Vor demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." identThreshold: description: Morse code ident threshold (linear SNR) type: integer channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." VORDemodReport: description: VORDemod @@ -58,9 +77,11 @@ VORDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." volume: type: number format: float + description: "Audio volume multiplier." navId: description: VOR unique identifier when set by VOR localizer feature type: integer @@ -78,18 +99,24 @@ VORDemodReport: format: float validRadial: type: integer + minimum: 0 + maximum: 1 description: > Radial validity estimation * 0 - Radial is invalid * 1 - Radial is valid validRefMag: type: integer + minimum: 0 + maximum: 1 description: > Reference signal magnitude validity * 0 - Magnitude below threshold * 1 - Magnitude above threshold validVarMag: type: integer + minimum: 0 + maximum: 1 description: > Variable signal magnitude validity * 0 - Magnitude below threshold diff --git a/sdrbase/resources/webapi/doc/swagger/include/VORDemodMC.yaml b/sdrbase/resources/webapi/doc/swagger/include/VORDemodMC.yaml index 6dbc27998..4a5685906 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/VORDemodMC.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/VORDemodMC.yaml @@ -8,28 +8,43 @@ VORDemodMCSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." identThreshold: description: Morse code ident threshold (linear SNR) type: integer @@ -38,8 +53,10 @@ VORDemodMCSettings: type: integer channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." VORDemodMCReport: description: VORDemodMC @@ -53,3 +70,4 @@ VORDemodMCReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/VORLocalizer.yaml b/sdrbase/resources/webapi/doc/swagger/include/VORLocalizer.yaml index 7ad440364..c55e6e8bd 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/VORLocalizer.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/VORLocalizer.yaml @@ -3,19 +3,29 @@ VORLocalizerSettings: properties: rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." magDecAdjust: description: Adjust radial lines on map for magnetic declination of VOR type: integer @@ -24,6 +34,8 @@ VORLocalizerSettings: type: integer forceRRAveraging: type: integer + minimum: 0 + maximum: 1 description: > Force radial and signal magnitudes averaging over the round robin turn * 0 - Do not force averaging @@ -33,12 +45,15 @@ VORLocalizerSettings: type: integer rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." columnIndexes: type: array + description: "List of column indexes." items: type: integer columnSizes: type: array + description: "List of column sizes." items: type: integer @@ -47,6 +62,8 @@ VORLocalizerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -59,6 +76,8 @@ VORLocalizerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/sdrbase/resources/webapi/doc/swagger/include/WDSPRx.yaml b/sdrbase/resources/webapi/doc/swagger/include/WDSPRx.yaml index 25a758c2e..c94e42d3a 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/WDSPRx.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/WDSPRx.yaml @@ -4,10 +4,14 @@ WDSPRxSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." profileIndex: type: integer + description: "Selected profile index." demod: type: integer + minimum: 0 + maximum: 3 description: > Demodulator type: * 0 - SSB @@ -17,6 +21,7 @@ WDSPRxSettings: volume: type: number format: float + description: "Audio volume multiplier." audioBinaural: description: Audio binaural mode (1 if active else 0) type: integer @@ -29,11 +34,17 @@ WDSPRxSettings: audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 agcMode: type: integer + minimum: 0 + maximum: 3 description: > AGC Mode: * 0 - Long @@ -48,20 +59,27 @@ WDSPRxSettings: description: Slope in centi-Bels agcHangThreshold: type: integer + description: "Agc hang threshold setting for Wdsp receive." dnb: type: integer + minimum: 0 + maximum: 1 description: > Digital Noise Blanker: * 0 - Off * 1 - On nbScheme: type: integer + minimum: 0 + maximum: 1 description: > Noise blanker scheme: * 0 - NB or Preemptive Wideband Noise Blanker * 1 - NB2 or Interpolating Wideband Noise Blanker nb2Mode: type: integer + minimum: 0 + maximum: 4 description: > NB2 Noise blanking mode: * 0 - Zero mode (estimate as zero) @@ -83,29 +101,39 @@ WDSPRxSettings: description: Hang time (S) nbThreshold: type: integer + description: "Nb threshold setting for Wdsp receive." nbAvgTime: type: number format: float + description: "Nb avg time setting for Wdsp receive." dnr: type: integer + minimum: 0 + maximum: 1 description: > Digital Noise Reduction: * 0 - Off * 1 - On anf: type: integer + minimum: 0 + maximum: 1 description: > Automatic Notch Filter: * 0 - Off * 1 - On nrScheme: type: integer + minimum: 0 + maximum: 1 description: > Noise Reduction Scheme: * 0 - NR or LMS Noise Reduction * 1 - NR2 or Spectral Noise Reduction nr2Gain: type: integer + minimum: 0 + maximum: 2 description: > Noise Reduction gain for NR2: * 0 - Linear @@ -113,30 +141,40 @@ WDSPRxSettings: * 2 - Gamma nr2NPE: type: integer + minimum: 0 + maximum: 1 description: > Noise Power Estimation algorithm for NR2: * 0 - Optimal Smoothing Minimum Statistics (OSMS) * 1 - Minimum Mean‐Square Error (MMSE) nrPosition: type: integer + minimum: 0 + maximum: 1 description: > Noise reduction position: * 0 - Before AGC * 1 - After AGC nr2ArtifactReduction: type: integer + minimum: 0 + maximum: 1 description: > NR2 artifacts reduction: * 0 - Off * 1 - On amFadeLevel: type: integer + minimum: 0 + maximum: 1 description: > AM fade levelling: * 0 - Off * 1 - On cwPeaking: type: integer + minimum: 0 + maximum: 1 description: > CW peaking filter: * 0 - Off @@ -173,6 +211,8 @@ WDSPRxSettings: FM Audio filter high cutoff frequency (HZ) fmAFLimiter: type: integer + minimum: 0 + maximum: 1 description: > FM Audio level limiter (audio AGC) * 0 - Off @@ -184,6 +224,8 @@ WDSPRxSettings: FM Audio level limiter top gain (Audio AGC top gain) fmCTCSSNotch: type: integer + minimum: 0 + maximum: 1 description: > FM CTCSS notch filter * 0 - Off @@ -195,6 +237,8 @@ WDSPRxSettings: FM CTCSS notch filter frequency (Hz) squelch: type: integer + minimum: 0 + maximum: 1 description: > Squelch: * 0 - Off @@ -204,6 +248,8 @@ WDSPRxSettings: description: Squelch threshold (percent) squelchMode: type: integer + minimum: 0 + maximum: 2 description: > Squelch mode: * 0 - Voice squelch (for SSB). Based on voice artifacts. @@ -212,6 +258,8 @@ WDSPRxSettings: ssqlTauMute: type: number format: float + minimum: 0 + maximum: 1 description: Voice squelch tau mute (s) ssqlTauUnmute: type: number @@ -223,6 +271,8 @@ WDSPRxSettings: description: AM squelch max tail length (s) equalizer: type: integer + minimum: 0 + maximum: 1 description: > AF equalizer: * 0 - Off @@ -241,6 +291,8 @@ WDSPRxSettings: format: float rit: type: integer + minimum: 0 + maximum: 1 description: > RIT: * 0 - Off @@ -251,44 +303,63 @@ WDSPRxSettings: description: RIT shift frequency (Hz) spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 1 description: > FFT Window index (FFTWindow::Function): * 0 - Blackman-Harris 4 term * 1 - Blackman-Harris 7 term rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WDSPRxReport: description: WDSPRx @@ -302,5 +373,7 @@ WDSPRxReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/WFMDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/WFMDemod.yaml index ffc071d8e..995db3481 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/WFMDemod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/WFMDemod.yaml @@ -4,45 +4,65 @@ WFMDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." volume: type: number format: float + description: "Audio volume multiplier." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: description: audio mute (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WFMDemodReport: description: WFMDemod @@ -56,5 +76,7 @@ WFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/WFMMod.yaml b/sdrbase/resources/webapi/doc/swagger/include/WFMMod.yaml index 8de5aea6e..f1d944cad 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/WFMMod.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/WFMMod.yaml @@ -4,53 +4,80 @@ WFMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Wfm mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "/doc/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WFMModReport: description: WFMMod @@ -61,5 +88,7 @@ WFMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/sdrbase/resources/webapi/doc/swagger/include/Xtrx.yaml b/sdrbase/resources/webapi/doc/swagger/include/Xtrx.yaml index a11cd599b..dd7fb9183 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/Xtrx.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/Xtrx.yaml @@ -3,21 +3,30 @@ XtrxInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." dcBlock: description: Software DC blocking (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Software IQ imbalance correction (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: description: LMS analog lowpass filter bandwidth (Hz) type: integer @@ -27,6 +36,8 @@ XtrxInputSettings: ncoEnable: description: Enable TSP NCO and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequency: description: Frequency shift from LO type: integer @@ -48,6 +59,8 @@ XtrxInputSettings: extClock: description: Use external clock source (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -56,6 +69,8 @@ XtrxInputSettings: type: integer iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -63,12 +78,19 @@ XtrxInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." XtrxInputReport: description: XTRX @@ -78,11 +100,14 @@ XtrxInputReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer @@ -92,15 +117,20 @@ XtrxOutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: description: LMS analog lowpass filter bandwidth (Hz) type: integer @@ -110,6 +140,8 @@ XtrxOutputSettings: ncoEnable: description: Enable TSP NCO and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequency: description: Frequency shift from LO type: integer @@ -119,6 +151,8 @@ XtrxOutputSettings: extClock: description: Use external clock source (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -128,12 +162,19 @@ XtrxOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." XtrxOutputReport: description: XTRX @@ -143,11 +184,14 @@ XtrxOutputReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer @@ -157,9 +201,12 @@ XtrxMIMOSettings: properties: title: type: string + description: "User-visible title." extClock: description: Boolean 1 if external clock source else 0 type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -172,39 +219,56 @@ XtrxMIMOSettings: useReverseAPI: description: Boolean 1 use 0 do not use reverse API type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: description: IPv4 address type: string reverseAPIPort: description: Network port from 1024 to 65535 type: integer + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." rxDevSampleRate: type: integer + description: "Receive dev sample rate in samples per second." log2HardDecim: description: 0 is automatic then 1 to 6 is log2 of hardware decimation type: integer log2SoftDecim: description: log2 of software decimation factor from 0 to 6 type: integer + minimum: 0 + maximum: 6 rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." dcBlock: description: Software DC blocking (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Software IQ imbalance correction (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoEnableRx: description: Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequencyRx: description: Rx frequency shift from LO for both channels type: integer antennaPathRx: type: integer + minimum: 0 + maximum: 2 description: > Antenna selected (enum value from XTRXMIMOSettings::RxAntenna): * 0 - RXANT_LO low range @@ -212,6 +276,8 @@ XtrxMIMOSettings: * 2 - RXANT_HI high range iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -224,6 +290,8 @@ XtrxMIMOSettings: type: integer gainModeRx0: type: integer + minimum: 0 + maximum: 1 description: > Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0: * 0 - GAIN_AUTO automatic @@ -239,6 +307,7 @@ XtrxMIMOSettings: type: integer pwrmodeRx0: type: integer + description: "Pwrmode rx0 setting for Xtrx MIMO." lpfBWRx1: description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 1 type: integer @@ -247,6 +316,8 @@ XtrxMIMOSettings: type: integer gainModeRx1: type: integer + minimum: 0 + maximum: 1 description: > Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1: * 0 - GAIN_AUTO automatic @@ -262,25 +333,34 @@ XtrxMIMOSettings: type: integer pwrmodeRx1: type: integer + description: "Pwrmode rx1 setting for Xtrx MIMO." txDevSampleRate: type: integer + description: "Transmit dev sample rate in samples per second." log2HardInterp: description: 0 is automatic then 1 to 6 is log2 of hardware interpolation type: integer log2SoftInterp: description: log2 of software interpolation factor from 0 to 6 type: integer + minimum: 0 + maximum: 6 txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." ncoEnableTx: description: Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequencyTx: description: Tx frequency shift from LO for both channels type: integer antennaPathTx: type: integer + minimum: 0 + maximum: 1 description: > Antenna selected (enum value from XTRXMIMOSettings::TxAntenna): * 0 - TXANT_HI high range @@ -293,6 +373,7 @@ XtrxMIMOSettings: type: integer pwrmodeTx0: type: integer + description: "Pwrmode tx0 setting for Xtrx MIMO." lpfBWTx1: description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 1 type: integer @@ -301,6 +382,7 @@ XtrxMIMOSettings: type: integer pwrmodeTx1: type: integer + description: "Pwrmode tx1 setting for Xtrx MIMO." XtrxMIMOReport: description: XTRX @@ -310,19 +392,26 @@ XtrxMIMOReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFillRx: type: integer + description: "Current receive FIFO fill level." fifoFillTx: type: integer + description: "Current transmit FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer actualInputRate: type: integer + description: "Reported actual input rate." actualOutputRate: type: integer + description: "Reported actual output rate." clockGenRate: type: integer + description: "Reported clock gen rate." diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index e1c049d43..b326f60fd 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -1097,6 +1097,63 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/windows: + x-swagger-router-controller: instance + get: + description: List the windows of the GUI with their workspace and whether each is hidden (GUI) + operationId: instanceWindowsGet + tags: + - Instance + responses: + "200": + description: On success return the window list + schema: + $ref: "#/definitions/WindowList" + "500": + description: Error + schema: + $ref: "#/definitions/ErrorResponse" + "501": + description: Function not implemented + /sdrangel/workspace/{workspaceIndex}/actions: + x-swagger-router-controller: instance + post: + description: Arrange the windows of a workspace (GUI) + operationId: workspaceActionsPost + tags: + - Workspace + consumes: + - application/json + parameters: + - in: path + name: workspaceIndex + type: integer + required: true + description: Index of workspace in the list of workspaces + - name: body + in: body + description: Action to perform + required: true + schema: + $ref: "#/definitions/WorkspaceActions" + responses: + "202": + description: Successful sending of the message + schema: + $ref: "#/definitions/SuccessResponse" + "400": + description: Invalid JSON request + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid workspace index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + /sdrangel/deviceset: x-swagger-router-controller: instance post: @@ -1252,6 +1309,241 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/report: + x-swagger-router-controller: deviceset + get: + description: Get the latest main spectrum measurement results + operationId: devicesetSpectrumReportGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + responses: + "200": + description: On success return the results of the selected measurement + schema: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrumReport" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/actions: + x-swagger-router-controller: deviceset + post: + description: post an action or actions on the main spectrum + operationId: devicesetSpectrumActionsPost + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: body + in: body + description: Action(s) to apply to the main spectrum + required: true + schema: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumActions" + responses: + "202": + description: Message to perform action was sent successfully + schema: + $ref: "#/definitions/SuccessResponse" + "400": + description: Unknown action, no action given, or an action that needs a spectrum display + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/data: + x-swagger-router-controller: deviceset + get: + description: Get the main spectrum power values, reduced to a number of bins + operationId: devicesetSpectrumDataGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: bins + in: query + description: Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to return in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to return in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + - name: reduce + in: query + description: How several bins are combined into one, max or mean (default max) + required: false + type: string + responses: + "200": + description: On success return the reduced spectrum + schema: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrumData" + "400": + description: Invalid bins, frequency range or reduction + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history: + x-swagger-router-controller: deviceset + get: + description: > + Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and + occupancy over a period, and the signals found. Only rows taken with the device tuned and + sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, + scrollLength); the server keeps no history + operationId: devicesetSpectrumHistoryGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: integer + - name: bins + in: query + description: Number of bins to reduce the spectrum to, 1 to 4096 (default 128) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + - name: threshold + in: query + description: How far above the measured floor a bin must rise to count as occupied, in dB (default 6) + required: false + type: integer + responses: + "200": + description: On success return the statistics + schema: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrumHistory" + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image: + x-swagger-router-controller: deviceset + get: + description: > + The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row + down with the newest row at the bottom, black a little below the noise floor and white at + the strongest bin. The frequency and time extents come back in X-Spectrum-History headers + and in the JSON form of the same call + operationId: devicesetSpectrumHistoryImageGet + tags: + - DeviceSet + produces: + - image/png + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: integer + - name: bins + in: query + description: Width in pixels, 1 to 4096 (default 512) + required: false + type: integer + - name: rows + in: query + description: At most this many rows, the most recent (default 512, up to 4000) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + responses: + "200": + description: The PNG image + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" /sdrangel/deviceset/{deviceSetIndex}/spectrum/server: x-swagger-router-controller: deviceset get: @@ -3106,13 +3398,56 @@ definitions: $ref: "#/definitions/Channel" WorkspaceInfo: - description: "Workspace information" - required: - - index + description: "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" properties: index: description: index of workspace in the list of workspaces type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" + type: integer + WindowList: + description: "Every device, spectrum, channel and feature window of the GUI" + properties: + windowCount: + type: integer + windows: + type: array + items: + $ref: "#/definitions/WindowInfo" + WindowInfo: + description: "One window of the GUI" + properties: + kind: + description: "device, spectrum, channel or feature" + type: string + deviceSetIndex: + description: "Index of the device set, for a device, spectrum or channel window" + type: integer + index: + description: "Channel index within the device set, or feature index; absent for a device or spectrum window" + type: integer + title: + type: string + workspaceIndex: + type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown" + type: integer + + WorkspaceActions: + description: "Actions on a workspace" + required: + - arrange + properties: + arrange: + description: > + How to arrange the workspace's windows. cascade, tile, stackVertical and stack rearrange + them once, and turn auto stacking and tabs off. autostack stacks them now and again + whenever a window is added or resized, and stays on until another arrangement is asked + for. tab shows one window at a time with a tab for each, and turns auto stacking off. + type: string + enum: [cascade, tile, stackVertical, stack, autostack, tab] AudioDevices: description: "List of audio devices available in the system" diff --git a/sdrbase/webapi/webapiadapter.cpp b/sdrbase/webapi/webapiadapter.cpp index 1b5805451..ae2c5373e 100644 --- a/sdrbase/webapi/webapiadapter.cpp +++ b/sdrbase/webapi/webapiadapter.cpp @@ -72,6 +72,10 @@ #include "SWGDeviceReport.h" #include "SWGDeviceActions.h" #include "SWGWorkspaceInfo.h" +#include "SWGWorkspaceActions.h" +#include "SWGWindowList.h" +#include "SWGGLSpectrumHistory.h" +#include "SWGWindowInfo.h" #include "SWGChannelsDetail.h" #include "SWGChannelSettings.h" #include "SWGChannelReport.h" @@ -1740,6 +1744,159 @@ int WebAPIAdapter::instanceWorkspaceDelete( return 202; } +int WebAPIAdapter::workspaceActionsPost( + int workspaceIndex, + SWGSDRangel::SWGWorkspaceActions& query, + SWGSDRangel::SWGSuccessResponse& response, + SWGSDRangel::SWGErrorResponse& error) +{ + // The workspaces live in the GUI, which is the only place their number is known, so the + // index is checked there and an out of range one is logged rather than reported + (void) error; + const QString arrange = query.getArrange() ? *query.getArrange() : QString(); + MainCore::MsgArrangeWorkspace::Arrangement arrangement; + + if (arrange == "cascade") { + arrangement = MainCore::MsgArrangeWorkspace::Cascade; + } else if (arrange == "tile") { + arrangement = MainCore::MsgArrangeWorkspace::Tile; + } else if (arrange == "stackVertical") { + arrangement = MainCore::MsgArrangeWorkspace::StackVertical; + } else if (arrange == "stack") { + arrangement = MainCore::MsgArrangeWorkspace::Stack; + } else if (arrange == "autostack") { + arrangement = MainCore::MsgArrangeWorkspace::AutoStack; + } else if (arrange == "tab") { + arrangement = MainCore::MsgArrangeWorkspace::Tab; + } + else + { + error.init(); + *error.getMessage() = QString("Unknown arrangement %1").arg(arrange); + return 400; + } + + MainCore::MsgArrangeWorkspace *msg = MainCore::MsgArrangeWorkspace::create(workspaceIndex, arrangement); + m_mainCore->m_mainMessageQueue->push(msg); + + response.init(); + *response.getMessage() = QString("Message to arrange workspace %1 (MsgArrangeWorkspace) was submitted successfully").arg(workspaceIndex); + + return 202; +} + +void WebAPIAdapter::applyWindowState(const void *owner, SWGSDRangel::SWGWorkspaceInfo& response) +{ + MainCore::WindowState state; + + // The GUI's word for the workspace is taken over the channel's own, which channel plugins + // update only when their settings are next applied + if (m_mainCore->getWindowState(owner, state)) + { + if (state.m_workspaceIndex >= 0) { + response.setIndex(state.m_workspaceIndex); + } + + response.setHidden(state.m_hidden ? 1 : 0); + } +} + +int WebAPIAdapter::channelWorkspaceGet(ChannelAPI *channelAPI, SWGSDRangel::SWGWorkspaceInfo& response, QString& errorMessage) +{ + int status = channelAPI->webapiWorkspaceGet(response, errorMessage); + + if (status / 100 == 2) { + applyWindowState(channelAPI, response); + } + + return status; +} + +bool WebAPIAdapter::postWindowHidden(MainCore::MsgSetWindowHidden::Kind kind, int deviceSetIndex, int index, const SWGSDRangel::SWGWorkspaceInfo& query) +{ + // The validator passes -1 for a field the request did not carry + const int hidden = const_cast(query).getHidden(); + + if (hidden < 0) { + return false; + } + + m_mainCore->m_mainMessageQueue->push(MainCore::MsgSetWindowHidden::create(kind, deviceSetIndex, index, hidden != 0)); + return true; +} + +int WebAPIAdapter::instanceWindowsGet( + SWGSDRangel::SWGWindowList& response, + SWGSDRangel::SWGErrorResponse& error) +{ + (void) error; + response.init(); + QList *windows = response.getWindows(); + + auto add = [&](const QString& kind, int deviceSetIndex, int index, const QString& fallbackTitle, int fallbackWorkspace, const void *owner) + { + MainCore::WindowState state; + const bool published = m_mainCore->getWindowState(owner, state); + SWGSDRangel::SWGWindowInfo *window = new SWGSDRangel::SWGWindowInfo(); + window->init(); + window->setKind(new QString(kind)); + + if (deviceSetIndex >= 0) { + window->setDeviceSetIndex(deviceSetIndex); + } + + if (index >= 0) { + window->setIndex(index); + } + + window->setTitle(new QString(published && !state.m_title.isEmpty() ? state.m_title : fallbackTitle)); + window->setWorkspaceIndex(published && (state.m_workspaceIndex >= 0) ? state.m_workspaceIndex : fallbackWorkspace); + window->setHidden(published && state.m_hidden ? 1 : 0); + windows->append(window); + }; + + for (int i = 0; i < (int) m_mainCore->m_deviceSets.size(); i++) + { + DeviceSet *deviceSet = m_mainCore->m_deviceSets[i]; + add("device", i, -1, deviceSet->m_deviceAPI->getSamplingDeviceDisplayName(), deviceSet->m_deviceAPI->getWorkspaceIndex(), deviceSet->m_deviceAPI); + add("spectrum", i, -1, "Spectrum", deviceSet->m_spectrumVis->getWorkspaceIndex(), deviceSet->m_spectrumVis); + + for (int c = 0; c < deviceSet->getNumberOfChannels(); c++) + { + ChannelAPI *channel = deviceSet->getChannelAt(c); + + if (!channel) { + continue; + } + + QString title; + channel->getTitle(title); + SWGSDRangel::SWGWorkspaceInfo info; + QString ignored; + info.init(); + int workspace = (channel->webapiWorkspaceGet(info, ignored) / 100 == 2) ? info.getIndex() : -1; + add("channel", i, c, title.isEmpty() ? channel->getIdentifier() : title, workspace, channel); + } + } + + if (!m_mainCore->m_featureSets.empty()) + { + const FeatureSet *featureSet = m_mainCore->m_featureSets[0]; + + for (int f = 0; f < featureSet->getNumberOfFeatures(); f++) + { + const Feature *feature = featureSet->getFeatureAt(f); + + if (feature) { + add("feature", -1, f, feature->getIdentifier(), feature->getWorkspaceIndex(), feature); + } + } + } + + response.setWindowCount(windows->size()); + return 200; +} + int WebAPIAdapter::devicesetGet( int deviceSetIndex, SWGSDRangel::SWGDeviceSet& response, @@ -1761,11 +1918,126 @@ int WebAPIAdapter::devicesetGet( } } +int WebAPIAdapter::devicesetSpectrumActionsPost( + int deviceSetIndex, + const QStringList& spectrumActionsKeys, + SWGSDRangel::SWGSpectrumActions& query, + SWGSDRangel::SWGErrorResponse& error) +{ + error.init(); + + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) + { + DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; + return deviceSet->webapiSpectrumActionsPost(spectrumActionsKeys, query, *error.getMessage()); + } + else + { + error.init(); + *error.getMessage() = QString("There is no device set with index %1").arg(deviceSetIndex); + + return 404; + } +} + +int WebAPIAdapter::devicesetSpectrumHistoryGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, + SWGSDRangel::SWGErrorResponse& error) +{ + error.init(); + + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) + { + const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; + return deviceSet->webapiSpectrumHistoryGet(seconds, bins, startFrequency, stopFrequency, thresholdDb, response, *error.getMessage()); + } + + *error.getMessage() = QString("There is no device set with index %1").arg(deviceSetIndex); + return 404; +} + +int WebAPIAdapter::devicesetSpectrumHistoryImageGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + int maxRows, + QByteArray& png, + QJsonObject& description, + SWGSDRangel::SWGErrorResponse& error) +{ + error.init(); + + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) + { + const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; + return deviceSet->webapiSpectrumHistoryImageGet(seconds, bins, startFrequency, stopFrequency, maxRows, png, description, *error.getMessage()); + } + + *error.getMessage() = QString("There is no device set with index %1").arg(deviceSetIndex); + return 404; +} + +int WebAPIAdapter::devicesetSpectrumDataGet( + int deviceSetIndex, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, + SWGSDRangel::SWGErrorResponse& error) +{ + error.init(); + + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) + { + const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; + return deviceSet->webapiSpectrumDataGet(bins, startFrequency, stopFrequency, reduce, response, *error.getMessage()); + } + else + { + error.init(); + *error.getMessage() = QString("There is no device set with index %1").arg(deviceSetIndex); + + return 404; + } +} + +int WebAPIAdapter::devicesetSpectrumReportGet( + int deviceSetIndex, + SWGSDRangel::SWGGLSpectrumReport& response, + SWGSDRangel::SWGErrorResponse& error) +{ + error.init(); + + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) + { + const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; + return deviceSet->webapiSpectrumReportGet(response, *error.getMessage()); + } + else + { + error.init(); + *error.getMessage() = QString("There is no device set with index %1").arg(deviceSetIndex); + + return 404; + } +} + int WebAPIAdapter::devicesetSpectrumSettingsGet( int deviceSetIndex, SWGSDRangel::SWGGLSpectrum& response, SWGSDRangel::SWGErrorResponse& error) { + error.init(); + if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) { const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; @@ -1873,6 +2145,7 @@ int WebAPIAdapter::devicesetSpectrumWorkspaceGet( { const DeviceSet *deviceSet = m_mainCore->m_deviceSets[deviceSetIndex]; response.setIndex(deviceSet->m_spectrumVis->getWorkspaceIndex()); + applyWindowState(deviceSet->m_spectrumVis, response); return 200; } else @@ -1892,10 +2165,16 @@ int WebAPIAdapter::devicesetSpectrumWorkspacePut( if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) { int workspaceIndex = query.getIndex(); - MainCore::MsgMoveMainSpectrumUIToWorkspace *msg = MainCore::MsgMoveMainSpectrumUIToWorkspace::create(deviceSetIndex, workspaceIndex); - m_mainCore->m_mainMessageQueue->push(msg); + + if (workspaceIndex >= 0) + { + MainCore::MsgMoveMainSpectrumUIToWorkspace *msg = MainCore::MsgMoveMainSpectrumUIToWorkspace::create(deviceSetIndex, workspaceIndex); + m_mainCore->m_mainMessageQueue->push(msg); + } + + postWindowHidden(MainCore::MsgSetWindowHidden::Spectrum, deviceSetIndex, -1, query); response.init(); - *response.getMessage() = QString("Message to move a main spectrum to workspace (MsgMoveMainSpectrumUIToWorkspace) was submitted successfully"); + *response.getMessage() = QString("Message to move or show a main spectrum window (MsgMoveMainSpectrumUIToWorkspace, MsgSetWindowHidden) was submitted successfully"); return 202; } else @@ -2170,6 +2449,7 @@ int WebAPIAdapter::devicesetDeviceWorkspaceGet( if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) { response.setIndex(m_mainCore->m_deviceSets[deviceSetIndex]->m_deviceAPI->getWorkspaceIndex()); + applyWindowState(m_mainCore->m_deviceSets[deviceSetIndex]->m_deviceAPI, response); return 200; } else @@ -2189,10 +2469,16 @@ int WebAPIAdapter::devicesetDeviceWorkspacePut( if ((deviceSetIndex >= 0) && (deviceSetIndex < (int) m_mainCore->m_deviceSets.size())) { int workspaceIndex = query.getIndex(); - MainCore::MsgMoveDeviceUIToWorkspace *msg = MainCore::MsgMoveDeviceUIToWorkspace::create(deviceSetIndex, workspaceIndex); - m_mainCore->m_mainMessageQueue->push(msg); + + if (workspaceIndex >= 0) + { + MainCore::MsgMoveDeviceUIToWorkspace *msg = MainCore::MsgMoveDeviceUIToWorkspace::create(deviceSetIndex, workspaceIndex); + m_mainCore->m_mainMessageQueue->push(msg); + } + + postWindowHidden(MainCore::MsgSetWindowHidden::Device, deviceSetIndex, -1, query); response.init(); - *response.getMessage() = QString("Message to move a device UI to workspace (MsgMoveDeviceUIToWorkspace) was submitted successfully"); + *response.getMessage() = QString("Message to move or show a device window (MsgMoveDeviceUIToWorkspace, MsgSetWindowHidden) was submitted successfully"); return 202; } else @@ -3096,7 +3382,7 @@ int WebAPIAdapter::devicesetChannelWorkspaceGet( } else { - return channelAPI->webapiWorkspaceGet(response, *error.getMessage()); + return channelWorkspaceGet(channelAPI, response, *error.getMessage()); } } else if (deviceSet->m_deviceSinkEngine) // Single Tx @@ -3110,7 +3396,7 @@ int WebAPIAdapter::devicesetChannelWorkspaceGet( } else { - return channelAPI->webapiWorkspaceGet(response, *error.getMessage()); + return channelWorkspaceGet(channelAPI, response, *error.getMessage()); } } else if (deviceSet->m_deviceMIMOEngine) // MIMO @@ -3140,7 +3426,7 @@ int WebAPIAdapter::devicesetChannelWorkspaceGet( if (channelAPI) { - return channelAPI->webapiWorkspaceGet(response, *error.getMessage()); + return channelWorkspaceGet(channelAPI, response, *error.getMessage()); } else { @@ -3177,10 +3463,16 @@ int WebAPIAdapter::devicesetChannelWorkspacePut( if ((channelIndex >= 0) && (channelIndex < deviceSet->getNumberOfChannels())) { int workspaceIndex = query.getIndex(); - MainCore::MsgMoveChannelUIToWorkspace *msg = MainCore::MsgMoveChannelUIToWorkspace::create(deviceSetIndex, channelIndex, workspaceIndex); - m_mainCore->m_mainMessageQueue->push(msg); + + if (workspaceIndex >= 0) + { + MainCore::MsgMoveChannelUIToWorkspace *msg = MainCore::MsgMoveChannelUIToWorkspace::create(deviceSetIndex, channelIndex, workspaceIndex); + m_mainCore->m_mainMessageQueue->push(msg); + } + + postWindowHidden(MainCore::MsgSetWindowHidden::Channel, deviceSetIndex, channelIndex, query); response.init(); - *response.getMessage() = QString("Message to move a channel UI to workspace (MsgMoveChannelUIToWorkspace) was submitted successfully"); + *response.getMessage() = QString("Message to move or show a channel window (MsgMoveChannelUIToWorkspace, MsgSetWindowHidden) was submitted successfully"); return 202; } else @@ -3783,11 +4075,12 @@ int WebAPIAdapter::featuresetFeatureWorkspaceGet( SWGSDRangel::SWGWorkspaceInfo& response, SWGSDRangel::SWGErrorResponse& error) { - if ((featureIndex >= 0) && (featureIndex < (int) m_mainCore->m_featureSets.size())) + if ((featureIndex >= 0) && (m_mainCore->m_featureSets.size() > 0) && (featureIndex < m_mainCore->m_featureSets[0]->getNumberOfFeatures())) { FeatureSet *featureSet = m_mainCore->m_featureSets[0]; Feature *feature = featureSet->getFeatureAt(featureIndex); response.setIndex(feature->getWorkspaceIndex()); + applyWindowState(feature, response); return 200; } else @@ -3804,13 +4097,19 @@ int WebAPIAdapter::featuresetFeatureWorkspacePut( SWGSDRangel::SWGSuccessResponse& response, SWGSDRangel::SWGErrorResponse& error) { - if ((featureIndex >= 0) && (featureIndex < (int) m_mainCore->m_featureSets.size())) + if ((featureIndex >= 0) && (m_mainCore->m_featureSets.size() > 0) && (featureIndex < m_mainCore->m_featureSets[0]->getNumberOfFeatures())) { int workspaceIndex = query.getIndex(); - MainCore::MsgMoveFeatureUIToWorkspace *msg = MainCore::MsgMoveFeatureUIToWorkspace::create(featureIndex, workspaceIndex); - m_mainCore->m_mainMessageQueue->push(msg); + + if (workspaceIndex >= 0) + { + MainCore::MsgMoveFeatureUIToWorkspace *msg = MainCore::MsgMoveFeatureUIToWorkspace::create(featureIndex, workspaceIndex); + m_mainCore->m_mainMessageQueue->push(msg); + } + + postWindowHidden(MainCore::MsgSetWindowHidden::Feature, -1, featureIndex, query); response.init(); - *response.getMessage() = QString("Message to move a feature UI to workspace (MsgMoveFeatureUIToWorkspace) was submitted successfully"); + *response.getMessage() = QString("Message to move or show a feature window (MsgMoveFeatureUIToWorkspace, MsgSetWindowHidden) was submitted successfully"); return 202; } else diff --git a/sdrbase/webapi/webapiadapter.h b/sdrbase/webapi/webapiadapter.h index fec47ee6f..aed11b8d1 100644 --- a/sdrbase/webapi/webapiadapter.h +++ b/sdrbase/webapi/webapiadapter.h @@ -26,9 +26,9 @@ #include #include "webapi/webapiadapterinterface.h" +#include "maincore.h" #include "export.h" -class MainCore; class DeviceSet; class FeatureSet; @@ -230,11 +230,62 @@ public: SWGSDRangel::SWGSuccessResponse& response, SWGSDRangel::SWGErrorResponse& error); + virtual int workspaceActionsPost( + int workspaceIndex, + SWGSDRangel::SWGWorkspaceActions& query, + SWGSDRangel::SWGSuccessResponse& response, + SWGSDRangel::SWGErrorResponse& error); + + virtual int instanceWindowsGet( + SWGSDRangel::SWGWindowList& response, + SWGSDRangel::SWGErrorResponse& error); + virtual int devicesetGet( int deviceSetIndex, SWGSDRangel::SWGDeviceSet& response, SWGSDRangel::SWGErrorResponse& error); + virtual int devicesetSpectrumActionsPost( + int deviceSetIndex, + const QStringList& spectrumActionsKeys, + SWGSDRangel::SWGSpectrumActions& query, + SWGSDRangel::SWGErrorResponse& error); + + virtual int devicesetSpectrumDataGet( + int deviceSetIndex, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, + SWGSDRangel::SWGErrorResponse& error); + + virtual int devicesetSpectrumHistoryGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, + SWGSDRangel::SWGErrorResponse& error); + + virtual int devicesetSpectrumHistoryImageGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + int maxRows, + QByteArray& png, + QJsonObject& description, + SWGSDRangel::SWGErrorResponse& error); + + virtual int devicesetSpectrumReportGet( + int deviceSetIndex, + SWGSDRangel::SWGGLSpectrumReport& response, + SWGSDRangel::SWGErrorResponse& error); + virtual int devicesetSpectrumSettingsGet( int deviceSetIndex, SWGSDRangel::SWGGLSpectrum& response, @@ -497,6 +548,15 @@ public: private: MainCore *m_mainCore; + //!< Overlays what the GUI has published for the window on the response: its workspace as + //!< the GUI has it, and whether it is hidden. Leaves a response for a window the GUI has + //!< not published (the server) as it was + void applyWindowState(const void *owner, SWGSDRangel::SWGWorkspaceInfo& response); + //!< A channel's workspace information from the plugin, with the GUI's state overlaid + int channelWorkspaceGet(ChannelAPI *channelAPI, SWGSDRangel::SWGWorkspaceInfo& response, QString& errorMessage); + //!< Posts the show or hide a PUT asks for, if it asks for one. Returns whether it did + bool postWindowHidden(MainCore::MsgSetWindowHidden::Kind kind, int deviceSetIndex, int index, const SWGSDRangel::SWGWorkspaceInfo& query); + void getDeviceSetList(SWGSDRangel::SWGDeviceSetList* deviceSetList); void getDeviceSet(SWGSDRangel::SWGDeviceSet *swgDeviceSet, const DeviceSet* deviceSet, int deviceSetIndex); void getChannelsDetail(SWGSDRangel::SWGChannelsDetail *channelsDetail, const DeviceSet* deviceSet); diff --git a/sdrbase/webapi/webapiadapterinterface.cpp b/sdrbase/webapi/webapiadapterinterface.cpp index a75739557..ac2cb756a 100644 --- a/sdrbase/webapi/webapiadapterinterface.cpp +++ b/sdrbase/webapi/webapiadapterinterface.cpp @@ -46,12 +46,18 @@ QString WebAPIAdapterInterface::instanceFeaturePresetURL = "/sdrangel/featurepre QString WebAPIAdapterInterface::instanceDeviceSetsURL = "/sdrangel/devicesets"; QString WebAPIAdapterInterface::instanceDeviceSetURL = "/sdrangel/deviceset"; QString WebAPIAdapterInterface::instanceWorkspaceURL = "/sdrangel/workspace"; +QString WebAPIAdapterInterface::instanceWindowsURL = "/sdrangel/windows"; QString WebAPIAdapterInterface::featuresetURL("/sdrangel/featureset"); QString WebAPIAdapterInterface::featuresetFeatureURL("/sdrangel/featureset/feature"); QString WebAPIAdapterInterface::featuresetPresetURL("/sdrangel/featureset/preset"); std::regex WebAPIAdapterInterface::devicesetURLRe("^/sdrangel/deviceset/([0-9]{1,2})$"); std::regex WebAPIAdapterInterface::devicesetSpectrumSettingsURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/settings$"); +std::regex WebAPIAdapterInterface::devicesetSpectrumReportURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/report$"); +std::regex WebAPIAdapterInterface::devicesetSpectrumActionsURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/actions$"); +std::regex WebAPIAdapterInterface::devicesetSpectrumDataURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/data$"); +std::regex WebAPIAdapterInterface::devicesetSpectrumHistoryURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/history$"); +std::regex WebAPIAdapterInterface::devicesetSpectrumHistoryImageURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/history/image$"); std::regex WebAPIAdapterInterface::devicesetSpectrumServerURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/server$"); std::regex WebAPIAdapterInterface::devicesetSpectrumWorkspaceURLRe("^/sdrangel/deviceset/([0-9]{1,2})/spectrum/workspace$"); std::regex WebAPIAdapterInterface::devicesetDeviceURLRe("^/sdrangel/deviceset/([0-9]{1,2})/device$"); @@ -75,6 +81,7 @@ std::regex WebAPIAdapterInterface::featuresetFeatureSettingsURLRe("^/sdrangel/fe std::regex WebAPIAdapterInterface::featuresetFeatureReportURLRe("^/sdrangel/featureset/feature/([0-9]{1,2})/report$"); std::regex WebAPIAdapterInterface::featuresetFeatureActionsURLRe("^/sdrangel/featureset/feature/([0-9]{1,2})/actions$"); std::regex WebAPIAdapterInterface::featuresetFeatureWorkspaceURLRe("^/sdrangel/featureset/feature/([0-9]{1,2})/workspace$"); +std::regex WebAPIAdapterInterface::workspaceActionsURLRe("^/sdrangel/workspace/([0-9]{1,2})/actions$"); void WebAPIAdapterInterface::ConfigKeys::debug() const { diff --git a/sdrbase/webapi/webapiadapterinterface.h b/sdrbase/webapi/webapiadapterinterface.h index 9936e52b3..8ac809c7b 100644 --- a/sdrbase/webapi/webapiadapterinterface.h +++ b/sdrbase/webapi/webapiadapterinterface.h @@ -23,6 +23,8 @@ #define SDRBASE_WEBAPI_WEBAPIADAPTERINTERFACE_H_ #include +#include +#include #include #include @@ -67,6 +69,8 @@ namespace SWGSDRangel class SWGDeviceReport; class SWGDeviceActions; class SWGWorkspaceInfo; + class SWGWorkspaceActions; + class SWGWindowList; class SWGChannelsDetail; class SWGChannelSettings; class SWGChannelReport; @@ -81,6 +85,10 @@ namespace SWGSDRangel class SWGFeatureReport; class SWGFeatureActions; class SWGGLSpectrum; + class SWGGLSpectrumReport; + class SWGSpectrumActions; + class SWGGLSpectrumData; + class SWGGLSpectrumHistory; class SWGSpectrumServer; } @@ -807,6 +815,38 @@ public: return 501; } + /** + * Handler of /sdrangel/windows (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceWindowsGet + * returns the Http status code (default 501: not implemented) + */ + virtual int instanceWindowsGet( + SWGSDRangel::SWGWindowList& response, + SWGSDRangel::SWGErrorResponse& error) + { + (void) response; + error.init(); + *error.getMessage() = QString("Function not implemented"); + return 501; + } + + /** + * Handler of /sdrangel/workspace/{workspaceIndex}/actions (POST) swagger/sdrangel/code/html2/index.html#api-Default-workspaceActionsPost + * returns the Http status code (default 501: not implemented) + */ + virtual int workspaceActionsPost( + int workspaceIndex, + SWGSDRangel::SWGWorkspaceActions& query, + SWGSDRangel::SWGSuccessResponse& response, + SWGSDRangel::SWGErrorResponse& error) + { + (void) workspaceIndex; + (void) query; + (void) response; + error.init(); + *error.getMessage() = QString("Function not implemented"); + return 501; + } + /** * Handler of /sdrangel/deviceset (POST) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels * returns the Http status code (default 501: not implemented) @@ -935,6 +975,108 @@ public: * Handler of /sdrangel/deviceset/{devicesetIndex}/spectrum/server (GET) * returns the Http status code (default 501: not implemented) */ + /** + * The latest spectrum measurement results + */ + virtual int devicesetSpectrumReportGet( + int deviceSetIndex, + SWGSDRangel::SWGGLSpectrumReport& response, + SWGSDRangel::SWGErrorResponse& error) + { + (void) deviceSetIndex; + (void) response; + *error.getMessage() = "Function not implemented"; + return 501; + } + + /** + * Act on the main spectrum of a device set + */ + virtual int devicesetSpectrumActionsPost( + int deviceSetIndex, + const QStringList& spectrumActionsKeys, + SWGSDRangel::SWGSpectrumActions& query, + SWGSDRangel::SWGErrorResponse& error) + { + (void) deviceSetIndex; + (void) spectrumActionsKeys; + (void) query; + *error.getMessage() = "Function not implemented"; + return 501; + } + + /** + * Statistics over the spectrum history kept for scrolling + */ + virtual int devicesetSpectrumHistoryGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + double thresholdDb, + SWGSDRangel::SWGGLSpectrumHistory& response, + SWGSDRangel::SWGErrorResponse& error) + { + (void) deviceSetIndex; + (void) seconds; + (void) bins; + (void) startFrequency; + (void) stopFrequency; + (void) thresholdDb; + (void) response; + *error.getMessage() = "Function not implemented"; + return 501; + } + + /** + * The spectrum history as a PNG waterfall; description receives its extents + */ + virtual int devicesetSpectrumHistoryImageGet( + int deviceSetIndex, + double seconds, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + int maxRows, + QByteArray& png, + QJsonObject& description, + SWGSDRangel::SWGErrorResponse& error) + { + (void) deviceSetIndex; + (void) seconds; + (void) bins; + (void) startFrequency; + (void) stopFrequency; + (void) maxRows; + (void) png; + (void) description; + *error.getMessage() = "Function not implemented"; + return 501; + } + + /** + * A reduced copy of the current power spectrum + */ + virtual int devicesetSpectrumDataGet( + int deviceSetIndex, + int bins, + qint64 startFrequency, + qint64 stopFrequency, + const QString& reduce, + SWGSDRangel::SWGGLSpectrumData& response, + SWGSDRangel::SWGErrorResponse& error) + { + (void) deviceSetIndex; + (void) bins; + (void) startFrequency; + (void) stopFrequency; + (void) reduce; + (void) response; + *error.getMessage() = "Function not implemented"; + return 501; + } + virtual int devicesetSpectrumServerGet( int deviceSetIndex, SWGSDRangel::SWGSpectrumServer& response, @@ -1709,11 +1851,17 @@ public: static QString instanceDeviceSetsURL; static QString instanceDeviceSetURL; static QString instanceWorkspaceURL; + static QString instanceWindowsURL; static QString featuresetURL; static QString featuresetFeatureURL; static QString featuresetPresetURL; static std::regex devicesetURLRe; static std::regex devicesetSpectrumSettingsURLRe; + static std::regex devicesetSpectrumReportURLRe; + static std::regex devicesetSpectrumActionsURLRe; + static std::regex devicesetSpectrumDataURLRe; + static std::regex devicesetSpectrumHistoryURLRe; + static std::regex devicesetSpectrumHistoryImageURLRe; static std::regex devicesetSpectrumServerURLRe; static std::regex devicesetSpectrumWorkspaceURLRe; static std::regex devicesetDeviceURLRe; @@ -1736,6 +1884,7 @@ public: static std::regex featuresetFeatureReportURLRe; static std::regex featuresetFeatureActionsURLRe; static std::regex featuresetFeatureWorkspaceURLRe; + static std::regex workspaceActionsURLRe; }; diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index 3440c9bc1..20a877ae4 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -53,6 +53,9 @@ #include "SWGDeviceReport.h" #include "SWGDeviceActions.h" #include "SWGWorkspaceInfo.h" +#include "SWGWorkspaceActions.h" +#include "SWGWindowList.h" +#include "SWGGLSpectrumHistory.h" #include "SWGChannelsDetail.h" #include "SWGChannelSettings.h" #include "SWGChannelReport.h" @@ -65,6 +68,9 @@ #include "SWGFeatureReport.h" #include "SWGFeatureActions.h" #include "SWGGLSpectrum.h" +#include "SWGGLSpectrumReport.h" +#include "SWGSpectrumActions.h" +#include "SWGGLSpectrumData.h" #include "SWGSpectrumServer.h" WebAPIRequestMapper::WebAPIRequestMapper(QObject* parent) : @@ -165,6 +171,8 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http instanceDeviceSetService(request, response); } else if (path == WebAPIAdapterInterface::instanceWorkspaceURL) { instanceWorkspaceService(request, response); + } else if (path == WebAPIAdapterInterface::instanceWindowsURL) { + instanceWindowsService(request, response); } else if (path == WebAPIAdapterInterface::featuresetURL) { featuresetService(request, response); } else if (path == WebAPIAdapterInterface::featuresetFeatureURL) { @@ -183,8 +191,20 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http devicesetDeviceService(std::string(desc_match[1]), request, response); } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumSettingsURLRe)) { devicesetSpectrumSettingsService(std::string(desc_match[1]), request, response); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumReportURLRe)) { + devicesetSpectrumReportService(std::string(desc_match[1]), request, response); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumActionsURLRe)) { + devicesetSpectrumActionsService(std::string(desc_match[1]), request, response); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumDataURLRe)) { + devicesetSpectrumDataService(std::string(desc_match[1]), request, response); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumHistoryURLRe)) { + devicesetSpectrumHistoryService(std::string(desc_match[1]), request, response, false); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumHistoryImageURLRe)) { + devicesetSpectrumHistoryService(std::string(desc_match[1]), request, response, true); } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumServerURLRe)) { devicesetSpectrumServerService(std::string(desc_match[1]), request, response); + } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::workspaceActionsURLRe)) { + workspaceActionsService(std::string(desc_match[1]), request, response); } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetSpectrumWorkspaceURLRe)) { devicesetSpectrumWorkspaceService(std::string(desc_match[1]), request, response); } else if (std::regex_match(pathStr, desc_match, WebAPIAdapterInterface::devicesetDeviceSettingsURLRe)) { @@ -1718,6 +1738,33 @@ void WebAPIRequestMapper::instanceWorkspaceService(qtwebapp::HttpRequest& reques } } +void WebAPIRequestMapper::instanceWindowsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Content-Type", "application/json"); + response.setHeader("Access-Control-Allow-Origin", "*"); + + if (request.getMethod() == "GET") + { + SWGSDRangel::SWGWindowList normalResponse; + int status = m_adapter->instanceWindowsGet(normalResponse, errorResponse); + response.setStatus(status); + + if (status/100 == 2) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(405,"Invalid HTTP method"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid HTTP method"; + response.write(errorResponse.asJson().toUtf8()); + } +} + void WebAPIRequestMapper::devicesetService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) { SWGSDRangel::SWGErrorResponse errorResponse; @@ -1756,6 +1803,312 @@ void WebAPIRequestMapper::devicesetService(const std::string& indexStr, qtwebapp } } + + + +void WebAPIRequestMapper::devicesetSpectrumHistoryService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response, bool image) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Access-Control-Allow-Origin", "*"); + + auto fail = [&](int status, const QString& message) + { + response.setHeader("Content-Type", "application/json"); + response.setStatus(status, message.toLatin1().constData()); + errorResponse.init(); + *errorResponse.getMessage() = message; + response.write(errorResponse.asJson().toUtf8()); + }; + + try + { + int deviceSetIndex = boost::lexical_cast(indexStr); + + if (request.getMethod() != "GET") + { + fail(405, "Invalid HTTP method"); + return; + } + + // Numbers from the query string, each checked rather than defaulted on a parse failure + double seconds = 60.0; + int bins = image ? 512 : 128; + int rows = 512; + double threshold = 6.0; + qint64 startFrequency = 0; + qint64 stopFrequency = 0; + + for (const char *name : {"seconds", "bins", "rows", "threshold", "startFrequency", "stopFrequency"}) + { + QByteArray parameter = request.getParameter(name); + + if (parameter.isEmpty()) { + continue; + } + + bool parsed = false; + const double value = QString(parameter).toDouble(&parsed); + + if (!parsed) + { + fail(400, QString("%1 must be a number").arg(name)); + return; + } + + const QString key(name); + + if (key == "seconds") { + seconds = value; + } else if (key == "bins") { + bins = (int) value; + } else if (key == "rows") { + rows = (int) value; + } else if (key == "threshold") { + threshold = value; + } else if (key == "startFrequency") { + startFrequency = (qint64) value; + } else { + stopFrequency = (qint64) value; + } + } + + if ((seconds <= 0.0) || (bins < 1) || (rows < 1)) + { + fail(400, "seconds, bins and rows must be positive"); + return; + } + + if (image) + { + QByteArray png; + QJsonObject description; + int status = m_adapter->devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, rows, png, description, errorResponse); + + if (status / 100 != 2) + { + fail(status, errorResponse.getMessage() ? *errorResponse.getMessage() : QString("Error")); + return; + } + + response.setHeader("Content-Type", "image/png"); + + for (const QString& key : description.keys()) { + response.setHeader(("X-Spectrum-History-" + key).toLatin1(), description[key].toVariant().toString().toLatin1()); + } + + response.setStatus(200); + response.write(png); + } + else + { + SWGSDRangel::SWGGLSpectrumHistory normalResponse; + normalResponse.init(); + int status = m_adapter->devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold, normalResponse, errorResponse); + response.setHeader("Content-Type", "application/json"); + response.setStatus(status); + + if (status/100 == 2) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } + } + } + catch (const boost::bad_lexical_cast &e) + { + fail(400, QString("Wrong integer conversion on index %1").arg(e.what())); + } +} + +void WebAPIRequestMapper::devicesetSpectrumDataService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Content-Type", "application/json"); + response.setHeader("Access-Control-Allow-Origin", "*"); + + try + { + int deviceSetIndex = boost::lexical_cast(indexStr); + + if (request.getMethod() == "GET") + { + // Query parameters rather than a body, as this is a read + bool ok = false; + QByteArray binsParam = request.getParameter("bins"); + int bins = binsParam.isEmpty() ? 128 : QString(binsParam).toInt(&ok); + + if (!binsParam.isEmpty() && !ok) + { + response.setStatus(400, "bins must be a number"); + errorResponse.init(); + *errorResponse.getMessage() = "bins must be a number"; + response.write(errorResponse.asJson().toUtf8()); + return; + } + + // Checked rather than defaulted: an unparseable frequency reads as 0, which the + // endpoint takes to mean the whole span, so a mistyped one would quietly return + // plausible data for the wrong range + qint64 startFrequency = 0; + qint64 stopFrequency = 0; + + for (const char *name : {"startFrequency", "stopFrequency"}) + { + QByteArray parameter = request.getParameter(name); + + if (parameter.isEmpty()) { + continue; + } + + bool parsed = false; + qint64 value = QString(parameter).toLongLong(&parsed); + + if (!parsed) + { + QString message = QString("%1 must be a number").arg(name); + response.setStatus(400, message.toLatin1().constData()); + errorResponse.init(); + *errorResponse.getMessage() = message; + response.write(errorResponse.asJson().toUtf8()); + return; + } + + if (QString(name) == "startFrequency") { + startFrequency = value; + } else { + stopFrequency = value; + } + } + + QByteArray reduceParam = request.getParameter("reduce"); + QString reduce = reduceParam.isEmpty() ? QString("max") : QString(reduceParam); + + SWGSDRangel::SWGGLSpectrumData normalResponse; + normalResponse.init(); + int status = m_adapter->devicesetSpectrumDataGet( + deviceSetIndex, bins, startFrequency, stopFrequency, reduce, normalResponse, errorResponse); + response.setStatus(status); + + if (status/100 == 2) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(405, "Invalid HTTP method"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid HTTP method"; + response.write(errorResponse.asJson().toUtf8()); + } + } + catch (const boost::bad_lexical_cast &e) + { + errorResponse.init(); + *errorResponse.getMessage() = "Wrong integer conversion: " + QString(e.what()); + response.setStatus(400, errorResponse.getMessage()->toLatin1().constData()); + response.write(errorResponse.asJson().toUtf8()); + } +} + +void WebAPIRequestMapper::devicesetSpectrumActionsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Content-Type", "application/json"); + response.setHeader("Access-Control-Allow-Origin", "*"); + + try + { + int deviceSetIndex = boost::lexical_cast(indexStr); + + if (request.getMethod() == "POST") + { + QString jsonStr = request.getBody(); + QJsonObject jsonObject; + + if (parseJsonBody(jsonStr, jsonObject, response)) + { + SWGSDRangel::SWGSpectrumActions query; + QStringList spectrumActionsKeys; + extractKeys(jsonObject, spectrumActionsKeys); + query.fromJson(jsonStr); + int status = m_adapter->devicesetSpectrumActionsPost(deviceSetIndex, spectrumActionsKeys, query, errorResponse); + response.setStatus(status); + + if (status/100 == 2) + { + errorResponse.init(); + *errorResponse.getMessage() = "Message to change the spectrum was submitted successfully"; + } + + response.write(errorResponse.asJson().toUtf8()); + } + else + { + response.setStatus(400, "Invalid JSON format"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid JSON format"; + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(405, "Invalid HTTP method"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid HTTP method"; + response.write(errorResponse.asJson().toUtf8()); + } + } + catch (const boost::bad_lexical_cast &e) + { + errorResponse.init(); + *errorResponse.getMessage() = "Wrong integer conversion: " + QString(e.what()); + response.setStatus(400, errorResponse.getMessage()->toLatin1().constData()); + response.write(errorResponse.asJson().toUtf8()); + } +} + +void WebAPIRequestMapper::devicesetSpectrumReportService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Content-Type", "application/json"); + response.setHeader("Access-Control-Allow-Origin", "*"); + + try + { + int deviceSetIndex = boost::lexical_cast(indexStr); + + if (request.getMethod() == "GET") + { + SWGSDRangel::SWGGLSpectrumReport normalResponse; + resetSpectrumReport(normalResponse); + int status = m_adapter->devicesetSpectrumReportGet(deviceSetIndex, normalResponse, errorResponse); + response.setStatus(status); + + if (status/100 == 2) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(405, "Invalid HTTP method"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid HTTP method"; + response.write(errorResponse.asJson().toUtf8()); + } + } + catch (const boost::bad_lexical_cast &e) + { + errorResponse.init(); + *errorResponse.getMessage() = "Wrong integer conversion: " + QString(e.what()); + response.setStatus(400, errorResponse.getMessage()->toLatin1().constData()); + response.write(errorResponse.asJson().toUtf8()); + } +} + void WebAPIRequestMapper::devicesetSpectrumSettingsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) { SWGSDRangel::SWGErrorResponse errorResponse; @@ -3437,6 +3790,73 @@ void WebAPIRequestMapper::featuresetFeatureActionsService( } } +void WebAPIRequestMapper::workspaceActionsService( + const std::string& workspaceIndexStr, + qtwebapp::HttpRequest& request, + qtwebapp::HttpResponse& response) +{ + SWGSDRangel::SWGErrorResponse errorResponse; + response.setHeader("Content-Type", "application/json"); + response.setHeader("Access-Control-Allow-Origin", "*"); + + try + { + int workspaceIndex = boost::lexical_cast(workspaceIndexStr); + + if (request.getMethod() == "POST") + { + QString jsonStr = request.getBody(); + QJsonObject jsonObject; + + if (parseJsonBody(jsonStr, jsonObject, response)) + { + SWGSDRangel::SWGWorkspaceActions query; + SWGSDRangel::SWGSuccessResponse normalResponse; + + if (validateWorkspaceActions(query, jsonObject)) + { + int status = m_adapter->workspaceActionsPost(workspaceIndex, query, normalResponse, errorResponse); + response.setStatus(status); + + if (status/100 == 2) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(400,"Invalid JSON request"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid JSON request: arrange must be one of cascade, tile, stackVertical, stack, autostack, tab"; + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(400,"Invalid JSON format"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid JSON format"; + response.write(errorResponse.asJson().toUtf8()); + } + } + else + { + response.setStatus(405,"Invalid HTTP method"); + errorResponse.init(); + *errorResponse.getMessage() = "Invalid HTTP method"; + response.write(errorResponse.asJson().toUtf8()); + } + } + catch (const boost::bad_lexical_cast &e) + { + errorResponse.init(); + *errorResponse.getMessage() = "Wrong integer conversion on workspace index"; + response.setStatus(400,"Invalid data"); + response.write(errorResponse.asJson().toUtf8()); + } +} + void WebAPIRequestMapper::featuresetFeatureWorkspaceService( const std::string& featureIndexStr, qtwebapp::HttpRequest& request, @@ -4086,15 +4506,39 @@ bool WebAPIRequestMapper::validateSpectrumSettings(SWGSDRangel::SWGGLSpectrum& s return true; } +// The arrangement is an enumeration, and one outside it is refused here rather than passed on +bool WebAPIRequestMapper::validateWorkspaceActions(SWGSDRangel::SWGWorkspaceActions& workspaceActions, QJsonObject& jsonObject) +{ + if (!jsonObject.contains("arrange") || !jsonObject["arrange"].isString()) { + return false; + } + + static const QStringList arrangements = {"cascade", "tile", "stackVertical", "stack", "autostack", "tab"}; + QString arrange = jsonObject["arrange"].toString(); + + if (!arrangements.contains(arrange)) { + return false; + } + + workspaceActions.setArrange(new QString(arrange)); + return true; +} + bool WebAPIRequestMapper::validateWorkspaceInfo(SWGSDRangel::SWGWorkspaceInfo& workspaceInfo, QJsonObject& jsonObject) { - if (jsonObject.contains("index")) - { - workspaceInfo.setIndex(jsonObject["index"].toInt()); - return true; + // Either field on its own is a request: index moves the window, hidden shows or hides it. + // What is absent is passed on as -1, since the object carries no other sign of absence + // that the adapter can read + const bool hasIndex = jsonObject.contains("index") && jsonObject["index"].isDouble(); + const bool hasHidden = jsonObject.contains("hidden") && jsonObject["hidden"].isDouble(); + + if (!hasIndex && !hasHidden) { + return false; } - return false; + workspaceInfo.setIndex(hasIndex ? jsonObject["index"].toInt() : -1); + workspaceInfo.setHidden(hasHidden ? (jsonObject["hidden"].toInt() != 0 ? 1 : 0) : -1); + return true; } bool WebAPIRequestMapper::validateConfig( @@ -5351,6 +5795,11 @@ bool WebAPIRequestMapper::getFeatureSettings( featureSettings->setRigCtlServerSettings(new SWGSDRangel::SWGRigCtlServerSettings()); featureSettings->getRigCtlServerSettings()->fromJsonObject(settingsJsonObject); } + else if (featureSettingsKey == "MCPServerSettings") + { + featureSettings->setMcpServerSettings(new SWGSDRangel::SWGMCPServerSettings()); + featureSettings->getMcpServerSettings()->fromJsonObject(settingsJsonObject); + } else if (featureSettingsKey == "VORLocalizerSettings") { featureSettings->setVorLocalizerSettings(new SWGSDRangel::SWGVORLocalizerSettings()); @@ -5419,6 +5868,11 @@ bool WebAPIRequestMapper::getFeatureActions( featureActions->setRigCtlServerActions(new SWGSDRangel::SWGRigCtlServerActions()); featureActions->getRigCtlServerActions()->fromJsonObject(actionsJsonObject); } + else if (featureActionsKey == "MCPServerActions") + { + featureActions->setMcpServerActions(new SWGSDRangel::SWGMCPServerActions()); + featureActions->getMcpServerActions()->fromJsonObject(actionsJsonObject); + } else if (featureActionsKey == "SatelliteTrackerActions") { featureActions->setSatelliteTrackerActions(new SWGSDRangel::SWGSatelliteTrackerActions()); @@ -5510,6 +5964,11 @@ void WebAPIRequestMapper::resetSpectrumSettings(SWGSDRangel::SWGGLSpectrum& spec spectrumSettings.cleanup(); } +void WebAPIRequestMapper::resetSpectrumReport(SWGSDRangel::SWGGLSpectrumReport& spectrumReport) +{ + spectrumReport.cleanup(); +} + void WebAPIRequestMapper::resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings) { deviceSettings.cleanup(); @@ -5709,6 +6168,7 @@ void WebAPIRequestMapper::resetFeatureSettings(SWGSDRangel::SWGFeatureSettings& featureSettings.setStarTrackerSettings(nullptr); featureSettings.setRadiosondeSettings(nullptr); featureSettings.setRigCtlServerSettings(nullptr); + featureSettings.setMcpServerSettings(nullptr); } void WebAPIRequestMapper::resetFeatureReport(SWGSDRangel::SWGFeatureReport& featureReport) @@ -5720,6 +6180,7 @@ void WebAPIRequestMapper::resetFeatureReport(SWGSDRangel::SWGFeatureReport& feat featureReport.setGs232ControllerReport(nullptr); featureReport.setPerTesterReport(nullptr); featureReport.setRigCtlServerReport(nullptr); + featureReport.setMcpServerReport(nullptr); featureReport.setMapReport(nullptr); featureReport.setSatelliteTrackerReport(nullptr); featureReport.setSimplePttReport(nullptr); @@ -5737,6 +6198,7 @@ void WebAPIRequestMapper::resetFeatureActions(SWGSDRangel::SWGFeatureActions& fe featureActions.setMapActions(nullptr); featureActions.setPerTesterActions(nullptr); featureActions.setRigCtlServerActions(nullptr); + featureActions.setMcpServerActions(nullptr); featureActions.setSatelliteTrackerActions(nullptr); featureActions.setSimplePttActions(nullptr); featureActions.setSkyMapActions(nullptr); diff --git a/sdrbase/webapi/webapirequestmapper.h b/sdrbase/webapi/webapirequestmapper.h index 4fb360036..2751e250c 100644 --- a/sdrbase/webapi/webapirequestmapper.h +++ b/sdrbase/webapi/webapirequestmapper.h @@ -82,9 +82,14 @@ private: void instanceDeviceSetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void instanceDeviceSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void instanceWorkspaceService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void instanceWindowsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void devicesetService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void devicesetSpectrumSettingsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void devicesetSpectrumReportService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void devicesetSpectrumActionsService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void devicesetSpectrumDataService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void devicesetSpectrumHistoryService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response, bool image); void devicesetSpectrumServerService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void devicesetSpectrumWorkspaceService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void devicesetDeviceService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); @@ -111,6 +116,7 @@ private: void featuresetFeatureReportService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void featuresetFeatureActionsService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); void featuresetFeatureWorkspaceService(const std::string& featureIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); + void workspaceActionsService(const std::string& workspaceIndexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response); bool validatePresetTransfer(SWGSDRangel::SWGPresetTransfer& presetTransfer); bool validatePresetIdentifer(SWGSDRangel::SWGPresetIdentifier& presetIdentifier); @@ -128,6 +134,7 @@ private: bool validateAudioOutputDevice(SWGSDRangel::SWGAudioOutputDevice& audioOutputDevice, QJsonObject& jsonObject, QStringList& audioOutputDeviceKeys); bool validateConfig(SWGSDRangel::SWGInstanceConfigResponse& config, QJsonObject& jsonObject, WebAPIAdapterInterface::ConfigKeys& configKeys); bool validateWorkspaceInfo(SWGSDRangel::SWGWorkspaceInfo& workspaceInfo, QJsonObject& jsonObject); + bool validateWorkspaceActions(SWGSDRangel::SWGWorkspaceActions& workspaceActions, QJsonObject& jsonObject); bool validateConfigurationIdentifier(SWGSDRangel::SWGConfigurationIdentifier& configurationIdentifier); bool validateConfigurationImportExport(SWGSDRangel::SWGConfigurationImportExport& configuratopmImportExport); @@ -210,6 +217,7 @@ private: bool parseJsonBody(QString& jsonStr, QJsonObject& jsonObject, qtwebapp::HttpResponse& response); void resetSpectrumSettings(SWGSDRangel::SWGGLSpectrum& spectrumSettings); + void resetSpectrumReport(SWGSDRangel::SWGGLSpectrumReport& spectrumReport); void resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings); void resetDeviceReport(SWGSDRangel::SWGDeviceReport& deviceReport); void resetDeviceActions(SWGSDRangel::SWGDeviceActions& deviceActions); diff --git a/sdrbase/webapi/webapiutils.cpp b/sdrbase/webapi/webapiutils.cpp index cf450fe00..775501226 100644 --- a/sdrbase/webapi/webapiutils.cpp +++ b/sdrbase/webapi/webapiutils.cpp @@ -334,6 +334,7 @@ const QMap WebAPIUtils::m_featureTypeToSettingsKey = { {"PERTester", "PERTesterSettings"}, {"Radiosonde", "RadiosondeSettings"}, {"RigCtlServer", "RigCtlServerSettings"}, + {"MCPServer", "MCPServerSettings"}, {"SatelliteTracker", "SatelliteTrackerSettings"}, {"SID", "SIDSettings"}, {"SimplePTT", "SimplePTTSettings"}, @@ -350,6 +351,7 @@ const QMap WebAPIUtils::m_featureTypeToActionsKey = { {"Map", "MapActions"}, {"PERTester", "PERTesterActions"}, {"RigCtlServer", "RigCtlServerActions"}, + {"MCPServer", "MCPServerActions"}, {"SatelliteTracker", "SatelliteTrackerActions"}, {"SimplePTT", "SimplePTTActions"}, {"SkyMap", "SkyMapActions"}, @@ -375,6 +377,7 @@ const QMap WebAPIUtils::m_featureURIToSettingsKey = { {"sdrangel.feature.pertester", "PERTesterSettings"}, {"sdrangel.feature.radiosonde", "RadiosondeSettings"}, {"sdrangel.feature.rigctlserver", "RigCtlServerSettings"}, + {"sdrangel.feature.mcpserver", "MCPServerSettings"}, {"sdrangel.feature.satellitetracker", "SatelliteTrackerSettings"}, {"sdrangel.feature.simpleptt", "SimplePTTSettings"}, {"sdrangel.feature.skymap", "SkyMapSettings"}, diff --git a/sdrgui/CMakeLists.txt b/sdrgui/CMakeLists.txt index 79da6528e..65c6e42b7 100644 --- a/sdrgui/CMakeLists.txt +++ b/sdrgui/CMakeLists.txt @@ -36,6 +36,7 @@ set(sdrgui_SOURCES gui/devicestreamselectiondialog.cpp gui/deviceuserargsdialog.cpp gui/dialogpositioner.cpp + gui/messagedialog.cpp gui/dialpopup.cpp gui/dmsspinbox.cpp gui/editcommanddialog.cpp @@ -104,6 +105,7 @@ set(sdrgui_SOURCES gui/welcomedialog.cpp gui/workspace.cpp gui/workspaceselectiondialog.cpp + gui/workspacewindow.cpp gui/wsspectrumsettingsdialog.cpp gui/wrappingdatetimeedit.cpp gui/wrappingdial.cpp @@ -167,6 +169,7 @@ set(sdrgui_HEADERS gui/devicestreamselectiondialog.h gui/deviceuserargsdialog.h gui/dialogpositioner.h + gui/messagedialog.h gui/dialpopup.h gui/dmsspinbox.h gui/doublevalidator.h @@ -239,6 +242,7 @@ set(sdrgui_HEADERS gui/welcomedialog.h gui/workspace.h gui/workspaceselectiondialog.h + gui/workspacewindow.h gui/wsspectrumsettingsdialog.h gui/wrappingdatetimeedit.h gui/wrappingdial.h diff --git a/sdrgui/channel/channelgui.cpp b/sdrgui/channel/channelgui.cpp index af5ab6253..b93e6466c 100644 --- a/sdrgui/channel/channelgui.cpp +++ b/sdrgui/channel/channelgui.cpp @@ -40,7 +40,7 @@ #include "channelgui.h" ChannelGUI::ChannelGUI(QWidget *parent) : - QMdiSubWindow(parent), + WorkspaceWindow(parent), m_resizer(this), m_contextMenuType(ContextMenuType::ContextMenuNone), m_deviceType(DeviceType::DeviceRx), @@ -459,6 +459,7 @@ void ChannelGUI::shrinkWindow() void ChannelGUI::setTitle(const QString& title) { m_titleLabel->setText(title); + publishWindowState(); } void ChannelGUI::setTitleColor(const QColor& c) diff --git a/sdrgui/channel/channelgui.h b/sdrgui/channel/channelgui.h index 135f00b07..0043257c6 100644 --- a/sdrgui/channel/channelgui.h +++ b/sdrgui/channel/channelgui.h @@ -26,6 +26,7 @@ #include "gui/qtcompatibility.h" #include "gui/framelesswindowresizer.h" +#include "gui/workspacewindow.h" #include "settings/serializableinterface.h" #include "export.h" @@ -39,7 +40,7 @@ class QSizeGrip; class RollupContents; class ChannelMarker; -class SDRGUI_API ChannelGUI : public QMdiSubWindow, public SerializableInterface +class SDRGUI_API ChannelGUI : public WorkspaceWindow, public SerializableInterface { Q_OBJECT public: @@ -61,11 +62,11 @@ public: virtual void resetToDefaults() = 0; // Data saved in the derived settings - virtual void setWorkspaceIndex(int index)= 0; - virtual int getWorkspaceIndex() const = 0; + virtual void setWorkspaceIndex(int index) override = 0; + virtual int getWorkspaceIndex() const override = 0; virtual void setGeometryBytes(const QByteArray& blob) = 0; virtual QByteArray getGeometryBytes() const = 0; - virtual QString getTitle() const = 0; + virtual QString getTitle() const override = 0; virtual QColor getTitleColor() const = 0; virtual void zetHidden(bool hidden) = 0; virtual bool getHidden() const = 0; diff --git a/sdrgui/device/devicegui.cpp b/sdrgui/device/devicegui.cpp index e39240398..43dabe01b 100644 --- a/sdrgui/device/devicegui.cpp +++ b/sdrgui/device/devicegui.cpp @@ -37,7 +37,7 @@ #include "devicegui.h" DeviceGUI::DeviceGUI(QWidget *parent) : - QMdiSubWindow(parent), + WorkspaceWindow(parent), m_deviceUISet(nullptr), m_deviceType(DeviceRx), m_deviceSetIndex(0), @@ -121,6 +121,12 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_maximizeButton->setIcon(maximizeIcon); m_maximizeButton->setToolTip("Adjust window to maximum size"); + m_hideButton = new QPushButton(); + m_hideButton->setFixedSize(20, 20); + QIcon hideIcon(":/hide.png"); + m_hideButton->setIcon(hideIcon); + m_hideButton->setToolTip("Hide device"); + m_closeButton = new QPushButton(); m_closeButton->setFixedSize(20, 20); QIcon closeIcon(":/cross.png"); @@ -164,6 +170,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_topLayout->addWidget(m_moveButton); m_topLayout->addWidget(m_shrinkButton); m_topLayout->addWidget(m_maximizeButton); + m_topLayout->addWidget(m_hideButton); m_topLayout->addWidget(m_closeButton); m_centerLayout = new QVBoxLayout(); @@ -199,6 +206,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) : connect(m_shrinkButton, SIGNAL(clicked()), this, SLOT(shrinkWindow())); connect(m_maximizeButton, SIGNAL(clicked()), this, SLOT(maximizeWindow())); connect(this, SIGNAL(forceShrink()), this, SLOT(shrinkWindow())); + connect(m_hideButton, SIGNAL(clicked()), this, SLOT(hide())); connect(m_closeButton, SIGNAL(clicked()), this, SLOT(close())); connect(m_showSpectrumButton, SIGNAL(clicked()), this, SLOT(showSpectrumHandler())); connect(m_showAllChannelsButton, SIGNAL(clicked()), this, SLOT(showAllChannelsHandler())); @@ -223,6 +231,7 @@ DeviceGUI::~DeviceGUI() delete m_showSpectrumButton; delete m_statusLabel; delete m_closeButton; + delete m_hideButton; delete m_shrinkButton; delete m_maximizeButton; delete m_moveButton; @@ -417,6 +426,7 @@ void DeviceGUI::setTitle(const QString& title) { setWindowTitle(title + " Device"); m_titleLabel->setText(title); + publishWindowState(); } QString DeviceGUI::getTitle() const diff --git a/sdrgui/device/devicegui.h b/sdrgui/device/devicegui.h index 3abdf20cc..d1b3b2fb0 100644 --- a/sdrgui/device/devicegui.h +++ b/sdrgui/device/devicegui.h @@ -31,6 +31,7 @@ #include "gui/channeladddialog.h" #include "gui/framelesswindowresizer.h" +#include "gui/workspacewindow.h" #include "settings/serializableinterface.h" #include "export.h" @@ -43,7 +44,7 @@ class QHBoxLayout; class QSizeGrip; class DeviceUISet; -class SDRGUI_API DeviceGUI : public QMdiSubWindow, public SerializableInterface { +class SDRGUI_API DeviceGUI : public WorkspaceWindow, public SerializableInterface { Q_OBJECT public: enum DeviceType @@ -63,8 +64,8 @@ public: ~DeviceGUI() override; virtual void resetToDefaults() = 0; - void setWorkspaceIndex(int index); - int getWorkspaceIndex() const { return m_workspaceIndex; } + void setWorkspaceIndex(int index) override; + int getWorkspaceIndex() const override { return m_workspaceIndex; } virtual MessageQueue* getInputMessageQueue() = 0; @@ -73,7 +74,7 @@ public: void setDeviceType(DeviceType type); DeviceType getDeviceType() const { return m_deviceType; } void setTitle(const QString& title); - QString getTitle() const; + QString getTitle() const override; void setDefaultTitle(const QString& title) { m_defaultTitle = title; } QString getDefaultTitle() const { return m_defaultTitle; } void setToolTip(const QString& tooltip); @@ -124,6 +125,7 @@ private: QPushButton *m_moveButton; QPushButton *m_shrinkButton; QPushButton *m_maximizeButton; + QPushButton *m_hideButton; QPushButton *m_closeButton; QPushButton *m_showSpectrumButton; QPushButton *m_showAllChannelsButton; diff --git a/sdrgui/device/deviceuiset.cpp b/sdrgui/device/deviceuiset.cpp index 8370760ea..0abbe3e40 100644 --- a/sdrgui/device/deviceuiset.cpp +++ b/sdrgui/device/deviceuiset.cpp @@ -56,6 +56,7 @@ DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet) m_spectrumGUI = new GLSpectrumGUI; m_spectrumGUI->setBuddies(m_spectrumVis, m_spectrum); m_mainSpectrumGUI = new MainSpectrumGUI(m_spectrum, m_spectrumGUI); + m_mainSpectrumGUI->setWindowOwner(m_spectrumVis); // m_channelWindow = new ChannelWindow; m_deviceAPI = nullptr; m_deviceGUI = nullptr; @@ -112,6 +113,7 @@ void DeviceUISet::removeChannelMarker(ChannelMarker* channelMarker) void DeviceUISet::registerRxChannelInstance(ChannelAPI *channelAPI, ChannelGUI* channelGUI) { + channelGUI->setWindowOwner(channelAPI); m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelAPI, channelGUI, 0)); m_deviceSet->addChannelInstance(channelAPI); QObject::connect( @@ -125,6 +127,7 @@ void DeviceUISet::registerRxChannelInstance(ChannelAPI *channelAPI, ChannelGUI* void DeviceUISet::registerTxChannelInstance(ChannelAPI *channelAPI, ChannelGUI* channelGUI) { + channelGUI->setWindowOwner(channelAPI); m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelAPI, channelGUI, 1)); m_deviceSet->addChannelInstance(channelAPI); QObject::connect( @@ -138,6 +141,7 @@ void DeviceUISet::registerTxChannelInstance(ChannelAPI *channelAPI, ChannelGUI* void DeviceUISet::registerChannelInstance(ChannelAPI *channelAPI, ChannelGUI* channelGUI) { + channelGUI->setWindowOwner(channelAPI); m_channelInstanceRegistrations.append(ChannelInstanceRegistration( channelAPI, channelGUI, 2)); m_deviceSet->addChannelInstance(channelAPI); QObject::connect( diff --git a/sdrgui/feature/featuregui.cpp b/sdrgui/feature/featuregui.cpp index acd8e69e7..a74dc5c29 100644 --- a/sdrgui/feature/featuregui.cpp +++ b/sdrgui/feature/featuregui.cpp @@ -19,6 +19,7 @@ /////////////////////////////////////////////////////////////////////////////////// #include +#include #include #include #include @@ -30,13 +31,16 @@ #include #include #include +#include +#include "gui/messagedialog.h" #include "mainwindow.h" +#include "feature/feature.h" #include "gui/workspaceselectiondialog.h" #include "featuregui.h" FeatureGUI::FeatureGUI(QWidget *parent) : - QMdiSubWindow(parent), + WorkspaceWindow(parent), m_featureIndex(0), m_contextMenuType(ContextMenuNone), m_resizer(this), @@ -94,6 +98,12 @@ FeatureGUI::FeatureGUI(QWidget *parent) : m_maximizeButton->setIcon(maximizeIcon); m_maximizeButton->setToolTip("Adjust window to maximum size in workspace"); + m_hideButton = new QPushButton(); + m_hideButton->setFixedSize(20, 20); + QIcon hideIcon(":/hide.png"); + m_hideButton->setIcon(hideIcon); + m_hideButton->setToolTip("Hide feature"); + m_closeButton = new QPushButton(); m_closeButton->setFixedSize(20, 20); QIcon closeIcon(":/cross.png"); @@ -121,6 +131,7 @@ FeatureGUI::FeatureGUI(QWidget *parent) : m_topLayout->addWidget(m_moveButton); m_topLayout->addWidget(m_shrinkButton); m_topLayout->addWidget(m_maximizeButton); + m_topLayout->addWidget(m_hideButton); m_topLayout->addWidget(m_closeButton); m_centerLayout = new QHBoxLayout(); @@ -148,6 +159,7 @@ FeatureGUI::FeatureGUI(QWidget *parent) : connect(m_shrinkButton, SIGNAL(clicked()), this, SLOT(shrinkWindow())); connect(m_maximizeButton, SIGNAL(clicked()), this, SLOT(maximizeWindow())); connect(this, SIGNAL(forceShrink()), this, SLOT(shrinkWindow())); + connect(m_hideButton, SIGNAL(clicked()), this, SLOT(hide())); connect(m_closeButton, SIGNAL(clicked()), this, SLOT(close())); connect( @@ -168,6 +180,7 @@ FeatureGUI::~FeatureGUI() delete m_layouts; delete m_statusLabel; delete m_closeButton; + delete m_hideButton; delete m_shrinkButton; delete m_maximizeButton; delete m_moveButton; @@ -178,6 +191,37 @@ FeatureGUI::~FeatureGUI() qDebug("FeatureGUI::~FeatureGUI: end"); } +void FeatureGUI::updateStartStopButton(QAbstractButton *startStopButton) +{ + if (!startStopButton || !m_feature) { + return; + } + + const Feature::FeatureState state = m_feature->getState(); + const bool oldState = startStopButton->blockSignals(true); + startStopButton->setChecked(state == Feature::StRunning); + startStopButton->blockSignals(oldState); + + switch (state) + { + case Feature::StNotStarted: + startStopButton->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); + break; + case Feature::StIdle: + startStopButton->setStyleSheet("QToolButton { background-color : blue; }"); + break; + case Feature::StRunning: + startStopButton->setStyleSheet("QToolButton { background-color : green; }"); + break; + case Feature::StError: + startStopButton->setStyleSheet("QToolButton { background-color : red; }"); + MessageDialog::information(this, tr("Message"), m_feature->getErrorMessage()); + break; + default: + break; + } +} + void FeatureGUI::closeEvent(QCloseEvent *event) { qDebug("FeatureGUI::closeEvent"); @@ -399,6 +443,12 @@ void FeatureGUI::shrinkWindow() void FeatureGUI::setTitle(const QString& title) { m_titleLabel->setText(title); + publishWindowState(); +} + +QString FeatureGUI::getTitle() const +{ + return m_titleLabel->text(); } bool FeatureGUI::isOnMovingPad() diff --git a/sdrgui/feature/featuregui.h b/sdrgui/feature/featuregui.h index ebc72f8ae..e5a0218a8 100644 --- a/sdrgui/feature/featuregui.h +++ b/sdrgui/feature/featuregui.h @@ -25,11 +25,13 @@ #include #include "gui/framelesswindowresizer.h" +#include "gui/workspacewindow.h" #include "gui/rollupcontents.h" #include "settings/serializableinterface.h" #include "export.h" class QCloseEvent; +class QAbstractButton; class MessageQueue; class QLabel; class QPushButton; @@ -38,7 +40,7 @@ class QHBoxLayout; class QSizeGrip; class Feature; -class SDRGUI_API FeatureGUI : public QMdiSubWindow, public SerializableInterface +class SDRGUI_API FeatureGUI : public WorkspaceWindow, public SerializableInterface { Q_OBJECT public: @@ -54,8 +56,8 @@ public: virtual void resetToDefaults() = 0; // Data saved in the derived settings - virtual void setWorkspaceIndex(int index)= 0; - virtual int getWorkspaceIndex() const = 0; + virtual void setWorkspaceIndex(int index) override = 0; + virtual int getWorkspaceIndex() const override = 0; virtual void setGeometryBytes(const QByteArray& blob) = 0; virtual QByteArray getGeometryBytes() const = 0; @@ -65,6 +67,7 @@ public: void sizeToContents(); void setTitleColor(const QColor&) {} // not implemented for a feature void setTitle(const QString& title); + QString getTitle() const override; void setIndex(int index); int getIndex() const { return m_featureIndex; } void setDisplayedame(const QString& name); @@ -79,6 +82,7 @@ protected: void resetContextMenuType() { m_contextMenuType = ContextMenuNone; } int getAdditionalHeight() const { return 22 + 22; } // height of top and bottom bars int gripSize() { return m_resizer.m_gripSize; } // size in pixels of resize grip around the window + void updateStartStopButton(QAbstractButton *startStopButton); Feature *m_feature; int m_featureIndex; @@ -102,6 +106,7 @@ private: QPushButton *m_moveButton; QPushButton *m_shrinkButton; QPushButton *m_maximizeButton; + QPushButton *m_hideButton; QPushButton *m_closeButton; QLabel *m_statusLabel; QVBoxLayout *m_layouts; diff --git a/sdrgui/feature/featureuiset.cpp b/sdrgui/feature/featureuiset.cpp index 9a9514c31..90c7bbb89 100644 --- a/sdrgui/feature/featureuiset.cpp +++ b/sdrgui/feature/featureuiset.cpp @@ -40,6 +40,7 @@ FeatureUISet::~FeatureUISet() void FeatureUISet::registerFeatureInstance(FeatureGUI* featureGUI, Feature *feature) { + featureGUI->setWindowOwner(feature); m_featureInstanceRegistrations.append(FeatureInstanceRegistration(featureGUI, feature)); m_featureSet->addFeatureInstance(feature); QObject::connect( @@ -238,6 +239,11 @@ void FeatureUISet::handleClosingFeatureGUI(FeatureGUI *featureGUI) if (it->m_gui == featureGUI) { Feature *feature = it->m_feature; + // QObject emits destroyed() before it disconnects the object's signal + // connections. The destroyed handler below deletes the feature, whose + // destructor may emit stateChanged() after the derived GUI has deleted + // its ui object. Disconnect feature-to-GUI signals before that can occur. + QObject::disconnect(feature, nullptr, featureGUI, nullptr); m_featureSet->removeFeatureInstance(feature); QObject::connect( featureGUI, diff --git a/sdrgui/gui/glscope.cpp b/sdrgui/gui/glscope.cpp index 8d7316b6e..8137d0aa7 100644 --- a/sdrgui/gui/glscope.cpp +++ b/sdrgui/gui/glscope.cpp @@ -26,6 +26,7 @@ #include #include +#include "dsp/scopevis.h" #include "glscope.h" const GLfloat GLScope::m_q3RadiiConst[] = { @@ -41,6 +42,7 @@ const GLfloat GLScope::m_q3RadiiConst[] = { GLScope::GLScope(QWidget *parent) : QOpenGLWidget(parent), + m_scopeVis(nullptr), m_tracesData(nullptr), m_traces(nullptr), m_projectionTypes(nullptr), @@ -96,6 +98,9 @@ GLScope::GLScope(QWidget *parent) : GLScope::~GLScope() { + if (m_scopeVis) { + m_scopeVis->setGLScope(nullptr); + } } void GLScope::setDisplayGridIntensity(int intensity) diff --git a/sdrgui/gui/glscope.h b/sdrgui/gui/glscope.h index e69eb208c..ba53f03a9 100644 --- a/sdrgui/gui/glscope.h +++ b/sdrgui/gui/glscope.h @@ -55,6 +55,7 @@ public: void connectTimer(const QTimer& timer); void disconnectTimer(); + virtual void setScopeVis(ScopeVis *scopeVis) override { m_scopeVis = scopeVis; } virtual void setTraces(std::vector* tracesData, std::vector* traces); virtual void newTraces(std::vector* traces, int traceIndex, std::vector* projectionTypes); @@ -139,6 +140,7 @@ private: QList m_markers1; QList m_markers2; + ScopeVis *m_scopeVis; //!< The ScopeVis feeding this, to be detached from before this is destroyed std::vector *m_tracesData; std::vector *m_traces; std::vector *m_projectionTypes; diff --git a/sdrgui/gui/glshaderspectrogram.cpp b/sdrgui/gui/glshaderspectrogram.cpp index c1e46f63a..5d95c8f9c 100644 --- a/sdrgui/gui/glshaderspectrogram.cpp +++ b/sdrgui/gui/glshaderspectrogram.cpp @@ -44,12 +44,13 @@ GLShaderSpectrogram::GLShaderSpectrogram() : m_textureId(0), m_colorMapTexture(nullptr), m_colorMapTextureId(0), + m_textureWidth(0), + m_textureHeight(0), m_programForLocs(nullptr), m_coord2dLoc(0), m_textureTransformLoc(0), m_vertexTransformLoc(0), m_dataTextureLoc(0), - m_limitLoc(0), m_brightnessLoc(0), m_colorMapLoc(0), m_lightDirLoc(0), @@ -77,7 +78,10 @@ GLShaderSpectrogram::GLShaderSpectrogram() : m_lightRotX(0.0), m_lightRotY(0.0), m_lightRotZ(0.0), - m_gridElements(0) + m_gridWidthElements(0), + m_gridHeightElements(0), + m_gridLineIndexCount(0), + m_gridTriangleIndexCount(0) { } @@ -152,25 +156,34 @@ void GLShaderSpectrogram::initializeGL(int majorVersion, int minorVersion) } } -void GLShaderSpectrogram::initGrid(int elements) +void GLShaderSpectrogram::initGrid(int width, int height) { - int gridElements = std::min(elements, 4096); // Limit to keep memory requirements realistic - if (gridElements == m_gridElements) { + // There is one vertex per texture sample where possible. The final frequency + // sample is the extra endpoint written by GLSpectrumView, so W samples form + // W-1 cells. Keeping the time vertices aligned with the H texture rows stops + // a stored spectrum being resampled as it advances through the circular texture. + int gridWidthElements = std::max(1, std::min(width - 1, 4096)); + int gridHeightElements = std::max(1, std::min(height - 1, 4096)); + + if ((gridWidthElements == m_gridWidthElements) && (gridHeightElements == m_gridHeightElements)) { return; } - m_gridElements = gridElements; - qDebug() << "GLShaderSpectrogram::initGrid: requested: " << elements << " actual: " << m_gridElements; - int e1 = m_gridElements+1; + + m_gridWidthElements = gridWidthElements; + m_gridHeightElements = gridHeightElements; + qDebug() << "GLShaderSpectrogram::initGrid: requested: " << width - 1 << "x" << height - 1 + << " actual: " << m_gridWidthElements << "x" << m_gridHeightElements; + int verticesPerRow = m_gridWidthElements + 1; // Grid vertices - std::vector vertices(e1 * e1); + std::vector vertices((m_gridWidthElements + 1) * (m_gridHeightElements + 1)); - for (int i = 0; i < e1; i++) + for (int y = 0; y <= m_gridHeightElements; y++) { - for (int j = 0; j < e1; j++) + for (int x = 0; x <= m_gridWidthElements; x++) { - vertices[i*e1+j].setX(j / (float)m_gridElements); - vertices[i*e1+j].setY(i / (float)m_gridElements); + vertices[y * verticesPerRow + x].setX(x / (float)m_gridWidthElements); + vertices[y * verticesPerRow + x].setY(y / (float)m_gridHeightElements); } } @@ -190,46 +203,49 @@ void GLShaderSpectrogram::initGrid(int elements) m_vao->release(); } - std::vector indices(m_gridElements * m_gridElements * 6); - int i; - // Create an array of indices into the vertex array that traces both horizontal and vertical lines - i = 0; - - for (int y = 0; y < e1; y++) { - for (int x = 0; x < m_gridElements; x++) { - indices[i++] = y * (e1) + x; - indices[i++] = y * (e1) + x + 1; + std::vector lineIndices; + lineIndices.reserve( + 2 * (m_gridWidthElements * (m_gridHeightElements + 1) + + m_gridHeightElements * (m_gridWidthElements + 1))); + + for (int y = 0; y <= m_gridHeightElements; y++) { + for (int x = 0; x < m_gridWidthElements; x++) { + lineIndices.push_back(y * verticesPerRow + x); + lineIndices.push_back(y * verticesPerRow + x + 1); } } - for (int x = 0; x < e1; x++) { - for (int y = 0; y < m_gridElements; y++) { - indices[i++] = y * (e1) + x; - indices[i++] = (y + 1) * (e1) + x; + for (int x = 0; x <= m_gridWidthElements; x++) { + for (int y = 0; y < m_gridHeightElements; y++) { + lineIndices.push_back(y * verticesPerRow + x); + lineIndices.push_back((y + 1) * verticesPerRow + x); } } + m_gridLineIndexCount = (int) lineIndices.size(); m_index0Buf->bind(); - m_index0Buf->allocate(&indices[0], m_gridElements * (e1) * 4 * sizeof(GLuint)); + m_index0Buf->allocate(lineIndices.data(), m_gridLineIndexCount * sizeof(GLuint)); // Create an array of indices that describes all the triangles needed to create a completely filled surface - i = 0; - - for (int y = 0; y < m_gridElements; y++) { - for (int x = 0; x < m_gridElements; x++) { - indices[i++] = y * (e1) + x; - indices[i++] = y * (e1) + x + 1; - indices[i++] = (y + 1) * (e1) + x + 1; - - indices[i++] = y * (e1) + x; - indices[i++] = (y + 1) * (e1) + x + 1; - indices[i++] = (y + 1) * (e1) + x; + std::vector triangleIndices; + triangleIndices.reserve(m_gridWidthElements * m_gridHeightElements * 6); + + for (int y = 0; y < m_gridHeightElements; y++) { + for (int x = 0; x < m_gridWidthElements; x++) { + triangleIndices.push_back(y * verticesPerRow + x); + triangleIndices.push_back(y * verticesPerRow + x + 1); + triangleIndices.push_back((y + 1) * verticesPerRow + x + 1); + + triangleIndices.push_back(y * verticesPerRow + x); + triangleIndices.push_back((y + 1) * verticesPerRow + x + 1); + triangleIndices.push_back((y + 1) * verticesPerRow + x); } } + m_gridTriangleIndexCount = (int) triangleIndices.size(); m_index1Buf->bind(); - m_index1Buf->allocate(&indices[0], indices.size() * sizeof(GLuint)); + m_index1Buf->allocate(triangleIndices.data(), m_gridTriangleIndexCount * sizeof(GLuint)); if (!m_vao) { @@ -299,8 +315,9 @@ void GLShaderSpectrogram::initTexture(const QImage& image) } else { initTextureMutable(image); } - initGrid(image.width()); - m_limit = 1.4f*1.0f/(float)image.height(); + m_textureWidth = image.width(); + m_textureHeight = image.height(); + initGrid(m_textureWidth, m_textureHeight); } void GLShaderSpectrogram::initTextureImmutable(const QImage& image) @@ -313,7 +330,8 @@ void GLShaderSpectrogram::initTextureImmutable(const QImage& image) m_texture->setMinificationFilter(QOpenGLTexture::Linear); m_texture->setMagnificationFilter(QOpenGLTexture::Linear); - m_texture->setWrapMode(QOpenGLTexture::Repeat); + m_texture->setWrapMode(QOpenGLTexture::DirectionS, QOpenGLTexture::ClampToEdge); + m_texture->setWrapMode(QOpenGLTexture::DirectionT, QOpenGLTexture::Repeat); } void GLShaderSpectrogram::initTextureMutable(const QImage& image) @@ -331,7 +349,7 @@ void GLShaderSpectrogram::initTextureMutable(const QImage& image) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, QOpenGLTexture::Repeat); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, QOpenGLTexture::ClampToEdge); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, QOpenGLTexture::Repeat); } @@ -369,7 +387,7 @@ void GLShaderSpectrogram::subTextureMutable(int xOffset, int yOffset, int width, glTexSubImage2D(GL_TEXTURE_2D, 0, xOffset, yOffset, width, height, GL_RED, GL_UNSIGNED_BYTE, pixels); } -void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, const QMatrix4x4& vertexTransform, float textureOffset, bool invert) +void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, const QMatrix4x4& vertexTransform, int texturePosition, bool invert) { if ((m_useImmutableStorage && !m_texture) || (!m_useImmutableStorage && !m_textureId)) { @@ -387,11 +405,15 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, return; } - float rot = invert ? 1.0 : -1.0; + float direction = invert ? 1.0f : -1.0f; + float textureScaleX = (m_textureWidth - 1.0f) / m_textureWidth; + float textureScaleY = (m_textureHeight - 1.0f) / m_textureHeight; + float textureOffsetX = 0.5f / m_textureWidth; + float textureOffsetY = (texturePosition + direction * 0.5f) / m_textureHeight; QMatrix4x4 textureTransform( - 1.0, 0.0, 0.0, 0.0, - 0.0, rot, 0.0, textureOffset, - 0.0, 0.0, rot, 0.0, + textureScaleX, 0.0, 0.0, textureOffsetX, + 0.0, direction * textureScaleY, 0.0, textureOffsetY, + 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); // Use this to move texture for each row of data QOpenGLFunctions *f = QOpenGLContext::currentContext()->functions(); @@ -403,7 +425,6 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, m_textureTransformLoc = program->uniformLocation("textureTransform"); m_vertexTransformLoc = program->uniformLocation("vertexTransform"); m_dataTextureLoc = program->uniformLocation("dataTexture"); - m_limitLoc = program->uniformLocation("limit"); m_brightnessLoc = program->uniformLocation("brightness"); m_colorMapLoc = program->uniformLocation("colorMap"); m_lightDirLoc = program->uniformLocation("lightDir"); @@ -432,8 +453,6 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, program->setUniformValue(m_dataTextureLoc, 0); // set uniform to texture unit? program->setUniformValue(m_colorMapLoc, 1); - program->setUniformValue(m_limitLoc, m_limit); - if (style == SpectrumSettings::Outline) { // When drawing the outline, slightly darken the triangles @@ -478,15 +497,15 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, switch (style) { case SpectrumSettings::Points: - f->glDrawElements(GL_POINTS, m_gridElements * m_gridElements * 6, GL_UNSIGNED_INT, 0); + f->glDrawElements(GL_POINTS, m_gridTriangleIndexCount, GL_UNSIGNED_INT, 0); break; case SpectrumSettings::Lines: - f->glDrawElements(GL_LINES, m_gridElements * m_gridElements * 6, GL_UNSIGNED_INT, 0); + f->glDrawElements(GL_LINES, m_gridTriangleIndexCount, GL_UNSIGNED_INT, 0); break; case SpectrumSettings::Solid: case SpectrumSettings::Outline: case SpectrumSettings::Shaded: - f->glDrawElements(GL_TRIANGLES, m_gridElements * m_gridElements * 6, GL_UNSIGNED_INT, 0); + f->glDrawElements(GL_TRIANGLES, m_gridTriangleIndexCount, GL_UNSIGNED_INT, 0); break; } @@ -498,7 +517,7 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style, // Draw the outline program->setUniformValue(m_brightnessLoc, 1.5f); m_index0Buf->bind(); - f->glDrawElements(GL_LINES, m_gridElements * (m_gridElements+1) * 4, GL_UNSIGNED_INT, 0); + f->glDrawElements(GL_LINES, m_gridLineIndexCount, GL_UNSIGNED_INT, 0); } if (m_vao) @@ -731,8 +750,6 @@ void GLShaderSpectrogram::applyPerspective(QMatrix4x4 &matrix) matrix = m_perspective * matrix; } -// The clamp is to prevent old data affecting new data (And vice versa), -// which can happen where the texture repeats - might be a better way to do it const QString GLShaderSpectrogram::m_vertexShader2 = QString( "attribute vec2 coord2d;\n" "varying vec4 coord;\n" @@ -740,10 +757,9 @@ const QString GLShaderSpectrogram::m_vertexShader2 = QString( "uniform mat4 textureTransform;\n" "uniform mat4 vertexTransform;\n" "uniform sampler2D dataTexture;\n" - "uniform highp float limit;\n" "uniform vec3 lightPos;\n" "void main(void) {\n" - " coord = textureTransform * vec4(clamp(coord2d, limit, 1.0-limit), 0, 1);\n" + " coord = textureTransform * vec4(coord2d, 0, 1);\n" " coord.z = (texture2D(dataTexture, coord.xy).r);\n" " gl_Position = vertexTransform * vec4(coord2d, coord.z, 1);\n" " lightDistance = length(lightPos - gl_Position.xyz);\n" @@ -758,10 +774,9 @@ const QString GLShaderSpectrogram::m_vertexShader = QString( "uniform mat4 textureTransform;\n" "uniform mat4 vertexTransform;\n" "uniform sampler2D dataTexture;\n" - "uniform float limit;\n" "uniform vec3 lightPos;\n" "void main(void) {\n" - " coord = textureTransform * vec4(clamp(coord2d, limit, 1.0-limit), 0, 1);\n" + " coord = textureTransform * vec4(coord2d, 0, 1);\n" " coord.z = (texture(dataTexture, coord.xy).r);\n" " gl_Position = vertexTransform * vec4(coord2d, coord.z, 1);\n" " lightDistance = length(lightPos - gl_Position.xyz);\n" diff --git a/sdrgui/gui/glshaderspectrogram.h b/sdrgui/gui/glshaderspectrogram.h index 97ce52034..7cbe03414 100644 --- a/sdrgui/gui/glshaderspectrogram.h +++ b/sdrgui/gui/glshaderspectrogram.h @@ -40,7 +40,7 @@ public: void initColorMapTexture(const QString &colorMapName); void initTexture(const QImage& image); void subTexture(int xOffset, int yOffset, int width, int height, const void *pixels); - void drawSurface(SpectrumSettings::SpectrogramStyle style, const QMatrix4x4& vertexTransform, float textureOffset, bool invert); + void drawSurface(SpectrumSettings::SpectrogramStyle style, const QMatrix4x4& vertexTransform, int texturePosition, bool invert); void cleanup(); void translateX(float distance); void translateY(float distance); @@ -72,7 +72,7 @@ private: void initTextureMutable(const QImage& image); void subTextureMutable(int xOffset, int yOffset, int width, int height, const void *pixels); bool useImmutableStorage(); - void initGrid(int elements); + void initGrid(int width, int height); void setPerspective(); QOpenGLShaderProgram *m_programShaded; @@ -81,14 +81,14 @@ private: unsigned int m_textureId; QOpenGLTexture *m_colorMapTexture; unsigned int m_colorMapTextureId; - float m_limit; + int m_textureWidth; + int m_textureHeight; QOpenGLShaderProgram *m_programForLocs; // Which program the locations are for int m_coord2dLoc; int m_textureTransformLoc; int m_vertexTransformLoc; int m_dataTextureLoc; - int m_limitLoc; int m_brightnessLoc; int m_colorMapLoc; int m_lightDirLoc; @@ -126,7 +126,10 @@ private: float m_lightRotY; float m_lightRotZ; QMatrix4x4 m_perspective; - int m_gridElements; + int m_gridWidthElements; + int m_gridHeightElements; + int m_gridLineIndexCount; + int m_gridTriangleIndexCount; }; diff --git a/sdrgui/gui/glspectrum.cpp b/sdrgui/gui/glspectrum.cpp index d0d17df90..db55771c0 100644 --- a/sdrgui/gui/glspectrum.cpp +++ b/sdrgui/gui/glspectrum.cpp @@ -26,6 +26,7 @@ #include #include +#include "dsp/spectrumvis.h" #include "gui/glspectrum.h" #include "gui/glspectrumview.h" #include "gui/spectrummeasurements.h" @@ -33,6 +34,7 @@ GLSpectrum::GLSpectrum(QWidget *parent) : QWidget(parent) { + m_spectrumVis = nullptr; m_spectrumContainer = new QWidget(); QHBoxLayout *hLayout = new QHBoxLayout(m_spectrumContainer); m_spectrum = new GLSpectrumView(); @@ -58,6 +60,40 @@ GLSpectrum::GLSpectrum(QWidget *parent) : setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); } +GLSpectrum::~GLSpectrum() +{ + if (m_spectrumVis) { + m_spectrumVis->setGLSpectrum(nullptr); + } +} + +void GLSpectrum::setSpectrumVis(SpectrumVis* spectrumVis) +{ + m_spectrumVis = spectrumVis; + m_spectrum->setSpectrumVis(spectrumVis); +} + + +void GLSpectrum::spectrumAutoscale() +{ + QMetaObject::invokeMethod(this, [this]() { emit requestAutoscale(); }, Qt::QueuedConnection); +} + +void GLSpectrum::spectrumClear() +{ + QMetaObject::invokeMethod(m_spectrum, [this]() { m_spectrum->clearSpectrumHistogram(); }, Qt::QueuedConnection); +} + +void GLSpectrum::spectrumResetMeasurements() +{ + QMetaObject::invokeMethod(m_spectrum, [this]() { m_spectrum->resetMeasurements(); }, Qt::QueuedConnection); +} + +void GLSpectrum::spectrumGotoMarker(int markerIndex) +{ + QMetaObject::invokeMethod(this, [this, markerIndex]() { emit requestGotoMarker(markerIndex); }, Qt::QueuedConnection); +} + void GLSpectrum::setMeasurementsVisible(bool visible) { m_measurements->setVisible(visible); diff --git a/sdrgui/gui/glspectrum.h b/sdrgui/gui/glspectrum.h index a01c3dd69..cd425b15e 100644 --- a/sdrgui/gui/glspectrum.h +++ b/sdrgui/gui/glspectrum.h @@ -37,7 +37,22 @@ class SDRGUI_API GLSpectrum : public QWidget, public GLSpectrumInterface { public: GLSpectrum(QWidget *parent = nullptr); + ~GLSpectrum() override; GLSpectrumView *getSpectrumView() const { return m_spectrum; } + // Asked for through the web API, which arrives on an HTTP thread, so each is queued onto the + // GUI thread rather than run where it was asked for + virtual void spectrumAutoscale() override; + virtual void spectrumClear() override; + virtual void spectrumResetMeasurements() override; + virtual void spectrumGotoMarker(int markerIndex) override; + +signals: + //!< The reference level and range live in GLSpectrumGUI, which does the arithmetic + void requestAutoscale(); + //!< Retuning is GLSpectrumGUI's job too, as it holds the annotation markers + void requestGotoMarker(int markerIndex); + +public: SpectrumMeasurements *getMeasurements() const { return m_measurements; } void setMeasurementsVisible(bool visible); void setMeasurementsPosition(SpectrumSettings::MeasurementsPosition position); @@ -83,12 +98,13 @@ public: void removeChannelMarker(ChannelMarker* channelMarker) { m_spectrum->removeChannelMarker(channelMarker); } void setMessageQueueToGUI(MessageQueue* messageQueue) { m_spectrum->setMessageQueueToGUI(messageQueue); } void newSpectrum(const Real* spectrum, int fftSize) { m_spectrum->newSpectrum(spectrum, fftSize); } + bool getSpectrumHistory(const QDateTime& since, int maxRows, const HistoryRowCallback& row) override { return m_spectrum->getSpectrumHistory(since, maxRows, row); } void clearSpectrumHistogram() { m_spectrum->clearSpectrumHistogram(); } Real getWaterfallShare() const { return m_spectrum->getWaterfallShare(); } void setWaterfallShare(Real waterfallShare) { m_spectrum->setWaterfallShare(waterfallShare); } void setFPSPeriodMs(int fpsPeriodMs) { m_spectrum->setFPSPeriodMs(fpsPeriodMs); } void setDisplayedStream(bool sourceOrSink, int streamIndex) { m_spectrum->setDisplayedStream(sourceOrSink, streamIndex); } - void setSpectrumVis(SpectrumVis *spectrumVis) { m_spectrum->setSpectrumVis(spectrumVis); } + void setSpectrumVis(SpectrumVis* spectrumVis); SpectrumVis *getSpectrumVis() { return m_spectrum->getSpectrumVis(); } const QList& getHistogramMarkers() const { return m_spectrum->getHistogramMarkers(); } QList& getHistogramMarkers() { return m_spectrum->getHistogramMarkers(); } @@ -128,6 +144,7 @@ private: QSplitter *m_splitter; GLSpectrumView *m_spectrum; SpectrumMeasurements *m_measurements; + SpectrumVis *m_spectrumVis; //!< The SpectrumVis feeding thisd SpectrumSettings::MeasurementsPosition m_position; QWidget *m_spectrumContainer; QScrollBar *m_scrollBar; diff --git a/sdrgui/gui/glspectrumgui.cpp b/sdrgui/gui/glspectrumgui.cpp index 1c516c1a8..5b61f0c2f 100644 --- a/sdrgui/gui/glspectrumgui.cpp +++ b/sdrgui/gui/glspectrumgui.cpp @@ -135,6 +135,9 @@ void GLSpectrumGUI::setBuddies(SpectrumVis* spectrumVis, GLSpectrum* glSpectrum) { m_spectrumVis = spectrumVis; m_glSpectrum = glSpectrum; + // Asked for through the web API: the arithmetic and the annotation markers live here + connect(m_glSpectrum, &GLSpectrum::requestAutoscale, this, [this]() { on_autoscale_clicked(false); }); + connect(m_glSpectrum, &GLSpectrum::requestGotoMarker, this, [this](int index) { on_gotoMarker_currentIndexChanged(index + 1); }); m_glSpectrum->setSpectrumVis(spectrumVis); m_glSpectrum->setMessageQueueToGUI(&m_messageQueue); m_spectrumVis->setMessageQueueToGUI(&m_messageQueue); @@ -163,7 +166,7 @@ bool GLSpectrumGUI::deserialize(const QByteArray& data) m_glSpectrum->setWaterfallMarkers(m_settings.getWaterfallMarkers()); m_glSpectrum->setFrequencyZooming(m_settings.m_frequencyZoomFactor, m_settings.m_frequencyZoomPos); setAveragingCombo(); - displaySettings(); // ends with blockApplySettings(false) + displaySettings(); // restores the blocked state it found applySettings(); return true; } @@ -192,7 +195,7 @@ void GLSpectrumGUI::updateSettings() void GLSpectrumGUI::displaySettings() { - blockApplySettings(true); + bool blocked = blockApplySettings(true); ui->showControls->setCurrentIndex((int) m_settings.m_showControls); setPowerAndRefRange(); ui->refLevel->setValue(m_settings.m_refLevel + m_calibrationShiftdB); @@ -200,8 +203,12 @@ void GLSpectrumGUI::displaySettings() ui->decay->setSliderPosition(m_settings.m_decay); ui->decayDivisor->setSliderPosition(m_settings.m_decayDivisor); ui->stroke->setSliderPosition(m_settings.m_histogramStroke); + ui->waterfall->blockSignals(true); + ui->spectrogram->blockSignals(true); ui->waterfall->setChecked(m_settings.m_displayWaterfall); ui->spectrogram->setChecked(m_settings.m_display3DSpectrogram); + ui->waterfall->blockSignals(false); + ui->spectrogram->blockSignals(false); ui->spectrogramStyle->setCurrentIndex((int) m_settings.m_3DSpectrogramStyle); ui->spectrogramStyle->setVisible(m_settings.m_display3DSpectrogram && (m_settings.m_showControls == SpectrumSettings::ShowAll)); ui->colorMap->setCurrentText(m_settings.m_colorMap); @@ -285,7 +292,7 @@ void GLSpectrumGUI::displaySettings() ui->linscale->blockSignals(false); ui->mathMode->blockSignals(false); ui->mathAvgCount->blockSignals(false); - blockApplySettings(false); + blockApplySettings(blocked); updateMeasurements(); } @@ -363,9 +370,11 @@ QString GLSpectrumGUI::displayScaled(int64_t value, char type, int precision, bo } } -void GLSpectrumGUI::blockApplySettings(bool block) +bool GLSpectrumGUI::blockApplySettings(bool block) { + bool blocked = !m_doApplySettings; m_doApplySettings = !block; + return blocked; } void GLSpectrumGUI::applySettings() @@ -780,9 +789,9 @@ void GLSpectrumGUI::on_waterfall_toggled(bool checked) m_settings.m_displayWaterfall = checked; if (checked) { - blockApplySettings(true); + bool blocked = blockApplySettings(true); ui->spectrogram->setChecked(false); - blockApplySettings(false); + blockApplySettings(blocked); } applySettings(); } @@ -792,9 +801,9 @@ void GLSpectrumGUI::on_spectrogram_toggled(bool checked) m_settings.m_display3DSpectrogram = checked; if (checked) { - blockApplySettings(true); + bool blocked = blockApplySettings(true); ui->waterfall->setChecked(false); - blockApplySettings(false); + blockApplySettings(blocked); } ui->spectrogramStyle->setVisible(m_settings.m_display3DSpectrogram && (m_settings.m_showControls >= SpectrumSettings::ShowAll)); applySettings(); diff --git a/sdrgui/gui/glspectrumgui.h b/sdrgui/gui/glspectrumgui.h index 960e2f9a8..f198b6b7b 100644 --- a/sdrgui/gui/glspectrumgui.h +++ b/sdrgui/gui/glspectrumgui.h @@ -74,7 +74,7 @@ private: SpectrumMarkersDialog *m_markersDialog; QMenu *m_contextMenu; - void blockApplySettings(bool block); + bool blockApplySettings(bool block); void applySettings(); void applySpectrumSettings(); void setPowerAndRefRange(); diff --git a/sdrgui/gui/glspectrumview.cpp b/sdrgui/gui/glspectrumview.cpp index cdc455a58..4ce7bf2d8 100644 --- a/sdrgui/gui/glspectrumview.cpp +++ b/sdrgui/gui/glspectrumview.cpp @@ -387,13 +387,11 @@ void GLSpectrumView::setSampleRate(qint32 sampleRate) { m_mutex.lock(); m_sampleRate = sampleRate; - - if (m_messageQueueToGUI) { - m_messageQueueToGUI->push(new MsgReportSampleRate(m_sampleRate)); - } - m_changesPending = true; m_mutex.unlock(); + if (m_messageQueueToGUI) { + m_messageQueueToGUI->push(new MsgReportSampleRate(sampleRate)); + } update(); } @@ -417,18 +415,20 @@ void GLSpectrumView::setFFTOverlap(int overlap) void GLSpectrumView::setDisplayWaterfall(bool display) { + bool notify = false; m_mutex.lock(); m_displayWaterfall = display; if (!display) { m_waterfallMarkers.clear(); - if (m_messageQueueToGUI) { - m_messageQueueToGUI->push(new MsgReportWaterfallMarkersChange()); - } + notify = true; } m_changesPending = true; stopDrag(); m_mutex.unlock(); + if (m_messageQueueToGUI && notify) { + m_messageQueueToGUI->push(new MsgReportWaterfallMarkersChange()); + } update(); } @@ -501,52 +501,58 @@ void GLSpectrumView::setInvertedWaterfall(bool inv) void GLSpectrumView::setDisplayMaxHold(bool display) { + bool notify = false; m_mutex.lock(); m_displayMaxHold = display; if (!m_displayMaxHold && !m_displayCurrent && !m_displayHistogram) { m_histogramMarkers.clear(); - if (m_messageQueueToGUI) { - m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); - } + notify = true; } m_changesPending = true; stopDrag(); m_mutex.unlock(); + if (m_messageQueueToGUI && notify) { + m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); + } update(); } void GLSpectrumView::setDisplayCurrent(bool display) { + bool notify = false; m_mutex.lock(); m_displayCurrent = display; if (!m_displayMaxHold && !m_displayCurrent && !m_displayHistogram) { m_histogramMarkers.clear(); - if (m_messageQueueToGUI) { - m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); - } + notify = true; } m_changesPending = true; stopDrag(); m_mutex.unlock(); + if (m_messageQueueToGUI && notify) { + m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); + } update(); } void GLSpectrumView::setDisplayHistogram(bool display) { + bool notify = false; m_mutex.lock(); m_displayHistogram = display; if (!m_displayMaxHold && !m_displayCurrent && !m_displayHistogram) { m_histogramMarkers.clear(); - if (m_messageQueueToGUI) { - m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); - } + notify = true; } m_changesPending = true; stopDrag(); m_mutex.unlock(); + if (m_messageQueueToGUI && notify) { + m_messageQueueToGUI->push(new MsgReportHistogramMarkersChange()); + } update(); } @@ -601,13 +607,11 @@ void GLSpectrumView::setUseCalibration(bool useCalibration) { m_mutex.lock(); m_useCalibration = useCalibration; - + m_changesPending = true; + m_mutex.unlock(); if (m_messageQueueToGUI) { m_messageQueueToGUI->push(new MsgReportCalibrationShift(m_useCalibration ? m_calibrationShiftdB : 0.0)); } - - m_changesPending = true; - m_mutex.unlock(); update(); } @@ -1035,6 +1039,8 @@ void GLSpectrumView::redrawWaterfallAnd3DSpectrogram() void GLSpectrumView::measure(const Real *spectrum, bool updateGUI) { + m_measurementResults.m_measurement = m_measurement; + switch (m_measurement) { case SpectrumSettings::MeasurementPeaks: @@ -1064,6 +1070,14 @@ void GLSpectrumView::measure(const Real *spectrum, bool updateGUI) default: break; } + + // Published from the displayed pass only, so that a caller reading the report sees the same + // figures as the screen rather than a mixture of the zoomed and full span measurements + if (updateGUI && m_spectrumVis) + { + m_measurementResults.m_updated = QDateTime::currentDateTimeUtc(); + m_spectrumVis->setMeasurementResults(m_measurementResults); + } } // newSpectrum can be called at a much faster rate than paintGL for high sample rates @@ -1168,6 +1182,67 @@ void GLSpectrumView::updateSpectrumBuffer(const Real *spectrum, int fftSize, qui m_spectrumBuffer.append(spectrumData); } +// We use the scroll buffer for the Web API's spectrum history +bool GLSpectrumView::getSpectrumHistory(const QDateTime& since, int maxRows, const HistoryRowCallback& row) +{ + QMutexLocker mutexLocker(&m_mutex); + + if (!m_scrollBarEnabled) { + return false; + } + + const int size = (int) m_spectrumBuffer.size(); + int first = size; + + // Back from the newest to the oldest row still wanted + while ((first > 0) && (m_spectrumBuffer[first - 1].m_dateTime >= since)) { + first--; + } + + // Every FFT is a row, hundreds a second, so a period is usually far more rows than asked + // for. Consecutive rows are folded together by maximum rather than skipped, so a burst + // shorter than the fold still shows, and a fold never mixes rows of different tunings + const int candidates = size - first; + const int fold = std::max(1, (candidates + std::max(1, maxRows) - 1) / std::max(1, maxRows)); + std::vector combined; + + for (int i = first; i < size; ) + { + const Spectrum& lead = m_spectrumBuffer[i]; + int end = i + 1; + + while ((end < size) && (end - i < fold) + && (m_spectrumBuffer[end].m_sampleRate == lead.m_sampleRate) + && (m_spectrumBuffer[end].m_centerFrequency == lead.m_centerFrequency)) { + end++; + } + + if (end - i == 1) + { + row(lead.m_spectrum, m_spectrumBufferFFTSize, lead.m_sampleRate, lead.m_centerFrequency, lead.m_dateTime); + } + else + { + combined.assign(lead.m_spectrum, lead.m_spectrum + m_spectrumBufferFFTSize); + + for (int j = i + 1; j < end; j++) + { + const Real *other = m_spectrumBuffer[j].m_spectrum; + + for (int k = 0; k < m_spectrumBufferFFTSize; k++) { + combined[k] = std::max(combined[k], other[k]); + } + } + + row(combined.data(), m_spectrumBufferFFTSize, lead.m_sampleRate, lead.m_centerFrequency, m_spectrumBuffer[end - 1].m_dateTime); + } + + i = end; + } + + return true; +} + void GLSpectrumView::clearWaterfallRow(int nbBins) { if (m_waterfallBufferPos < m_waterfallBuffer->height()) @@ -1497,8 +1572,6 @@ void GLSpectrumView::paintGL() m_3DSpectrogramBufferPos = 0; - float prop_y = m_3DSpectrogramTexturePos / (m_3DSpectrogramTextureHeight - 1.0); - // Temporarily reduce viewport to waterfall area so anything outside is clipped if (window()->windowHandle()) { devicePixelRatio = window()->windowHandle()->devicePixelRatio(); @@ -1506,7 +1579,11 @@ void GLSpectrumView::paintGL() devicePixelRatio = 1.0f; } glFunctions->glViewport(0, m_3DSpectrogramBottom*devicePixelRatio, width()*devicePixelRatio, m_waterfallHeight*devicePixelRatio); - m_glShaderSpectrogram.drawSurface(m_3DSpectrogramStyle, spectrogramGridMatrix, prop_y, m_invertedWaterfall); + m_glShaderSpectrogram.drawSurface( + m_3DSpectrogramStyle, + spectrogramGridMatrix, + m_3DSpectrogramTexturePos, + m_invertedWaterfall); glFunctions->glViewport(0, 0, width()*devicePixelRatio, height()*devicePixelRatio); } else if (m_displayWaterfall) @@ -2719,6 +2796,9 @@ void GLSpectrumView::drawAnnotationMarkers() // Find and display peaks void GLSpectrumView::measurePeaks(const Real *spectrum) { + // Rebuilt each pass rather than added to, so the report never carries stale peaks + m_measurementResults.m_peaks.clear(); + // Copy current spectrum so we can modify it Real *spectrumCopy = new Real[m_nbBins]; std::copy(spectrum, spectrum + m_nbBins, spectrumCopy); @@ -2742,6 +2822,8 @@ void GLSpectrumView::measurePeaks(const Real *spectrum) m_measurements->setPeak(i, frequency, power); } + m_measurementResults.m_peaks.append(SpectrumMeasurementResults::Peak(frequency, power)); + if (m_measurementHighlight) { float x = peakBin / (float)m_nbBins; @@ -2774,6 +2856,8 @@ void GLSpectrumView::measureChannelPower(const Real *spectrum, bool updateGUI) qint64 centerFrequency = getDisplayedCenterFrequency(); power = calcChannelPower(spectrum, centerFrequency + m_measurementCenterFrequencyOffset, m_measurementBandwidth); + m_measurementResults.m_channelPower = power; + if (m_measurements) { m_measurements->setChannelPower(power, updateGUI); } @@ -2795,6 +2879,12 @@ void GLSpectrumView::measureAdjacentChannelPower(const Real *spectrum, bool upda float leftDiff = powerLeft - power; float rightDiff = powerRight - power; + m_measurementResults.m_adjChannelPowerLeft = powerLeft; + m_measurementResults.m_adjChannelPowerLeftACPR = leftDiff; + m_measurementResults.m_adjChannelPowerCentre = power; + m_measurementResults.m_adjChannelPowerRight = powerRight; + m_measurementResults.m_adjChannelPowerRightACPR = rightDiff; + if (m_measurements) { m_measurements->setAdjacentChannelPower(powerLeft, leftDiff, power, powerRight, rightDiff, updateGUI); } @@ -2842,6 +2932,8 @@ void GLSpectrumView::measureOccupiedBandwidth(const Real *spectrum, bool updateG while (((power / totalPower) < 0.99f) && (step < m_nbBins)); float occupiedBandwidth = width * hzPerBin; + m_measurementResults.m_occupiedBandwidth = occupiedBandwidth; + if (m_measurements) { m_measurements->setOccupiedBandwidth(occupiedBandwidth, updateGUI); } @@ -2892,6 +2984,8 @@ void GLSpectrumView::measure3dBBandwidth(const Real *spectrum, bool updateGUI) int centerBin = leftBin + (rightBin - leftBin) / 2; float centerFrequency = binToFrequency(centerBin); + m_measurementResults.m_bandwidth3dB = bandwidth; + if (m_measurements) { m_measurements->set3dBBandwidth(bandwidth, updateGUI); } @@ -3083,6 +3177,12 @@ void GLSpectrumView::measureSNR(const Real *spectrum, bool updateGUI) // Calculate SINAD - Signal to noise and distotion ratio (Should be -THD+N) float sinad = CalcDb::dbPower((sigPower + harmonicPower + noisePower) / (harmonicPower + noisePower)); + m_measurementResults.m_snr = snr; + m_measurementResults.m_snfr = snfr; + m_measurementResults.m_thd = thdDB; + m_measurementResults.m_thdPlusNoise = thdpn; + m_measurementResults.m_sinad = sinad; + m_measurements->setSNR(snr, snfr, thdDB, thdpn, sinad, updateGUI); } } @@ -3117,6 +3217,8 @@ void GLSpectrumView::measureSFDR(const Real *spectrum, bool updateGUI) float nextPeakPowerDB = CalcDb::dbPower(nextPeakPower); float sfdr = peakPowerDB - nextPeakPowerDB; + m_measurementResults.m_sfdr = sfdr; + // Display if (m_measurements) { m_measurements->setSFDR(sfdr, updateGUI); diff --git a/sdrgui/gui/glspectrumview.h b/sdrgui/gui/glspectrumview.h index 66db9b67f..8779de975 100644 --- a/sdrgui/gui/glspectrumview.h +++ b/sdrgui/gui/glspectrumview.h @@ -47,6 +47,7 @@ #include "dsp/spectrummarkers.h" #include "dsp/channelmarker.h" #include "dsp/spectrumsettings.h" +#include "dsp/spectrumvis.h" #include "export.h" #include "util/incrementalarray.h" #include "util/message.h" @@ -228,6 +229,7 @@ public: void setMessageQueueToGUI(MessageQueue* messageQueue) { m_messageQueueToGUI = messageQueue; } virtual void newSpectrum(const Real* spectrum, int fftSize); + virtual bool getSpectrumHistory(const QDateTime& since, int maxRows, const HistoryRowCallback& row) override; void clearSpectrumHistogram(); Real getWaterfallShare() const { return m_waterfallShare; } @@ -468,6 +470,8 @@ private: bool m_isDeviceSpectrum; SpectrumMeasurements *m_measurements; + //!< The same numbers the measurements table shows, kept for the web API report + SpectrumMeasurementResults m_measurementResults; SpectrumSettings::Measurement m_measurement; int m_measurementCenterFrequencyOffset; int m_measurementBandwidth; diff --git a/sdrgui/gui/messagedialog.cpp b/sdrgui/gui/messagedialog.cpp new file mode 100644 index 000000000..7e5978322 --- /dev/null +++ b/sdrgui/gui/messagedialog.cpp @@ -0,0 +1,73 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include + +#include "gui/messagedialog.h" + +void MessageDialog::show(QWidget *parent, QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, std::function onAnswer) +{ + // Avoid creating new box with same text. Raise the existing one instead. + if (parent) + { + const QList existing = parent->findChildren( + QString(), Qt::FindDirectChildrenOnly); + + for (QMessageBox *box : existing) + { + if (box->isVisible() && (box->text() == text) && (box->windowTitle() == title)) + { + box->raise(); + return; + } + } + } + + QMessageBox *box = new QMessageBox(icon, title, text, buttons, parent); + box->setAttribute(Qt::WA_DeleteOnClose); + + if (onAnswer) + { + QObject::connect(box, &QMessageBox::finished, box, [box, onAnswer](int) { + onAnswer(box->standardButton(box->clickedButton())); + }); + } + + // open() rather than exec(): it returns immediately, so nothing left on stack + box->open(); +} + +void MessageDialog::information(QWidget *parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons) +{ + show(parent, QMessageBox::Information, title, text, buttons, nullptr); +} + +void MessageDialog::warning(QWidget *parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons) +{ + show(parent, QMessageBox::Warning, title, text, buttons, nullptr); +} + +void MessageDialog::critical(QWidget *parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons) +{ + show(parent, QMessageBox::Critical, title, text, buttons, nullptr); +} + +void MessageDialog::question(QWidget *parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, std::function onAnswer) +{ + show(parent, QMessageBox::Question, title, text, buttons, onAnswer); +} diff --git a/sdrgui/gui/messagedialog.h b/sdrgui/gui/messagedialog.h new file mode 100644 index 000000000..f02c61254 --- /dev/null +++ b/sdrgui/gui/messagedialog.h @@ -0,0 +1,61 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// Some code by AI // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef SDRGUI_GUI_MESSAGEDIALOG_H +#define SDRGUI_GUI_MESSAGEDIALOG_H + +#include +#include + +#include + +#include "export.h" + +class QWidget; + +// Non-blocking replacements for the QMessageBox static functions, for use in device, +// channel and feature GUIs. +// +// QMessageBox::information() and friends build the message box on the stack, parent it to +// the calling widget and run a nested event loop in exec(). If the parent is closed +// via the Web API while the box is open, the parent deletes the box and its children, +// which corrupts the heap. +// +// The trade-off is that these return immediately, so they cannot report which button was +// pressed. Use question() when the answer is needed; it delivers it to a callback. +class SDRGUI_API MessageDialog +{ +public: + static void information(QWidget *parent, const QString& title, const QString& text, + QMessageBox::StandardButtons buttons = QMessageBox::Ok); + static void warning(QWidget *parent, const QString& title, const QString& text, + QMessageBox::StandardButtons buttons = QMessageBox::Ok); + static void critical(QWidget *parent, const QString& title, const QString& text, + QMessageBox::StandardButtons buttons = QMessageBox::Ok); + + //!< Calls onAnswer with the button pressed. Not called if the box is destroyed unanswered + static void question(QWidget *parent, const QString& title, const QString& text, + QMessageBox::StandardButtons buttons, std::function onAnswer); + +private: + static void show(QWidget *parent, QMessageBox::Icon icon, const QString& title, + const QString& text, QMessageBox::StandardButtons buttons, + std::function onAnswer); +}; + +#endif // SDRGUI_GUI_MESSAGEDIALOG_H diff --git a/sdrgui/gui/workspace.cpp b/sdrgui/gui/workspace.cpp index 066cebd0e..2c890f8fb 100644 --- a/sdrgui/gui/workspace.cpp +++ b/sdrgui/gui/workspace.cpp @@ -135,6 +135,14 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) : m_featurePresetsButton->setFixedSize(20, 20); m_featurePresetsButton->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_P)); + m_mcpServerButton = new QPushButton("AI"); + QFont mcpServerFont = m_mcpServerButton->font(); + mcpServerFont.setBold(true); + m_mcpServerButton->setFont(mcpServerFont); + m_mcpServerButton->setToolTip("MCP Server feature is not open"); + m_mcpServerButton->setFixedSize(20, 20); + m_mcpServerButton->setEnabled(false); + m_vline3 = new QFrame(); m_vline3->setFrameShape(QFrame::VLine); m_vline3->setFrameShadow(QFrame::Sunken); @@ -144,28 +152,24 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) : m_cascadeSubWindows->setIcon(cascadeSubWindowsIcon); m_cascadeSubWindows->setToolTip("Cascade sub windows"); m_cascadeSubWindows->setFixedSize(20, 20); - m_cascadeSubWindows->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_C)); m_tileSubWindows = new QPushButton(); QIcon tileSubWindowsIcon(":/tiles.png"); m_tileSubWindows->setIcon(tileSubWindowsIcon); m_tileSubWindows->setToolTip("Tile sub windows"); m_tileSubWindows->setFixedSize(20, 20); - m_tileSubWindows->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_T)); m_stackVerticalSubWindows = new QPushButton(); QIcon stackVerticalSubWindowsIcon(":/stackvertical.png"); m_stackVerticalSubWindows->setIcon(stackVerticalSubWindowsIcon); m_stackVerticalSubWindows->setToolTip("Stack sub windows vertically"); m_stackVerticalSubWindows->setFixedSize(20, 20); - m_stackVerticalSubWindows->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_V)); m_stackSubWindows = new QPushButton(); QIcon stackSubWindowsIcon(":/stackcolumns.png"); m_stackSubWindows->setIcon(stackSubWindowsIcon); m_stackSubWindows->setToolTip("Stack sub windows in columns. Right click to stack automatically."); m_stackSubWindows->setFixedSize(20, 20); - m_stackSubWindows->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_S)); CRightClickEnabler *stackSubWindowsRightClickEnabler = new CRightClickEnabler(m_stackSubWindows); connect(stackSubWindowsRightClickEnabler, &CRightClickEnabler::rightClick, this, &Workspace::autoStackSubWindows); @@ -175,7 +179,6 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) : m_tabSubWindows->setCheckable(true); m_tabSubWindows->setToolTip("Display sub windows in tabs"); m_tabSubWindows->setFixedSize(20, 20); - m_tabSubWindows->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_B)); m_normalButton = new QPushButton(); QIcon normalIcon(":/dock.png"); @@ -209,6 +212,7 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) : m_titleBarLayout->addWidget(m_stackSubWindows); m_titleBarLayout->addWidget(m_tabSubWindows); m_titleBarLayout->addStretch(1); + m_titleBarLayout->addWidget(m_mcpServerButton); #ifndef ANDROID // Can't undock on Android, as windows don't have title bars to allow them to be moved m_titleBarLayout->addWidget(m_normalButton); @@ -255,6 +259,13 @@ Workspace::Workspace(int index, QWidget *parent, Qt::WindowFlags flags) : &Workspace::featurePresetsDialog ); + QObject::connect( + m_mcpServerButton, + &QPushButton::clicked, + this, + &Workspace::showMCPServer + ); + QObject::connect( m_configurationPresetsButton, &QPushButton::clicked, @@ -361,6 +372,7 @@ Workspace::~Workspace() delete m_addMIMODeviceButton; delete m_addFeatureButton; delete m_featurePresetsButton; + delete m_mcpServerButton; delete m_titleLabel; delete m_titleBarLayout; delete m_titleBar; @@ -899,6 +911,10 @@ void Workspace::tabSubWindows() void Workspace::subWindowActivated(QMdiSubWindow *activatedWindow) { + if (activatedWindow) { + emit focused(this); + } + if (activatedWindow && m_tabSubWindows->isChecked()) { // Move other windows out of the way @@ -950,6 +966,24 @@ void Workspace::updateStartStopButton(bool checked) } } +void Workspace::updateMCPServerButton(bool available, bool running, int port) +{ + m_mcpServerButton->setEnabled(available); + m_mcpServerButton->setStyleSheet(running + ? "QPushButton { background-color : green; }" + : QString()); + + if (!available) { + m_mcpServerButton->setToolTip("MCP Server feature is not open"); + } else if (running && (port > 0)) { + m_mcpServerButton->setToolTip(QString("Show MCP Server (running on port %1)").arg(port)); + } else if (running) { + m_mcpServerButton->setToolTip("Show MCP Server (running)"); + } else { + m_mcpServerButton->setToolTip("Show MCP Server"); + } +} + void Workspace::deviceStateChanged(int, DeviceAPI *deviceAPI) { if (deviceAPI->getWorkspaceIndex() == m_index) @@ -1138,4 +1172,3 @@ void Workspace::adjustSubWindowsAfterRestore() } } } - diff --git a/sdrgui/gui/workspace.h b/sdrgui/gui/workspace.h index d01571832..ff3c90381 100644 --- a/sdrgui/gui/workspace.h +++ b/sdrgui/gui/workspace.h @@ -68,6 +68,7 @@ public: void orderByIndex(QList &list); void adjustSubWindowsAfterRestore(); void updateStartStopButton(bool checked); + void updateMCPServerButton(bool available, bool running, int port); QToolButton *getMenuButton() const { return m_menuButton; } private: @@ -82,6 +83,7 @@ private: QFrame *m_vline2; QPushButton *m_addFeatureButton; QPushButton *m_featurePresetsButton; + QPushButton *m_mcpServerButton; QFrame *m_vline3; QPushButton *m_cascadeSubWindows; QPushButton *m_tileSubWindows; @@ -113,10 +115,6 @@ private slots: void addFeatureDialog(); void featurePresetsDialog(); void configurationPresetsDialog(); - void cascadeSubWindows(); - void tileSubWindows(); - void stackVerticalSubWindows(); - void stackSubWindows(); void autoStackSubWindows(const QPoint&); void tabSubWindows(); void startStopClicked(bool checked = false); @@ -126,13 +124,20 @@ private slots: void subWindowActivated(QMdiSubWindow *window); public slots: void layoutSubWindows(); + // Same as the corresponding title bar buttons, so the Window menu can invoke them + void cascadeSubWindows(); + void tileSubWindows(); + void stackVerticalSubWindows(); + void stackSubWindows(); signals: + void focused(Workspace *workspace); // The user is working in this workspace void addRxDevice(Workspace *inWorkspace, int deviceIndex); void addTxDevice(Workspace *inWorkspace, int deviceIndex); void addMIMODevice(Workspace *inWorkspace, int deviceIndex); void addFeature(Workspace*, int); void featurePresetsDialogRequested(QPoint, Workspace*); + void showMCPServer(); void configurationPresetsDialogRequested(); void startAllDevices(Workspace *inWorkspace); void stopAllDevices(Workspace *inWorkspace); diff --git a/sdrgui/gui/workspacewindow.cpp b/sdrgui/gui/workspacewindow.cpp new file mode 100644 index 000000000..5c46fe476 --- /dev/null +++ b/sdrgui/gui/workspacewindow.cpp @@ -0,0 +1,92 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#include +#include + +#include "maincore.h" +#include "workspace.h" +#include "workspacewindow.h" + +WorkspaceWindow::WorkspaceWindow(QWidget *parent) : + QMdiSubWindow(parent), + m_windowOwner(nullptr) +{ +} + +WorkspaceWindow::~WorkspaceWindow() +{ + if (m_windowOwner) { + MainCore::instance()->removeWindowState(m_windowOwner); + } +} + +void WorkspaceWindow::setWindowOwner(const void *owner) +{ + m_windowOwner = owner; + publishWindowState(); +} + +void WorkspaceWindow::publishWindowState() +{ + if (!m_windowOwner) { + return; + } + + MainCore::WindowState state; + state.m_workspaceIndex = workspaceIndexFromParent(); + state.m_hidden = isHidden(); + state.m_title = getTitle(); + MainCore::instance()->setWindowState(m_windowOwner, state); +} + +// The workspace the window is actually in. Preferred to getWorkspaceIndex(), as channel +// plugins keep that in their settings, where a settings message from the channel, which +// was never told about a move, can overwrite it with the workspace the channel started in +int WorkspaceWindow::workspaceIndexFromParent() const +{ + for (const QWidget *widget = parentWidget(); widget; widget = widget->parentWidget()) + { + const Workspace *workspace = qobject_cast(widget); + + if (workspace) { + return workspace->getIndex(); + } + } + + return getWorkspaceIndex(); +} + +// Spontaneous show and hide events come from the window system, as when the main window is +// minimised, and do not change whether the window itself is hidden +void WorkspaceWindow::showEvent(QShowEvent *event) +{ + QMdiSubWindow::showEvent(event); + + if (!event->spontaneous()) { + publishWindowState(); + } +} + +void WorkspaceWindow::hideEvent(QHideEvent *event) +{ + QMdiSubWindow::hideEvent(event); + + if (!event->spontaneous()) { + publishWindowState(); + } +} diff --git a/sdrgui/gui/workspacewindow.h b/sdrgui/gui/workspacewindow.h new file mode 100644 index 000000000..5bf6f3e2f --- /dev/null +++ b/sdrgui/gui/workspacewindow.h @@ -0,0 +1,57 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Copyright (C) 2026 Jon Beniston, M7RCE // +// // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation as version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License V3 for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program. If not, see . // +/////////////////////////////////////////////////////////////////////////////////// + +#ifndef SDRGUI_GUI_WORKSPACEWINDOW_H_ +#define SDRGUI_GUI_WORKSPACEWINDOW_H_ + +#include + +#include "export.h" + +// A window in a workspace: the device, spectrum, channel and feature windows. What is common +// to them is here, which is mostly telling MainCore where the window is and whether it is +// hidden, so that the Web API, which has no access to the GUI, can answer for it. +class SDRGUI_API WorkspaceWindow : public QMdiSubWindow +{ + Q_OBJECT +public: + explicit WorkspaceWindow(QWidget *parent = nullptr); + virtual ~WorkspaceWindow(); + + virtual int getWorkspaceIndex() const = 0; + virtual void setWorkspaceIndex(int index) = 0; + virtual QString getTitle() const = 0; + + //!< The object the window belongs to (DeviceAPI, SpectrumVis, ChannelAPI or Feature), + //!< which is the key its state is published under. + void setWindowOwner(const void *owner); + //!< Tells MainCore which workspace this window is in, whether it is hidden and what its + //!< title is. Called on every show and hide, which covers a move between workspaces; + //!< call it after anything else that changes one of them, as a retitle or a renumbering + void publishWindowState(); + +protected: + void showEvent(QShowEvent *event) override; + void hideEvent(QHideEvent *event) override; + +private: + int workspaceIndexFromParent() const; + + const void *m_windowOwner; +}; + +#endif // SDRGUI_GUI_WORKSPACEWINDOW_H_ diff --git a/sdrgui/mainspectrum/mainspectrumgui.cpp b/sdrgui/mainspectrum/mainspectrumgui.cpp index 9f7881b0c..0c17b7071 100644 --- a/sdrgui/mainspectrum/mainspectrumgui.cpp +++ b/sdrgui/mainspectrum/mainspectrumgui.cpp @@ -36,7 +36,7 @@ #include "mainspectrumgui.h" MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGUI, QWidget *parent) : - QMdiSubWindow(parent), + WorkspaceWindow(parent), m_spectrum(spectrum), m_spectrumGUI(spectrumGUI), m_deviceType(DeviceRx), @@ -99,7 +99,7 @@ MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGU m_hideButton->setFixedSize(20, 20); QIcon hideIcon(":/hide.png"); m_hideButton->setIcon(hideIcon); - m_hideButton->setToolTip("Hide device"); + m_hideButton->setToolTip("Hide spectrum"); m_statusLabel = new QLabel(); // m_statusLabel->setText("OK"); // for future use @@ -315,6 +315,7 @@ void MainSpectrumGUI::setTitle(const QString& title) { setWindowTitle(title + " Spectrum"); m_titleLabel->setText(title); + publishWindowState(); } QString MainSpectrumGUI::getTitle() const diff --git a/sdrgui/mainspectrum/mainspectrumgui.h b/sdrgui/mainspectrum/mainspectrumgui.h index 2f7391592..ce60b927a 100644 --- a/sdrgui/mainspectrum/mainspectrumgui.h +++ b/sdrgui/mainspectrum/mainspectrumgui.h @@ -25,6 +25,7 @@ #include #include "gui/framelesswindowresizer.h" +#include "gui/workspacewindow.h" #include "export.h" class GLSpectrum; @@ -35,7 +36,7 @@ class QVBoxLayout; class QHBoxLayout; class QSizeGrip; -class SDRGUI_API MainSpectrumGUI : public QMdiSubWindow +class SDRGUI_API MainSpectrumGUI : public WorkspaceWindow { Q_OBJECT public: @@ -52,12 +53,12 @@ public: void setDeviceType(DeviceType type); DeviceType getDeviceType() const { return m_deviceType; } void setTitle(const QString& title); - QString getTitle() const; + QString getTitle() const override; void setToolTip(const QString& tooltip); void setIndex(int index); int getIndex() const { return m_deviceSetIndex; } - void setWorkspaceIndex(int index); - int getWorkspaceIndex() const { return m_workspaceIndex; } + void setWorkspaceIndex(int index) override; + int getWorkspaceIndex() const override { return m_workspaceIndex; } void setGeometryBytes(const QByteArray& blob) { m_geometryBytes = blob; } const QByteArray& getGeometryBytes() const { return m_geometryBytes; } diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index ba0f11213..32f73729b 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -99,6 +100,7 @@ #include "webapi/webapirequestmapper.h" #include "webapi/webapiserver.h" #include "webapi/webapiadapter.h" +#include "SWGFeatureSettings.h" #include "commands/command.h" #include "settings/serializableinterface.h" #ifdef ANDROID @@ -154,6 +156,9 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse m_mainCore->m_mainMessageQueue = &m_inputMessageQueue; m_mainCore->m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager()); + connect(m_mainCore, &MainCore::featureAdded, this, &MainWindow::mcpServerFeatureAdded); + connect(m_mainCore, &MainCore::featureRemoved, this, &MainWindow::mcpServerFeatureRemoved); + QFontDatabase::addApplicationFont(":/LiberationSans-Regular.ttf"); QFontDatabase::addApplicationFont(":/LiberationMono-Regular.ttf"); @@ -278,6 +283,7 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse InitFSM *fsm = new InitFSM(this, splash, !parser.getScratch() && !parser.getRemoteTCPSink(), !parser.getRemoteTCPSink()); connect(fsm, &InitFSM::finished, fsm, &InitFSM::deleteLater); connect(fsm, &InitFSM::finished, splash, &SDRangelSplash::deleteLater); + connect(fsm, &InitFSM::finished, this, &MainWindow::startMCPServer); if (parser.getRemoteTCPSink()) { connect(fsm, &InitFSM::finished, this, &MainWindow::startRemoteTCPSink); } else if (parser.getStart()) { @@ -776,6 +782,9 @@ void RemoveDeviceSetFSM::removeUI() } else { m_deviceUISet->m_deviceAPI->getSampleMIMO()->setMessageQueueToGUI(nullptr); // have sink stop sending messages to the GUI } + // As for features: QObject only drops an object's connections in ~QObject, so a signal can + // still reach the GUI after the derived destructor has deleted its ui object. + QObject::disconnect(m_deviceUISet->m_deviceAPI, nullptr, m_deviceUISet->m_deviceGUI, nullptr); delete m_deviceUISet->m_deviceGUI; m_deviceUISet->m_deviceAPI->resetSamplingDeviceId(); if (!m_deviceMIMOEngine) { @@ -1398,6 +1407,7 @@ void MainWindow::sampleSourceCreateUI( deviceAPI->getSampleSource()->setMessageQueueToGUI(deviceGUI->getInputMessageQueue()); deviceUISet->m_deviceGUI = deviceGUI; + deviceGUI->setWindowOwner(deviceAPI); const PluginInterface::SamplingDevice *samplingDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceIndex); const PluginInterface::SamplingDevice *selectedDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceIndex); // FIXME: Why not use samplingDevice? deviceUISet->m_selectedDeviceId = selectedDevice->id; @@ -1555,6 +1565,7 @@ void MainWindow::sampleSinkCreateUI( deviceAPI->getSampleSink()->setMessageQueueToGUI(deviceGUI->getInputMessageQueue()); deviceUISet->m_deviceGUI = deviceGUI; + deviceGUI->setWindowOwner(deviceAPI); const PluginInterface::SamplingDevice *samplingDevice = DeviceEnumerator::instance()->getTxSamplingDevice(deviceIndex); const PluginInterface::SamplingDevice *selectedDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceIndex); // FIXME: Why getRxSamplingDevice? deviceUISet->m_selectedDeviceId = selectedDevice->id; @@ -1693,6 +1704,7 @@ void MainWindow::sampleMIMOCreateUI( deviceAPI->getSampleMIMO()->setMessageQueueToGUI(deviceGUI->getInputMessageQueue()); deviceUISet->m_deviceGUI = deviceGUI; + deviceGUI->setWindowOwner(deviceAPI); const PluginInterface::SamplingDevice *samplingDevice = DeviceEnumerator::instance()->getMIMOSamplingDevice(deviceIndex); const PluginInterface::SamplingDevice *selectedDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceIndex); // FIXME: Why getRxSamplingDevice? deviceUISet->m_selectedDeviceId = selectedDevice->id; @@ -2027,6 +2039,7 @@ void MainWindow::createMenuBar(QToolButton *button) const QMenu *fileMenu; QMenu *viewMenu; QMenu *workspacesMenu; + QMenu *windowMenu; QMenu *preferencesMenu; QMenu *helpMenu; @@ -2036,6 +2049,7 @@ void MainWindow::createMenuBar(QToolButton *button) const fileMenu = menuBar->addMenu("&File"); viewMenu = menuBar->addMenu("&View"); workspacesMenu = menuBar->addMenu("&Workspaces"); + windowMenu = menuBar->addMenu("Wi&ndow"); preferencesMenu = menuBar->addMenu("&Preferences"); helpMenu = menuBar->addMenu("&Help"); } @@ -2048,6 +2062,8 @@ void MainWindow::createMenuBar(QToolButton *button) const menu->addMenu(viewMenu); workspacesMenu = new QMenu("&Workspaces"); menu->addMenu(workspacesMenu); + windowMenu = new QMenu("Wi&ndow"); + menu->addMenu(windowMenu); preferencesMenu = new QMenu("&Preferences"); menu->addMenu(preferencesMenu); helpMenu = new QMenu("&Help"); @@ -2087,6 +2103,88 @@ void MainWindow::createMenuBar(QToolButton *button) const removeEmptyWorkspacesAction->setToolTip("Remove empty workspaces"); QObject::connect(removeEmptyWorkspacesAction, &QAction::triggered, this, &MainWindow::removeEmptyWorkspaces); + // Filled in each time it is opened, so it always matches what is hidden right now and + // needs no signals from windows being added, hidden or closed + QMenu *showMenu = windowMenu->addMenu("&Show"); + showMenu->setToolTip("Show a device, spectrum, channel or feature window that has been hidden"); + QObject::connect(showMenu, &QMenu::aboutToShow, this, [this, showMenu]() { populateShowMenu(showMenu); }); + + // These do what the workspace title bar buttons do, for the workspace the user last + // worked in. They hold the Ctrl+Shift+C/T/V/S/B shortcuts the buttons used to have: + // every workspace's buttons claimed the same keys, which made them ambiguous as soon + // as there was more than one workspace, so none of them fired. ApplicationShortcut, + // as a workspace that has been undocked is a window of its own. A QShortcut rather than + // QAction::setShortcut, which would print the key alongside the item. Only the real menu + // bar takes them: on Android these menus are built once per workspace, and duplicates of + // an application shortcut are ambiguous in just the same way + auto arrangeShortcut = [this, button](QAction *action, Qt::Key key) + { + if (!button) + { + auto *shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | key), menuBar()); + shortcut->setContext(Qt::ApplicationShortcut); + QObject::connect(shortcut, &QShortcut::activated, action, &QAction::trigger); + } + }; + + windowMenu->addSeparator(); + + QAction *cascadeAction = windowMenu->addAction("&Cascade"); + cascadeAction->setToolTip("Cascade sub windows"); + arrangeShortcut(cascadeAction, Qt::Key_C); + QObject::connect(cascadeAction, &QAction::triggered, this, [this]() { + if (Workspace *workspace = currentWorkspace()) { workspace->cascadeSubWindows(); } + }); + + QAction *tileAction = windowMenu->addAction("&Tile"); + tileAction->setToolTip("Tile sub windows"); + arrangeShortcut(tileAction, Qt::Key_T); + QObject::connect(tileAction, &QAction::triggered, this, [this]() { + if (Workspace *workspace = currentWorkspace()) { workspace->tileSubWindows(); } + }); + + QAction *stackVerticalAction = windowMenu->addAction("Stack &vertically"); + stackVerticalAction->setToolTip("Stack sub windows vertically"); + arrangeShortcut(stackVerticalAction, Qt::Key_V); + QObject::connect(stackVerticalAction, &QAction::triggered, this, [this]() { + if (Workspace *workspace = currentWorkspace()) { workspace->stackVerticalSubWindows(); } + }); + + QAction *stackColumnsAction = windowMenu->addAction("Stack in c&olumns"); + stackColumnsAction->setToolTip("Stack sub windows in columns"); + arrangeShortcut(stackColumnsAction, Qt::Key_S); + QObject::connect(stackColumnsAction, &QAction::triggered, this, [this]() { + if (Workspace *workspace = currentWorkspace()) { workspace->stackSubWindows(); } + }); + + QAction *tabsAction = windowMenu->addAction("Ta&bs"); + tabsAction->setToolTip("Display sub windows in tabs"); + arrangeShortcut(tabsAction, Qt::Key_B); + tabsAction->setCheckable(true); + QObject::connect(tabsAction, &QAction::triggered, this, [this, tabsAction]() { + // Toggle what the workspace has, not what the tick says: the shortcut can be used + // without the menu ever being opened to sync it + Workspace *workspace = currentWorkspace(); + + if (workspace) { + workspace->setTabSubWindowsOption(!workspace->getTabSubWindowsOption()); + } + + tabsAction->setChecked(workspace && workspace->getTabSubWindowsOption()); + }); + + // Tabs is per workspace, so its tick has to follow whichever workspace the items act on + QList arrangeActions = {cascadeAction, tileAction, stackVerticalAction, stackColumnsAction, tabsAction}; + QObject::connect(windowMenu, &QMenu::aboutToShow, this, [this, arrangeActions, tabsAction]() { + Workspace *workspace = currentWorkspace(); + + for (QAction *action : arrangeActions) { + action->setEnabled(workspace != nullptr); + } + + tabsAction->setChecked(workspace && workspace->getTabSubWindowsOption()); + }); + QAction *configurationsAction = preferencesMenu->addAction("&Configurations..."); configurationsAction->setToolTip("Manage configurations"); QObject::connect(configurationsAction, &QAction::triggered, this, &MainWindow::on_action_Configurations_triggered); @@ -2401,6 +2499,104 @@ bool MainWindow::handleMessage(const Message& cmd) return true; } + else if (MainCore::MsgSetWindowHidden::match(cmd)) + { + auto& notif = (const MainCore::MsgSetWindowHidden&) cmd; + QMdiSubWindow *window = nullptr; + int workspaceIndex = -1; + const int deviceSetIndex = notif.getDeviceSetIndex(); + const bool haveDeviceSet = (deviceSetIndex >= 0) && (deviceSetIndex < (int) m_deviceUIs.size()); + + switch (notif.getKind()) + { + case MainCore::MsgSetWindowHidden::Device: + if (haveDeviceSet && m_deviceUIs[deviceSetIndex]->m_deviceGUI) + { + window = m_deviceUIs[deviceSetIndex]->m_deviceGUI; + workspaceIndex = m_deviceUIs[deviceSetIndex]->m_deviceGUI->getWorkspaceIndex(); + } + break; + case MainCore::MsgSetWindowHidden::Spectrum: + if (haveDeviceSet && m_deviceUIs[deviceSetIndex]->m_mainSpectrumGUI) + { + window = m_deviceUIs[deviceSetIndex]->m_mainSpectrumGUI; + workspaceIndex = m_deviceUIs[deviceSetIndex]->m_mainSpectrumGUI->getWorkspaceIndex(); + } + break; + case MainCore::MsgSetWindowHidden::Channel: + if (haveDeviceSet && (notif.getIndex() >= 0) && (notif.getIndex() < m_deviceUIs[deviceSetIndex]->getNumberOfChannels())) + { + ChannelGUI *gui = m_deviceUIs[deviceSetIndex]->getChannelGUIAt(notif.getIndex()); + window = gui; + workspaceIndex = gui ? gui->getWorkspaceIndex() : -1; + } + break; + case MainCore::MsgSetWindowHidden::Feature: + if (!m_featureUIs.empty() && (notif.getIndex() >= 0) && (notif.getIndex() < m_featureUIs[0]->getNumberOfFeatures())) + { + FeatureGUI *gui = m_featureUIs[0]->getFeatureGuiAt(notif.getIndex()); + window = gui; + workspaceIndex = gui ? gui->getWorkspaceIndex() : -1; + } + break; + } + + if (!window) { + qWarning("MainWindow::handleMessages: MsgSetWindowHidden: no such window"); + } else if (notif.getHidden()) { + window->hide(); + } else { + showWindow(window, workspaceIndex); + } + + return true; + } + else if (MainCore::MsgArrangeWorkspace::match(cmd)) + { + auto& notif = (const MainCore::MsgArrangeWorkspace&) cmd; + int workspaceIndex = notif.getWorkspaceIndex(); + + if ((workspaceIndex >= 0) && (workspaceIndex < (int) m_workspaces.size())) + { + Workspace *workspace = m_workspaces[workspaceIndex]; + + // The same as the title bar buttons: each one-shot arrangement turns auto stacking + // and tabs off, and either mode turns the other off + switch (notif.getArrangement()) + { + case MainCore::MsgArrangeWorkspace::Cascade: + workspace->setTabSubWindowsOption(false); + workspace->cascadeSubWindows(); + break; + case MainCore::MsgArrangeWorkspace::Tile: + workspace->setTabSubWindowsOption(false); + workspace->tileSubWindows(); + break; + case MainCore::MsgArrangeWorkspace::StackVertical: + workspace->setTabSubWindowsOption(false); + workspace->stackVerticalSubWindows(); + break; + case MainCore::MsgArrangeWorkspace::Stack: + workspace->setTabSubWindowsOption(false); + workspace->stackSubWindows(); + break; + case MainCore::MsgArrangeWorkspace::AutoStack: + workspace->setTabSubWindowsOption(false); + workspace->setAutoStackOption(true); + workspace->layoutSubWindows(); + break; + case MainCore::MsgArrangeWorkspace::Tab: + workspace->setTabSubWindowsOption(true); + break; + } + } + else + { + qWarning("MainWindow::handleMessages: MsgArrangeWorkspace: no workspace with index %d", workspaceIndex); + } + + return true; + } else if (MainCore::MsgMoveMainSpectrumUIToWorkspace::match(cmd)) { auto& notif = (const MainCore::MsgMoveMainSpectrumUIToWorkspace&) cmd; @@ -2492,6 +2688,13 @@ void MainWindow::addWorkspace() m_workspaces.back()->addAvailableFeatures(featureNames); this->addDockWidget(Qt::LeftDockWidgetArea, m_workspaces.back()); + QObject::connect( + m_workspaces.back(), + &Workspace::focused, + this, + [this](Workspace *inWorkspace) { m_currentWorkspace = inWorkspace; } + ); + QObject::connect( m_workspaces.back(), &Workspace::addRxDevice, @@ -2527,6 +2730,13 @@ void MainWindow::addWorkspace() &MainWindow::openFeaturePresetsDialog ); + QObject::connect( + m_workspaces.back(), + &Workspace::showMCPServer, + this, + &MainWindow::showMCPServer + ); + QObject::connect( m_workspaces.back(), &Workspace::configurationPresetsDialogRequested, @@ -2557,8 +2767,190 @@ void MainWindow::addWorkspace() m_workspaces.back()->show(); m_workspaces.back()->raise(); } + + updateMCPServerButton(); } +namespace { + +// R0, T1, M2... the prefix the rest of the application uses for a device set. The three GUI +// classes each declare their own DeviceType enum, but all order them Rx, Tx, MIMO. +QString deviceSetTag(int deviceType, int deviceSetIndex) +{ + static const char *const prefixes[] = {"R", "T", "M"}; + return QString("%1%2").arg(prefixes[qBound(0, deviceType, 2)]).arg(deviceSetIndex); +} + +} // namespace + +void MainWindow::populateShowMenu(QMenu *menu) const +{ + menu->clear(); + + // isHidden(), not isVisible(): a window sitting on a hidden workspace is not visible but + // was never hidden itself, and listing it here would be wrong + auto addEntry = [this, menu](const QString& label, QMdiSubWindow *window, int workspaceIndex) + { + QAction *action = menu->addAction(label); + QPointer guard(window); // these are WA_DeleteOnClose + QObject::connect(action, &QAction::triggered, this, [this, guard, workspaceIndex]() + { + if (guard) { + showWindow(guard, workspaceIndex); + } + }); + }; + + int hidden = 0; + + for (const auto& section : {QString("Devices"), QString("Spectrums"), QString("Channels"), QString("Features")}) + { + int before = hidden; + + if (section == "Devices") + { + for (const auto& deviceUISet : m_deviceUIs) + { + DeviceGUI *gui = deviceUISet->m_deviceGUI; + + if (gui && gui->isHidden()) + { + if (hidden++ == before) { menu->addSection(section); } + addEntry(QString("%1 %2").arg(deviceSetTag(gui->getDeviceType(), gui->getIndex())).arg(gui->getTitle()), + gui, gui->getWorkspaceIndex()); + } + } + } + else if (section == "Spectrums") + { + for (const auto& deviceUISet : m_deviceUIs) + { + MainSpectrumGUI *gui = deviceUISet->m_mainSpectrumGUI; + + if (gui && gui->isHidden()) + { + if (hidden++ == before) { menu->addSection(section); } + addEntry(QString("%1 Spectrum").arg(deviceSetTag(gui->getDeviceType(), gui->getIndex())), + gui, gui->getWorkspaceIndex()); + } + } + } + else if (section == "Channels") + { + for (const auto& deviceUISet : m_deviceUIs) + { + for (int i = 0; i < deviceUISet->getNumberOfChannels(); i++) + { + ChannelGUI *gui = deviceUISet->getChannelGUIAt(i); + + if (gui && gui->isHidden()) + { + if (hidden++ == before) { menu->addSection(section); } + addEntry(QString("%1:%2 %3") + .arg(deviceSetTag((int) gui->getDeviceType(), gui->getDeviceSetIndex())) + .arg(gui->getIndex()).arg(gui->getTitle()), + gui, gui->getWorkspaceIndex()); + } + } + } + } + else + { + for (const auto& featureUISet : m_featureUIs) + { + for (int i = 0; i < featureUISet->getNumberOfFeatures(); i++) + { + FeatureGUI *gui = featureUISet->getFeatureGuiAt(i); + + if (gui && gui->isHidden()) + { + if (hidden++ == before) { menu->addSection(section); } + addEntry(QString("F%1 %2").arg(gui->getIndex()).arg(gui->getTitle()), + gui, gui->getWorkspaceIndex()); + } + } + } + } + } + + if (hidden == 0) + { + QAction *none = menu->addAction("(nothing is hidden)"); + none->setEnabled(false); + } + else + { + menu->addSeparator(); + QAction *all = menu->addAction("Show &all"); + all->setToolTip("Show every hidden window"); + QObject::connect(all, &QAction::triggered, this, &MainWindow::showAllHiddenWindows); + } +} + +Workspace *MainWindow::currentWorkspace() const +{ + // contains(), not a null check: the workspace may have been removed since it was + // recorded, which leaves m_currentWorkspace dangling + if (m_workspaces.contains(m_currentWorkspace) && !m_currentWorkspace->isHidden()) { + return m_currentWorkspace; + } + + for (const auto& workspace : m_workspaces) + { + if (!workspace->isHidden()) { + return workspace; + } + } + + return nullptr; +} + +void MainWindow::showWindow(QMdiSubWindow *window, int workspaceIndex) const +{ + // Showing the window is not enough on its own if the workspace holding it is hidden + if ((workspaceIndex >= 0) && (workspaceIndex < m_workspaces.size()) && m_workspaces[workspaceIndex]->isHidden()) { + m_workspaces[workspaceIndex]->show(); + } + + window->show(); + window->raise(); +} + +void MainWindow::showAllHiddenWindows() const +{ + for (const auto& deviceUISet : m_deviceUIs) + { + if (deviceUISet->m_deviceGUI && deviceUISet->m_deviceGUI->isHidden()) { + showWindow(deviceUISet->m_deviceGUI, deviceUISet->m_deviceGUI->getWorkspaceIndex()); + } + + if (deviceUISet->m_mainSpectrumGUI && deviceUISet->m_mainSpectrumGUI->isHidden()) { + showWindow(deviceUISet->m_mainSpectrumGUI, deviceUISet->m_mainSpectrumGUI->getWorkspaceIndex()); + } + + for (int i = 0; i < deviceUISet->getNumberOfChannels(); i++) + { + ChannelGUI *gui = deviceUISet->getChannelGUIAt(i); + + if (gui && gui->isHidden()) { + showWindow(gui, gui->getWorkspaceIndex()); + } + } + } + + for (const auto& featureUISet : m_featureUIs) + { + for (int i = 0; i < featureUISet->getNumberOfFeatures(); i++) + { + FeatureGUI *gui = featureUISet->getFeatureGuiAt(i); + + if (gui && gui->isHidden()) { + showWindow(gui, gui->getWorkspaceIndex()); + } + } + } +} + void MainWindow::viewAllWorkspaces() const { for (const auto& workspace : m_workspaces) @@ -2595,20 +2987,12 @@ void MainWindow::removeEmptyWorkspaces() for (auto& subWindow : subWindows) { - if (qobject_cast(subWindow)) { - qobject_cast(subWindow)->setWorkspaceIndex(i); - } - - if (qobject_cast(subWindow)) { - qobject_cast(subWindow)->setWorkspaceIndex(i); - } - - if (qobject_cast(subWindow)) { - qobject_cast(subWindow)->setWorkspaceIndex(i); - } + WorkspaceWindow *window = qobject_cast(subWindow); - if (qobject_cast(subWindow)) { - qobject_cast(subWindow)->setWorkspaceIndex(i); + if (window) + { + window->setWorkspaceIndex(i); + window->publishWindowState(); } } } @@ -3456,6 +3840,165 @@ void MainWindow::startRemoteTCPSink() RemoteTCPSinkStarter::start(m_parser); } +void MainWindow::startMCPServer() +{ + static const QString mcpServerURI = QStringLiteral("sdrangel.feature.mcpserver"); + int featureSetIndex = -1; + int featureIndex = -1; + Feature *mcpServer = FeatureWebAPIUtils::getFeature(featureSetIndex, featureIndex, mcpServerURI); + + if (!mcpServer) + { + PluginAPI::FeatureRegistrations *featureRegistrations = m_pluginManager->getFeatureRegistrations(); + int registrationIndex = -1; + + for (int i = 0; i < featureRegistrations->size(); i++) + { + if ((*featureRegistrations)[i].m_featureIdURI == mcpServerURI) + { + registrationIndex = i; + break; + } + } + + if (registrationIndex < 0) + { + qWarning("MainWindow::startMCPServer: MCPServer plugin is not available"); + return; + } + + if (m_workspaces.empty()) + { + qWarning("MainWindow::startMCPServer: no workspace is available for the MCPServer feature"); + return; + } + + featureAddClicked(m_workspaces[0], registrationIndex); + featureSetIndex = -1; + featureIndex = -1; + mcpServer = FeatureWebAPIUtils::getFeature(featureSetIndex, featureIndex, mcpServerURI); + + if (!mcpServer) + { + qWarning("MainWindow::startMCPServer: failed to create the MCPServer feature"); + return; + } + } + + if (!FeatureWebAPIUtils::run(featureSetIndex, featureIndex)) { + qWarning("MainWindow::startMCPServer: failed to start the MCPServer feature"); + } else if (mcpServer->getState() == Feature::StRunning) { + FeatureGUI *gui = getMCPServerGUI(); + + if (gui) { + gui->hide(); + } + } +} + +FeatureGUI *MainWindow::getMCPServerGUI(Feature **feature) const +{ + for (FeatureUISet *featureUISet : m_featureUIs) + { + for (int i = 0; i < featureUISet->getNumberOfFeatures(); i++) + { + Feature *candidate = featureUISet->getFeatureAt(i); + + if (isMCPServerFeature(candidate)) + { + if (feature) { + *feature = candidate; + } + + return featureUISet->getFeatureGuiAt(i); + } + } + } + + if (feature) { + *feature = nullptr; + } + + return nullptr; +} + +void MainWindow::updateMCPServerButton() +{ + Feature *feature = nullptr; + FeatureGUI *gui = getMCPServerGUI(&feature); + bool available = gui != nullptr; + bool running = feature && (feature->getState() == Feature::StRunning); + int port = -1; + + if (running) + { + SWGSDRangel::SWGFeatureSettings response; + QString errorMessage; + + if ((feature->webapiSettingsGet(response, errorMessage) / 100 == 2) + && response.getMcpServerSettings()) + { + port = response.getMcpServerSettings()->getPort(); + } + } + + for (Workspace *workspace : m_workspaces) { + workspace->updateMCPServerButton(available, running, port); + } +} + +void MainWindow::showMCPServer() +{ + FeatureGUI *gui = getMCPServerGUI(); + + if (!gui) { + return; + } + + int workspaceIndex = gui->getWorkspaceIndex(); + + if ((workspaceIndex >= 0) && (workspaceIndex < m_workspaces.size())) + { + m_workspaces[workspaceIndex]->show(); + m_workspaces[workspaceIndex]->raise(); + } + + gui->show(); + gui->raise(); + gui->setFocus(Qt::OtherFocusReason); +} + +void MainWindow::mcpServerFeatureAdded(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + + if (!isMCPServerFeature(feature)) { + return; + } + + connect(feature, &Feature::stateChanged, this, &MainWindow::updateMCPServerButton, Qt::UniqueConnection); + connect(feature, &QObject::destroyed, this, [this]() { + QTimer::singleShot(0, this, &MainWindow::updateMCPServerButton); + }); + updateMCPServerButton(); +} + +void MainWindow::mcpServerFeatureRemoved(int featureSetIndex, Feature *feature) +{ + (void) featureSetIndex; + + if (isMCPServerFeature(feature)) + { + disconnect(feature, &Feature::stateChanged, this, &MainWindow::updateMCPServerButton); + QTimer::singleShot(0, this, &MainWindow::updateMCPServerButton); + } +} + +bool MainWindow::isMCPServerFeature(const Feature* feature) +{ + return feature && (feature->getURI() == QStringLiteral("sdrangel.feature.mcpserver")); +} + void MainWindow::startAllAfterDelay() { // Wait a little bit before starting all devices and features, diff --git a/sdrgui/mainwindow.h b/sdrgui/mainwindow.h index 02c2bd94e..4780654b1 100644 --- a/sdrgui/mainwindow.h +++ b/sdrgui/mainwindow.h @@ -59,6 +59,7 @@ class ChannelMarker; class PluginManager; class DeviceAPI; class DeviceUISet; +class Feature; class FeatureUISet; class PluginInterface; class QWidget; @@ -75,6 +76,8 @@ class SerializableInterface; class SDRangelSplash; class QMenuBar; +class QMenu; +class QMdiSubWindow; class Workspace; class MainWindow; @@ -358,6 +361,8 @@ private: void saveDeviceSetPresetSettings(Preset* preset, int deviceSetIndex); void loadFeatureSetPresetSettings(const FeatureSetPreset* preset, int featureSetIndex, Workspace *workspace); void saveFeatureSetPresetSettings(FeatureSetPreset* preset, int featureSetIndex); + FeatureGUI *getMCPServerGUI(Feature **feature = nullptr) const; + void updateMCPServerButton(); QString openGLVersion() const; void createMenuBar(QToolButton *button) const; @@ -453,6 +458,13 @@ private slots: void viewAllWorkspaces() const; void removeEmptyWorkspaces(); void openConfigurationDialog(bool openOnly); + //!< Rebuilds the Window > Show submenu from the windows that are currently hidden + void populateShowMenu(QMenu *menu) const; + //!< Brings one hidden window back, along with its workspace if that is hidden too + void showWindow(QMdiSubWindow *window, int workspaceIndex) const; + void showAllHiddenWindows() const; + //!< Workspace the Window menu's arrangement items act on: the one last worked in + Workspace *currentWorkspace() const; void loadDefaultConfigurations() const; void loadConfiguration(const Configuration *configuration, bool fromDialog = false); void saveConfiguration(Configuration *configuration); @@ -465,6 +477,11 @@ private slots: void featureMove(FeatureGUI *gui, int wsIndexDestnation); void deviceStateChanged(DeviceAPI *deviceAPI); void openFeaturePresetsDialog(QPoint p, Workspace *workspace); + void startMCPServer(); + void showMCPServer(); + void mcpServerFeatureAdded(int featureSetIndex, Feature *feature); + void mcpServerFeatureRemoved(int featureSetIndex, Feature *feature); + static bool isMCPServerFeature(const Feature* feature); void startRemoteTCPSink(); void startAllAfterDelay(); void startAll(); diff --git a/swagger/sdrangel/api/swagger/include/ADSBDemod.yaml b/swagger/sdrangel/api/swagger/include/ADSBDemod.yaml index 2cb830b88..ebc9a545f 100644 --- a/swagger/sdrangel/api/swagger/include/ADSBDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/ADSBDemod.yaml @@ -12,16 +12,14 @@ ADSBDemodSettings: correlationThreshold: type: number format: float + description: "Minimum correlation score required to accept a frame preamble." samplesPerBit: type: integer - correlateFullPreamble: - type: integer - description: > - Correlate on part or full preamble - * 0 - part - * 1 - full + description: "Number of input samples used to represent each bit." demodModeS: type: integer + minimum: 0 + maximum: 1 description: > Demodulate all mode S frames or just ADS-B * 0 - just ADS-B @@ -35,10 +33,16 @@ ADSBDemodSettings: description: Number of taps per phase in channel interpolator removeTimeout: type: integer + description: "Seconds without a frame after which an aircraft is removed from the display." feedEnabled: type: integer + description: "Enable forwarding of received data to the configured feed (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 exportClientEnabled: type: integer + minimum: 0 + maximum: 1 description: > Send data to server * 0 - Do not send data @@ -48,20 +52,35 @@ ADSBDemodSettings: type: string exportClientPort: type: integer + description: "Export client port." + minimum: 1 + maximum: 65535 exportClientFormat: type: integer + minimum: 0 + maximum: 1 description: > Format of sent data * 0 - Beast binary * 1 - Beast hex exportServerEnabled: type: integer + description: "Enable the data-export server (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 exportServerPort: type: integer + description: "Export server port." + minimum: 1 + maximum: 65535 importEnabled: type: integer + description: "Enable importing data from the configured service (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 importHost: type: string + description: "Import host setting for ADS-B demod." importUsername: type: string description: OpenSky OAuth2 client ID. @@ -70,43 +89,65 @@ ADSBDemodSettings: description: OpenSky OAuth2 client secret. importParameters: type: string + description: "Import parameters setting for ADS-B demod." importPeriod: type: number format: float + description: "How often to import aircraft from the configured web service, in seconds." importMinLatitude: type: string + description: "Import min latitude setting for ADS-B demod." importMaxLatitude: type: string + description: "Import max latitude setting for ADS-B demod." importMinLongitude: type: string + description: "Import min longitude setting for ADS-B demod." importMaxLongitude: type: string + description: "Import max longitude setting for ADS-B demod." logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ADSBDemodReport: description: ADSBDemod @@ -117,19 +158,25 @@ ADSBDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." targetName: type: string + description: "Name of the selected or tracked target." targetAzimuth: type: number format: float + description: "Target azimuth in degrees clockwise from north." targetElevation: type: number format: float + description: "Target elevation in degrees above the horizon." targetRange: type: number format: float + description: "Distance to the selected or tracked target." aircraftState: type: array + description: "Current states of aircraft tracked by the ADS-B demodulator." items: $ref: "http://swgserver:8081/api/swagger/include/ADSBDemod.yaml#/ADSBDemodAircraftState" @@ -145,10 +192,14 @@ ADSBDemodAircraftState: description: "Latitude of aircraft in degrees" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude of aircraft in degrees" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude of aircraft in feet" type: integer diff --git a/swagger/sdrangel/api/swagger/include/AFC.yaml b/swagger/sdrangel/api/swagger/include/AFC.yaml index 880ee9d1f..d3108479d 100644 --- a/swagger/sdrangel/api/swagger/include/AFC.yaml +++ b/swagger/sdrangel/api/swagger/include/AFC.yaml @@ -3,8 +3,10 @@ AFCSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." trackerDeviceSetIndex: description: index of the device set of frequency tracker being used type: integer @@ -13,22 +15,26 @@ AFCSettings: type: integer hasTargetFrequency: type: integer + minimum: 0 + maximum: 1 description: > Adjust device frequency to match tracker frequency * 0 - disabled * 1 - enabled transverterTarget: type: integer + minimum: 0 + maximum: 1 description: > Use transverter or device frequency for tracker frequency adjustment * 0 - device * 1 - transverter targetFrequency: - description: Target frequency for the tracker + description: "Frequency the tracker should settle on, in Hz." type: integer format: int64 freqTolerance: - description: Frequency shift tolerance before tracker frequency is (re)adjusted + description: "Frequency error in Hz that is tolerated before the tracker frequency is adjusted again." type: integer trackerAdjustPeriod: description: Tracker channel frequency adjustment period in seconds @@ -36,22 +42,33 @@ AFCSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AFCReport: description: "AFC report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -62,11 +79,11 @@ AFCReport: description: Tracker index in device set type: integer trackerDeviceFrequency: - description: Center frequency of tracker device + description: "Centre frequency of the tracking device, in Hz." type: integer format: int64 trackerChannelOffset: - description: Tracker channel offset from device center frequency + description: "Tracker channel offset from the device centre frequency, in Hz." type: integer AFCActions: @@ -74,18 +91,24 @@ AFCActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle * 1 - run deviceTrack: type: integer + minimum: 0 + maximum: 1 description: > (Re)initialize tracker target frequency adjustment * 0 - release * 1 - engage devicesApply: type: integer + minimum: 0 + maximum: 1 description: > (Re)initialize device sets tracking * 0 - release diff --git a/swagger/sdrangel/api/swagger/include/AIS.yaml b/swagger/sdrangel/api/swagger/include/AIS.yaml index e13f721f8..4be1e8178 100644 --- a/swagger/sdrangel/api/swagger/include/AIS.yaml +++ b/swagger/sdrangel/api/swagger/include/AIS.yaml @@ -3,26 +3,123 @@ AISSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." vesselColumnIndexes: type: array + description: "List of vessel column indexes." items: type: integer vesselColumnSizes: type: array + description: "List of vessel column sizes." items: type: integer + +AISReport: + description: > + Vessels heard by the AIS feature, which collects the decoded messages of every AIS + demodulator in the instance. A field is present only once a message carrying it has been + received, so an absent position means unknown rather than zero. + properties: + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + vesselCount: + type: integer + description: "Number of vessels currently held." + vessels: + type: array + description: "The vessels heard." + items: + $ref: "http://swgserver:8081/api/swagger/include/AIS.yaml#/AISVessel" + +AISVessel: + description: Vessel heard by the AIS feature + properties: + mmsi: + type: string + description: "Maritime Mobile Service Identity, nine digits. The only field always present." + name: + type: string + description: "Vessel name, from a static and voyage related message or an aid-to-navigation report." + callsign: + type: string + description: "Radio callsign." + imo: + type: string + description: "IMO number, where transmitted." + country: + type: string + description: "Flag state, derived from the MMSI maritime identification digits." + type: + type: string + description: "What is transmitting: Vessel, Base station, Aircraft or Aid-to-nav." + shipType: + type: string + description: "Ship and cargo type, such as Cargo or Tug." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + course: + type: number + format: float + description: "Course over ground in degrees true." + speed: + type: number + format: float + description: "Speed over ground in knots." + heading: + type: integer + description: "True heading in degrees, which differs from course when set and drift apply." + status: + type: string + description: "Navigational status, such as Under way using engine or At anchor." + length: + type: integer + description: "Overall length in metres." + destination: + type: string + description: "Destination as entered by the crew." + positionUpdate: + type: string + description: "When the position was last updated, ISO 8601." + lastUpdate: + type: string + description: "When any field was last updated, ISO 8601." + messages: + type: integer + description: "Messages received from this vessel." diff --git a/swagger/sdrangel/api/swagger/include/AISDemod.yaml b/swagger/sdrangel/api/swagger/include/AISDemod.yaml index fc528e9aa..d9d8d767e 100644 --- a/swagger/sdrangel/api/swagger/include/AISDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/AISDemod.yaml @@ -7,58 +7,89 @@ AISDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." correlationThreshold: description: "Normalised correlation threshold with the preamble, from 0 to 1" type: number format: float + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 udpFormat: description: "0 for binary, 1 for NMEA" type: integer + minimum: 0 + maximum: 1 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AISDemodReport: description: AISDemod @@ -69,3 +100,4 @@ AISDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/AISMod.yaml b/swagger/sdrangel/api/swagger/include/AISMod.yaml index 2e593b1ad..3fdf42c11 100644 --- a/swagger/sdrangel/api/swagger/include/AISMod.yaml +++ b/swagger/sdrangel/api/swagger/include/AISMod.yaml @@ -7,6 +7,7 @@ AISModSettings: format: int64 baud: type: integer + description: "Symbol or serial rate in baud." rfBandwidth: description: channel RF bandwidth in Hz type: number @@ -17,35 +18,53 @@ AISModSettings: gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatDelay: type: number format: float + description: "Delay between repetitions." repeatCount: type: integer + description: "Number of repetitions." rampUpBits: type: integer + description: "Ramp up bits setting for AIS mod." rampDownBits: type: integer + description: "Ramp down bits setting for AIS mod." rampRange: type: integer + description: "Ramp range setting for AIS mod." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on msgType: type: integer + minimum: 0 + maximum: 3 description: > Message Type * 0 - Scheduled position report @@ -54,8 +73,11 @@ AISModSettings: * 3 - Base station report mmsi: type: string + description: "Maritime Mobile Service Identity number." status: type: integer + minimum: 0 + maximum: 8 description: > Ship status * 0 - Under way using engine @@ -71,55 +93,83 @@ AISModSettings: latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 course: type: number format: float + description: "Course over ground in degrees." speed: type: number format: float + description: "Reported speed." heading: type: integer + description: "Heading in degrees." data: type: string + description: "Payload data." bt: type: number format: float + description: "Bt setting for AIS mod." symbolSpan: type: integer + description: "Symbol span setting for AIS mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." udpEnabled: description: "Whether to receive messages to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive messages to transmit via" type: string udpPort: description: "UDP port to receive messages to transmit via" type: integer + minimum: 1 + maximum: 65535 channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AISModReport: description: AISMod @@ -130,21 +180,27 @@ AISModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." AISModActions: description: AISMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit stored message * 0 - do nothing * 1 - transmit encode: type: integer + minimum: 0 + maximum: 1 description: > Encode message from discrete data * 0 - do nothing * 1 - encode data: type: string + description: "Payload data." diff --git a/swagger/sdrangel/api/swagger/include/AMBE.yaml b/swagger/sdrangel/api/swagger/include/AMBE.yaml index d696083a0..f12fb0092 100644 --- a/swagger/sdrangel/api/swagger/include/AMBE.yaml +++ b/swagger/sdrangel/api/swagger/include/AMBE.yaml @@ -3,21 +3,32 @@ AMBESettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMBEReport: description: AMBE diff --git a/swagger/sdrangel/api/swagger/include/AMDemod.yaml b/swagger/sdrangel/api/swagger/include/AMDemod.yaml index 472886b3a..30db0b5fb 100644 --- a/swagger/sdrangel/api/swagger/include/AMDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/AMDemod.yaml @@ -20,17 +20,26 @@ AMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 bandpassEnable: description: use bandpass filter (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." pll: description: PLL active (for synchronous AM) type: integer @@ -40,6 +49,8 @@ AMDemodSettings: frequencyMode: description: (0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k) type: integer + minimum: 0 + maximum: 3 frequency: description: Channel center frequency type: integer @@ -53,18 +64,28 @@ AMDemodSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMDemodReport: description: AMDemod @@ -78,5 +99,7 @@ AMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/AMMod.yaml b/swagger/sdrangel/api/swagger/include/AMMod.yaml index ee26baf64..b22547b62 100644 --- a/swagger/sdrangel/api/swagger/include/AMMod.yaml +++ b/swagger/sdrangel/api/swagger/include/AMMod.yaml @@ -4,51 +4,78 @@ AMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." modFactor: description: modulation factor from 0.0 to 1.0 type: number format: float + minimum: 0 + maximum: 1 toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Am mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "http://swgserver:8081/api/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." AMModReport: description: AMMod @@ -59,5 +86,7 @@ AMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/APRS.yaml b/swagger/sdrangel/api/swagger/include/APRS.yaml index e55769444..ad334b390 100644 --- a/swagger/sdrangel/api/swagger/include/APRS.yaml +++ b/swagger/sdrangel/api/swagger/include/APRS.yaml @@ -3,78 +3,228 @@ APRSSettings: properties: igateServer: type: string + description: "Igate server setting for Aprs." igatePort: type: integer + description: "Igate port." + minimum: 1 + maximum: 65535 igateCallsign: type: string + description: "Igate callsign setting for Aprs." igatePasscode: type: string + description: "Igate passcode setting for Aprs." igateFilter: type: string + description: "Igate filter setting for Aprs." igateEnabled: type: integer + description: "Enable igate (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." packetsTableColumnIndexes: type: array + description: "List of packets table column indexes." items: type: integer packetsTableColumnSizes: type: array + description: "List of packets table column sizes." items: type: integer weatherTableColumnIndexes: type: array + description: "List of weather table column indexes." items: type: integer weatherTableColumnSizes: type: array + description: "List of weather table column sizes." items: type: integer statusTableColumnIndexes: type: array + description: "List of status table column indexes." items: type: integer statusTableColumnSizes: type: array + description: "List of status table column sizes." items: type: integer messagesTableColumnIndexes: type: array + description: "List of messages table column indexes." items: type: integer messagesTableColumnSizes: type: array + description: "List of messages table column sizes." items: type: integer telemetryTableColumnIndexes: type: array + description: "List of telemetry table column indexes." items: type: integer telemetryTableColumnSizes: type: array + description: "List of telemetry table column sizes." items: type: integer motionTableColumnIndexes: type: array + description: "List of motion table column indexes." items: type: integer motionTableColumnSizes: type: array + description: "List of motion table column sizes." items: type: integer + +APRSReport: + description: > + Stations and objects heard by the APRS feature, which collects the AX.25 packets of every + packet demodulator in the instance. A field is present only once a packet carrying it has + been received. + properties: + runningState: + type: integer + minimum: 0 + maximum: 3 + description: > + Running state + * 0 - not started + * 1 - idle + * 2 - running + * 3 - error + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + stationCount: + type: integer + description: "Number of stations and objects currently held." + packetCount: + type: integer + description: "Packets received across all stations." + stations: + type: array + description: "The stations and objects heard." + items: + $ref: "http://swgserver:8081/api/swagger/include/APRS.yaml#/APRSStation" + +APRSStation: + description: Station or object heard by the APRS feature + properties: + callsign: + type: string + description: "Station callsign with SSID, or the name of the object or item." + isObject: + type: integer + minimum: 0 + maximum: 1 + description: "1 when this is an object or item rather than a station." + reportingStation: + type: string + description: "Callsign that reported this object. Empty for a station." + symbol: + type: string + description: "APRS symbol identifier." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + altitude: + type: number + format: float + description: "Altitude in metres above mean sea level." + course: + type: number + format: float + description: "Course in degrees true." + speed: + type: number + format: float + description: "Speed in km/h." + status: + type: string + description: "Latest status text." + comment: + type: string + description: "Latest position comment." + powerWatts: + type: number + format: float + description: "Transmitter power in watts, from a reported PHG value." + antennaHeight: + type: number + format: float + description: "Antenna height above average terrain in metres, from a reported PHG value." + antennaGain: + type: number + format: float + description: "Antenna gain in dB, from a reported PHG value." + antennaDirectivity: + type: string + description: "Antenna directivity, from a reported PHG value." + radioRange: + type: number + format: float + description: "Reported range in km." + hasWeather: + type: integer + minimum: 0 + maximum: 1 + description: "1 when weather reports have been received from this station." + hasTelemetry: + type: integer + minimum: 0 + maximum: 1 + description: "1 when telemetry has been received from this station." + telemetryProjectName: + type: string + description: "Telemetry project name, where reported." + packets: + type: integer + description: "Packets received from this station." + lastPacketDateTime: + type: string + description: "When the most recent packet was received, ISO 8601." diff --git a/swagger/sdrangel/api/swagger/include/APTDemod.yaml b/swagger/sdrangel/api/swagger/include/APTDemod.yaml index c6fd957ba..eff55bf16 100644 --- a/swagger/sdrangel/api/swagger/include/APTDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/APTDemod.yaml @@ -36,6 +36,8 @@ APTDemodSettings: decodeEnabled: description: Controls whether the decoder is enabled type: integer + minimum: 0 + maximum: 1 autoSave: description: Automatically save images when acquisition is stopped type: integer @@ -85,26 +87,38 @@ APTDemodSettings: format: float rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." APTDemodActions: description: APTDemod diff --git a/swagger/sdrangel/api/swagger/include/ATVDemod.yaml b/swagger/sdrangel/api/swagger/include/ATVDemod.yaml index 976a48563..5e90999da 100644 --- a/swagger/sdrangel/api/swagger/include/ATVDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/ATVDemod.yaml @@ -3,35 +3,60 @@ ATVDemodSettings: properties: fpsIndex: type: integer + description: "Selected fps index." halfImage: - description: (boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0 + description: > + Display only half of the image rows + * 0 - display all rows + * 1 - display half the rows type: integer + minimum: 0 + maximum: 1 RFBandwidthFactor: type: integer + description: "RF bandwidth factor setting for Atv demod." OppBandwidthFactor: type: integer + description: "Opp bandwidth factor setting for Atv demod." nbLinesIndex: type: integer + description: "Selected nb lines index." intFrequencyOffset: type: integer + description: "Int frequency offset in Hz." enmModulation: - description: see ATVDemodSettings::ATVModulation - type: integer + description: > + Modulation of the received ATV signal + * 0 - FM with discriminator 1 + * 1 - FM with discriminator 2 + * 2 - FM with phase derivative discriminator + * 3 - AM + * 4 - AM with vestigial lower sideband, signal in the upper sideband + * 5 - AM with vestigial upper sideband, signal in the lower sideband + type: integer + minimum: 0 + maximum: 5 fltRFBandwidth: type: number format: float + description: "Flt RF bandwidth in Hz." fltRFOppBandwidth: type: number format: float + description: "Flt RF opp bandwidth in Hz." blnFFTFiltering: description: boolean type: integer + minimum: 0 + maximum: 1 fltBFOFrequency: type: number format: float + description: "Flt bfo frequency in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." amScalingFactor: type: integer description: Factor in % to apply to detected signal scale @@ -40,49 +65,81 @@ ATVDemodSettings: description: Factor in % to apply to adjusted signal scale intSampleRate: type: integer + description: "Int sample rate in samples per second." enmATVStandard: - description: see ATVDemodSettings::ATVStd - type: integer + description: > + Television standard, which sets the line count and timings + * 0 - PAL 625 lines + * 1 - PAL 525 lines + * 2 - 819 lines + * 3 - short, interleaved + * 4 - short + * 5 - horizontal sync skip + type: integer + minimum: 0 + maximum: 5 intNumberOfLines: type: integer + description: "Int number of lines setting for Atv demod." fltLineDuration: type: number format: float + description: "Flt line duration setting for Atv demod." fltTopDuration: type: number format: float + description: "Flt top duration setting for Atv demod." fltFramePerS: type: number format: float + description: "Flt frame per s setting for Atv demod." fltRatioOfRowsToDisplay: type: number format: float + description: "Flt ratio of rows to display setting for Atv demod." fltVoltLevelSynchroTop: type: number format: float + description: "Flt volt level synchro top setting for Atv demod." fltVoltLevelSynchroBlack: type: number format: float + description: "Flt volt level synchro black setting for Atv demod." blnHSync: description: boolean type: integer + minimum: 0 + maximum: 1 blnVSync: description: boolean type: integer + minimum: 0 + maximum: 1 blnInvertVideo: description: boolean type: integer + minimum: 0 + maximum: 1 intVideoTabIndex: type: integer + description: "Selected int video tab index." intTVSampleRate: type: integer + description: "Int tv sample rate in samples per second." intNumberSamplePerLine: type: integer + description: "Int number sample per line setting for Atv demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer + description: "UDP port number." + minimum: 1 + maximum: 65535 diff --git a/swagger/sdrangel/api/swagger/include/ATVMod.yaml b/swagger/sdrangel/api/swagger/include/ATVMod.yaml index 96fb4d160..8ed68fdc4 100644 --- a/swagger/sdrangel/api/swagger/include/ATVMod.yaml +++ b/swagger/sdrangel/api/swagger/include/ATVMod.yaml @@ -4,73 +4,108 @@ ATVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." rfOppBandwidth: type: number format: float + description: "RF opp bandwidth in Hz." atvStd: type: integer + description: "Atv std setting for Atv mod." nbLines: type: integer + description: "Nb lines setting for Atv mod." fps: type: integer + description: "Fps setting for Atv mod." atvModInput: type: integer + description: "Atv mod input setting for Atv mod." uniformLevel: type: number format: float + description: "Uniform level setting for Atv mod." atvModulation: type: integer + description: "Atv modulation setting for Atv mod." videoPlayLoop: type: integer + description: "Video play loop setting for Atv mod." videoPlay: type: integer + description: "Video play setting for Atv mod." cameraPlay: type: integer + description: "Camera play setting for Atv mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 invertedVideo: type: integer + description: "Inverted video setting for Atv mod." rfScalingFactor: type: number format: float + description: "RF scaling factor setting for Atv mod." fmExcursion: type: number format: float + description: "FM excursion setting for Atv mod." forceDecimator: type: integer + description: "Force decimator setting for Atv mod." showOverlayText: type: integer + description: "Show overlay text setting for Atv mod." overlayText: type: string + description: "Overlay text setting for Atv mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." imageFileName: type: string + description: "Image file name or path." videoFileName: type: string + description: "Video file name." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ATVModReport: description: ATVMod @@ -81,3 +116,4 @@ ATVModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/AaroniaRTSA.yaml b/swagger/sdrangel/api/swagger/include/AaroniaRTSA.yaml index 4ba1ece11..2c50d7583 100644 --- a/swagger/sdrangel/api/swagger/include/AaroniaRTSA.yaml +++ b/swagger/sdrangel/api/swagger/include/AaroniaRTSA.yaml @@ -3,6 +3,7 @@ AaroniaRTSASettings: properties: title: type: string + description: "User-visible title." centerFrequency: description: Sets the center frequency (Hz) of the distant IQ demodulator type: integer @@ -16,18 +17,27 @@ AaroniaRTSASettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AaroniaRTSAReport: description: AaroniaRTSA properties: status: type: integer + minimum: 0 + maximum: 4 description: > Connection to RTSA server status: * 0 - Idle @@ -41,6 +51,7 @@ AaroniaRTSAOutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: description: Sets the center frequency (Hz) of the distant IQ demodulator type: integer @@ -54,18 +65,27 @@ AaroniaRTSAOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AaroniaRTSAOutputReport: description: AaroniaRTSAOutput properties: status: type: integer + minimum: 0 + maximum: 4 description: > Connection to RTSA server status: * 0 - Idle diff --git a/swagger/sdrangel/api/swagger/include/Airspy.yaml b/swagger/sdrangel/api/swagger/include/Airspy.yaml index 5cf671263..c31c1b926 100644 --- a/swagger/sdrangel/api/swagger/include/Airspy.yaml +++ b/swagger/sdrangel/api/swagger/include/Airspy.yaml @@ -3,19 +3,32 @@ AirspySettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." lnaGain: type: integer + minimum: 0 + maximum: 14 + description: "Low noise amplifier gain as a step index, not a dB value. Ignored when lnaAGC is enabled." mixerGain: type: integer + minimum: 0 + maximum: 15 + description: "Mixer gain as a step index, not a dB value. Ignored when mixerAGC is enabled." vgaGain: type: integer + minimum: 0 + maximum: 15 + description: "Variable gain amplifier (IF) gain as a step index, not a dB value." lnaAGC: description: LNA AGC (1 if active else 0) type: integer @@ -24,23 +37,42 @@ AirspySettings: type: integer log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 biasT: description: Bias tee (1 if active else 0) type: integer + minimum: 0 + maximum: 1 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -48,17 +80,25 @@ AirspySettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AirspyReport: description: Airspy properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/SampleRate" diff --git a/swagger/sdrangel/api/swagger/include/AirspyHF.yaml b/swagger/sdrangel/api/swagger/include/AirspyHF.yaml index bac3cf928..27002b345 100644 --- a/swagger/sdrangel/api/swagger/include/AirspyHF.yaml +++ b/swagger/sdrangel/api/swagger/include/AirspyHF.yaml @@ -3,61 +3,97 @@ AirspyHFSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 8 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) bandIndex: type: integer + description: "Selected band index." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." useAGC: description: AGC (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 agcHigh: description: AGC threshold (1 for high, 0 for low) type: integer + minimum: 0 + maximum: 1 useDSP: description: LibairspyHF DSP (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 useLNA: description: LNA (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 attenuatorSteps: description: Attenuator in number of 6 dB steps type: integer dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 AirspyHFReport: description: AirspyHF properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/SampleRate" diff --git a/swagger/sdrangel/api/swagger/include/AndroidSDRDriverInput.yaml b/swagger/sdrangel/api/swagger/include/AndroidSDRDriverInput.yaml index 9de3fe40c..6cabd8930 100644 --- a/swagger/sdrangel/api/swagger/include/AndroidSDRDriverInput.yaml +++ b/swagger/sdrangel/api/swagger/include/AndroidSDRDriverInput.yaml @@ -4,42 +4,73 @@ AndroidSDRDriverInputSettings: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 directSampling: type: integer + description: "Direct sampling setting for Android sdr driver input." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rfBW: type: integer + description: "RF bw in Hz." sampleBits: type: integer + description: "Number of significant bits in each sample." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." AndroidSDRDriverInputReport: description: AndroidSDRDriverInput properties: sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/AntennaTools.yaml b/swagger/sdrangel/api/swagger/include/AntennaTools.yaml index 6c07adc15..10a3956f7 100644 --- a/swagger/sdrangel/api/swagger/include/AntennaTools.yaml +++ b/swagger/sdrangel/api/swagger/include/AntennaTools.yaml @@ -4,34 +4,51 @@ AntennaToolsSettings: dipoleFrequencyMHz: type: number format: float + description: "Dipole frequency in MHz." dipoleEndEffectFactor: type: number format: float + description: "Dipole end effect factor setting for Antenna tools." dishFrequencyMHz: type: number format: float + description: "Dish frequency in MHz." dishDiameter: type: number format: float + description: "Dish diameter setting for Antenna tools." dishDepth: type: number format: float + description: "Dish depth setting for Antenna tools." dishEfficiency: type: integer + description: "Dish efficiency setting for Antenna tools." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/AudioCATSISO.yaml b/swagger/sdrangel/api/swagger/include/AudioCATSISO.yaml index efdba0c62..817912e7d 100644 --- a/swagger/sdrangel/api/swagger/include/AudioCATSISO.yaml +++ b/swagger/sdrangel/api/swagger/include/AudioCATSISO.yaml @@ -3,35 +3,50 @@ AudioCATSISOSettings: properties: title: type: string + description: "User-visible title." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." rxSampleRate: type: integer + description: "Receive sample rate in samples per second." txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." txSampleRate: type: integer + description: "Transmit sample rate in samples per second." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) txEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable or disable transmission * 0 - Disable transmission * 1 - Enable transmission pttSpectrumLink: type: integer + minimum: 0 + maximum: 1 description: > Main spectrum display (Rx/Tx) follows PTT (GUI) * 0 - Disable PTT following @@ -41,6 +56,8 @@ AudioCATSISOSettings: type: string rxIQMapping: type: integer + minimum: 0 + maximum: 3 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -52,6 +69,8 @@ AudioCATSISOSettings: type: integer fcPosRx: type: integer + minimum: 0 + maximum: 2 description: > Decimated bandpass center frequency position * 0 - Infradyne @@ -59,12 +78,16 @@ AudioCATSISOSettings: * 2 - Centered dcBlock: type: integer + minimum: 0 + maximum: 1 description: > Auto DC blocking * 0 - Off * 1 - On iqCorrection: type: integer + minimum: 0 + maximum: 1 description: > Auto IQ balance (you need auto DC blocking active) * 0 - Off @@ -72,11 +95,14 @@ AudioCATSISOSettings: rxVolume: type: number format: float + description: "Receive volume setting for Audio catsiso." txDeviceName: description: The name of the output audio device type: string txIQMapping: type: integer + minimum: 0 + maximum: 1 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -86,6 +112,8 @@ AudioCATSISOSettings: description: Tx volume in dB usually negative catSpeedIndex: type: integer + minimum: 0 + maximum: 7 description: > CAT serial link baud rate * 0 - 1200 @@ -98,18 +126,24 @@ AudioCATSISOSettings: * 7 - 115200 catDataBitsIndex: type: integer + minimum: 0 + maximum: 1 description: > CAT serial link data bits * 0 - 7 * 1 - 8 (default) catStopBitsIndex: type: integer + minimum: 0 + maximum: 1 description: > CAT serial link stop bits * 0 - 1 (default) * 1 - 2 catHandshakeIndex: type: integer + minimum: 0 + maximum: 2 description: > CAT serial link handshake type * 0 - none (default) @@ -117,6 +151,8 @@ AudioCATSISOSettings: * 2 - hardware catPTTMethodIndex: type: integer + minimum: 0 + maximum: 2 description: > CAT PTT method * 0 - PTT (default) @@ -124,12 +160,16 @@ AudioCATSISOSettings: * 2 - RTS catDTRHigh: type: integer + minimum: 0 + maximum: 1 description: > CAT DTR control * 0 - low * 1 - high (default) catRTSHigh: type: integer + minimum: 0 + maximum: 1 description: > CAT RTS control * 0 - low @@ -140,9 +180,16 @@ AudioCATSISOSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/AudioInput.yaml b/swagger/sdrangel/api/swagger/include/AudioInput.yaml index 2e69cd198..e5c58a2d1 100644 --- a/swagger/sdrangel/api/swagger/include/AudioInput.yaml +++ b/swagger/sdrangel/api/swagger/include/AudioInput.yaml @@ -3,6 +3,7 @@ AudioInputSettings: properties: title: type: string + description: "User-visible title." device: description: The name of the audio device type: string @@ -12,11 +13,14 @@ AudioInputSettings: volume: type: number format: float + description: "Audio volume multiplier." log2Decim: description: Decimation factor type: integer iqMapping: type: integer + minimum: 0 + maximum: 3 description: > Audio channel to IQ mapping * 0 - I=L, Q=0 @@ -25,18 +29,24 @@ AudioInputSettings: * 3 - I=R, Q=L dcBlock: type: integer + minimum: 0 + maximum: 1 description: > Auto DC blocking * 0 - Off * 1 - On iqImbalance: type: integer + minimum: 0 + maximum: 1 description: > Auto IQ balance (you need auto DC blocking active) * 0 - Off * 1 - On fcPos: type: integer + minimum: 0 + maximum: 2 description: > Decimated bandpass center frequency position * 0 - Infradyne @@ -45,9 +55,16 @@ AudioInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/AudioOutput.yaml b/swagger/sdrangel/api/swagger/include/AudioOutput.yaml index 1c980dd04..6d41e9b77 100644 --- a/swagger/sdrangel/api/swagger/include/AudioOutput.yaml +++ b/swagger/sdrangel/api/swagger/include/AudioOutput.yaml @@ -3,14 +3,18 @@ AudioOutputSettings: properties: title: type: string + description: "User-visible title." deviceName: description: The name of the audio device type: string volume: type: number format: float + description: "Audio volume multiplier." iqMapping: type: integer + minimum: 0 + maximum: 1 description: > Audio channel to IQ mapping * 0 - I=L, Q=R @@ -18,9 +22,16 @@ AudioOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/BFMDemod.yaml b/swagger/sdrangel/api/swagger/include/BFMDemod.yaml index 5f91c1abd..203654810 100644 --- a/swagger/sdrangel/api/swagger/include/BFMDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/BFMDemod.yaml @@ -4,14 +4,28 @@ BFMDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + minimum: 80000 + maximum: 250000 + description: > + RF channel bandwidth in Hz. The channel/baseband sample rate must be + greater than this bandwidth. For 180 kHz broadcast FM use at least + 240 kS/s; 256 kS/s is recommended. afBandwidth: type: number format: float + minimum: 1000 + maximum: 20000 + default: 15000 + description: > + Demodulated audio bandwidth in Hz. Broadcast FM normally uses 15 kHz. deEmphasis: type: integer + minimum: 0 + maximum: 1 description: > De-emphasis time constant (us) * 0 - 50us (Europe, Australia) @@ -19,45 +33,76 @@ BFMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 audioStereo: type: integer + description: "Enable stereo audio decoding (1 stereo, 0 mono)." + minimum: 0 + maximum: 1 lsbStereo: type: integer + description: "Use lower-sideband stereo decoding (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 showPilot: type: integer + description: "Show the stereo pilot spectrum (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rdsActive: type: integer + description: "Enable RDS decoding (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." BFMDemodReport: description: BFMDemod @@ -71,8 +116,12 @@ BFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: > + Effective complex baseband sample rate delivered to this channel in + samples per second. This must be greater than rfBandwidth. pilotLocked: description: pilot locked status (1 if open else 0) type: integer @@ -81,7 +130,8 @@ BFMDemodReport: type: number format: float rdsReport: - $ref: "#/RDSReport" + $ref: "http://swgserver:8081/api/swagger/include/BFMDemod.yaml#/RDSReport" + description: "RDS decoder status and decoded programme information." RDSReport: description: RDS information @@ -89,9 +139,13 @@ RDSReport: demodStatus: description: Demodulation success (%) type: integer + minimum: 0 + maximum: 100 decodStatus: description: Decoding success (%) type: integer + minimum: 0 + maximum: 100 rdsDemodAccumDB: description: RDS demodulator accumulator level (dB) type: number @@ -126,8 +180,10 @@ RDSReport: type: string altFrequencies: type: array + description: "Alternative broadcast frequencies reported by RDS." items: properties: frequency: type: number format: float + description: "Frequency in Hz." diff --git a/swagger/sdrangel/api/swagger/include/BeamSteeringCWMod.yaml b/swagger/sdrangel/api/swagger/include/BeamSteeringCWMod.yaml index ed9206e01..fcb48b3a4 100644 --- a/swagger/sdrangel/api/swagger/include/BeamSteeringCWMod.yaml +++ b/swagger/sdrangel/api/swagger/include/BeamSteeringCWMod.yaml @@ -3,26 +3,41 @@ BeamSteeringCWModSettings: properties: steerDegrees: type: integer + description: "Steer degrees setting for Beam steering CW mod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/BladeRF1.yaml b/swagger/sdrangel/api/swagger/include/BladeRF1.yaml index f00b9819d..bf083dbf3 100644 --- a/swagger/sdrangel/api/swagger/include/BladeRF1.yaml +++ b/swagger/sdrangel/api/swagger/include/BladeRF1.yaml @@ -3,35 +3,55 @@ BladeRF1InputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." vga1: type: integer + description: "First variable-gain-amplifier gain setting." vga2: type: integer + description: "Second variable-gain-amplifier gain setting." bandwidth: type: integer + description: "Bandwidth in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." xb200: type: integer + description: "Xb200 setting for Blade rf1 input." xb200Path: type: integer + description: "Xb200 path setting for Blade rf1 input." xb200Filter: type: integer + description: "Xb200 filter setting for Blade rf1 input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -39,43 +59,67 @@ BladeRF1InputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF1OutputSettings: description: BladeRF1 properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." vga1: type: integer + description: "First variable-gain-amplifier gain setting." vga2: type: integer + description: "Second variable-gain-amplifier gain setting." bandwidth: type: integer + description: "Bandwidth in Hz." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." xb200: type: integer + description: "Xb200 setting for Blade rf1 output." xb200Path: type: integer + description: "Xb200 path setting for Blade rf1 output." xb200Filter: type: integer + description: "Xb200 filter setting for Blade rf1 output." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/BladeRF2.yaml b/swagger/sdrangel/api/swagger/include/BladeRF2.yaml index f34d84e8e..e3ebc04b2 100644 --- a/swagger/sdrangel/api/swagger/include/BladeRF2.yaml +++ b/swagger/sdrangel/api/swagger/include/BladeRF2.yaml @@ -3,36 +3,60 @@ BladeRF2InputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." bandwidth: type: integer + description: "Bandwidth in Hz." gainMode: type: integer + description: "Gain-control mode selection." globalGain: type: integer + description: "Overall device gain setting." biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -40,26 +64,38 @@ BladeRF2InputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2InputReport: description: BladeRF2 properties: frequencyRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range data for Blade rf2 input." sampleRateRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Sample rate range data for Blade rf2 input." bandwidthRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range data for Blade rf2 input." globalGainRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Global gain range data for Blade rf2 input." gainModes: type: array + description: "List of gain modes." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/NamedEnum" @@ -68,92 +104,138 @@ BladeRF2OutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." bandwidth: type: integer + description: "Bandwidth in Hz." globalGain: type: integer + description: "Overall device gain setting." biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2OutputReport: description: BladeRF2 properties: frequencyRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range data for Blade rf2 output." sampleRateRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Sample rate range data for Blade rf2 output." bandwidthRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range data for Blade rf2 output." globalGainRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Global gain range data for Blade rf2 output." BladeRF2MIMOSettings: description: BladeRF2 properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPosRx: description: See BladeRF2MIMO::fcPos_t type: integer rxBandwidth: type: integer + description: "Receive bandwidth in Hz." rx0GainMode: type: integer + description: "Rx0 gain mode setting for Blade rf2 MIMO." rx0GlobalGain: type: integer + description: "Rx0 global gain setting for Blade rf2 MIMO." rx1GainMode: type: integer + description: "Rx1 gain mode setting for Blade rf2 MIMO." rx1GlobalGain: type: integer + description: "Rx1 global gain setting for Blade rf2 MIMO." rxBiasTee: description: boolean type: integer + minimum: 0 + maximum: 1 dcBlock: description: boolean type: integer + minimum: 0 + maximum: 1 iqCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 rxTransverterMode: description: boolean type: integer + minimum: 0 + maximum: 1 rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -161,56 +243,82 @@ BladeRF2MIMOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPosTx: description: See BladeRF2MIMO::fcPos_t type: integer txBandwidth: type: integer + description: "Transmit bandwidth in Hz." tx0GlobalGain: type: integer + description: "Tx0 global gain setting for Blade rf2 MIMO." tx1GlobalGain: type: integer + description: "Tx1 global gain setting for Blade rf2 MIMO." txBiasTee: description: boolean type: integer + minimum: 0 + maximum: 1 txTransverterMode: description: boolean type: integer + minimum: 0 + maximum: 1 txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." useReverseAPI: description: boolean type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." BladeRF2MIMOReport: description: BladeRF2 properties: frequencyRangeRx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range receive data for Blade rf2 MIMO." sampleRateRangeRx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Sample rate range receive data for Blade rf2 MIMO." bandwidthRangeRx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range receive data for Blade rf2 MIMO." globalGainRangeRx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Global gain range receive data for Blade rf2 MIMO." gainModesRx: type: array + description: "List of gain modes receive." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/NamedEnum" frequencyRangeTx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/FrequencyRange" + description: "Frequency range transmit data for Blade rf2 MIMO." sampleRateRangeTx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Sample rate range transmit data for Blade rf2 MIMO." bandwidthRangeTx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Bandwidth range transmit data for Blade rf2 MIMO." globalGainRangeTx: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Range" + description: "Global gain range transmit data for Blade rf2 MIMO." diff --git a/swagger/sdrangel/api/swagger/include/CWKeyer.yaml b/swagger/sdrangel/api/swagger/include/CWKeyer.yaml index 73c98ceee..662d6ec6a 100644 --- a/swagger/sdrangel/api/swagger/include/CWKeyer.yaml +++ b/swagger/sdrangel/api/swagger/include/CWKeyer.yaml @@ -2,29 +2,45 @@ CWKeyerSettings: properties: sampleRate: type: integer + description: "Sample rate in samples per second." wpm: description: Words Per Minute keying speed type: integer mode: - description: see enum CWKeyerSettings::CWMode - type: integer + description: > + Source of the keying + * 0 - none, key up + * 1 - send the text in the text field + * 2 - send continuous dots + * 3 - send continuous dashes + * 4 - key from the keyboard + type: integer + minimum: 0 + maximum: 4 text: type: string + description: "Text setting for CW keyer." loop: description: 1 to loop on text keying type: integer keyboardIambic: description: 1 for iambic input 0 for straight input using the keyboard type: integer + minimum: 0 + maximum: 1 dotKey: - description: key for dots keyboard input. See enum Qt::Key + description: > + Keyboard key that sends dots. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer dotKeyModifiers: - description: key modifier for dots keyboard input. See flags Qt::KeyboardModifiers + description: > + Modifiers for the dot key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer dashKey: - description: key for dashes keyboard input. See enum Qt::Key + description: > + Keyboard key that sends dashes. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer dashKeyModifiers: - description: key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers + description: > + Modifiers for the dash key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer \ No newline at end of file diff --git a/swagger/sdrangel/api/swagger/include/ChannelActions.yaml b/swagger/sdrangel/api/swagger/include/ChannelActions.yaml index 906a8da7c..c6f0c6a99 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelActions.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelActions.yaml @@ -11,6 +11,8 @@ ChannelActions: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorDeviceSetIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer @@ -19,25 +21,37 @@ ChannelActions: type: integer AISModActions: $ref: "http://swgserver:8081/api/swagger/include/AISMod.yaml#/AISModActions" + description: "AIS mod actions configuration for Channel." APTDemodActions: $ref: "http://swgserver:8081/api/swagger/include/APTDemod.yaml#/APTDemodActions" + description: "Apt demod actions configuration for Channel." FileSinkActions: $ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkActions" + description: "File sink actions configuration for Channel." FileSourceActions: $ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceActions" + description: "File source actions configuration for Channel." FreqScannerActions: $ref: "http://swgserver:8081/api/swagger/include/FreqScanner.yaml#/FreqScannerActions" + description: "Freq scanner actions configuration for Channel." IEEE_802_15_4_ModActions: $ref: "http://swgserver:8081/api/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModActions" + description: "Ieee 802 15 4 mod actions configuration for Channel." MeshcoreModActions: $ref: "http://swgserver:8081/api/swagger/include/MeshcoreMod.yaml#/MeshcoreModActions" + description: "Meshcore mod actions configuration for Channel." PacketModActions: $ref: "http://swgserver:8081/api/swagger/include/PacketMod.yaml#/PacketModActions" + description: "Packet mod actions configuration for Channel." PSK31ModActions: $ref: "http://swgserver:8081/api/swagger/include/PSK31Mod.yaml#/PSK31ModActions" + description: "Psk31 mod actions configuration for Channel." RadioAstronomyActions: $ref: "http://swgserver:8081/api/swagger/include/RadioAstronomy.yaml#/RadioAstronomyActions" + description: "Radio astronomy actions configuration for Channel." RTTYModActions: $ref: "http://swgserver:8081/api/swagger/include/RTTYMod.yaml#/RTTYModActions" + description: "Rtty mod actions configuration for Channel." SigMFFileSinkActions: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkActions" + description: "Sig mf file sink actions configuration for Channel." diff --git a/swagger/sdrangel/api/swagger/include/ChannelAnalyzer.yaml b/swagger/sdrangel/api/swagger/include/ChannelAnalyzer.yaml index 89e9c00c3..c01d30474 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelAnalyzer.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelAnalyzer.yaml @@ -3,73 +3,114 @@ ChannelAnalyzerSettings: properties: frequency: type: integer + description: "Frequency in Hz." downSample: description: Boolean type: integer + minimum: 0 + maximum: 1 downSampleRate: type: integer + description: "Down sample rate in samples per second." bandwidth: type: integer + description: "Bandwidth in Hz." lowCutoff: type: integer + description: "Lower filter cutoff frequency in Hz." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." ssb: description: Boolean type: integer + minimum: 0 + maximum: 1 pll: description: Boolean type: integer + minimum: 0 + maximum: 1 fll: description: Boolean type: integer + minimum: 0 + maximum: 1 costasLoop: description: Boolean type: integer + minimum: 0 + maximum: 1 rrc: description: Boolean type: integer + minimum: 0 + maximum: 1 rrcRolloff: description: in 100ths type: integer pllPskOrder: type: integer + description: "Pll psk order setting for Channel analyzer." pllBandwidth: type: number format: float + description: "Pll bandwidth in Hz." pllDampingFactor: type: number format: float + description: "Pll damping factor setting for Channel analyzer." pllLoopGain: type: number format: float + description: "Pll loop gain setting for Channel analyzer." inputType: - description: see ChannelAnalyzerSettings::InputType - type: integer + description: > + Signal fed to the analyser + * 0 - the channel signal + * 1 - the PLL output + * 2 - the autocorrelation of the signal + type: integer + minimum: 0 + maximum: 2 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/ChannelMarker.yaml b/swagger/sdrangel/api/swagger/include/ChannelMarker.yaml index 328397aaf..e24ee2c92 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelMarker.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelMarker.yaml @@ -3,11 +3,21 @@ ChannelMarker: properties: centerFrequency: type: integer + description: "Device center frequency in Hz." color: type: integer description: RGB color title: type: string + description: "User-visible title." frequencyScaleDisplayType: type: integer - description: ChannelMarker::frequencyScaleDisplay_t + minimum: 0 + maximum: 4 + description: > + What is written against the channel on the frequency scale + * 0 - the frequency + * 1 - the channel title + * 2 - the send address + * 3 - the receive address + * 4 - nothing diff --git a/swagger/sdrangel/api/swagger/include/ChannelPower.yaml b/swagger/sdrangel/api/swagger/include/ChannelPower.yaml index 6289f76c1..42368bebe 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelPower.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelPower.yaml @@ -4,9 +4,12 @@ ChannelPowerSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." frequencyMode: description: (0 for Offset, 1 for Absolute) type: integer + minimum: 0 + maximum: 1 frequency: description: Channel center frequency type: integer @@ -14,6 +17,7 @@ ChannelPowerSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." pulseThreshold: description: "In dB" type: number @@ -23,26 +27,38 @@ ChannelPowerSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChannelPowerReport: description: ChannelPower @@ -65,3 +81,4 @@ ChannelPowerReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/ChannelReport.yaml b/swagger/sdrangel/api/swagger/include/ChannelReport.yaml index 50b13e56a..3a8ec7f27 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelReport.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelReport.yaml @@ -11,117 +11,178 @@ ChannelReport: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 ADSBDemodReport: $ref: "http://swgserver:8081/api/swagger/include/ADSBDemod.yaml#/ADSBDemodReport" + description: "ADS-B demod report data for Channel." AISDemodReport: $ref: "http://swgserver:8081/api/swagger/include/AISDemod.yaml#/AISDemodReport" + description: "AIS demod report data for Channel." AISModReport: $ref: "http://swgserver:8081/api/swagger/include/AISMod.yaml#/AISModReport" + description: "AIS mod report data for Channel." AMDemodReport: $ref: "http://swgserver:8081/api/swagger/include/AMDemod.yaml#/AMDemodReport" + description: "Am demod report data for Channel." AMModReport: $ref: "http://swgserver:8081/api/swagger/include/AMMod.yaml#/AMModReport" + description: "Am mod report data for Channel." ATVModReport: $ref: "http://swgserver:8081/api/swagger/include/ATVMod.yaml#/ATVModReport" + description: "Atv mod report data for Channel." BFMDemodReport: $ref: "http://swgserver:8081/api/swagger/include/BFMDemod.yaml#/BFMDemodReport" + description: "BFM demod report data for Channel." + DABDemodReport: + $ref: "http://swgserver:8081/api/swagger/include/DABDemod.yaml#/DABDemodReport" + description: "DAB demod report data for Channel." ChannelPowerReport: $ref: "http://swgserver:8081/api/swagger/include/ChannelPower.yaml#/ChannelPowerReport" + description: "Channel power report data for Channel." ChirpChatDemodReport: $ref: "http://swgserver:8081/api/swagger/include/ChirpChatDemod.yaml#/ChirpChatDemodReport" + description: "Chirp chat demod report data for Channel." ChirpChatModReport: $ref: "http://swgserver:8081/api/swagger/include/ChirpChatMod.yaml#/ChirpChatModReport" + description: "Chirp chat mod report data for Channel." DATVDemodReport: $ref: "http://swgserver:8081/api/swagger/include/DATVDemod.yaml#/DATVDemodReport" + description: "Datv demod report data for Channel." DATVModReport: $ref: "http://swgserver:8081/api/swagger/include/DATVMod.yaml#/DATVModReport" + description: "Datv mod report data for Channel." DOA2Report: $ref: "http://swgserver:8081/api/swagger/include/DOA2.yaml#/DOA2Report" + description: "Doa2 report data for Channel." DSCDemodReport: $ref: "http://swgserver:8081/api/swagger/include/DSCDemod.yaml#/DSCDemodReport" + description: "Dsc demod report data for Channel." DSDDemodReport: $ref: "http://swgserver:8081/api/swagger/include/DSDDemod.yaml#/DSDDemodReport" + description: "Dsd demod report data for Channel." EndOfTrainDemodReport: $ref: "http://swgserver:8081/api/swagger/include/EndOfTrainDemod.yaml#/EndOfTrainDemodReport" + description: "End of train demod report data for Channel." IEEE_802_15_4_ModReport: $ref: "http://swgserver:8081/api/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModReport" + description: "Ieee 802 15 4 mod report data for Channel." FileSinkReport: $ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkReport" + description: "File sink report data for Channel." FileSourceReport: $ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceReport" + description: "File source report data for Channel." FreeDVDemodReport: $ref: "http://swgserver:8081/api/swagger/include/FreeDVDemod.yaml#/FreeDVDemodReport" + description: "Free dv demod report data for Channel." FreeDVModReport: $ref: "http://swgserver:8081/api/swagger/include/FreeDVMod.yaml#/FreeDVModReport" + description: "Free dv mod report data for Channel." FreqScannerReport: $ref: "http://swgserver:8081/api/swagger/include/FreqScanner.yaml#/FreqScannerReport" + description: "Freq scanner report data for Channel." FreqTrackerReport: $ref: "http://swgserver:8081/api/swagger/include/FreqTracker.yaml#/FreqTrackerReport" + description: "Freq tracker report data for Channel." FT8DemodReport: $ref: "http://swgserver:8081/api/swagger/include/FT8Demod.yaml#/FT8DemodReport" + description: "Ft8 demod report data for Channel." HeatMapReport: $ref: "http://swgserver:8081/api/swagger/include/HeatMap.yaml#/HeatMapReport" + description: "Heat map report data for Channel." ILSDemodReport: $ref: "http://swgserver:8081/api/swagger/include/ILSDemod.yaml#/ILSDemodReport" + description: "Ils demod report data for Channel." InmarsatDemodReport: $ref: "http://swgserver:8081/api/swagger/include/InmarsatDemod.yaml#/InmarsatDemodReport" + description: "Inmarsat demod report data for Channel." M17DemodReport: $ref: "http://swgserver:8081/api/swagger/include/M17Demod.yaml#/M17DemodReport" + description: "M17 demod report data for Channel." M17ModReport: $ref: "http://swgserver:8081/api/swagger/include/M17Mod.yaml#/M17ModReport" + description: "M17 mod report data for Channel." MeshtasticDemodReport: $ref: "http://swgserver:8081/api/swagger/include/MeshtasticDemod.yaml#/MeshtasticDemodReport" + description: "Meshtastic demod report data for Channel." MeshtasticModReport: $ref: "http://swgserver:8081/api/swagger/include/MeshtasticMod.yaml#/MeshtasticModReport" + description: "Meshtastic mod report data for Channel." MeshcoreDemodReport: $ref: "http://swgserver:8081/api/swagger/include/MeshcoreDemod.yaml#/MeshcoreDemodReport" + description: "Meshcore demod report data for Channel." MeshcoreModReport: $ref: "http://swgserver:8081/api/swagger/include/MeshcoreMod.yaml#/MeshcoreModReport" + description: "Meshcore mod report data for Channel." NavtexDemodReport: $ref: "http://swgserver:8081/api/swagger/include/NavtexDemod.yaml#/NavtexDemodReport" + description: "Navtex demod report data for Channel." NFMDemodReport: $ref: "http://swgserver:8081/api/swagger/include/NFMDemod.yaml#/NFMDemodReport" + description: "Nfm demod report data for Channel." NFMModReport: $ref: "http://swgserver:8081/api/swagger/include/NFMMod.yaml#/NFMModReport" + description: "Nfm mod report data for Channel." NoiseFigureReport: $ref: "http://swgserver:8081/api/swagger/include/NoiseFigure.yaml#/NoiseFigureReport" + description: "Noise figure report data for Channel." SSBDemodReport: $ref: "http://swgserver:8081/api/swagger/include/SSBDemod.yaml#/SSBDemodReport" + description: "Ssb demod report data for Channel." RadioAstronomyReport: $ref: "http://swgserver:8081/api/swagger/include/RadioAstronomy.yaml#/RadioAstronomyReport" + description: "Radio astronomy report data for Channel." RadioClockReport: $ref: "http://swgserver:8081/api/swagger/include/RadioClock.yaml#/RadioClockReport" + description: "Radio clock report data for Channel." RadiosondeDemodReport: $ref: "http://swgserver:8081/api/swagger/include/RadiosondeDemod.yaml#/RadiosondeDemodReport" + description: "Radiosonde demod report data for Channel." RemoteSourceReport: $ref: "http://swgserver:8081/api/swagger/include/RemoteSource.yaml#/RemoteSourceReport" + description: "Remote source report data for Channel." RTTYDemodReport: $ref: "http://swgserver:8081/api/swagger/include/RTTYDemod.yaml#/RTTYDemodReport" + description: "Rtty demod report data for Channel." RTTYModReport: $ref: "http://swgserver:8081/api/swagger/include/RTTYMod.yaml#/RTTYModReport" + description: "Rtty mod report data for Channel." PacketDemodReport: $ref: "http://swgserver:8081/api/swagger/include/PacketDemod.yaml#/PacketDemodReport" + description: "Packet demod report data for Channel." PacketModReport: $ref: "http://swgserver:8081/api/swagger/include/PacketMod.yaml#/PacketModReport" + description: "Packet mod report data for Channel." PagerDemodReport: $ref: "http://swgserver:8081/api/swagger/include/PagerDemod.yaml#/PagerDemodReport" + description: "Pager demod report data for Channel." PSK31ModReport: $ref: "http://swgserver:8081/api/swagger/include/PSK31Mod.yaml#/PSK31ModReport" + description: "Psk31 mod report data for Channel." SigMFFileSinkReport: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkReport" + description: "Sig mf file sink report data for Channel." SSBModReport: $ref: "http://swgserver:8081/api/swagger/include/SSBMod.yaml#/SSBModReport" + description: "Ssb mod report data for Channel." UDPSourceReport: $ref: "http://swgserver:8081/api/swagger/include/UDPSource.yaml#/UDPSourceReport" + description: "UDP source report data for Channel." UDPSinkReport: $ref: "http://swgserver:8081/api/swagger/include/UDPSink.yaml#/UDPSinkReport" + description: "UDP sink report data for Channel." # VORDemodMCReport: # $ref: "http://swgserver:8081/api/swagger/include/VORDemodMC.yaml#/VORDemodMCReport" VORDemodReport: $ref: "http://swgserver:8081/api/swagger/include/VORDemod.yaml#/VORDemodReport" + description: "Vor demod report data for Channel." WDSPRxReport: $ref: "http://swgserver:8081/api/swagger/include/WDSPRx.yaml#/WDSPRxReport" + description: "Wdsp receive report data for Channel." WFMDemodReport: $ref: "http://swgserver:8081/api/swagger/include/WFMDemod.yaml#/WFMDemodReport" + description: "Wfm demod report data for Channel." WFMModReport: $ref: "http://swgserver:8081/api/swagger/include/WFMMod.yaml#/WFMModReport" + description: "Wfm mod report data for Channel." diff --git a/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml b/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml index 6566f2fcc..5bf9ffa84 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml @@ -11,6 +11,8 @@ ChannelSettings: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorDeviceSetIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer @@ -19,135 +21,201 @@ ChannelSettings: type: integer ADSBDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/ADSBDemod.yaml#/ADSBDemodSettings" + description: "ADS-B demod settings configuration for Channel." AISDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/AISDemod.yaml#/AISDemodSettings" + description: "AIS demod settings configuration for Channel." AISModSettings: $ref: "http://swgserver:8081/api/swagger/include/AISMod.yaml#/AISModSettings" + description: "AIS mod settings configuration for Channel." AMDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/AMDemod.yaml#/AMDemodSettings" + description: "Am demod settings configuration for Channel." AMModSettings: $ref: "http://swgserver:8081/api/swagger/include/AMMod.yaml#/AMModSettings" + description: "Am mod settings configuration for Channel." APTDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/APTDemod.yaml#/APTDemodSettings" + description: "Apt demod settings configuration for Channel." ATVDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/ATVDemod.yaml#/ATVDemodSettings" + description: "Atv demod settings configuration for Channel." ATVModSettings: $ref: "http://swgserver:8081/api/swagger/include/ATVMod.yaml#/ATVModSettings" + description: "Atv mod settings configuration for Channel." BeamSteeringCWModSettings: $ref: "http://swgserver:8081/api/swagger/include/BeamSteeringCWMod.yaml#/BeamSteeringCWModSettings" + description: "Beam steering CW mod settings configuration for Channel." BFMDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/BFMDemod.yaml#/BFMDemodSettings" + description: "BFM demod settings configuration for Channel." ChannelAnalyzerSettings: $ref: "http://swgserver:8081/api/swagger/include/ChannelAnalyzer.yaml#/ChannelAnalyzerSettings" + description: "Channel analyzer settings configuration for Channel." ChannelPowerSettings: $ref: "http://swgserver:8081/api/swagger/include/ChannelPower.yaml#/ChannelPowerSettings" + description: "Channel power settings configuration for Channel." ChirpChatDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/ChirpChatDemod.yaml#/ChirpChatDemodSettings" + description: "Chirp chat demod settings configuration for Channel." ChirpChatModSettings: $ref: "http://swgserver:8081/api/swagger/include/ChirpChatMod.yaml#/ChirpChatModSettings" + description: "Chirp chat mod settings configuration for Channel." DATVModSettings: $ref: "http://swgserver:8081/api/swagger/include/DATVMod.yaml#/DATVModSettings" + description: "Datv mod settings configuration for Channel." DATVDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/DATVDemod.yaml#/DATVDemodSettings" + description: "Datv demod settings configuration for Channel." DABDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/DABDemod.yaml#/DABDemodSettings" + description: "Dab demod settings configuration for Channel." DOA2Settings: $ref: "http://swgserver:8081/api/swagger/include/DOA2.yaml#/DOA2Settings" + description: "Doa2 settings configuration for Channel." DSCDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/DSCDemod.yaml#/DSCDemodSettings" + description: "Dsc demod settings configuration for Channel." DSDDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/DSDDemod.yaml#/DSDDemodSettings" + description: "Dsd demod settings configuration for Channel." EndOfTrainDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/EndOfTrainDemod.yaml#/EndOfTrainDemodSettings" + description: "End of train demod settings configuration for Channel." FileSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkSettings" + description: "File sink settings configuration for Channel." FileSourceSettings: $ref: "http://swgserver:8081/api/swagger/include/FileSource.yaml#/FileSourceSettings" + description: "File source settings configuration for Channel." FreeDVDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/FreeDVDemod.yaml#/FreeDVDemodSettings" + description: "Free dv demod settings configuration for Channel." FreeDVModSettings: $ref: "http://swgserver:8081/api/swagger/include/FreeDVMod.yaml#/FreeDVModSettings" + description: "Free dv mod settings configuration for Channel." FreqScannerSettings: $ref: "http://swgserver:8081/api/swagger/include/FreqScanner.yaml#/FreqScannerSettings" + description: "Freq scanner settings configuration for Channel." FreqTrackerSettings: $ref: "http://swgserver:8081/api/swagger/include/FreqTracker.yaml#/FreqTrackerSettings" + description: "Freq tracker settings configuration for Channel." FT8DemodSettings: $ref: "http://swgserver:8081/api/swagger/include/FT8Demod.yaml#/FT8DemodSettings" + description: "Ft8 demod settings configuration for Channel." HeatMapSettings: $ref: "http://swgserver:8081/api/swagger/include/HeatMap.yaml#/HeatMapSettings" + description: "Heat map settings configuration for Channel." ILSDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/ILSDemod.yaml#/ILSDemodSettings" + description: "Ils demod settings configuration for Channel." InmarsatDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/InmarsatDemod.yaml#/InmarsatDemodSettings" + description: "Inmarsat demod settings configuration for Channel." InterferometerSettings: $ref: "http://swgserver:8081/api/swagger/include/Interferometer.yaml#/InterferometerSettings" + description: "Interferometer settings configuration for Channel." IEEE_802_15_4_ModSettings: $ref: "http://swgserver:8081/api/swagger/include/IEEE_802_15_4_Mod.yaml#/IEEE_802_15_4_ModSettings" + description: "Ieee 802 15 4 mod settings configuration for Channel." M17DemodSettings: $ref: "http://swgserver:8081/api/swagger/include/M17Demod.yaml#/M17DemodSettings" + description: "M17 demod settings configuration for Channel." M17ModSettings: $ref: "http://swgserver:8081/api/swagger/include/M17Mod.yaml#/M17ModSettings" + description: "M17 mod settings configuration for Channel." MeshtasticDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/MeshtasticDemod.yaml#/MeshtasticDemodSettings" + description: "Meshtastic demod settings configuration for Channel." MeshtasticModSettings: $ref: "http://swgserver:8081/api/swagger/include/MeshtasticMod.yaml#/MeshtasticModSettings" + description: "Meshtastic mod settings configuration for Channel." MeshcoreDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/MeshcoreDemod.yaml#/MeshcoreDemodSettings" + description: "Meshcore demod settings configuration for Channel." MeshcoreModSettings: $ref: "http://swgserver:8081/api/swagger/include/MeshcoreMod.yaml#/MeshcoreModSettings" + description: "Meshcore mod settings configuration for Channel." NavtexDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/NavtexDemod.yaml#/NavtexDemodSettings" + description: "Navtex demod settings configuration for Channel." NFMDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/NFMDemod.yaml#/NFMDemodSettings" + description: "Nfm demod settings configuration for Channel." NFMModSettings: $ref: "http://swgserver:8081/api/swagger/include/NFMMod.yaml#/NFMModSettings" + description: "Nfm mod settings configuration for Channel." NoiseFigureSettings: $ref: "http://swgserver:8081/api/swagger/include/NoiseFigure.yaml#/NoiseFigureSettings" + description: "Noise figure settings configuration for Channel." LocalSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/LocalSink.yaml#/LocalSinkSettings" + description: "Local sink settings configuration for Channel." LocalSourceSettings: $ref: "http://swgserver:8081/api/swagger/include/LocalSource.yaml#/LocalSourceSettings" + description: "Local source settings configuration for Channel." PacketDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/PacketDemod.yaml#/PacketDemodSettings" + description: "Packet demod settings configuration for Channel." PacketModSettings: $ref: "http://swgserver:8081/api/swagger/include/PacketMod.yaml#/PacketModSettings" + description: "Packet mod settings configuration for Channel." PagerDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/PagerDemod.yaml#/PagerDemodSettings" + description: "Pager demod settings configuration for Channel." PSK31ModSettings: $ref: "http://swgserver:8081/api/swagger/include/PSK31Mod.yaml#/PSK31ModSettings" + description: "Psk31 mod settings configuration for Channel." RadioAstronomySettings: $ref: "http://swgserver:8081/api/swagger/include/RadioAstronomy.yaml#/RadioAstronomySettings" + description: "Radio astronomy settings configuration for Channel." RadioClockSettings: $ref: "http://swgserver:8081/api/swagger/include/RadioClock.yaml#/RadioClockSettings" + description: "Radio clock settings configuration for Channel." RadiosondeDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/RadiosondeDemod.yaml#/RadiosondeDemodSettings" + description: "Radiosonde demod settings configuration for Channel." RemoteSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteSink.yaml#/RemoteSinkSettings" + description: "Remote sink settings configuration for Channel." RemoteSourceSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteSource.yaml#/RemoteSourceSettings" + description: "Remote source settings configuration for Channel." RemoteTCPSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteTCPSink.yaml#/RemoteTCPSinkSettings" + description: "Remote TCP sink settings configuration for Channel." RTTYDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/RTTYDemod.yaml#/RTTYDemodSettings" + description: "Rtty demod settings configuration for Channel." RTTYModSettings: $ref: "http://swgserver:8081/api/swagger/include/RTTYMod.yaml#/RTTYModSettings" + description: "Rtty mod settings configuration for Channel." SigMFFileSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileSink.yaml#/SigMFFileSinkSettings" + description: "Sig mf file sink settings configuration for Channel." SSBModSettings: $ref: "http://swgserver:8081/api/swagger/include/SSBMod.yaml#/SSBModSettings" + description: "Ssb mod settings configuration for Channel." SSBDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/SSBDemod.yaml#/SSBDemodSettings" + description: "Ssb demod settings configuration for Channel." UDPSourceSettings: $ref: "http://swgserver:8081/api/swagger/include/UDPSource.yaml#/UDPSourceSettings" + description: "UDP source settings configuration for Channel." UDPSinkSettings: $ref: "http://swgserver:8081/api/swagger/include/UDPSink.yaml#/UDPSinkSettings" + description: "UDP sink settings configuration for Channel." # VORDemodMCSettings: # $ref: "http://swgserver:8081/api/swagger/include/VORDemodMC.yaml#/VORDemodMCSettings" VORDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/VORDemod.yaml#/VORDemodSettings" + description: "Vor demod settings configuration for Channel." WDSPRxSettings: $ref: "http://swgserver:8081/api/swagger/include/WDSPRx.yaml#/WDSPRxSettings" + description: "Wdsp receive settings configuration for Channel." WFMDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/WFMDemod.yaml#/WFMDemodSettings" + description: "Wfm demod settings configuration for Channel." WFMModSettings: $ref: "http://swgserver:8081/api/swagger/include/WFMMod.yaml#/WFMModSettings" + description: "Wfm mod settings configuration for Channel." diff --git a/swagger/sdrangel/api/swagger/include/ChirpChatDemod.yaml b/swagger/sdrangel/api/swagger/include/ChirpChatDemod.yaml index b9eb085a4..c38813fac 100644 --- a/swagger/sdrangel/api/swagger/include/ChirpChatDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/ChirpChatDemod.yaml @@ -4,8 +4,11 @@ ChirpChatDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,11 +40,14 @@ ChirpChatDemodSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Chirp chat demod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -55,6 +61,8 @@ ChirpChatDemodSettings: * 8 - Blackman-Harris 7 term codingScheme: type: integer + minimum: 0 + maximum: 2 description: > message encoding scheme (ChirpChatDemodSettings::CodingScheme): * 0 - LoRa @@ -63,6 +71,8 @@ ChirpChatDemodSettings: decodeActive: description: boolean 1 to activate 0 to de-activate decoder type: integer + minimum: 0 + maximum: 1 eomSquelchTenths: description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 type: integer @@ -90,8 +100,12 @@ ChirpChatDemodSettings: sendViaUDP: description: boolean 1 to send decoded message via UDP else 0 type: integer + minimum: 0 + maximum: 1 udoEnabled: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Send via UDP * 0 - Do not send decoded messages via UDP @@ -102,36 +116,53 @@ ChirpChatDemodSettings: udpPort: description: UDP destination port type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChirpChatDemodReport: description: ChirpChatDemod @@ -154,12 +185,17 @@ ChirpChatDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." syncWord: description: 2 bytes sync word (0..65535) type: integer + minimum: 0 + maximum: 65535 hasCRC: description: boolean 1 if payload CRC is present else 0 (LoRa) type: integer + minimum: 0 + maximum: 1 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -174,6 +210,8 @@ ChirpChatDemodReport: type: integer headerParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Header FEC parity status: * 0 - Undefined @@ -185,6 +223,8 @@ ChirpChatDemodReport: type: integer payloadParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Payload FEC parity status: * 0 - Undefined @@ -207,6 +247,8 @@ ChirpChatDemodReport: type: string decoding: type: integer + minimum: 0 + maximum: 1 description: > Boolean - decoding status * 0 - no decoding diff --git a/swagger/sdrangel/api/swagger/include/ChirpChatMod.yaml b/swagger/sdrangel/api/swagger/include/ChirpChatMod.yaml index 58d14202a..0c405bbcb 100644 --- a/swagger/sdrangel/api/swagger/include/ChirpChatMod.yaml +++ b/swagger/sdrangel/api/swagger/include/ChirpChatMod.yaml @@ -4,8 +4,11 @@ ChirpChatModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,6 +40,7 @@ ChirpChatModSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Chirp chat mod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer @@ -49,11 +53,17 @@ ChirpChatModSettings: syncWord: description: 2 byte (0..65535) synchronization syncWord type: integer + minimum: 0 + maximum: 65535 channelMute: description: boolean type: integer + minimum: 0 + maximum: 1 codingScheme: type: integer + minimum: 0 + maximum: 2 description: > message encoding scheme (ChirpChatModSettings::CodingScheme): * 0 - LoRa @@ -82,6 +92,8 @@ ChirpChatModSettings: type: string messageType: type: integer + minimum: 0 + maximum: 10 description: > type of message to send (ChirpChatModSettings::MessageType): * 0 - No message i.e no output. Use this as a transition to resend the same message. @@ -133,40 +145,58 @@ ChirpChatModSettings: udpEnabled: description: boolean 1 to enable forwarding messages via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpAddress: description: UDP address to listen for messages to transmit on type: string udpPort: description: UDP port to listen for messages to transmit on type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ChirpChatModReport: description: ChirpChatMod @@ -177,6 +207,7 @@ ChirpChatModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." symbolTimeMs: description: symbol duration (ms) type: number @@ -191,6 +222,8 @@ ChirpChatModReport: format: float playing: type: integer + minimum: 0 + maximum: 1 description: > Boolean - modulator is active (playing) including idle time * 0 - Modulator not active diff --git a/swagger/sdrangel/api/swagger/include/Command.yaml b/swagger/sdrangel/api/swagger/include/Command.yaml index 997954296..b0477318d 100644 --- a/swagger/sdrangel/api/swagger/include/Command.yaml +++ b/swagger/sdrangel/api/swagger/include/Command.yaml @@ -3,21 +3,31 @@ Command: properties: group: type: string + description: "Group for Command." description: type: string + description: "Human-readable description." command: type: string + description: "Command for Command." argString: type: string + description: "Arg string for Command." key: - description: Qt::Key + description: > + Keyboard key that triggers the command. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key. type: integer keyModifiers: - description: Qt::KeyboardModifiers + description: > + Modifiers for the trigger key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier. type: integer associateKey: description: boolean type: integer + minimum: 0 + maximum: 1 release: description: boolean - type: integer \ No newline at end of file + type: integer + minimum: 0 + maximum: 1 diff --git a/swagger/sdrangel/api/swagger/include/DABDemod.yaml b/swagger/sdrangel/api/swagger/include/DABDemod.yaml index 30b0fe15c..977bdecd7 100644 --- a/swagger/sdrangel/api/swagger/include/DABDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/DABDemod.yaml @@ -4,37 +4,157 @@ DABDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." program: type: string + description: "Program setting for Dab demod." volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 audioDeviceName: type: string + description: "Name of the audio device to use." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +DABProgram: + description: "A programme service discovered in the currently tuned DAB ensemble." + properties: + name: + type: string + description: "Exact transmitted service label. Use this value for the program setting." + id: + type: integer + description: "DAB service identifier." + +DABDemodReport: + description: > + Live DAB demodulator, ensemble and selected-programme status. Synchronization, + discovered programmes and active audio do not by themselves prove clean reception; + check SNR after selecting a programme and after every receiver gain change. + properties: + channelPowerDB: + type: number + format: float + description: "Average power in the demodulator channel in dB." + channelSampleRate: + type: integer + description: "Effective complex channel sample rate in samples per second. DAB requires 2048000." + audioSampleRate: + type: integer + description: "Audio output sample rate in samples per second." + sync: + type: integer + minimum: 0 + maximum: 1 + description: "DAB synchronization state (1 synchronized, 0 not synchronized)." + snr: + type: integer + description: > + DAB decoder signal-to-noise ratio in dB. A value of 0 dB or less after + synchronization and audio become active is not a healthy result and can indicate + receiver overload. With an RTL-SDR, reduce tuner gain through its supported values, + wait briefly after each change, and re-read this report. Select the gain that gives + the best positive SNR rather than assuming that higher gain is better. + frequencyOffset: + type: integer + description: "Frequency offset estimated by the DAB decoder in Hz." + ensembleName: + type: string + description: "Label of the currently decoded ensemble." + ensembleId: + type: integer + description: "Identifier of the currently decoded ensemble." + programs: + type: array + description: "Programme services discovered in the currently tuned ensemble." + items: + $ref: "http://swgserver:8081/api/swagger/include/DABDemod.yaml#/DABProgram" + selectedProgram: + type: string + description: "Exact service label currently requested by the program setting." + audioActive: + type: integer + minimum: 0 + maximum: 1 + description: "Whether programme audio metadata has been received and audio decoding is active." + bitrate: + type: integer + description: "Selected programme audio bitrate in kbit/s." + audio: + type: string + description: "Selected programme audio codec and channel-mode description." + language: + type: string + description: "Selected programme language." + programType: + type: string + description: "Selected programme type, such as News or Pop Music." + frameQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Audio frame decode quality as a percentage." + reedSolomonQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Reed-Solomon decode quality as a percentage." + aacQuality: + type: integer + minimum: 0 + maximum: 100 + description: "AAC decode quality as a percentage." + fibQuality: + type: integer + minimum: 0 + maximum: 100 + description: "Fast Information Block decode quality as a percentage." + tii: + type: integer + description: "Decoded Transmitter Identification Information value." + data: + type: string + description: "Latest dynamic text/data associated with the selected programme." diff --git a/swagger/sdrangel/api/swagger/include/DATVDemod.yaml b/swagger/sdrangel/api/swagger/include/DATVDemod.yaml index 538c9b71c..c77b4d56e 100644 --- a/swagger/sdrangel/api/swagger/include/DATVDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/DATVDemod.yaml @@ -3,20 +3,28 @@ DATVDemodSettings: properties: rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." rfBandwidth: type: integer + description: "RF bandwidth in Hz." centerFrequency: type: integer + description: "Device center frequency in Hz." standard: type: integer + minimum: 0 + maximum: 1 description: > DVB bersion (see DATVDemodSettings::dvb_version) * 0 - DVB-S * 1 - DVB-S2 modulation: type: integer + minimum: 0 + maximum: 8 description: > Modulation type (DATVDemodSettings::DATVModulation) * 0 - BPSK @@ -30,6 +38,8 @@ DATVDemodSettings: * 8 - QAM256 fec: type: integer + minimum: 0 + maximum: 12 description: > FEC rate (see DATVDemodSettings::DATVCodeRate) * 0 - 1/2 @@ -57,12 +67,17 @@ DATVDemodSettings: audioMute: description: (boolean) mute audio output type: integer + minimum: 0 + maximum: 1 audioDeviceName: type: string + description: "Name of the audio device to use." symbolRate: type: integer + description: "Symbol rate setting for Datv demod." notchFilters: type: integer + description: "Notch filters setting for Datv demod." allowDrift: description: (boolean) allow a larger frequency drift (DVB-S) type: integer @@ -76,6 +91,8 @@ DATVDemodSettings: * 1 - Linear * 2 - Root Raised Cosine type: integer + minimum: 0 + maximum: 2 hardMetric: description: (boolean) (DVB-S) type: integer @@ -83,6 +100,8 @@ DATVDemodSettings: description: RRC filter roll-off factor (0..1) type: number format: float + minimum: 0 + maximum: 1 viterbi: description: (boolean) (DVB-S) type: integer @@ -91,37 +110,56 @@ DATVDemodSettings: type: integer audioVolume: type: integer + description: "Audio volume setting for Datv demod." videoMute: description: boolean type: integer + minimum: 0 + maximum: 1 udpTSAddress: type: string + description: "UDP ts address." udpTSPort: type: integer + description: "UDP ts port." udpTS: description: boolean type: integer + minimum: 0 + maximum: 1 playerEnable: description: boolean type: integer + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DATVDemodReport: description: DATVDemod @@ -133,15 +171,23 @@ DATVDemodReport: audioActive: description: Audio is active (1 for yes, 0 for now) type: integer + minimum: 0 + maximum: 1 audioDecodeOK: description: Audio decode (1 for OK, 0 for KO) type: integer + minimum: 0 + maximum: 1 videoActive: description: Audio is active (1 for yes, 0 for now) type: integer + minimum: 0 + maximum: 1 videoDecodeOK: description: Video decode (1 for OK, 0 for KO) type: integer + minimum: 0 + maximum: 1 udpRunning: description: UDP thread (1 running, 0 idle) type: integer @@ -183,10 +229,14 @@ DATVDemodReport: * 12: 3/5 setByModcod: type: integer + minimum: 0 + maximum: 1 description: Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no) mer: type: number format: float + description: "Reported mer." cnr: type: number format: float + description: "Reported cnr." diff --git a/swagger/sdrangel/api/swagger/include/DATVMod.yaml b/swagger/sdrangel/api/swagger/include/DATVMod.yaml index a7a10de13..0139ff3e5 100644 --- a/swagger/sdrangel/api/swagger/include/DATVMod.yaml +++ b/swagger/sdrangel/api/swagger/include/DATVMod.yaml @@ -4,9 +4,11 @@ DATVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." standard: description: "Broadcast standard (DVB-S=0)" type: integer @@ -28,9 +30,12 @@ DATVModSettings: type: integer imageFileName: type: string + description: "Image file name or path." imageOverlayTimestamp: description: "Overlay timestamp on still image (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 imageServiceProvider: description: "Service provider name for image overlay" type: string @@ -42,40 +47,60 @@ DATVModSettings: type: integer tsFileName: type: string + description: "Ts file name." tsFilePlayLoop: type: integer + description: "Ts file play loop setting for Datv mod." tsFilePlay: description: "(Pause=0 Play=1)" type: integer udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: description: "UDP port number to receive MPEG transport stream on" type: integer + minimum: 1 + maximum: 65535 channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DATVModReport: description: DATVMod @@ -86,12 +111,17 @@ DATVModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." dataRate: type: integer + description: "Reported data rate." tsFileBitrate: type: integer + description: "Reported ts file bitrate." tsFileLength: type: integer + description: "Reported ts file length." udpByteCount: type: integer format: int64 + description: "Number of udp byte events or items." diff --git a/swagger/sdrangel/api/swagger/include/DOA2.yaml b/swagger/sdrangel/api/swagger/include/DOA2.yaml index b62a88a40..7fe9e2545 100644 --- a/swagger/sdrangel/api/swagger/include/DOA2.yaml +++ b/swagger/sdrangel/api/swagger/include/DOA2.yaml @@ -6,20 +6,28 @@ DOA2Settings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." phase: type: integer description: Phase difference correction in degrees from -180 to +180 antennaAz: type: integer + minimum: 0 + maximum: 359 description: Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359 basebandDistance: type: integer + minimum: 1 + maximum: 99999 description: Antennas baseline distance in millimeters from 1 to 99999 squelchdB: type: integer @@ -30,32 +38,49 @@ DOA2Settings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DOA2Report: description: DOA2 properties: phi: type: integer + minimum: 0 + maximum: 180 description: Raw phase difference in degrees from 0 to 180 posAz: type: integer + minimum: 0 + maximum: 180 description: Calculated port side (positive) arrival angle in degrees from 0 to 180 negAz: type: integer + minimum: 0 + maximum: 180 description: Calculated starboard side (negative) arrival angle in degrees from 0 to 180 blindAngle: type: integer diff --git a/swagger/sdrangel/api/swagger/include/DSCDemod.yaml b/swagger/sdrangel/api/swagger/include/DSCDemod.yaml index 51aee23bf..eb87c0b6e 100644 --- a/swagger/sdrangel/api/swagger/include/DSCDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/DSCDemod.yaml @@ -4,51 +4,83 @@ DSCDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." filterInvalid: type: integer + description: "Filter invalid setting for Dsc demod." filterColumn: type: integer + description: "Filter column setting for Dsc demod." filter: type: string + description: "Filter setting for Dsc demod." udpEnabled: type: integer + description: "Enable udp (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer + description: "UDP port number." + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DSCDemodReport: description: DSCDemod @@ -59,3 +91,4 @@ DSCDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/DSDDemod.yaml b/swagger/sdrangel/api/swagger/include/DSDDemod.yaml index d0c87f99c..fda01ee8a 100644 --- a/swagger/sdrangel/api/swagger/include/DSDDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/DSDDemod.yaml @@ -4,79 +4,118 @@ DSDDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." demodGain: type: number format: float + description: "Demod gain setting for Dsd demod." volume: type: number format: float + description: "Audio volume multiplier." baudRate: type: integer + description: "Serial-port baud rate in bits per second." squelchGate: type: integer + description: "Squelch gate duration." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 enableCosineFiltering: type: integer + description: "Enable cosine filtering (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 syncOrConstellation: type: integer + description: "Sync or constellation setting for Dsd demod." slot1On: type: integer + description: "Slot1 on setting for Dsd demod." slot2On: type: integer + description: "Slot2 on setting for Dsd demod." tdmaStereo: type: integer + description: "Tdma stereo setting for Dsd demod." pllLock: type: integer + description: "Pll lock setting for Dsd demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." highPassFilter: type: integer + description: "High pass filter setting for Dsd demod." traceLengthMutliplier: description: multiply by 50ms type: integer traceStroke: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 traceDecay: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ambeFeatureIndex: type: integer description: index of AMBE controller feature to be used for AMBE frames decoding connectAMBE: type: integer + minimum: 0 + maximum: 1 description: > Decode frames with AMBE feature * 0 - Do not decode frames with AMBE feature @@ -90,8 +129,10 @@ DSDDemodReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." squelch: description: squelch status (1 if open else 0) type: integer diff --git a/swagger/sdrangel/api/swagger/include/DemodAnalyzer.yaml b/swagger/sdrangel/api/swagger/include/DemodAnalyzer.yaml index f18530ad0..1914fbdf6 100644 --- a/swagger/sdrangel/api/swagger/include/DemodAnalyzer.yaml +++ b/swagger/sdrangel/api/swagger/include/DemodAnalyzer.yaml @@ -3,15 +3,20 @@ DemodAnalyzerSettings: properties: log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." fileRecordName: type: string description: Output wave file name recordToFile: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 1 - recording @@ -21,24 +26,35 @@ DemodAnalyzerSettings: description: Record silence time before stopping recording in 10ths of seconds useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DemodAnalyzerActions: description: "Demod Analyzer actions" diff --git a/swagger/sdrangel/api/swagger/include/Denoiser.yaml b/swagger/sdrangel/api/swagger/include/Denoiser.yaml index dbc911e00..1ac503b7f 100644 --- a/swagger/sdrangel/api/swagger/include/Denoiser.yaml +++ b/swagger/sdrangel/api/swagger/include/Denoiser.yaml @@ -3,12 +3,16 @@ DenoiserSettings: properties: denoiserType: type: integer + minimum: 0 + maximum: 1 description: > Denoiser type * 0 - none * 1 - RNnoise enableDenoiser: type: integer + minimum: 0 + maximum: 1 description: > Enable denoiser * 1 - enable @@ -22,39 +26,54 @@ DenoiserSettings: description: Audio output device name audioMute: type: integer + minimum: 0 + maximum: 1 description: > Audio mute * 1 - mute * 0 - unmute title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." fileRecordName: type: string description: Output wave file name recordToFile: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 1 - recording * 0 - not recording useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." DenoiserActions: description: "Denoiser actions" diff --git a/swagger/sdrangel/api/swagger/include/DeviceActions.yaml b/swagger/sdrangel/api/swagger/include/DeviceActions.yaml index 12eb0da65..c2bab7b37 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceActions.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceActions.yaml @@ -11,8 +11,11 @@ DeviceActions: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer sigMFFileInputActions: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputActions" + description: "Sig mf file input actions configuration for Device." diff --git a/swagger/sdrangel/api/swagger/include/DeviceReports.yaml b/swagger/sdrangel/api/swagger/include/DeviceReports.yaml index 59139dc4f..d571ab71a 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceReports.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceReports.yaml @@ -11,69 +11,104 @@ DeviceReport: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 airspyReport: $ref: "http://swgserver:8081/api/swagger/include/Airspy.yaml#/AirspyReport" + description: "Airspy report data for Device." airspyHFReport: $ref: "http://swgserver:8081/api/swagger/include/AirspyHF.yaml#/AirspyHFReport" + description: "Airspy hf report data for Device." androidSDRDriverInputReport: $ref: "http://swgserver:8081/api/swagger/include/AndroidSDRDriverInput.yaml#/AndroidSDRDriverInputReport" + description: "Android sdr driver input report data for Device." bladeRF2InputReport: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2InputReport" + description: "Blade rf2 input report data for Device." bladeRF2OutputReport: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2OutputReport" + description: "Blade rf2 output report data for Device." bladeRF2MIMOReport: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2MIMOReport" + description: "Blade rf2 MIMO report data for Device." fileInputReport: $ref: "http://swgserver:8081/api/swagger/include/FileInput.yaml#/FileInputReport" + description: "File input report data for Device." kiwiSDRReport: $ref: "http://swgserver:8081/api/swagger/include/KiwiSDR.yaml#/KiwiSDRReport" + description: "Kiwi sdr report data for Device." limeSdrInputReport: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrInputReport" + description: "Lime sdr input report data for Device." limeSdrOutputReport: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport" + description: "Lime sdr output report data for Device." limeSdrMIMOReport: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrMIMOReport" + description: "Lime sdr MIMO report data for Device." localInputReport: $ref: "http://swgserver:8081/api/swagger/include/LocalInput.yaml#/LocalInputReport" + description: "Local input report data for Device." localOutputReport: $ref: "http://swgserver:8081/api/swagger/include/LocalOutput.yaml#/LocalOutputReport" + description: "Local output report data for Device." perseusReport: $ref: "http://swgserver:8081/api/swagger/include/Perseus.yaml#/PerseusReport" + description: "Perseus report data for Device." plutoSdrInputReport: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrInputReport" + description: "Pluto sdr input report data for Device." plutoSdrOutputReport: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrOutputReport" + description: "Pluto sdr output report data for Device." plutoSdrMIMOReport: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrMIMOReport" + description: "Pluto sdr MIMO report data for Device." rtlSdrReport: $ref: "http://swgserver:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrReport" + description: "Rtl sdr report data for Device." remoteOutputReport: $ref: "http://swgserver:8081/api/swagger/include/RemoteOutput.yaml#/RemoteOutputReport" + description: "Remote output report data for Device." remoteInputReport: $ref: "http://swgserver:8081/api/swagger/include/RemoteInput.yaml#/RemoteInputReport" + description: "Remote input report data for Device." remoteTCPInputReport: $ref: "http://swgserver:8081/api/swagger/include/RemoteTCPInput.yaml#/RemoteTCPInputReport" + description: "Remote TCP input report data for Device." sdrPlayReport: $ref: "http://swgserver:8081/api/swagger/include/SDRPlay.yaml#/SDRPlayReport" + description: "Sdr play report data for Device." sdrPlayV3Report: $ref: "http://swgserver:8081/api/swagger/include/SDRPlayV3.yaml#/SDRPlayV3Report" + description: "Sdr play v3 report data for Device." sigMFFileInputReport: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputReport" + description: "Sig mf file input report data for Device." soapySDRInputReport: $ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRReport" + description: "Soapy sdr input report data for Device." soapySDROutputReport: $ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRReport" + description: "Soapy sdr output report data for Device." usrpInputReport: $ref: "http://swgserver:8081/api/swagger/include/USRP.yaml#/USRPInputReport" + description: "Usrp input report data for Device." usrpOutputReport: $ref: "http://swgserver:8081/api/swagger/include/USRP.yaml#/USRPOutputReport" + description: "Usrp output report data for Device." xtrxInputReport: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputReport" + description: "Xtrx input report data for Device." xtrxOutputReport: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputReport" + description: "Xtrx output report data for Device." xtrxMIMOReport: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxMIMOReport" + description: "Xtrx MIMO report data for Device." AaroniaRTSAReport: $ref: "http://swgserver:8081/api/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAReport" + description: "Aaronia rtsa report data for Device." aaroniaRTSAOutputReport: $ref: "http://swgserver:8081/api/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAOutputReport" + description: "Aaronia rtsa output report data for Device." diff --git a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml index 0c6b1a32d..3f8ad4f06 100644 --- a/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/DeviceSettings.yaml @@ -11,100 +11,149 @@ DeviceSettings: direction: description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) type: integer + minimum: 0 + maximum: 2 originatorIndex: description: Optional for reverse API. This is the device set index from where the message comes from. type: integer airspySettings: $ref: "http://swgserver:8081/api/swagger/include/Airspy.yaml#/AirspySettings" + description: "Airspy settings configuration for Device." airspyHFSettings: $ref: "http://swgserver:8081/api/swagger/include/AirspyHF.yaml#/AirspyHFSettings" + description: "Airspy hf settings configuration for Device." androidSDRDriverInputSettings: $ref: "http://swgserver:8081/api/swagger/include/AndroidSDRDriverInput.yaml#/AndroidSDRDriverInputSettings" + description: "Android sdr driver input settings configuration for Device." audioCATSISOSettings: $ref: "http://swgserver:8081/api/swagger/include/AudioCATSISO.yaml#/AudioCATSISOSettings" + description: "Audio catsiso settings configuration for Device." audioInputSettings: $ref: "http://swgserver:8081/api/swagger/include/AudioInput.yaml#/AudioInputSettings" + description: "Audio input settings configuration for Device." audioOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/AudioOutput.yaml#/AudioOutputSettings" + description: "Audio output settings configuration for Device." bladeRF1InputSettings: $ref: "http://swgserver:8081/api/swagger/include/BladeRF1.yaml#/BladeRF1InputSettings" + description: "Blade rf1 input settings configuration for Device." bladeRF2InputSettings: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2InputSettings" + description: "Blade rf2 input settings configuration for Device." bladeRF1OutputSettings: $ref: "http://swgserver:8081/api/swagger/include/BladeRF1.yaml#/BladeRF1OutputSettings" + description: "Blade rf1 output settings configuration for Device." bladeRF2OutputSettings: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2OutputSettings" + description: "Blade rf2 output settings configuration for Device." bladeRF2MIMOSettings: $ref: "http://swgserver:8081/api/swagger/include/BladeRF2.yaml#/BladeRF2MIMOSettings" + description: "Blade rf2 MIMO settings configuration for Device." fcdProSettings: $ref: "http://swgserver:8081/api/swagger/include/FCDPro.yaml#/FCDProSettings" + description: "Fcd pro settings configuration for Device." fcdProPlusSettings: $ref: "http://swgserver:8081/api/swagger/include/FCDProPlus.yaml#/FCDProPlusSettings" + description: "Fcd pro plus settings configuration for Device." fileInputSettings: $ref: "http://swgserver:8081/api/swagger/include/FileInput.yaml#/FileInputSettings" + description: "File input settings configuration for Device." fileOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/FileOutput.yaml#/FileOutputSettings" + description: "File output settings configuration for Device." hackRFInputSettings: $ref: "http://swgserver:8081/api/swagger/include/HackRF.yaml#/HackRFInputSettings" + description: "Hack RF input settings configuration for Device." hackRFOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/HackRF.yaml#/HackRFOutputSettings" + description: "Hack RF output settings configuration for Device." kiwiSDRSettings: $ref: "http://swgserver:8081/api/swagger/include/KiwiSDR.yaml#/KiwiSDRSettings" + description: "Kiwi sdr settings configuration for Device." limeSdrInputSettings: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrInputSettings" + description: "Lime sdr input settings configuration for Device." limeSdrOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings" + description: "Lime sdr output settings configuration for Device." limeSdrMIMOSettings: $ref: "http://swgserver:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrMIMOSettings" + description: "Lime sdr MIMO settings configuration for Device." localInputSettings: $ref: "http://swgserver:8081/api/swagger/include/LocalInput.yaml#/LocalInputSettings" + description: "Local input settings configuration for Device." localOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/LocalOutput.yaml#/LocalOutputSettings" + description: "Local output settings configuration for Device." metisMISOSettings: $ref: "http://swgserver:8081/api/swagger/include/MetisMISO.yaml#/MetisMISOSettings" + description: "Metis miso settings configuration for Device." perseusSettings: $ref: "http://swgserver:8081/api/swagger/include/Perseus.yaml#/PerseusSettings" + description: "Perseus settings configuration for Device." plutoSdrInputSettings: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrInputSettings" + description: "Pluto sdr input settings configuration for Device." plutoSdrOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrOutputSettings" + description: "Pluto sdr output settings configuration for Device." plutoSdrMIMOSettings: $ref: "http://swgserver:8081/api/swagger/include/PlutoSdr.yaml#/PlutoSdrMIMOSettings" + description: "Pluto sdr MIMO settings configuration for Device." rtlSdrSettings: $ref: "http://swgserver:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrSettings" + description: "Rtl sdr settings configuration for Device." remoteOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteOutput.yaml#/RemoteOutputSettings" + description: "Remote output settings configuration for Device." remoteInputSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteInput.yaml#/RemoteInputSettings" + description: "Remote input settings configuration for Device." remoteTCPInputSettings: $ref: "http://swgserver:8081/api/swagger/include/RemoteTCPInput.yaml#/RemoteTCPInputSettings" + description: "Remote TCP input settings configuration for Device." sdrPlaySettings: $ref: "http://swgserver:8081/api/swagger/include/SDRPlay.yaml#/SDRPlaySettings" + description: "Sdr play settings configuration for Device." sdrPlayV3Settings: $ref: "http://swgserver:8081/api/swagger/include/SDRPlayV3.yaml#/SDRPlayV3Settings" + description: "Sdr play v3 settings configuration for Device." sigMFFileInputSettings: $ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputSettings" + description: "Sig mf file input settings configuration for Device." soapySDRInputSettings: $ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRInputSettings" + description: "Soapy sdr input settings configuration for Device." soapySDROutputSettings: $ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDROutputSettings" + description: "Soapy sdr output settings configuration for Device." testMISettings: $ref: "http://swgserver:8081/api/swagger/include/TestMI.yaml#/TestMISettings" + description: "Test mi settings configuration for Device." testMOSyncSettings: $ref: "http://swgserver:8081/api/swagger/include/TestMOSync.yaml#/TestMOSyncSettings" + description: "Test mo sync settings configuration for Device." testSourceSettings: $ref: "http://swgserver:8081/api/swagger/include/TestSource.yaml#/TestSourceSettings" + description: "Test source settings configuration for Device." usrpInputSettings: $ref: "http://swgserver:8081/api/swagger/include/USRP.yaml#/USRPInputSettings" + description: "Usrp input settings configuration for Device." usrpOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/USRP.yaml#/USRPOutputSettings" + description: "Usrp output settings configuration for Device." xtrxInputSettings: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxInputSettings" + description: "Xtrx input settings configuration for Device." xtrxOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxOutputSettings" + description: "Xtrx output settings configuration for Device." xtrxMIMOSettings: $ref: "http://swgserver:8081/api/swagger/include/Xtrx.yaml#/XtrxMIMOSettings" + description: "Xtrx MIMO settings configuration for Device." aaroniaRTSASettings: $ref: "http://swgserver:8081/api/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSASettings" + description: "Aaronia rtsa settings configuration for Device." aaroniaRTSAOutputSettings: $ref: "http://swgserver:8081/api/swagger/include/AaroniaRTSA.yaml#/AaroniaRTSAOutputSettings" + description: "Aaronia rtsa output settings configuration for Device." diff --git a/swagger/sdrangel/api/swagger/include/EndOfTrainDemod.yaml b/swagger/sdrangel/api/swagger/include/EndOfTrainDemod.yaml index 7171a1311..713b187b8 100644 --- a/swagger/sdrangel/api/swagger/include/EndOfTrainDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/EndOfTrainDemod.yaml @@ -4,49 +4,75 @@ EndOfTrainDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." udpEnabled: description: "Whether to forward received packets to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received packets to" type: string udpPort: description: "UDP port to forward received packets to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." EndOfTrainDemodReport: description: EndOfTrainDemod @@ -57,3 +83,4 @@ EndOfTrainDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/FCDPro.yaml b/swagger/sdrangel/api/swagger/include/FCDPro.yaml index 711cc5bd9..c85e9f444 100644 --- a/swagger/sdrangel/api/swagger/include/FCDPro.yaml +++ b/swagger/sdrangel/api/swagger/include/FCDPro.yaml @@ -3,58 +3,91 @@ FCDProSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lnaGainIndex: type: integer + description: "Selected lna gain index." rfFilterIndex: type: integer + description: "Selected rf filter index." lnaEnhanceIndex: type: integer + description: "Selected lna enhance index." bandIndex: type: integer + description: "Selected band index." mixerGainIndex: type: integer + description: "Selected mixer gain index." mixerFilterIndex: type: integer + description: "Selected mixer filter index." biasCurrentIndex: type: integer + description: "Selected bias current index." modeIndex: type: integer + description: "Selected mode index." gain1Index: type: integer + description: "Selected gain1 index." rcFilterIndex: type: integer + description: "Selected rc filter index." gain2Index: type: integer + description: "Selected gain2 index." gain3Index: type: integer + description: "Selected gain3 index." gain4Index: type: integer + description: "Selected gain4 index." ifFilterIndex: type: integer + description: "Selected if filter index." gain5Index: type: integer + description: "Selected gain5 index." gain6Index: type: integer + description: "Selected gain6 index." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -62,9 +95,16 @@ FCDProSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/FCDProPlus.yaml b/swagger/sdrangel/api/swagger/include/FCDProPlus.yaml index 9e8758204..c297b25f5 100644 --- a/swagger/sdrangel/api/swagger/include/FCDProPlus.yaml +++ b/swagger/sdrangel/api/swagger/include/FCDProPlus.yaml @@ -3,13 +3,17 @@ FCDProPlusSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." rangeLow: description: Range select (1 if low else 0) type: integer @@ -22,25 +26,43 @@ FCDProPlusSettings: biasT: description: Bias tee select (1 if selected else 0) type: integer + minimum: 0 + maximum: 1 ifGain: type: integer + description: "Intermediate-frequency gain setting." ifFilterIndex: type: integer + description: "Selected if filter index." rfFilterIndex: type: integer + description: "Selected rf filter index." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqImbalance: type: integer + description: "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -48,9 +70,16 @@ FCDProPlusSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/FT8Demod.yaml b/swagger/sdrangel/api/swagger/include/FT8Demod.yaml index 2eb1055eb..a4cc7cf03 100644 --- a/swagger/sdrangel/api/swagger/include/FT8Demod.yaml +++ b/swagger/sdrangel/api/swagger/include/FT8Demod.yaml @@ -4,18 +4,25 @@ FT8DemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." filterIndex: type: integer + description: "Selected filter index." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -30,17 +37,24 @@ FT8DemodSettings: volume: type: number format: float + description: "Audio volume multiplier." agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 recordWav: type: integer + minimum: 0 + maximum: 1 description: > Record received audio as 12000S/s 16 bit .wav file * 0 - Do not record * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location logMessages: type: integer + minimum: 0 + maximum: 1 description: > Log decoded messages in WSJT CALL.TXT format * 0 - Do not log messages @@ -54,6 +68,8 @@ FT8DemodSettings: description: Decoder time budget in seconds (will stop after running this time) useOSD: type: integer + minimum: 0 + maximum: 1 description: > Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid * 0 - Disable @@ -66,46 +82,66 @@ FT8DemodSettings: description: minimum of valid LDPC bits (out of 83) necessary to activate OSD verifyOSD: type: integer + minimum: 0 + maximum: 1 description: > Verify OSD decoded message against a list of validated callsigns * 0 - Disable * 1 - Enable enablePSKReporter: type: integer + minimum: 0 + maximum: 1 description: > Enable reporting of decoded messages to PSK Reporter server * 0 - Disable * 1 - Enable pskReporterCallsign: type: string + description: "Psk reporter callsign setting for Ft8 demod." pskReporterLocator: type: string + description: "Psk reporter locator setting for Ft8 demod." pskReporterSoftware: type: string + description: "Psk reporter software setting for Ft8 demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FT8DemodReport: description: FT8Demod @@ -119,3 +155,4 @@ FT8DemodReport: type: integer channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/FeatureActions.yaml b/swagger/sdrangel/api/swagger/include/FeatureActions.yaml index d1d96f690..d8a93fb5e 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureActions.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureActions.yaml @@ -15,31 +15,49 @@ FeatureActions: type: integer AFCActions: $ref: "http://swgserver:8081/api/swagger/include/AFC.yaml#/AFCActions" + description: "Afc actions configuration for Feature." AMBEActions: $ref: "http://swgserver:8081/api/swagger/include/AMBE.yaml#/AMBEActions" + description: "Ambe actions configuration for Feature." GS232ControllerActions: $ref: "http://swgserver:8081/api/swagger/include/GS232Controller.yaml#/GS232ControllerActions" + description: "Gs232 controller actions configuration for Feature." LimeRFEActions: $ref: "http://swgserver:8081/api/swagger/include/LimeRFE.yaml#/LimeRFEActions" + description: "Lime rfe actions configuration for Feature." MapActions: $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapActions" + description: "Map actions configuration for Feature." MorseDecoderActions: $ref: "http://swgserver:8081/api/swagger/include/MorseDecoder.yaml#/MorseDecoderActions" + description: "Morse decoder actions configuration for Feature." PERTesterActions: $ref: "http://swgserver:8081/api/swagger/include/PERTester.yaml#/PERTesterActions" + description: "Per tester actions configuration for Feature." RigCtlServerActions: $ref: "http://swgserver:8081/api/swagger/include/RigCtlServer.yaml#/RigCtlServerActions" + description: "Rig ctl server actions configuration for Feature." + MCPServerActions: + $ref: "http://swgserver:8081/api/swagger/include/MCPServer.yaml#/MCPServerActions" + description: "Mcp server actions configuration for Feature." SatelliteTrackerActions: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerActions" + description: "Satellite tracker actions configuration for Feature." SimplePTTActions: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTActions" + description: "Simple ptt actions configuration for Feature." SkyMapActions: $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapActions" + description: "Sky map actions configuration for Feature." StarTrackerActions: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerActions" + description: "Star tracker actions configuration for Feature." VORLocalizerActions: $ref: "http://swgserver:8081/api/swagger/include/VORLocalizer.yaml#/VORLocalizerActions" + description: "Vor localizer actions configuration for Feature." DemodAnalyzerActions: $ref: "http://swgserver:8081/api/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerActions" + description: "Demod analyzer actions configuration for Feature." DenoiserActions: $ref: "http://swgserver:8081/api/swagger/include/Denoiser.yaml#/DenoiserActions" + description: "Denoiser actions configuration for Feature." diff --git a/swagger/sdrangel/api/swagger/include/FeatureReport.yaml b/swagger/sdrangel/api/swagger/include/FeatureReport.yaml index baa6bae95..7b40878d7 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureReport.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureReport.yaml @@ -7,29 +7,54 @@ FeatureReport: featureType: description: Feature type code type: string + AISReport: + $ref: "http://swgserver:8081/api/swagger/include/AIS.yaml#/AISReport" + description: "Ais report data for Feature." + APRSReport: + $ref: "http://swgserver:8081/api/swagger/include/APRS.yaml#/APRSReport" + description: "Aprs report data for Feature." + RadiosondeReport: + $ref: "http://swgserver:8081/api/swagger/include/Radiosonde.yaml#/RadiosondeReport" + description: "Radiosonde report data for Feature." AFCReport: $ref: "http://swgserver:8081/api/swagger/include/AFC.yaml#/AFCReport" + description: "Afc report data for Feature." AMBEReport: $ref: "http://swgserver:8081/api/swagger/include/AMBE.yaml#/AMBEReport" + description: "Ambe report data for Feature." FreqDisplayReport: $ref: "http://swgserver:8081/api/swagger/include/FreqDisplay.yaml#/FreqDisplayReport" + description: "Freq display report data for Feature." GS232ControllerReport: $ref: "http://swgserver:8081/api/swagger/include/GS232Controller.yaml#/GS232ControllerReport" + description: "Gs232 controller report data for Feature." LimeRFEReport: $ref: "http://swgserver:8081/api/swagger/include/LimeRFE.yaml#/LimeRFEReport" + description: "Lime rfe report data for Feature." MapReport: $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapReport" + description: "Map report data for Feature." PERTesterReport: $ref: "http://swgserver:8081/api/swagger/include/PERTester.yaml#/PERTesterReport" + description: "Per tester report data for Feature." RigCtlServerReport: $ref: "http://swgserver:8081/api/swagger/include/RigCtlServer.yaml#/RigCtlServerReport" + description: "Rig ctl server report data for Feature." + MCPServerReport: + $ref: "http://swgserver:8081/api/swagger/include/MCPServer.yaml#/MCPServerReport" + description: "Mcp server report data for Feature." SatelliteTrackerReport: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerReport" + description: "Satellite tracker report data for Feature." SimplePTTReport: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTReport" + description: "Simple ptt report data for Feature." SkyMapReport: $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapReport" + description: "Sky map report data for Feature." StarTrackerReport: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerReport" + description: "Star tracker report data for Feature." VORLocalizerReport: $ref: "http://swgserver:8081/api/swagger/include/VORLocalizer.yaml#/VORLocalizerReport" + description: "Vor localizer report data for Feature." diff --git a/swagger/sdrangel/api/swagger/include/FeatureSetPreset.yaml b/swagger/sdrangel/api/swagger/include/FeatureSetPreset.yaml index e3dfccc3a..bc93b7d65 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureSetPreset.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureSetPreset.yaml @@ -6,15 +6,19 @@ FeatureConfig: type: string config: $ref: "http://swgserver:8081/api/swagger/include/FeatureSettings.yaml#/FeatureSettings" + description: "Configuration data." FeatureSetPreset: description: Represents a Feature Set Preset object properties: group: type: string + description: "Group for Feature set preset." description: type: string + description: "Human-readable description." featureConfigs: type: array + description: "List of feature configs." items: $ref: "http://swgserver:8081/api/swagger/include/FeatureSetPreset.yaml#/FeatureConfig" diff --git a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml index 8540bd5f4..11e7a1345 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml @@ -15,45 +15,70 @@ FeatureSettings: type: integer AFCSettings: $ref: "http://swgserver:8081/api/swagger/include/AFC.yaml#/AFCSettings" + description: "Afc settings configuration for Feature." AISSettings: $ref: "http://swgserver:8081/api/swagger/include/AIS.yaml#/AISSettings" + description: "AIS settings configuration for Feature." AMBESettings: $ref: "http://swgserver:8081/api/swagger/include/AMBE.yaml#/AMBESettings" + description: "Ambe settings configuration for Feature." AntennaToolsSettings: $ref: "http://swgserver:8081/api/swagger/include/AntennaTools.yaml#/AntennaToolsSettings" + description: "Antenna tools settings configuration for Feature." APRSSettings: $ref: "http://swgserver:8081/api/swagger/include/APRS.yaml#/APRSSettings" + description: "Aprs settings configuration for Feature." DemodAnalyzerSettings: $ref: "http://swgserver:8081/api/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerSettings" + description: "Demod analyzer settings configuration for Feature." DenoiserSettings: $ref: "http://swgserver:8081/api/swagger/include/Denoiser.yaml#/DenoiserSettings" + description: "Denoiser settings configuration for Feature." JogdialControllerSettings: $ref: "http://swgserver:8081/api/swagger/include/JogdialController.yaml#/JogdialControllerSettings" + description: "Jogdial controller settings configuration for Feature." FreqDisplaySettings: $ref: "http://swgserver:8081/api/swagger/include/FreqDisplay.yaml#/FreqDisplaySettings" + description: "Freq display settings configuration for Feature." GS232ControllerSettings: $ref: "http://swgserver:8081/api/swagger/include/GS232Controller.yaml#/GS232ControllerSettings" + description: "Gs232 controller settings configuration for Feature." LimeRFESettings: $ref: "http://swgserver:8081/api/swagger/include/LimeRFE.yaml#/LimeRFESettings" + description: "Lime rfe settings configuration for Feature." MapSettings: $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapSettings" + description: "Map settings configuration for Feature." MorseDecoderSettings: $ref: "http://swgserver:8081/api/swagger/include/MorseDecoder.yaml#/MorseDecoderSettings" + description: "Morse decoder settings configuration for Feature." PERTesterSettings: $ref: "http://swgserver:8081/api/swagger/include/PERTester.yaml#/PERTesterSettings" + description: "Per tester settings configuration for Feature." RadiosondeSettings: $ref: "http://swgserver:8081/api/swagger/include/Radiosonde.yaml#/RadiosondeSettings" + description: "Radiosonde settings configuration for Feature." RigCtlServerSettings: $ref: "http://swgserver:8081/api/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings" + description: "Rig ctl server settings configuration for Feature." + MCPServerSettings: + $ref: "http://swgserver:8081/api/swagger/include/MCPServer.yaml#/MCPServerSettings" + description: "Mcp server settings configuration for Feature." SatelliteTrackerSettings: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerSettings" + description: "Satellite tracker settings configuration for Feature." SIDSettings: $ref: "http://swgserver:8081/api/swagger/include/SID.yaml#/SIDSettings" + description: "Sid settings configuration for Feature." SimplePTTSettings: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTSettings" + description: "Simple ptt settings configuration for Feature." SkyMapSettings: $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapSettings" + description: "Sky map settings configuration for Feature." StarTrackerSettings: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerSettings" + description: "Star tracker settings configuration for Feature." VORLocalizerSettings: $ref: "http://swgserver:8081/api/swagger/include/VORLocalizer.yaml#/VORLocalizerSettings" + description: "Vor localizer settings configuration for Feature." diff --git a/swagger/sdrangel/api/swagger/include/FileInput.yaml b/swagger/sdrangel/api/swagger/include/FileInput.yaml index 9546318e5..f76b67250 100644 --- a/swagger/sdrangel/api/swagger/include/FileInput.yaml +++ b/swagger/sdrangel/api/swagger/include/FileInput.yaml @@ -3,6 +3,7 @@ FileInputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read type: string @@ -15,18 +16,26 @@ FileInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." FileInputReport: description: FileInput properties: fileName: type: string + description: "File name or path." sampleRate: description: Record sample rate in S/s type: integer diff --git a/swagger/sdrangel/api/swagger/include/FileOutput.yaml b/swagger/sdrangel/api/swagger/include/FileOutput.yaml index ea5a38846..eb4479c26 100644 --- a/swagger/sdrangel/api/swagger/include/FileOutput.yaml +++ b/swagger/sdrangel/api/swagger/include/FileOutput.yaml @@ -3,23 +3,34 @@ FileOutputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read type: string centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer format: int64 + description: "Sample rate in samples per second." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/FileSink.yaml b/swagger/sdrangel/api/swagger/include/FileSink.yaml index 50ace59f8..72d344f07 100644 --- a/swagger/sdrangel/api/swagger/include/FileSink.yaml +++ b/swagger/sdrangel/api/swagger/include/FileSink.yaml @@ -3,17 +3,23 @@ FileSinkSettings: properties: inputFrequencyOffset: type: integer + description: "Channel frequency offset from the device center frequency in Hz." fileRecordName: type: string description: full path of the reference file rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." spectrumSquelchMode: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch system * 0 - deactivated @@ -30,6 +36,8 @@ FileSinkSettings: description: Number of seconds to record after spectrum squelch closes squelchRecordingEnable: type: integer + minimum: 0 + maximum: 1 description: > Automatic recording triggered by spectrum squelch * 0 - disabled @@ -40,26 +48,39 @@ FileSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FileSinkReport: description: FileSink properties: spectrumSquelch: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch status * 0 - closed @@ -70,10 +91,14 @@ FileSinkReport: description: Current spectrum max in squared magnitude (power) sinkSampleRate: type: integer + description: "Sample rate accepted by the sink in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." recording: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 0 - not recording @@ -94,6 +119,8 @@ FileSinkActions: properties: record: type: integer + minimum: 0 + maximum: 1 description: > Record action * 0 - stop recording diff --git a/swagger/sdrangel/api/swagger/include/FileSource.yaml b/swagger/sdrangel/api/swagger/include/FileSource.yaml index b26446b26..d8c8571be 100644 --- a/swagger/sdrangel/api/swagger/include/FileSource.yaml +++ b/swagger/sdrangel/api/swagger/include/FileSource.yaml @@ -9,38 +9,54 @@ FileSourceSettings: type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." gainDB: type: integer + description: "Gain dB in dB." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FileSourceReport: description: FileSource properties: fileName: type: string + description: "File name or path." fileSampleRate: description: Record sample rate in S/s type: integer @@ -69,6 +85,8 @@ FileSourceActions: properties: play: type: integer + minimum: 0 + maximum: 1 description: > Play or Pause stream * 0 - Pause diff --git a/swagger/sdrangel/api/swagger/include/FreeDVDemod.yaml b/swagger/sdrangel/api/swagger/include/FreeDVDemod.yaml index e47280b60..52c255e5c 100644 --- a/swagger/sdrangel/api/swagger/include/FreeDVDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/FreeDVDemod.yaml @@ -4,6 +4,7 @@ FreeDVDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." volume: description: Audio volume type: number @@ -14,40 +15,60 @@ FreeDVDemodSettings: format: float spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." freeDVMode: type: integer + description: "Free dv mode setting for Free dv demod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreeDVDemodReport: description: FreeDVDemod @@ -61,5 +82,7 @@ FreeDVDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/FreeDVMod.yaml b/swagger/sdrangel/api/swagger/include/FreeDVMod.yaml index efff3c9d6..aaafe154c 100644 --- a/swagger/sdrangel/api/swagger/include/FreeDVMod.yaml +++ b/swagger/sdrangel/api/swagger/include/FreeDVMod.yaml @@ -4,52 +4,80 @@ FreeDVModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Free dv mod." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." freeDVMode: type: integer + description: "Free dv mode setting for Free dv mod." modAFInput: type: integer + description: "Audio-frequency modulation input selection." gaugeInputElseModem: type: integer + description: "Gauge input else modem setting for Free dv mod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "http://swgserver:8081/api/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreeDVModReport: description: FreeDVMod @@ -60,5 +88,7 @@ FreeDVModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/FreqDisplay.yaml b/swagger/sdrangel/api/swagger/include/FreqDisplay.yaml index c116361ed..7ccc61567 100644 --- a/swagger/sdrangel/api/swagger/include/FreqDisplay.yaml +++ b/swagger/sdrangel/api/swagger/include/FreqDisplay.yaml @@ -6,45 +6,69 @@ FreqDisplaySettings: type: string fontName: type: string + description: "Font name setting for Freq display." transparentBackground: type: integer + description: "Transparent background setting for Freq display." displayMode: description: (0 Frequency, 1 Power, 2 Frequency and Power) type: integer speechEnabled: type: integer + description: "Enable speech (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 frequencyUnits: description: (0 Hz, 1 kHz, 2 MHz, 3 GHz) type: integer showUnits: type: integer + description: "Show units setting for Freq display." freqDecimalPlaces: type: integer + description: "Freq decimal places setting for Freq display." powerDecimalPlaces: type: integer + description: "Power decimal places setting for Freq display." textcolor: type: integer + description: "Textcolor setting for Freq display." dropShadowEnabled: type: integer + description: "Enable drop shadow (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 dropShadowColor: type: integer + description: "Drop shadow color encoded as an integer." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqDisplayReport: description: "Frequency Display report" diff --git a/swagger/sdrangel/api/swagger/include/FreqScanner.yaml b/swagger/sdrangel/api/swagger/include/FreqScanner.yaml index c6d4110ed..6f12d55de 100644 --- a/swagger/sdrangel/api/swagger/include/FreqScanner.yaml +++ b/swagger/sdrangel/api/swagger/include/FreqScanner.yaml @@ -2,71 +2,119 @@ FreqScannerSettings: description: FreqScanner properties: channelBandwidth: - description: channel RF bandwidth in Hz + description: > + Bandwidth in Hz of each scanned channel. type: integer channelShift: - description: controlled channel frequency shift in Hz + description: > + Frequency shift in Hz applied to the tuned channel from the scanned frequency, + for modes such as SSB or CW where the signal sits on one side of centre. type: integer channelFrequencyOffset: - description: channel center frequency shift from baseband center in Hz + description: > + Minimum frequency shift in Hz of the tuned channel from the centre of + reception, used to keep it clear of a DC spike. type: integer threshold: type: number format: float + description: > + Power threshold in dB above which a scanned frequency counts as active. frequencies: type: array + description: "List of frequencies." items: $ref: "http://swgserver:8081/api/swagger/include/FreqScanner.yaml#/FreqScannerFrequency" channel: type: string + description: > + Channel that is tuned to the active frequency, as a device set and channel + index, for example "R1:0" for channel 0 of receive device set 1. scanTime: type: number format: float + description: > + Time in seconds that each power measurement is averaged over. retransmitTime: type: number format: float + description: > + Time in seconds to wait after the power on the active frequency falls below + the threshold before scanning restarts. In multiplex mode this is instead the + time spent listening to each frequency. tuneTime: type: number format: float + description: > + Time in milliseconds to wait after retuning the device before measuring, to allow + for PLL settling and device to host transfer latency. priority: type: integer + description: > + Which frequency becomes active when several are above the threshold + * 0 - the one with the highest power + * 1 - the one earliest in the frequency list measurement: type: integer + description: > + How channel power is measured from the FFT bins + * 0 - peak, the highest bin + * 1 - total, the sum of every bin mode: type: integer + description: > + Run mode + * 0 - single, scan every frequency once and stop + * 1 - continuous, rescan when the active frequency goes quiet + * 2 - scan only, measure repeatedly without ever tuning the channel + * 3 - multiplex, step through the frequencies listening to each in turn rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqScannerReport: description: FreqScanner properties: channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." scanState: description: (IDLE=0, START_SCAN=1, SCANNING=2, WAIT_FOR_END_TX=3, WAIT_FOR_RETRANSMISSION=4) type: integer channelState: type: array + description: "List of channel state." items: $ref: "http://swgserver:8081/api/swagger/include/FreqScanner.yaml#/FreqScannerChannelState" @@ -85,24 +133,44 @@ FreqScannerFrequency: frequency: type: integer format: int64 + description: > + Frequency to scan, in Hz. enabled: type: integer + description: > + Whether this frequency takes part in the scan (1 to scan it, 0 to skip it). notes: type: string + description: > + Free text note about this frequency, such as the station or service name. channel: type: string + description: > + Overrides the scanner-wide channel for this frequency only, as a device set and + channel index such as "R1:0". Empty to use the scanner's own channel setting. channelBandwidth: type: string + description: > + Overrides the scanner-wide channel bandwidth in Hz for this frequency only. + Empty to use the scanner's own setting. threshold: type: string + description: > + Overrides the scanner-wide power threshold in dB for this frequency only. + Empty to use the scanner's own setting. squelch: type: string + description: > + Squelch threshold in dB to apply to the tuned channel when this frequency becomes + active. Empty to leave the channel's own squelch alone. FreqScannerActions: description: "Frequency Scanner actions" properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/FreqTracker.yaml b/swagger/sdrangel/api/swagger/include/FreqTracker.yaml index 0fffb7b69..d10213bda 100644 --- a/swagger/sdrangel/api/swagger/include/FreqTracker.yaml +++ b/swagger/sdrangel/api/swagger/include/FreqTracker.yaml @@ -11,16 +11,22 @@ FreqTrackerSettings: format: float log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." squelch: description: power squelch threshold in decibels type: number format: float rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." alphaEMA: description: Alpha factor for delta frequency EMA type: number @@ -28,6 +34,8 @@ FreqTrackerSettings: tracking: description: Tracking 1 for enabled 0 for disabled type: integer + minimum: 0 + maximum: 1 trackerType: description: Tracker element type (FLL, PLL...) type: integer @@ -37,6 +45,8 @@ FreqTrackerSettings: rrc: description: RRC filter (1 for on, 0 for off) type: integer + minimum: 0 + maximum: 1 rrcRolloff: description: RRC filter rolloff factor in % type: integer @@ -49,20 +59,31 @@ FreqTrackerSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FreqTrackerReport: description: FreqTracker @@ -79,5 +100,7 @@ FreqTrackerReport: type: integer sampleRate: type: integer + description: "Sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/GLScope.yaml b/swagger/sdrangel/api/swagger/include/GLScope.yaml index 996e4da42..c46881b85 100644 --- a/swagger/sdrangel/api/swagger/include/GLScope.yaml +++ b/swagger/sdrangel/api/swagger/include/GLScope.yaml @@ -5,8 +5,25 @@ TraceData: description: Source I/Q stream index type: integer projectionType: - description: Complex to real projection type. See Projector::ProjectionType - type: integer + description: > + Projection applied to turn the complex signal into a real trace + * 0 - real part + * 1 - imaginary part + * 2 - magnitude, linear + * 3 - squared magnitude (power), linear + * 4 - time derivative of the squared magnitude + * 5 - squared magnitude in dB + * 6 - phase + * 7 - direction of arrival from phase, positive branch + * 8 - direction of arrival from phase, negative branch + * 9 - phase derivative, instantaneous frequency + * 10 - BPSK phase comparator + * 11 - QPSK phase comparator + * 12 - 8-PSK phase comparator + * 13 - 16-PSK phase comparator + type: integer + minimum: 0 + maximum: 13 inputIndex: description: Input or feed index this trace is associated with type: integer @@ -63,8 +80,25 @@ TriggerData: description: Source I/Q stream index type: integer projectionType: - description: Complex to real projection type. See Projector::ProjectionType - type: integer + description: > + Projection applied to turn the complex signal into a real trace + * 0 - real part + * 1 - imaginary part + * 2 - magnitude, linear + * 3 - squared magnitude (power), linear + * 4 - time derivative of the squared magnitude + * 5 - squared magnitude in dB + * 6 - phase + * 7 - direction of arrival from phase, positive branch + * 8 - direction of arrival from phase, negative branch + * 9 - phase derivative, instantaneous frequency + * 10 - BPSK phase comparator + * 11 - QPSK phase comparator + * 12 - 8-PSK phase comparator + * 13 - 16-PSK phase comparator + type: integer + minimum: 0 + maximum: 13 inputIndex: description: Input or feed index this trigger is associated with type: integer @@ -74,8 +108,10 @@ TriggerData: format: float triggerLevelCoarse: type: integer + description: "Trigger level coarse for Trigger data." triggerLevelFine: type: integer + description: "Trigger level fine for Trigger data." triggerPositiveEdge: description: Trigger on the positive edge (else negative). Boolean type: integer @@ -94,8 +130,10 @@ TriggerData: format: float triggerDelayCoarse: type: integer + description: "Trigger delay coarse for Trigger data." triggerDelayFine: type: integer + description: "Trigger delay fine for Trigger data." triggerRepeat: description: Number of trigger conditions before the final decisive trigger type: integer @@ -119,26 +157,41 @@ GLScope: description: GLScopeGUI settings properties: displayMode: - description: see GLScopeSettings::DisplayMode - type: integer + description: > + Arrangement of the two traces on the scope + * 0 - X and Y side by side horizontally + * 1 - X and Y stacked vertically + * 2 - X only + * 3 - Y only + * 4 - polar, Y against X + type: integer + minimum: 0 + maximum: 4 traceIntensity: type: integer + description: "Trace intensity for Gl scope." gridIntensity: type: integer + description: "Grid intensity for Gl scope." time: type: integer + description: "Time for Gl scope." timeOfs: type: integer + description: "Time ofs for Gl scope." traceLenMult: type: integer description: Trace length multiplier (multiplies 4800 samples) trigPre: type: integer + description: "Trig pre for Gl scope." tracesData: type: array + description: "List of traces data." items: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/TraceData" triggersData: type: array + description: "List of triggers data." items: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/TriggerData" diff --git a/swagger/sdrangel/api/swagger/include/GLSpectrum.yaml b/swagger/sdrangel/api/swagger/include/GLSpectrum.yaml index edaf0c805..14c20de8f 100644 --- a/swagger/sdrangel/api/swagger/include/GLSpectrum.yaml +++ b/swagger/sdrangel/api/swagger/include/GLSpectrum.yaml @@ -4,12 +4,15 @@ SpectrumHistogramMarker: frequency: type: number format: float + description: "Frequency in Hz." power: type: number format: float description: Fixed power mark markerType: type: integer + minimum: 0 + maximum: 2 description: > Marker type * 0 - Fixed power @@ -20,6 +23,8 @@ SpectrumHistogramMarker: description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Marker display state * 0 - Hidden @@ -31,6 +36,7 @@ SpectrumWaterfallMarker: frequency: type: number format: float + description: "Frequency in Hz." time: type: number format: float @@ -40,6 +46,8 @@ SpectrumWaterfallMarker: description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Marker display state * 0 - Hidden @@ -51,18 +59,26 @@ SpectrumAnnotationMarker: startFrequency: type: integer format: int64 + description: "Start frequency in Hz." bandwidth: type: integer + description: "Bandwidth in Hz." markerColor: type: integer description: Color in 8 bit BGR series show: type: integer + minimum: 0 + maximum: 3 description: > SpectrumAnnotationMarker::ShowState - Marker display state * 0 - Hidden * 1 - Only top marker visible * 2 - Fully visible with text and full sized limits + * 3 - Text only + text: + type: string + description: "Text displayed against the marker." SpectrumCalibrationPoint: description: Spectrum calibration point settings @@ -70,22 +86,44 @@ SpectrumCalibrationPoint: frequency: type: integer format: int64 + description: "Frequency in Hz." powerRelativeReference: type: number format: float + description: "Power relative reference for Spectrum calibration point." powerAbsoluteReference: type: number format: float + description: "Power absolute reference for Spectrum calibration point." + +SpectrumMemorySettings: + description: Display settings for one saved spectrum memory. The captured spectrum samples are not transferred through settings APIs. + properties: + display: + description: Display this saved spectrum memory (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + color: + description: Display colour encoded as an RGB integer. + type: integer + label: + description: User-visible label for this saved spectrum memory. + type: string GLSpectrum: description: GLSpectrumGUI settings properties: fftSize: type: integer + description: "FFT size in samples." fftOverlap: type: integer + description: "FFT overlap for Gl spectrum." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -100,59 +138,248 @@ GLSpectrum: refLevel: type: number format: float + description: "Ref level for Gl spectrum." powerRange: type: number format: float + description: "Power range for Gl spectrum." fpsPeriodMs: type: integer description: FPS capping period in milliseconds. 0 for no limit. displayWaterfall: description: boolean type: integer + minimum: 0 + maximum: 1 + display3DSpectrogram: + description: Display the 3D spectrogram instead of the 2D waterfall (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + spectrogramStyle: + description: > + Rendering style for the 3D spectrogram. + * 0 - Points + * 1 - Lines + * 2 - Solid + * 3 - Outline + * 4 - Shaded (requires OpenGL 3.3 or later) + type: integer + minimum: 0 + maximum: 4 + truncateFreqScale: + description: Truncate the frequency scale to the displayed span (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + colorMap: + description: Colour-map name used for waterfall, 3D spectrogram rendering and spectrum colour gradient. + type: string + spectrumStyle: + description: "Current spectrum trace style: 0 line, 1 filled solid colour, 2 filled colour gradient." + type: integer + minimum: 0 + maximum: 2 + measurement: + description: "Measurement mode: 0 none, 1 peaks, 2 channel power, 3 adjacent-channel power, 4 occupied bandwidth, 5 3 dB bandwidth, 6 SNR, 7 mask." + type: integer + minimum: 0 + maximum: 7 + measurementCenterFrequencyOffset: + description: Measurement centre-frequency offset in Hz. + type: integer + measurementBandwidth: + description: Measurement bandwidth in Hz. + type: integer + minimum: 0 + measurementChSpacing: + description: Adjacent-channel measurement channel spacing in Hz. + type: integer + minimum: 0 + measurementAdjChBandwidth: + description: Adjacent-channel measurement bandwidth in Hz. + type: integer + minimum: 0 + measurementHarmonics: + description: Number of harmonics to measure. + type: integer + minimum: 0 + measurementPeaks: + description: Number of peaks to report. + type: integer + minimum: 0 + measurementHighlight: + description: Highlight the selected measurement (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + measurementsPosition: + description: "Measurement panel position: 0 above, 1 below, 2 left, 3 right." + type: integer + minimum: 0 + maximum: 3 + measurementPrecision: + description: Decimal precision for measurement values. + type: integer + minimum: 0 + findHistogramPeaks: + description: Find peaks in the spectrum histogram (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + showControls: + description: "Spectrum control visibility: 0 minimum, 1 standard, 2 all." + type: integer + minimum: 0 + maximum: 2 + frequencyZoomFactor: + description: Horizontal frequency zoom factor. + type: number + format: float + minimum: 1 + frequencyZoomPos: + description: Horizontal frequency-zoom position as a fraction of the span. + type: number + format: float + minimum: 0 + maximum: 1 + waterfallTimeUnits: + description: "Waterfall time axis: 0 offset, 1 local time, 2 UTC." + type: integer + minimum: 0 + maximum: 2 + waterfallTimeFormat: + description: Qt date/time format used for the waterfall time axis. + type: string + scrollBar: + description: Enable waterfall/3D spectrogram scrolling (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + scrollLength: + description: Maximum waterfall/3D spectrogram history length. + type: integer + minimum: 1 + mathMode: + description: "Spectrum math mode: 0 none, 1-4 moving-average modes, 5-10 saved-memory comparison modes." + type: integer + minimum: 0 + maximum: 10 + mathAvgCount: + description: Number of FFT frames used by spectrum math averaging. + type: integer + minimum: 1 + measurementMemMasks: + description: Bitmask selecting saved spectrum memories used as measurement masks. + type: integer + minimum: 0 + maximum: 3 + displayRBW: + description: Display resolution bandwidth (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayCursorStats: + description: Display cursor statistics (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayPeakStats: + description: Display peak statistics (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + spectrumMemory: + description: Display settings for the two saved spectrum memories. + type: array + maximum: 2 + items: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumMemorySettings" + spectrumColor: + description: Current spectrum trace colour encoded as an RGB integer. + type: integer invertedWaterfall: description: boolean type: integer + minimum: 0 + maximum: 1 displayMaxHold: description: boolean type: integer + minimum: 0 + maximum: 1 displayHistogram: description: boolean type: integer + minimum: 0 + maximum: 1 decay: type: integer + description: "Decay for Gl spectrum." displayGrid: description: boolean type: integer + minimum: 0 + maximum: 1 displayGridIntensity: type: integer + description: "Display grid intensity for Gl spectrum." decayDivisor: type: integer + description: "Decay divisor for Gl spectrum." histogramStroke: type: integer + description: "Histogram stroke for Gl spectrum." displayCurrent: description: boolean type: integer + minimum: 0 + maximum: 1 displayTraceIntensity: type: integer + description: "Display trace intensity for Gl spectrum." waterfallShare: type: number format: float + description: "Waterfall share for Gl spectrum." averagingMode: - description: See GLSpectrumGUI::AveragingMode - type: integer + description: > + How successive FFTs are averaged. Selecting a mode does nothing on its own: the number of + FFTs it works over is averagingValue, which must be above 1 for any smoothing to happen. + * 0 - no averaging + * 1 - moving average + * 2 - fixed average over each block + * 3 - maximum held over each block + * 4 - minimum held over each block + type: integer + minimum: 0 + maximum: 4 averagingValue: type: integer + description: > + Number of successive FFTs the averaging mode works over. 1 is no averaging whatever the + mode. Only 1, 2, 5, 10, 20, 50, 100 and so on are available and anything else is rounded + down to one of them. 10 smooths a noisy trace without hiding short signals; 50 or more + is for measuring a noise floor. linear: description: boolean type: integer + minimum: 0 + maximum: 1 ssb: description: boolean type: integer + minimum: 0 + maximum: 1 usb: description: boolean type: integer + minimum: 0 + maximum: 1 wsSpectrum: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Start or stop websocket server * 0 - Stop server @@ -165,6 +392,8 @@ GLSpectrum: type: integer markersDisplay: type: integer + minimum: 0 + maximum: 2 description: > Display markers (SpectrumSettings::MarkersDisplay) * 0 - Mome @@ -172,26 +401,337 @@ GLSpectrum: * 2 - Spectrum annotation markers useCalibration: type: integer + minimum: 0 + maximum: 1 description: boolean calibrationInterpMode: type: integer + minimum: 0 + maximum: 1 description: > Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode * 0 - Linear * 1 - Log (dB linear) histogramMarkers: type: array + description: "List of histogram markers." items: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumHistogramMarker" waterfallMarkers: type: array + description: "List of waterfall markers." items: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumWaterfallMarker" + annotationMarkersMode: + description: > + How annotationMarkers in the same request is applied. Replacing is what a PATCH of an + array means and is what the other marker lists do, but it discards annotations already + there, such as a loaded band plan. Append adds to them instead, so a caller adding one + annotation need not read the list, modify it and write it back. + * 0 - Replace the annotations with those given (the default) + * 1 - Append those given to the annotations already there + type: integer + minimum: 0 + maximum: 1 annotationMarkers: type: array + description: "List of annotation markers." items: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumAnnotationMarker" calibrationPoints: type: array + description: "List of calibration points." items: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumCalibrationPoint" + +GLSpectrumReport: + description: > + The latest values of whichever spectrum measurement is switched on. Which fields are present + depends on the measurement: with none selected nothing is measured at all and only the + measurement field is returned. The figures are those of the spectrum as displayed, so they + match the window rather than the full span when it is zoomed, and they are only produced by a + running GUI. + properties: + measurement: + description: > + Which measurement produced these values. + * 0 - None, nothing is being measured + * 1 - Peaks + * 2 - Channel power + * 3 - Adjacent channel power + * 4 - Occupied bandwidth + * 5 - 3 dB bandwidth + * 6 - SNR + type: integer + updated: + type: string + description: "When these values were last measured, ISO 8601. Absent until the first measurement." + peaks: + type: array + description: "The strongest peaks, most powerful first. Peaks measurement only." + items: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumPeak" + channelPower: + type: number + format: float + description: "Total power in the measurement bandwidth in dB. Channel power measurement only." + adjChannelPowerLeft: + type: number + format: float + description: "Power in the lower adjacent channel in dB." + adjChannelPowerLeftRatio: + type: number + format: float + description: "Lower adjacent channel power ratio in dB, relative to the centre channel." + adjChannelPowerCentre: + type: number + format: float + description: "Power in the centre channel in dB." + adjChannelPowerRight: + type: number + format: float + description: "Power in the upper adjacent channel in dB." + adjChannelPowerRightRatio: + type: number + format: float + description: "Upper adjacent channel power ratio in dB, relative to the centre channel." + occupiedBandwidth: + type: number + format: float + description: "Occupied bandwidth in Hz. Occupied bandwidth measurement only." + bandwidth3dB: + type: number + format: float + description: "3 dB bandwidth in Hz. 3 dB bandwidth measurement only." + snr: + type: number + format: float + description: "Signal to noise ratio in dB. SNR measurement only." + snfr: + type: number + format: float + description: "Signal to noise and distortion free ratio in dB." + thd: + type: number + format: float + description: "Total harmonic distortion in dB." + thdPlusNoise: + type: number + format: float + description: "Total harmonic distortion plus noise in dB." + sinad: + type: number + format: float + description: "Signal to noise and distortion ratio in dB." + sfdr: + type: number + format: float + description: "Spurious free dynamic range in dB." + +SpectrumPeak: + description: One peak found in the spectrum + properties: + frequency: + type: integer + format: int64 + description: "Frequency of the peak in Hz." + power: + type: number + format: float + description: "Power of the peak in dB." + +SpectrumActions: + description: Actions on the main spectrum of a device set + properties: + autoscale: + description: > + Set the reference level and range from the spectrum currently displayed, as the autoscale + button does. Needs a running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + clearSpectrum: + description: > + Discard the accumulated histogram and max hold traces, as the clear button does. Needs a + running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + resetMeasurements: + description: > + Discard the accumulated measurement statistics, so the minimum, maximum and mean columns + start again. Needs a running GUI (1 to do it, 0 to do nothing). + type: integer + minimum: 0 + maximum: 1 + freeze: + description: > + Stop or resume spectrum processing. Unlike the others this acts on the spectrum itself + rather than its display, so it works without a GUI (1 to freeze, 0 to resume). + type: integer + minimum: 0 + maximum: 1 + gotoMarker: + description: > + Retune the device to the annotation marker at this index, counting from 0, as choosing it + in the goto list does. Needs a running GUI. + type: integer + minimum: 0 + +GLSpectrumHistory: + description: > + Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number + of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin + means, and a bin counts as occupied in a row when it is above the floor by the threshold. + Rows taken with another centre frequency or sample rate are skipped and counted. + properties: + centerFrequency: + type: integer + format: int64 + bandwidth: + type: integer + description: "Width of the whole spectrum in Hz." + startFrequency: + type: integer + format: int64 + description: "Centre frequency of the first returned bin in Hz." + stopFrequency: + type: integer + format: int64 + description: "Centre frequency of the last returned bin in Hz." + binBandwidth: + type: integer + description: "Width of each returned bin in Hz." + bins: + type: integer + rows: + type: integer + description: "Rows of history used." + skippedRows: + type: integer + description: "Rows in the period that were taken with the device tuned or sampling differently, and left out." + firstTime: + type: string + description: "Time of the oldest row used, ISO 8601." + lastTime: + type: string + description: "Time of the newest row used, ISO 8601." + seconds: + type: number + format: float + description: "Span between the oldest and newest rows used." + floorDb: + type: number + format: float + description: "The measured noise floor." + thresholdDb: + type: number + format: float + description: "The level above which a bin counts as occupied." + maxDb: + type: array + items: + type: number + format: float + description: "Per bin maximum over the rows." + meanDb: + type: array + items: + type: number + format: float + description: "Per bin mean over the rows." + occupancy: + type: array + items: + type: number + format: float + description: "Per bin fraction of rows in which the bin was above the threshold, 0 to 1." + signalCount: + type: integer + signalList: + type: array + items: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumHistorySignal" + description: "Runs of adjacent bins whose maximum rose above the threshold." +SpectrumHistorySignal: + description: A signal found in the spectrum history + properties: + frequency: + type: integer + format: int64 + description: "Frequency of the strongest bin in Hz." + startFrequency: + type: integer + format: int64 + description: "Lower edge in Hz." + stopFrequency: + type: integer + format: int64 + description: "Upper edge in Hz." + bandwidth: + type: integer + description: "Width in Hz, to the bin." + peakDb: + type: number + format: float + dutyCycle: + type: number + format: float + description: "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + firstSeen: + type: string + description: "Time of the first row it was up in, ISO 8601." + lastSeen: + type: string + description: "Time of the last row it was up in, ISO 8601." +GLSpectrumData: + description: > + A copy of the current power spectrum, reduced to the number of bins asked for so that the + answer stays a sensible size whatever the FFT size. The spectrum is only computed while + something is consuming it, a spectrum window or a websocket client, so updated says how old + these values are and is absent if none has been produced yet. + properties: + centerFrequency: + type: integer + format: int64 + description: "Centre frequency of the whole spectrum in Hz." + bandwidth: + type: integer + description: "Width of the whole spectrum in Hz." + fftSize: + type: integer + description: "Number of bins the spectrum was computed with, before reduction." + linear: + type: integer + minimum: 0 + maximum: 1 + description: "1 when the powers are linear, 0 when they are in dB." + updated: + type: string + description: "When the spectrum was last computed, ISO 8601. Absent if it never has been." + startFrequency: + type: integer + format: int64 + description: "Centre frequency of the first returned bin in Hz." + stopFrequency: + type: integer + format: int64 + description: "Centre frequency of the last returned bin in Hz." + binBandwidth: + type: number + format: float + description: "Width of each returned bin in Hz, after reduction." + bins: + type: integer + description: "Number of values in power." + reduce: + type: string + description: > + How several FFT bins were combined into each returned one, max or mean. Max keeps a narrow + carrier that averaging would bury in its neighbours, which is why it is the default. + power: + type: array + description: "The reduced powers, first bin first." + items: + type: number + format: float diff --git a/swagger/sdrangel/api/swagger/include/GS232Controller.yaml b/swagger/sdrangel/api/swagger/include/GS232Controller.yaml index 0662d7492..8d5acf559 100644 --- a/swagger/sdrangel/api/swagger/include/GS232Controller.yaml +++ b/swagger/sdrangel/api/swagger/include/GS232Controller.yaml @@ -24,6 +24,8 @@ GS232ControllerSettings: track: description: Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 source: description: "Identifier of the channel or feature plugin providing azimuth and elevation (E.g. R0:0 ADSBDemod)" type: string @@ -69,27 +71,40 @@ GS232ControllerSettings: format: float title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." GS232ControllerReport: description: "GS-232 Controller report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -131,6 +146,8 @@ GS232ControllerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/HackRF.yaml b/swagger/sdrangel/api/swagger/include/HackRF.yaml index bdb5cb5ba..6df4435bf 100644 --- a/swagger/sdrangel/api/swagger/include/HackRF.yaml +++ b/swagger/sdrangel/api/swagger/include/HackRF.yaml @@ -3,39 +3,65 @@ HackRFInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." bandwidth: type: integer + description: "Bandwidth in Hz." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." vgaGain: type: integer + description: "Variable-gain-amplifier gain setting." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." biasT: type: integer + description: "Enable antenna bias power (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaExt: type: integer + description: "LNA ext setting for Hack RF input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -43,49 +69,80 @@ HackRFInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." HackRFOutputSettings: description: HackRF properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." bandwidth: type: integer + description: "Bandwidth in Hz." vgaGain: type: integer + description: "Variable-gain-amplifier gain setting." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." biasT: type: integer + description: "Enable antenna bias power (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaExt: type: integer + description: "LNA ext setting for Hack RF output." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/HeatMap.yaml b/swagger/sdrangel/api/swagger/include/HeatMap.yaml index 7c8fa4851..8444c7c33 100644 --- a/swagger/sdrangel/api/swagger/include/HeatMap.yaml +++ b/swagger/sdrangel/api/swagger/include/HeatMap.yaml @@ -4,6 +4,7 @@ HeatMapSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: description: channel RF bandwidth in Hz type: number @@ -11,46 +12,66 @@ HeatMapSettings: minPower: type: number format: float + description: "Min power setting for Heat map." maxPower: type: number format: float + description: "Max power setting for Heat map." colorMapName: type: string + description: "Color map name setting for Heat map." mode: description: "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)" type: integer + minimum: 0 + maximum: 4 pulseThreshold: type: number format: float + description: "Pulse threshold setting for Heat map." averagePeriodUS: description: "Averaging period in microseconds" type: integer sampleRate: type: integer + description: "Sample rate in samples per second." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." HeatMapReport: description: HeatMap @@ -61,3 +82,4 @@ HeatMapReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/IEEE_802_15_4_Mod.yaml b/swagger/sdrangel/api/swagger/include/IEEE_802_15_4_Mod.yaml index 0ac25e4f2..c362570c6 100644 --- a/swagger/sdrangel/api/swagger/include/IEEE_802_15_4_Mod.yaml +++ b/swagger/sdrangel/api/swagger/include/IEEE_802_15_4_Mod.yaml @@ -4,16 +4,22 @@ IEEE_802_15_4_ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." modulation: description: > Modulation type * 0 - BPSK * 1 - OQPSK type: integer + minimum: 0 + maximum: 1 bitRate: type: integer + description: "Bit rate setting for Ieee 802 15 4 mod." subGHzBand: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Over 1 GHz standard @@ -21,17 +27,23 @@ IEEE_802_15_4_ModSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + minimum: 0 + maximum: 1 description: > * 0 - Effective transmission * 1 - Transmission is muted repeat: description: Whether to repeated transmit the frame (1 for yes, 0 for no). type: integer + minimum: 0 + maximum: 1 repeatDelay: description: Delay between repeated transmissions. type: number @@ -41,55 +53,78 @@ IEEE_802_15_4_ModSettings: type: integer rampUpBits: type: integer + description: "Ramp up bits setting for Ieee 802 15 4 mod." rampDownBits: type: integer + description: "Ramp down bits setting for Ieee 802 15 4 mod." rampRange: type: integer + description: "Ramp range setting for Ieee 802 15 4 mod." modulateWhileRamping: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - do not modulate in ramping phase * 1 - modulate in ramping phase lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." bbNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not add gaussian noise in baseband * 1 - Add gaussian noise in baseband writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not write frames to .csv file * 1 - Write frames to .csv file spectrumRate: type: integer + description: "Spectrum rate setting for Ieee 802 15 4 mod." data: type: string description: Hex coded bytes of data to transmit, excluding CRC (E.g for an ACK - 02 00 00) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scramble: type: integer + minimum: 0 + maximum: 1 description: > Boolean value * 0 - Do not scramble data @@ -99,6 +134,8 @@ IEEE_802_15_4_ModSettings: description: Scrambling polynomial pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Pulse shaping filter * 0 - Root Cosime @@ -109,11 +146,16 @@ IEEE_802_15_4_ModSettings: description: Pulse shaping filter beta factor symbolSpan: type: integer + description: "Symbol span setting for Ieee 802 15 4 mod." udpEnabled: description: Enable forwarding of frames via UDP type: integer + minimum: 0 + maximum: 1 udpBytesFormat: type: integer + minimum: 0 + maximum: 1 description: > Payload format * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a @@ -124,10 +166,14 @@ IEEE_802_15_4_ModSettings: udpPort: description: UDP port to listen for frames to transmit on type: integer + minimum: 1 + maximum: 65535 channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." IEEE_802_15_4_ModReport: description: IEEE_802_15_4_Mod @@ -138,12 +184,15 @@ IEEE_802_15_4_ModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." IEEE_802_15_4_ModActions: description: IEEE_802_15_4_Mod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Initialize a transmission cycle * 0 - Do nothing diff --git a/swagger/sdrangel/api/swagger/include/ILSDemod.yaml b/swagger/sdrangel/api/swagger/include/ILSDemod.yaml index f41090ddd..6560576d2 100644 --- a/swagger/sdrangel/api/swagger/include/ILSDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/ILSDemod.yaml @@ -4,87 +4,130 @@ ILSDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." mode: description: "(0 for LOC, 1 for G/S)" type: integer + minimum: 0 + maximum: 1 frequencyIndex: type: integer + description: "Selected frequency index." squelch: type: integer + description: "Squelch threshold in dB." volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 average: type: integer + description: "Average setting for Ils demod." ddmUnits: type: integer + description: "Ddm units setting for Ils demod." identThreshold: type: number format: float + description: "Ident threshold setting for Ils demod." ident: type: string + description: "Ident setting for Ils demod." runway: type: string + description: "Runway setting for Ils demod." trueBearing: type: number format: float + description: "True bearing setting for Ils demod." latitude: type: string + description: "Latitude in degrees, positive north." longitude: type: string + description: "Longitude in degrees, positive east." elevation: type: integer + description: "Elevation setting for Ils demod." glidePath: type: number format: float + description: "Glide path setting for Ils demod." refHeight: type: number format: float + description: "Ref height setting for Ils demod." courseWidth: type: number format: float + description: "Course width setting for Ils demod." udpEnabled: description: "Whether to forward DDM to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward DDM to" type: string udpPort: description: "UDP port to forward DDM to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." ILSDemodReport: description: ILSDemod @@ -95,8 +138,10 @@ ILSDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." ident: type: string + description: "Reported ident." deviation: description: deviation in degrees type: number diff --git a/swagger/sdrangel/api/swagger/include/InmarsatDemod.yaml b/swagger/sdrangel/api/swagger/include/InmarsatDemod.yaml index 52cc5cc2f..bb95e6593 100644 --- a/swagger/sdrangel/api/swagger/include/InmarsatDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/InmarsatDemod.yaml @@ -4,57 +4,87 @@ InmarsatDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." rrcRolloff: type: number format: float + description: "Rrc rolloff setting for Inmarsat demod." pllBandwidth: type: number format: float + description: "Pll bandwidth in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 udpFormat: description: "0 for binary, 1 for NMEA" type: integer + minimum: 0 + maximum: 1 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." InmarsatDemodReport: description: InmarsatDemod @@ -65,3 +95,4 @@ InmarsatDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/Interferometer.yaml b/swagger/sdrangel/api/swagger/include/Interferometer.yaml index 6bac1c0c2..b3a3c525c 100644 --- a/swagger/sdrangel/api/swagger/include/Interferometer.yaml +++ b/swagger/sdrangel/api/swagger/include/Interferometer.yaml @@ -2,16 +2,31 @@ InterferometerSettings: description: Interferometer properties: correlationType: - description: see InterferometerSettings::CorrelationType + description: > + Operation applied to the two input streams + * 0 - stream 0 only + * 1 - stream 1 only + * 2 - add the streams + * 3 - multiply the streams + * 4 - inverse FFT of the cross spectrum + * 5 - inverse FFT of the conjugate cross spectrum + * 6 - FFT of the cross spectrum + * 7 - second form of the inverse FFT correlation type: integer + minimum: 0 + maximum: 7 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." phase: description: Channel B phase shift in degrees (-180 to 180) type: integer @@ -23,6 +38,8 @@ InterferometerSettings: type: integer play: type: integer + minimum: 0 + maximum: 1 description: > Run correlated IQ samples transfer * 0 - stop @@ -30,19 +47,31 @@ InterferometerSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/JogdialController.yaml b/swagger/sdrangel/api/swagger/include/JogdialController.yaml index 1bd58ed6e..d4c2cf510 100644 --- a/swagger/sdrangel/api/swagger/include/JogdialController.yaml +++ b/swagger/sdrangel/api/swagger/include/JogdialController.yaml @@ -3,21 +3,32 @@ JogdialControllerSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/KiwiSDR.yaml b/swagger/sdrangel/api/swagger/include/KiwiSDR.yaml index a66a9a155..1f6554439 100644 --- a/swagger/sdrangel/api/swagger/include/KiwiSDR.yaml +++ b/swagger/sdrangel/api/swagger/include/KiwiSDR.yaml @@ -3,28 +3,43 @@ KiwiSDRSettings: properties: title: type: string + description: "User-visible title." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." useAGC: description: AGC active (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." serverAddress: description: Distant KiwiSDR instance URL or IPv4 address with port type: string useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." KiwiSDRReport: description: KiwiSDR @@ -32,12 +47,21 @@ KiwiSDRReport: status: description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected type: integer + minimum: 0 + maximum: 4 latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 altitude: type: number format: float + description: "Altitude above mean sea level." diff --git a/swagger/sdrangel/api/swagger/include/LimeRFE.yaml b/swagger/sdrangel/api/swagger/include/LimeRFE.yaml index 7c2f15413..7b15442c5 100644 --- a/swagger/sdrangel/api/swagger/include/LimeRFE.yaml +++ b/swagger/sdrangel/api/swagger/include/LimeRFE.yaml @@ -3,13 +3,17 @@ LimeRFESettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." devicePath: description: Path to the device serial interface (ex /dev/ttyUSB2) type: string rxChannels: type: integer + minimum: 0 + maximum: 2 description: > Rx channels group (LimeRFEController::ChannelGroups): * 0 - Wideband @@ -17,12 +21,16 @@ LimeRFESettings: * 2 - cellular rxWidebandChannel: type: integer + minimum: 0 + maximum: 1 description: > Rx wideband channel selection (LimeRFEController::WidebandChannel) * 0 - Low: 1 - 1000 MHz * 1 - High: 1 - 4 GHz rxHAMChannel: type: integer + minimum: 0 + maximum: 8 description: > Rx HAM channel selection (LimeRFEController::HAMChannel) * 0 - 30 MHz and lower @@ -36,6 +44,8 @@ LimeRFESettings: * 8 - 3300 - 3500 MHz rxCellularChannel: type: integer + minimum: 0 + maximum: 4 description: > Rx cellular channel selection (LimeRFEController::CellularChannel) * 0 - Band 1: 1.92 - 1.98 GHz @@ -45,6 +55,8 @@ LimeRFESettings: * 4 - Band 38: 2.56 - 2.63 GHz rxPort: type: integer + minimum: 0 + maximum: 1 description: > Rx port selected (LimeRFEController::RxPort) * 0 - J3 @@ -57,6 +69,8 @@ LimeRFESettings: type: integer txChannels: type: integer + minimum: 0 + maximum: 2 description: > Tx channels group (LimeRFEController::ChannelGroups) * 0 - Wideband @@ -64,12 +78,16 @@ LimeRFESettings: * 2 - cellular txWidebandChannel: type: integer + minimum: 0 + maximum: 1 description: > Tx wideband channel selection (LimeRFEController::WidebandChannel) * 0 - Low: 1 - 1000 MHz * 1 - High: 1 - 4 GHz txHAMChannel: type: integer + minimum: 0 + maximum: 8 description: > Tx HAM channel selection (LimeRFEController::HAMChannel) * 0 - 30 MHz and lower @@ -83,6 +101,8 @@ LimeRFESettings: * 8 - 3300 - 3500 MHz txCellularChannel: type: integer + minimum: 0 + maximum: 4 description: > Tx cellular channel selection (LimeRFEController::CellularChannel) * 0 - Band 1: 1.92 - 1.98 GHz @@ -92,6 +112,8 @@ LimeRFESettings: * 4 - Band 38: 2.56 - 2.63 GHz txPort: type: integer + minimum: 0 + maximum: 2 description: > Tx port selected (LimeRFEController::TxPort) * 0 - J3 @@ -100,8 +122,12 @@ LimeRFESettings: swrEnable: description: Boolean if SWR measurements are enabled else 0 type: integer + minimum: 0 + maximum: 1 swrSource: type: integer + minimum: 0 + maximum: 1 description: > SWR measurement source (LimeRFEController::SWRSource) * 0 - External @@ -109,19 +135,30 @@ LimeRFESettings: txRxDriven: description: Boolean 1 if Tx is copy of Rx else 0 type: integer + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." LimeRFEReport: description: LimeRFE @@ -129,9 +166,13 @@ LimeRFEReport: rxOn: description: Boolean 1 if Rx is active else 0 type: integer + minimum: 0 + maximum: 1 txOn: description: Boolean 1 if Tx is active else 0 type: integer + minimum: 0 + maximum: 1 forwardPower: description: relative forward power in centi-Bels type: integer @@ -144,6 +185,8 @@ LimeRFEActions: properties: selectChannel: type: integer + minimum: 0 + maximum: 1 description: > Select channel * 0 - Rx @@ -153,6 +196,8 @@ LimeRFEActions: description: Index of device set to synchronize switch with switchChannel: type: integer + minimum: 0 + maximum: 1 description: > Switch on or off * 0 - Off @@ -162,24 +207,32 @@ LimeRFEActions: description: Set to non zero value to get the board state fromToSettings: type: integer + minimum: 0 + maximum: 1 description: > Move from/to settings to/from device * 0 - From device to settings. The toGUI button in GUI mode * 1 - From settings to device. The Apply button in GUI mode openCloseDevice: type: integer + minimum: 0 + maximum: 1 description: > Open or close device * 0 - Close device * 1 - Open device setRx: type: integer + minimum: 0 + maximum: 1 description: > Set Rx om or off * 0 - Rx off * 1 - Rx on setTx: type: integer + minimum: 0 + maximum: 1 description: > Set Tx om or off * 0 - Tx off diff --git a/swagger/sdrangel/api/swagger/include/LimeSdr.yaml b/swagger/sdrangel/api/swagger/include/LimeSdr.yaml index 6645764a2..44f1d6348 100644 --- a/swagger/sdrangel/api/swagger/include/LimeSdr.yaml +++ b/swagger/sdrangel/api/swagger/include/LimeSdr.yaml @@ -3,54 +3,91 @@ LimeSdrInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 splitFreq: type: integer + description: "Split freq setting for Lime sdr input." iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." lpfFIREnable: type: integer + description: "Enable the digital FIR low-pass filter (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lpfFIRBW: type: integer + description: "Digital FIR low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." ncoEnable: type: integer + description: "Enable the numerically controlled oscillator (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ncoFrequency: type: integer + description: "Numerically controlled oscillator frequency in Hz." antennaPath: type: integer + description: "Selected RF antenna path." gainMode: type: integer + description: "Gain-control mode selection." lnaGain: type: integer + description: "Low-noise-amplifier gain setting." tiaGain: type: integer + description: "TIA gain setting for Lime sdr input." pgaGain: type: integer + description: "PGA gain setting for Lime sdr input." extClock: type: integer + description: "Use an external reference clock (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 extClockFreq: type: integer + description: "External reference-clock frequency in Hz." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -58,71 +95,113 @@ LimeSdrInputSettings: gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LimeSdrOutputSettings: description: LimeSDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." lpfFIREnable: type: integer + description: "Enable the digital FIR low-pass filter (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lpfFIRBW: type: integer + description: "Digital FIR low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." ncoEnable: type: integer + description: "Enable the numerically controlled oscillator (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ncoFrequency: type: integer + description: "Numerically controlled oscillator frequency in Hz." antennaPath: type: integer + description: "Selected RF antenna path." extClock: type: integer + description: "Use an external reference clock (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 extClockFreq: type: integer + description: "External reference-clock frequency in Hz." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LimeSdrMIMOSettings: description: LimeSDR @@ -130,8 +209,10 @@ LimeSdrMIMOSettings: # General title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." gpioDir: description: GPIO pin direction LSB first; 0 input, 1 output type: integer @@ -143,40 +224,61 @@ LimeSdrMIMOSettings: extClock: description: Boolean 1 if external clock source else 0 type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer useReverseAPI: description: Boolean type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." # Rx general rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." dcBlock: description: Boolean type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Boolean type: integer + minimum: 0 + maximum: 1 rxTransverterMode: description: Boolean type: integer + minimum: 0 + maximum: 1 rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -184,6 +286,8 @@ LimeSdrMIMOSettings: ncoEnableRx: description: Boolean 1 to enable TSP NCO and mixing else 0 type: integer + minimum: 0 + maximum: 1 ncoFrequencyRx: description: Rx Actual NCO frequency (the resulting frequency with mixing is displayed) type: integer @@ -195,6 +299,8 @@ LimeSdrMIMOSettings: lpfFIREnableRx0: description: Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWRx0: description: Rx[0] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -213,12 +319,16 @@ LimeSdrMIMOSettings: * 4 - LB TX1 * 5 - LB TX2 type: integer + minimum: 0 + maximum: 5 gainModeRx0: description: > Rx[0] Gain mode: * 0 - auto * 1 - manual type: integer + minimum: 0 + maximum: 1 lnaGainRx0: description: Rx[0] Manual LNA gain type: integer @@ -236,6 +346,8 @@ LimeSdrMIMOSettings: lpfFIREnableRx1: description: Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWRx1: description: Rx[1] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -253,12 +365,16 @@ LimeSdrMIMOSettings: * 4 - LB TX1 * 5 - LB TX2 type: integer + minimum: 0 + maximum: 5 gainModeRx1: description: > Rx[1] Gain mode: * 0 - auto * 1 - manual type: integer + minimum: 0 + maximum: 1 lnaGainRx1: description: Rx[1] Manual LNA gain type: integer @@ -272,19 +388,27 @@ LimeSdrMIMOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." txTransverterMode: description: Boolean type: integer + minimum: 0 + maximum: 1 txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." ncoEnableTx: description: Boolean 1 to enable TSP NCO and mixing else 0 type: integer + minimum: 0 + maximum: 1 ncoFrequencyTx: description: Tx Actual NCO frequency (the resulting frequency with mixing is displayed) type: integer @@ -296,6 +420,8 @@ LimeSdrMIMOSettings: lpfFIREnableTx0: description: Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWTx0: description: Tx[0] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -310,6 +436,8 @@ LimeSdrMIMOSettings: * 1 - RF connector 1 * 2 - RF connector 2 type: integer + minimum: 0 + maximum: 2 # Tx channel 1 lpfBWTx1: description: Tx[1] LMS analog lowpass filter bandwidth (Hz) @@ -318,6 +446,8 @@ LimeSdrMIMOSettings: lpfFIREnableTx1: description: Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0 type: integer + minimum: 0 + maximum: 1 lpfFIRBWTx1: description: Tx[1] LMS digital lowpass FIR filters bandwidth (Hz) type: number @@ -332,6 +462,8 @@ LimeSdrMIMOSettings: * 1 - RF connector 1 * 2 - RF connector 2 type: integer + minimum: 0 + maximum: 2 LimeSdrInputReport: description: LimeSDR @@ -342,19 +474,27 @@ LimeSdrInputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." underrunCount: type: integer + description: "Number of stream underrun events." overrunCount: type: integer + description: "Number of stream overrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." linkRate: type: number format: float + description: "Measured streaming link rate." hwTimestamp: description: Hardware timestamp type: integer @@ -362,12 +502,15 @@ LimeSdrInputReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." LimeSdrOutputReport: description: LimeSDR @@ -378,19 +521,27 @@ LimeSdrOutputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." underrunCount: type: integer + description: "Number of stream underrun events." overrunCount: type: integer + description: "Number of stream overrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." linkRate: type: number format: float + description: "Measured streaming link rate." hwTimestamp: description: Hardware timestamp type: integer @@ -398,12 +549,15 @@ LimeSdrOutputReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." LimeSdrMIMOReport: description: LimeSDR @@ -415,12 +569,15 @@ LimeSdrMIMOReport: temperature: type: number format: float + description: "Reported device temperature." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." successRx: description: 1 if Rx info was successfully retrieved else 0 type: integer @@ -429,17 +586,23 @@ LimeSdrMIMOReport: type: integer fifoSizeRx: type: integer + description: "Reported fifo size receive." fifoFillRx: type: integer + description: "Current receive FIFO fill level." underrunCountRx: type: integer + description: "Reported underrun count receive." overrunCountRx: type: integer + description: "Reported overrun count receive." droppedPacketsCountRx: type: integer + description: "Reported dropped packets count receive." linkRateRx: type: number format: float + description: "Reported link rate receive." successTx: description: 1 if Tx info was successfully retrieved else 0 type: integer @@ -448,14 +611,20 @@ LimeSdrMIMOReport: type: integer fifoSizeTx: type: integer + description: "Reported fifo size transmit." fifoFillTx: type: integer + description: "Current transmit FIFO fill level." underrunCountTx: type: integer + description: "Reported underrun count transmit." overrunCountTx: type: integer + description: "Reported overrun count transmit." droppedPacketsCountTx: type: integer + description: "Reported dropped packets count transmit." linkRateTx: type: number format: float + description: "Reported link rate transmit." diff --git a/swagger/sdrangel/api/swagger/include/LocalInput.yaml b/swagger/sdrangel/api/swagger/include/LocalInput.yaml index 9bb193216..b4e7e3413 100644 --- a/swagger/sdrangel/api/swagger/include/LocalInput.yaml +++ b/swagger/sdrangel/api/swagger/include/LocalInput.yaml @@ -3,19 +3,33 @@ LocalInputSettings: properties: title: type: string + description: "User-visible title." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LocalInputReport: description: LocalInput @@ -23,5 +37,7 @@ LocalInputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/LocalOutput.yaml b/swagger/sdrangel/api/swagger/include/LocalOutput.yaml index c077f1dfc..6eedd0efb 100644 --- a/swagger/sdrangel/api/swagger/include/LocalOutput.yaml +++ b/swagger/sdrangel/api/swagger/include/LocalOutput.yaml @@ -3,15 +3,23 @@ LocalOutputSettings: properties: title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." LocalOutputReport: description: LocalOutput @@ -19,5 +27,7 @@ LocalOutputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/LocalSink.yaml b/swagger/sdrangel/api/swagger/include/LocalSink.yaml index f670360fd..81e794187 100644 --- a/swagger/sdrangel/api/swagger/include/LocalSink.yaml +++ b/swagger/sdrangel/api/swagger/include/LocalSink.yaml @@ -6,20 +6,28 @@ LocalSinkSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." play: type: integer + minimum: 0 + maximum: 1 description: > Run samples transfer * 0 - stop * 1 - run dsp: type: integer + minimum: 0 + maximum: 1 description: > Activate DSP * 0 - Skip DSP functions @@ -29,6 +37,8 @@ LocalSinkSettings: type: integer fftOn: type: integer + minimum: 0 + maximum: 1 description: > Activate FFT multiband filter * 0 - do not run filter @@ -38,6 +48,8 @@ LocalSinkSettings: type: integer fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT window type * 0 - Bartlett @@ -51,10 +63,13 @@ LocalSinkSettings: * 8 - Blackman-Harris (7th order) fftBands: type: array + description: "List of fft bands." items: $ref: "http://swgserver:8081/api/swagger/include/LocalSink.yaml#/FFTBand" reverseFilter: type: integer + minimum: 0 + maximum: 1 description: > * 0 - band definitions are bandpass * 1 - band definitions are band reject @@ -64,18 +79,28 @@ LocalSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." FFTBand: diff --git a/swagger/sdrangel/api/swagger/include/LocalSource.yaml b/swagger/sdrangel/api/swagger/include/LocalSource.yaml index c7d45c434..5385dc1c3 100644 --- a/swagger/sdrangel/api/swagger/include/LocalSource.yaml +++ b/swagger/sdrangel/api/swagger/include/LocalSource.yaml @@ -6,30 +6,46 @@ LocalSourceSettings: type: integer rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." play: description: boolean (1 to play, 0 to stop) type: integer + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/M17Demod.yaml b/swagger/sdrangel/api/swagger/include/M17Demod.yaml index 92711c3c0..61bf98ecf 100644 --- a/swagger/sdrangel/api/swagger/include/M17Demod.yaml +++ b/swagger/sdrangel/api/swagger/include/M17Demod.yaml @@ -4,66 +4,99 @@ M17DemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." volume: type: number format: float + description: "Audio volume multiplier." demodGain: type: number format: float + description: "Demod gain setting for M17 demod." baudRate: type: integer + description: "Serial-port baud rate in bits per second." squelchGate: type: integer + description: "Squelch gate duration." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 syncOrConstellation: type: integer + description: "Sync or constellation setting for M17 demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." highPassFilter: type: integer + description: "High pass filter setting for M17 demod." traceLengthMutliplier: description: multiply by 50ms type: integer traceStroke: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 traceDecay: description: 0 to 255 type: integer + minimum: 0 + maximum: 255 audioDeviceName: type: string + description: "Name of the audio device to use." statusLogEnabled: type: integer + description: "Enable status log (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." M17DemodReport: description: M17Demod @@ -74,8 +107,10 @@ M17DemodReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." squelch: description: squelch status (1 if open else 0) type: integer diff --git a/swagger/sdrangel/api/swagger/include/M17Mod.yaml b/swagger/sdrangel/api/swagger/include/M17Mod.yaml index bb11615b7..b0f6a40e7 100644 --- a/swagger/sdrangel/api/swagger/include/M17Mod.yaml +++ b/swagger/sdrangel/api/swagger/include/M17Mod.yaml @@ -4,26 +4,39 @@ M17ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for M17 mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." m17Mode: type: integer description: M17Mode @@ -35,55 +48,81 @@ M17ModSettings: description: PacketType audioDeviceName: type: string + description: "Name of the audio device to use." feedbackAudioDeviceName: type: string + description: "Feedback audio device name setting for M17 mod." feedbackVolumeFactor: type: number format: float + description: "Feedback volume factor setting for M17 mod." feedbackAudioEnable: type: integer + description: "Feedback audio enable setting for M17 mod." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." sourceCall: type: string + description: "Source call setting for M17 mod." destCall: type: string + description: "Dest call setting for M17 mod." insertPosition: type: integer + description: "Insert position setting for M17 mod." can: type: integer + description: "Can setting for M17 mod." smsText: type: string + description: "Sms text setting for M17 mod." loopPacket: type: integer + description: "Loop packet setting for M17 mod." loopPacketInterval: type: integer + description: "Loop packet interval setting for M17 mod." aprsCallsign: type: string + description: "Aprs callsign setting for M17 mod." aprsTo: type: string + description: "Aprs to setting for M17 mod." aprsVia: type: string + description: "Aprs via setting for M17 mod." aprsData: type: string + description: "Aprs data setting for M17 mod." aprsInsertPosition: type: integer + description: "Aprs insert position setting for M17 mod." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." M17ModReport: description: M17Mod @@ -94,5 +133,7 @@ M17ModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/MCPServer.yaml b/swagger/sdrangel/api/swagger/include/MCPServer.yaml new file mode 100644 index 000000000..607187955 --- /dev/null +++ b/swagger/sdrangel/api/swagger/include/MCPServer.yaml @@ -0,0 +1,77 @@ +MCPServerSettings: + description: "MCP (Model Context Protocol) server settings" + properties: + address: + type: string + description: Address to bind the HTTP listener to. Defaults to 127.0.0.1 (local connections only) + port: + type: integer + minimum: 1024 + maximum: 65535 + description: TCP port the MCP server listens on + token: + type: string + description: Optional bearer token clients must present in the Authorization header. Empty for no authentication + captureDir: + type: string + description: Directory that IQ and audio captures are written to. Capture tools refuse paths outside it + title: + type: string + description: "User-visible title." + rgbColor: + type: integer + description: "Display color encoded as an RGB integer." + useReverseAPI: + type: integer + minimum: 0 + maximum: 1 + description: > + Synchronize with reverse API + * 1 - yes + * 0 - no + reverseAPIAddress: + type: string + description: "IPv4 address or host name of the reverse API peer." + reverseAPIPort: + type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 + reverseAPIFeatureSetIndex: + type: integer + description: "Feature-set index used by the reverse API peer." + reverseAPIFeatureIndex: + type: integer + description: "Feature index used by the reverse API peer." + rollupState: + $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." + +MCPServerReport: + description: MCP server report + properties: + runningState: + type: integer + minimum: 0 + maximum: 3 + description: > + Running state + * 0 - not started + * 1 - idle + * 2 - running + * 3 - error + requestCount: + type: integer + description: Number of MCP requests served since the server was started + +MCPServerActions: + description: MCP server actions + properties: + run: + type: integer + minimum: 0 + maximum: 1 + description: > + Set the plugin running state + * 0 - idle + * 1 - run diff --git a/swagger/sdrangel/api/swagger/include/Map.yaml b/swagger/sdrangel/api/swagger/include/Map.yaml index cd1361583..1cd375ae9 100644 --- a/swagger/sdrangel/api/swagger/include/Map.yaml +++ b/swagger/sdrangel/api/swagger/include/Map.yaml @@ -4,26 +4,195 @@ MapSettings: displayNames: description: Display object names on the map (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 + map2DEnabled: + description: Display the 2D map pane (1 for yes, 0 for no). Disable this while keeping map3DEnabled enabled to show only the 3D map. + type: integer + minimum: 0 + maximum: 1 + map3DEnabled: + description: Display the 3D map pane (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + mapProvider: + description: 2D map provider identifier. + type: string + mapType: + description: Selected 2D map type, for example Street Map or Satellite Map. + type: string + osmURL: + description: Custom OpenStreetMap tile-server URL. + type: string + mapBoxStyles: + description: Mapbox style identifier used by the selected 2D provider. + type: string + displaySelectedGroundTracks: + description: Display ground tracks for selected items (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayAllGroundTracks: + description: Display ground tracks for all items (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 terrain: description: "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" type: string + buildings: + description: 3D buildings layer, for example None or Cesium OSM Buildings. + type: string + sunLightEnabled: + description: Light the globe from the Sun's direction (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + lightIntensity: + description: Camera light intensity used by the 3D map. + type: number + format: float + minimum: 0 + eciCamera: + description: Use an ECI rather than ECEF camera frame (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fxaa: + description: Enable fast approximate anti-aliasing (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + msaa: + description: Multisample anti-aliasing level. + type: integer + minimum: 1 + maximum: 8 + terrainLighting: + description: Enable terrain lighting (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + water: + description: Enable water effects (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + hdr: + description: Enable high dynamic range rendering (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fog: + description: Enable atmospheric fog (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + fps: + description: Display the 3D map frame rate (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMUF: + description: Display maximum-usable-frequency contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayfoF2: + description: Display F2 critical-frequency contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayRain: + description: Display weather-radar rain and snow overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayClouds: + description: Display satellite infrared cloud overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displaySeaMarks: + description: Display sea marks (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayRailways: + description: Display railways (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayNASAGlobalImagery: + description: Display NASA GIBS imagery (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + nasaGlobalImageryIdentifier: + description: NASA GIBS imagery-layer identifier. + type: string + nasaGlobalImageryOpacity: + description: NASA GIBS imagery opacity as a percentage. + type: integer + minimum: 0 + maximum: 100 + displayAurora: + description: Display aurora-probability overlay (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMagDec: + description: Display magnetic-declination contours (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayMaidenheadGrid: + description: Display Maidenhead grid (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + displayPFD: + description: Display the aircraft primary-flight display (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + viewFirstPerson: + description: Use first-person 3D map view (1 for yes, 0 for no). + type: integer + minimum: 0 + maximum: 1 + defaultImagery: + description: Default imagery layer for the 3D map. + type: string title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MapReport: description: Map @@ -64,10 +233,14 @@ MapItem: description: "Latitude in decimal degrees, positive to the North" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees, positive to the East" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude / height above sea level in metres" type: number @@ -75,6 +248,8 @@ MapItem: fixedPosition: description: "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" type: integer + minimum: 0 + maximum: 1 positionDateTime: description: "Date and time at this position (ISO 8601 extended format)" type: string @@ -97,6 +272,8 @@ MapItem: orientation: description: "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" type: integer + minimum: 0 + maximum: 1 heading: description: "Heading angle, in decimal degrees clockwise from North" type: number @@ -129,6 +306,8 @@ MapItem: altitudeReference: description: "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." type: integer + minimum: 0 + maximum: 3 animations: description: "Animations to play" type: array @@ -137,18 +316,24 @@ MapItem: type: description: "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" type: integer + minimum: 0 + maximum: 3 imageTileWest: type: number format: float + description: "Image tile west for Map item." imageTileSouth: type: number format: float + description: "Image tile south for Map item." imageTileEast: type: number format: float + description: "Image tile east for Map item." imageTileNorth: type: number format: float + description: "Image tile north for Map item." imageZoomLevel: description: "For 2D map" type: number @@ -171,11 +356,14 @@ MapItem: colorValid: description: "0 - Use default color, 1 - Use specified color" type: integer + minimum: 0 + maximum: 1 color: description: "RGBA for polygon and polyline" type: integer aircraftState: $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapAircraftState" + description: "Current states of aircraft tracked by the ADS-B demodulator." MapAnimation: description: "Animation to play in the model on the 3D map" @@ -186,9 +374,13 @@ MapAnimation: reverse: description: "(0 - Forward, 1 - Reverse)" type: integer + minimum: 0 + maximum: 1 loop: description: "(0 - Play once, 1 - Play in loop)" type: integer + minimum: 0 + maximum: 1 startDateTime: description: "Date and time to start playing this animation (ISO 8601 extended format)" type: string @@ -218,10 +410,14 @@ MapCoordinate: description: "Latitude in decimal degrees, positive to the North" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees, positive to the East" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude / height above sea level in metres" type: number @@ -235,10 +431,13 @@ MapAircraftState: properties: callsign: type: string + description: "Radio callsign." aircraftType: type: string + description: "Aircraft type for Map aircraft state." onSurface: type: integer + description: "On surface for Map aircraft state." airspeed: description: "Indicated airspeed in knots" type: number @@ -257,6 +456,7 @@ MapAircraftState: mach: type: number format: float + description: "Mach for Map aircraft state." altitude: description: "Barometric altitude in feet" type: number @@ -286,12 +486,15 @@ MapAircraftState: selectedAirspeed: type: number format: float + description: "Selected airspeed for Map aircraft state." selectedAltitude: type: number format: float + description: "Selected altitude for Map aircraft state." selectedHeading: type: number format: float + description: "Selected heading for Map aircraft state." autopilot: description: "-1 unknown, 0 off, 1 on" type: integer @@ -307,10 +510,13 @@ MapAircraftState: windSpeed: type: number format: float + description: "Wind speed for Map aircraft state." windDirection: type: number format: float + description: "Wind direction for Map aircraft state." staticAirTemperature: type: number format: float + description: "Static air temperature for Map aircraft state." diff --git a/swagger/sdrangel/api/swagger/include/MeshcoreDemod.yaml b/swagger/sdrangel/api/swagger/include/MeshcoreDemod.yaml index f02677426..eb2a321e5 100644 --- a/swagger/sdrangel/api/swagger/include/MeshcoreDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/MeshcoreDemod.yaml @@ -4,8 +4,11 @@ MeshcoreDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,12 +40,15 @@ MeshcoreDemodSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshcore demod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer decodeActive: description: boolean 1 to activate 0 to de-activate decoder type: integer + minimum: 0 + maximum: 1 eomSquelchTenths: description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 type: integer @@ -61,11 +67,17 @@ MeshcoreDemodSettings: sendViaUDP: description: boolean 1 to send decoded message via UDP else 0 type: integer + minimum: 0 + maximum: 1 sendJsonViaUDP: description: boolean 1 to send decoded message as JSON via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpEnabled: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Send via UDP * 0 - Do not send decoded messages via UDP @@ -76,36 +88,53 @@ MeshcoreDemodSettings: udpPort: description: UDP destination port type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshcoreDemodReport: description: MeshcoreDemod @@ -128,9 +157,12 @@ MeshcoreDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." syncWord: description: 2 bytes sync word (0..65535) type: integer + minimum: 0 + maximum: 65535 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -145,6 +177,8 @@ MeshcoreDemodReport: type: integer headerParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Header FEC parity status: * 0 - Undefined @@ -156,6 +190,8 @@ MeshcoreDemodReport: type: integer payloadParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Payload FEC parity status: * 0 - Undefined @@ -184,6 +220,8 @@ MeshcoreDemodReport: type: string decoding: type: integer + minimum: 0 + maximum: 1 description: > Boolean - decoding status * 0 - no decoding diff --git a/swagger/sdrangel/api/swagger/include/MeshcoreMod.yaml b/swagger/sdrangel/api/swagger/include/MeshcoreMod.yaml index f3dfc08c0..af6c61f8b 100644 --- a/swagger/sdrangel/api/swagger/include/MeshcoreMod.yaml +++ b/swagger/sdrangel/api/swagger/include/MeshcoreMod.yaml @@ -4,8 +4,11 @@ MeshcoreModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,6 +40,7 @@ MeshcoreModSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshcore mod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer @@ -49,9 +53,13 @@ MeshcoreModSettings: syncWord: description: 2 byte (0..65535) synchronization syncWord type: integer + minimum: 0 + maximum: 65535 channelMute: description: boolean type: integer + minimum: 0 + maximum: 1 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -64,40 +72,58 @@ MeshcoreModSettings: udpEnabled: description: boolean 1 to enable forwarding messages via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpAddress: description: UDP address to listen for messages to transmit on type: string udpPort: description: UDP port to listen for messages to transmit on type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshcoreModReport: description: MeshcoreMod @@ -108,6 +134,7 @@ MeshcoreModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." symbolTimeMs: description: symbol duration (ms) type: number @@ -122,6 +149,8 @@ MeshcoreModReport: format: float playing: type: integer + minimum: 0 + maximum: 1 description: > Boolean - modulator is active (playing) including idle time * 0 - Modulator not active @@ -132,6 +161,8 @@ MeshcoreModActions: properties: sendNow: type: integer + minimum: 0 + maximum: 1 description: > Send packet immediately * 0 - Do nothing diff --git a/swagger/sdrangel/api/swagger/include/MeshtasticDemod.yaml b/swagger/sdrangel/api/swagger/include/MeshtasticDemod.yaml index 4b2556d60..b2d5bde2d 100644 --- a/swagger/sdrangel/api/swagger/include/MeshtasticDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/MeshtasticDemod.yaml @@ -4,8 +4,11 @@ MeshtasticDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,12 +40,15 @@ MeshtasticDemodSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshtastic demod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer decodeActive: description: boolean 1 to activate 0 to de-activate decoder type: integer + minimum: 0 + maximum: 1 eomSquelchTenths: description: argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10 type: integer @@ -61,11 +67,17 @@ MeshtasticDemodSettings: sendViaUDP: description: boolean 1 to send decoded message via UDP else 0 type: integer + minimum: 0 + maximum: 1 sendJsonViaUDP: description: boolean 1 to send decoded message as JSON via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpEnabled: type: integer + minimum: 0 + maximum: 1 description: > Boolean - Send via UDP * 0 - Do not send decoded messages via UDP @@ -76,36 +88,53 @@ MeshtasticDemodSettings: udpPort: description: UDP destination port type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshtasticDemodReport: description: MeshtasticDemod @@ -128,9 +157,12 @@ MeshtasticDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." syncWord: description: 2 bytes sync word (0..65535) type: integer + minimum: 0 + maximum: 65535 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -145,6 +177,8 @@ MeshtasticDemodReport: type: integer headerParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Header FEC parity status: * 0 - Undefined @@ -156,6 +190,8 @@ MeshtasticDemodReport: type: integer payloadParityStatus: type: integer + minimum: 0 + maximum: 3 description: > Payload FEC parity status: * 0 - Undefined @@ -184,6 +220,8 @@ MeshtasticDemodReport: type: string decoding: type: integer + minimum: 0 + maximum: 1 description: > Boolean - decoding status * 0 - no decoding diff --git a/swagger/sdrangel/api/swagger/include/MeshtasticMod.yaml b/swagger/sdrangel/api/swagger/include/MeshtasticMod.yaml index 90059f2c3..c06270680 100644 --- a/swagger/sdrangel/api/swagger/include/MeshtasticMod.yaml +++ b/swagger/sdrangel/api/swagger/include/MeshtasticMod.yaml @@ -4,8 +4,11 @@ MeshtasticModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidthIndex: type: integer + minimum: 0 + maximum: 26 description: > standard bandwidths index: * 0 - 375 Hz (384000 / 1024) @@ -37,6 +40,7 @@ MeshtasticModSettings: * 26 - 500000 Hz (500000 / 1) spreadFactor: type: integer + description: "Spread factor setting for Meshtastic mod." deBits: description: Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol type: integer @@ -49,9 +53,13 @@ MeshtasticModSettings: syncWord: description: 2 byte (0..65535) synchronization syncWord type: integer + minimum: 0 + maximum: 65535 channelMute: description: boolean type: integer + minimum: 0 + maximum: 1 nbParityBits: description: Hamming FEC parity bits (LoRa) type: integer @@ -64,40 +72,58 @@ MeshtasticModSettings: udpEnabled: description: boolean 1 to enable forwarding messages via UDP else 0 type: integer + minimum: 0 + maximum: 1 udpAddress: description: UDP address to listen for messages to transmit on type: string udpPort: description: UDP port to listen for messages to transmit on type: integer + minimum: 1 + maximum: 65535 invertRamps: type: integer + minimum: 0 + maximum: 1 description: > Invert chirp ramps * 0 - Normal chirp ramps (upchirps for preamble and payload) * 1 - Inverted chirp ramps (downchirps for preamble and payload) rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MeshtasticModReport: description: MeshtasticMod @@ -108,6 +134,7 @@ MeshtasticModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." symbolTimeMs: description: symbol duration (ms) type: number @@ -122,6 +149,8 @@ MeshtasticModReport: format: float playing: type: integer + minimum: 0 + maximum: 1 description: > Boolean - modulator is active (playing) including idle time * 0 - Modulator not active diff --git a/swagger/sdrangel/api/swagger/include/MetisMISO.yaml b/swagger/sdrangel/api/swagger/include/MetisMISO.yaml index bf651b8b2..008f8bc59 100644 --- a/swagger/sdrangel/api/swagger/include/MetisMISO.yaml +++ b/swagger/sdrangel/api/swagger/include/MetisMISO.yaml @@ -3,11 +3,14 @@ MetisMISOSettings: properties: title: type: string + description: "User-visible title." nbReceivers: type: integer description: Number of activated receivers txEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx * 0 - disabled sends null payload to Metis device @@ -47,8 +50,11 @@ MetisMISOSettings: txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." rxTransverterMode: type: integer + minimum: 0 + maximum: 1 description: > Rx transverter activated * 0 - disabled @@ -56,8 +62,11 @@ MetisMISOSettings: rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." txTransverterMode: type: integer + minimum: 0 + maximum: 1 description: > Tx transverter activated * 0 - disabled @@ -65,8 +74,11 @@ MetisMISOSettings: txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > I/Q samples order * 0 - I then Q (direct) @@ -97,43 +109,59 @@ MetisMISOSettings: type: integer sampleRateIndex: type: integer + description: "Selected sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 3 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." LOppmTenths: type: integer description: LO correction in tenths of ppm preamp: type: integer + minimum: 0 + maximum: 1 description: > Preamplifer * 0 - disabled * 1 - enabled random: type: integer + minimum: 0 + maximum: 1 description: > LT2208 Random * 0 - disabled * 1 - enabled dither: type: integer + minimum: 0 + maximum: 1 description: > LT2208 Dither * 0 - disabled * 1 - enabled duplex: type: integer + minimum: 0 + maximum: 1 description: > Duplex * 0 - disabled * 1 - enabled dcBlock: type: integer + minimum: 0 + maximum: 1 description: > DC block in software * 0 - disabled * 1 - enabled iqCorrection: type: integer + minimum: 0 + maximum: 1 description: > DC block in software * 0 - disabled @@ -149,25 +177,36 @@ MetisMISOSettings: description: The index of the stream that is used as source of the main spectrum streamLock: type: integer + minimum: 0 + maximum: 1 description: > Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked rxLock: type: integer + minimum: 0 + maximum: 1 description: > Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 0 - disabled * 1 - enabled reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/MorseDecoder.yaml b/swagger/sdrangel/api/swagger/include/MorseDecoder.yaml index 4859b1371..15029ef4d 100644 --- a/swagger/sdrangel/api/swagger/include/MorseDecoder.yaml +++ b/swagger/sdrangel/api/swagger/include/MorseDecoder.yaml @@ -3,20 +3,30 @@ MorseDecoderSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 udpEnabled: type: integer + minimum: 0 + maximum: 1 description: > Send decoded text via UDP * 1 - send @@ -26,36 +36,48 @@ MorseDecoderSettings: description: Address to send text via UDP udpPort: type: integer + minimum: 1 + maximum: 65535 description: Port to send text via UDP logFiledName: type: string description: File to log the decoded text to logEnabled: type: integer + minimum: 0 + maximum: 1 description: > Log decoded text to file * 1 - log * 0 - do not log auto: type: integer + minimum: 0 + maximum: 1 description: > Auto detect CW pitch and keying speed * 1 - auto detect * 0 - use last values showThreshold: type: integer + minimum: 0 + maximum: 1 description: > Show GGMorse decoder threshold on the imaginary part of the scope trace * 1 - show * 0 - do not show reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." MorseDecoderActions: description: "Morse Decoder actions" diff --git a/swagger/sdrangel/api/swagger/include/NFMDemod.yaml b/swagger/sdrangel/api/swagger/include/NFMDemod.yaml index c3cc11691..f4b0f58e4 100644 --- a/swagger/sdrangel/api/swagger/include/NFMDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/NFMDemod.yaml @@ -15,11 +15,13 @@ NFMDemodSettings: format: float fmDeviation: type: integer + description: "FM frequency deviation in Hz." squelchGate: description: squelch gate in tens of ms type: integer deltaSquelch: type: integer + description: "Delta squelch setting for Nfm demod." squelch: description: power squelch threshold in deci-bels type: number @@ -27,38 +29,58 @@ NFMDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." ctcssOn: type: integer + description: "Ctcss on setting for Nfm demod." highPass: type: integer + description: "High pass setting for Nfm demod." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 ctcssIndex: type: integer + description: "Selected ctcss index." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NFMDemodReport: description: NFMDemod @@ -76,6 +98,8 @@ NFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/NFMMod.yaml b/swagger/sdrangel/api/swagger/include/NFMMod.yaml index 3279ddc14..446e74f98 100644 --- a/swagger/sdrangel/api/swagger/include/NFMMod.yaml +++ b/swagger/sdrangel/api/swagger/include/NFMMod.yaml @@ -4,63 +4,91 @@ NFMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Nfm mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 ctcssOn: description: > Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled type: integer + minimum: 0 + maximum: 1 ctcssIndex: type: integer + description: "Selected ctcss index." dcsOn: description: > Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled type: integer + minimum: 0 + maximum: 1 dcsCode: type: integer + description: "Dcs code setting for Nfm mod." dcsPositive: description: > Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1 type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." preEmphasisOn: type: integer + minimum: 0 + maximum: 1 description: > Activate pre-emphasis filter: * 0 - inactive * 1 - active bpfOn: type: integer + minimum: 0 + maximum: 1 description: > Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive @@ -71,20 +99,31 @@ NFMModSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "http://swgserver:8081/api/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NFMModReport: description: NFMMod @@ -95,5 +134,7 @@ NFMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/NavtexDemod.yaml b/swagger/sdrangel/api/swagger/include/NavtexDemod.yaml index af2417eb7..6aa15b76b 100644 --- a/swagger/sdrangel/api/swagger/include/NavtexDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/NavtexDemod.yaml @@ -4,52 +4,78 @@ NavtexDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." navArea: type: integer + description: "Nav area setting for Navtex demod." filterStation: type: string + description: "Filter station setting for Navtex demod." filterType: type: string + description: "Filter type setting for Navtex demod." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NavtexDemodReport: description: ACARSDemod @@ -60,3 +86,4 @@ NavtexDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/NoiseFigure.yaml b/swagger/sdrangel/api/swagger/include/NoiseFigure.yaml index 5f25b3756..9372ac52e 100644 --- a/swagger/sdrangel/api/swagger/include/NoiseFigure.yaml +++ b/swagger/sdrangel/api/swagger/include/NoiseFigure.yaml @@ -4,64 +4,92 @@ NoiseFigureSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." fftSize: type: integer + description: "FFT size in samples." fftCount: type: integer + description: "Number of fft events or items." sweepSpec: description: "(0 - Range, 1 - Step, 2 - List)" type: integer + minimum: 0 + maximum: 2 startValue: type: number format: float + description: "Start value setting for Noise figure." stopValue: type: number format: float + description: "Stop value setting for Noise figure." steps: type: integer + description: "Steps setting for Noise figure." step: type: number format: float + description: "Increment between adjacent supported values." list: type: string + description: "List setting for Noise figure." setting: description: "The device setting to sweep (E.g. centerFrequency or gain)" type: string visaDevice: type: string + description: "Visa device setting for Noise figure." powerOnSCPI: type: string + description: "Power on scpi setting for Noise figure." powerOffSCPI: type: string + description: "Power off scpi setting for Noise figure." powerOnCommand: type: string + description: "Power on command setting for Noise figure." powerOffCommand: type: string + description: "Power off command setting for Noise figure." powerDelay: type: number format: float + description: "Power delay setting for Noise figure." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." NoiseFigureReport: description: NoiseFigure @@ -72,3 +100,4 @@ NoiseFigureReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/PERTester.yaml b/swagger/sdrangel/api/swagger/include/PERTester.yaml index 103b8c809..639ccc27f 100644 --- a/swagger/sdrangel/api/swagger/include/PERTester.yaml +++ b/swagger/sdrangel/api/swagger/include/PERTester.yaml @@ -3,12 +3,16 @@ PERTesterSettings: properties: packetCount: type: integer + description: "Number of packet events or items." interval: type: number format: float + description: "Interval setting for Per tester." start: description: "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass" type: integer + minimum: 0 + maximum: 2 satellites: description: "Satellite names to start test on" type: array @@ -19,8 +23,10 @@ PERTesterSettings: type: string ignoreLeadingBytes: type: integer + description: "Ignore leading bytes setting for Per tester." ignoreTrailingBytes: type: integer + description: "Ignore trailing bytes setting for Per tester." txUDPAddress: description: "UDP address to sent packets to be transmitted to" type: string @@ -35,27 +41,40 @@ PERTesterSettings: type: integer title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PERTesterReport: description: PERTester properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -68,6 +87,8 @@ PERTesterActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/PSK31Mod.yaml b/swagger/sdrangel/api/swagger/include/PSK31Mod.yaml index b5d24e122..58f2c15ce 100644 --- a/swagger/sdrangel/api/swagger/include/PSK31Mod.yaml +++ b/swagger/sdrangel/api/swagger/include/PSK31Mod.yaml @@ -4,21 +4,34 @@ PSK31ModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: integer + description: "RF bandwidth in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatCount: type: integer + description: "Number of repetitions." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -28,6 +41,8 @@ PSK31ModSettings: description: Text to transmit pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -35,43 +50,67 @@ PSK31ModSettings: beta: type: number format: float + description: "Beta setting for Psk31 mod." symbolSpan: type: integer + description: "Symbol span setting for Psk31 mod." prefixCRLF: type: integer + description: "Enable prefix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 postfixCRLF: type: integer + description: "Enable postfix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to receive text to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive text to transmit via" type: string udpPort: description: "UDP port to receive text to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PSK31ModReport: description: PSK31Mod @@ -82,18 +121,22 @@ PSK31ModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." PSK31ModActions: description: PSK31Mod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit current text * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: text: description: PSK31 content to transmit diff --git a/swagger/sdrangel/api/swagger/include/PacketDemod.yaml b/swagger/sdrangel/api/swagger/include/PacketDemod.yaml index 50e8aeec1..95813cf46 100644 --- a/swagger/sdrangel/api/swagger/include/PacketDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/PacketDemod.yaml @@ -4,6 +4,7 @@ PacketDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." mode: type: integer description: > @@ -12,6 +13,7 @@ PacketDemodSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." chase: description: "Chase decoding depth. On CRC failure, retry inverting the n least confident symbols. 0 disables" type: integer @@ -21,40 +23,63 @@ PacketDemodSettings: udpEnabled: description: "Whether to forward received packets to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received packets to" type: string udpPort: description: "UDP port to forward received packets to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PacketDemodReport: description: PacketDemod @@ -65,3 +90,4 @@ PacketDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/PacketMod.yaml b/swagger/sdrangel/api/swagger/include/PacketMod.yaml index 691d38cfc..4e856203f 100644 --- a/swagger/sdrangel/api/swagger/include/PacketMod.yaml +++ b/swagger/sdrangel/api/swagger/include/PacketMod.yaml @@ -4,8 +4,11 @@ PacketModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." modulation: type: integer + minimum: 0 + maximum: 1 description: > Modulation mode * 0 - AFSK @@ -16,103 +19,149 @@ PacketModSettings: rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatDelay: type: number format: float + description: "Delay between repetitions." repeatCount: type: integer + description: "Number of repetitions." rampUpBits: type: integer + description: "Ramp up bits setting for Packet mod." rampDownBits: type: integer + description: "Ramp down bits setting for Packet mod." rampRange: type: integer + description: "Ramp range setting for Packet mod." modulateWhileRamping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on markFrequency: type: integer + description: "Mark frequency in Hz." spaceFrequency: type: integer + description: "Space frequency in Hz." ax25PreFlags: type: integer + description: "Ax25 pre flags setting for Packet mod." ax25PostFlags: type: integer + description: "Ax25 post flags setting for Packet mod." ax25Control: type: integer + description: "Ax25 control setting for Packet mod." ax25PID: type: integer + description: "Ax25 pid setting for Packet mod." preEmphasis: type: integer + description: "Pre emphasis setting for Packet mod." preEmphasisTau: type: number format: float + description: "Pre emphasis tau setting for Packet mod." preEmphasisHighFreq: type: number format: float + description: "Pre emphasis high freq setting for Packet mod." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." bbNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on writeToFile: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on spectrumRate: type: integer + description: "Spectrum rate setting for Packet mod." callsign: type: string + description: "Radio callsign." to: type: string + description: "To setting for Packet mod." via: type: string + description: "Via setting for Packet mod." data: type: string + description: "Payload data." bpf: type: integer + description: "Bpf setting for Packet mod." bpfLowCutoff: type: number format: float + description: "Bpf low cutoff setting for Packet mod." bpfHighCutoff: type: number format: float + description: "Bpf high cutoff setting for Packet mod." bpfTaps: type: integer + description: "Bpf taps setting for Packet mod." scramble: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off * 1 - on polynomial: type: integer + description: "Polynomial setting for Packet mod." pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -120,39 +169,57 @@ PacketModSettings: beta: type: number format: float + description: "Beta setting for Packet mod." symbolSpan: type: integer + description: "Symbol span setting for Packet mod." udpEnabled: description: "Whether to receive packets to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive packets to transmit via" type: string udpPort: description: "UDP port to receive packets to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PacketModReport: description: PacketMod @@ -163,26 +230,35 @@ PacketModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." PacketModActions: description: PacketMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit with current data * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: callsign: type: string + description: "Radio callsign." to: type: string + description: "To action parameter." via: type: string + description: "Via action parameter." data: type: string + description: "Payload data." diff --git a/swagger/sdrangel/api/swagger/include/PagerDemod.yaml b/swagger/sdrangel/api/swagger/include/PagerDemod.yaml index 9fb842043..74be63b83 100644 --- a/swagger/sdrangel/api/swagger/include/PagerDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/PagerDemod.yaml @@ -3,6 +3,8 @@ PagerDemodSettings: properties: decode: type: integer + minimum: 0 + maximum: 4 description: > Decode mode * 0 - Standard @@ -12,6 +14,8 @@ PagerDemodSettings: * 4 - Heuristic reverse: type: integer + minimum: 0 + maximum: 1 description: > Whether characters should be reversed, for right-to-left reading order * 0 - Straight @@ -19,49 +23,73 @@ PagerDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." PagerDemodReport: description: PagerDemod @@ -72,3 +100,4 @@ PagerDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/Perseus.yaml b/swagger/sdrangel/api/swagger/include/Perseus.yaml index e41690162..db6e445f9 100644 --- a/swagger/sdrangel/api/swagger/include/Perseus.yaml +++ b/swagger/sdrangel/api/swagger/include/Perseus.yaml @@ -3,15 +3,22 @@ PerseusSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 2 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." adcDither: description: ADC dithering (1 if active else 0) type: integer @@ -23,11 +30,17 @@ PerseusSettings: type: integer transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -38,17 +51,25 @@ PerseusSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PerseusReport: description: Perseus properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/SampleRate" diff --git a/swagger/sdrangel/api/swagger/include/PlutoSdr.yaml b/swagger/sdrangel/api/swagger/include/PlutoSdr.yaml index 95709d5d3..a6f7f4c79 100644 --- a/swagger/sdrangel/api/swagger/include/PlutoSdr.yaml +++ b/swagger/sdrangel/api/swagger/include/PlutoSdr.yaml @@ -3,40 +3,66 @@ PlutoSdrInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lpfFIREnable: description: Low pass FIR filter enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 lpfFIRBW: description: digital lowpass FIR filter bandwidth (Hz) type: integer lpfFIRlog2Decim: description: digital lowpass FIR filter log2 of decimation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfFIRGain: description: digital lowpass FIR filter gain (dB) type: integer fcPos: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwBBDCBlock: type: integer + description: "Enable hw bbdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwRFDCBlock: type: integer + description: "Enable hw rfdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwIQCorrection: type: integer + description: "Enable hw i/q correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." lpfBW: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -45,15 +71,23 @@ PlutoSdrInputSettings: type: integer antennaPath: type: integer + description: "Selected RF antenna path." gainMode: type: integer + description: "Gain-control mode selection." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -61,39 +95,55 @@ PlutoSdrInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrOutputSettings: description: PlutoSDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." lpfFIREnable: description: Low pass FIR filter enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 lpfFIRBW: description: digital lowpass FIR filter bandwidth (Hz) type: integer lpfFIRlog2Interp: description: digital lowpass FIR filter log2 of interpolation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." lpfBW: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -102,53 +152,90 @@ PlutoSdrOutputSettings: type: integer antennaPath: type: integer + description: "Selected RF antenna path." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrMIMOSettings: description: PlutoSDR properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwBBDCBlock: type: integer + description: "Enable hw bbdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwRFDCBlock: type: integer + description: "Enable hw rfdc block (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 hwIQCorrection: type: integer + description: "Enable hw i/q correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 fcPosRx: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 rxTransverterMode: type: integer + description: "Receive transverter mode setting for Pluto sdr MIMO." rxTransverterDeltaFrequency: type: integer format: int64 + description: "Receive frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -165,36 +252,48 @@ PlutoSdrMIMOSettings: lpfRxFIRlog2Decim: description: digital lowpass FIR filter log2 of decimation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfRxFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." rx0Gain: description: Hardware gain type: integer rx0GainMode: type: integer + description: "Rx0 gain mode setting for Pluto sdr MIMO." rx0AntennaPath: type: integer + description: "Rx0 antenna path setting for Pluto sdr MIMO." rx1Gain: description: Hardware gain type: integer rx1GainMode: type: integer + description: "Rx1 gain mode setting for Pluto sdr MIMO." rx1AntennaPath: type: integer + description: "Rx1 antenna path setting for Pluto sdr MIMO." txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." fcPosTx: description: 0=Infra 1=Supra 2=Center type: integer + minimum: 0 + maximum: 2 txTransverterMode: type: integer + description: "Transmit transverter mode setting for Pluto sdr MIMO." txTransverterDeltaFrequency: type: integer format: int64 + description: "Transmit frequency translation applied in transverter mode in Hz." lpfBWTx: description: Analog lowpass filter bandwidth (Hz) type: integer @@ -207,71 +306,98 @@ PlutoSdrMIMOSettings: lpfTxFIRlog2Interp: description: digital lowpass FIR filter log2 of interpolation factor (0..2) type: integer + minimum: 0 + maximum: 2 lpfTxFIRGain: description: digital lowpass FIR filter gain (dB) type: integer log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." tx0Att: description: Hardware attenuator gain in decibel fourths (negative) type: integer tx0AntennaPath: type: integer + description: "Tx0 antenna path setting for Pluto sdr MIMO." tx1Att: description: Hardware attenuator gain in decibel fourths (negative) type: integer tx1AntennaPath: type: integer + description: "Tx1 antenna path setting for Pluto sdr MIMO." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." PlutoSdrInputReport: description: PlutoSDR properties: adcRate: type: integer + description: "ADC sample rate in samples per second." rssi: type: string + description: "Received signal strength indication." gainDB: type: integer + description: "Gain dB in dB." temperature: type: number format: float + description: "Reported device temperature." PlutoSdrOutputReport: description: PlutoSDR properties: dacRate: type: integer + description: "DAC sample rate in samples per second." rssi: type: string + description: "Received signal strength indication." temperature: type: number format: float + description: "Reported device temperature." PlutoSdrMIMOReport: description: PlutoSDR properties: adcRate: type: integer + description: "ADC sample rate in samples per second." dacRate: type: integer + description: "DAC sample rate in samples per second." rx0GainDB: type: integer + description: "Rx0 gain dB in dB." rx1GainDB: type: integer + description: "Rx1 gain dB in dB." rssiRx0: type: string + description: "Reported rssi rx0." rssiRx1: type: string + description: "Reported rssi rx1." rssiTx0: type: string + description: "Reported rssi tx0." rssiTx1: type: string + description: "Reported rssi tx1." diff --git a/swagger/sdrangel/api/swagger/include/Preferences.yaml b/swagger/sdrangel/api/swagger/include/Preferences.yaml index 23dcb720b..e984758c5 100644 --- a/swagger/sdrangel/api/swagger/include/Preferences.yaml +++ b/swagger/sdrangel/api/swagger/include/Preferences.yaml @@ -9,22 +9,33 @@ Preferences: type: integer audioType: type: string + description: "Audio type for Preferences." audioDevice: type: string + description: "Audio device for Preferences." latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 consoleMinLogLevel: description: See QtMsgType type: integer useLogFile: description: boolean type: integer + minimum: 0 + maximum: 1 logFileName: type: string + description: "Log file name." fileMinLogLevel: description: See QtMsgType type: integer diff --git a/swagger/sdrangel/api/swagger/include/Preset.yaml b/swagger/sdrangel/api/swagger/include/Preset.yaml index 538a5b87e..ae7dd29b9 100644 --- a/swagger/sdrangel/api/swagger/include/Preset.yaml +++ b/swagger/sdrangel/api/swagger/include/Preset.yaml @@ -3,12 +3,16 @@ DeviceConfig: properties: deviceId: type: string + description: "Device id for Device config." deviceSerial: type: string + description: "Device serial for Device config." deviceSequence: type: integer + description: "Device sequence for Device config." config: $ref: "http://swgserver:8081/api/swagger/include/DeviceSettings.yaml#/DeviceSettings" + description: "Configuration data." ChannelConfig: description: Represents a Preset::ChannelConfig object @@ -18,34 +22,51 @@ ChannelConfig: type: string config: $ref: "http://swgserver:8081/api/swagger/include/ChannelSettings.yaml#/ChannelSettings" + description: "Configuration data." Preset: description: Represents a Preset object properties: presetType: - description: See Preset::PresetType + description: > + Which kind of device set the preset applies to + * 0 - receiver + * 1 - transmitter + * 2 - MIMO type: integer + minimum: 0 + maximum: 2 group: type: string + description: "Group for Preset." description: type: string + description: "Human-readable description." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." dcOffsetCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 iqImbalanceCorrection: description: boolean type: integer + minimum: 0 + maximum: 1 channelConfigs: type: array + description: "List of channel configs." items: $ref: "http://swgserver:8081/api/swagger/include/Preset.yaml#/ChannelConfig" deviceConfigs: type: array + description: "List of device configs." items: $ref: "http://swgserver:8081/api/swagger/include/Preset.yaml#/DeviceConfig" layout: diff --git a/swagger/sdrangel/api/swagger/include/RTTYDemod.yaml b/swagger/sdrangel/api/swagger/include/RTTYDemod.yaml index b4ff78c66..fc856142e 100644 --- a/swagger/sdrangel/api/swagger/include/RTTYDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/RTTYDemod.yaml @@ -4,63 +4,100 @@ RTTYDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." baudRate: type: number format: float + description: "Serial-port baud rate in bits per second." frequencyShift: type: integer + description: "Frequency shift in Hz." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 characterSet: type: integer + description: "Character set setting for Rtty demod." suppressCRLF: type: integer + description: "Suppress crlf setting for Rtty demod." unshiftOnSpace: type: integer + description: "Enable unshift on space (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 msbFirst: type: integer + description: "Enable msb first (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 spaceHigh: type: integer + description: "Enable space high (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 squelch: type: integer + description: "Squelch threshold in dB." logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RTTYDemodReport: description: ACARSDemod @@ -71,3 +108,4 @@ RTTYDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/RTTYMod.yaml b/swagger/sdrangel/api/swagger/include/RTTYMod.yaml index ba283e106..7b22ff205 100644 --- a/swagger/sdrangel/api/swagger/include/RTTYMod.yaml +++ b/swagger/sdrangel/api/swagger/include/RTTYMod.yaml @@ -4,27 +4,41 @@ RTTYModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." baud: type: number format: float description: Baud rate rfBandwidth: type: integer + description: "RF bandwidth in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 repeat: type: integer + description: "Repeat transmission or playback (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 repeatCount: type: integer + description: "Number of repetitions." lpfTaps: type: integer + description: "Number of low-pass FIR filter taps." rfNoise: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -34,6 +48,8 @@ RTTYModSettings: description: Text to transmit pulseShaping: type: integer + minimum: 0 + maximum: 1 description: > Boolean * 0 - off @@ -41,51 +57,85 @@ RTTYModSettings: beta: type: number format: float + description: "Beta setting for Rtty mod." symbolSpan: type: integer + description: "Symbol span setting for Rtty mod." characterSet: type: integer + description: "Character set setting for Rtty mod." unshiftOnSpace: type: integer + description: "Enable unshift on space (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 msbFirst: type: integer + description: "Enable msb first (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 spaceHigh: type: integer + description: "Enable space high (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 prefixCRLF: type: integer + description: "Enable prefix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 postfixCRLF: type: integer + description: "Enable postfix crlf (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 udpEnabled: description: "Whether to receive text to transmit on specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to receive text to transmit via" type: string udpPort: description: "UDP port to receive text to transmit via" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RTTYModReport: description: RTTYMod @@ -96,18 +146,22 @@ RTTYModReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." RTTYModActions: description: RTTYMod properties: tx: type: integer + minimum: 0 + maximum: 1 description: > Transmit current text * 0 - Do nothing * 1 - Transmit payload: type: object + description: "Payload data." properties: text: description: RTTY content to transmit diff --git a/swagger/sdrangel/api/swagger/include/RadioAstronomy.yaml b/swagger/sdrangel/api/swagger/include/RadioAstronomy.yaml index f5e28c926..47fac868b 100644 --- a/swagger/sdrangel/api/swagger/include/RadioAstronomy.yaml +++ b/swagger/sdrangel/api/swagger/include/RadioAstronomy.yaml @@ -4,79 +4,115 @@ RadioAstronomySettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." rfBandwidth: type: integer + description: "RF bandwidth in Hz." integration: type: integer + description: "Integration setting for Radio astronomy." fftSize: type: integer + description: "FFT size in samples." fftWindow: type: integer + description: "FFT window setting for Radio astronomy." filterFreqs: type: string + description: "Filter freqs setting for Radio astronomy." starTracker: type: string + description: "Star tracker setting for Radio astronomy." rotator: type: string + description: "Rotator setting for Radio astronomy." runMode: description: "(0 for single, 1 for continuous, 2 for sweep)" type: integer + minimum: 0 + maximum: 2 sweepStartAtTime: description: "(0 for now, 1 for at sweepStartDateTime)" type: integer + minimum: 0 + maximum: 1 sweepStartDateTime: type: string + description: "Sweep start date time setting for Radio astronomy." sweepType: description: "(0 for Az/El, 1 for l/b, 2 for offset)" type: integer + minimum: 0 + maximum: 2 sweep1Start: type: number format: float + description: "Sweep1 start setting for Radio astronomy." sweep1Stop: type: number format: float + description: "Sweep1 stop setting for Radio astronomy." sweep1Step: type: number format: float + description: "Sweep1 step setting for Radio astronomy." sweep1Delay: type: number format: float + description: "Sweep1 delay setting for Radio astronomy." sweep2Start: type: number format: float + description: "Sweep2 start setting for Radio astronomy." sweep2Stop: type: number format: float + description: "Sweep2 stop setting for Radio astronomy." sweep2Step: type: number format: float + description: "Sweep2 step setting for Radio astronomy." sweep2Delay: type: number format: float + description: "Sweep2 delay setting for Radio astronomy." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadioAstronomyReport: description: RadioAstronomy @@ -87,6 +123,7 @@ RadioAstronomyReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." RadioAstronomyActions: description: RadioAstronomy diff --git a/swagger/sdrangel/api/swagger/include/RadioClock.yaml b/swagger/sdrangel/api/swagger/include/RadioClock.yaml index 50b771452..3e1cc0ed9 100644 --- a/swagger/sdrangel/api/swagger/include/RadioClock.yaml +++ b/swagger/sdrangel/api/swagger/include/RadioClock.yaml @@ -8,6 +8,8 @@ RadioClockSettings: frequencyMode: description: (0 for Offset, 1 for Absolute) type: integer + minimum: 0 + maximum: 1 frequency: description: Channel center frequency type: integer @@ -19,36 +21,54 @@ RadioClockSettings: threshold: type: number format: float + description: "Threshold setting for Radio clock." modulation: description: 0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY type: integer + minimum: 0 + maximum: 4 timezone: description: 0 - Broadcast, 1 - Local, 2 - UTC type: integer + minimum: 0 + maximum: 2 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadioClockReport: description: RadioClock @@ -59,7 +79,10 @@ RadioClockReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." date: type: string + description: "Reported date." time: type: string + description: "Reported time." diff --git a/swagger/sdrangel/api/swagger/include/Radiosonde.yaml b/swagger/sdrangel/api/swagger/include/Radiosonde.yaml index 6d3e545fe..291b052c3 100644 --- a/swagger/sdrangel/api/swagger/include/Radiosonde.yaml +++ b/swagger/sdrangel/api/swagger/include/Radiosonde.yaml @@ -3,26 +3,130 @@ RadiosondeSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." radiosondesColumnIndexes: type: array + description: "List of radiosondes column indexes." items: type: integer radiosondesColumnSizes: type: array + description: "List of radiosondes column sizes." items: type: integer + +RadiosondeReport: + description: > + Radiosondes heard by the Radiosonde feature, which collects the decoded frames of every + radiosonde demodulator in the instance. A field is present only once a frame carrying it has + been received. + properties: + reportDateTime: + type: string + description: "When this snapshot was taken, ISO 8601." + radiosondeCount: + type: integer + description: "Number of radiosondes currently held." + radiosondes: + type: array + description: "The radiosondes heard." + items: + $ref: "http://swgserver:8081/api/swagger/include/Radiosonde.yaml#/Radiosonde" + +Radiosonde: + description: Radiosonde heard by the Radiosonde feature + properties: + serial: + type: string + description: "Serial number, which identifies the sonde across a flight." + type: + type: string + description: "Sonde model, such as RS41." + latitude: + type: number + format: float + minimum: -90 + maximum: 90 + description: "Latitude in decimal degrees, north positive." + longitude: + type: number + format: float + minimum: -180 + maximum: 180 + description: "Longitude in decimal degrees, east positive." + altitude: + type: number + format: float + description: "Altitude in metres above mean sea level." + altitudeMax: + type: number + format: float + description: "Greatest altitude seen this flight in metres, which indicates the burst altitude." + speed: + type: number + format: float + description: "Ground speed in km/h." + verticalRate: + type: number + format: float + description: "Ascent rate in m/s. Negative after burst." + heading: + type: number + format: float + description: "Direction of travel in degrees true." + status: + type: string + description: "Status as reported by the sonde." + pressure: + type: number + format: float + description: "Atmospheric pressure in hPa." + temperature: + type: number + format: float + description: "Air temperature in degrees Celsius." + humidity: + type: number + format: float + description: "Relative humidity as a percentage." + frequency: + type: integer + format: int64 + description: "Transmit frequency in Hz." + burstKillStatus: + type: string + description: "Whether the burst-kill timer is armed." + burstKillTimer: + type: string + description: "Time remaining on the burst-kill timer." + lastUpdate: + type: string + description: "When any field was last updated, ISO 8601." + messages: + type: integer + description: "Frames received from this radiosonde." diff --git a/swagger/sdrangel/api/swagger/include/RadiosondeDemod.yaml b/swagger/sdrangel/api/swagger/include/RadiosondeDemod.yaml index 89069e3fa..b5fa85d57 100644 --- a/swagger/sdrangel/api/swagger/include/RadiosondeDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/RadiosondeDemod.yaml @@ -7,54 +7,82 @@ RadiosondeDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." correlationThreshold: type: number format: float + description: "Minimum correlation score required to accept a frame preamble." udpEnabled: description: "Whether to forward received messages to specified UDP port" type: integer + minimum: 0 + maximum: 1 udpAddress: description: "UDP address to forward received messages to" type: string udpPort: description: "UDP port to forward received messages to" type: integer + minimum: 1 + maximum: 65535 logFilename: type: string + description: "Log file name or path." logEnabled: type: integer + description: "Enable logging to the configured file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useFileTime: type: integer + description: "Enable file time (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." scopeConfig: $ref: "http://swgserver:8081/api/swagger/include/GLScope.yaml#/GLScope" + description: "Oscilloscope-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RadiosondeDemodReport: description: RadiosondeDemod @@ -65,3 +93,4 @@ RadiosondeDemodReport: format: float channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/RemoteInput.yaml b/swagger/sdrangel/api/swagger/include/RemoteInput.yaml index b0ce39d43..cf081f6b4 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteInput.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteInput.yaml @@ -3,35 +3,60 @@ RemoteInputSettings: properties: title: type: string + description: "User-visible title." apiAddress: type: string + description: "IPv4 address or host name of the API endpoint." apiPort: type: integer + description: "TCP port of the API endpoint." + minimum: 1 + maximum: 65535 dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 multicastAddress: type: string + description: "IP multicast group address." multicastJoin: type: integer + minimum: 0 + maximum: 1 description: > Join multicast group * 0 - leave group * 1 - join group dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteInputReport: description: RemoteInput @@ -39,8 +64,10 @@ RemoteInputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." bufferRWBalance: description: percentage off the mid buffer (positive read leads) type: integer diff --git a/swagger/sdrangel/api/swagger/include/RemoteOutput.yaml b/swagger/sdrangel/api/swagger/include/RemoteOutput.yaml index 59a8f0ac7..94784c09a 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteOutput.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteOutput.yaml @@ -3,8 +3,10 @@ RemoteOutputSettings: properties: title: type: string + description: "User-visible title." nbFECBlocks: type: integer + description: "Nb fec blocks setting for Remote output." nbTxBytes: type: integer description: > @@ -14,12 +16,20 @@ RemoteOutputSettings: * 4 apiAddress: type: string + description: "IPv4 address or host name of the API endpoint." apiPort: type: integer + description: "TCP port of the API endpoint." + minimum: 1 + maximum: 65535 dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 deviceIndex: description: remote SDRangel instance deviceset index type: integer @@ -29,12 +39,19 @@ RemoteOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteOutputReport: description: RemoteOutput @@ -42,8 +59,10 @@ RemoteOutputReport: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." queueLength: description: "Data read/write queue length in number of data frames" type: integer diff --git a/swagger/sdrangel/api/swagger/include/RemoteSink.yaml b/swagger/sdrangel/api/swagger/include/RemoteSink.yaml index f560aeb39..0c1dce1bc 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteSink.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteSink.yaml @@ -20,29 +20,45 @@ RemoteSinkSettings: dataPort: description: "Receiving USB data port" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/RemoteSource.yaml b/swagger/sdrangel/api/swagger/include/RemoteSource.yaml index 74374b30f..56ef93bd9 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteSource.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteSource.yaml @@ -7,32 +7,48 @@ RemoteSourceSettings: dataPort: description: "Remote USB data port" type: integer + minimum: 1 + maximum: 65535 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." filterChainHash: type: integer + description: "Identifier of the selected half-band filter chain." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RemoteSourceReport: description: "Remote channel source report" diff --git a/swagger/sdrangel/api/swagger/include/RemoteTCPInput.yaml b/swagger/sdrangel/api/swagger/include/RemoteTCPInput.yaml index e2e92a307..20faac400 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteTCPInput.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteTCPInput.yaml @@ -3,72 +3,120 @@ RemoteTCPInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 biasTee: type: integer + description: "Enable the antenna bias tee (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 directSampling: type: integer + description: "Direct sampling setting for Remote TCP input." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rfBW: type: integer + description: "RF bw in Hz." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." channelGain: type: integer + description: "Channel gain setting for Remote TCP input." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." channelDecimation: type: integer + description: "Channel decimation setting for Remote TCP input." sampleBits: type: integer + description: "Number of significant bits in each sample." dataAddress: type: string + description: "IPv4 address or host name used for data traffic." dataPort: type: integer + description: "Network port used for data traffic." + minimum: 1 + maximum: 65535 overrideRemoteSettings: type: integer + description: "Override remote settings setting for Remote TCP input." preFill: type: integer + description: "Pre fill setting for Remote TCP input." protocol: description: (SDRangel or Spy Server) type: string useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RemoteTCPInputReport: description: RemoteTCPInput properties: sampleRate: type: integer + description: "Sample rate in samples per second." latitude: type: number format: float + description: "Latitude in degrees, positive north." + minimum: -90 + maximum: 90 longitude: type: number format: float + description: "Longitude in degrees, positive east." + minimum: -180 + maximum: 180 altitude: type: number format: float + description: "Altitude above mean sea level." diff --git a/swagger/sdrangel/api/swagger/include/RemoteTCPSink.yaml b/swagger/sdrangel/api/swagger/include/RemoteTCPSink.yaml index 428cab235..a9d19992c 100644 --- a/swagger/sdrangel/api/swagger/include/RemoteTCPSink.yaml +++ b/swagger/sdrangel/api/swagger/include/RemoteTCPSink.yaml @@ -3,40 +3,59 @@ RemoteTCPSinkSettings: properties: channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." sampleBits: type: integer + description: "Number of significant bits in each sample." dataAddress: description: "Receiving TCP data address" type: string dataPort: description: "Receiving TCP data port" type: integer + minimum: 1 + maximum: 65535 protocol: type: integer + description: "Protocol setting for Remote TCP sink." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/RigCtlServer.yaml b/swagger/sdrangel/api/swagger/include/RigCtlServer.yaml index 5c338d3f4..2288ffad7 100644 --- a/swagger/sdrangel/api/swagger/include/RigCtlServer.yaml +++ b/swagger/sdrangel/api/swagger/include/RigCtlServer.yaml @@ -3,44 +3,63 @@ RigCtlServerSettings: properties: enabled: type: integer + minimum: 0 + maximum: 1 description: > Enable RigCtl server * 1 - enabled * 0 - disabled rigCtlPort: type: integer + description: "Rig ctl port." maxFrequencyOffset: type: integer + description: "Max frequency offset in Hz." deviceIndex: type: integer + description: "Selected device index." channelIndex: type: integer + description: "Selected channel index." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: type: integer + minimum: 0 + maximum: 1 description: > Synchronize with reverse API * 1 - yes * 0 - no reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." RigCtlServerReport: description: RigCtl server report properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -53,6 +72,8 @@ RigCtlServerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/RollupState.yaml b/swagger/sdrangel/api/swagger/include/RollupState.yaml index e9d5f8863..0f5afedd7 100644 --- a/swagger/sdrangel/api/swagger/include/RollupState.yaml +++ b/swagger/sdrangel/api/swagger/include/RollupState.yaml @@ -3,8 +3,11 @@ RollupChildState: properties: objectName: type: string + description: "Object name for Rollup child state." isHidden: type: integer + minimum: 0 + maximum: 1 description: > Boolean - child hidden state * 0 - visible @@ -15,7 +18,9 @@ RollupState: properties: version: type: integer + description: "Version for Rollup state." childrenStates: type: array + description: "List of children states." items: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupChildState" diff --git a/swagger/sdrangel/api/swagger/include/RtlSdr.yaml b/swagger/sdrangel/api/swagger/include/RtlSdr.yaml index 45e16ffc7..13002747a 100644 --- a/swagger/sdrangel/api/swagger/include/RtlSdr.yaml +++ b/swagger/sdrangel/api/swagger/include/RtlSdr.yaml @@ -3,46 +3,91 @@ RtlSdrSettings: properties: title: type: string + description: "User-visible title." devSampleRate: type: integer + description: > + RTL-SDR device I/Q sample rate in samples per second before software + decimation. The baseband sample rate delivered to channels is + devSampleRate / 2^log2Decim. lowSampleRate: type: integer + minimum: 0 + maximum: 1 + description: "Use the RTL-SDR low sample-rate range (1 enabled, 0 disabled)." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." gain: type: integer + description: > + Tuner gain in tenths of a dB, so 496 means 49.6 dB. Only the discrete values the tuner + supports can be used; they are listed in the gains field of RtlSdrReport, which must be + read from the device report before setting this. Ignored unless agc is disabled. loPpmCorrection: type: integer + description: "Local-oscillator correction in parts per million." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: > + Base-2 exponent of the software decimation factor. The baseband sample + rate delivered to channels is devSampleRate / 2^log2Decim and must be + high enough for every channel's RF bandwidth. For example, broadcast FM + with 180 kHz RF bandwidth should use at least 240 kS/s (256 kS/s is + recommended); at 1.024 MS/s set log2Decim to 2, not 4. fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqImbalance: type: integer + description: "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 noModMode: type: integer + description: "No mod mode setting for Rtl sdr." offsetTuning: type: integer + description: "Enable tuner offset tuning (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) rfBandwidth: type: integer + description: "RF bandwidth in Hz." biasTee: type: integer + minimum: 0 + maximum: 1 description: > Bias tee * 0 - inactive @@ -50,19 +95,28 @@ RtlSdrSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." RtlSdrReport: description: RTLSDR properties: gains: type: array + description: "List of gains." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Gain" tunerType: type: string + description: "Reported tuner type." diff --git a/swagger/sdrangel/api/swagger/include/SDRPlay.yaml b/swagger/sdrangel/api/swagger/include/SDRPlay.yaml index d6621eabf..7a5e661d4 100644 --- a/swagger/sdrangel/api/swagger/include/SDRPlay.yaml +++ b/swagger/sdrangel/api/swagger/include/SDRPlay.yaml @@ -3,40 +3,63 @@ SDRPlaySettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." tunerGain: type: integer + description: "Tuner gain setting for Sdr play." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." frequencyBandIndex: type: integer + description: "Selected frequency band index." ifFrequencyIndex: type: integer + description: "Selected if frequency index." bandwidthIndex: type: integer + description: "Selected bandwidth index." devSampleRateIndex: type: integer + description: "Selected dev sample rate index." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 tunerGainMode: description: 1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain type: integer lnaOn: type: integer + description: "LNA on setting for Sdr play." mixerAmpOn: type: integer + description: "Mixer amp on setting for Sdr play." basebandGain: type: integer + description: "Baseband gain setting for Sdr play." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -44,29 +67,40 @@ SDRPlaySettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SDRPlayReport: description: SDRplay1 properties: sampleRates: type: array + description: "Supported sample rates in samples per second." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/SampleRate" bandwidths: type: array + description: "Supported bandwidths in Hz." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Bandwidth" intermediateFrequencies: type: array + description: "List of intermediate frequencies." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Frequency" frequencyBands: type: array + description: "List of frequency bands." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/FrequencyBand" diff --git a/swagger/sdrangel/api/swagger/include/SDRPlayV3.yaml b/swagger/sdrangel/api/swagger/include/SDRPlayV3.yaml index 78479d4ff..3854872bb 100644 --- a/swagger/sdrangel/api/swagger/include/SDRPlayV3.yaml +++ b/swagger/sdrangel/api/swagger/include/SDRPlayV3.yaml @@ -3,59 +3,92 @@ SDRPlayV3Settings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." ifFrequencyIndex: type: integer + description: "Selected if frequency index." bandwidthIndex: type: integer + description: "Selected bandwidth index." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 lnaIndex: type: integer + description: "Selected lna index." lnaGain: description: Gain in dB, as an alternative to lnaIndex setting type: integer ifAGC: type: integer + description: "IF agc setting for Sdr play v3." ifGain: type: integer + description: "Intermediate-frequency gain setting." amNotch: type: integer + description: "Am notch setting for Sdr play v3." fmNotch: type: integer + description: "FM notch setting for Sdr play v3." dabNotch: type: integer + description: "Dab notch setting for Sdr play v3." extRef: type: integer + description: "Ext ref setting for Sdr play v3." tuner: type: integer + description: "Tuner setting for Sdr play v3." antenna: type: integer + description: "Antenna setting for Sdr play v3." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) biasTee: type: integer + minimum: 0 + maximum: 1 description: > Bias tee * 0 - inactive @@ -63,12 +96,19 @@ SDRPlayV3Settings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SDRPlayV3Report: description: SDRplayV3 @@ -78,9 +118,11 @@ SDRPlayV3Report: description: SDRplay device type. Can be RSP1, RSP1A, RSP1B, RSP2, RSPduo, RSPdx, Unknown bandwidths: type: array + description: "Supported bandwidths in Hz." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Bandwidth" intermediateFrequencies: type: array + description: "List of intermediate frequencies." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Frequency" diff --git a/swagger/sdrangel/api/swagger/include/SID.yaml b/swagger/sdrangel/api/swagger/include/SID.yaml index 6bd0d7bab..1053fd44b 100644 --- a/swagger/sdrangel/api/swagger/include/SID.yaml +++ b/swagger/sdrangel/api/swagger/include/SID.yaml @@ -4,28 +4,46 @@ SIDSettings: period: type: number format: float + description: "Period setting for Sid." autosave: type: integer + description: "Autosave setting for Sid." autoload: type: integer + description: "Autoload setting for Sid." filename: - type: integer + type: string + description: > + File that measurements are written to and read back from when autosave or + autoload is enabled. autosavePeriod: type: integer + description: "Autosave period setting for Sid." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." diff --git a/swagger/sdrangel/api/swagger/include/SSBDemod.yaml b/swagger/sdrangel/api/swagger/include/SSBDemod.yaml index a3322dccc..3a90f43df 100644 --- a/swagger/sdrangel/api/swagger/include/SSBDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/SSBDemod.yaml @@ -4,18 +4,25 @@ SSBDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." filterIndex: type: integer + description: "Selected filter index." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 8 description: > FFT Window index (FFTWindow::Function): * 0 - Bartlett @@ -30,6 +37,7 @@ SSBDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioBinaural: description: Audio binaural mode (1 if active else 0) type: integer @@ -42,9 +50,13 @@ SSBDemodSettings: audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 agcClamping: description: AGC clamping (1 if AGC clampingactive else 0) type: integer @@ -59,12 +71,16 @@ SSBDemodSettings: type: integer dnr: type: integer + minimum: 0 + maximum: 1 description: > Toggle noise reduction: * 0 - Noise reduction off * 1 - Noise reduction on dnrScheme: type: integer + minimum: 0 + maximum: 2 description: > Noise reduction scheme: * 0 - Average of magnitudes @@ -84,33 +100,49 @@ SSBDemodSettings: dnrAlpha: type: number format: float + minimum: 0 + maximum: 1 description: Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1. rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SSBDemodReport: description: SSBDemod @@ -124,5 +156,7 @@ SSBDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/SSBMod.yaml b/swagger/sdrangel/api/swagger/include/SSBMod.yaml index b21175a68..12cf377b6 100644 --- a/swagger/sdrangel/api/swagger/include/SSBMod.yaml +++ b/swagger/sdrangel/api/swagger/include/SSBMod.yaml @@ -4,68 +4,105 @@ SSBModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." bandwidth: type: number format: float + description: "Bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." usb: type: integer + description: "USB setting for Ssb mod." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Ssb mod." spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." audioBinaural: type: integer + description: "Audio binaural setting for Ssb mod." audioFlipChannels: type: integer + description: "Audio flip channels setting for Ssb mod." dsb: type: integer + description: "Dsb setting for Ssb mod." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 agc: type: integer + description: "Enable automatic gain control (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 cmpPreGainDB: type: integer + description: "Cmp pre gain dB in dB." cmpThresholdDB: type: integer + description: "Cmp threshold dB in dB." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "http://swgserver:8081/api/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SSBModReport: description: SSBMod @@ -76,5 +113,7 @@ SSBModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml b/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml index a565eae31..df444a0da 100644 --- a/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml +++ b/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml @@ -5,10 +5,14 @@ SatelliteTrackerSettings: description: "Latitude in decimal degrees (North positive) of antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of antenna location" type: number format: float + minimum: -180 + maximum: 180 heightAboveSeaLevel: description: "Height above sea level in metres of antenna location" type: number @@ -77,9 +81,13 @@ SatelliteTrackerSettings: drawOnMap: description: "Draw satellites on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 autoTarget: description: "Automatically select target on AOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 aosSpeech: description: "Speech warning on AOS" type: string @@ -100,26 +108,39 @@ SatelliteTrackerSettings: azimuthOffset: type: number format: float + description: "Azimuth offset setting for Satellite tracker." elevationOffset: type: number format: float + description: "Elevation offset setting for Satellite tracker." title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SatelliteDeviceSettingsList: description: "List of device set settings for a satellite" @@ -157,12 +178,18 @@ SatelliteDeviceSettings: startOnAOS: description: "Start acquisition on AOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 stopOnLOS: description: "Stop acquisition on LOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 startStopFileSinks: description: "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 frequency: description: "Frequency to override in preset" type: integer @@ -179,6 +206,8 @@ SatelliteTrackerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -188,11 +217,14 @@ SatelliteTrackerReport: targetAzimuth: type: number format: float + description: "Target azimuth in degrees clockwise from north." targetElevation: type: number format: float + description: "Target elevation in degrees above the horizon." satelliteState: type: array + description: "List of satellite state." items: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteState" @@ -200,14 +232,19 @@ SatelliteState: properties: name: type: string + description: "Name." latitude: description: "Latitude of satellite in degrees" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude of satellite in degrees" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude of satellite in km" type: number @@ -238,6 +275,7 @@ SatelliteState: format: float passes: type: array + description: "List of passes." items: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatellitePass" @@ -259,6 +297,8 @@ SatelliteTrackerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml b/swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml index 5a5cf61af..01616e990 100644 --- a/swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml +++ b/swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml @@ -3,6 +3,7 @@ SigMFFileInputSettings: properties: title: type: string + description: "User-visible title." fileName: description: The name (path) of the file being read without extension type: string @@ -18,12 +19,19 @@ SigMFFileInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SigMFFileInputReport: description: SigMFFileInput @@ -36,24 +44,32 @@ SigMFFileInputReport: type: integer sampleFormat: type: integer + minimum: 0 + maximum: 1 description: > Sample format * 0 - integer * 1 - float sampleSigned: type: integer + minimum: 0 + maximum: 1 description: > Sample signed status * 0 - unsigned * 1 - signed sampleSwapIQ: type: integer + minimum: 0 + maximum: 1 description: > Sample I/Q swap * 0 - I/Q * 1 - Q/I crcStatus: type: integer + minimum: 0 + maximum: 2 description: > CRC status * 0 - no CRC available @@ -61,12 +77,15 @@ SigMFFileInputReport: * 2 - CRC (SHA512) KO totalBytesStatus: type: integer + minimum: 0 + maximum: 1 description: > Total number of bytes in data file vs meta data * 0 - mismatch * 1 - match captures: type: array + description: "List of captures." items: $ref: "#/definitions/Capture" trackNumber: @@ -102,12 +121,16 @@ SigMFFileInputActions: properties: playTrack: type: integer + minimum: 0 + maximum: 1 description: > Play IQ stream action * 0 - stop playing * 1 - start playing current track playRecord: type: integer + minimum: 0 + maximum: 1 description: > Play IQ stream action * 0 - stop playing diff --git a/swagger/sdrangel/api/swagger/include/SigMFFileSink.yaml b/swagger/sdrangel/api/swagger/include/SigMFFileSink.yaml index d5638a0f4..472f66ec5 100644 --- a/swagger/sdrangel/api/swagger/include/SigMFFileSink.yaml +++ b/swagger/sdrangel/api/swagger/include/SigMFFileSink.yaml @@ -3,17 +3,23 @@ SigMFFileSinkSettings: properties: inputFrequencyOffset: type: integer + description: "Channel frequency offset from the device center frequency in Hz." fileRecordName: type: string description: full path of the meta file rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." spectrumSquelchMode: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch system * 0 - deactivated @@ -30,6 +36,8 @@ SigMFFileSinkSettings: description: Number of seconds to record after spectrum squelch closes squelchRecordingEnable: type: integer + minimum: 0 + maximum: 1 description: > Automatic recording triggered by spectrum squelch * 0 - disabled @@ -43,26 +51,39 @@ SigMFFileSinkSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SigMFFileSinkReport: description: SigMFFileSink properties: spectrumSquelch: type: integer + minimum: 0 + maximum: 1 description: > Spectrum squelch status * 0 - closed @@ -73,10 +94,14 @@ SigMFFileSinkReport: description: Current spectrum max in squared magnitude (power) sinkSampleRate: type: integer + description: "Sample rate accepted by the sink in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." recording: type: integer + minimum: 0 + maximum: 1 description: > Recording status * 0 - not recording @@ -97,6 +122,8 @@ SigMFFileSinkActions: properties: record: type: integer + minimum: 0 + maximum: 1 description: > Record action * 0 - stop recording diff --git a/swagger/sdrangel/api/swagger/include/SimplePTT.yaml b/swagger/sdrangel/api/swagger/include/SimplePTT.yaml index 80a0862af..ef81cff7b 100644 --- a/swagger/sdrangel/api/swagger/include/SimplePTT.yaml +++ b/swagger/sdrangel/api/swagger/include/SimplePTT.yaml @@ -3,8 +3,10 @@ SimplePTTSettings: properties: title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." rxDeviceSetIndex: description: index of the Rx device set to connect the Rx side to type: integer @@ -19,12 +21,16 @@ SimplePTTSettings: type: integer vox: type: integer + minimum: 0 + maximum: 1 description: > Activate vox system * 0 - not active * 1 - active voxEnable: type: integer + minimum: 0 + maximum: 1 description: > Allow vox to control PTT * 0 - vox does not control PTT @@ -37,8 +43,11 @@ SimplePTTSettings: description: Vox hold timeout in milliseconds audioDeviceName: type: string + description: "Name of the audio device to use." gpioControl: type: integer + minimum: 0 + maximum: 2 description: > GPIO control * 0 - No GPIO control @@ -46,6 +55,8 @@ SimplePTTSettings: * 2 - Tx side controls GPIO rx2txGPIOEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Rx to Tx GPIO control * 0 - disable @@ -60,6 +71,8 @@ SimplePTTSettings: description: Rx to Tx change GPIO values rx2txCommandEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Rx to Tx command * 0 - disable @@ -69,6 +82,8 @@ SimplePTTSettings: description: Command to be executed when Rx switches to Tx tx2rxGPIOEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx to Rx GPIO control * 0 - disable @@ -83,6 +98,8 @@ SimplePTTSettings: description: Tx to Rx change GPIO values tx2rxCommandEnable: type: integer + minimum: 0 + maximum: 1 description: > Enable Tx to Rx command * 0 - disable @@ -93,22 +110,33 @@ SimplePTTSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SimplePTTReport: description: "Simple PTT report" properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -117,6 +145,8 @@ SimplePTTReport: * 3 - error ptt: type: integer + minimum: 0 + maximum: 1 description: > PTT status * 0 - released @@ -127,12 +157,16 @@ SimplePTTActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle * 1 - run ptt: type: integer + minimum: 0 + maximum: 1 description: > PTT action * 0 - release diff --git a/swagger/sdrangel/api/swagger/include/SkyMap.yaml b/swagger/sdrangel/api/swagger/include/SkyMap.yaml index 5fc620230..993a82362 100644 --- a/swagger/sdrangel/api/swagger/include/SkyMap.yaml +++ b/swagger/sdrangel/api/swagger/include/SkyMap.yaml @@ -4,18 +4,28 @@ SkyMapSettings: displayNames: description: "Display names on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayConstellations: description: "Display constellations on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayReticle: description: "Display reticle on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayGrid: description: "Display grid on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 displayAntennaFoV: description: "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 map: description: "WWT, ESASky or Aladin" type: string @@ -24,6 +34,7 @@ SkyMapSettings: type: string projection: type: string + description: "Projection setting for Sky map." source: description: "Channel or Feature plugin to get target from" type: string @@ -34,10 +45,14 @@ SkyMapSettings: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number @@ -50,23 +65,36 @@ SkyMapSettings: description: "Use My Position instead of latitude/longitude settings" type: number format: float + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." SkyMapReport: description: Sky Map @@ -86,10 +114,14 @@ SkyMapReport: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number @@ -129,10 +161,14 @@ SkyMapTarget: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 altitude: description: "Altitude in metres of observation/antenna location" type: number diff --git a/swagger/sdrangel/api/swagger/include/SoapySDR.yaml b/swagger/sdrangel/api/swagger/include/SoapySDR.yaml index d826e3bd5..f5e1111ed 100644 --- a/swagger/sdrangel/api/swagger/include/SoapySDR.yaml +++ b/swagger/sdrangel/api/swagger/include/SoapySDR.yaml @@ -3,195 +3,281 @@ SoapySDRInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." softDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 softIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterMode: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) * 1 - I then Q (straight) antenna: type: string + description: "Antenna setting for Soapy sdr input." bandwidth: type: integer + description: "Bandwidth in Hz." tunableElements: type: array + description: "List of tunable elements." items: $ref: "#/definitions/ArgValue" globalGain: type: integer + description: "Overall device gain setting." individualGains: type: array + description: "List of individual gains." items: $ref: "#/definitions/ArgValue" autoGain: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 dcCorrection: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Complex" + description: "Enable DC-offset correction (1 enabled, 0 disabled)." iqCorrection: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Complex" + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." streamArgSettings: type: array + description: "List of stream arg settings." items: $ref: "#/definitions/ArgValue" deviceArgSettings: type: array + description: "List of device arg settings." items: $ref: "#/definitions/ArgValue" useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SoapySDROutputSettings: description: SoapySDR properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." LOppmTenths: type: integer + description: "Local-oscillator correction in tenths of a part per million." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2Interp: type: integer + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." transverterMode: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." antenna: type: string + description: "Antenna setting for Soapy sdr output." bandwidth: type: integer + description: "Bandwidth in Hz." tunableElements: type: array + description: "List of tunable elements." items: $ref: "#/definitions/ArgValue" globalGain: type: integer + description: "Overall device gain setting." individualGains: type: array + description: "List of individual gains." items: $ref: "#/definitions/ArgValue" autoGain: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoDCCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 autoIQCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 dcCorrection: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Complex" + description: "Enable DC-offset correction (1 enabled, 0 disabled)." iqCorrection: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/Complex" + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." streamArgSettings: type: array + description: "List of stream arg settings." items: $ref: "#/definitions/ArgValue" deviceArgSettings: type: array + description: "List of device arg settings." items: $ref: "#/definitions/ArgValue" useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." SoapySDRReport: description: SoapySDR properties: deviceSettingsArgs: type: array + description: "List of device settings args." items: $ref: "#/definitions/ArgInfo" streamSettingsArgs: type: array + description: "List of stream settings args." items: $ref: "#/definitions/ArgInfo" hasDCAutoCorrection: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasDCOffsetValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasIQBalanceValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 hasFrequencyCorrectionValue: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 antennas: type: array + description: "List of antennas." items: type: string hasAGC: description: boolean not zero for true type: integer + minimum: 0 + maximum: 1 gainRange: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" + description: "Gain range data for Soapy sdr." gainSettings: type: array + description: "List of gain settings." items: $ref: "#/definitions/SoapySDRGainSetting" frequencySettings: type: array + description: "List of frequency settings." items: $ref: "#/definitions/SoapySDRFrequencySetting" frequencySettingsArgs: type: array + description: "List of frequency settings args." items: $ref: "#/definitions/ArgInfo" ratesRanges: type: array + description: "List of rates ranges." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" bandwidthsRanges: type: array + description: "List of bandwidths ranges." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" @@ -202,16 +288,20 @@ definitions: properties: name: type: string + description: "Name." range: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" + description: "Range configuration for Definitions." SoapySDRFrequencySetting: description: A named frequency setting specified by a range list properties: name: type: string + description: "Name." ranges: type: array + description: "List of ranges." items: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" @@ -220,35 +310,47 @@ definitions: properties: key: type: string + description: "Key for Definitions." valueType: type: string + description: "Value type for Definitions." enum: [bool, int, float, string] valueString: type: string + description: "Value string for Definitions." ArgInfo: description: Generic argument information properties: key: type: string + description: "Key for Definitions." valueType: type: string + description: "Value type for Definitions." enum: [bool, int, float, string] valueString: type: string + description: "Value string for Definitions." name: type: string + description: "Name." description: type: string + description: "Human-readable description." units: type: string + description: "Units for Definitions." range: $ref: "http://swgserver:8081/api/swagger/include/Structs.yaml#/RangeFloat" + description: "Range configuration for Definitions." valueOptions: type: array + description: "List of value options." items: type: string optionNames: type: array + description: "List of option names." items: type: string diff --git a/swagger/sdrangel/api/swagger/include/StarTracker.yaml b/swagger/sdrangel/api/swagger/include/StarTracker.yaml index 84416821a..39fd36748 100644 --- a/swagger/sdrangel/api/swagger/include/StarTracker.yaml +++ b/swagger/sdrangel/api/swagger/include/StarTracker.yaml @@ -38,10 +38,14 @@ StarTrackerSettings: description: "Latitude in decimal degrees (North positive) of observation/antenna location" type: number format: float + minimum: -90 + maximum: 90 longitude: description: "Longitude in decimal degrees (East positive) of observation/antenna location" type: number format: float + minimum: -180 + maximum: 180 dateTime: description: "Date and time of observation. ISO 8601 extended format: yyyy-MM-ddTHH:mm:ss with Z suffix for UTC. Empty string for current time." type: string @@ -75,6 +79,8 @@ StarTrackerSettings: stellariumServerEnabled: description: "Enable Stellarium server (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 stellariumPort: description: "IP port number for Stellarium server to listen on (Default is 10001)." type: integer @@ -88,29 +94,46 @@ StarTrackerSettings: drawSunOnMap: description: "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 drawMoonOnMap: description: "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 drawStarOnMap: description: "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)" type: integer + minimum: 0 + maximum: 1 title: type: string + description: "User-visible title." rgbColor: type: integer + description: "Display color encoded as an RGB integer." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." StarTrackerTarget: description: "Star Tracker target. Sent to startracker.target message queue for other plugins to use." @@ -191,6 +214,7 @@ StarTrackerDisplayLoSSettings: properties: name: type: string + description: "Name." b: description: "Galactic latitude in degrees" type: number @@ -209,6 +233,8 @@ StarTrackerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -221,6 +247,8 @@ StarTrackerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/Structs.yaml b/swagger/sdrangel/api/swagger/include/Structs.yaml index f5c1c1ddc..138f6d7d1 100644 --- a/swagger/sdrangel/api/swagger/include/Structs.yaml +++ b/swagger/sdrangel/api/swagger/include/Structs.yaml @@ -3,47 +3,58 @@ SampleRate: properties: rate: type: integer + description: "Sample rate in samples per second." Bandwidth: description: A bandwidth expressed in Hertz (Hz) properties: bandwidth: type: integer + description: "Bandwidth in Hz." Frequency: description: A frequency expressed in Hertz (Hz) properties: frequency: type: integer + description: "Frequency in Hz." FrequencyBand: description: A band of frequencies given its boundaries in Hertz (Hz) properties: name: type: string + description: "Name." lowerBound: type: integer + description: "Inclusive lower bound of the range." higherBound: type: integer + description: "Inclusive upper bound of the range." Gain: description: A gain expressed in centi-Bels (tenths of dB) properties: gainCB: type: integer + description: "Gain in centibels (tenths of a decibel)." Range: description: An arbitrary range of integer values properties: min: type: integer + description: "Minimum value of the range." max: type: integer + description: "Maximum value of the range." step: type: integer + description: "Increment between adjacent supported values." scale: type: number format: float + description: "Scale factor applied to the value." RangeFloat: description: An arbitrary range of floating point values @@ -51,12 +62,15 @@ RangeFloat: min: type: number format: float + description: "Minimum value of the range." max: type: number format: float + description: "Maximum value of the range." step: type: number format: float + description: "Increment between adjacent supported values." FrequencyRange: description: A frequency range with 64 bit support for min and max @@ -64,22 +78,28 @@ FrequencyRange: min: type: integer format: int64 + description: "Minimum value of the range." max: type: integer format: int64 + description: "Maximum value of the range." step: type: integer + description: "Increment between adjacent supported values." scale: type: number format: float + description: "Scale factor applied to the value." NamedEnum: description: Enumeration with name for values properties: name: type: string + description: "Name." value: type: integer + description: "Numeric enumeration value." Complex: description: A complex number @@ -87,6 +107,8 @@ Complex: real: type: number format: float + description: "Real component of the complex number." imag: type: number format: float + description: "Imaginary component of the complex number." diff --git a/swagger/sdrangel/api/swagger/include/TestMI.yaml b/swagger/sdrangel/api/swagger/include/TestMI.yaml index d13bacf3d..d435d923a 100644 --- a/swagger/sdrangel/api/swagger/include/TestMI.yaml +++ b/swagger/sdrangel/api/swagger/include/TestMI.yaml @@ -3,15 +3,23 @@ TestMISettings: properties: title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." streams: description: Settings for each of the streams type: array @@ -28,37 +36,53 @@ definitions: centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." sampleSizeIndex: type: integer + description: "Selected sample size index." amplitudeBits: type: integer + description: "Amplitude bits for Definitions." autoCorrOptions: type: integer + description: "Auto corr options for Definitions." modulation: type: integer + description: "Modulation for Definitions." modulationTone: type: integer + description: "Modulation tone for Definitions." amModulation: type: integer + description: "Am modulation for Definitions." fmDeviation: type: integer + description: "FM frequency deviation in Hz." dcFactor: type: number format: float + description: "Dc factor for Definitions." iFactor: type: number format: float + description: "I factor for Definitions." qFactor: type: number format: float + description: "Q factor for Definitions." phaseImbalance: type: number format: float + description: "Phase imbalance for Definitions." diff --git a/swagger/sdrangel/api/swagger/include/TestMOSync.yaml b/swagger/sdrangel/api/swagger/include/TestMOSync.yaml index 75c9975a8..914c29090 100644 --- a/swagger/sdrangel/api/swagger/include/TestMOSync.yaml +++ b/swagger/sdrangel/api/swagger/include/TestMOSync.yaml @@ -3,14 +3,20 @@ TestMOSyncSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." sampleRate: type: integer format: int64 + description: "Sample rate in samples per second." log2Interp: type: integer + minimum: 0 + maximum: 6 + description: "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." fcPosTx: description: See BladeRF2MIMO::fcPos_t type: integer diff --git a/swagger/sdrangel/api/swagger/include/TestSource.yaml b/swagger/sdrangel/api/swagger/include/TestSource.yaml index e575929da..6aef508a9 100644 --- a/swagger/sdrangel/api/swagger/include/TestSource.yaml +++ b/swagger/sdrangel/api/swagger/include/TestSource.yaml @@ -3,49 +3,82 @@ TestSourceSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." frequencyShift: type: integer + description: "Frequency shift in Hz." sampleRate: type: integer + description: "Sample rate in samples per second." log2Decim: type: integer + description: "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." fcPos: type: integer + description: "Position of the decimated passband relative to the device center frequency." sampleSizeIndex: type: integer + description: "Selected sample size index." amplitudeBits: type: integer + description: "Amplitude bits setting for Test source." autoCorrOptions: type: integer + description: "Auto corr options setting for Test source." modulation: type: integer + description: "Modulation setting for Test source." modulationTone: type: integer + description: "Modulation tone setting for Test source." amModulation: type: integer + description: "Am modulation setting for Test source." fmDeviation: type: integer + description: "FM frequency deviation in Hz." dcFactor: type: number format: float + description: "Dc factor setting for Test source." iFactor: type: number format: float + description: "I factor setting for Test source." qFactor: type: number format: float + description: "Q factor setting for Test source." phaseImbalance: type: number format: float + description: "Phase imbalance setting for Test source." + period: + type: integer + description: "Period of the P1 and P2 patterns in samples." + minimum: 1 + dutyCycle: + type: integer + description: "Percentage of the period the P2 pattern is high." + minimum: 0 + maximum: 100 useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." diff --git a/swagger/sdrangel/api/swagger/include/UDPSink.yaml b/swagger/sdrangel/api/swagger/include/UDPSink.yaml index 9ce5085c9..4e607e911 100644 --- a/swagger/sdrangel/api/swagger/include/UDPSink.yaml +++ b/swagger/sdrangel/api/swagger/include/UDPSink.yaml @@ -4,22 +4,30 @@ UDPSinkSettings: outputSampleRate: type: number format: float + description: "Output sample rate in samples per second." sampleFormat: type: integer + description: "Sample format setting for UDP sink." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." fmDeviation: type: integer + description: "FM frequency deviation in Hz." channelMute: description: channel mute (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 gain: type: number format: float + description: "Gain setting; units and available values depend on the device or plugin." squelchDB: description: power dB type: integer @@ -29,17 +37,26 @@ UDPSinkSettings: squelchEnabled: description: squelch enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 audioActive: description: Audio return enable (1 if enabled else 0) type: integer + minimum: 0 + maximum: 1 audioStereo: description: Audio return stereo (1 if stereo else 0) type: integer + minimum: 0 + maximum: 1 volume: type: integer + description: "Audio volume multiplier." udpAddress: description: destination UDP address (remote) type: string @@ -47,34 +64,49 @@ UDPSinkSettings: description: destination UDP port (remote) type: integer format: uint16 + minimum: 1 + maximum: 65535 audioPort: description: audio return UDP port (local) type: integer format: uint16 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." UDPSinkReport: description: UDPSink @@ -92,3 +124,4 @@ UDPSinkReport: type: integer inputSampleRate: type: integer + description: "Input sample rate in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/UDPSource.yaml b/swagger/sdrangel/api/swagger/include/UDPSource.yaml index 6d9c40a71..cd97b25fb 100644 --- a/swagger/sdrangel/api/swagger/include/UDPSource.yaml +++ b/swagger/sdrangel/api/swagger/include/UDPSource.yaml @@ -3,80 +3,119 @@ UDPSourceSettings: properties: sampleFormat: type: integer + description: "Sample format setting for UDP source." inputSampleRate: type: number format: float + description: "Input sample rate in samples per second." inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fmDeviation: type: integer + description: "FM frequency deviation in Hz." amModFactor: type: number format: float + description: "Am mod factor setting for UDP source." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 gainIn: type: number format: float + description: "Gain in setting for UDP source." gainOut: type: number format: float + description: "Gain out setting for UDP source." squelch: type: number format: float + description: "Squelch threshold in dB." squelchGate: type: number format: float + description: "Squelch gate duration." squelchEnabled: type: integer + description: "Enable squelch (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 autoRWBalance: type: integer + description: "Auto rw balance setting for UDP source." stereoInput: type: integer + description: "Stereo input setting for UDP source." rgbColor: type: integer + description: "Display color encoded as an RGB integer." udpAddress: type: string + description: "IPv4 address or host name used for UDP traffic." udpPort: type: integer format: uint16 + description: "UDP port number." + minimum: 1 + maximum: 65535 multicastAddress: type: string + description: "IP multicast group address." multicastJoin: type: integer + minimum: 0 + maximum: 1 description: > Join multicast group * 0 - leave group * 1 - join group title: type: string + description: "User-visible title." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." UDPSourceReport: description: UDPSource @@ -97,3 +136,4 @@ UDPSourceReport: type: integer channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/USRP.yaml b/swagger/sdrangel/api/swagger/include/USRP.yaml index c8ad85a30..b48947103 100644 --- a/swagger/sdrangel/api/swagger/include/USRP.yaml +++ b/swagger/sdrangel/api/swagger/include/USRP.yaml @@ -3,93 +3,145 @@ USRPInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." loOffset: type: integer + description: "LO offset setting for Usrp input." dcBlock: type: integer + description: "Enable DSP DC-offset correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 iqCorrection: type: integer + description: "Enable I/Q imbalance correction (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." antennaPath: type: string + description: "Selected RF antenna path." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." gainMode: description: 0 for auto, 1 for manual type: integer + minimum: 0 + maximum: 1 clockSource: type: string + description: "Clock source setting for Usrp input." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." USRPOutputSettings: description: USRP properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." loOffset: type: integer + description: "LO offset setting for Usrp output." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: type: integer + description: "Analog low-pass filter bandwidth in Hz." gain: type: integer + description: "Gain setting; units and available values depend on the device or plugin." antennaPath: type: string + description: "Selected RF antenna path." clockSource: type: string + description: "Clock source setting for Usrp output." transverterMode: type: integer + description: "Enable transverter frequency translation (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 transverterDeltaFrequency: type: integer format: int64 + description: "Frequency translation applied in transverter mode in Hz." gpioDir: type: integer format: int8 + description: "GPIO direction bit mask, with one bit per pin." gpioPins: type: integer format: int8 + description: "GPIO pin-state bit mask, with one bit per pin." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." USRPInputReport: description: USRP @@ -100,10 +152,14 @@ USRPInputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 overrunCount: type: integer + description: "Number of stream overrun events." timeoutCount: type: integer + description: "Number of timeout events or items." USRPOutputReport: description: USRP @@ -114,7 +170,11 @@ USRPOutputReport: streamActive: description: 1 if active else 0 type: integer + minimum: 0 + maximum: 1 underrunCount: type: integer + description: "Number of stream underrun events." droppedPacketsCount: type: integer + description: "Number of dropped packets." diff --git a/swagger/sdrangel/api/swagger/include/User.yaml b/swagger/sdrangel/api/swagger/include/User.yaml index e4c4ca4c8..fd505ade6 100644 --- a/swagger/sdrangel/api/swagger/include/User.yaml +++ b/swagger/sdrangel/api/swagger/include/User.yaml @@ -5,5 +5,7 @@ User: properties: index: type: integer + description: "Index for User." name: type: string + description: "Name." diff --git a/swagger/sdrangel/api/swagger/include/VORDemod.yaml b/swagger/sdrangel/api/swagger/include/VORDemod.yaml index c15499ba0..175d84c96 100644 --- a/swagger/sdrangel/api/swagger/include/VORDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/VORDemod.yaml @@ -4,6 +4,7 @@ VORDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." navId: description: VOR unique identifier when set by VOR localizer feature type: integer @@ -14,37 +15,55 @@ VORDemodSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 identBandpassEnable: type: integer + description: "Ident bandpass enable setting for Vor demod." rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." identThreshold: description: Morse code ident threshold (linear SNR) type: integer channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." VORDemodReport: description: VORDemod @@ -58,9 +77,11 @@ VORDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." volume: type: number format: float + description: "Audio volume multiplier." navId: description: VOR unique identifier when set by VOR localizer feature type: integer @@ -78,18 +99,24 @@ VORDemodReport: format: float validRadial: type: integer + minimum: 0 + maximum: 1 description: > Radial validity estimation * 0 - Radial is invalid * 1 - Radial is valid validRefMag: type: integer + minimum: 0 + maximum: 1 description: > Reference signal magnitude validity * 0 - Magnitude below threshold * 1 - Magnitude above threshold validVarMag: type: integer + minimum: 0 + maximum: 1 description: > Variable signal magnitude validity * 0 - Magnitude below threshold diff --git a/swagger/sdrangel/api/swagger/include/VORDemodMC.yaml b/swagger/sdrangel/api/swagger/include/VORDemodMC.yaml index 02da32e46..011800dfb 100644 --- a/swagger/sdrangel/api/swagger/include/VORDemodMC.yaml +++ b/swagger/sdrangel/api/swagger/include/VORDemodMC.yaml @@ -8,28 +8,43 @@ VORDemodMCSettings: volume: type: number format: float + description: "Audio volume multiplier." audioMute: type: integer + description: "Mute audio output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." identThreshold: description: Morse code ident threshold (linear SNR) type: integer @@ -38,8 +53,10 @@ VORDemodMCSettings: type: integer channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." VORDemodMCReport: description: VORDemodMC @@ -53,3 +70,4 @@ VORDemodMCReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/VORLocalizer.yaml b/swagger/sdrangel/api/swagger/include/VORLocalizer.yaml index 99940c54d..9afee06e1 100644 --- a/swagger/sdrangel/api/swagger/include/VORLocalizer.yaml +++ b/swagger/sdrangel/api/swagger/include/VORLocalizer.yaml @@ -3,19 +3,29 @@ VORLocalizerSettings: properties: rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIFeatureSetIndex: type: integer + description: "Feature-set index used by the reverse API peer." reverseAPIFeatureIndex: type: integer + description: "Feature index used by the reverse API peer." magDecAdjust: description: Adjust radial lines on map for magnetic declination of VOR type: integer @@ -24,6 +34,8 @@ VORLocalizerSettings: type: integer forceRRAveraging: type: integer + minimum: 0 + maximum: 1 description: > Force radial and signal magnitudes averaging over the round robin turn * 0 - Do not force averaging @@ -33,12 +45,15 @@ VORLocalizerSettings: type: integer rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." columnIndexes: type: array + description: "List of column indexes." items: type: integer columnSizes: type: array + description: "List of column sizes." items: type: integer @@ -47,6 +62,8 @@ VORLocalizerReport: properties: runningState: type: integer + minimum: 0 + maximum: 3 description: > Running state * 0 - not started @@ -59,6 +76,8 @@ VORLocalizerActions: properties: run: type: integer + minimum: 0 + maximum: 1 description: > Set the plugin running state * 0 - idle diff --git a/swagger/sdrangel/api/swagger/include/WDSPRx.yaml b/swagger/sdrangel/api/swagger/include/WDSPRx.yaml index 21a72ccc6..eff379856 100644 --- a/swagger/sdrangel/api/swagger/include/WDSPRx.yaml +++ b/swagger/sdrangel/api/swagger/include/WDSPRx.yaml @@ -4,10 +4,14 @@ WDSPRxSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." profileIndex: type: integer + description: "Selected profile index." demod: type: integer + minimum: 0 + maximum: 3 description: > Demodulator type: * 0 - SSB @@ -17,6 +21,7 @@ WDSPRxSettings: volume: type: number format: float + description: "Audio volume multiplier." audioBinaural: description: Audio binaural mode (1 if active else 0) type: integer @@ -29,11 +34,17 @@ WDSPRxSettings: audioMute: description: Mute audio (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 agc: description: AGC (1 if AGC active else 0) type: integer + minimum: 0 + maximum: 1 agcMode: type: integer + minimum: 0 + maximum: 3 description: > AGC Mode: * 0 - Long @@ -48,20 +59,27 @@ WDSPRxSettings: description: Slope in centi-Bels agcHangThreshold: type: integer + description: "Agc hang threshold setting for Wdsp receive." dnb: type: integer + minimum: 0 + maximum: 1 description: > Digital Noise Blanker: * 0 - Off * 1 - On nbScheme: type: integer + minimum: 0 + maximum: 1 description: > Noise blanker scheme: * 0 - NB or Preemptive Wideband Noise Blanker * 1 - NB2 or Interpolating Wideband Noise Blanker nb2Mode: type: integer + minimum: 0 + maximum: 4 description: > NB2 Noise blanking mode: * 0 - Zero mode (estimate as zero) @@ -83,29 +101,39 @@ WDSPRxSettings: description: Hang time (S) nbThreshold: type: integer + description: "Nb threshold setting for Wdsp receive." nbAvgTime: type: number format: float + description: "Nb avg time setting for Wdsp receive." dnr: type: integer + minimum: 0 + maximum: 1 description: > Digital Noise Reduction: * 0 - Off * 1 - On anf: type: integer + minimum: 0 + maximum: 1 description: > Automatic Notch Filter: * 0 - Off * 1 - On nrScheme: type: integer + minimum: 0 + maximum: 1 description: > Noise Reduction Scheme: * 0 - NR or LMS Noise Reduction * 1 - NR2 or Spectral Noise Reduction nr2Gain: type: integer + minimum: 0 + maximum: 2 description: > Noise Reduction gain for NR2: * 0 - Linear @@ -113,30 +141,40 @@ WDSPRxSettings: * 2 - Gamma nr2NPE: type: integer + minimum: 0 + maximum: 1 description: > Noise Power Estimation algorithm for NR2: * 0 - Optimal Smoothing Minimum Statistics (OSMS) * 1 - Minimum Mean‐Square Error (MMSE) nrPosition: type: integer + minimum: 0 + maximum: 1 description: > Noise reduction position: * 0 - Before AGC * 1 - After AGC nr2ArtifactReduction: type: integer + minimum: 0 + maximum: 1 description: > NR2 artifacts reduction: * 0 - Off * 1 - On amFadeLevel: type: integer + minimum: 0 + maximum: 1 description: > AM fade levelling: * 0 - Off * 1 - On cwPeaking: type: integer + minimum: 0 + maximum: 1 description: > CW peaking filter: * 0 - Off @@ -173,6 +211,8 @@ WDSPRxSettings: FM Audio filter high cutoff frequency (HZ) fmAFLimiter: type: integer + minimum: 0 + maximum: 1 description: > FM Audio level limiter (audio AGC) * 0 - Off @@ -184,6 +224,8 @@ WDSPRxSettings: FM Audio level limiter top gain (Audio AGC top gain) fmCTCSSNotch: type: integer + minimum: 0 + maximum: 1 description: > FM CTCSS notch filter * 0 - Off @@ -195,6 +237,8 @@ WDSPRxSettings: FM CTCSS notch filter frequency (Hz) squelch: type: integer + minimum: 0 + maximum: 1 description: > Squelch: * 0 - Off @@ -204,6 +248,8 @@ WDSPRxSettings: description: Squelch threshold (percent) squelchMode: type: integer + minimum: 0 + maximum: 2 description: > Squelch mode: * 0 - Voice squelch (for SSB). Based on voice artifacts. @@ -212,6 +258,8 @@ WDSPRxSettings: ssqlTauMute: type: number format: float + minimum: 0 + maximum: 1 description: Voice squelch tau mute (s) ssqlTauUnmute: type: number @@ -223,6 +271,8 @@ WDSPRxSettings: description: AM squelch max tail length (s) equalizer: type: integer + minimum: 0 + maximum: 1 description: > AF equalizer: * 0 - Off @@ -241,6 +291,8 @@ WDSPRxSettings: format: float rit: type: integer + minimum: 0 + maximum: 1 description: > RIT: * 0 - Off @@ -251,44 +303,63 @@ WDSPRxSettings: description: RIT shift frequency (Hz) spanLog2: type: integer + description: "Base-2 exponent controlling the displayed or processed frequency span." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." lowCutoff: type: number format: float + description: "Lower filter cutoff frequency in Hz." fftWindow: type: integer + minimum: 0 + maximum: 1 description: > FFT Window index (FFTWindow::Function): * 0 - Blackman-Harris 4 term * 1 - Blackman-Harris 7 term rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." spectrumConfig: $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrum" + description: "Spectrum-display configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WDSPRxReport: description: WDSPRx @@ -302,5 +373,7 @@ WDSPRxReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/WFMDemod.yaml b/swagger/sdrangel/api/swagger/include/WFMDemod.yaml index 21210940a..287c0ae06 100644 --- a/swagger/sdrangel/api/swagger/include/WFMDemod.yaml +++ b/swagger/sdrangel/api/swagger/include/WFMDemod.yaml @@ -4,45 +4,65 @@ WFMDemodSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." volume: type: number format: float + description: "Audio volume multiplier." squelch: type: number format: float + description: "Squelch threshold in dB." audioMute: description: audio mute (1 if muted else 0) type: integer + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WFMDemodReport: description: WFMDemod @@ -56,5 +76,7 @@ WFMDemodReport: type: integer audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/WFMMod.yaml b/swagger/sdrangel/api/swagger/include/WFMMod.yaml index 8d0a1dc58..4c5841422 100644 --- a/swagger/sdrangel/api/swagger/include/WFMMod.yaml +++ b/swagger/sdrangel/api/swagger/include/WFMMod.yaml @@ -4,53 +4,80 @@ WFMModSettings: inputFrequencyOffset: type: integer format: int64 + description: "Channel frequency offset from the device center frequency in Hz." rfBandwidth: type: number format: float + description: "RF bandwidth in Hz." afBandwidth: type: number format: float + description: "Audio-frequency bandwidth in Hz." fmDeviation: type: number format: float + description: "FM frequency deviation in Hz." toneFrequency: type: number format: float + description: "Tone frequency in Hz." volumeFactor: type: number format: float + description: "Volume factor setting for Wfm mod." channelMute: type: integer + description: "Mute the channel output (1 muted, 0 unmuted)." + minimum: 0 + maximum: 1 playLoop: type: integer + description: "Loop playback at end of file (1 enabled, 0 disabled)." + minimum: 0 + maximum: 1 rgbColor: type: integer + description: "Display color encoded as an RGB integer." title: type: string + description: "User-visible title." audioDeviceName: type: string + description: "Name of the audio device to use." modAFInput: type: integer + description: "Audio-frequency modulation input selection." streamIndex: description: MIMO channel. Not relevant when connected to SI (single Rx). type: integer useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." reverseAPIChannelIndex: type: integer + description: "Channel index used by the reverse API peer." cwKeyer: $ref: "http://swgserver:8081/api/swagger/include/CWKeyer.yaml#/CWKeyerSettings" + description: "CW keyer configuration." channelMarker: $ref: "http://swgserver:8081/api/swagger/include/ChannelMarker.yaml#/ChannelMarker" + description: "Channel-marker display configuration." rollupState: $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + description: "Saved expanded or collapsed state of the GUI sections." WFMModReport: description: WFMMod @@ -61,5 +88,7 @@ WFMModReport: format: float audioSampleRate: type: integer + description: "Audio sample rate in samples per second." channelSampleRate: type: integer + description: "Effective sample rate delivered to the channel in samples per second." diff --git a/swagger/sdrangel/api/swagger/include/Xtrx.yaml b/swagger/sdrangel/api/swagger/include/Xtrx.yaml index a11cd599b..dd7fb9183 100644 --- a/swagger/sdrangel/api/swagger/include/Xtrx.yaml +++ b/swagger/sdrangel/api/swagger/include/Xtrx.yaml @@ -3,21 +3,30 @@ XtrxInputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardDecim: type: integer + description: "Base-2 exponent of the hardware decimation factor." dcBlock: description: Software DC blocking (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Software IQ imbalance correction (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 log2SoftDecim: type: integer + description: "Base-2 exponent of the software decimation factor." lpfBW: description: LMS analog lowpass filter bandwidth (Hz) type: integer @@ -27,6 +36,8 @@ XtrxInputSettings: ncoEnable: description: Enable TSP NCO and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequency: description: Frequency shift from LO type: integer @@ -48,6 +59,8 @@ XtrxInputSettings: extClock: description: Use external clock source (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -56,6 +69,8 @@ XtrxInputSettings: type: integer iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -63,12 +78,19 @@ XtrxInputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." XtrxInputReport: description: XTRX @@ -78,11 +100,14 @@ XtrxInputReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer @@ -92,15 +117,20 @@ XtrxOutputSettings: properties: title: type: string + description: "User-visible title." centerFrequency: type: integer format: int64 + description: "Device center frequency in Hz." devSampleRate: type: integer + description: "Device I/Q sample rate in samples per second before software decimation or interpolation." log2HardInterp: type: integer + description: "Base-2 exponent of the hardware interpolation factor." log2SoftInterp: type: integer + description: "Base-2 exponent of the software interpolation factor." lpfBW: description: LMS analog lowpass filter bandwidth (Hz) type: integer @@ -110,6 +140,8 @@ XtrxOutputSettings: ncoEnable: description: Enable TSP NCO and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequency: description: Frequency shift from LO type: integer @@ -119,6 +151,8 @@ XtrxOutputSettings: extClock: description: Use external clock source (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -128,12 +162,19 @@ XtrxOutputSettings: useReverseAPI: description: Synchronize with reverse API (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: type: string + description: "IPv4 address or host name of the reverse API peer." reverseAPIPort: type: integer + description: "TCP port of the reverse API peer." + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." XtrxOutputReport: description: XTRX @@ -143,11 +184,14 @@ XtrxOutputReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFill: type: integer + description: "Current FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer @@ -157,9 +201,12 @@ XtrxMIMOSettings: properties: title: type: string + description: "User-visible title." extClock: description: Boolean 1 if external clock source else 0 type: integer + minimum: 0 + maximum: 1 extClockFreq: description: Frequency (Hz) of external clock source type: integer @@ -172,39 +219,56 @@ XtrxMIMOSettings: useReverseAPI: description: Boolean 1 use 0 do not use reverse API type: integer + minimum: 0 + maximum: 1 reverseAPIAddress: description: IPv4 address type: string reverseAPIPort: description: Network port from 1024 to 65535 type: integer + minimum: 1 + maximum: 65535 reverseAPIDeviceIndex: type: integer + description: "Device-set index used by the reverse API peer." rxDevSampleRate: type: integer + description: "Receive dev sample rate in samples per second." log2HardDecim: description: 0 is automatic then 1 to 6 is log2 of hardware decimation type: integer log2SoftDecim: description: log2 of software decimation factor from 0 to 6 type: integer + minimum: 0 + maximum: 6 rxCenterFrequency: type: integer format: int64 + description: "Receive center frequency in Hz." dcBlock: description: Software DC blocking (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 iqCorrection: description: Software IQ imbalance correction (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoEnableRx: description: Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequencyRx: description: Rx frequency shift from LO for both channels type: integer antennaPathRx: type: integer + minimum: 0 + maximum: 2 description: > Antenna selected (enum value from XTRXMIMOSettings::RxAntenna): * 0 - RXANT_LO low range @@ -212,6 +276,8 @@ XtrxMIMOSettings: * 2 - RXANT_HI high range iqOrder: type: integer + minimum: 0 + maximum: 1 description: > IQ samples order * 0 - Q then I (swapped) @@ -224,6 +290,8 @@ XtrxMIMOSettings: type: integer gainModeRx0: type: integer + minimum: 0 + maximum: 1 description: > Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0: * 0 - GAIN_AUTO automatic @@ -239,6 +307,7 @@ XtrxMIMOSettings: type: integer pwrmodeRx0: type: integer + description: "Pwrmode rx0 setting for Xtrx MIMO." lpfBWRx1: description: LMS analog lowpass filter bandwidth (Hz) for Rx channel 1 type: integer @@ -247,6 +316,8 @@ XtrxMIMOSettings: type: integer gainModeRx1: type: integer + minimum: 0 + maximum: 1 description: > Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1: * 0 - GAIN_AUTO automatic @@ -262,25 +333,34 @@ XtrxMIMOSettings: type: integer pwrmodeRx1: type: integer + description: "Pwrmode rx1 setting for Xtrx MIMO." txDevSampleRate: type: integer + description: "Transmit dev sample rate in samples per second." log2HardInterp: description: 0 is automatic then 1 to 6 is log2 of hardware interpolation type: integer log2SoftInterp: description: log2 of software interpolation factor from 0 to 6 type: integer + minimum: 0 + maximum: 6 txCenterFrequency: type: integer format: int64 + description: "Transmit center frequency in Hz." ncoEnableTx: description: Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no) type: integer + minimum: 0 + maximum: 1 ncoFrequencyTx: description: Tx frequency shift from LO for both channels type: integer antennaPathTx: type: integer + minimum: 0 + maximum: 1 description: > Antenna selected (enum value from XTRXMIMOSettings::TxAntenna): * 0 - TXANT_HI high range @@ -293,6 +373,7 @@ XtrxMIMOSettings: type: integer pwrmodeTx0: type: integer + description: "Pwrmode tx0 setting for Xtrx MIMO." lpfBWTx1: description: LMS analog lowpass filter bandwidth (Hz) for Tx channel 1 type: integer @@ -301,6 +382,7 @@ XtrxMIMOSettings: type: integer pwrmodeTx1: type: integer + description: "Pwrmode tx1 setting for Xtrx MIMO." XtrxMIMOReport: description: XTRX @@ -310,19 +392,26 @@ XtrxMIMOReport: type: integer fifoSize: type: integer + description: "FIFO capacity in samples." fifoFillRx: type: integer + description: "Current receive FIFO fill level." fifoFillTx: type: integer + description: "Current transmit FIFO fill level." temperature: type: number format: float + description: "Reported device temperature." gpsLock: description: 1 if GPSDO is locked else 0 type: integer actualInputRate: type: integer + description: "Reported actual input rate." actualOutputRate: type: integer + description: "Reported actual output rate." clockGenRate: type: integer + description: "Reported clock gen rate." diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index 37b56f6f4..f5b75cb90 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -1097,6 +1097,63 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/windows: + x-swagger-router-controller: instance + get: + description: List the windows of the GUI with their workspace and whether each is hidden (GUI) + operationId: instanceWindowsGet + tags: + - Instance + responses: + "200": + description: On success return the window list + schema: + $ref: "#/definitions/WindowList" + "500": + description: Error + schema: + $ref: "#/definitions/ErrorResponse" + "501": + description: Function not implemented + /sdrangel/workspace/{workspaceIndex}/actions: + x-swagger-router-controller: instance + post: + description: Arrange the windows of a workspace (GUI) + operationId: workspaceActionsPost + tags: + - Workspace + consumes: + - application/json + parameters: + - in: path + name: workspaceIndex + type: integer + required: true + description: Index of workspace in the list of workspaces + - name: body + in: body + description: Action to perform + required: true + schema: + $ref: "#/definitions/WorkspaceActions" + responses: + "202": + description: Successful sending of the message + schema: + $ref: "#/definitions/SuccessResponse" + "400": + description: Invalid JSON request + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid workspace index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + /sdrangel/deviceset: x-swagger-router-controller: instance post: @@ -1252,6 +1309,241 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/report: + x-swagger-router-controller: deviceset + get: + description: Get the latest main spectrum measurement results + operationId: devicesetSpectrumReportGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + responses: + "200": + description: On success return the results of the selected measurement + schema: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrumReport" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/actions: + x-swagger-router-controller: deviceset + post: + description: post an action or actions on the main spectrum + operationId: devicesetSpectrumActionsPost + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: body + in: body + description: Action(s) to apply to the main spectrum + required: true + schema: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/SpectrumActions" + responses: + "202": + description: Message to perform action was sent successfully + schema: + $ref: "#/definitions/SuccessResponse" + "400": + description: Unknown action, no action given, or an action that needs a spectrum display + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/data: + x-swagger-router-controller: deviceset + get: + description: Get the main spectrum power values, reduced to a number of bins + operationId: devicesetSpectrumDataGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: bins + in: query + description: Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to return in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to return in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + - name: reduce + in: query + description: How several bins are combined into one, max or mean (default max) + required: false + type: string + responses: + "200": + description: On success return the reduced spectrum + schema: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrumData" + "400": + description: Invalid bins, frequency range or reduction + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history: + x-swagger-router-controller: deviceset + get: + description: > + Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and + occupancy over a period, and the signals found. Only rows taken with the device tuned and + sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, + scrollLength); the server keeps no history + operationId: devicesetSpectrumHistoryGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: integer + - name: bins + in: query + description: Number of bins to reduce the spectrum to, 1 to 4096 (default 128) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + - name: threshold + in: query + description: How far above the measured floor a bin must rise to count as occupied, in dB (default 6) + required: false + type: integer + responses: + "200": + description: On success return the statistics + schema: + $ref: "http://swgserver:8081/api/swagger/include/GLSpectrum.yaml#/GLSpectrumHistory" + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image: + x-swagger-router-controller: deviceset + get: + description: > + The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row + down with the newest row at the bottom, black a little below the noise floor and white at + the strongest bin. The frequency and time extents come back in X-Spectrum-History headers + and in the JSON form of the same call + operationId: devicesetSpectrumHistoryImageGet + tags: + - DeviceSet + produces: + - image/png + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: integer + - name: bins + in: query + description: Width in pixels, 1 to 4096 (default 512) + required: false + type: integer + - name: rows + in: query + description: At most this many rows, the most recent (default 512, up to 4000) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + responses: + "200": + description: The PNG image + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" /sdrangel/deviceset/{deviceSetIndex}/spectrum/server: x-swagger-router-controller: deviceset get: @@ -3106,13 +3398,56 @@ definitions: $ref: "#/definitions/Channel" WorkspaceInfo: - description: "Workspace information" - required: - - index + description: "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" properties: index: description: index of workspace in the list of workspaces type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" + type: integer + WindowList: + description: "Every device, spectrum, channel and feature window of the GUI" + properties: + windowCount: + type: integer + windows: + type: array + items: + $ref: "#/definitions/WindowInfo" + WindowInfo: + description: "One window of the GUI" + properties: + kind: + description: "device, spectrum, channel or feature" + type: string + deviceSetIndex: + description: "Index of the device set, for a device, spectrum or channel window" + type: integer + index: + description: "Channel index within the device set, or feature index; absent for a device or spectrum window" + type: integer + title: + type: string + workspaceIndex: + type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown" + type: integer + + WorkspaceActions: + description: "Actions on a workspace" + required: + - arrange + properties: + arrange: + description: > + How to arrange the workspace's windows. cascade, tile, stackVertical and stack rearrange + them once, and turn auto stacking and tabs off. autostack stacks them now and again + whenever a window is added or resized, and stays on until another arrangement is asked + for. tab shows one window at a time with a tab for each, and turns auto stacking off. + type: string + enum: [cascade, tile, stackVertical, stack, autostack, tab] AudioDevices: description: "List of audio devices available in the system" diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 8c1533cc7..25a9a0d55 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -709,12 +709,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude of aircraft in degrees" + "description" : "Latitude of aircraft in degrees", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude of aircraft in degrees" + "description" : "Longitude of aircraft in degrees", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "integer", @@ -734,25 +738,31 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "targetName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the selected or tracked target." }, "targetAzimuth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target azimuth in degrees clockwise from north." }, "targetElevation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target elevation in degrees above the horizon." }, "targetRange" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Distance to the selected or tracked target." }, "aircraftState" : { "type" : "array", + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "items" : { "$ref" : "#/definitions/ADSBDemodAircraftState" } @@ -774,18 +784,18 @@ margin-bottom: 20px; }, "correlationThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum correlation score required to accept a frame preamble." }, "samplesPerBit" : { - "type" : "integer" - }, - "correlateFullPreamble" : { "type" : "integer", - "description" : "Correlate on part or full preamble\n * 0 - part\n * 1 - full\n" + "description" : "Number of input samples used to represent each bit." }, "demodModeS" : { "type" : "integer", - "description" : "Demodulate all mode S frames or just ADS-B\n * 0 - just ADS-B\n * 1 - All mode S\n" + "description" : "Demodulate all mode S frames or just ADS-B\n * 0 - just ADS-B\n * 1 - All mode S\n", + "minimum" : 0, + "maximum" : 1 }, "interpolatorPhaseSteps" : { "type" : "integer", @@ -797,37 +807,58 @@ margin-bottom: 20px; "description" : "Number of taps per phase in channel interpolator" }, "removeTimeout" : { - "type" : "integer" + "type" : "integer", + "description" : "Seconds without a frame after which an aircraft is removed from the display." }, "feedEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable forwarding of received data to the configured feed (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "exportClientEnabled" : { "type" : "integer", - "description" : "Send data to server\n * 0 - Do not send data\n * 1 - Send data\n" + "description" : "Send data to server\n * 0 - Do not send data\n * 1 - Send data\n", + "minimum" : 0, + "maximum" : 1 }, "exportClientHost" : { "type" : "string", "description" : "Host to send data to" }, "exportClientPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Export client port.", + "minimum" : 1, + "maximum" : 65535 }, "exportClientFormat" : { "type" : "integer", - "description" : "Format of sent data\n * 0 - Beast binary\n * 1 - Beast hex\n" + "description" : "Format of sent data\n * 0 - Beast binary\n * 1 - Beast hex\n", + "minimum" : 0, + "maximum" : 1 }, "exportServerEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the data-export server (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "exportServerPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Export server port.", + "minimum" : 1, + "maximum" : 65535 }, "importEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable importing data from the configured service (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "importHost" : { - "type" : "string" + "type" : "string", + "description" : "Import host setting for ADS-B demod." }, "importUsername" : { "type" : "string", @@ -838,35 +869,47 @@ margin-bottom: 20px; "description" : "OpenSky OAuth2 client secret." }, "importParameters" : { - "type" : "string" + "type" : "string", + "description" : "Import parameters setting for ADS-B demod." }, "importPeriod" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "How often to import aircraft from the configured web service, in seconds." }, "importMinLatitude" : { - "type" : "string" + "type" : "string", + "description" : "Import min latitude setting for ADS-B demod." }, "importMaxLatitude" : { - "type" : "string" + "type" : "string", + "description" : "Import max latitude setting for ADS-B demod." }, "importMinLongitude" : { - "type" : "string" + "type" : "string", + "description" : "Import min longitude setting for ADS-B demod." }, "importMaxLongitude" : { - "type" : "string" + "type" : "string", + "description" : "Import max longitude setting for ADS-B demod." }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -874,24 +917,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -901,15 +954,21 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "deviceTrack" : { "type" : "integer", - "description" : "(Re)initialize tracker target frequency adjustment\n * 0 - release\n * 1 - engage\n" + "description" : "(Re)initialize tracker target frequency adjustment\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 }, "devicesApply" : { "type" : "integer", - "description" : "(Re)initialize device sets tracking\n * 0 - release\n * 1 - engage\n" + "description" : "(Re)initialize device sets tracking\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "AFC actions" @@ -918,7 +977,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "trackerChannelIndex" : { "type" : "integer", @@ -927,11 +988,11 @@ margin-bottom: 20px; "trackerDeviceFrequency" : { "type" : "integer", "format" : "int64", - "description" : "Center frequency of tracker device" + "description" : "Centre frequency of the tracking device, in Hz." }, "trackerChannelOffset" : { "type" : "integer", - "description" : "Tracker channel offset from device center frequency" + "description" : "Tracker channel offset from the device centre frequency, in Hz." } }, "description" : "AFC report" @@ -939,10 +1000,12 @@ margin-bottom: 20px; defs.AFCSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "trackerDeviceSetIndex" : { "type" : "integer", @@ -954,20 +1017,24 @@ margin-bottom: 20px; }, "hasTargetFrequency" : { "type" : "integer", - "description" : "Adjust device frequency to match tracker frequency\n * 0 - disabled\n * 1 - enabled\n" + "description" : "Adjust device frequency to match tracker frequency\n * 0 - disabled\n * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "transverterTarget" : { "type" : "integer", - "description" : "Use transverter or device frequency for tracker frequency adjustment\n * 0 - device\n * 1 - transverter\n" + "description" : "Use transverter or device frequency for tracker frequency adjustment\n * 0 - device\n * 1 - transverter\n", + "minimum" : 0, + "maximum" : 1 }, "targetFrequency" : { "type" : "integer", "format" : "int64", - "description" : "Target frequency for the tracker" + "description" : "Frequency the tracker should settle on, in Hz." }, "freqTolerance" : { "type" : "integer", - "description" : "Frequency shift tolerance before tracker frequency is (re)adjusted" + "description" : "Frequency error in Hz that is tolerated before the tracker frequency is adjusted again." }, "trackerAdjustPeriod" : { "type" : "integer", @@ -975,21 +1042,30 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1003,7 +1079,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AISDemod" @@ -1016,24 +1093,31 @@ margin-bottom: 20px; }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "correlationThreshold" : { "type" : "number", "format" : "float", - "description" : "Normalised correlation threshold with the preamble, from 0 to 1" + "description" : "Normalised correlation threshold with the preamble, from 0 to 1", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -1041,26 +1125,39 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "udpFormat" : { "type" : "integer", - "description" : "0 for binary, 1 for NMEA" + "description" : "0 for binary, 1 for NMEA", + "minimum" : 0, + "maximum" : 1 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1068,27 +1165,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1098,14 +1206,19 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit stored message\n * 0 - do nothing\n * 1 - transmit\n" + "description" : "Transmit stored message\n * 0 - do nothing\n * 1 - transmit\n", + "minimum" : 0, + "maximum" : 1 }, "encode" : { "type" : "integer", - "description" : "Encode message from discrete data\n * 0 - do nothing\n * 1 - encode\n" + "description" : "Encode message from discrete data\n * 0 - do nothing\n * 1 - encode\n", + "minimum" : 0, + "maximum" : 1 }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." } }, "description" : "AISMod" @@ -1118,7 +1231,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AISMod" @@ -1131,7 +1245,8 @@ margin-bottom: 20px; "description" : "channel center frequency shift from baseband center in Hz" }, "baud" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol or serial rate in baud." }, "rfBandwidth" : { "type" : "number", @@ -1144,83 +1259,118 @@ margin-bottom: 20px; }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Delay between repetitions." }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for AIS mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for AIS mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for AIS mod." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "msgType" : { "type" : "integer", - "description" : "Message Type\n * 0 - Scheduled position report\n * 1 - Assigned position report\n * 2 - Special position report\n * 3 - Base station report\n" + "description" : "Message Type\n * 0 - Scheduled position report\n * 1 - Assigned position report\n * 2 - Special position report\n * 3 - Base station report\n", + "minimum" : 0, + "maximum" : 3 }, "mmsi" : { - "type" : "string" + "type" : "string", + "description" : "Maritime Mobile Service Identity number." }, "status" : { "type" : "integer", - "description" : "Ship status\n * 0 - Under way using engine\n * 1 - At anchor\n * 2 - Not under command\n * 3 - Restricted manoeuvrability\n * 4 - Constrained by her draught\n * 4 - Moored\n * 5 - Aground\n * 6 - Engaged in fishing\n * 7 - Under way sailing\n * 8 - Not defined\n" + "description" : "Ship status\n * 0 - Under way using engine\n * 1 - At anchor\n * 2 - Not under command\n * 3 - Restricted manoeuvrability\n * 4 - Constrained by her draught\n * 4 - Moored\n * 5 - Aground\n * 6 - Engaged in fishing\n * 7 - Under way sailing\n * 8 - Not defined\n", + "minimum" : 0, + "maximum" : 8 }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "course" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Course over ground in degrees." }, "speed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported speed." }, "heading" : { - "type" : "integer" + "type" : "integer", + "description" : "Heading in degrees." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." }, "bt" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bt setting for AIS mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for AIS mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1228,23 +1378,33 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive messages to transmit on specified UDP port" + "description" : "Whether to receive messages to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -1252,58 +1412,180 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive messages to transmit via" + "description" : "UDP port to receive messages to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "AISMod" +}; + defs.AISReport = { + "properties" : { + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "vesselCount" : { + "type" : "integer", + "description" : "Number of vessels currently held." + }, + "vessels" : { + "type" : "array", + "description" : "The vessels heard.", + "items" : { + "$ref" : "#/definitions/AISVessel" + } + } + }, + "description" : "Vessels heard by the AIS feature, which collects the decoded messages of every AIS demodulator in the instance. A field is present only once a message carrying it has been received, so an absent position means unknown rather than zero.\n" }; defs.AISSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "vesselColumnIndexes" : { "type" : "array", + "description" : "List of vessel column indexes.", "items" : { "type" : "integer" } }, "vesselColumnSizes" : { "type" : "array", + "description" : "List of vessel column sizes.", "items" : { "type" : "integer" } } }, "description" : "AIS settings" +}; + defs.AISVessel = { + "properties" : { + "mmsi" : { + "type" : "string", + "description" : "Maritime Mobile Service Identity, nine digits. The only field always present." + }, + "name" : { + "type" : "string", + "description" : "Vessel name, from a static and voyage related message or an aid-to-navigation report." + }, + "callsign" : { + "type" : "string", + "description" : "Radio callsign." + }, + "imo" : { + "type" : "string", + "description" : "IMO number, where transmitted." + }, + "country" : { + "type" : "string", + "description" : "Flag state, derived from the MMSI maritime identification digits." + }, + "type" : { + "type" : "string", + "description" : "What is transmitting: Vessel, Base station, Aircraft or Aid-to-nav." + }, + "shipType" : { + "type" : "string", + "description" : "Ship and cargo type, such as Cargo or Tug." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "course" : { + "type" : "number", + "format" : "float", + "description" : "Course over ground in degrees true." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Speed over ground in knots." + }, + "heading" : { + "type" : "integer", + "description" : "True heading in degrees, which differs from course when set and drift apply." + }, + "status" : { + "type" : "string", + "description" : "Navigational status, such as Under way using engine or At anchor." + }, + "length" : { + "type" : "integer", + "description" : "Overall length in metres." + }, + "destination" : { + "type" : "string", + "description" : "Destination as entered by the crew." + }, + "positionUpdate" : { + "type" : "string", + "description" : "When the position was last updated, ISO 8601." + }, + "lastUpdate" : { + "type" : "string", + "description" : "When any field was last updated, ISO 8601." + }, + "messages" : { + "type" : "integer", + "description" : "Messages received from this vessel." + } + }, + "description" : "Vessel heard by the AIS feature" }; defs.AMBEActions = { "properties" : { @@ -1384,28 +1666,39 @@ margin-bottom: 20px; defs.AMBESettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1423,10 +1716,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AMDemod" @@ -1455,23 +1750,32 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "bandpassEnable" : { "type" : "integer", - "description" : "use bandpass filter (1 for yes, 0 for no)" + "description" : "use bandpass filter (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "pll" : { "type" : "integer", @@ -1483,7 +1787,9 @@ margin-bottom: 20px; }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k)" + "description" : "(0 for Offset, 1 for MW, 2 for 25k, 3 for 8.33k)", + "minimum" : 0, + "maximum" : 3 }, "frequency" : { "type" : "integer", @@ -1500,24 +1806,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1531,10 +1847,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "AMMod" @@ -1543,42 +1861,58 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "modFactor" : { "type" : "number", "format" : "float", - "description" : "modulation factor from 0.0 to 1.0" + "description" : "modulation factor from 0.0 to 1.0", + "minimum" : 0, + "maximum" : 1 }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Am mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -1586,151 +1920,333 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "AMMod" +}; + defs.APRSReport = { + "properties" : { + "runningState" : { + "type" : "integer", + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 + }, + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "stationCount" : { + "type" : "integer", + "description" : "Number of stations and objects currently held." + }, + "packetCount" : { + "type" : "integer", + "description" : "Packets received across all stations." + }, + "stations" : { + "type" : "array", + "description" : "The stations and objects heard.", + "items" : { + "$ref" : "#/definitions/APRSStation" + } + } + }, + "description" : "Stations and objects heard by the APRS feature, which collects the AX.25 packets of every packet demodulator in the instance. A field is present only once a packet carrying it has been received.\n" }; defs.APRSSettings = { "properties" : { "igateServer" : { - "type" : "string" + "type" : "string", + "description" : "Igate server setting for Aprs." }, "igatePort" : { - "type" : "integer" + "type" : "integer", + "description" : "Igate port.", + "minimum" : 1, + "maximum" : 65535 }, "igateCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Igate callsign setting for Aprs." }, "igatePasscode" : { - "type" : "string" + "type" : "string", + "description" : "Igate passcode setting for Aprs." }, "igateFilter" : { - "type" : "string" + "type" : "string", + "description" : "Igate filter setting for Aprs." }, "igateEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable igate (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "packetsTableColumnIndexes" : { "type" : "array", + "description" : "List of packets table column indexes.", "items" : { "type" : "integer" } }, "packetsTableColumnSizes" : { "type" : "array", + "description" : "List of packets table column sizes.", "items" : { "type" : "integer" } }, "weatherTableColumnIndexes" : { "type" : "array", + "description" : "List of weather table column indexes.", "items" : { "type" : "integer" } }, "weatherTableColumnSizes" : { "type" : "array", + "description" : "List of weather table column sizes.", "items" : { "type" : "integer" } }, "statusTableColumnIndexes" : { "type" : "array", + "description" : "List of status table column indexes.", "items" : { "type" : "integer" } }, "statusTableColumnSizes" : { "type" : "array", + "description" : "List of status table column sizes.", "items" : { "type" : "integer" } }, "messagesTableColumnIndexes" : { "type" : "array", + "description" : "List of messages table column indexes.", "items" : { "type" : "integer" } }, "messagesTableColumnSizes" : { "type" : "array", + "description" : "List of messages table column sizes.", "items" : { "type" : "integer" } }, "telemetryTableColumnIndexes" : { "type" : "array", + "description" : "List of telemetry table column indexes.", "items" : { "type" : "integer" } }, "telemetryTableColumnSizes" : { "type" : "array", + "description" : "List of telemetry table column sizes.", "items" : { "type" : "integer" } }, "motionTableColumnIndexes" : { "type" : "array", + "description" : "List of motion table column indexes.", "items" : { "type" : "integer" } }, "motionTableColumnSizes" : { "type" : "array", + "description" : "List of motion table column sizes.", "items" : { "type" : "integer" } } }, "description" : "APRS settings" +}; + defs.APRSStation = { + "properties" : { + "callsign" : { + "type" : "string", + "description" : "Station callsign with SSID, or the name of the object or item." + }, + "isObject" : { + "type" : "integer", + "description" : "1 when this is an object or item rather than a station.", + "minimum" : 0, + "maximum" : 1 + }, + "reportingStation" : { + "type" : "string", + "description" : "Callsign that reported this object. Empty for a station." + }, + "symbol" : { + "type" : "string", + "description" : "APRS symbol identifier." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "altitude" : { + "type" : "number", + "format" : "float", + "description" : "Altitude in metres above mean sea level." + }, + "course" : { + "type" : "number", + "format" : "float", + "description" : "Course in degrees true." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Speed in km/h." + }, + "status" : { + "type" : "string", + "description" : "Latest status text." + }, + "comment" : { + "type" : "string", + "description" : "Latest position comment." + }, + "powerWatts" : { + "type" : "number", + "format" : "float", + "description" : "Transmitter power in watts, from a reported PHG value." + }, + "antennaHeight" : { + "type" : "number", + "format" : "float", + "description" : "Antenna height above average terrain in metres, from a reported PHG value." + }, + "antennaGain" : { + "type" : "number", + "format" : "float", + "description" : "Antenna gain in dB, from a reported PHG value." + }, + "antennaDirectivity" : { + "type" : "string", + "description" : "Antenna directivity, from a reported PHG value." + }, + "radioRange" : { + "type" : "number", + "format" : "float", + "description" : "Reported range in km." + }, + "hasWeather" : { + "type" : "integer", + "description" : "1 when weather reports have been received from this station.", + "minimum" : 0, + "maximum" : 1 + }, + "hasTelemetry" : { + "type" : "integer", + "description" : "1 when telemetry has been received from this station.", + "minimum" : 0, + "maximum" : 1 + }, + "telemetryProjectName" : { + "type" : "string", + "description" : "Telemetry project name, where reported." + }, + "packets" : { + "type" : "integer", + "description" : "Packets received from this station." + }, + "lastPacketDateTime" : { + "type" : "string", + "description" : "When the most recent packet was received, ISO 8601." + } + }, + "description" : "Station or object heard by the APRS feature" }; defs.APTDemodActions = { "properties" : { @@ -1819,7 +2335,9 @@ margin-bottom: 20px; }, "decodeEnabled" : { "type" : "integer", - "description" : "Controls whether the decoder is enabled" + "description" : "Controls whether the decoder is enabled", + "minimum" : 0, + "maximum" : 1 }, "autoSave" : { "type" : "integer", @@ -1884,10 +2402,12 @@ margin-bottom: 20px; "description" : "Yaw angle offset in degrees, for aligning image on map" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -1895,24 +2415,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -1921,47 +2451,62 @@ margin-bottom: 20px; defs.ATVDemodSettings = { "properties" : { "fpsIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected fps index." }, "halfImage" : { "type" : "integer", - "description" : "(boolean) 1 for m_fltRatioOfRowsToDisplay = 0.5, 0 for m_fltRatioOfRowsToDisplay = 1.0" + "description" : "Display only half of the image rows\n * 0 - display all rows\n * 1 - display half the rows\n", + "minimum" : 0, + "maximum" : 1 }, "RFBandwidthFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth factor setting for Atv demod." }, "OppBandwidthFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Opp bandwidth factor setting for Atv demod." }, "nbLinesIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected nb lines index." }, "intFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Int frequency offset in Hz." }, "enmModulation" : { "type" : "integer", - "description" : "see ATVDemodSettings::ATVModulation" + "description" : "Modulation of the received ATV signal\n * 0 - FM with discriminator 1\n * 1 - FM with discriminator 2\n * 2 - FM with phase derivative discriminator\n * 3 - AM\n * 4 - AM with vestigial lower sideband, signal in the upper sideband\n * 5 - AM with vestigial upper sideband, signal in the lower sideband\n", + "minimum" : 0, + "maximum" : 5 }, "fltRFBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt RF bandwidth in Hz." }, "fltRFOppBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt RF opp bandwidth in Hz." }, "blnFFTFiltering" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "fltBFOFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt bfo frequency in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "amScalingFactor" : { "type" : "integer", @@ -1972,71 +2517,96 @@ margin-bottom: 20px; "description" : "Factor in % to apply to adjusted signal scale" }, "intSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Int sample rate in samples per second." }, "enmATVStandard" : { "type" : "integer", - "description" : "see ATVDemodSettings::ATVStd" + "description" : "Television standard, which sets the line count and timings\n * 0 - PAL 625 lines\n * 1 - PAL 525 lines\n * 2 - 819 lines\n * 3 - short, interleaved\n * 4 - short\n * 5 - horizontal sync skip\n", + "minimum" : 0, + "maximum" : 5 }, "intNumberOfLines" : { - "type" : "integer" + "type" : "integer", + "description" : "Int number of lines setting for Atv demod." }, "fltLineDuration" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt line duration setting for Atv demod." }, "fltTopDuration" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt top duration setting for Atv demod." }, "fltFramePerS" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt frame per s setting for Atv demod." }, "fltRatioOfRowsToDisplay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt ratio of rows to display setting for Atv demod." }, "fltVoltLevelSynchroTop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt volt level synchro top setting for Atv demod." }, "fltVoltLevelSynchroBlack" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Flt volt level synchro black setting for Atv demod." }, "blnHSync" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "blnVSync" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "blnInvertVideo" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "intVideoTabIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected int video tab index." }, "intTVSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Int tv sample rate in samples per second." }, "intNumberSamplePerLine" : { - "type" : "integer" + "type" : "integer", + "description" : "Int number sample per line setting for Atv demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 } }, "description" : "ATVDemod" @@ -2049,7 +2619,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ATVMod" @@ -2058,78 +2629,103 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "rfOppBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF opp bandwidth in Hz." }, "atvStd" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv std setting for Atv mod." }, "nbLines" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb lines setting for Atv mod." }, "fps" : { - "type" : "integer" + "type" : "integer", + "description" : "Fps setting for Atv mod." }, "atvModInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv mod input setting for Atv mod." }, "uniformLevel" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Uniform level setting for Atv mod." }, "atvModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Atv modulation setting for Atv mod." }, "videoPlayLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Video play loop setting for Atv mod." }, "videoPlay" : { - "type" : "integer" + "type" : "integer", + "description" : "Video play setting for Atv mod." }, "cameraPlay" : { - "type" : "integer" + "type" : "integer", + "description" : "Camera play setting for Atv mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "invertedVideo" : { - "type" : "integer" + "type" : "integer", + "description" : "Inverted video setting for Atv mod." }, "rfScalingFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF scaling factor setting for Atv mod." }, "fmExcursion" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM excursion setting for Atv mod." }, "forceDecimator" : { - "type" : "integer" + "type" : "integer", + "description" : "Force decimator setting for Atv mod." }, "showOverlayText" : { - "type" : "integer" + "type" : "integer", + "description" : "Show overlay text setting for Atv mod." }, "overlayText" : { - "type" : "string" + "type" : "string", + "description" : "Overlay text setting for Atv mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "imageFileName" : { - "type" : "string" + "type" : "string", + "description" : "Image file name or path." }, "videoFileName" : { - "type" : "string" + "type" : "string", + "description" : "Video file name." }, "streamIndex" : { "type" : "integer", @@ -2137,24 +2733,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -2164,7 +2770,9 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n" + "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "AaroniaRTSAOutput" @@ -2172,7 +2780,8 @@ margin-bottom: 20px; defs.AaroniaRTSAOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", @@ -2189,16 +2798,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AaroniaRTSAOutput" @@ -2207,7 +2823,9 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n" + "description" : "Connection to RTSA server status:\n * 0 - Idle\n * 1 - Unstable\n * 2 - Connected\n * 3 - Error\n * 4 - Disconnected\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "AaroniaRTSA" @@ -2215,7 +2833,8 @@ margin-bottom: 20px; defs.AaroniaRTSASettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", @@ -2232,16 +2851,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AaroniaRTSA" @@ -2250,6 +2876,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -2260,73 +2887,108 @@ margin-bottom: 20px; defs.AirspyHFSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 8 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "bandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected band index." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "useAGC" : { "type" : "integer", - "description" : "AGC (1 for on, 0 for off)" + "description" : "AGC (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "agcHigh" : { "type" : "integer", - "description" : "AGC threshold (1 for high, 0 for low)" + "description" : "AGC threshold (1 for high, 0 for low)", + "minimum" : 0, + "maximum" : 1 }, "useDSP" : { "type" : "integer", - "description" : "LibairspyHF DSP (1 for on, 0 for off)" + "description" : "LibairspyHF DSP (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "useLNA" : { "type" : "integer", - "description" : "LNA (1 for on, 0 for off)" + "description" : "LNA (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "attenuatorSteps" : { "type" : "integer", "description" : "Attenuator in number of 6 dB steps" }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 } }, "description" : "AirspyHF" @@ -2335,6 +2997,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -2345,26 +3008,39 @@ margin-bottom: 20px; defs.AirspySettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low noise amplifier gain as a step index, not a dB value. Ignored when lnaAGC is enabled.", + "minimum" : 0, + "maximum" : 14 }, "mixerGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Mixer gain as a step index, not a dB value. Ignored when mixerAGC is enabled.", + "minimum" : 0, + "maximum" : 15 }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable gain amplifier (IF) gain as a step index, not a dB value.", + "minimum" : 0, + "maximum" : 15 }, "lnaAGC" : { "type" : "integer", @@ -2375,45 +3051,71 @@ margin-bottom: 20px; "description" : "Mixer AGC (1 if active else 0)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "biasT" : { "type" : "integer", - "description" : "Bias tee (1 if active else 0)" + "description" : "Bias tee (1 if active else 0)", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "Airspy" @@ -2421,7 +3123,8 @@ margin-bottom: 20px; defs.AndroidSDRDriverInputReport = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "AndroidSDRDriverInput" @@ -2430,56 +3133,86 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "directSampling" : { - "type" : "integer" + "type" : "integer", + "description" : "Direct sampling setting for Android sdr driver input." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bw in Hz." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AndroidSDRDriverInput" @@ -2488,50 +3221,67 @@ margin-bottom: 20px; "properties" : { "dipoleFrequencyMHz" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dipole frequency in MHz." }, "dipoleEndEffectFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dipole end effect factor setting for Antenna tools." }, "dishFrequencyMHz" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish frequency in MHz." }, "dishDiameter" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish diameter setting for Antenna tools." }, "dishDepth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dish depth setting for Antenna tools." }, "dishEfficiency" : { - "type" : "integer" + "type" : "integer", + "description" : "Dish efficiency setting for Antenna tools." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -2540,35 +3290,44 @@ margin-bottom: 20px; defs.ArgInfo = { "properties" : { "key" : { - "type" : "string" + "type" : "string", + "description" : "Key for Definitions." }, "valueType" : { "type" : "string", + "description" : "Value type for Definitions.", "enum" : [ "bool", "int", "float", "string" ] }, "valueString" : { - "type" : "string" + "type" : "string", + "description" : "Value string for Definitions." }, "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "units" : { - "type" : "string" + "type" : "string", + "description" : "Units for Definitions." }, "range" : { + "description" : "Range configuration for Definitions.", "$ref" : "#/definitions/RangeFloat" }, "valueOptions" : { "type" : "array", + "description" : "List of value options.", "items" : { "type" : "string" } }, "optionNames" : { "type" : "array", + "description" : "List of option names.", "items" : { "type" : "string" } @@ -2579,14 +3338,17 @@ margin-bottom: 20px; defs.ArgValue = { "properties" : { "key" : { - "type" : "string" + "type" : "string", + "description" : "Key for Definitions." }, "valueType" : { "type" : "string", + "description" : "Value type for Definitions.", "enum" : [ "bool", "int", "float", "string" ] }, "valueString" : { - "type" : "string" + "type" : "string", + "description" : "Value string for Definitions." } }, "description" : "Generic argument value" @@ -2594,40 +3356,55 @@ margin-bottom: 20px; defs.AudioCATSISOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "rxSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive sample rate in samples per second." }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "txSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit sample rate in samples per second." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "txEnable" : { "type" : "integer", - "description" : "Enable or disable transmission\n * 0 - Disable transmission\n * 1 - Enable transmission\n" + "description" : "Enable or disable transmission\n * 0 - Disable transmission\n * 1 - Enable transmission\n", + "minimum" : 0, + "maximum" : 1 }, "pttSpectrumLink" : { "type" : "integer", - "description" : "Main spectrum display (Rx/Tx) follows PTT (GUI)\n * 0 - Disable PTT following\n * 1 - Enable PTT following\n" + "description" : "Main spectrum display (Rx/Tx) follows PTT (GUI)\n * 0 - Disable PTT following\n * 1 - Enable PTT following\n", + "minimum" : 0, + "maximum" : 1 }, "rxDeviceName" : { "type" : "string", @@ -2635,7 +3412,9 @@ margin-bottom: 20px; }, "rxIQMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n * 2 - I=L, Q=0\n * 3 - I=R, Q=0\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n * 2 - I=L, Q=0\n * 3 - I=R, Q=0\n", + "minimum" : 0, + "maximum" : 3 }, "log2Decim" : { "type" : "integer", @@ -2643,19 +3422,26 @@ margin-bottom: 20px; }, "fcPosRx" : { "type" : "integer", - "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n" + "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n", + "minimum" : 0, + "maximum" : 2 }, "dcBlock" : { "type" : "integer", - "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n" + "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n" + "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "rxVolume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Receive volume setting for Audio catsiso." }, "txDeviceName" : { "type" : "string", @@ -2663,7 +3449,9 @@ margin-bottom: 20px; }, "txIQMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 1 }, "txVolume" : { "type" : "integer", @@ -2671,31 +3459,45 @@ margin-bottom: 20px; }, "catSpeedIndex" : { "type" : "integer", - "description" : "CAT serial link baud rate\n * 0 - 1200\n * 1 - 2400\n * 2 - 4800\n * 3 - 9800\n * 4 - 19200 (default)\n * 5 - 38400\n * 6 - 57600\n * 7 - 115200\n" + "description" : "CAT serial link baud rate\n * 0 - 1200\n * 1 - 2400\n * 2 - 4800\n * 3 - 9800\n * 4 - 19200 (default)\n * 5 - 38400\n * 6 - 57600\n * 7 - 115200\n", + "minimum" : 0, + "maximum" : 7 }, "catDataBitsIndex" : { "type" : "integer", - "description" : "CAT serial link data bits\n * 0 - 7\n * 1 - 8 (default)\n" + "description" : "CAT serial link data bits\n * 0 - 7\n * 1 - 8 (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catStopBitsIndex" : { "type" : "integer", - "description" : "CAT serial link stop bits\n * 0 - 1 (default)\n * 1 - 2\n" + "description" : "CAT serial link stop bits\n * 0 - 1 (default)\n * 1 - 2\n", + "minimum" : 0, + "maximum" : 1 }, "catHandshakeIndex" : { "type" : "integer", - "description" : "CAT serial link handshake type\n * 0 - none (default)\n * 1 - XON/XOFF\n * 2 - hardware\n" + "description" : "CAT serial link handshake type\n * 0 - none (default)\n * 1 - XON/XOFF\n * 2 - hardware\n", + "minimum" : 0, + "maximum" : 2 }, "catPTTMethodIndex" : { "type" : "integer", - "description" : "CAT PTT method\n * 0 - PTT (default)\n * 1 - DTR\n * 2 - RTS\n" + "description" : "CAT PTT method\n * 0 - PTT (default)\n * 1 - DTR\n * 2 - RTS\n", + "minimum" : 0, + "maximum" : 2 }, "catDTRHigh" : { "type" : "integer", - "description" : "CAT DTR control\n * 0 - low\n * 1 - high (default)\n" + "description" : "CAT DTR control\n * 0 - low\n * 1 - high (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catRTSHigh" : { "type" : "integer", - "description" : "CAT RTS control\n * 0 - low\n * 1 - high (default)\n" + "description" : "CAT RTS control\n * 0 - low\n * 1 - high (default)\n", + "minimum" : 0, + "maximum" : 1 }, "catPollingMs" : { "type" : "integer", @@ -2703,16 +3505,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioCATSISO" @@ -2778,7 +3587,8 @@ margin-bottom: 20px; defs.AudioInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "device" : { "type" : "string", @@ -2790,7 +3600,8 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "log2Decim" : { "type" : "integer", @@ -2798,32 +3609,47 @@ margin-bottom: 20px; }, "iqMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=0\n * 1 - I=R, Q=0\n * 2 - I=L, Q=R\n * 3 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=0\n * 1 - I=R, Q=0\n * 2 - I=L, Q=R\n * 3 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 3 }, "dcBlock" : { "type" : "integer", - "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n" + "description" : "Auto DC blocking\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { "type" : "integer", - "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n" + "description" : "Auto IQ balance (you need auto DC blocking active)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fcPos" : { "type" : "integer", - "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n" + "description" : "Decimated bandpass center frequency position\n * 0 - Infradyne\n * 1 - Supradyne\n * 2 - Centered\n", + "minimum" : 0, + "maximum" : 2 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioInput" @@ -2896,7 +3722,8 @@ margin-bottom: 20px; defs.AudioOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "deviceName" : { "type" : "string", @@ -2904,24 +3731,34 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "iqMapping" : { "type" : "integer", - "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n" + "description" : "Audio channel to IQ mapping\n * 0 - I=L, Q=R\n * 1 - I=R, Q=L\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "AudioOutput" @@ -2938,10 +3775,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective complex baseband sample rate delivered to this channel in samples per second. This must be greater than rfBandwidth.\n" }, "pilotLocked" : { "type" : "integer", @@ -2953,6 +3792,7 @@ margin-bottom: 20px; "description" : "power of stereo pilot (dB)" }, "rdsReport" : { + "description" : "RDS decoder status and decoded programme information.", "$ref" : "#/definitions/RDSReport" } }, @@ -2962,51 +3802,81 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF channel bandwidth in Hz. The channel/baseband sample rate must be greater than this bandwidth. For 180 kHz broadcast FM use at least 240 kS/s; 256 kS/s is recommended.\n", + "minimum" : 80000, + "maximum" : 250000 }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demodulated audio bandwidth in Hz. Broadcast FM normally uses 15 kHz.\n", + "minimum" : 1000, + "maximum" : 20000, + "default" : 15000.0 }, "deEmphasis" : { "type" : "integer", - "description" : "De-emphasis time constant (us)\n * 0 - 50us (Europe, Australia)\n * 1 - 75us (US, Japan)\n" + "description" : "De-emphasis time constant (us)\n * 0 - 50us (Europe, Australia)\n * 1 - 75us (US, Japan)\n", + "minimum" : 0, + "maximum" : 1 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "audioStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable stereo audio decoding (1 stereo, 0 mono).", + "minimum" : 0, + "maximum" : 1 }, "lsbStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Use lower-sideband stereo decoding (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "showPilot" : { - "type" : "integer" + "type" : "integer", + "description" : "Show the stereo pilot spectrum (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rdsActive" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable RDS decoding (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -3014,27 +3884,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3043,7 +3924,8 @@ margin-bottom: 20px; defs.Bandwidth = { "properties" : { "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." } }, "description" : "A bandwidth expressed in Hertz (Hz)" @@ -3061,40 +3943,55 @@ margin-bottom: 20px; defs.BeamSteeringCWModSettings = { "properties" : { "steerDegrees" : { - "type" : "integer" + "type" : "integer", + "description" : "Steer degrees setting for Beam steering CW mod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3103,64 +4000,91 @@ margin-bottom: 20px; defs.BladeRF1InputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "vga1" : { - "type" : "integer" + "type" : "integer", + "description" : "First variable-gain-amplifier gain setting." }, "vga2" : { - "type" : "integer" + "type" : "integer", + "description" : "Second variable-gain-amplifier gain setting." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "xb200" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 setting for Blade rf1 input." }, "xb200Path" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 path setting for Blade rf1 input." }, "xb200Filter" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 filter setting for Blade rf1 input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF1" @@ -3168,48 +4092,65 @@ margin-bottom: 20px; defs.BladeRF1OutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "vga1" : { - "type" : "integer" + "type" : "integer", + "description" : "First variable-gain-amplifier gain setting." }, "vga2" : { - "type" : "integer" + "type" : "integer", + "description" : "Second variable-gain-amplifier gain setting." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "xb200" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 setting for Blade rf1 output." }, "xb200Path" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 path setting for Blade rf1 output." }, "xb200Filter" : { - "type" : "integer" + "type" : "integer", + "description" : "Xb200 filter setting for Blade rf1 output." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF1" @@ -3217,19 +4158,24 @@ margin-bottom: 20px; defs.BladeRF2InputReport = { "properties" : { "frequencyRange" : { + "description" : "Frequency range data for Blade rf2 input.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRange" : { + "description" : "Sample rate range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "bandwidthRange" : { + "description" : "Bandwidth range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "globalGainRange" : { + "description" : "Global gain range data for Blade rf2 input.", "$ref" : "#/definitions/Range" }, "gainModes" : { "type" : "array", + "description" : "List of gain modes.", "items" : { "$ref" : "#/definitions/NamedEnum" } @@ -3240,65 +4186,96 @@ margin-bottom: 20px; defs.BladeRF2InputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3306,33 +4283,42 @@ margin-bottom: 20px; defs.BladeRF2MIMOReport = { "properties" : { "frequencyRangeRx" : { + "description" : "Frequency range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRangeRx" : { + "description" : "Sample rate range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "bandwidthRangeRx" : { + "description" : "Bandwidth range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "globalGainRangeRx" : { + "description" : "Global gain range receive data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "gainModesRx" : { "type" : "array", + "description" : "List of gain modes receive.", "items" : { "$ref" : "#/definitions/NamedEnum" } }, "frequencyRangeTx" : { + "description" : "Frequency range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRangeTx" : { + "description" : "Sample rate range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "bandwidthRangeTx" : { + "description" : "Bandwidth range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" }, "globalGainRangeTx" : { + "description" : "Global gain range transmit data for Blade rf2 MIMO.", "$ref" : "#/definitions/Range" } }, @@ -3341,108 +4327,146 @@ margin-bottom: 20px; defs.BladeRF2MIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPosRx" : { "type" : "integer", "description" : "See BladeRF2MIMO::fcPos_t" }, "rxBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive bandwidth in Hz." }, "rx0GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain mode setting for Blade rf2 MIMO." }, "rx0GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 global gain setting for Blade rf2 MIMO." }, "rx1GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain mode setting for Blade rf2 MIMO." }, "rx1GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 global gain setting for Blade rf2 MIMO." }, "rxBiasTee" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterMode" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "fcPosTx" : { "type" : "integer", "description" : "See BladeRF2MIMO::fcPos_t" }, "txBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit bandwidth in Hz." }, "tx0GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx0 global gain setting for Blade rf2 MIMO." }, "tx1GlobalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx1 global gain setting for Blade rf2 MIMO." }, "txBiasTee" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterMode" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3450,15 +4474,19 @@ margin-bottom: 20px; defs.BladeRF2OutputReport = { "properties" : { "frequencyRange" : { + "description" : "Frequency range data for Blade rf2 output.", "$ref" : "#/definitions/FrequencyRange" }, "sampleRateRange" : { + "description" : "Sample rate range data for Blade rf2 output.", "$ref" : "#/definitions/Range" }, "bandwidthRange" : { + "description" : "Bandwidth range data for Blade rf2 output.", "$ref" : "#/definitions/Range" }, "globalGainRange" : { + "description" : "Global gain range data for Blade rf2 output.", "$ref" : "#/definitions/Range" } }, @@ -3467,49 +4495,70 @@ margin-bottom: 20px; defs.BladeRF2OutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "BladeRF2" @@ -3517,7 +4566,8 @@ margin-bottom: 20px; defs.CWKeyerSettings = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "wpm" : { "type" : "integer", @@ -3525,10 +4575,13 @@ margin-bottom: 20px; }, "mode" : { "type" : "integer", - "description" : "see enum CWKeyerSettings::CWMode" + "description" : "Source of the keying\n * 0 - none, key up\n * 1 - send the text in the text field\n * 2 - send continuous dots\n * 3 - send continuous dashes\n * 4 - key from the keyboard\n", + "minimum" : 0, + "maximum" : 4 }, "text" : { - "type" : "string" + "type" : "string", + "description" : "Text setting for CW keyer." }, "loop" : { "type" : "integer", @@ -3536,23 +4589,25 @@ margin-bottom: 20px; }, "keyboardIambic" : { "type" : "integer", - "description" : "1 for iambic input 0 for straight input using the keyboard" + "description" : "1 for iambic input 0 for straight input using the keyboard", + "minimum" : 0, + "maximum" : 1 }, "dotKey" : { "type" : "integer", - "description" : "key for dots keyboard input. See enum Qt::Key" + "description" : "Keyboard key that sends dots. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "dotKeyModifiers" : { "type" : "integer", - "description" : "key modifier for dots keyboard input. See flags Qt::KeyboardModifiers" + "description" : "Modifiers for the dot key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" }, "dashKey" : { "type" : "integer", - "description" : "key for dashes keyboard input. See enum Qt::Key" + "description" : "Keyboard key that sends dashes. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "dashKeyModifiers" : { "type" : "integer", - "description" : "key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers" + "description" : "Modifiers for the dash key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" } } }; @@ -3634,7 +4689,9 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorDeviceSetIndex" : { "type" : "integer", @@ -3645,39 +4702,51 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the channel index from where the message comes from." }, "AISModActions" : { + "description" : "AIS mod actions configuration for Channel.", "$ref" : "#/definitions/AISModActions" }, "APTDemodActions" : { + "description" : "Apt demod actions configuration for Channel.", "$ref" : "#/definitions/APTDemodActions" }, "FileSinkActions" : { + "description" : "File sink actions configuration for Channel.", "$ref" : "#/definitions/FileSinkActions" }, "FileSourceActions" : { + "description" : "File source actions configuration for Channel.", "$ref" : "#/definitions/FileSourceActions" }, "FreqScannerActions" : { + "description" : "Freq scanner actions configuration for Channel.", "$ref" : "#/definitions/FreqScannerActions" }, "IEEE_802_15_4_ModActions" : { + "description" : "Ieee 802 15 4 mod actions configuration for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModActions" }, "MeshcoreModActions" : { + "description" : "Meshcore mod actions configuration for Channel.", "$ref" : "#/definitions/MeshcoreModActions" }, "PacketModActions" : { + "description" : "Packet mod actions configuration for Channel.", "$ref" : "#/definitions/PacketModActions" }, "PSK31ModActions" : { + "description" : "Psk31 mod actions configuration for Channel.", "$ref" : "#/definitions/PSK31ModActions" }, "RadioAstronomyActions" : { + "description" : "Radio astronomy actions configuration for Channel.", "$ref" : "#/definitions/RadioAstronomyActions" }, "RTTYModActions" : { + "description" : "Rtty mod actions configuration for Channel.", "$ref" : "#/definitions/RTTYModActions" }, "SigMFFileSinkActions" : { + "description" : "Sig mf file sink actions configuration for Channel.", "$ref" : "#/definitions/SigMFFileSinkActions" } }, @@ -3686,72 +4755,97 @@ margin-bottom: 20px; defs.ChannelAnalyzerSettings = { "properties" : { "frequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency in Hz." }, "downSample" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "downSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Down sample rate in samples per second." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "lowCutoff" : { - "type" : "integer" + "type" : "integer", + "description" : "Lower filter cutoff frequency in Hz." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "ssb" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "pll" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "fll" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "costasLoop" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rrc" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rrcRolloff" : { "type" : "integer", "description" : "in 100ths" }, "pllPskOrder" : { - "type" : "integer" + "type" : "integer", + "description" : "Pll psk order setting for Channel analyzer." }, "pllBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll bandwidth in Hz." }, "pllDampingFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll damping factor setting for Channel analyzer." }, "pllLoopGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll loop gain setting for Channel analyzer." }, "inputType" : { "type" : "integer", - "description" : "see ChannelAnalyzerSettings::InputType" + "description" : "Signal fed to the analyser\n * 0 - the channel signal\n * 1 - the PLL output\n * 2 - the autocorrelation of the signal\n", + "minimum" : 0, + "maximum" : 2 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -3759,30 +4853,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3795,6 +4901,7 @@ margin-bottom: 20px; "description" : "Channel type ID in URI form" }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/ChannelSettings" } }, @@ -3833,18 +4940,22 @@ margin-bottom: 20px; defs.ChannelMarker = { "properties" : { "centerFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Device center frequency in Hz." }, "color" : { "type" : "integer", "description" : "RGB color" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "frequencyScaleDisplayType" : { "type" : "integer", - "description" : "ChannelMarker::frequencyScaleDisplay_t" + "description" : "What is written against the channel on the frequency scale\n * 0 - the frequency\n * 1 - the channel title\n * 2 - the send address\n * 3 - the receive address\n * 4 - nothing\n", + "minimum" : 0, + "maximum" : 4 } }, "description" : "ChannelMarker settings" @@ -3872,7 +4983,8 @@ margin-bottom: 20px; "description" : "pulse power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ChannelPower" @@ -3881,11 +4993,14 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for Absolute)" + "description" : "(0 for Offset, 1 for Absolute)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -3894,7 +5009,8 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "pulseThreshold" : { "type" : "number", @@ -3906,10 +5022,12 @@ margin-bottom: 20px; "description" : "Average period in microseconds" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -3917,24 +5035,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -3950,174 +5078,236 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "ADSBDemodReport" : { + "description" : "ADS-B demod report data for Channel.", "$ref" : "#/definitions/ADSBDemodReport" }, "AISDemodReport" : { + "description" : "AIS demod report data for Channel.", "$ref" : "#/definitions/AISDemodReport" }, "AISModReport" : { + "description" : "AIS mod report data for Channel.", "$ref" : "#/definitions/AISModReport" }, "AMDemodReport" : { + "description" : "Am demod report data for Channel.", "$ref" : "#/definitions/AMDemodReport" }, "AMModReport" : { + "description" : "Am mod report data for Channel.", "$ref" : "#/definitions/AMModReport" }, "ATVModReport" : { + "description" : "Atv mod report data for Channel.", "$ref" : "#/definitions/ATVModReport" }, "BFMDemodReport" : { + "description" : "BFM demod report data for Channel.", "$ref" : "#/definitions/BFMDemodReport" }, + "DABDemodReport" : { + "description" : "DAB demod report data for Channel.", + "$ref" : "#/definitions/DABDemodReport" + }, "ChannelPowerReport" : { + "description" : "Channel power report data for Channel.", "$ref" : "#/definitions/ChannelPowerReport" }, "ChirpChatDemodReport" : { + "description" : "Chirp chat demod report data for Channel.", "$ref" : "#/definitions/ChirpChatDemodReport" }, "ChirpChatModReport" : { + "description" : "Chirp chat mod report data for Channel.", "$ref" : "#/definitions/ChirpChatModReport" }, "DATVDemodReport" : { + "description" : "Datv demod report data for Channel.", "$ref" : "#/definitions/DATVDemodReport" }, "DATVModReport" : { + "description" : "Datv mod report data for Channel.", "$ref" : "#/definitions/DATVModReport" }, "DOA2Report" : { + "description" : "Doa2 report data for Channel.", "$ref" : "#/definitions/DOA2Report" }, "DSCDemodReport" : { + "description" : "Dsc demod report data for Channel.", "$ref" : "#/definitions/DSCDemodReport" }, "DSDDemodReport" : { + "description" : "Dsd demod report data for Channel.", "$ref" : "#/definitions/DSDDemodReport" }, "EndOfTrainDemodReport" : { + "description" : "End of train demod report data for Channel.", "$ref" : "#/definitions/EndOfTrainDemodReport" }, "IEEE_802_15_4_ModReport" : { + "description" : "Ieee 802 15 4 mod report data for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModReport" }, "FileSinkReport" : { + "description" : "File sink report data for Channel.", "$ref" : "#/definitions/FileSinkReport" }, "FileSourceReport" : { + "description" : "File source report data for Channel.", "$ref" : "#/definitions/FileSourceReport" }, "FreeDVDemodReport" : { + "description" : "Free dv demod report data for Channel.", "$ref" : "#/definitions/FreeDVDemodReport" }, "FreeDVModReport" : { + "description" : "Free dv mod report data for Channel.", "$ref" : "#/definitions/FreeDVModReport" }, "FreqScannerReport" : { + "description" : "Freq scanner report data for Channel.", "$ref" : "#/definitions/FreqScannerReport" }, "FreqTrackerReport" : { + "description" : "Freq tracker report data for Channel.", "$ref" : "#/definitions/FreqTrackerReport" }, "FT8DemodReport" : { + "description" : "Ft8 demod report data for Channel.", "$ref" : "#/definitions/FT8DemodReport" }, "HeatMapReport" : { + "description" : "Heat map report data for Channel.", "$ref" : "#/definitions/HeatMapReport" }, "ILSDemodReport" : { + "description" : "Ils demod report data for Channel.", "$ref" : "#/definitions/ILSDemodReport" }, "InmarsatDemodReport" : { + "description" : "Inmarsat demod report data for Channel.", "$ref" : "#/definitions/InmarsatDemodReport" }, "M17DemodReport" : { + "description" : "M17 demod report data for Channel.", "$ref" : "#/definitions/M17DemodReport" }, "M17ModReport" : { + "description" : "M17 mod report data for Channel.", "$ref" : "#/definitions/M17ModReport" }, "MeshtasticDemodReport" : { + "description" : "Meshtastic demod report data for Channel.", "$ref" : "#/definitions/MeshtasticDemodReport" }, "MeshtasticModReport" : { + "description" : "Meshtastic mod report data for Channel.", "$ref" : "#/definitions/MeshtasticModReport" }, "MeshcoreDemodReport" : { + "description" : "Meshcore demod report data for Channel.", "$ref" : "#/definitions/MeshcoreDemodReport" }, "MeshcoreModReport" : { + "description" : "Meshcore mod report data for Channel.", "$ref" : "#/definitions/MeshcoreModReport" }, "NavtexDemodReport" : { + "description" : "Navtex demod report data for Channel.", "$ref" : "#/definitions/NavtexDemodReport" }, "NFMDemodReport" : { + "description" : "Nfm demod report data for Channel.", "$ref" : "#/definitions/NFMDemodReport" }, "NFMModReport" : { + "description" : "Nfm mod report data for Channel.", "$ref" : "#/definitions/NFMModReport" }, "NoiseFigureReport" : { + "description" : "Noise figure report data for Channel.", "$ref" : "#/definitions/NoiseFigureReport" }, "SSBDemodReport" : { + "description" : "Ssb demod report data for Channel.", "$ref" : "#/definitions/SSBDemodReport" }, "RadioAstronomyReport" : { + "description" : "Radio astronomy report data for Channel.", "$ref" : "#/definitions/RadioAstronomyReport" }, "RadioClockReport" : { + "description" : "Radio clock report data for Channel.", "$ref" : "#/definitions/RadioClockReport" }, "RadiosondeDemodReport" : { + "description" : "Radiosonde demod report data for Channel.", "$ref" : "#/definitions/RadiosondeDemodReport" }, "RemoteSourceReport" : { + "description" : "Remote source report data for Channel.", "$ref" : "#/definitions/RemoteSourceReport" }, "RTTYDemodReport" : { + "description" : "Rtty demod report data for Channel.", "$ref" : "#/definitions/RTTYDemodReport" }, "RTTYModReport" : { + "description" : "Rtty mod report data for Channel.", "$ref" : "#/definitions/RTTYModReport" }, "PacketDemodReport" : { + "description" : "Packet demod report data for Channel.", "$ref" : "#/definitions/PacketDemodReport" }, "PacketModReport" : { + "description" : "Packet mod report data for Channel.", "$ref" : "#/definitions/PacketModReport" }, "PagerDemodReport" : { + "description" : "Pager demod report data for Channel.", "$ref" : "#/definitions/PagerDemodReport" }, "PSK31ModReport" : { + "description" : "Psk31 mod report data for Channel.", "$ref" : "#/definitions/PSK31ModReport" }, "SigMFFileSinkReport" : { + "description" : "Sig mf file sink report data for Channel.", "$ref" : "#/definitions/SigMFFileSinkReport" }, "SSBModReport" : { + "description" : "Ssb mod report data for Channel.", "$ref" : "#/definitions/SSBModReport" }, "UDPSourceReport" : { + "description" : "UDP source report data for Channel.", "$ref" : "#/definitions/UDPSourceReport" }, "UDPSinkReport" : { + "description" : "UDP sink report data for Channel.", "$ref" : "#/definitions/UDPSinkReport" }, "VORDemodReport" : { + "description" : "Vor demod report data for Channel.", "$ref" : "#/definitions/VORDemodReport" }, "WDSPRxReport" : { + "description" : "Wdsp receive report data for Channel.", "$ref" : "#/definitions/WDSPRxReport" }, "WFMDemodReport" : { + "description" : "Wfm demod report data for Channel.", "$ref" : "#/definitions/WFMDemodReport" }, "WFMModReport" : { + "description" : "Wfm mod report data for Channel.", "$ref" : "#/definitions/WFMModReport" } }, @@ -4133,7 +5323,9 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorDeviceSetIndex" : { "type" : "integer", @@ -4144,201 +5336,267 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the channel index from where the message comes from." }, "ADSBDemodSettings" : { + "description" : "ADS-B demod settings configuration for Channel.", "$ref" : "#/definitions/ADSBDemodSettings" }, "AISDemodSettings" : { + "description" : "AIS demod settings configuration for Channel.", "$ref" : "#/definitions/AISDemodSettings" }, "AISModSettings" : { + "description" : "AIS mod settings configuration for Channel.", "$ref" : "#/definitions/AISModSettings" }, "AMDemodSettings" : { + "description" : "Am demod settings configuration for Channel.", "$ref" : "#/definitions/AMDemodSettings" }, "AMModSettings" : { + "description" : "Am mod settings configuration for Channel.", "$ref" : "#/definitions/AMModSettings" }, "APTDemodSettings" : { + "description" : "Apt demod settings configuration for Channel.", "$ref" : "#/definitions/APTDemodSettings" }, "ATVDemodSettings" : { + "description" : "Atv demod settings configuration for Channel.", "$ref" : "#/definitions/ATVDemodSettings" }, "ATVModSettings" : { + "description" : "Atv mod settings configuration for Channel.", "$ref" : "#/definitions/ATVModSettings" }, "BeamSteeringCWModSettings" : { + "description" : "Beam steering CW mod settings configuration for Channel.", "$ref" : "#/definitions/BeamSteeringCWModSettings" }, "BFMDemodSettings" : { + "description" : "BFM demod settings configuration for Channel.", "$ref" : "#/definitions/BFMDemodSettings" }, "ChannelAnalyzerSettings" : { + "description" : "Channel analyzer settings configuration for Channel.", "$ref" : "#/definitions/ChannelAnalyzerSettings" }, "ChannelPowerSettings" : { + "description" : "Channel power settings configuration for Channel.", "$ref" : "#/definitions/ChannelPowerSettings" }, "ChirpChatDemodSettings" : { + "description" : "Chirp chat demod settings configuration for Channel.", "$ref" : "#/definitions/ChirpChatDemodSettings" }, "ChirpChatModSettings" : { + "description" : "Chirp chat mod settings configuration for Channel.", "$ref" : "#/definitions/ChirpChatModSettings" }, "DATVModSettings" : { + "description" : "Datv mod settings configuration for Channel.", "$ref" : "#/definitions/DATVModSettings" }, "DATVDemodSettings" : { + "description" : "Datv demod settings configuration for Channel.", "$ref" : "#/definitions/DATVDemodSettings" }, "DABDemodSettings" : { + "description" : "Dab demod settings configuration for Channel.", "$ref" : "#/definitions/DABDemodSettings" }, "DOA2Settings" : { + "description" : "Doa2 settings configuration for Channel.", "$ref" : "#/definitions/DOA2Settings" }, "DSCDemodSettings" : { + "description" : "Dsc demod settings configuration for Channel.", "$ref" : "#/definitions/DSCDemodSettings" }, "DSDDemodSettings" : { + "description" : "Dsd demod settings configuration for Channel.", "$ref" : "#/definitions/DSDDemodSettings" }, "EndOfTrainDemodSettings" : { + "description" : "End of train demod settings configuration for Channel.", "$ref" : "#/definitions/EndOfTrainDemodSettings" }, "FileSinkSettings" : { + "description" : "File sink settings configuration for Channel.", "$ref" : "#/definitions/FileSinkSettings" }, "FileSourceSettings" : { + "description" : "File source settings configuration for Channel.", "$ref" : "#/definitions/FileSourceSettings" }, "FreeDVDemodSettings" : { + "description" : "Free dv demod settings configuration for Channel.", "$ref" : "#/definitions/FreeDVDemodSettings" }, "FreeDVModSettings" : { + "description" : "Free dv mod settings configuration for Channel.", "$ref" : "#/definitions/FreeDVModSettings" }, "FreqScannerSettings" : { + "description" : "Freq scanner settings configuration for Channel.", "$ref" : "#/definitions/FreqScannerSettings" }, "FreqTrackerSettings" : { + "description" : "Freq tracker settings configuration for Channel.", "$ref" : "#/definitions/FreqTrackerSettings" }, "FT8DemodSettings" : { + "description" : "Ft8 demod settings configuration for Channel.", "$ref" : "#/definitions/FT8DemodSettings" }, "HeatMapSettings" : { + "description" : "Heat map settings configuration for Channel.", "$ref" : "#/definitions/HeatMapSettings" }, "ILSDemodSettings" : { + "description" : "Ils demod settings configuration for Channel.", "$ref" : "#/definitions/ILSDemodSettings" }, "InmarsatDemodSettings" : { + "description" : "Inmarsat demod settings configuration for Channel.", "$ref" : "#/definitions/InmarsatDemodSettings" }, "InterferometerSettings" : { + "description" : "Interferometer settings configuration for Channel.", "$ref" : "#/definitions/InterferometerSettings" }, "IEEE_802_15_4_ModSettings" : { + "description" : "Ieee 802 15 4 mod settings configuration for Channel.", "$ref" : "#/definitions/IEEE_802_15_4_ModSettings" }, "M17DemodSettings" : { + "description" : "M17 demod settings configuration for Channel.", "$ref" : "#/definitions/M17DemodSettings" }, "M17ModSettings" : { + "description" : "M17 mod settings configuration for Channel.", "$ref" : "#/definitions/M17ModSettings" }, "MeshtasticDemodSettings" : { + "description" : "Meshtastic demod settings configuration for Channel.", "$ref" : "#/definitions/MeshtasticDemodSettings" }, "MeshtasticModSettings" : { + "description" : "Meshtastic mod settings configuration for Channel.", "$ref" : "#/definitions/MeshtasticModSettings" }, "MeshcoreDemodSettings" : { + "description" : "Meshcore demod settings configuration for Channel.", "$ref" : "#/definitions/MeshcoreDemodSettings" }, "MeshcoreModSettings" : { + "description" : "Meshcore mod settings configuration for Channel.", "$ref" : "#/definitions/MeshcoreModSettings" }, "NavtexDemodSettings" : { + "description" : "Navtex demod settings configuration for Channel.", "$ref" : "#/definitions/NavtexDemodSettings" }, "NFMDemodSettings" : { + "description" : "Nfm demod settings configuration for Channel.", "$ref" : "#/definitions/NFMDemodSettings" }, "NFMModSettings" : { + "description" : "Nfm mod settings configuration for Channel.", "$ref" : "#/definitions/NFMModSettings" }, "NoiseFigureSettings" : { + "description" : "Noise figure settings configuration for Channel.", "$ref" : "#/definitions/NoiseFigureSettings" }, "LocalSinkSettings" : { + "description" : "Local sink settings configuration for Channel.", "$ref" : "#/definitions/LocalSinkSettings" }, "LocalSourceSettings" : { + "description" : "Local source settings configuration for Channel.", "$ref" : "#/definitions/LocalSourceSettings" }, "PacketDemodSettings" : { + "description" : "Packet demod settings configuration for Channel.", "$ref" : "#/definitions/PacketDemodSettings" }, "PacketModSettings" : { + "description" : "Packet mod settings configuration for Channel.", "$ref" : "#/definitions/PacketModSettings" }, "PagerDemodSettings" : { + "description" : "Pager demod settings configuration for Channel.", "$ref" : "#/definitions/PagerDemodSettings" }, "PSK31ModSettings" : { + "description" : "Psk31 mod settings configuration for Channel.", "$ref" : "#/definitions/PSK31ModSettings" }, "RadioAstronomySettings" : { + "description" : "Radio astronomy settings configuration for Channel.", "$ref" : "#/definitions/RadioAstronomySettings" }, "RadioClockSettings" : { + "description" : "Radio clock settings configuration for Channel.", "$ref" : "#/definitions/RadioClockSettings" }, "RadiosondeDemodSettings" : { + "description" : "Radiosonde demod settings configuration for Channel.", "$ref" : "#/definitions/RadiosondeDemodSettings" }, "RemoteSinkSettings" : { + "description" : "Remote sink settings configuration for Channel.", "$ref" : "#/definitions/RemoteSinkSettings" }, "RemoteSourceSettings" : { + "description" : "Remote source settings configuration for Channel.", "$ref" : "#/definitions/RemoteSourceSettings" }, "RemoteTCPSinkSettings" : { + "description" : "Remote TCP sink settings configuration for Channel.", "$ref" : "#/definitions/RemoteTCPSinkSettings" }, "RTTYDemodSettings" : { + "description" : "Rtty demod settings configuration for Channel.", "$ref" : "#/definitions/RTTYDemodSettings" }, "RTTYModSettings" : { + "description" : "Rtty mod settings configuration for Channel.", "$ref" : "#/definitions/RTTYModSettings" }, "SigMFFileSinkSettings" : { + "description" : "Sig mf file sink settings configuration for Channel.", "$ref" : "#/definitions/SigMFFileSinkSettings" }, "SSBModSettings" : { + "description" : "Ssb mod settings configuration for Channel.", "$ref" : "#/definitions/SSBModSettings" }, "SSBDemodSettings" : { + "description" : "Ssb demod settings configuration for Channel.", "$ref" : "#/definitions/SSBDemodSettings" }, "UDPSourceSettings" : { + "description" : "UDP source settings configuration for Channel.", "$ref" : "#/definitions/UDPSourceSettings" }, "UDPSinkSettings" : { + "description" : "UDP sink settings configuration for Channel.", "$ref" : "#/definitions/UDPSinkSettings" }, "VORDemodSettings" : { + "description" : "Vor demod settings configuration for Channel.", "$ref" : "#/definitions/VORDemodSettings" }, "WDSPRxSettings" : { + "description" : "Wdsp receive settings configuration for Channel.", "$ref" : "#/definitions/WDSPRxSettings" }, "WFMDemodSettings" : { + "description" : "Wfm demod settings configuration for Channel.", "$ref" : "#/definitions/WFMDemodSettings" }, "WFMModSettings" : { + "description" : "Wfm mod settings configuration for Channel.", "$ref" : "#/definitions/WFMModSettings" } }, @@ -4384,15 +5642,20 @@ margin-bottom: 20px; "description" : "last message de-chirped signal to noise ratio power (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "syncWord" : { "type" : "integer", - "description" : "2 bytes sync word (0..65535)" + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 }, "hasCRC" : { "type" : "integer", - "description" : "boolean 1 if payload CRC is present else 0 (LoRa)" + "description" : "boolean 1 if payload CRC is present else 0 (LoRa)", + "minimum" : 0, + "maximum" : 1 }, "nbParityBits" : { "type" : "integer", @@ -4412,7 +5675,9 @@ margin-bottom: 20px; }, "headerParityStatus" : { "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "headerCRCStatus" : { "type" : "integer", @@ -4420,7 +5685,9 @@ margin-bottom: 20px; }, "payloadParityStatus" : { "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "payloadCRCStatus" : { "type" : "integer", @@ -4443,7 +5710,9 @@ margin-bottom: 20px; }, "decoding" : { "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "ChirpChatDemod" @@ -4452,14 +5721,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Chirp chat demod." }, "deBits" : { "type" : "integer", @@ -4467,15 +5740,21 @@ margin-bottom: 20px; }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "codingScheme" : { "type" : "integer", - "description" : "message encoding scheme (ChirpChatDemodSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n" + "description" : "message encoding scheme (ChirpChatDemodSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n", + "minimum" : 0, + "maximum" : 2 }, "decodeActive" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 }, "eomSquelchTenths" : { "type" : "integer", @@ -4511,11 +5790,15 @@ margin-bottom: 20px; }, "sendViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udoEnabled" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -4523,17 +5806,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4541,27 +5830,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -4575,7 +5875,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "symbolTimeMs" : { "type" : "number", @@ -4594,7 +5895,9 @@ margin-bottom: 20px; }, "playing" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "ChirpChatMod" @@ -4603,14 +5906,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Chirp chat mod." }, "deBits" : { "type" : "integer", @@ -4626,15 +5933,21 @@ margin-bottom: 20px; }, "syncWord" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 }, "channelMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "codingScheme" : { "type" : "integer", - "description" : "message encoding scheme (ChirpChatModSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n" + "description" : "message encoding scheme (ChirpChatModSettings::CodingScheme):\n * 0 - LoRa\n * 1 - Plain ASCII (7 bit)\n * 2 - Teletype (5 bit Baudot) a.k.a TTY\n", + "minimum" : 0, + "maximum" : 2 }, "nbParityBits" : { "type" : "integer", @@ -4666,7 +5979,9 @@ margin-bottom: 20px; }, "messageType" : { "type" : "integer", - "description" : "type of message to send (ChirpChatModSettings::MessageType):\n * 0 - No message i.e no output. Use this as a transition to resend the same message.\n * 1 - Beacon. Sends message specified in beaconMessage\n * 2 - CQ call. Sends message specified in cqMessage\n * 3 - Reply to CQ call. Sends message specified in replyMessage\n * 4 - Report to callee. Sends message specified in reportMessage\n * 5 - Report to caller. Sends message specified in replyReportMessage\n * 6 - RRR to callee. Sends message specified in rrrMessage\n * 7 - 73 to caller. Sends message specified in message73\n * 8 - Random message with callsigns. Sends message specified in qsoTextMessage\n * 9 - Plain text. Sends message specified in textMessage\n * 10 - Binary payload. Sends bytes specified in bytesMessage\n" + "description" : "type of message to send (ChirpChatModSettings::MessageType):\n * 0 - No message i.e no output. Use this as a transition to resend the same message.\n * 1 - Beacon. Sends message specified in beaconMessage\n * 2 - CQ call. Sends message specified in cqMessage\n * 3 - Reply to CQ call. Sends message specified in replyMessage\n * 4 - Report to callee. Sends message specified in reportMessage\n * 5 - Report to caller. Sends message specified in replyReportMessage\n * 6 - RRR to callee. Sends message specified in rrrMessage\n * 7 - 73 to caller. Sends message specified in message73\n * 8 - Random message with callsigns. Sends message specified in qsoTextMessage\n * 9 - Plain text. Sends message specified in textMessage\n * 10 - Binary payload. Sends bytes specified in bytesMessage\n", + "minimum" : 0, + "maximum" : 10 }, "beaconMessage" : { "type" : "string", @@ -4717,7 +6032,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -4725,17 +6042,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4743,24 +6066,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -4769,32 +6102,40 @@ margin-bottom: 20px; defs.Command = { "properties" : { "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Command." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "command" : { - "type" : "string" + "type" : "string", + "description" : "Command for Command." }, "argString" : { - "type" : "string" + "type" : "string", + "description" : "Arg string for Command." }, "key" : { "type" : "integer", - "description" : "Qt::Key" + "description" : "Keyboard key that triggers the command. Key code as a Qt key value, for example 32 (0x20) for space and 65 (0x41) for A. Letter keys use the upper case code. 0 for no key.\n" }, "keyModifiers" : { "type" : "integer", - "description" : "Qt::KeyboardModifiers" + "description" : "Modifiers for the trigger key. Modifier keys held with the key, as a sum of flags: 33554432 (0x02000000) shift, 67108864 (0x04000000) control, 134217728 (0x08000000) alt, 268435456 (0x10000000) meta. 0 for no modifier.\n" }, "associateKey" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "release" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Represents a Command object" @@ -4803,11 +6144,13 @@ margin-bottom: 20px; "properties" : { "real" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Real component of the complex number." }, "imag" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Imaginary component of the complex number." } }, "description" : "A complex number" @@ -4884,35 +6227,150 @@ margin-bottom: 20px; } }, "description" : "Configuration presets" +}; + defs.DABDemodReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "Average power in the demodulator channel in dB." + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective complex channel sample rate in samples per second. DAB requires 2048000." + }, + "audioSampleRate" : { + "type" : "integer", + "description" : "Audio output sample rate in samples per second." + }, + "sync" : { + "type" : "integer", + "description" : "DAB synchronization state (1 synchronized, 0 not synchronized).", + "minimum" : 0, + "maximum" : 1 + }, + "snr" : { + "type" : "integer", + "description" : "DAB decoder signal-to-noise ratio in dB. A value of 0 dB or less after synchronization and audio become active is not a healthy result and can indicate receiver overload. With an RTL-SDR, reduce tuner gain through its supported values, wait briefly after each change, and re-read this report. Select the gain that gives the best positive SNR rather than assuming that higher gain is better.\n" + }, + "frequencyOffset" : { + "type" : "integer", + "description" : "Frequency offset estimated by the DAB decoder in Hz." + }, + "ensembleName" : { + "type" : "string", + "description" : "Label of the currently decoded ensemble." + }, + "ensembleId" : { + "type" : "integer", + "description" : "Identifier of the currently decoded ensemble." + }, + "programs" : { + "type" : "array", + "description" : "Programme services discovered in the currently tuned ensemble.", + "items" : { + "$ref" : "#/definitions/DABProgram" + } + }, + "selectedProgram" : { + "type" : "string", + "description" : "Exact service label currently requested by the program setting." + }, + "audioActive" : { + "type" : "integer", + "description" : "Whether programme audio metadata has been received and audio decoding is active.", + "minimum" : 0, + "maximum" : 1 + }, + "bitrate" : { + "type" : "integer", + "description" : "Selected programme audio bitrate in kbit/s." + }, + "audio" : { + "type" : "string", + "description" : "Selected programme audio codec and channel-mode description." + }, + "language" : { + "type" : "string", + "description" : "Selected programme language." + }, + "programType" : { + "type" : "string", + "description" : "Selected programme type, such as News or Pop Music." + }, + "frameQuality" : { + "type" : "integer", + "description" : "Audio frame decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "reedSolomonQuality" : { + "type" : "integer", + "description" : "Reed-Solomon decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "aacQuality" : { + "type" : "integer", + "description" : "AAC decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "fibQuality" : { + "type" : "integer", + "description" : "Fast Information Block decode quality as a percentage.", + "minimum" : 0, + "maximum" : 100 + }, + "tii" : { + "type" : "integer", + "description" : "Decoded Transmitter Identification Information value." + }, + "data" : { + "type" : "string", + "description" : "Latest dynamic text/data associated with the selected programme." + } + }, + "description" : "Live DAB demodulator, ensemble and selected-programme status. Synchronization, discovered programmes and active audio do not by themselves prove clean reception; check SNR after selecting a programme and after every receiver gain change.\n" }; defs.DABDemodSettings = { "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "program" : { - "type" : "string" + "type" : "string", + "description" : "Program setting for Dab demod." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -4920,28 +6378,51 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "DABDemod" +}; + defs.DABProgram = { + "properties" : { + "name" : { + "type" : "string", + "description" : "Exact transmitted service label. Use this value for the program setting." + }, + "id" : { + "type" : "integer", + "description" : "DAB service identifier." + } + }, + "description" : "A programme service discovered in the currently tuned DAB ensemble." }; defs.DATVDemodReport = { "properties" : { @@ -4952,19 +6433,27 @@ margin-bottom: 20px; }, "audioActive" : { "type" : "integer", - "description" : "Audio is active (1 for yes, 0 for now)" + "description" : "Audio is active (1 for yes, 0 for now)", + "minimum" : 0, + "maximum" : 1 }, "audioDecodeOK" : { "type" : "integer", - "description" : "Audio decode (1 for OK, 0 for KO)" + "description" : "Audio decode (1 for OK, 0 for KO)", + "minimum" : 0, + "maximum" : 1 }, "videoActive" : { "type" : "integer", - "description" : "Audio is active (1 for yes, 0 for now)" + "description" : "Audio is active (1 for yes, 0 for now)", + "minimum" : 0, + "maximum" : 1 }, "videoDecodeOK" : { "type" : "integer", - "description" : "Video decode (1 for OK, 0 for KO)" + "description" : "Video decode (1 for OK, 0 for KO)", + "minimum" : 0, + "maximum" : 1 }, "udpRunning" : { "type" : "integer", @@ -4984,15 +6473,19 @@ margin-bottom: 20px; }, "setByModcod" : { "type" : "integer", - "description" : "Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no)" + "description" : "Modulation and code rate set by DVB-S2 MODCOD (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "mer" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported mer." }, "cnr" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported cnr." } }, "description" : "DATVDemod" @@ -5000,28 +6493,38 @@ margin-bottom: 20px; defs.DATVDemodSettings = { "properties" : { "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "centerFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Device center frequency in Hz." }, "standard" : { "type" : "integer", - "description" : "DVB bersion (see DATVDemodSettings::dvb_version)\n * 0 - DVB-S\n * 1 - DVB-S2\n" + "description" : "DVB bersion (see DATVDemodSettings::dvb_version)\n * 0 - DVB-S\n * 1 - DVB-S2\n", + "minimum" : 0, + "maximum" : 1 }, "modulation" : { "type" : "integer", - "description" : "Modulation type (DATVDemodSettings::DATVModulation)\n * 0 - BPSK\n * 1 - QPSK\n * 2 - PSK8\n * 3 - APSK16\n * 4 - APSK32\n * 5 - APSK64E\n * 6 - QAM16\n * 7 - QAM64\n * 8 - QAM256\n" + "description" : "Modulation type (DATVDemodSettings::DATVModulation)\n * 0 - BPSK\n * 1 - QPSK\n * 2 - PSK8\n * 3 - APSK16\n * 4 - APSK32\n * 5 - APSK64E\n * 6 - QAM16\n * 7 - QAM64\n * 8 - QAM256\n", + "minimum" : 0, + "maximum" : 8 }, "fec" : { "type" : "integer", - "description" : "FEC rate (see DATVDemodSettings::DATVCodeRate)\n * 0 - 1/2\n * 1 - 2/3\n * 2 - 4/6\n * 3 - 3/4\n * 4 - 4/6\n * 5 - 7/8\n * 6 - 4/5\n * 7 - 8/9\n * 8 - 9/10\n * 9 - 1/4\n * 10 - 1/3\n * 11 - 2/5\n * 12 - 3/5\n" + "description" : "FEC rate (see DATVDemodSettings::DATVCodeRate)\n * 0 - 1/2\n * 1 - 2/3\n * 2 - 4/6\n * 3 - 3/4\n * 4 - 4/6\n * 5 - 7/8\n * 6 - 4/5\n * 7 - 8/9\n * 8 - 9/10\n * 9 - 1/4\n * 10 - 1/3\n * 11 - 2/5\n * 12 - 3/5\n", + "minimum" : 0, + "maximum" : 12 }, "softLDPC" : { "type" : "integer", @@ -5037,16 +6540,21 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "(boolean) mute audio output" + "description" : "(boolean) mute audio output", + "minimum" : 0, + "maximum" : 1 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "symbolRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol rate setting for Datv demod." }, "notchFilters" : { - "type" : "integer" + "type" : "integer", + "description" : "Notch filters setting for Datv demod." }, "allowDrift" : { "type" : "integer", @@ -5058,7 +6566,9 @@ margin-bottom: 20px; }, "filter" : { "type" : "integer", - "description" : "Type of symbol filtering (see DATVDemodSettings::dvb_sampler)\n * 0 - Nearest\n * 1 - Linear\n * 2 - Root Raised Cosine\n" + "description" : "Type of symbol filtering (see DATVDemodSettings::dvb_sampler)\n * 0 - Nearest\n * 1 - Linear\n * 2 - Root Raised Cosine\n", + "minimum" : 0, + "maximum" : 2 }, "hardMetric" : { "type" : "integer", @@ -5067,7 +6577,9 @@ margin-bottom: 20px; "rollOff" : { "type" : "number", "format" : "float", - "description" : "RRC filter roll-off factor (0..1)" + "description" : "RRC filter roll-off factor (0..1)", + "minimum" : 0, + "maximum" : 1 }, "viterbi" : { "type" : "integer", @@ -5078,25 +6590,34 @@ margin-bottom: 20px; "description" : "RRC filter envelope excursion (dB)" }, "audioVolume" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio volume setting for Datv demod." }, "videoMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "udpTSAddress" : { - "type" : "string" + "type" : "string", + "description" : "UDP ts address." }, "udpTSPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP ts port." }, "udpTS" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "playerEnable" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -5104,24 +6625,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5135,20 +6666,25 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "dataRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported data rate." }, "tsFileBitrate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported ts file bitrate." }, "tsFileLength" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported ts file length." }, "udpByteCount" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Number of udp byte events or items." } }, "description" : "DATVMod" @@ -5157,11 +6693,13 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "standard" : { "type" : "integer", @@ -5189,11 +6727,14 @@ margin-bottom: 20px; "description" : "Transport stream source (File=0 UDP=1)" }, "imageFileName" : { - "type" : "string" + "type" : "string", + "description" : "Image file name or path." }, "imageOverlayTimestamp" : { "type" : "integer", - "description" : "Overlay timestamp on still image (1 for yes, 0 for no)" + "description" : "Overlay timestamp on still image (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "imageServiceProvider" : { "type" : "string", @@ -5208,30 +6749,40 @@ margin-bottom: 20px; "description" : "Image codec (HEVC=0 H264=1)" }, "tsFileName" : { - "type" : "string" + "type" : "string", + "description" : "Ts file name." }, "tsFilePlayLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Ts file play loop setting for Datv mod." }, "tsFilePlay" : { "type" : "integer", "description" : "(Pause=0 Play=1)" }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { "type" : "integer", - "description" : "UDP port number to receive MPEG transport stream on" + "description" : "UDP port number to receive MPEG transport stream on", + "minimum" : 1, + "maximum" : 65535 }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -5239,24 +6790,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5266,15 +6827,21 @@ margin-bottom: 20px; "properties" : { "phi" : { "type" : "integer", - "description" : "Raw phase difference in degrees from 0 to 180" + "description" : "Raw phase difference in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "posAz" : { "type" : "integer", - "description" : "Calculated port side (positive) arrival angle in degrees from 0 to 180" + "description" : "Calculated port side (positive) arrival angle in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "negAz" : { "type" : "integer", - "description" : "Calculated starboard side (negative) arrival angle in degrees from 0 to 180" + "description" : "Calculated starboard side (negative) arrival angle in degrees from 0 to 180", + "minimum" : 0, + "maximum" : 180 }, "blindAngle" : { "type" : "integer", @@ -5298,16 +6865,20 @@ margin-bottom: 20px; "description" : "see DOA2Settings::CorrelationType" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "phase" : { "type" : "integer", @@ -5315,11 +6886,15 @@ margin-bottom: 20px; }, "antennaAz" : { "type" : "integer", - "description" : "Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359" + "description" : "Antennas azimuth from antenna 1 to antenna 2 in degrees from 0 to 359", + "minimum" : 0, + "maximum" : 359 }, "basebandDistance" : { "type" : "integer", - "description" : "Antennas baseline distance in millimeters from 1 to 99999" + "description" : "Antennas baseline distance in millimeters from 1 to 99999", + "minimum" : 1, + "maximum" : 99999 }, "squelchdB" : { "type" : "integer", @@ -5331,27 +6906,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5365,7 +6951,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "DSCDemod" @@ -5374,44 +6961,65 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "filterInvalid" : { - "type" : "integer" + "type" : "integer", + "description" : "Filter invalid setting for Dsc demod." }, "filterColumn" : { - "type" : "integer" + "type" : "integer", + "description" : "Filter column setting for Dsc demod." }, "filter" : { - "type" : "string" + "type" : "string", + "description" : "Filter setting for Dsc demod." }, "udpEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable udp (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { - "type" : "integer" + "type" : "integer", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -5419,27 +7027,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5453,10 +7072,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "squelch" : { "type" : "integer", @@ -5505,66 +7126,89 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "demodGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demod gain setting for Dsd demod." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "baudRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Serial-port baud rate in bits per second." }, "squelchGate" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch gate duration." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "enableCosineFiltering" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable cosine filtering (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "syncOrConstellation" : { - "type" : "integer" + "type" : "integer", + "description" : "Sync or constellation setting for Dsd demod." }, "slot1On" : { - "type" : "integer" + "type" : "integer", + "description" : "Slot1 on setting for Dsd demod." }, "slot2On" : { - "type" : "integer" + "type" : "integer", + "description" : "Slot2 on setting for Dsd demod." }, "tdmaStereo" : { - "type" : "integer" + "type" : "integer", + "description" : "Tdma stereo setting for Dsd demod." }, "pllLock" : { - "type" : "integer" + "type" : "integer", + "description" : "Pll lock setting for Dsd demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "highPassFilter" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass filter setting for Dsd demod." }, "traceLengthMutliplier" : { "type" : "integer", @@ -5572,11 +7216,15 @@ margin-bottom: 20px; }, "traceStroke" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "traceDecay" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "streamIndex" : { "type" : "integer", @@ -5584,24 +7232,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "ambeFeatureIndex" : { @@ -5610,7 +7268,9 @@ margin-bottom: 20px; }, "connectAMBE" : { "type" : "integer", - "description" : "Decode frames with AMBE feature\n * 0 - Do not decode frames with AMBE feature\n * 1 - Decode frames with AMBE feature\n" + "description" : "Decode frames with AMBE feature\n * 0 - Do not decode frames with AMBE feature\n * 1 - Decode frames with AMBE feature\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "DSDDemod" @@ -5658,13 +7318,16 @@ margin-bottom: 20px; defs.DemodAnalyzerSettings = { "properties" : { "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "fileRecordName" : { "type" : "string", @@ -5672,7 +7335,9 @@ margin-bottom: 20px; }, "recordToFile" : { "type" : "integer", - "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n" + "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordSilenceTime" : { "type" : "integer", @@ -5680,27 +7345,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5724,11 +7400,15 @@ margin-bottom: 20px; "properties" : { "denoiserType" : { "type" : "integer", - "description" : "Denoiser type\n * 0 - none\n * 1 - RNnoise\n" + "description" : "Denoiser type\n * 0 - none\n * 1 - RNnoise\n", + "minimum" : 0, + "maximum" : 1 }, "enableDenoiser" : { "type" : "integer", - "description" : "Enable denoiser\n * 1 - enable\n * 0 - disable\n" + "description" : "Enable denoiser\n * 1 - enable\n * 0 - disable\n", + "minimum" : 0, + "maximum" : 1 }, "volumeTenths" : { "type" : "integer", @@ -5740,13 +7420,17 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Audio mute\n * 1 - mute\n * 0 - unmute\n" + "description" : "Audio mute\n * 1 - mute\n * 0 - unmute\n", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "fileRecordName" : { "type" : "string", @@ -5754,25 +7438,36 @@ margin-bottom: 20px; }, "recordToFile" : { "type" : "integer", - "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n" + "description" : "Recording status\n * 1 - recording\n * 0 - not recording\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -5788,13 +7483,16 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorIndex" : { "type" : "integer", "description" : "Optional for reverse API. This is the device set index from where the message comes from." }, "sigMFFileInputActions" : { + "description" : "Sig mf file input actions configuration for Device.", "$ref" : "#/definitions/SigMFFileInputActions" } }, @@ -5803,15 +7501,19 @@ margin-bottom: 20px; defs.DeviceConfig = { "properties" : { "deviceId" : { - "type" : "string" + "type" : "string", + "description" : "Device id for Device config." }, "deviceSerial" : { - "type" : "string" + "type" : "string", + "description" : "Device serial for Device config." }, "deviceSequence" : { - "type" : "integer" + "type" : "integer", + "description" : "Device sequence for Device config." }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/DeviceSettings" } }, @@ -5868,105 +7570,140 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "airspyReport" : { + "description" : "Airspy report data for Device.", "$ref" : "#/definitions/AirspyReport" }, "airspyHFReport" : { + "description" : "Airspy hf report data for Device.", "$ref" : "#/definitions/AirspyHFReport" }, "androidSDRDriverInputReport" : { + "description" : "Android sdr driver input report data for Device.", "$ref" : "#/definitions/AndroidSDRDriverInputReport" }, "bladeRF2InputReport" : { + "description" : "Blade rf2 input report data for Device.", "$ref" : "#/definitions/BladeRF2InputReport" }, "bladeRF2OutputReport" : { + "description" : "Blade rf2 output report data for Device.", "$ref" : "#/definitions/BladeRF2OutputReport" }, "bladeRF2MIMOReport" : { + "description" : "Blade rf2 MIMO report data for Device.", "$ref" : "#/definitions/BladeRF2MIMOReport" }, "fileInputReport" : { + "description" : "File input report data for Device.", "$ref" : "#/definitions/FileInputReport" }, "kiwiSDRReport" : { + "description" : "Kiwi sdr report data for Device.", "$ref" : "#/definitions/KiwiSDRReport" }, "limeSdrInputReport" : { + "description" : "Lime sdr input report data for Device.", "$ref" : "#/definitions/LimeSdrInputReport" }, "limeSdrOutputReport" : { + "description" : "Lime sdr output report data for Device.", "$ref" : "#/definitions/LimeSdrOutputReport" }, "limeSdrMIMOReport" : { + "description" : "Lime sdr MIMO report data for Device.", "$ref" : "#/definitions/LimeSdrMIMOReport" }, "localInputReport" : { + "description" : "Local input report data for Device.", "$ref" : "#/definitions/LocalInputReport" }, "localOutputReport" : { + "description" : "Local output report data for Device.", "$ref" : "#/definitions/LocalOutputReport" }, "perseusReport" : { + "description" : "Perseus report data for Device.", "$ref" : "#/definitions/PerseusReport" }, "plutoSdrInputReport" : { + "description" : "Pluto sdr input report data for Device.", "$ref" : "#/definitions/PlutoSdrInputReport" }, "plutoSdrOutputReport" : { + "description" : "Pluto sdr output report data for Device.", "$ref" : "#/definitions/PlutoSdrOutputReport" }, "plutoSdrMIMOReport" : { + "description" : "Pluto sdr MIMO report data for Device.", "$ref" : "#/definitions/PlutoSdrMIMOReport" }, "rtlSdrReport" : { + "description" : "Rtl sdr report data for Device.", "$ref" : "#/definitions/RtlSdrReport" }, "remoteOutputReport" : { + "description" : "Remote output report data for Device.", "$ref" : "#/definitions/RemoteOutputReport" }, "remoteInputReport" : { + "description" : "Remote input report data for Device.", "$ref" : "#/definitions/RemoteInputReport" }, "remoteTCPInputReport" : { + "description" : "Remote TCP input report data for Device.", "$ref" : "#/definitions/RemoteTCPInputReport" }, "sdrPlayReport" : { + "description" : "Sdr play report data for Device.", "$ref" : "#/definitions/SDRPlayReport" }, "sdrPlayV3Report" : { + "description" : "Sdr play v3 report data for Device.", "$ref" : "#/definitions/SDRPlayV3Report" }, "sigMFFileInputReport" : { + "description" : "Sig mf file input report data for Device.", "$ref" : "#/definitions/SigMFFileInputReport" }, "soapySDRInputReport" : { + "description" : "Soapy sdr input report data for Device.", "$ref" : "#/definitions/SoapySDRReport" }, "soapySDROutputReport" : { + "description" : "Soapy sdr output report data for Device.", "$ref" : "#/definitions/SoapySDRReport" }, "usrpInputReport" : { + "description" : "Usrp input report data for Device.", "$ref" : "#/definitions/USRPInputReport" }, "usrpOutputReport" : { + "description" : "Usrp output report data for Device.", "$ref" : "#/definitions/USRPOutputReport" }, "xtrxInputReport" : { + "description" : "Xtrx input report data for Device.", "$ref" : "#/definitions/XtrxInputReport" }, "xtrxOutputReport" : { + "description" : "Xtrx output report data for Device.", "$ref" : "#/definitions/XtrxOutputReport" }, "xtrxMIMOReport" : { + "description" : "Xtrx MIMO report data for Device.", "$ref" : "#/definitions/XtrxMIMOReport" }, "AaroniaRTSAReport" : { + "description" : "Aaronia rtsa report data for Device.", "$ref" : "#/definitions/AaroniaRTSAReport" }, "aaroniaRTSAOutputReport" : { + "description" : "Aaronia rtsa output report data for Device.", "$ref" : "#/definitions/AaroniaRTSAOutputReport" } }, @@ -6022,151 +7759,200 @@ margin-bottom: 20px; }, "direction" : { "type" : "integer", - "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)" + "description" : "0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)", + "minimum" : 0, + "maximum" : 2 }, "originatorIndex" : { "type" : "integer", "description" : "Optional for reverse API. This is the device set index from where the message comes from." }, "airspySettings" : { + "description" : "Airspy settings configuration for Device.", "$ref" : "#/definitions/AirspySettings" }, "airspyHFSettings" : { + "description" : "Airspy hf settings configuration for Device.", "$ref" : "#/definitions/AirspyHFSettings" }, "androidSDRDriverInputSettings" : { + "description" : "Android sdr driver input settings configuration for Device.", "$ref" : "#/definitions/AndroidSDRDriverInputSettings" }, "audioCATSISOSettings" : { + "description" : "Audio catsiso settings configuration for Device.", "$ref" : "#/definitions/AudioCATSISOSettings" }, "audioInputSettings" : { + "description" : "Audio input settings configuration for Device.", "$ref" : "#/definitions/AudioInputSettings" }, "audioOutputSettings" : { + "description" : "Audio output settings configuration for Device.", "$ref" : "#/definitions/AudioOutputSettings" }, "bladeRF1InputSettings" : { + "description" : "Blade rf1 input settings configuration for Device.", "$ref" : "#/definitions/BladeRF1InputSettings" }, "bladeRF2InputSettings" : { + "description" : "Blade rf2 input settings configuration for Device.", "$ref" : "#/definitions/BladeRF2InputSettings" }, "bladeRF1OutputSettings" : { + "description" : "Blade rf1 output settings configuration for Device.", "$ref" : "#/definitions/BladeRF1OutputSettings" }, "bladeRF2OutputSettings" : { + "description" : "Blade rf2 output settings configuration for Device.", "$ref" : "#/definitions/BladeRF2OutputSettings" }, "bladeRF2MIMOSettings" : { + "description" : "Blade rf2 MIMO settings configuration for Device.", "$ref" : "#/definitions/BladeRF2MIMOSettings" }, "fcdProSettings" : { + "description" : "Fcd pro settings configuration for Device.", "$ref" : "#/definitions/FCDProSettings" }, "fcdProPlusSettings" : { + "description" : "Fcd pro plus settings configuration for Device.", "$ref" : "#/definitions/FCDProPlusSettings" }, "fileInputSettings" : { + "description" : "File input settings configuration for Device.", "$ref" : "#/definitions/FileInputSettings" }, "fileOutputSettings" : { + "description" : "File output settings configuration for Device.", "$ref" : "#/definitions/FileOutputSettings" }, "hackRFInputSettings" : { + "description" : "Hack RF input settings configuration for Device.", "$ref" : "#/definitions/HackRFInputSettings" }, "hackRFOutputSettings" : { + "description" : "Hack RF output settings configuration for Device.", "$ref" : "#/definitions/HackRFOutputSettings" }, "kiwiSDRSettings" : { + "description" : "Kiwi sdr settings configuration for Device.", "$ref" : "#/definitions/KiwiSDRSettings" }, "limeSdrInputSettings" : { + "description" : "Lime sdr input settings configuration for Device.", "$ref" : "#/definitions/LimeSdrInputSettings" }, "limeSdrOutputSettings" : { + "description" : "Lime sdr output settings configuration for Device.", "$ref" : "#/definitions/LimeSdrOutputSettings" }, "limeSdrMIMOSettings" : { + "description" : "Lime sdr MIMO settings configuration for Device.", "$ref" : "#/definitions/LimeSdrMIMOSettings" }, "localInputSettings" : { + "description" : "Local input settings configuration for Device.", "$ref" : "#/definitions/LocalInputSettings" }, "localOutputSettings" : { + "description" : "Local output settings configuration for Device.", "$ref" : "#/definitions/LocalOutputSettings" }, "metisMISOSettings" : { + "description" : "Metis miso settings configuration for Device.", "$ref" : "#/definitions/MetisMISOSettings" }, "perseusSettings" : { + "description" : "Perseus settings configuration for Device.", "$ref" : "#/definitions/PerseusSettings" }, "plutoSdrInputSettings" : { + "description" : "Pluto sdr input settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrInputSettings" }, "plutoSdrOutputSettings" : { + "description" : "Pluto sdr output settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrOutputSettings" }, "plutoSdrMIMOSettings" : { + "description" : "Pluto sdr MIMO settings configuration for Device.", "$ref" : "#/definitions/PlutoSdrMIMOSettings" }, "rtlSdrSettings" : { + "description" : "Rtl sdr settings configuration for Device.", "$ref" : "#/definitions/RtlSdrSettings" }, "remoteOutputSettings" : { + "description" : "Remote output settings configuration for Device.", "$ref" : "#/definitions/RemoteOutputSettings" }, "remoteInputSettings" : { + "description" : "Remote input settings configuration for Device.", "$ref" : "#/definitions/RemoteInputSettings" }, "remoteTCPInputSettings" : { + "description" : "Remote TCP input settings configuration for Device.", "$ref" : "#/definitions/RemoteTCPInputSettings" }, "sdrPlaySettings" : { + "description" : "Sdr play settings configuration for Device.", "$ref" : "#/definitions/SDRPlaySettings" }, "sdrPlayV3Settings" : { + "description" : "Sdr play v3 settings configuration for Device.", "$ref" : "#/definitions/SDRPlayV3Settings" }, "sigMFFileInputSettings" : { + "description" : "Sig mf file input settings configuration for Device.", "$ref" : "#/definitions/SigMFFileInputSettings" }, "soapySDRInputSettings" : { + "description" : "Soapy sdr input settings configuration for Device.", "$ref" : "#/definitions/SoapySDRInputSettings" }, "soapySDROutputSettings" : { + "description" : "Soapy sdr output settings configuration for Device.", "$ref" : "#/definitions/SoapySDROutputSettings" }, "testMISettings" : { + "description" : "Test mi settings configuration for Device.", "$ref" : "#/definitions/TestMISettings" }, "testMOSyncSettings" : { + "description" : "Test mo sync settings configuration for Device.", "$ref" : "#/definitions/TestMOSyncSettings" }, "testSourceSettings" : { + "description" : "Test source settings configuration for Device.", "$ref" : "#/definitions/TestSourceSettings" }, "usrpInputSettings" : { + "description" : "Usrp input settings configuration for Device.", "$ref" : "#/definitions/USRPInputSettings" }, "usrpOutputSettings" : { + "description" : "Usrp output settings configuration for Device.", "$ref" : "#/definitions/USRPOutputSettings" }, "xtrxInputSettings" : { + "description" : "Xtrx input settings configuration for Device.", "$ref" : "#/definitions/XtrxInputSettings" }, "xtrxOutputSettings" : { + "description" : "Xtrx output settings configuration for Device.", "$ref" : "#/definitions/XtrxOutputSettings" }, "xtrxMIMOSettings" : { + "description" : "Xtrx MIMO settings configuration for Device.", "$ref" : "#/definitions/XtrxMIMOSettings" }, "aaroniaRTSASettings" : { + "description" : "Aaronia rtsa settings configuration for Device.", "$ref" : "#/definitions/AaroniaRTSASettings" }, "aaroniaRTSAOutputSettings" : { + "description" : "Aaronia rtsa output settings configuration for Device.", "$ref" : "#/definitions/AaroniaRTSAOutputSettings" } }, @@ -6189,7 +7975,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "EndOfTrainDemod" @@ -6198,19 +7985,24 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received packets to specified UDP port" + "description" : "Whether to forward received packets to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -6218,22 +8010,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received packets to" + "description" : "UDP port to forward received packets to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -6241,24 +8044,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -6276,17 +8089,21 @@ margin-bottom: 20px; defs.FCDProPlusSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "rangeLow" : { "type" : "integer", @@ -6302,49 +8119,74 @@ margin-bottom: 20px; }, "biasT" : { "type" : "integer", - "description" : "Bias tee select (1 if selected else 0)" + "description" : "Bias tee select (1 if selected else 0)", + "minimum" : 0, + "maximum" : 1 }, "ifGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Intermediate-frequency gain setting." }, "ifFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if filter index." }, "rfFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rf filter index." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FCDProPlus" @@ -6352,98 +8194,138 @@ margin-bottom: 20px; defs.FCDProSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lnaGainIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna gain index." }, "rfFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rf filter index." }, "lnaEnhanceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna enhance index." }, "bandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected band index." }, "mixerGainIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mixer gain index." }, "mixerFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mixer filter index." }, "biasCurrentIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bias current index." }, "modeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected mode index." }, "gain1Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain1 index." }, "rcFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected rc filter index." }, "gain2Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain2 index." }, "gain3Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain3 index." }, "gain4Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain4 index." }, "ifFilterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if filter index." }, "gain5Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain5 index." }, "gain6Index" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected gain6 index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FCDPro" @@ -6475,7 +8357,8 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FT8Demod" @@ -6484,41 +8367,55 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "filterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected filter index." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "recordWav" : { "type" : "integer", - "description" : "Record received audio as 12000S/s 16 bit .wav file\n * 0 - Do not record\n * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location\n" + "description" : "Record received audio as 12000S/s 16 bit .wav file\n * 0 - Do not record\n * 1 - Record as sdrangel/ft8/save/YYYYMMDD_HHMMSS.wav in writable location\n", + "minimum" : 0, + "maximum" : 1 }, "logMessages" : { "type" : "integer", - "description" : "Log decoded messages in WSJT CALL.TXT format\n * 0 - Do not log messages\n * 1 - Log messages as sdrangel/ft8/logs/YYYYMMDD_call.txt in writable location (daily files)\n" + "description" : "Log decoded messages in WSJT CALL.TXT format\n * 0 - Do not log messages\n * 1 - Log messages as sdrangel/ft8/logs/YYYYMMDD_call.txt in writable location (daily files)\n", + "minimum" : 0, + "maximum" : 1 }, "nbDecoderThreads" : { "type" : "integer", @@ -6531,7 +8428,9 @@ margin-bottom: 20px; }, "useOSD" : { "type" : "integer", - "description" : "Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Use Ordered Statistics Decoding (OSD) to decode messages if some LDPC bits are invalid\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "osdDepth" : { "type" : "integer", @@ -6543,26 +8442,35 @@ margin-bottom: 20px; }, "verifyOSD" : { "type" : "integer", - "description" : "Verify OSD decoded message against a list of validated callsigns\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Verify OSD decoded message against a list of validated callsigns\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "enablePSKReporter" : { "type" : "integer", - "description" : "Enable reporting of decoded messages to PSK Reporter server\n * 0 - Disable\n * 1 - Enable\n" + "description" : "Enable reporting of decoded messages to PSK Reporter server\n * 0 - Disable\n * 1 - Enable\n", + "minimum" : 0, + "maximum" : 1 }, "pskReporterCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter callsign setting for Ft8 demod." }, "pskReporterLocator" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter locator setting for Ft8 demod." }, "pskReporterSoftware" : { - "type" : "string" + "type" : "string", + "description" : "Psk reporter software setting for Ft8 demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -6570,27 +8478,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -6636,48 +8555,67 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the feature index from where the message comes from." }, "AFCActions" : { + "description" : "Afc actions configuration for Feature.", "$ref" : "#/definitions/AFCActions" }, "AMBEActions" : { + "description" : "Ambe actions configuration for Feature.", "$ref" : "#/definitions/AMBEActions" }, "GS232ControllerActions" : { + "description" : "Gs232 controller actions configuration for Feature.", "$ref" : "#/definitions/GS232ControllerActions" }, "LimeRFEActions" : { + "description" : "Lime rfe actions configuration for Feature.", "$ref" : "#/definitions/LimeRFEActions" }, "MapActions" : { + "description" : "Map actions configuration for Feature.", "$ref" : "#/definitions/MapActions" }, "MorseDecoderActions" : { + "description" : "Morse decoder actions configuration for Feature.", "$ref" : "#/definitions/MorseDecoderActions" }, "PERTesterActions" : { + "description" : "Per tester actions configuration for Feature.", "$ref" : "#/definitions/PERTesterActions" }, "RigCtlServerActions" : { + "description" : "Rig ctl server actions configuration for Feature.", "$ref" : "#/definitions/RigCtlServerActions" }, + "MCPServerActions" : { + "description" : "Mcp server actions configuration for Feature.", + "$ref" : "#/definitions/MCPServerActions" + }, "SatelliteTrackerActions" : { + "description" : "Satellite tracker actions configuration for Feature.", "$ref" : "#/definitions/SatelliteTrackerActions" }, "SimplePTTActions" : { + "description" : "Simple ptt actions configuration for Feature.", "$ref" : "#/definitions/SimplePTTActions" }, "SkyMapActions" : { + "description" : "Sky map actions configuration for Feature.", "$ref" : "#/definitions/SkyMapActions" }, "StarTrackerActions" : { + "description" : "Star tracker actions configuration for Feature.", "$ref" : "#/definitions/StarTrackerActions" }, "VORLocalizerActions" : { + "description" : "Vor localizer actions configuration for Feature.", "$ref" : "#/definitions/VORLocalizerActions" }, "DemodAnalyzerActions" : { + "description" : "Demod analyzer actions configuration for Feature.", "$ref" : "#/definitions/DemodAnalyzerActions" }, "DenoiserActions" : { + "description" : "Denoiser actions configuration for Feature.", "$ref" : "#/definitions/DenoiserActions" } }, @@ -6690,6 +8628,7 @@ margin-bottom: 20px; "description" : "Feature type ID in URI form" }, "config" : { + "description" : "Configuration data.", "$ref" : "#/definitions/FeatureSettings" } }, @@ -6789,43 +8728,72 @@ margin-bottom: 20px; "type" : "string", "description" : "Feature type code" }, + "AISReport" : { + "description" : "Ais report data for Feature.", + "$ref" : "#/definitions/AISReport" + }, + "APRSReport" : { + "description" : "Aprs report data for Feature.", + "$ref" : "#/definitions/APRSReport" + }, + "RadiosondeReport" : { + "description" : "Radiosonde report data for Feature.", + "$ref" : "#/definitions/RadiosondeReport" + }, "AFCReport" : { + "description" : "Afc report data for Feature.", "$ref" : "#/definitions/AFCReport" }, "AMBEReport" : { + "description" : "Ambe report data for Feature.", "$ref" : "#/definitions/AMBEReport" }, "FreqDisplayReport" : { + "description" : "Freq display report data for Feature.", "$ref" : "#/definitions/FreqDisplayReport" }, "GS232ControllerReport" : { + "description" : "Gs232 controller report data for Feature.", "$ref" : "#/definitions/GS232ControllerReport" }, "LimeRFEReport" : { + "description" : "Lime rfe report data for Feature.", "$ref" : "#/definitions/LimeRFEReport" }, "MapReport" : { + "description" : "Map report data for Feature.", "$ref" : "#/definitions/MapReport" }, "PERTesterReport" : { + "description" : "Per tester report data for Feature.", "$ref" : "#/definitions/PERTesterReport" }, "RigCtlServerReport" : { + "description" : "Rig ctl server report data for Feature.", "$ref" : "#/definitions/RigCtlServerReport" }, + "MCPServerReport" : { + "description" : "Mcp server report data for Feature.", + "$ref" : "#/definitions/MCPServerReport" + }, "SatelliteTrackerReport" : { + "description" : "Satellite tracker report data for Feature.", "$ref" : "#/definitions/SatelliteTrackerReport" }, "SimplePTTReport" : { + "description" : "Simple ptt report data for Feature.", "$ref" : "#/definitions/SimplePTTReport" }, "SkyMapReport" : { + "description" : "Sky map report data for Feature.", "$ref" : "#/definitions/SkyMapReport" }, "StarTrackerReport" : { + "description" : "Star tracker report data for Feature.", "$ref" : "#/definitions/StarTrackerReport" }, "VORLocalizerReport" : { + "description" : "Vor localizer report data for Feature.", "$ref" : "#/definitions/VORLocalizerReport" } }, @@ -6851,13 +8819,16 @@ margin-bottom: 20px; defs.FeatureSetPreset = { "properties" : { "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Feature set preset." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "featureConfigs" : { "type" : "array", + "description" : "List of feature configs.", "items" : { "$ref" : "#/definitions/FeatureConfig" } @@ -6882,69 +8853,95 @@ margin-bottom: 20px; "description" : "Optional for reverse API. This is the feature index from where the message comes from." }, "AFCSettings" : { + "description" : "Afc settings configuration for Feature.", "$ref" : "#/definitions/AFCSettings" }, "AISSettings" : { + "description" : "AIS settings configuration for Feature.", "$ref" : "#/definitions/AISSettings" }, "AMBESettings" : { + "description" : "Ambe settings configuration for Feature.", "$ref" : "#/definitions/AMBESettings" }, "AntennaToolsSettings" : { + "description" : "Antenna tools settings configuration for Feature.", "$ref" : "#/definitions/AntennaToolsSettings" }, "APRSSettings" : { + "description" : "Aprs settings configuration for Feature.", "$ref" : "#/definitions/APRSSettings" }, "DemodAnalyzerSettings" : { + "description" : "Demod analyzer settings configuration for Feature.", "$ref" : "#/definitions/DemodAnalyzerSettings" }, "DenoiserSettings" : { + "description" : "Denoiser settings configuration for Feature.", "$ref" : "#/definitions/DenoiserSettings" }, "JogdialControllerSettings" : { + "description" : "Jogdial controller settings configuration for Feature.", "$ref" : "#/definitions/JogdialControllerSettings" }, "FreqDisplaySettings" : { + "description" : "Freq display settings configuration for Feature.", "$ref" : "#/definitions/FreqDisplaySettings" }, "GS232ControllerSettings" : { + "description" : "Gs232 controller settings configuration for Feature.", "$ref" : "#/definitions/GS232ControllerSettings" }, "LimeRFESettings" : { + "description" : "Lime rfe settings configuration for Feature.", "$ref" : "#/definitions/LimeRFESettings" }, "MapSettings" : { + "description" : "Map settings configuration for Feature.", "$ref" : "#/definitions/MapSettings" }, "MorseDecoderSettings" : { + "description" : "Morse decoder settings configuration for Feature.", "$ref" : "#/definitions/MorseDecoderSettings" }, "PERTesterSettings" : { + "description" : "Per tester settings configuration for Feature.", "$ref" : "#/definitions/PERTesterSettings" }, "RadiosondeSettings" : { + "description" : "Radiosonde settings configuration for Feature.", "$ref" : "#/definitions/RadiosondeSettings" }, "RigCtlServerSettings" : { + "description" : "Rig ctl server settings configuration for Feature.", "$ref" : "#/definitions/RigCtlServerSettings" }, + "MCPServerSettings" : { + "description" : "Mcp server settings configuration for Feature.", + "$ref" : "#/definitions/MCPServerSettings" + }, "SatelliteTrackerSettings" : { + "description" : "Satellite tracker settings configuration for Feature.", "$ref" : "#/definitions/SatelliteTrackerSettings" }, "SIDSettings" : { + "description" : "Sid settings configuration for Feature.", "$ref" : "#/definitions/SIDSettings" }, "SimplePTTSettings" : { + "description" : "Simple ptt settings configuration for Feature.", "$ref" : "#/definitions/SimplePTTSettings" }, "SkyMapSettings" : { + "description" : "Sky map settings configuration for Feature.", "$ref" : "#/definitions/SkyMapSettings" }, "StarTrackerSettings" : { + "description" : "Star tracker settings configuration for Feature.", "$ref" : "#/definitions/StarTrackerSettings" }, "VORLocalizerSettings" : { + "description" : "Vor localizer settings configuration for Feature.", "$ref" : "#/definitions/VORLocalizerSettings" } }, @@ -6953,7 +8950,8 @@ margin-bottom: 20px; defs.FileInputReport = { "properties" : { "fileName" : { - "type" : "string" + "type" : "string", + "description" : "File name or path." }, "sampleRate" : { "type" : "integer", @@ -6981,7 +8979,8 @@ margin-bottom: 20px; defs.FileInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -6997,16 +8996,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FileInput" @@ -7014,7 +9020,8 @@ margin-bottom: 20px; defs.FileOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -7022,27 +9029,37 @@ margin-bottom: 20px; }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Sample rate in samples per second." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "FileInput" @@ -7061,7 +9078,9 @@ margin-bottom: 20px; "properties" : { "record" : { "type" : "integer", - "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n" + "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "FileSink" @@ -7070,7 +9089,9 @@ margin-bottom: 20px; "properties" : { "spectrumSquelch" : { "type" : "integer", - "description" : "Spectrum squelch status * 0 - closed * 1 - open\n" + "description" : "Spectrum squelch status * 0 - closed * 1 - open\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumMax" : { "type" : "number", @@ -7078,14 +9099,18 @@ margin-bottom: 20px; "description" : "Current spectrum max in squared magnitude (power)" }, "sinkSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate accepted by the sink in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "recording" : { "type" : "integer", - "description" : "Recording status * 0 - not recording * 1 - recording\n" + "description" : "Recording status * 0 - not recording * 1 - recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordTimeMs" : { "type" : "integer", @@ -7106,24 +9131,30 @@ margin-bottom: 20px; defs.FileSinkSettings = { "properties" : { "inputFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fileRecordName" : { "type" : "string", "description" : "full path of the reference file" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "spectrumSquelchMode" : { "type" : "integer", - "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n" + "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumSquelch" : { "type" : "number", @@ -7140,7 +9171,9 @@ margin-bottom: 20px; }, "squelchRecordingEnable" : { "type" : "integer", - "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n" + "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -7148,27 +9181,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7178,7 +9222,9 @@ margin-bottom: 20px; "properties" : { "play" : { "type" : "integer", - "description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n" + "description" : "Play or Pause stream\n * 0 - Pause\n * 1 - Play\n", + "minimum" : 0, + "maximum" : 1 }, "seekMillis" : { "type" : "integer", @@ -7190,7 +9236,8 @@ margin-bottom: 20px; defs.FileSourceReport = { "properties" : { "fileName" : { - "type" : "string" + "type" : "string", + "description" : "File name or path." }, "fileSampleRate" : { "type" : "integer", @@ -7235,19 +9282,24 @@ margin-bottom: 20px; "description" : "1 if playing in a loop else 0" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "gainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain dB in dB." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -7255,24 +9307,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7290,10 +9352,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreeDVDemod" @@ -7302,7 +9366,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "volume" : { "type" : "number", @@ -7315,27 +9380,36 @@ margin-bottom: 20px; "description" : "Modem input volume" }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "freeDVMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Free dv mode setting for Free dv demod." }, "streamIndex" : { "type" : "integer", @@ -7343,27 +9417,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7377,10 +9462,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreeDVMod" @@ -7389,42 +9476,58 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Free dv mod." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "freeDVMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Free dv mode setting for Free dv mod." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "gaugeInputElseModem" : { - "type" : "integer" + "type" : "integer", + "description" : "Gauge input else modem setting for Free dv mod." }, "streamIndex" : { "type" : "integer", @@ -7432,30 +9535,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7483,63 +9598,87 @@ margin-bottom: 20px; "description" : "Channel to display frequency/power for" }, "fontName" : { - "type" : "string" + "type" : "string", + "description" : "Font name setting for Freq display." }, "transparentBackground" : { - "type" : "integer" + "type" : "integer", + "description" : "Transparent background setting for Freq display." }, "displayMode" : { "type" : "integer", "description" : "(0 Frequency, 1 Power, 2 Frequency and Power)" }, "speechEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable speech (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "frequencyUnits" : { "type" : "integer", "description" : "(0 Hz, 1 kHz, 2 MHz, 3 GHz)" }, "showUnits" : { - "type" : "integer" + "type" : "integer", + "description" : "Show units setting for Freq display." }, "freqDecimalPlaces" : { - "type" : "integer" + "type" : "integer", + "description" : "Freq decimal places setting for Freq display." }, "powerDecimalPlaces" : { - "type" : "integer" + "type" : "integer", + "description" : "Power decimal places setting for Freq display." }, "textcolor" : { - "type" : "integer" + "type" : "integer", + "description" : "Textcolor setting for Freq display." }, "dropShadowEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable drop shadow (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "dropShadowColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Drop shadow color encoded as an integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7549,7 +9688,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Frequency Scanner actions" @@ -7571,32 +9712,40 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency to scan, in Hz.\n" }, "enabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Whether this frequency takes part in the scan (1 to scan it, 0 to skip it).\n" }, "notes" : { - "type" : "string" + "type" : "string", + "description" : "Free text note about this frequency, such as the station or service name.\n" }, "channel" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide channel for this frequency only, as a device set and channel index such as \"R1:0\". Empty to use the scanner's own channel setting.\n" }, "channelBandwidth" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide channel bandwidth in Hz for this frequency only. Empty to use the scanner's own setting.\n" }, "threshold" : { - "type" : "string" + "type" : "string", + "description" : "Overrides the scanner-wide power threshold in dB for this frequency only. Empty to use the scanner's own setting.\n" }, "squelch" : { - "type" : "string" + "type" : "string", + "description" : "Squelch threshold in dB to apply to the tuned channel when this frequency becomes active. Empty to leave the channel's own squelch alone.\n" } } }; defs.FreqScannerReport = { "properties" : { "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "scanState" : { "type" : "integer", @@ -7604,6 +9753,7 @@ margin-bottom: 20px; }, "channelState" : { "type" : "array", + "description" : "List of channel state.", "items" : { "$ref" : "#/definitions/FreqScannerChannelState" } @@ -7615,55 +9765,66 @@ margin-bottom: 20px; "properties" : { "channelBandwidth" : { "type" : "integer", - "description" : "channel RF bandwidth in Hz" + "description" : "Bandwidth in Hz of each scanned channel.\n" }, "channelShift" : { "type" : "integer", - "description" : "controlled channel frequency shift in Hz" + "description" : "Frequency shift in Hz applied to the tuned channel from the scanned frequency, for modes such as SSB or CW where the signal sits on one side of centre.\n" }, "channelFrequencyOffset" : { "type" : "integer", - "description" : "channel center frequency shift from baseband center in Hz" + "description" : "Minimum frequency shift in Hz of the tuned channel from the centre of reception, used to keep it clear of a DC spike.\n" }, "threshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power threshold in dB above which a scanned frequency counts as active.\n" }, "frequencies" : { "type" : "array", + "description" : "List of frequencies.", "items" : { "$ref" : "#/definitions/FreqScannerFrequency" } }, "channel" : { - "type" : "string" + "type" : "string", + "description" : "Channel that is tuned to the active frequency, as a device set and channel index, for example \"R1:0\" for channel 0 of receive device set 1.\n" }, "scanTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in seconds that each power measurement is averaged over.\n" }, "retransmitTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in seconds to wait after the power on the active frequency falls below the threshold before scanning restarts. In multiplex mode this is instead the time spent listening to each frequency.\n" }, "tuneTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Time in milliseconds to wait after retuning the device before measuring, to allow for PLL settling and device to host transfer latency.\n" }, "priority" : { - "type" : "integer" + "type" : "integer", + "description" : "Which frequency becomes active when several are above the threshold\n * 0 - the one with the highest power\n * 1 - the one earliest in the frequency list\n" }, "measurement" : { - "type" : "integer" + "type" : "integer", + "description" : "How channel power is measured from the FFT bins\n * 0 - peak, the highest bin\n * 1 - total, the sum of every bin\n" }, "mode" : { - "type" : "integer" + "type" : "integer", + "description" : "Run mode\n * 0 - single, scan every frequency once and stop\n * 1 - continuous, rescan when the active frequency goes quiet\n * 2 - scan only, measure repeatedly without ever tuning the channel\n * 3 - multiplex, step through the frequencies listening to each in turn\n" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -7671,24 +9832,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7710,10 +9881,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "FreqTracker" @@ -7731,7 +9904,10 @@ margin-bottom: 20px; "description" : "channel RF bandwidth in Hz (floors to next 100 Hz)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "squelch" : { "type" : "number", @@ -7739,13 +9915,16 @@ margin-bottom: 20px; "description" : "power squelch threshold in decibels" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "alphaEMA" : { "type" : "number", @@ -7754,7 +9933,9 @@ margin-bottom: 20px; }, "tracking" : { "type" : "integer", - "description" : "Tracking 1 for enabled 0 for disabled" + "description" : "Tracking 1 for enabled 0 for disabled", + "minimum" : 0, + "maximum" : 1 }, "trackerType" : { "type" : "integer", @@ -7766,7 +9947,9 @@ margin-bottom: 20px; }, "rrc" : { "type" : "integer", - "description" : "RRC filter (1 for on, 0 for off)" + "description" : "RRC filter (1 for on, 0 for off)", + "minimum" : 0, + "maximum" : 1 }, "rrcRolloff" : { "type" : "integer", @@ -7782,27 +9965,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -7811,7 +10005,8 @@ margin-bottom: 20px; defs.Frequency = { "properties" : { "frequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency in Hz." } }, "description" : "A frequency expressed in Hertz (Hz)" @@ -7819,13 +10014,16 @@ margin-bottom: 20px; defs.FrequencyBand = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "lowerBound" : { - "type" : "integer" + "type" : "integer", + "description" : "Inclusive lower bound of the range." }, "higherBound" : { - "type" : "integer" + "type" : "integer", + "description" : "Inclusive upper bound of the range." } }, "description" : "A band of frequencies given its boundaries in Hertz (Hz)" @@ -7834,18 +10032,22 @@ margin-bottom: 20px; "properties" : { "min" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Minimum value of the range." }, "max" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Maximum value of the range." }, "step" : { - "type" : "integer" + "type" : "integer", + "description" : "Increment between adjacent supported values." }, "scale" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Scale factor applied to the value." } }, "description" : "A frequency range with 64 bit support for min and max" @@ -7854,35 +10056,44 @@ margin-bottom: 20px; "properties" : { "displayMode" : { "type" : "integer", - "description" : "see GLScopeSettings::DisplayMode" + "description" : "Arrangement of the two traces on the scope\n * 0 - X and Y side by side horizontally\n * 1 - X and Y stacked vertically\n * 2 - X only\n * 3 - Y only\n * 4 - polar, Y against X\n", + "minimum" : 0, + "maximum" : 4 }, "traceIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Trace intensity for Gl scope." }, "gridIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Grid intensity for Gl scope." }, "time" : { - "type" : "integer" + "type" : "integer", + "description" : "Time for Gl scope." }, "timeOfs" : { - "type" : "integer" + "type" : "integer", + "description" : "Time ofs for Gl scope." }, "traceLenMult" : { "type" : "integer", "description" : "Trace length multiplier (multiplies 4800 samples)" }, "trigPre" : { - "type" : "integer" + "type" : "integer", + "description" : "Trig pre for Gl scope." }, "tracesData" : { "type" : "array", + "description" : "List of traces data.", "items" : { "$ref" : "#/definitions/TraceData" } }, "triggersData" : { "type" : "array", + "description" : "List of triggers data.", "items" : { "$ref" : "#/definitions/TriggerData" } @@ -7893,22 +10104,28 @@ margin-bottom: 20px; defs.GLSpectrum = { "properties" : { "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftOverlap" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT overlap for Gl spectrum." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "refLevel" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ref level for Gl spectrum." }, "powerRange" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power range for Gl spectrum." }, "fpsPeriodMs" : { "type" : "integer", @@ -7916,69 +10133,270 @@ margin-bottom: 20px; }, "displayWaterfall" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 + }, + "display3DSpectrogram" : { + "type" : "integer", + "description" : "Display the 3D spectrogram instead of the 2D waterfall (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "spectrogramStyle" : { + "type" : "integer", + "description" : "Rendering style for the 3D spectrogram.\n * 0 - Points\n * 1 - Lines\n * 2 - Solid\n * 3 - Outline\n * 4 - Shaded (requires OpenGL 3.3 or later)\n", + "minimum" : 0, + "maximum" : 4 + }, + "truncateFreqScale" : { + "type" : "integer", + "description" : "Truncate the frequency scale to the displayed span (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "colorMap" : { + "type" : "string", + "description" : "Colour-map name used for waterfall, 3D spectrogram rendering and spectrum colour gradient." + }, + "spectrumStyle" : { + "type" : "integer", + "description" : "Current spectrum trace style: 0 line, 1 filled solid colour, 2 filled colour gradient.", + "minimum" : 0, + "maximum" : 2 + }, + "measurement" : { + "type" : "integer", + "description" : "Measurement mode: 0 none, 1 peaks, 2 channel power, 3 adjacent-channel power, 4 occupied bandwidth, 5 3 dB bandwidth, 6 SNR, 7 mask.", + "minimum" : 0, + "maximum" : 7 + }, + "measurementCenterFrequencyOffset" : { + "type" : "integer", + "description" : "Measurement centre-frequency offset in Hz." + }, + "measurementBandwidth" : { + "type" : "integer", + "description" : "Measurement bandwidth in Hz.", + "minimum" : 0 + }, + "measurementChSpacing" : { + "type" : "integer", + "description" : "Adjacent-channel measurement channel spacing in Hz.", + "minimum" : 0 + }, + "measurementAdjChBandwidth" : { + "type" : "integer", + "description" : "Adjacent-channel measurement bandwidth in Hz.", + "minimum" : 0 + }, + "measurementHarmonics" : { + "type" : "integer", + "description" : "Number of harmonics to measure.", + "minimum" : 0 + }, + "measurementPeaks" : { + "type" : "integer", + "description" : "Number of peaks to report.", + "minimum" : 0 + }, + "measurementHighlight" : { + "type" : "integer", + "description" : "Highlight the selected measurement (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "measurementsPosition" : { + "type" : "integer", + "description" : "Measurement panel position: 0 above, 1 below, 2 left, 3 right.", + "minimum" : 0, + "maximum" : 3 + }, + "measurementPrecision" : { + "type" : "integer", + "description" : "Decimal precision for measurement values.", + "minimum" : 0 + }, + "findHistogramPeaks" : { + "type" : "integer", + "description" : "Find peaks in the spectrum histogram (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "showControls" : { + "type" : "integer", + "description" : "Spectrum control visibility: 0 minimum, 1 standard, 2 all.", + "minimum" : 0, + "maximum" : 2 + }, + "frequencyZoomFactor" : { + "type" : "number", + "format" : "float", + "description" : "Horizontal frequency zoom factor.", + "minimum" : 1 + }, + "frequencyZoomPos" : { + "type" : "number", + "format" : "float", + "description" : "Horizontal frequency-zoom position as a fraction of the span.", + "minimum" : 0, + "maximum" : 1 + }, + "waterfallTimeUnits" : { + "type" : "integer", + "description" : "Waterfall time axis: 0 offset, 1 local time, 2 UTC.", + "minimum" : 0, + "maximum" : 2 + }, + "waterfallTimeFormat" : { + "type" : "string", + "description" : "Qt date/time format used for the waterfall time axis." + }, + "scrollBar" : { + "type" : "integer", + "description" : "Enable waterfall/3D spectrogram scrolling (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "scrollLength" : { + "type" : "integer", + "description" : "Maximum waterfall/3D spectrogram history length.", + "minimum" : 1 + }, + "mathMode" : { + "type" : "integer", + "description" : "Spectrum math mode: 0 none, 1-4 moving-average modes, 5-10 saved-memory comparison modes.", + "minimum" : 0, + "maximum" : 10 + }, + "mathAvgCount" : { + "type" : "integer", + "description" : "Number of FFT frames used by spectrum math averaging.", + "minimum" : 1 + }, + "measurementMemMasks" : { + "type" : "integer", + "description" : "Bitmask selecting saved spectrum memories used as measurement masks.", + "minimum" : 0, + "maximum" : 3 + }, + "displayRBW" : { + "type" : "integer", + "description" : "Display resolution bandwidth (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "displayCursorStats" : { + "type" : "integer", + "description" : "Display cursor statistics (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "displayPeakStats" : { + "type" : "integer", + "description" : "Display peak statistics (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "spectrumMemory" : { + "type" : "array", + "description" : "Display settings for the two saved spectrum memories.", + "items" : { + "$ref" : "#/definitions/SpectrumMemorySettings" + } + }, + "spectrumColor" : { + "type" : "integer", + "description" : "Current spectrum trace colour encoded as an RGB integer." }, "invertedWaterfall" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayMaxHold" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayHistogram" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "decay" : { - "type" : "integer" + "type" : "integer", + "description" : "Decay for Gl spectrum." }, "displayGrid" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayGridIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Display grid intensity for Gl spectrum." }, "decayDivisor" : { - "type" : "integer" + "type" : "integer", + "description" : "Decay divisor for Gl spectrum." }, "histogramStroke" : { - "type" : "integer" + "type" : "integer", + "description" : "Histogram stroke for Gl spectrum." }, "displayCurrent" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "displayTraceIntensity" : { - "type" : "integer" + "type" : "integer", + "description" : "Display trace intensity for Gl spectrum." }, "waterfallShare" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Waterfall share for Gl spectrum." }, "averagingMode" : { "type" : "integer", - "description" : "See GLSpectrumGUI::AveragingMode" + "description" : "How successive FFTs are averaged. Selecting a mode does nothing on its own: the number of FFTs it works over is averagingValue, which must be above 1 for any smoothing to happen.\n * 0 - no averaging\n * 1 - moving average\n * 2 - fixed average over each block\n * 3 - maximum held over each block\n * 4 - minimum held over each block\n", + "minimum" : 0, + "maximum" : 4 }, "averagingValue" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of successive FFTs the averaging mode works over. 1 is no averaging whatever the mode. Only 1, 2, 5, 10, 20, 50, 100 and so on are available and anything else is rounded down to one of them. 10 smooths a noisy trace without hiding short signals; 50 or more is for measuring a noise floor.\n" }, "linear" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "ssb" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "usb" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "wsSpectrum" : { "type" : "integer", - "description" : "Boolean - Start or stop websocket server\n * 0 - Stop server\n * 1 - Start server\n" + "description" : "Boolean - Start or stop websocket server\n * 0 - Stop server\n * 1 - Start server\n", + "minimum" : 0, + "maximum" : 1 }, "wsSpectrumAddress" : { "type" : "string", @@ -7990,48 +10408,310 @@ margin-bottom: 20px; }, "markersDisplay" : { "type" : "integer", - "description" : "Display markers (SpectrumSettings::MarkersDisplay)\n * 0 - Mome\n * 1 - Spectrum markers (histogram and waterfall)\n * 2 - Spectrum annotation markers\n" + "description" : "Display markers (SpectrumSettings::MarkersDisplay)\n * 0 - Mome\n * 1 - Spectrum markers (histogram and waterfall)\n * 2 - Spectrum annotation markers\n", + "minimum" : 0, + "maximum" : 2 }, "useCalibration" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "calibrationInterpMode" : { "type" : "integer", - "description" : "Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode\n * 0 - Linear\n * 1 - Log (dB linear)\n" + "description" : "Interpolation scheme between points SpectrumSettings::CalibrationInterpolationMode\n * 0 - Linear\n * 1 - Log (dB linear)\n", + "minimum" : 0, + "maximum" : 1 }, "histogramMarkers" : { "type" : "array", + "description" : "List of histogram markers.", "items" : { "$ref" : "#/definitions/SpectrumHistogramMarker" } }, "waterfallMarkers" : { "type" : "array", + "description" : "List of waterfall markers.", "items" : { "$ref" : "#/definitions/SpectrumWaterfallMarker" } }, + "annotationMarkersMode" : { + "type" : "integer", + "description" : "How annotationMarkers in the same request is applied. Replacing is what a PATCH of an array means and is what the other marker lists do, but it discards annotations already there, such as a loaded band plan. Append adds to them instead, so a caller adding one annotation need not read the list, modify it and write it back.\n * 0 - Replace the annotations with those given (the default)\n * 1 - Append those given to the annotations already there\n", + "minimum" : 0, + "maximum" : 1 + }, "annotationMarkers" : { "type" : "array", + "description" : "List of annotation markers.", "items" : { "$ref" : "#/definitions/SpectrumAnnotationMarker" } }, "calibrationPoints" : { "type" : "array", + "description" : "List of calibration points.", "items" : { "$ref" : "#/definitions/SpectrumCalibrationPoint" } } }, "description" : "GLSpectrumGUI settings" +}; + defs.GLSpectrumData = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the whole spectrum in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "fftSize" : { + "type" : "integer", + "description" : "Number of bins the spectrum was computed with, before reduction." + }, + "linear" : { + "type" : "integer", + "description" : "1 when the powers are linear, 0 when they are in dB.", + "minimum" : 0, + "maximum" : 1 + }, + "updated" : { + "type" : "string", + "description" : "When the spectrum was last computed, ISO 8601. Absent if it never has been." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "number", + "format" : "float", + "description" : "Width of each returned bin in Hz, after reduction." + }, + "bins" : { + "type" : "integer", + "description" : "Number of values in power." + }, + "reduce" : { + "type" : "string", + "description" : "How several FFT bins were combined into each returned one, max or mean. Max keeps a narrow carrier that averaging would bury in its neighbours, which is why it is the default.\n" + }, + "power" : { + "type" : "array", + "description" : "The reduced powers, first bin first.", + "items" : { + "type" : "number", + "format" : "float" + } + } + }, + "description" : "A copy of the current power spectrum, reduced to the number of bins asked for so that the answer stays a sensible size whatever the FFT size. The spectrum is only computed while something is consuming it, a spectrum window or a websocket client, so updated says how old these values are and is absent if none has been produced yet.\n" +}; + defs.GLSpectrumHistory = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "integer", + "description" : "Width of each returned bin in Hz." + }, + "bins" : { + "type" : "integer" + }, + "rows" : { + "type" : "integer", + "description" : "Rows of history used." + }, + "skippedRows" : { + "type" : "integer", + "description" : "Rows in the period that were taken with the device tuned or sampling differently, and left out." + }, + "firstTime" : { + "type" : "string", + "description" : "Time of the oldest row used, ISO 8601." + }, + "lastTime" : { + "type" : "string", + "description" : "Time of the newest row used, ISO 8601." + }, + "seconds" : { + "type" : "number", + "format" : "float", + "description" : "Span between the oldest and newest rows used." + }, + "floorDb" : { + "type" : "number", + "format" : "float", + "description" : "The measured noise floor." + }, + "thresholdDb" : { + "type" : "number", + "format" : "float", + "description" : "The level above which a bin counts as occupied." + }, + "maxDb" : { + "type" : "array", + "description" : "Per bin maximum over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "meanDb" : { + "type" : "array", + "description" : "Per bin mean over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "occupancy" : { + "type" : "array", + "description" : "Per bin fraction of rows in which the bin was above the threshold, 0 to 1.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "signalCount" : { + "type" : "integer" + }, + "signalList" : { + "type" : "array", + "description" : "Runs of adjacent bins whose maximum rose above the threshold.", + "items" : { + "$ref" : "#/definitions/SpectrumHistorySignal" + } + } + }, + "description" : "Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted.\n" +}; + defs.GLSpectrumReport = { + "properties" : { + "measurement" : { + "type" : "integer", + "description" : "Which measurement produced these values.\n * 0 - None, nothing is being measured\n * 1 - Peaks\n * 2 - Channel power\n * 3 - Adjacent channel power\n * 4 - Occupied bandwidth\n * 5 - 3 dB bandwidth\n * 6 - SNR\n" + }, + "updated" : { + "type" : "string", + "description" : "When these values were last measured, ISO 8601. Absent until the first measurement." + }, + "peaks" : { + "type" : "array", + "description" : "The strongest peaks, most powerful first. Peaks measurement only.", + "items" : { + "$ref" : "#/definitions/SpectrumPeak" + } + }, + "channelPower" : { + "type" : "number", + "format" : "float", + "description" : "Total power in the measurement bandwidth in dB. Channel power measurement only." + }, + "adjChannelPowerLeft" : { + "type" : "number", + "format" : "float", + "description" : "Power in the lower adjacent channel in dB." + }, + "adjChannelPowerLeftRatio" : { + "type" : "number", + "format" : "float", + "description" : "Lower adjacent channel power ratio in dB, relative to the centre channel." + }, + "adjChannelPowerCentre" : { + "type" : "number", + "format" : "float", + "description" : "Power in the centre channel in dB." + }, + "adjChannelPowerRight" : { + "type" : "number", + "format" : "float", + "description" : "Power in the upper adjacent channel in dB." + }, + "adjChannelPowerRightRatio" : { + "type" : "number", + "format" : "float", + "description" : "Upper adjacent channel power ratio in dB, relative to the centre channel." + }, + "occupiedBandwidth" : { + "type" : "number", + "format" : "float", + "description" : "Occupied bandwidth in Hz. Occupied bandwidth measurement only." + }, + "bandwidth3dB" : { + "type" : "number", + "format" : "float", + "description" : "3 dB bandwidth in Hz. 3 dB bandwidth measurement only." + }, + "snr" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise ratio in dB. SNR measurement only." + }, + "snfr" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise and distortion free ratio in dB." + }, + "thd" : { + "type" : "number", + "format" : "float", + "description" : "Total harmonic distortion in dB." + }, + "thdPlusNoise" : { + "type" : "number", + "format" : "float", + "description" : "Total harmonic distortion plus noise in dB." + }, + "sinad" : { + "type" : "number", + "format" : "float", + "description" : "Signal to noise and distortion ratio in dB." + }, + "sfdr" : { + "type" : "number", + "format" : "float", + "description" : "Spurious free dynamic range in dB." + } + }, + "description" : "The latest values of whichever spectrum measurement is switched on. Which fields are present depends on the measurement: with none selected nothing is measured at all and only the measurement field is returned. The figures are those of the spectrum as displayed, so they match the window rather than the full span when it is zoomed, and they are only produced by a running GUI.\n" }; defs.GS232ControllerActions = { "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "GS-232 Controller actions" @@ -8040,7 +10720,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "sources" : { "type" : "array", @@ -8113,7 +10795,9 @@ margin-bottom: 20px; }, "track" : { "type" : "integer", - "description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)" + "description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "source" : { "type" : "string", @@ -8172,28 +10856,39 @@ margin-bottom: 20px; "description" : "Input controller sensitivity" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8202,7 +10897,8 @@ margin-bottom: 20px; defs.Gain = { "properties" : { "gainCB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain in centibels (tenths of a decibel)." } }, "description" : "A gain expressed in centi-Bels (tenths of dB)" @@ -8210,69 +10906,102 @@ margin-bottom: 20px; defs.HackRFInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable-gain-amplifier gain setting." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "biasT" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable antenna bias power (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaExt" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA ext setting for Hack RF input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "HackRF" @@ -8280,56 +11009,80 @@ margin-bottom: 20px; defs.HackRFOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "vgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Variable-gain-amplifier gain setting." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "biasT" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable antenna bias power (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaExt" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA ext setting for Hack RF output." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "HackRF" @@ -8342,7 +11095,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "HeatMap" @@ -8351,7 +11105,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", @@ -8360,35 +11115,44 @@ margin-bottom: 20px; }, "minPower" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Min power setting for Heat map." }, "maxPower" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Max power setting for Heat map." }, "colorMapName" : { - "type" : "string" + "type" : "string", + "description" : "Color map name setting for Heat map." }, "mode" : { "type" : "integer", - "description" : "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)" + "description" : "(0 - None, 1 - Average, 2 - Max, 3 - Min, 4 - Pulse Average)", + "minimum" : 0, + "maximum" : 4 }, "pulseThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pulse threshold setting for Heat map." }, "averagePeriodUS" : { "type" : "integer", "description" : "Averaging period in microseconds" }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8396,27 +11160,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8426,7 +11201,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Initialize a transmission cycle\n * 0 - Do nothing\n * 1 - Start transmission cycle\n" + "description" : "Initialize a transmission cycle\n * 0 - Do nothing\n * 1 - Start transmission cycle\n", + "minimum" : 0, + "maximum" : 1 }, "data" : { "type" : "string", @@ -8443,7 +11220,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "IEEE_802_15_4_Mod" @@ -8452,34 +11230,46 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "modulation" : { "type" : "integer", - "description" : "Modulation type\n * 0 - BPSK\n * 1 - OQPSK\n" + "description" : "Modulation type\n * 0 - BPSK\n * 1 - OQPSK\n", + "minimum" : 0, + "maximum" : 1 }, "bitRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Bit rate setting for Ieee 802 15 4 mod." }, "subGHzBand" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Over 1 GHz standard\n * 1 - Under 1 GHz standard\n" + "description" : "Boolean value\n * 0 - Over 1 GHz standard\n * 1 - Under 1 GHz standard\n", + "minimum" : 0, + "maximum" : 1 }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { "type" : "integer", - "description" : "* 0 - Effective transmission * 1 - Transmission is muted\n" + "description" : "* 0 - Effective transmission * 1 - Transmission is muted\n", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { "type" : "integer", - "description" : "Whether to repeated transmit the frame (1 for yes, 0 for no)." + "description" : "Whether to repeated transmit the frame (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", @@ -8491,41 +11281,54 @@ margin-bottom: 20px; "description" : "Number of times to repeat the frame (-1 for infinite)." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for Ieee 802 15 4 mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for Ieee 802 15 4 mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for Ieee 802 15 4 mod." }, "modulateWhileRamping" : { "type" : "integer", - "description" : "Boolean value\n * 0 - do not modulate in ramping phase\n * 1 - modulate in ramping phase\n" + "description" : "Boolean value\n * 0 - do not modulate in ramping phase\n * 1 - modulate in ramping phase\n", + "minimum" : 0, + "maximum" : 1 }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "bbNoise" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not add gaussian noise in baseband\n * 1 - Add gaussian noise in baseband\n" + "description" : "Boolean value\n * 0 - Do not add gaussian noise in baseband\n * 1 - Add gaussian noise in baseband\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not write frames to .csv file\n * 1 - Write frames to .csv file\n" + "description" : "Boolean value\n * 0 - Do not write frames to .csv file\n * 1 - Write frames to .csv file\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Spectrum rate setting for Ieee 802 15 4 mod." }, "data" : { "type" : "string", "description" : "Hex coded bytes of data to transmit, excluding CRC (E.g for an ACK - 02 00 00)" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8533,23 +11336,33 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scramble" : { "type" : "integer", - "description" : "Boolean value\n * 0 - Do not scramble data\n * 1 - Scramble data\n" + "description" : "Boolean value\n * 0 - Do not scramble data\n * 1 - Scramble data\n", + "minimum" : 0, + "maximum" : 1 }, "polynomial" : { "type" : "integer", @@ -8557,7 +11370,9 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Pulse shaping filter\n * 0 - Root Cosime\n * 1 - Sine\n" + "description" : "Pulse shaping filter\n * 0 - Root Cosime\n * 1 - Sine\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", @@ -8565,15 +11380,20 @@ margin-bottom: 20px; "description" : "Pulse shaping filter beta factor" }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Ieee 802 15 4 mod." }, "udpEnabled" : { "type" : "integer", - "description" : "Enable forwarding of frames via UDP" + "description" : "Enable forwarding of frames via UDP", + "minimum" : 0, + "maximum" : 1 }, "udpBytesFormat" : { "type" : "integer", - "description" : "Payload format\n * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a\n * 1 - Raw bytes\n" + "description" : "Payload format\n * 0 - Blank separated string representation of hex bytes i.e. 00 02 0a\n * 1 - Raw bytes\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8581,12 +11401,16 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for frames to transmit on" + "description" : "UDP port to listen for frames to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8600,10 +11424,12 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "ident" : { - "type" : "string" + "type" : "string", + "description" : "Reported ident." }, "deviation" : { "type" : "number", @@ -8637,73 +11463,97 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "mode" : { "type" : "integer", - "description" : "(0 for LOC, 1 for G/S)" + "description" : "(0 for LOC, 1 for G/S)", + "minimum" : 0, + "maximum" : 1 }, "frequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected frequency index." }, "squelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch threshold in dB." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "average" : { - "type" : "integer" + "type" : "integer", + "description" : "Average setting for Ils demod." }, "ddmUnits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ddm units setting for Ils demod." }, "identThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ident threshold setting for Ils demod." }, "ident" : { - "type" : "string" + "type" : "string", + "description" : "Ident setting for Ils demod." }, "runway" : { - "type" : "string" + "type" : "string", + "description" : "Runway setting for Ils demod." }, "trueBearing" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "True bearing setting for Ils demod." }, "latitude" : { - "type" : "string" + "type" : "string", + "description" : "Latitude in degrees, positive north." }, "longitude" : { - "type" : "string" + "type" : "string", + "description" : "Longitude in degrees, positive east." }, "elevation" : { - "type" : "integer" + "type" : "integer", + "description" : "Elevation setting for Ils demod." }, "glidePath" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Glide path setting for Ils demod." }, "refHeight" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Ref height setting for Ils demod." }, "courseWidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Course width setting for Ils demod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward DDM to specified UDP port" + "description" : "Whether to forward DDM to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8711,19 +11561,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward DDM to" + "description" : "UDP port to forward DDM to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8731,27 +11589,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8765,7 +11634,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "InmarsatDemod" @@ -8774,23 +11644,29 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "rrcRolloff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Rrc rolloff setting for Inmarsat demod." }, "pllBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pll bandwidth in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -8798,26 +11674,39 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "udpFormat" : { "type" : "integer", - "description" : "0 for binary, 1 for NMEA" + "description" : "0 for binary, 1 for NMEA", + "minimum" : 0, + "maximum" : 1 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -8825,27 +11714,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -8982,19 +11882,25 @@ margin-bottom: 20px; "properties" : { "correlationType" : { "type" : "integer", - "description" : "see InterferometerSettings::CorrelationType" + "description" : "Operation applied to the two input streams\n * 0 - stream 0 only\n * 1 - stream 1 only\n * 2 - add the streams\n * 3 - multiply the streams\n * 4 - inverse FFT of the cross spectrum\n * 5 - inverse FFT of the conjugate cross spectrum\n * 6 - FFT of the cross spectrum\n * 7 - second form of the inverse FFT correlation\n", + "minimum" : 0, + "maximum" : 7 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "phase" : { "type" : "integer", @@ -9010,34 +11916,48 @@ margin-bottom: 20px; }, "play" : { "type" : "integer", - "description" : "Run correlated IQ samples transfer\n * 0 - stop\n * 1 - run\n" + "description" : "Run correlated IQ samples transfer\n * 0 - stop\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9046,28 +11966,39 @@ margin-bottom: 20px; defs.JogdialControllerSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9077,19 +12008,28 @@ margin-bottom: 20px; "properties" : { "status" : { "type" : "integer", - "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected" + "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected", + "minimum" : 0, + "maximum" : 4 }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Altitude above mean sea level." } }, "description" : "KiwiSDR" @@ -9097,21 +12037,29 @@ margin-bottom: 20px; defs.KiwiSDRSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "useAGC" : { "type" : "integer", - "description" : "AGC active (1 for yes, 0 for no)" + "description" : "AGC active (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "serverAddress" : { "type" : "string", @@ -9119,16 +12067,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "KiwiSDR" @@ -9137,7 +12092,9 @@ margin-bottom: 20px; "properties" : { "selectChannel" : { "type" : "integer", - "description" : "Select channel\n * 0 - Rx\n * 1 - Tx\n" + "description" : "Select channel\n * 0 - Rx\n * 1 - Tx\n", + "minimum" : 0, + "maximum" : 1 }, "deviceSetIndex" : { "type" : "integer", @@ -9145,7 +12102,9 @@ margin-bottom: 20px; }, "switchChannel" : { "type" : "integer", - "description" : "Switch on or off\n * 0 - Off\n * 1 - On\n" + "description" : "Switch on or off\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "getState" : { "type" : "integer", @@ -9153,19 +12112,27 @@ margin-bottom: 20px; }, "fromToSettings" : { "type" : "integer", - "description" : "Move from/to settings to/from device\n * 0 - From device to settings. The toGUI button in GUI mode\n * 1 - From settings to device. The Apply button in GUI mode\n" + "description" : "Move from/to settings to/from device\n * 0 - From device to settings. The toGUI button in GUI mode\n * 1 - From settings to device. The Apply button in GUI mode\n", + "minimum" : 0, + "maximum" : 1 }, "openCloseDevice" : { "type" : "integer", - "description" : "Open or close device\n * 0 - Close device\n * 1 - Open device\n" + "description" : "Open or close device\n * 0 - Close device\n * 1 - Open device\n", + "minimum" : 0, + "maximum" : 1 }, "setRx" : { "type" : "integer", - "description" : "Set Rx om or off\n * 0 - Rx off\n * 1 - Rx on\n" + "description" : "Set Rx om or off\n * 0 - Rx off\n * 1 - Rx on\n", + "minimum" : 0, + "maximum" : 1 }, "setTx" : { "type" : "integer", - "description" : "Set Tx om or off\n * 0 - Tx off\n * 1 - Tx on\n" + "description" : "Set Tx om or off\n * 0 - Tx off\n * 1 - Tx on\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "LimeRFE" @@ -9200,11 +12167,15 @@ margin-bottom: 20px; "properties" : { "rxOn" : { "type" : "integer", - "description" : "Boolean 1 if Rx is active else 0" + "description" : "Boolean 1 if Rx is active else 0", + "minimum" : 0, + "maximum" : 1 }, "txOn" : { "type" : "integer", - "description" : "Boolean 1 if Tx is active else 0" + "description" : "Boolean 1 if Tx is active else 0", + "minimum" : 0, + "maximum" : 1 }, "forwardPower" : { "type" : "integer", @@ -9220,10 +12191,12 @@ margin-bottom: 20px; defs.LimeRFESettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "devicePath" : { "type" : "string", @@ -9231,23 +12204,33 @@ margin-bottom: 20px; }, "rxChannels" : { "type" : "integer", - "description" : "Rx channels group (LimeRFEController::ChannelGroups):\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n" + "description" : "Rx channels group (LimeRFEController::ChannelGroups):\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n", + "minimum" : 0, + "maximum" : 2 }, "rxWidebandChannel" : { "type" : "integer", - "description" : "Rx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n" + "description" : "Rx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n", + "minimum" : 0, + "maximum" : 1 }, "rxHAMChannel" : { "type" : "integer", - "description" : "Rx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n" + "description" : "Rx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n", + "minimum" : 0, + "maximum" : 8 }, "rxCellularChannel" : { "type" : "integer", - "description" : "Rx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n" + "description" : "Rx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n", + "minimum" : 0, + "maximum" : 4 }, "rxPort" : { "type" : "integer", - "description" : "Rx port selected (LimeRFEController::RxPort)\n * 0 - J3\n * 1 - J5\n" + "description" : "Rx port selected (LimeRFEController::RxPort)\n * 0 - J3\n * 1 - J5\n", + "minimum" : 0, + "maximum" : 1 }, "attenuationFactor" : { "type" : "integer", @@ -9259,53 +12242,78 @@ margin-bottom: 20px; }, "txChannels" : { "type" : "integer", - "description" : "Tx channels group (LimeRFEController::ChannelGroups)\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n" + "description" : "Tx channels group (LimeRFEController::ChannelGroups)\n * 0 - Wideband\n * 1 - HAM\n * 2 - cellular\n", + "minimum" : 0, + "maximum" : 2 }, "txWidebandChannel" : { "type" : "integer", - "description" : "Tx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n" + "description" : "Tx wideband channel selection (LimeRFEController::WidebandChannel)\n * 0 - Low: 1 - 1000 MHz\n * 1 - High: 1 - 4 GHz\n", + "minimum" : 0, + "maximum" : 1 }, "txHAMChannel" : { "type" : "integer", - "description" : "Tx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n" + "description" : "Tx HAM channel selection (LimeRFEController::HAMChannel)\n * 0 - 30 MHz and lower\n * 1 - 50 - 70 MHz\n * 2 - 144 - 146 MHz\n * 3 - 220 - 225 MHz\n * 4 - 430 - 440 MHz\n * 5 - 902 - 928 MHz\n * 6 - 1240 - 1325 MHz\n * 7 - 2300 - 2450 MHz\n * 8 - 3300 - 3500 MHz\n", + "minimum" : 0, + "maximum" : 8 }, "txCellularChannel" : { "type" : "integer", - "description" : "Tx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n" + "description" : "Tx cellular channel selection (LimeRFEController::CellularChannel)\n * 0 - Band 1: 1.92 - 1.98 GHz\n * 1 - Band 2: 1.84 - 1.92 GHz\n * 2 - Band 3: 1.71 - 1.79 GHz\n * 3 - Band 7: 2.48 - 2.58 GHz\n * 4 - Band 38: 2.56 - 2.63 GHz\n", + "minimum" : 0, + "maximum" : 4 }, "txPort" : { "type" : "integer", - "description" : "Tx port selected (LimeRFEController::TxPort)\n * 0 - J3\n * 1 - J4\n * 2 - J5\n" + "description" : "Tx port selected (LimeRFEController::TxPort)\n * 0 - J3\n * 1 - J4\n * 2 - J5\n", + "minimum" : 0, + "maximum" : 2 }, "swrEnable" : { "type" : "integer", - "description" : "Boolean if SWR measurements are enabled else 0" + "description" : "Boolean if SWR measurements are enabled else 0", + "minimum" : 0, + "maximum" : 1 }, "swrSource" : { "type" : "integer", - "description" : "SWR measurement source (LimeRFEController::SWRSource)\n * 0 - External\n * 1 - Cellular\n" + "description" : "SWR measurement source (LimeRFEController::SWRSource)\n * 0 - External\n * 1 - Cellular\n", + "minimum" : 0, + "maximum" : 1 }, "txRxDriven" : { "type" : "integer", - "description" : "Boolean 1 if Tx is copy of Rx else 0" + "description" : "Boolean 1 if Tx is copy of Rx else 0", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -9319,26 +12327,34 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." }, "linkRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Measured streaming link rate." }, "hwTimestamp" : { "type" : "integer", @@ -9347,15 +12363,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." } }, "description" : "LimeSDR" @@ -9363,100 +12382,146 @@ margin-bottom: 20px; defs.LimeSdrInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "splitFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "Split freq setting for Lime sdr input." }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "lpfFIREnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the digital FIR low-pass filter (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Digital FIR low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "ncoEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the numerically controlled oscillator (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Numerically controlled oscillator frequency in Hz." }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "lnaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Low-noise-amplifier gain setting." }, "tiaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "TIA gain setting for Lime sdr input." }, "pgaGain" : { - "type" : "integer" + "type" : "integer", + "description" : "PGA gain setting for Lime sdr input." }, "extClock" : { - "type" : "integer" + "type" : "integer", + "description" : "Use an external reference clock (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "External reference-clock frequency in Hz." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LimeSDR" @@ -9470,15 +12535,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "successRx" : { "type" : "integer", @@ -9489,23 +12557,29 @@ margin-bottom: 20px; "description" : "1 if active else 0" }, "fifoSizeRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported fifo size receive." }, "fifoFillRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current receive FIFO fill level." }, "underrunCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported underrun count receive." }, "overrunCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported overrun count receive." }, "droppedPacketsCountRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported dropped packets count receive." }, "linkRateRx" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported link rate receive." }, "successTx" : { "type" : "integer", @@ -9516,23 +12590,29 @@ margin-bottom: 20px; "description" : "1 if active else 0" }, "fifoSizeTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported fifo size transmit." }, "fifoFillTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current transmit FIFO fill level." }, "underrunCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported underrun count transmit." }, "overrunCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported overrun count transmit." }, "droppedPacketsCountTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported dropped packets count transmit." }, "linkRateTx" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported link rate transmit." } }, "description" : "LimeSDR" @@ -9540,10 +12620,12 @@ margin-bottom: 20px; defs.LimeSdrMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "gpioDir" : { "type" : "integer", @@ -9557,7 +12639,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Boolean 1 if external clock source else 0" + "description" : "Boolean 1 if external clock source else 0", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -9565,50 +12649,71 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "dcBlock" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterMode" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "ncoEnableRx" : { "type" : "integer", - "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + "description" : "Boolean 1 to enable TSP NCO and mixing else 0", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyRx" : { "type" : "integer", @@ -9621,7 +12726,9 @@ margin-bottom: 20px; }, "lpfFIREnableRx0" : { "type" : "integer", - "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Rx[0] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWRx0" : { "type" : "number", @@ -9634,11 +12741,15 @@ margin-bottom: 20px; }, "antennaPathRx0" : { "type" : "integer", - "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + "description" : "Rx[0] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n", + "minimum" : 0, + "maximum" : 5 }, "gainModeRx0" : { "type" : "integer", - "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n" + "description" : "Rx[0] Gain mode:\n * 0 - auto\n * 1 - manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx0" : { "type" : "integer", @@ -9659,7 +12770,9 @@ margin-bottom: 20px; }, "lpfFIREnableRx1" : { "type" : "integer", - "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Rx[1] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWRx1" : { "type" : "number", @@ -9672,11 +12785,15 @@ margin-bottom: 20px; }, "antennaPathRx1" : { "type" : "integer", - "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n" + "description" : "Rx[1] Antenna connection (PathRxRFE):\n * 0 - None\n * 1 - LNA High\n * 2 - LNA low\n * 3 - LNA Wide\n * 4 - LB TX1\n * 5 - LB TX2\n", + "minimum" : 0, + "maximum" : 5 }, "gainModeRx1" : { "type" : "integer", - "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n" + "description" : "Rx[1] Gain mode:\n * 0 - auto\n * 1 - manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx1" : { "type" : "integer", @@ -9692,25 +12809,33 @@ margin-bottom: 20px; }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "txTransverterMode" : { "type" : "integer", - "description" : "Boolean" + "description" : "Boolean", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "ncoEnableTx" : { "type" : "integer", - "description" : "Boolean 1 to enable TSP NCO and mixing else 0" + "description" : "Boolean 1 to enable TSP NCO and mixing else 0", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyTx" : { "type" : "integer", @@ -9723,7 +12848,9 @@ margin-bottom: 20px; }, "lpfFIREnableTx0" : { "type" : "integer", - "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Tx[0] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWTx0" : { "type" : "number", @@ -9736,7 +12863,9 @@ margin-bottom: 20px; }, "antennaPathTx0" : { "type" : "integer", - "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + "description" : "Tx[0] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n", + "minimum" : 0, + "maximum" : 2 }, "lpfBWTx1" : { "type" : "number", @@ -9745,7 +12874,9 @@ margin-bottom: 20px; }, "lpfFIREnableTx1" : { "type" : "integer", - "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0" + "description" : "Boolean 1 to enable Tx[1] LMS digital lowpass FIR filters else 0", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBWTx1" : { "type" : "number", @@ -9758,7 +12889,9 @@ margin-bottom: 20px; }, "antennaPathTx1" : { "type" : "integer", - "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n" + "description" : "Tx[1] Antenna connection (PathTxRFE):\n * 0 - None\n * 1 - RF connector 1\n * 2 - RF connector 2\n", + "minimum" : 0, + "maximum" : 2 } }, "description" : "LimeSDR" @@ -9771,26 +12904,34 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." }, "linkRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Measured streaming link rate." }, "hwTimestamp" : { "type" : "integer", @@ -9799,15 +12940,18 @@ margin-bottom: 20px; }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." } }, "description" : "LimeSDR" @@ -9815,75 +12959,108 @@ margin-bottom: 20px; defs.LimeSdrOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "lpfFIREnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the digital FIR low-pass filter (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Digital FIR low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "ncoEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the numerically controlled oscillator (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Numerically controlled oscillator frequency in Hz." }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "extClock" : { - "type" : "integer" + "type" : "integer", + "description" : "Use an external reference clock (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { - "type" : "integer" + "type" : "integer", + "description" : "External reference-clock frequency in Hz." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LimeSDR" @@ -9892,10 +13069,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "LocalInput" @@ -9903,26 +13082,40 @@ margin-bottom: 20px; defs.LocalInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LocalInput" @@ -9931,10 +13124,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "LocalOutput" @@ -9942,20 +13137,28 @@ margin-bottom: 20px; defs.LocalOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "LocalOutput" @@ -9967,24 +13170,32 @@ margin-bottom: 20px; "description" : "Receiving local device index" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "play" : { "type" : "integer", - "description" : "Run samples transfer\n * 0 - stop\n * 1 - run\n" + "description" : "Run samples transfer\n * 0 - stop\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "dsp" : { "type" : "integer", - "description" : "Activate DSP\n * 0 - Skip DSP functions\n * 1 - Run DSP functions\n" + "description" : "Activate DSP\n * 0 - Skip DSP functions\n * 1 - Run DSP functions\n", + "minimum" : 0, + "maximum" : 1 }, "gaindB" : { "type" : "integer", @@ -9992,7 +13203,9 @@ margin-bottom: 20px; }, "fftOn" : { "type" : "integer", - "description" : "Activate FFT multiband filter\n * 0 - do not run filter\n * 1 - run filter\n" + "description" : "Activate FFT multiband filter\n * 0 - do not run filter\n * 1 - run filter\n", + "minimum" : 0, + "maximum" : 1 }, "log2FFT" : { "type" : "integer", @@ -10000,17 +13213,22 @@ margin-bottom: 20px; }, "fftWindow" : { "type" : "integer", - "description" : "FFT window type\n * 0 - Bartlett\n * 1 - Blackman-Harris\n * 2 - Flat top\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman\n * 8 - Blackman-Harris (7th order)\n" + "description" : "FFT window type\n * 0 - Bartlett\n * 1 - Blackman-Harris\n * 2 - Flat top\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman\n * 8 - Blackman-Harris (7th order)\n", + "minimum" : 0, + "maximum" : 8 }, "fftBands" : { "type" : "array", + "description" : "List of fft bands.", "items" : { "$ref" : "#/definitions/FFTBand" } }, "reverseFilter" : { "type" : "integer", - "description" : "* 0 - band definitions are bandpass * 1 - band definitions are band reject\n" + "description" : "* 0 - band definitions are bandpass * 1 - band definitions are band reject\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10018,24 +13236,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10048,20 +13276,26 @@ margin-bottom: 20px; "description" : "Sending local device index" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "play" : { "type" : "integer", - "description" : "boolean (1 to play, 0 to stop)" + "description" : "boolean (1 to play, 0 to stop)", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10069,24 +13303,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10137,10 +13381,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "squelch" : { "type" : "integer", @@ -10153,48 +13399,63 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "demodGain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Demod gain setting for M17 demod." }, "baudRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Serial-port baud rate in bits per second." }, "squelchGate" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch gate duration." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "syncOrConstellation" : { - "type" : "integer" + "type" : "integer", + "description" : "Sync or constellation setting for M17 demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "highPassFilter" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass filter setting for M17 demod." }, "traceLengthMutliplier" : { "type" : "integer", @@ -10202,17 +13463,25 @@ margin-bottom: 20px; }, "traceStroke" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "traceDecay" : { "type" : "integer", - "description" : "0 to 255" + "description" : "0 to 255", + "minimum" : 0, + "maximum" : 255 }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "statusLogEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable status log (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -10220,24 +13489,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -10251,10 +13530,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "M17Mod" @@ -10263,35 +13544,48 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for M17 mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "m17Mode" : { "type" : "integer", @@ -10306,17 +13600,21 @@ margin-bottom: 20px; "description" : "PacketType" }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "feedbackAudioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Feedback audio device name setting for M17 mod." }, "feedbackVolumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Feedback volume factor setting for M17 mod." }, "feedbackAudioEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Feedback audio enable setting for M17 mod." }, "streamIndex" : { "type" : "integer", @@ -10324,64 +13622,171 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "sourceCall" : { - "type" : "string" + "type" : "string", + "description" : "Source call setting for M17 mod." }, "destCall" : { - "type" : "string" + "type" : "string", + "description" : "Dest call setting for M17 mod." }, "insertPosition" : { - "type" : "integer" + "type" : "integer", + "description" : "Insert position setting for M17 mod." }, "can" : { - "type" : "integer" + "type" : "integer", + "description" : "Can setting for M17 mod." }, "smsText" : { - "type" : "string" + "type" : "string", + "description" : "Sms text setting for M17 mod." }, "loopPacket" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop packet setting for M17 mod." }, "loopPacketInterval" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop packet interval setting for M17 mod." }, "aprsCallsign" : { - "type" : "string" + "type" : "string", + "description" : "Aprs callsign setting for M17 mod." }, "aprsTo" : { - "type" : "string" + "type" : "string", + "description" : "Aprs to setting for M17 mod." }, "aprsVia" : { - "type" : "string" + "type" : "string", + "description" : "Aprs via setting for M17 mod." }, "aprsData" : { - "type" : "string" + "type" : "string", + "description" : "Aprs data setting for M17 mod." }, "aprsInsertPosition" : { - "type" : "integer" + "type" : "integer", + "description" : "Aprs insert position setting for M17 mod." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "M17Mod" +}; + defs.MCPServerActions = { + "properties" : { + "run" : { + "type" : "integer", + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MCP server actions" +}; + defs.MCPServerReport = { + "properties" : { + "runningState" : { + "type" : "integer", + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 + }, + "requestCount" : { + "type" : "integer", + "description" : "Number of MCP requests served since the server was started" + } + }, + "description" : "MCP server report" +}; + defs.MCPServerSettings = { + "properties" : { + "address" : { + "type" : "string", + "description" : "Address to bind the HTTP listener to. Defaults to 127.0.0.1 (local connections only)" + }, + "port" : { + "type" : "integer", + "description" : "TCP port the MCP server listens on", + "minimum" : 1024, + "maximum" : 65535 + }, + "token" : { + "type" : "string", + "description" : "Optional bearer token clients must present in the Authorization header. Empty for no authentication" + }, + "captureDir" : { + "type" : "string", + "description" : "Directory that IQ and audio captures are written to. Capture tools refuse paths outside it" + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIFeatureSetIndex" : { + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." + }, + "reverseAPIFeatureIndex" : { + "type" : "integer", + "description" : "Feature index used by the reverse API peer." + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MCP (Model Context Protocol) server settings" }; defs.MapActions = { "properties" : { @@ -10399,13 +13804,16 @@ margin-bottom: 20px; defs.MapAircraftState = { "properties" : { "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "aircraftType" : { - "type" : "string" + "type" : "string", + "description" : "Aircraft type for Map aircraft state." }, "onSurface" : { - "type" : "integer" + "type" : "integer", + "description" : "On surface for Map aircraft state." }, "airspeed" : { "type" : "number", @@ -10428,7 +13836,8 @@ margin-bottom: 20px; }, "mach" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Mach for Map aircraft state." }, "altitude" : { "type" : "number", @@ -10465,15 +13874,18 @@ margin-bottom: 20px; }, "selectedAirspeed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected airspeed for Map aircraft state." }, "selectedAltitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected altitude for Map aircraft state." }, "selectedHeading" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Selected heading for Map aircraft state." }, "autopilot" : { "type" : "integer", @@ -10493,15 +13905,18 @@ margin-bottom: 20px; }, "windSpeed" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Wind speed for Map aircraft state." }, "windDirection" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Wind direction for Map aircraft state." }, "staticAirTemperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Static air temperature for Map aircraft state." } }, "description" : "Aircraft state for PFD/ND" @@ -10514,11 +13929,15 @@ margin-bottom: 20px; }, "reverse" : { "type" : "integer", - "description" : "(0 - Forward, 1 - Reverse)" + "description" : "(0 - Forward, 1 - Reverse)", + "minimum" : 0, + "maximum" : 1 }, "loop" : { "type" : "integer", - "description" : "(0 - Play once, 1 - Play in loop)" + "description" : "(0 - Play once, 1 - Play in loop)", + "minimum" : 0, + "maximum" : 1 }, "startDateTime" : { "type" : "string", @@ -10554,12 +13973,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10595,12 +14018,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10609,7 +14036,9 @@ margin-bottom: 20px; }, "fixedPosition" : { "type" : "integer", - "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" + "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)", + "minimum" : 0, + "maximum" : 1 }, "positionDateTime" : { "type" : "string", @@ -10639,7 +14068,9 @@ margin-bottom: 20px; }, "orientation" : { "type" : "integer", - "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" + "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)", + "minimum" : 0, + "maximum" : 1 }, "heading" : { "type" : "number", @@ -10680,7 +14111,9 @@ margin-bottom: 20px; }, "altitudeReference" : { "type" : "integer", - "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." + "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND.", + "minimum" : 0, + "maximum" : 3 }, "animations" : { "type" : "array", @@ -10691,23 +14124,29 @@ margin-bottom: 20px; }, "type" : { "type" : "integer", - "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" + "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)", + "minimum" : 0, + "maximum" : 3 }, "imageTileWest" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile west for Map item." }, "imageTileSouth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile south for Map item." }, "imageTileEast" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile east for Map item." }, "imageTileNorth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile north for Map item." }, "imageZoomLevel" : { "type" : "number", @@ -10736,13 +14175,16 @@ margin-bottom: 20px; }, "colorValid" : { "type" : "integer", - "description" : "0 - Use default color, 1 - Use specified color" + "description" : "0 - Use default color, 1 - Use specified color", + "minimum" : 0, + "maximum" : 1 }, "color" : { "type" : "integer", "description" : "RGBA for polygon and polyline" }, "aircraftState" : { + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "$ref" : "#/definitions/MapAircraftState" } }, @@ -10770,12 +14212,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees, positive to the North" + "description" : "Latitude in decimal degrees, positive to the North", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees, positive to the East" + "description" : "Longitude in decimal degrees, positive to the East", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -10784,7 +14230,9 @@ margin-bottom: 20px; }, "fixedPosition" : { "type" : "integer", - "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)" + "description" : "Indicates whether position of item is constant with time (0 - variable, 1 - fixed)", + "minimum" : 0, + "maximum" : 1 }, "positionDateTime" : { "type" : "string", @@ -10814,7 +14262,9 @@ margin-bottom: 20px; }, "orientation" : { "type" : "integer", - "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)" + "description" : "How to orientate the model (0 - Along direction of motion, 1 - Use heading, pitch and roll)", + "minimum" : 0, + "maximum" : 1 }, "heading" : { "type" : "number", @@ -10855,7 +14305,9 @@ margin-bottom: 20px; }, "altitudeReference" : { "type" : "integer", - "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND." + "description" : "0 - NONE (Absolute), 1 - CLAMP_TO_GROUND, 2 - RELATIVE_TO_GROUND, 3 - CLIP_TO_GROUND.", + "minimum" : 0, + "maximum" : 3 }, "animations" : { "type" : "array", @@ -10866,23 +14318,29 @@ margin-bottom: 20px; }, "type" : { "type" : "integer", - "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)" + "description" : "(0 - Map Item, 1 - Image Tile, 2 - Polygon, 3 - Polyline)", + "minimum" : 0, + "maximum" : 3 }, "imageTileWest" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile west for Map item." }, "imageTileSouth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile south for Map item." }, "imageTileEast" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile east for Map item." }, "imageTileNorth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Image tile north for Map item." }, "imageZoomLevel" : { "type" : "number", @@ -10911,13 +14369,16 @@ margin-bottom: 20px; }, "colorValid" : { "type" : "integer", - "description" : "0 - Use default color, 1 - Use specified color" + "description" : "0 - Use default color, 1 - Use specified color", + "minimum" : 0, + "maximum" : 1 }, "color" : { "type" : "integer", "description" : "RGBA for polygon and polyline" }, "aircraftState" : { + "description" : "Current states of aircraft tracked by the ADS-B demodulator.", "$ref" : "#/definitions/MapAircraftState" } }, @@ -10936,372 +14397,244 @@ margin-bottom: 20px; "properties" : { "displayNames" : { "type" : "integer", - "description" : "Display object names on the map (1 for yes, 0 for no)" - }, - "terrain" : { - "type" : "string", - "description" : "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" - }, - "title" : { - "type" : "string" - }, - "rgbColor" : { - "type" : "integer" - }, - "useReverseAPI" : { - "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" - }, - "reverseAPIAddress" : { - "type" : "string" - }, - "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIFeatureSetIndex" : { - "type" : "integer" - }, - "reverseAPIFeatureIndex" : { - "type" : "integer" - }, - "rollupState" : { - "$ref" : "#/definitions/RollupState" - } - }, - "description" : "Map" -}; - defs.MeshcoreDemodReport = { - "properties" : { - "channelPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "current de-chirped total channel power (dB)" - }, - "noisePowerDB" : { - "type" : "number", - "format" : "float", - "description" : "current de-chirped noise argmax power (dB)" - }, - "signalPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "last message de-chirped signal argmax power (dB)" - }, - "snrPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "last message de-chirped signal to noise ratio power (dB)" - }, - "channelSampleRate" : { - "type" : "integer" - }, - "syncWord" : { - "type" : "integer", - "description" : "2 bytes sync word (0..65535)" - }, - "nbParityBits" : { - "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" + "description" : "Display object names on the map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, - "packetLength" : { + "map2DEnabled" : { "type" : "integer", - "description" : "Packet length in number of bytes (LoRa)" + "description" : "Display the 2D map pane (1 for yes, 0 for no). Disable this while keeping map3DEnabled enabled to show only the 3D map.", + "minimum" : 0, + "maximum" : 1 }, - "nbSymbols" : { + "map3DEnabled" : { "type" : "integer", - "description" : "Number of symbols in the payload with header and CRC (LoRa)" + "description" : "Display the 3D map pane (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbCodewords" : { - "type" : "integer", - "description" : "Number of codewords in the payload with header and CRC (LoRa)" - }, - "headerParityStatus" : { - "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" - }, - "headerCRCStatus" : { - "type" : "integer", - "description" : "header CRC check status. Boolean 1 if OK else 0" - }, - "payloadParityStatus" : { - "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" - }, - "payloadCRCStatus" : { - "type" : "integer", - "description" : "payload CRC check status. Boolean 1 if OK else 0" - }, - "messageTimestamp" : { + "mapProvider" : { "type" : "string", - "description" : "timestamp of the last decoded message" + "description" : "2D map provider identifier." }, - "messageString" : { + "mapType" : { "type" : "string", - "description" : "string representation of the last decoded message" + "description" : "Selected 2D map type, for example Street Map or Satellite Map." }, - "frameType" : { + "osmURL" : { "type" : "string", - "description" : "frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP)" + "description" : "Custom OpenStreetMap tile-server URL." }, - "channelType" : { + "mapBoxStyles" : { "type" : "string", - "description" : "Channel type code e.g. LONG_FAST" + "description" : "Mapbox style identifier used by the selected 2D provider." }, - "messageBytes" : { - "type" : "array", - "description" : "bytes of the last decoded message as an array of hex string represented bytes (00..FF)", - "items" : { - "type" : "string" - } - }, - "decoding" : { - "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" - } - }, - "description" : "MeshcoreDemod" -}; - defs.MeshcoreDemodSettings = { - "properties" : { - "inputFrequencyOffset" : { + "displaySelectedGroundTracks" : { "type" : "integer", - "format" : "int64" + "description" : "Display ground tracks for selected items (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "bandwidthIndex" : { + "displayAllGroundTracks" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "Display ground tracks for all items (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "spreadFactor" : { - "type" : "integer" + "terrain" : { + "type" : "string", + "description" : "Terrain used for 3D map (E.g: 'Ellipsoid' or 'Cesium World Terrain')" }, - "deBits" : { - "type" : "integer", - "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + "buildings" : { + "type" : "string", + "description" : "3D buildings layer, for example None or Cesium OSM Buildings." }, - "decodeActive" : { + "sunLightEnabled" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "Light the globe from the Sun's direction (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "eomSquelchTenths" : { - "type" : "integer", - "description" : "argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10" + "lightIntensity" : { + "type" : "number", + "format" : "float", + "description" : "Camera light intensity used by the 3D map.", + "minimum" : 0 }, - "nbSymbolsMax" : { + "eciCamera" : { "type" : "integer", - "description" : "expected maximum number of symbols in a payload" + "description" : "Use an ECI rather than ECEF camera frame (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "preambleChirps" : { + "fxaa" : { "type" : "integer", - "description" : "Number of expected preamble chirps" + "description" : "Enable fast approximate anti-aliasing (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbParityBits" : { + "msaa" : { "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" + "description" : "Multisample anti-aliasing level.", + "minimum" : 1, + "maximum" : 8 }, - "packetLength" : { + "terrainLighting" : { "type" : "integer", - "description" : "expected packet length in number of bytes (LoRa)" + "description" : "Enable terrain lighting (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "sendViaUDP" : { + "water" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "Enable water effects (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "sendJsonViaUDP" : { + "hdr" : { "type" : "integer", - "description" : "boolean 1 to send decoded message as JSON via UDP else 0" + "description" : "Enable high dynamic range rendering (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpEnabled" : { + "fog" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" - }, - "udpAddress" : { - "type" : "string", - "description" : "UDP destination udpAddress" + "description" : "Enable atmospheric fog (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpPort" : { + "fps" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "Display the 3D map frame rate (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "invertRamps" : { + "displayMUF" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" - }, - "rgbColor" : { - "type" : "integer" - }, - "title" : { - "type" : "string" + "description" : "Display maximum-usable-frequency contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "streamIndex" : { + "displayfoF2" : { "type" : "integer", - "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + "description" : "Display F2 critical-frequency contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "useReverseAPI" : { + "displayRain" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" - }, - "reverseAPIAddress" : { - "type" : "string" - }, - "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIDeviceIndex" : { - "type" : "integer" + "description" : "Display weather-radar rain and snow overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "reverseAPIChannelIndex" : { - "type" : "integer" - }, - "spectrumConfig" : { - "$ref" : "#/definitions/GLSpectrum" - }, - "channelMarker" : { - "$ref" : "#/definitions/ChannelMarker" - }, - "rollupState" : { - "$ref" : "#/definitions/RollupState" - } - }, - "description" : "MeshcoreDemod" -}; - defs.MeshcoreModActions = { - "properties" : { - "sendNow" : { + "displayClouds" : { "type" : "integer", - "description" : "Send packet immediately\n * 0 - Do nothing\n * 1 - Send packet\n" - } - }, - "description" : "MeshcoreMod" -}; - defs.MeshcoreModReport = { - "properties" : { - "channelPowerDB" : { - "type" : "number", - "format" : "float", - "description" : "power transmitted in channel (dB)" + "description" : "Display satellite infrared cloud overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "channelSampleRate" : { - "type" : "integer" - }, - "symbolTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "symbol duration (ms)" - }, - "payloadTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "payload duration (ms)" - }, - "totalTimeMs" : { - "type" : "number", - "format" : "float", - "description" : "total message duration inc. preamble and SFD (ms)" - }, - "playing" : { + "displaySeaMarks" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" - } - }, - "description" : "MeshcoreMod" -}; - defs.MeshcoreModSettings = { - "properties" : { - "inputFrequencyOffset" : { - "type" : "integer", - "format" : "int64" + "description" : "Display sea marks (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "bandwidthIndex" : { + "displayRailways" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "Display railways (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "spreadFactor" : { - "type" : "integer" - }, - "deBits" : { + "displayNASAGlobalImagery" : { "type" : "integer", - "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + "description" : "Display NASA GIBS imagery (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "preambleChirps" : { - "type" : "integer", - "description" : "Number of preamble chirps" + "nasaGlobalImageryIdentifier" : { + "type" : "string", + "description" : "NASA GIBS imagery-layer identifier." }, - "quietMillis" : { + "nasaGlobalImageryOpacity" : { "type" : "integer", - "description" : "Number of milliseconds to pause between transmissions" + "description" : "NASA GIBS imagery opacity as a percentage.", + "minimum" : 0, + "maximum" : 100 }, - "syncWord" : { + "displayAurora" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "Display aurora-probability overlay (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "channelMute" : { + "displayMagDec" : { "type" : "integer", - "description" : "boolean" + "description" : "Display magnetic-declination contours (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "nbParityBits" : { + "displayMaidenheadGrid" : { "type" : "integer", - "description" : "Hamming FEC parity bits (LoRa)" - }, - "textMessage" : { - "type" : "string", - "description" : "freeform text message" + "description" : "Display Maidenhead grid (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "messageRepeat" : { + "displayPFD" : { "type" : "integer", - "description" : "number of repetitions of the same message (0 for infinite)" + "description" : "Display the aircraft primary-flight display (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpEnabled" : { + "viewFirstPerson" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "Use first-person 3D map view (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 }, - "udpAddress" : { + "defaultImagery" : { "type" : "string", - "description" : "UDP address to listen for messages to transmit on" - }, - "udpPort" : { - "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" - }, - "invertRamps" : { - "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" - }, - "rgbColor" : { - "type" : "integer" + "description" : "Default imagery layer for the 3D map." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, - "streamIndex" : { + "rgbColor" : { "type" : "integer", - "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" - }, - "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, - "reverseAPIChannelIndex" : { - "type" : "integer" + "reverseAPIFeatureSetIndex" : { + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, - "channelMarker" : { - "$ref" : "#/definitions/ChannelMarker" + "reverseAPIFeatureIndex" : { + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, - "description" : "MeshcoreMod" + "description" : "Map" }; - defs.MeshtasticDemodReport = { + defs.MeshcoreDemodReport = { "properties" : { "channelPowerDB" : { "type" : "number", @@ -11324,11 +14657,414 @@ margin-bottom: 20px; "description" : "last message de-chirped signal to noise ratio power (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." + }, + "syncWord" : { + "type" : "integer", + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "packetLength" : { + "type" : "integer", + "description" : "Packet length in number of bytes (LoRa)" + }, + "nbSymbols" : { + "type" : "integer", + "description" : "Number of symbols in the payload with header and CRC (LoRa)" + }, + "nbCodewords" : { + "type" : "integer", + "description" : "Number of codewords in the payload with header and CRC (LoRa)" + }, + "headerParityStatus" : { + "type" : "integer", + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 + }, + "headerCRCStatus" : { + "type" : "integer", + "description" : "header CRC check status. Boolean 1 if OK else 0" + }, + "payloadParityStatus" : { + "type" : "integer", + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 + }, + "payloadCRCStatus" : { + "type" : "integer", + "description" : "payload CRC check status. Boolean 1 if OK else 0" + }, + "messageTimestamp" : { + "type" : "string", + "description" : "timestamp of the last decoded message" + }, + "messageString" : { + "type" : "string", + "description" : "string representation of the last decoded message" + }, + "frameType" : { + "type" : "string", + "description" : "frame type shown in the GUI tree view (for example LORA_FRAME or POSITION_APP)" + }, + "channelType" : { + "type" : "string", + "description" : "Channel type code e.g. LONG_FAST" + }, + "messageBytes" : { + "type" : "array", + "description" : "bytes of the last decoded message as an array of hex string represented bytes (00..FF)", + "items" : { + "type" : "string" + } + }, + "decoding" : { + "type" : "integer", + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreDemod" +}; + defs.MeshcoreDemodSettings = { + "properties" : { + "inputFrequencyOffset" : { + "type" : "integer", + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." + }, + "bandwidthIndex" : { + "type" : "integer", + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 + }, + "spreadFactor" : { + "type" : "integer", + "description" : "Spread factor setting for Meshcore demod." + }, + "deBits" : { + "type" : "integer", + "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + }, + "decodeActive" : { + "type" : "integer", + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 + }, + "eomSquelchTenths" : { + "type" : "integer", + "description" : "argmax squared magnitude is compared between current multiplied by this factor and maximum during decoding. This value is divided by 10" + }, + "nbSymbolsMax" : { + "type" : "integer", + "description" : "expected maximum number of symbols in a payload" + }, + "preambleChirps" : { + "type" : "integer", + "description" : "Number of expected preamble chirps" + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "packetLength" : { + "type" : "integer", + "description" : "expected packet length in number of bytes (LoRa)" + }, + "sendViaUDP" : { + "type" : "integer", + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "sendJsonViaUDP" : { + "type" : "integer", + "description" : "boolean 1 to send decoded message as JSON via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "udpEnabled" : { + "type" : "integer", + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 + }, + "udpAddress" : { + "type" : "string", + "description" : "UDP destination udpAddress" + }, + "udpPort" : { + "type" : "integer", + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 + }, + "invertRamps" : { + "type" : "integer", + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "streamIndex" : { + "type" : "integer", + "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIDeviceIndex" : { + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." + }, + "reverseAPIChannelIndex" : { + "type" : "integer", + "description" : "Channel index used by the reverse API peer." + }, + "spectrumConfig" : { + "description" : "Spectrum-display configuration.", + "$ref" : "#/definitions/GLSpectrum" + }, + "channelMarker" : { + "description" : "Channel-marker display configuration.", + "$ref" : "#/definitions/ChannelMarker" + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MeshcoreDemod" +}; + defs.MeshcoreModActions = { + "properties" : { + "sendNow" : { + "type" : "integer", + "description" : "Send packet immediately\n * 0 - Do nothing\n * 1 - Send packet\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshcoreModReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "power transmitted in channel (dB)" + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." + }, + "symbolTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "symbol duration (ms)" + }, + "payloadTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "payload duration (ms)" + }, + "totalTimeMs" : { + "type" : "number", + "format" : "float", + "description" : "total message duration inc. preamble and SFD (ms)" + }, + "playing" : { + "type" : "integer", + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshcoreModSettings = { + "properties" : { + "inputFrequencyOffset" : { + "type" : "integer", + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." + }, + "bandwidthIndex" : { + "type" : "integer", + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 + }, + "spreadFactor" : { + "type" : "integer", + "description" : "Spread factor setting for Meshcore mod." + }, + "deBits" : { + "type" : "integer", + "description" : "Low data rate optimize (DE) bits i.e. nb of FFT bins per effective symbol" + }, + "preambleChirps" : { + "type" : "integer", + "description" : "Number of preamble chirps" + }, + "quietMillis" : { + "type" : "integer", + "description" : "Number of milliseconds to pause between transmissions" + }, + "syncWord" : { + "type" : "integer", + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 + }, + "channelMute" : { + "type" : "integer", + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 + }, + "nbParityBits" : { + "type" : "integer", + "description" : "Hamming FEC parity bits (LoRa)" + }, + "textMessage" : { + "type" : "string", + "description" : "freeform text message" + }, + "messageRepeat" : { + "type" : "integer", + "description" : "number of repetitions of the same message (0 for infinite)" + }, + "udpEnabled" : { + "type" : "integer", + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 + }, + "udpAddress" : { + "type" : "string", + "description" : "UDP address to listen for messages to transmit on" + }, + "udpPort" : { + "type" : "integer", + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 + }, + "invertRamps" : { + "type" : "integer", + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 + }, + "rgbColor" : { + "type" : "integer", + "description" : "Display color encoded as an RGB integer." + }, + "title" : { + "type" : "string", + "description" : "User-visible title." + }, + "streamIndex" : { + "type" : "integer", + "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 + }, + "reverseAPIAddress" : { + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." + }, + "reverseAPIPort" : { + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 + }, + "reverseAPIDeviceIndex" : { + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." + }, + "reverseAPIChannelIndex" : { + "type" : "integer", + "description" : "Channel index used by the reverse API peer." + }, + "channelMarker" : { + "description" : "Channel-marker display configuration.", + "$ref" : "#/definitions/ChannelMarker" + }, + "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "MeshcoreMod" +}; + defs.MeshtasticDemodReport = { + "properties" : { + "channelPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "current de-chirped total channel power (dB)" + }, + "noisePowerDB" : { + "type" : "number", + "format" : "float", + "description" : "current de-chirped noise argmax power (dB)" + }, + "signalPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "last message de-chirped signal argmax power (dB)" + }, + "snrPowerDB" : { + "type" : "number", + "format" : "float", + "description" : "last message de-chirped signal to noise ratio power (dB)" + }, + "channelSampleRate" : { + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "syncWord" : { "type" : "integer", - "description" : "2 bytes sync word (0..65535)" + "description" : "2 bytes sync word (0..65535)", + "minimum" : 0, + "maximum" : 65535 }, "nbParityBits" : { "type" : "integer", @@ -11348,7 +15084,9 @@ margin-bottom: 20px; }, "headerParityStatus" : { "type" : "integer", - "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Header FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "headerCRCStatus" : { "type" : "integer", @@ -11356,7 +15094,9 @@ margin-bottom: 20px; }, "payloadParityStatus" : { "type" : "integer", - "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n" + "description" : "Payload FEC parity status:\n * 0 - Undefined\n * 1 - Uncorrectable error\n * 2 - Corrected error\n * 3 - OK\n", + "minimum" : 0, + "maximum" : 3 }, "payloadCRCStatus" : { "type" : "integer", @@ -11387,7 +15127,9 @@ margin-bottom: 20px; }, "decoding" : { "type" : "integer", - "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n" + "description" : "Boolean - decoding status\n * 0 - no decoding\n * 1 - decoding\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "MeshtasticDemod" @@ -11396,14 +15138,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Meshtastic demod." }, "deBits" : { "type" : "integer", @@ -11411,7 +15157,9 @@ margin-bottom: 20px; }, "decodeActive" : { "type" : "integer", - "description" : "boolean 1 to activate 0 to de-activate decoder" + "description" : "boolean 1 to activate 0 to de-activate decoder", + "minimum" : 0, + "maximum" : 1 }, "eomSquelchTenths" : { "type" : "integer", @@ -11435,15 +15183,21 @@ margin-bottom: 20px; }, "sendViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message via UDP else 0" + "description" : "boolean 1 to send decoded message via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "sendJsonViaUDP" : { "type" : "integer", - "description" : "boolean 1 to send decoded message as JSON via UDP else 0" + "description" : "boolean 1 to send decoded message as JSON via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n" + "description" : "Boolean - Send via UDP\n * 0 - Do not send decoded messages via UDP\n * 1 - Send decoded messages via UDP\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11451,17 +15205,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP destination port" + "description" : "UDP destination port", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -11469,27 +15229,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11503,7 +15274,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "symbolTimeMs" : { "type" : "number", @@ -11522,7 +15294,9 @@ margin-bottom: 20px; }, "playing" : { "type" : "integer", - "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n" + "description" : "Boolean - modulator is active (playing) including idle time\n * 0 - Modulator not active\n * 1 - Modulator active\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "MeshtasticMod" @@ -11531,14 +15305,18 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidthIndex" : { "type" : "integer", - "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n" + "description" : "standard bandwidths index:\n * 0 - 375 Hz (384000 / 1024)\n * 1 - 750 Hz (384000 / 512)\n * 2 - 1500 Hz (384000 / 256)\n * 3 - 2604 Hz (333333 / 128)\n * 4 - 3125 Hz (400000 / 128)\n * 5 - 3906 Hz (500000 / 128)\n * 6 - 5208 Hz (333333 / 64)\n * 7 - 6250 Hz (400000 / 64)\n * 8 - 7813 Hz (500000 / 64)\n * 9 - 10417 Hz (333333 / 32)\n * 10 - 12500 Hz (400000 / 32)\n * 11 - 15625 Hz (500000 / 32)\n * 12 - 20833 Hz (333333 / 16)\n * 13 - 25000 Hz (400000 / 16)\n * 14 - 31250 Hz (500000 / 16)\n * 15 - 41667 Hz (333333 / 8)\n * 16 - 50000 Hz (400000 / 8)\n * 17 - 62500 Hz (500000 / 8)\n * 18 - 83333 Hz (333333 / 4)\n * 19 - 100000 Hz (400000 / 4)\n * 20 - 125000 Hz (500000 / 4)\n * 21 - 166667 Hz (333333 / 2)\n * 22 - 200000 Hz (400000 / 2)\n * 23 - 250000 Hz (500000 / 2)\n * 24 - 333333 Hz (333333 / 1)\n * 25 - 400000 Hz (400000 / 1)\n * 26 - 500000 Hz (500000 / 1)\n", + "minimum" : 0, + "maximum" : 26 }, "spreadFactor" : { - "type" : "integer" + "type" : "integer", + "description" : "Spread factor setting for Meshtastic mod." }, "deBits" : { "type" : "integer", @@ -11554,11 +15332,15 @@ margin-bottom: 20px; }, "syncWord" : { "type" : "integer", - "description" : "2 byte (0..65535) synchronization syncWord" + "description" : "2 byte (0..65535) synchronization syncWord", + "minimum" : 0, + "maximum" : 65535 }, "channelMute" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "nbParityBits" : { "type" : "integer", @@ -11574,7 +15356,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "boolean 1 to enable forwarding messages via UDP else 0" + "description" : "boolean 1 to enable forwarding messages via UDP else 0", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11582,17 +15366,23 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to listen for messages to transmit on" + "description" : "UDP port to listen for messages to transmit on", + "minimum" : 1, + "maximum" : 65535 }, "invertRamps" : { "type" : "integer", - "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n" + "description" : "Invert chirp ramps\n * 0 - Normal chirp ramps (upchirps for preamble and payload)\n * 1 - Inverted chirp ramps (downchirps for preamble and payload)\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -11600,24 +15390,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11626,7 +15426,8 @@ margin-bottom: 20px; defs.MetisMISOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "nbReceivers" : { "type" : "integer", @@ -11634,7 +15435,9 @@ margin-bottom: 20px; }, "txEnable" : { "type" : "integer", - "description" : "Enable Tx * 0 - disabled sends null payload to Metis device * 1 - enabled sends Tx payload to Metis device\n" + "description" : "Enable Tx * 0 - disabled sends null payload to Metis device * 1 - enabled sends Tx payload to Metis device\n", + "minimum" : 0, + "maximum" : 1 }, "rx1CenterFrequency" : { "type" : "integer", @@ -11678,27 +15481,36 @@ margin-bottom: 20px; }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "rxTransverterMode" : { "type" : "integer", - "description" : "Rx transverter activated * 0 - disabled * 1 - enabled\n" + "description" : "Rx transverter activated * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "txTransverterMode" : { "type" : "integer", - "description" : "Tx transverter activated * 0 - disabled * 1 - enabled\n" + "description" : "Tx transverter activated * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "I/Q samples order * 0 - I then Q (direct) * 1 - Q then I (reversed)\n" + "description" : "I/Q samples order * 0 - I then Q (direct) * 1 - Q then I (reversed)\n", + "minimum" : 0, + "maximum" : 1 }, "rx1SubsamplingIndex" : { "type" : "integer", @@ -11733,10 +15545,14 @@ margin-bottom: 20px; "description" : "subsampling band indexes of receiver 8" }, "sampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 3 }, "LOppmTenths" : { "type" : "integer", @@ -11744,27 +15560,39 @@ margin-bottom: 20px; }, "preamp" : { "type" : "integer", - "description" : "Preamplifer * 0 - disabled * 1 - enabled\n" + "description" : "Preamplifer * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "random" : { "type" : "integer", - "description" : "LT2208 Random * 0 - disabled * 1 - enabled\n" + "description" : "LT2208 Random * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dither" : { "type" : "integer", - "description" : "LT2208 Dither * 0 - disabled * 1 - enabled\n" + "description" : "LT2208 Dither * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "duplex" : { "type" : "integer", - "description" : "Duplex * 0 - disabled * 1 - enabled\n" + "description" : "Duplex * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { "type" : "integer", - "description" : "DC block in software * 0 - disabled * 1 - enabled\n" + "description" : "DC block in software * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "DC block in software * 0 - disabled * 1 - enabled\n" + "description" : "DC block in software * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "txDrive" : { "type" : "integer", @@ -11780,24 +15608,35 @@ margin-bottom: 20px; }, "streamLock" : { "type" : "integer", - "description" : "Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked\n" + "description" : "Ties together the stream selection and spectrum source stream selections * 0 - stream unlocked * 1 - stream locked\n", + "minimum" : 0, + "maximum" : 1 }, "rxLock" : { "type" : "integer", - "description" : "Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied\n" + "description" : "Ties together all Rx frequencies * 0 - Rx frequencies untied * 1 - Rx frequencies tied\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API * 0 - disabled * 1 - enabled\n" + "description" : "Synchronize with reverse API * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "MetisMISOSettings" @@ -11819,24 +15658,34 @@ margin-bottom: 20px; defs.MorseDecoderSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "udpEnabled" : { "type" : "integer", - "description" : "Send decoded text via UDP\n * 1 - send\n * 0 - do not send\n" + "description" : "Send decoded text via UDP\n * 1 - send\n * 0 - do not send\n", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -11844,7 +15693,9 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "Port to send text via UDP" + "description" : "Port to send text via UDP", + "minimum" : 1, + "maximum" : 65535 }, "logFiledName" : { "type" : "string", @@ -11852,26 +15703,36 @@ margin-bottom: 20px; }, "logEnabled" : { "type" : "integer", - "description" : "Log decoded text to file\n * 1 - log\n * 0 - do not log\n" + "description" : "Log decoded text to file\n * 1 - log\n * 0 - do not log\n", + "minimum" : 0, + "maximum" : 1 }, "auto" : { "type" : "integer", - "description" : "Auto detect CW pitch and keying speed\n * 1 - auto detect\n * 0 - use last values\n" + "description" : "Auto detect CW pitch and keying speed\n * 1 - auto detect\n * 0 - use last values\n", + "minimum" : 0, + "maximum" : 1 }, "showThreshold" : { "type" : "integer", - "description" : "Show GGMorse decoder threshold on the imaginary part of the scope trace\n * 1 - show\n * 0 - do not show\n" + "description" : "Show GGMorse decoder threshold on the imaginary part of the scope trace\n * 1 - show\n * 0 - do not show\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11894,10 +15755,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NFMDemod" @@ -11920,14 +15783,16 @@ margin-bottom: 20px; "description" : "AF bandwidth in Hz (rounds to lower kHz)" }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "squelchGate" : { "type" : "integer", "description" : "squelch gate in tens of ms" }, "deltaSquelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Delta squelch setting for Nfm demod." }, "squelch" : { "type" : "number", @@ -11936,28 +15801,38 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "ctcssOn" : { - "type" : "integer" + "type" : "integer", + "description" : "Ctcss on setting for Nfm demod." }, "highPass" : { - "type" : "integer" + "type" : "integer", + "description" : "High pass setting for Nfm demod." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "ctcssIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected ctcss index." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -11965,24 +15840,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -11996,10 +15881,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NFMMod" @@ -12008,71 +15895,99 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Nfm mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "ctcssOn" : { "type" : "integer", - "description" : "Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled\n" + "description" : "Enable CTCSS squelch (takes precedence on DCS) * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "ctcssIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected ctcss index." }, "dcsOn" : { "type" : "integer", - "description" : "Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled\n" + "description" : "Enable DCS squelch (only if CTCSS is off) * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "dcsCode" : { - "type" : "integer" + "type" : "integer", + "description" : "Dcs code setting for Nfm mod." }, "dcsPositive" : { "type" : "integer", - "description" : "Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1\n" + "description" : "Modulation direction: * 0 - reverse or negative - 1 for 0 and -1 for 1 * 1 - direct or positive - -1 for 0 and 1 for 1\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "preEmphasisOn" : { "type" : "integer", - "description" : "Activate pre-emphasis filter: * 0 - inactive * 1 - active\n" + "description" : "Activate pre-emphasis filter: * 0 - inactive * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "bpfOn" : { "type" : "integer", - "description" : "Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive * 1 - active\n" + "description" : "Activate audio highpass filter when no CTCSS nor DCS: * 0 - inactive * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "streamIndex" : { "type" : "integer", @@ -12080,27 +15995,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12109,10 +16035,12 @@ margin-bottom: 20px; defs.NamedEnum = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "value" : { - "type" : "integer" + "type" : "integer", + "description" : "Numeric enumeration value." } }, "description" : "Enumeration with name for values" @@ -12125,7 +16053,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ACARSDemod" @@ -12134,24 +16063,31 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "navArea" : { - "type" : "integer" + "type" : "integer", + "description" : "Nav area setting for Navtex demod." }, "filterStation" : { - "type" : "string" + "type" : "string", + "description" : "Filter station setting for Navtex demod." }, "filterType" : { - "type" : "string" + "type" : "string", + "description" : "Filter type setting for Navtex demod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12159,19 +16095,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12179,27 +16123,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12213,7 +16168,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "NoiseFigure" @@ -12222,64 +16178,82 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of fft events or items." }, "sweepSpec" : { "type" : "integer", - "description" : "(0 - Range, 1 - Step, 2 - List)" + "description" : "(0 - Range, 1 - Step, 2 - List)", + "minimum" : 0, + "maximum" : 2 }, "startValue" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Start value setting for Noise figure." }, "stopValue" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Stop value setting for Noise figure." }, "steps" : { - "type" : "integer" + "type" : "integer", + "description" : "Steps setting for Noise figure." }, "step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Increment between adjacent supported values." }, "list" : { - "type" : "string" + "type" : "string", + "description" : "List setting for Noise figure." }, "setting" : { "type" : "string", "description" : "The device setting to sweep (E.g. centerFrequency or gain)" }, "visaDevice" : { - "type" : "string" + "type" : "string", + "description" : "Visa device setting for Noise figure." }, "powerOnSCPI" : { - "type" : "string" + "type" : "string", + "description" : "Power on scpi setting for Noise figure." }, "powerOffSCPI" : { - "type" : "string" + "type" : "string", + "description" : "Power off scpi setting for Noise figure." }, "powerOnCommand" : { - "type" : "string" + "type" : "string", + "description" : "Power on command setting for Noise figure." }, "powerOffCommand" : { - "type" : "string" + "type" : "string", + "description" : "Power off command setting for Noise figure." }, "powerDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power delay setting for Noise figure." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12287,24 +16261,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12314,7 +16298,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "aos" : { "$ref" : "#/definitions/PERTesterActions_aos" @@ -12343,7 +16329,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "PERTester" @@ -12351,15 +16339,19 @@ margin-bottom: 20px; defs.PERTesterSettings = { "properties" : { "packetCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of packet events or items." }, "interval" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Interval setting for Per tester." }, "start" : { "type" : "integer", - "description" : "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass" + "description" : "0 - immediately, 1 - on satellite AOS, 2 - on satellite mid pass", + "minimum" : 0, + "maximum" : 2 }, "satellites" : { "type" : "array", @@ -12373,10 +16365,12 @@ margin-bottom: 20px; "description" : "Packet of data to send" }, "ignoreLeadingBytes" : { - "type" : "integer" + "type" : "integer", + "description" : "Ignore leading bytes setting for Per tester." }, "ignoreTrailingBytes" : { - "type" : "integer" + "type" : "integer", + "description" : "Ignore trailing bytes setting for Per tester." }, "txUDPAddress" : { "type" : "string", @@ -12395,28 +16389,39 @@ margin-bottom: 20px; "description" : "UDP port to receive packets via" }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12426,7 +16431,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/PSK31ModActions_payload" @@ -12440,7 +16447,8 @@ margin-bottom: 20px; "type" : "string", "description" : "PSK31 content to transmit" } - } + }, + "description" : "Payload data." }; defs.PSK31ModReport = { "properties" : { @@ -12450,7 +16458,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PSK31Mod" @@ -12459,30 +16468,43 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "text" : { "type" : "string", @@ -12490,24 +16512,36 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Psk31 mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Psk31 mod." }, "prefixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable prefix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "postfixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable postfix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive text to transmit on specified UDP port" + "description" : "Whether to receive text to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12515,13 +16549,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive text to transmit via" + "description" : "UDP port to receive text to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12529,24 +16567,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12560,7 +16608,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PacketDemod" @@ -12569,7 +16618,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "mode" : { "type" : "integer", @@ -12577,7 +16627,8 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "chase" : { "type" : "integer", @@ -12589,7 +16640,9 @@ margin-bottom: 20px; }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received packets to specified UDP port" + "description" : "Whether to forward received packets to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12597,22 +16650,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received packets to" + "description" : "UDP port to forward received packets to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12620,24 +16684,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12647,7 +16721,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit with current data\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit with current data\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/PacketModActions_payload" @@ -12658,18 +16734,23 @@ margin-bottom: 20px; defs.PacketModActions_payload = { "properties" : { "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "to" : { - "type" : "string" + "type" : "string", + "description" : "To action parameter." }, "via" : { - "type" : "string" + "type" : "string", + "description" : "Via action parameter." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." } - } + }, + "description" : "Payload data." }; defs.PacketModReport = { "properties" : { @@ -12679,10 +16760,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PacketMod" @@ -12691,11 +16774,14 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "modulation" : { "type" : "integer", - "description" : "Modulation mode\n * 0 - AFSK\n * 1 - FSK\n" + "description" : "Modulation mode\n * 0 - AFSK\n * 1 - FSK\n", + "minimum" : 0, + "maximum" : 1 }, "baud" : { "type" : "integer", @@ -12703,136 +16789,186 @@ margin-bottom: 20px; }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatDelay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Delay between repetitions." }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "rampUpBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp up bits setting for Packet mod." }, "rampDownBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp down bits setting for Packet mod." }, "rampRange" : { - "type" : "integer" + "type" : "integer", + "description" : "Ramp range setting for Packet mod." }, "modulateWhileRamping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "markFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Mark frequency in Hz." }, "spaceFrequency" : { - "type" : "integer" + "type" : "integer", + "description" : "Space frequency in Hz." }, "ax25PreFlags" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 pre flags setting for Packet mod." }, "ax25PostFlags" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 post flags setting for Packet mod." }, "ax25Control" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 control setting for Packet mod." }, "ax25PID" : { - "type" : "integer" + "type" : "integer", + "description" : "Ax25 pid setting for Packet mod." }, "preEmphasis" : { - "type" : "integer" + "type" : "integer", + "description" : "Pre emphasis setting for Packet mod." }, "preEmphasisTau" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pre emphasis tau setting for Packet mod." }, "preEmphasisHighFreq" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Pre emphasis high freq setting for Packet mod." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "bbNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "writeToFile" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Spectrum rate setting for Packet mod." }, "callsign" : { - "type" : "string" + "type" : "string", + "description" : "Radio callsign." }, "to" : { - "type" : "string" + "type" : "string", + "description" : "To setting for Packet mod." }, "via" : { - "type" : "string" + "type" : "string", + "description" : "Via setting for Packet mod." }, "data" : { - "type" : "string" + "type" : "string", + "description" : "Payload data." }, "bpf" : { - "type" : "integer" + "type" : "integer", + "description" : "Bpf setting for Packet mod." }, "bpfLowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bpf low cutoff setting for Packet mod." }, "bpfHighCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bpf high cutoff setting for Packet mod." }, "bpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Bpf taps setting for Packet mod." }, "scramble" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "polynomial" : { - "type" : "integer" + "type" : "integer", + "description" : "Polynomial setting for Packet mod." }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Packet mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Packet mod." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive packets to transmit on specified UDP port" + "description" : "Whether to receive packets to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12840,13 +16976,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive packets to transmit via" + "description" : "UDP port to receive packets to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12854,24 +16994,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12885,7 +17035,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "PagerDemod" @@ -12894,27 +17045,36 @@ margin-bottom: 20px; "properties" : { "decode" : { "type" : "integer", - "description" : "Decode mode\n * 0 - Standard\n * 1 - Inverted\n * 2 - Numeric\n * 3 - Alphanumeric\n * 4 - Heuristic\n" + "description" : "Decode mode\n * 0 - Standard\n * 1 - Inverted\n * 2 - Numeric\n * 3 - Alphanumeric\n * 4 - Heuristic\n", + "minimum" : 0, + "maximum" : 4 }, "reverse" : { "type" : "integer", - "description" : "Whether characters should be reversed, for right-to-left reading order\n * 0 - Straight\n * 1 - Reversed\n" + "description" : "Whether characters should be reversed, for right-to-left reading order\n * 0 - Straight\n * 1 - Reversed\n", + "minimum" : 0, + "maximum" : 1 }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -12922,19 +17082,27 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -12942,27 +17110,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -12972,6 +17151,7 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } @@ -12982,20 +17162,27 @@ margin-bottom: 20px; defs.PerseusSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 2 }, "adcDither" : { "type" : "integer", @@ -13010,15 +17197,21 @@ margin-bottom: 20px; "description" : "Wideband mode i.e. bypass automatic RF filter (1 if active else 0)" }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "attenuator" : { "type" : "integer", @@ -13026,16 +17219,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "Perseus" @@ -13043,17 +17243,21 @@ margin-bottom: 20px; defs.PlutoSdrInputReport = { "properties" : { "adcRate" : { - "type" : "integer" + "type" : "integer", + "description" : "ADC sample rate in samples per second." }, "rssi" : { - "type" : "string" + "type" : "string", + "description" : "Received signal strength indication." }, "gainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain dB in dB." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." } }, "description" : "PlutoSDR" @@ -13061,21 +17265,27 @@ margin-bottom: 20px; defs.PlutoSdrInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lpfFIREnable" : { "type" : "integer", - "description" : "Low pass FIR filter enable (1 if enabled else 0)" + "description" : "Low pass FIR filter enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { "type" : "integer", @@ -13083,7 +17293,9 @@ margin-bottom: 20px; }, "lpfFIRlog2Decim" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfFIRGain" : { "type" : "integer", @@ -13091,25 +17303,43 @@ margin-bottom: 20px; }, "fcPos" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwBBDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw bbdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwRFDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw rfdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwIQCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw i/q correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "lpfBW" : { "type" : "integer", @@ -13120,34 +17350,49 @@ margin-bottom: 20px; "description" : "Hardware gain" }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "gainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain-control mode selection." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13155,28 +17400,36 @@ margin-bottom: 20px; defs.PlutoSdrMIMOReport = { "properties" : { "adcRate" : { - "type" : "integer" + "type" : "integer", + "description" : "ADC sample rate in samples per second." }, "dacRate" : { - "type" : "integer" + "type" : "integer", + "description" : "DAC sample rate in samples per second." }, "rx0GainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain dB in dB." }, "rx1GainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain dB in dB." }, "rssiRx0" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi rx0." }, "rssiRx1" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi rx1." }, "rssiTx0" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi tx0." }, "rssiTx1" : { - "type" : "string" + "type" : "string", + "description" : "Reported rssi tx1." } }, "description" : "PlutoSDR" @@ -13184,47 +17437,72 @@ margin-bottom: 20px; defs.PlutoSdrMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwBBDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw bbdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwRFDCBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw rfdc block (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "hwIQCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable hw i/q correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "fcPosRx" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "rxTransverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive transverter mode setting for Pluto sdr MIMO." }, "rxTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWRx" : { "type" : "integer", @@ -13240,49 +17518,61 @@ margin-bottom: 20px; }, "lpfRxFIRlog2Decim" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of decimation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfRxFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "rx0Gain" : { "type" : "integer", "description" : "Hardware gain" }, "rx0GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 gain mode setting for Pluto sdr MIMO." }, "rx0AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx0 antenna path setting for Pluto sdr MIMO." }, "rx1Gain" : { "type" : "integer", "description" : "Hardware gain" }, "rx1GainMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 gain mode setting for Pluto sdr MIMO." }, "rx1AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Rx1 antenna path setting for Pluto sdr MIMO." }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "fcPosTx" : { "type" : "integer", - "description" : "0=Infra 1=Supra 2=Center" + "description" : "0=Infra 1=Supra 2=Center", + "minimum" : 0, + "maximum" : 2 }, "txTransverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit transverter mode setting for Pluto sdr MIMO." }, "txTransverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit frequency translation applied in transverter mode in Hz." }, "lpfBWTx" : { "type" : "integer", @@ -13298,41 +17588,53 @@ margin-bottom: 20px; }, "lpfTxFIRlog2Interp" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfTxFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "tx0Att" : { "type" : "integer", "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "tx0AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx0 antenna path setting for Pluto sdr MIMO." }, "tx1Att" : { "type" : "integer", "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "tx1AntennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Tx1 antenna path setting for Pluto sdr MIMO." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13340,14 +17642,17 @@ margin-bottom: 20px; defs.PlutoSdrOutputReport = { "properties" : { "dacRate" : { - "type" : "integer" + "type" : "integer", + "description" : "DAC sample rate in samples per second." }, "rssi" : { - "type" : "string" + "type" : "string", + "description" : "Received signal strength indication." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." } }, "description" : "PlutoSDR" @@ -13355,21 +17660,27 @@ margin-bottom: 20px; defs.PlutoSdrOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "lpfFIREnable" : { "type" : "integer", - "description" : "Low pass FIR filter enable (1 if enabled else 0)" + "description" : "Low pass FIR filter enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "lpfFIRBW" : { "type" : "integer", @@ -13377,14 +17688,17 @@ margin-bottom: 20px; }, "lpfFIRlog2Interp" : { "type" : "integer", - "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)" + "description" : "digital lowpass FIR filter log2 of interpolation factor (0..2)", + "minimum" : 0, + "maximum" : 2 }, "lpfFIRGain" : { "type" : "integer", "description" : "digital lowpass FIR filter gain (dB)" }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "lpfBW" : { "type" : "integer", @@ -13395,27 +17709,39 @@ margin-bottom: 20px; "description" : "Hardware attenuator gain in decibel fourths (negative)" }, "antennaPath" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected RF antenna path." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "PlutoSDR" @@ -13431,18 +17757,26 @@ margin-bottom: 20px; "description" : "Index of the source used in R0 tab (GUI flavor) at startup" }, "audioType" : { - "type" : "string" + "type" : "string", + "description" : "Audio type for Preferences." }, "audioDevice" : { - "type" : "string" + "type" : "string", + "description" : "Audio device for Preferences." }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "consoleMinLogLevel" : { "type" : "integer", @@ -13450,10 +17784,13 @@ margin-bottom: 20px; }, "useLogFile" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "logFileName" : { - "type" : "string" + "type" : "string", + "description" : "Log file name." }, "fileMinLogLevel" : { "type" : "integer", @@ -13466,37 +17803,49 @@ margin-bottom: 20px; "properties" : { "presetType" : { "type" : "integer", - "description" : "See Preset::PresetType" + "description" : "Which kind of device set the preset applies to\n * 0 - receiver\n * 1 - transmitter\n * 2 - MIMO\n", + "minimum" : 0, + "maximum" : 2 }, "group" : { - "type" : "string" + "type" : "string", + "description" : "Group for Preset." }, "description" : { - "type" : "string" + "type" : "string", + "description" : "Human-readable description." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "dcOffsetCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "iqImbalanceCorrection" : { "type" : "integer", - "description" : "boolean" + "description" : "boolean", + "minimum" : 0, + "maximum" : 1 }, "channelConfigs" : { "type" : "array", + "description" : "List of channel configs.", "items" : { "$ref" : "#/definitions/ChannelConfig" } }, "deviceConfigs" : { "type" : "array", + "description" : "List of device configs.", "items" : { "$ref" : "#/definitions/DeviceConfig" } @@ -13630,11 +17979,15 @@ margin-bottom: 20px; "properties" : { "demodStatus" : { "type" : "integer", - "description" : "Demodulation success (%)" + "description" : "Demodulation success (%)", + "minimum" : 0, + "maximum" : 100 }, "decodStatus" : { "type" : "integer", - "description" : "Decoding success (%)" + "description" : "Decoding success (%)", + "minimum" : 0, + "maximum" : 100 }, "rdsDemodAccumDB" : { "type" : "number", @@ -13680,6 +18033,7 @@ margin-bottom: 20px; }, "altFrequencies" : { "type" : "array", + "description" : "Alternative broadcast frequencies reported by RDS.", "items" : { "$ref" : "#/definitions/RDSReport_altFrequencies" } @@ -13691,7 +18045,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." } } }; @@ -13703,7 +18058,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "ACARSDemod" @@ -13712,22 +18068,28 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "baudRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Serial-port baud rate in bits per second." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -13735,37 +18097,57 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "characterSet" : { - "type" : "integer" + "type" : "integer", + "description" : "Character set setting for Rtty demod." }, "suppressCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Suppress crlf setting for Rtty demod." }, "unshiftOnSpace" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable unshift on space (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "msbFirst" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable msb first (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "spaceHigh" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable space high (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "squelch" : { - "type" : "integer" + "type" : "integer", + "description" : "Squelch threshold in dB." }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -13773,27 +18155,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -13803,7 +18196,9 @@ margin-bottom: 20px; "properties" : { "tx" : { "type" : "integer", - "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n" + "description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n", + "minimum" : 0, + "maximum" : 1 }, "payload" : { "$ref" : "#/definitions/RTTYModActions_payload" @@ -13817,7 +18212,8 @@ margin-bottom: 20px; "type" : "string", "description" : "RTTY content to transmit" } - } + }, + "description" : "Payload data." }; defs.RTTYModReport = { "properties" : { @@ -13827,7 +18223,8 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RTTYMod" @@ -13836,7 +18233,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "baud" : { "type" : "number", @@ -13844,30 +18242,43 @@ margin-bottom: 20px; "description" : "Baud rate" }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "repeat" : { - "type" : "integer" + "type" : "integer", + "description" : "Repeat transmission or playback (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "repeatCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of repetitions." }, "lpfTaps" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of low-pass FIR filter taps." }, "rfNoise" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "text" : { "type" : "string", @@ -13875,36 +18286,58 @@ margin-bottom: 20px; }, "pulseShaping" : { "type" : "integer", - "description" : "Boolean\n * 0 - off\n * 1 - on\n" + "description" : "Boolean\n * 0 - off\n * 1 - on\n", + "minimum" : 0, + "maximum" : 1 }, "beta" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Beta setting for Rtty mod." }, "symbolSpan" : { - "type" : "integer" + "type" : "integer", + "description" : "Symbol span setting for Rtty mod." }, "characterSet" : { - "type" : "integer" + "type" : "integer", + "description" : "Character set setting for Rtty mod." }, "unshiftOnSpace" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable unshift on space (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "msbFirst" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable msb first (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "spaceHigh" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable space high (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "prefixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable prefix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "postfixCRLF" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable postfix crlf (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to receive text to transmit on specified UDP port" + "description" : "Whether to receive text to transmit on specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -13912,13 +18345,17 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to receive text to transmit via" + "description" : "UDP port to receive text to transmit via", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -13926,24 +18363,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -13967,7 +18414,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RadioAstronomy" @@ -13976,84 +18424,110 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "integration" : { - "type" : "integer" + "type" : "integer", + "description" : "Integration setting for Radio astronomy." }, "fftSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT size in samples." }, "fftWindow" : { - "type" : "integer" + "type" : "integer", + "description" : "FFT window setting for Radio astronomy." }, "filterFreqs" : { - "type" : "string" + "type" : "string", + "description" : "Filter freqs setting for Radio astronomy." }, "starTracker" : { - "type" : "string" + "type" : "string", + "description" : "Star tracker setting for Radio astronomy." }, "rotator" : { - "type" : "string" + "type" : "string", + "description" : "Rotator setting for Radio astronomy." }, "runMode" : { "type" : "integer", - "description" : "(0 for single, 1 for continuous, 2 for sweep)" + "description" : "(0 for single, 1 for continuous, 2 for sweep)", + "minimum" : 0, + "maximum" : 2 }, "sweepStartAtTime" : { "type" : "integer", - "description" : "(0 for now, 1 for at sweepStartDateTime)" + "description" : "(0 for now, 1 for at sweepStartDateTime)", + "minimum" : 0, + "maximum" : 1 }, "sweepStartDateTime" : { - "type" : "string" + "type" : "string", + "description" : "Sweep start date time setting for Radio astronomy." }, "sweepType" : { "type" : "integer", - "description" : "(0 for Az/El, 1 for l/b, 2 for offset)" + "description" : "(0 for Az/El, 1 for l/b, 2 for offset)", + "minimum" : 0, + "maximum" : 2 }, "sweep1Start" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 start setting for Radio astronomy." }, "sweep1Stop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 stop setting for Radio astronomy." }, "sweep1Step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 step setting for Radio astronomy." }, "sweep1Delay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep1 delay setting for Radio astronomy." }, "sweep2Start" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 start setting for Radio astronomy." }, "sweep2Stop" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 stop setting for Radio astronomy." }, "sweep2Step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 step setting for Radio astronomy." }, "sweep2Delay" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Sweep2 delay setting for Radio astronomy." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14061,24 +18535,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14092,13 +18576,16 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "date" : { - "type" : "string" + "type" : "string", + "description" : "Reported date." }, "time" : { - "type" : "string" + "type" : "string", + "description" : "Reported time." } }, "description" : "RadioClock" @@ -14112,7 +18599,9 @@ margin-bottom: 20px; }, "frequencyMode" : { "type" : "integer", - "description" : "(0 for Offset, 1 for Absolute)" + "description" : "(0 for Offset, 1 for Absolute)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -14126,21 +18615,28 @@ margin-bottom: 20px; }, "threshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Threshold setting for Radio clock." }, "modulation" : { "type" : "integer", - "description" : "0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY" + "description" : "0 - MSF, 1 - DCF77, 2 - TDF, 3 - WWVB, 4 - JJY", + "minimum" : 0, + "maximum" : 4 }, "timezone" : { "type" : "integer", - "description" : "0 - Broadcast, 1 - Local, 2 - UTC" + "description" : "0 - Broadcast, 1 - Local, 2 - UTC", + "minimum" : 0, + "maximum" : 2 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14148,31 +18644,134 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "RadioClock" +}; + defs.Radiosonde = { + "properties" : { + "serial" : { + "type" : "string", + "description" : "Serial number, which identifies the sonde across a flight." + }, + "type" : { + "type" : "string", + "description" : "Sonde model, such as RS41." + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees, north positive.", + "minimum" : -90, + "maximum" : 90 + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees, east positive.", + "minimum" : -180, + "maximum" : 180 + }, + "altitude" : { + "type" : "number", + "format" : "float", + "description" : "Altitude in metres above mean sea level." + }, + "altitudeMax" : { + "type" : "number", + "format" : "float", + "description" : "Greatest altitude seen this flight in metres, which indicates the burst altitude." + }, + "speed" : { + "type" : "number", + "format" : "float", + "description" : "Ground speed in km/h." + }, + "verticalRate" : { + "type" : "number", + "format" : "float", + "description" : "Ascent rate in m/s. Negative after burst." + }, + "heading" : { + "type" : "number", + "format" : "float", + "description" : "Direction of travel in degrees true." + }, + "status" : { + "type" : "string", + "description" : "Status as reported by the sonde." + }, + "pressure" : { + "type" : "number", + "format" : "float", + "description" : "Atmospheric pressure in hPa." + }, + "temperature" : { + "type" : "number", + "format" : "float", + "description" : "Air temperature in degrees Celsius." + }, + "humidity" : { + "type" : "number", + "format" : "float", + "description" : "Relative humidity as a percentage." + }, + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Transmit frequency in Hz." + }, + "burstKillStatus" : { + "type" : "string", + "description" : "Whether the burst-kill timer is armed." + }, + "burstKillTimer" : { + "type" : "string", + "description" : "Time remaining on the burst-kill timer." + }, + "lastUpdate" : { + "type" : "string", + "description" : "When any field was last updated, ISO 8601." + }, + "messages" : { + "type" : "integer", + "description" : "Frames received from this radiosonde." + } + }, + "description" : "Radiosonde heard by the Radiosonde feature" }; defs.RadiosondeDemodReport = { "properties" : { @@ -14182,7 +18781,8 @@ margin-bottom: 20px; "description" : "power received in channel (dB)" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "RadiosondeDemod" @@ -14195,23 +18795,29 @@ margin-bottom: 20px; }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "correlationThreshold" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum correlation score required to accept a frame preamble." }, "udpEnabled" : { "type" : "integer", - "description" : "Whether to forward received messages to specified UDP port" + "description" : "Whether to forward received messages to specified UDP port", + "minimum" : 0, + "maximum" : 1 }, "udpAddress" : { "type" : "string", @@ -14219,22 +18825,33 @@ margin-bottom: 20px; }, "udpPort" : { "type" : "integer", - "description" : "UDP port to forward received messages to" + "description" : "UDP port to forward received messages to", + "minimum" : 1, + "maximum" : 65535 }, "logFilename" : { - "type" : "string" + "type" : "string", + "description" : "Log file name or path." }, "logEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable logging to the configured file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useFileTime" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable file time (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14242,67 +18859,111 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "scopeConfig" : { + "description" : "Oscilloscope-display configuration.", "$ref" : "#/definitions/GLScope" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "RadiosondeDemod" +}; + defs.RadiosondeReport = { + "properties" : { + "reportDateTime" : { + "type" : "string", + "description" : "When this snapshot was taken, ISO 8601." + }, + "radiosondeCount" : { + "type" : "integer", + "description" : "Number of radiosondes currently held." + }, + "radiosondes" : { + "type" : "array", + "description" : "The radiosondes heard.", + "items" : { + "$ref" : "#/definitions/Radiosonde" + } + } + }, + "description" : "Radiosondes heard by the Radiosonde feature, which collects the decoded frames of every radiosonde demodulator in the instance. A field is present only once a frame carrying it has been received.\n" }; defs.RadiosondeSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "radiosondesColumnIndexes" : { "type" : "array", + "description" : "List of radiosondes column indexes.", "items" : { "type" : "integer" } }, "radiosondesColumnSizes" : { "type" : "array", + "description" : "List of radiosondes column sizes.", "items" : { "type" : "integer" } @@ -14313,17 +18974,21 @@ margin-bottom: 20px; defs.Range = { "properties" : { "min" : { - "type" : "integer" + "type" : "integer", + "description" : "Minimum value of the range." }, "max" : { - "type" : "integer" + "type" : "integer", + "description" : "Maximum value of the range." }, "step" : { - "type" : "integer" + "type" : "integer", + "description" : "Increment between adjacent supported values." }, "scale" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Scale factor applied to the value." } }, "description" : "An arbitrary range of integer values" @@ -14332,15 +18997,18 @@ margin-bottom: 20px; "properties" : { "min" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Minimum value of the range." }, "max" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Maximum value of the range." }, "step" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Increment between adjacent supported values." } }, "description" : "An arbitrary range of floating point values" @@ -14349,10 +19017,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "bufferRWBalance" : { "type" : "integer", @@ -14376,45 +19046,70 @@ margin-bottom: 20px; defs.RemoteInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "apiAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the API endpoint." }, "apiPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the API endpoint.", + "minimum" : 1, + "maximum" : 65535 }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "multicastAddress" : { - "type" : "string" + "type" : "string", + "description" : "IP multicast group address." }, "multicastJoin" : { "type" : "integer", - "description" : "Join multicast group * 0 - leave group * 1 - join group\n" + "description" : "Join multicast group * 0 - leave group * 1 - join group\n", + "minimum" : 0, + "maximum" : 1 }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteInput" @@ -14423,10 +19118,12 @@ margin-bottom: 20px; "properties" : { "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "queueLength" : { "type" : "integer", @@ -14462,26 +19159,36 @@ margin-bottom: 20px; defs.RemoteOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "nbFECBlocks" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb fec blocks setting for Remote output." }, "nbTxBytes" : { "type" : "integer", "description" : "Number of bytes in a transmitted I or Q sample\n * 1\n * 2\n * 4\n" }, "apiAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the API endpoint." }, "apiPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the API endpoint.", + "minimum" : 1, + "maximum" : 65535 }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "deviceIndex" : { "type" : "integer", @@ -14493,16 +19200,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteOutput" @@ -14527,19 +19241,25 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Receiving USB data port" + "description" : "Receiving USB data port", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "streamIndex" : { "type" : "integer", @@ -14547,24 +19267,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14636,19 +19366,25 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Remote USB data port" + "description" : "Remote USB data port", + "minimum" : 1, + "maximum" : 65535 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "filterChainHash" : { - "type" : "integer" + "type" : "integer", + "description" : "Identifier of the selected half-band filter chain." }, "streamIndex" : { "type" : "integer", @@ -14656,24 +19392,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14682,19 +19428,27 @@ margin-bottom: 20px; defs.RemoteTCPInputReport = { "properties" : { "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "latitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Latitude in degrees, positive north.", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Longitude in degrees, positive east.", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Altitude above mean sea level." } }, "description" : "RemoteTCPInput" @@ -14702,69 +19456,102 @@ margin-bottom: 20px; defs.RemoteTCPInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable the antenna bias tee (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "directSampling" : { - "type" : "integer" + "type" : "integer", + "description" : "Direct sampling setting for Remote TCP input." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bw in Hz." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "channelGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel gain setting for Remote TCP input." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "channelDecimation" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel decimation setting for Remote TCP input." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for data traffic." }, "dataPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Network port used for data traffic.", + "minimum" : 1, + "maximum" : 65535 }, "overrideRemoteSettings" : { - "type" : "integer" + "type" : "integer", + "description" : "Override remote settings setting for Remote TCP input." }, "preFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Pre fill setting for Remote TCP input." }, "protocol" : { "type" : "string", @@ -14772,16 +19559,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RemoteTCPInput" @@ -14789,17 +19583,21 @@ margin-bottom: 20px; defs.RemoteTCPSinkSettings = { "properties" : { "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "sampleBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of significant bits in each sample." }, "dataAddress" : { "type" : "string", @@ -14807,16 +19605,21 @@ margin-bottom: 20px; }, "dataPort" : { "type" : "integer", - "description" : "Receiving TCP data port" + "description" : "Receiving TCP data port", + "minimum" : 1, + "maximum" : 65535 }, "protocol" : { - "type" : "integer" + "type" : "integer", + "description" : "Protocol setting for Remote TCP sink." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -14824,24 +19627,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14851,7 +19664,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "RigCtl server actions" @@ -14860,7 +19675,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "RigCtl server report" @@ -14869,43 +19686,60 @@ margin-bottom: 20px; "properties" : { "enabled" : { "type" : "integer", - "description" : "Enable RigCtl server\n * 1 - enabled\n * 0 - disabled\n" + "description" : "Enable RigCtl server\n * 1 - enabled\n * 0 - disabled\n", + "minimum" : 0, + "maximum" : 1 }, "rigCtlPort" : { - "type" : "integer" + "type" : "integer", + "description" : "Rig ctl port." }, "maxFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Max frequency offset in Hz." }, "deviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected device index." }, "channelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected channel index." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n" + "description" : "Synchronize with reverse API\n * 1 - yes\n * 0 - no\n", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -14914,11 +19748,14 @@ margin-bottom: 20px; defs.RollupChildState = { "properties" : { "objectName" : { - "type" : "string" + "type" : "string", + "description" : "Object name for Rollup child state." }, "isHidden" : { "type" : "integer", - "description" : "Boolean - child hidden state\n * 0 - visible\n * 1 - hidden\n" + "description" : "Boolean - child hidden state\n * 0 - visible\n * 1 - hidden\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Rollup widget child state" @@ -14926,10 +19763,12 @@ margin-bottom: 20px; defs.RollupState = { "properties" : { "version" : { - "type" : "integer" + "type" : "integer", + "description" : "Version for Rollup state." }, "childrenStates" : { "type" : "array", + "description" : "List of children states.", "items" : { "$ref" : "#/definitions/RollupChildState" } @@ -14941,12 +19780,14 @@ margin-bottom: 20px; "properties" : { "gains" : { "type" : "array", + "description" : "List of gains.", "items" : { "$ref" : "#/definitions/Gain" } }, "tunerType" : { - "type" : "string" + "type" : "string", + "description" : "Reported tuner type." } }, "description" : "RTLSDR" @@ -14954,75 +19795,116 @@ margin-bottom: 20px; defs.RtlSdrSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "RTL-SDR device I/Q sample rate in samples per second before software decimation. The baseband sample rate delivered to channels is devSampleRate / 2^log2Decim.\n" }, "lowSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Use the RTL-SDR low sample-rate range (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner gain in tenths of a dB, so 496 means 49.6 dB. Only the discrete values the tuner supports can be used; they are listed in the gains field of RtlSdrReport, which must be read from the device report before setting this. Ignored unless agc is disabled.\n" }, "loPpmCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in parts per million." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor. The baseband sample rate delivered to channels is devSampleRate / 2^log2Decim and must be high enough for every channel's RF bandwidth. For example, broadcast FM with 180 kHz RF bandwidth should use at least 240 kS/s (256 kS/s is recommended); at 1.024 MS/s set log2Decim to 2, not 4.\n", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqImbalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "noModMode" : { - "type" : "integer" + "type" : "integer", + "description" : "No mod mode setting for Rtl sdr." }, "offsetTuning" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable tuner offset tuning (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "rfBandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "RF bandwidth in Hz." }, "biasTee" : { "type" : "integer", - "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n" + "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "RTLSDR" @@ -15031,24 +19913,28 @@ margin-bottom: 20px; "properties" : { "sampleRates" : { "type" : "array", + "description" : "Supported sample rates in samples per second.", "items" : { "$ref" : "#/definitions/SampleRate" } }, "bandwidths" : { "type" : "array", + "description" : "Supported bandwidths in Hz.", "items" : { "$ref" : "#/definitions/Bandwidth" } }, "intermediateFrequencies" : { "type" : "array", + "description" : "List of intermediate frequencies.", "items" : { "$ref" : "#/definitions/Frequency" } }, "frequencyBands" : { "type" : "array", + "description" : "List of frequency bands.", "items" : { "$ref" : "#/definitions/FrequencyBand" } @@ -15059,71 +19945,101 @@ margin-bottom: 20px; defs.SDRPlaySettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "tunerGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner gain setting for Sdr play." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "frequencyBandIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected frequency band index." }, "ifFrequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if frequency index." }, "bandwidthIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bandwidth index." }, "devSampleRateIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected dev sample rate index." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "tunerGainMode" : { "type" : "integer", "description" : "1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain" }, "lnaOn" : { - "type" : "integer" + "type" : "integer", + "description" : "LNA on setting for Sdr play." }, "mixerAmpOn" : { - "type" : "integer" + "type" : "integer", + "description" : "Mixer amp on setting for Sdr play." }, "basebandGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Baseband gain setting for Sdr play." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SDRplay1" @@ -15136,12 +20052,14 @@ margin-bottom: 20px; }, "bandwidths" : { "type" : "array", + "description" : "Supported bandwidths in Hz.", "items" : { "$ref" : "#/definitions/Bandwidth" } }, "intermediateFrequencies" : { "type" : "array", + "description" : "List of intermediate frequencies.", "items" : { "$ref" : "#/definitions/Frequency" } @@ -15152,94 +20070,134 @@ margin-bottom: 20px; defs.SDRPlayV3Settings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "ifFrequencyIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected if frequency index." }, "bandwidthIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected bandwidth index." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim.", + "minimum" : 0, + "maximum" : 6 }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "lnaIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected lna index." }, "lnaGain" : { "type" : "integer", "description" : "Gain in dB, as an alternative to lnaIndex setting" }, "ifAGC" : { - "type" : "integer" + "type" : "integer", + "description" : "IF agc setting for Sdr play v3." }, "ifGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Intermediate-frequency gain setting." }, "amNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "Am notch setting for Sdr play v3." }, "fmNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "FM notch setting for Sdr play v3." }, "dabNotch" : { - "type" : "integer" + "type" : "integer", + "description" : "Dab notch setting for Sdr play v3." }, "extRef" : { - "type" : "integer" + "type" : "integer", + "description" : "Ext ref setting for Sdr play v3." }, "tuner" : { - "type" : "integer" + "type" : "integer", + "description" : "Tuner setting for Sdr play v3." }, "antenna" : { - "type" : "integer" + "type" : "integer", + "description" : "Antenna setting for Sdr play v3." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "biasTee" : { "type" : "integer", - "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n" + "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SDRplayV3" @@ -15248,43 +20206,59 @@ margin-bottom: 20px; "properties" : { "period" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Period setting for Sid." }, "autosave" : { - "type" : "integer" + "type" : "integer", + "description" : "Autosave setting for Sid." }, "autoload" : { - "type" : "integer" + "type" : "integer", + "description" : "Autoload setting for Sid." }, "filename" : { - "type" : "integer" + "type" : "string", + "description" : "File that measurements are written to and read back from when autosave or autoload is enabled.\n" }, "autosavePeriod" : { - "type" : "integer" + "type" : "integer", + "description" : "Autosave period setting for Sid." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15302,10 +20276,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "SSBDemod" @@ -15314,29 +20290,37 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "filterIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected filter index." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Bartlett\n * 1 - Blackman-Harris 4 term\n * 2 - Flattop\n * 3 - Hamming\n * 4 - Hanning\n * 5 - Rectangle\n * 6 - Kaiser\n * 7 - Blackman 3 term\n * 8 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 8 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioBinaural" : { "type" : "integer", @@ -15352,11 +20336,15 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "agcClamping" : { "type" : "integer", @@ -15376,11 +20364,15 @@ margin-bottom: 20px; }, "dnr" : { "type" : "integer", - "description" : "Toggle noise reduction:\n * 0 - Noise reduction off\n * 1 - Noise reduction on\n" + "description" : "Toggle noise reduction:\n * 0 - Noise reduction off\n * 1 - Noise reduction on\n", + "minimum" : 0, + "maximum" : 1 }, "dnrScheme" : { "type" : "integer", - "description" : "Noise reduction scheme:\n * 0 - Average of magnitudes\n * 1 - Average and standard deviation of magnitudes\n * 2 - Magnitude maxima (peaks)\n" + "description" : "Noise reduction scheme:\n * 0 - Average of magnitudes\n * 1 - Average and standard deviation of magnitudes\n * 2 - Magnitude maxima (peaks)\n", + "minimum" : 0, + "maximum" : 2 }, "dnrAboveAvgFactor" : { "type" : "number", @@ -15399,16 +20391,21 @@ margin-bottom: 20px; "dnrAlpha" : { "type" : "number", "format" : "float", - "description" : "Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1." + "description" : "Smoothing constant (alpha) of the exponential smoothing filter. Must be between 0 and 1.", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -15416,27 +20413,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15450,10 +20458,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "SSBMod" @@ -15462,65 +20472,90 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "bandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "usb" : { - "type" : "integer" + "type" : "integer", + "description" : "USB setting for Ssb mod." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Ssb mod." }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "audioBinaural" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio binaural setting for Ssb mod." }, "audioFlipChannels" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio flip channels setting for Ssb mod." }, "dsb" : { - "type" : "integer" + "type" : "integer", + "description" : "Dsb setting for Ssb mod." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "agc" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable automatic gain control (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "cmpPreGainDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Cmp pre gain dB in dB." }, "cmpThresholdDB" : { - "type" : "integer" + "type" : "integer", + "description" : "Cmp threshold dB in dB." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -15528,30 +20563,42 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15560,7 +20607,8 @@ margin-bottom: 20px; defs.SampleRate = { "properties" : { "rate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." } }, "description" : "A sample rate expressed in samples per second (S/s)" @@ -15648,15 +20696,21 @@ margin-bottom: 20px; }, "startOnAOS" : { "type" : "integer", - "description" : "Start acquisition on AOS (1 for yes, 0 for no)" + "description" : "Start acquisition on AOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "stopOnLOS" : { "type" : "integer", - "description" : "Stop acquisition on LOS (1 for yes, 0 for no)" + "description" : "Stop acquisition on LOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "startStopFileSinks" : { "type" : "integer", - "description" : "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)" + "description" : "Start/stop file sinks on AOS/LOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "frequency" : { "type" : "integer", @@ -15710,17 +20764,22 @@ margin-bottom: 20px; defs.SatelliteState = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude of satellite in degrees" + "description" : "Latitude of satellite in degrees", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude of satellite in degrees" + "description" : "Longitude of satellite in degrees", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -15759,6 +20818,7 @@ margin-bottom: 20px; }, "passes" : { "type" : "array", + "description" : "List of passes.", "items" : { "$ref" : "#/definitions/SatellitePass" } @@ -15769,7 +20829,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Satellite Tracker actions" @@ -15778,18 +20840,23 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "targetAzimuth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target azimuth in degrees clockwise from north." }, "targetElevation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Target elevation in degrees above the horizon." }, "satelliteState" : { "type" : "array", + "description" : "List of satellite state.", "items" : { "$ref" : "#/definitions/SatelliteState" } @@ -15802,12 +20869,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of antenna location" + "description" : "Latitude in decimal degrees (North positive) of antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of antenna location" + "description" : "Longitude in decimal degrees (East positive) of antenna location", + "minimum" : -180, + "maximum" : 180 }, "heightAboveSeaLevel" : { "type" : "number", @@ -15897,11 +20968,15 @@ margin-bottom: 20px; }, "drawOnMap" : { "type" : "integer", - "description" : "Draw satellites on the Map (1 for yes, 0 for no)" + "description" : "Draw satellites on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "autoTarget" : { "type" : "integer", - "description" : "Automatically select target on AOS (1 for yes, 0 for no)" + "description" : "Automatically select target on AOS (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "aosSpeech" : { "type" : "string", @@ -15928,35 +21003,48 @@ margin-bottom: 20px; }, "azimuthOffset" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Azimuth offset setting for Satellite tracker." }, "elevationOffset" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Elevation offset setting for Satellite tracker." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -15966,11 +21054,15 @@ margin-bottom: 20px; "properties" : { "playTrack" : { "type" : "integer", - "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n" + "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n", + "minimum" : 0, + "maximum" : 1 }, "playRecord" : { "type" : "integer", - "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n" + "description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n", + "minimum" : 0, + "maximum" : 1 }, "seekTrack" : { "type" : "integer", @@ -15999,26 +21091,37 @@ margin-bottom: 20px; }, "sampleFormat" : { "type" : "integer", - "description" : "Sample format * 0 - integer * 1 - float\n" + "description" : "Sample format * 0 - integer * 1 - float\n", + "minimum" : 0, + "maximum" : 1 }, "sampleSigned" : { "type" : "integer", - "description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n" + "description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n", + "minimum" : 0, + "maximum" : 1 }, "sampleSwapIQ" : { "type" : "integer", - "description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n" + "description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n", + "minimum" : 0, + "maximum" : 1 }, "crcStatus" : { "type" : "integer", - "description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n" + "description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n", + "minimum" : 0, + "maximum" : 2 }, "totalBytesStatus" : { "type" : "integer", - "description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n" + "description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n", + "minimum" : 0, + "maximum" : 1 }, "captures" : { "type" : "array", + "description" : "List of captures.", "items" : { "$ref" : "#/definitions/Capture" } @@ -16063,7 +21166,8 @@ margin-bottom: 20px; defs.SigMFFileInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "fileName" : { "type" : "string", @@ -16083,16 +21187,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SigMFFileInput" @@ -16101,7 +21212,9 @@ margin-bottom: 20px; "properties" : { "record" : { "type" : "integer", - "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n" + "description" : "Record action\n * 0 - stop recording\n * 1 - start recording\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "SigMFFileSink" @@ -16110,7 +21223,9 @@ margin-bottom: 20px; "properties" : { "spectrumSquelch" : { "type" : "integer", - "description" : "Spectrum squelch status * 0 - closed * 1 - open\n" + "description" : "Spectrum squelch status * 0 - closed * 1 - open\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumMax" : { "type" : "number", @@ -16118,14 +21233,18 @@ margin-bottom: 20px; "description" : "Current spectrum max in squared magnitude (power)" }, "sinkSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate accepted by the sink in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." }, "recording" : { "type" : "integer", - "description" : "Recording status * 0 - not recording * 1 - recording\n" + "description" : "Recording status * 0 - not recording * 1 - recording\n", + "minimum" : 0, + "maximum" : 1 }, "recordTimeMs" : { "type" : "integer", @@ -16146,24 +21265,30 @@ margin-bottom: 20px; defs.SigMFFileSinkSettings = { "properties" : { "inputFrequencyOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "fileRecordName" : { "type" : "string", "description" : "full path of the meta file" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "spectrumSquelchMode" : { "type" : "integer", - "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n" + "description" : "Spectrum squelch system * 0 - deactivated * 1 - activated\n", + "minimum" : 0, + "maximum" : 1 }, "spectrumSquelch" : { "type" : "number", @@ -16180,7 +21305,9 @@ margin-bottom: 20px; }, "squelchRecordingEnable" : { "type" : "integer", - "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n" + "description" : "Automatic recording triggered by spectrum squelch * 0 - disabled * 1 - enabled\n", + "minimum" : 0, + "maximum" : 1 }, "log2RecordSampleSize" : { "type" : "integer", @@ -16192,27 +21319,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16222,11 +21360,15 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 }, "ptt" : { "type" : "integer", - "description" : "PTT action\n * 0 - release\n * 1 - engage\n" + "description" : "PTT action\n * 0 - release\n * 1 - engage\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Simple PTT actions" @@ -16235,11 +21377,15 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 }, "ptt" : { "type" : "integer", - "description" : "PTT status\n * 0 - released\n * 1 - engaged\n" + "description" : "PTT status\n * 0 - released\n * 1 - engaged\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Simple PTT report" @@ -16247,10 +21393,12 @@ margin-bottom: 20px; defs.SimplePTTSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "rxDeviceSetIndex" : { "type" : "integer", @@ -16270,11 +21418,15 @@ margin-bottom: 20px; }, "vox" : { "type" : "integer", - "description" : "Activate vox system\n * 0 - not active\n * 1 - active\n" + "description" : "Activate vox system\n * 0 - not active\n * 1 - active\n", + "minimum" : 0, + "maximum" : 1 }, "voxEnable" : { "type" : "integer", - "description" : "Allow vox to control PTT\n * 0 - vox does not control PTT\n * 1 - vox controls PTT\n" + "description" : "Allow vox to control PTT\n * 0 - vox does not control PTT\n * 1 - vox controls PTT\n", + "minimum" : 0, + "maximum" : 1 }, "voxLevel" : { "type" : "integer", @@ -16285,15 +21437,20 @@ margin-bottom: 20px; "description" : "Vox hold timeout in milliseconds" }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "gpioControl" : { "type" : "integer", - "description" : "GPIO control\n * 0 - No GPIO control\n * 1 - Rx side controls GPIO\n * 2 - Tx side controls GPIO\n" + "description" : "GPIO control\n * 0 - No GPIO control\n * 1 - Rx side controls GPIO\n * 2 - Tx side controls GPIO\n", + "minimum" : 0, + "maximum" : 2 }, "rx2txGPIOEnable" : { "type" : "integer", - "description" : "Enable Rx to Tx GPIO control\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Rx to Tx GPIO control\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "rx2txGPIOMask" : { "type" : "integer", @@ -16307,7 +21464,9 @@ margin-bottom: 20px; }, "rx2txCommandEnable" : { "type" : "integer", - "description" : "Enable Rx to Tx command\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Rx to Tx command\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "rx2txCommand" : { "type" : "string", @@ -16315,7 +21474,9 @@ margin-bottom: 20px; }, "tx2rxGPIOEnable" : { "type" : "integer", - "description" : "Enable Tx to Rx GPIO control\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Tx to Rx GPIO control\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "tx2rxGPIOMask" : { "type" : "integer", @@ -16329,7 +21490,9 @@ margin-bottom: 20px; }, "tx2rxCommandEnable" : { "type" : "integer", - "description" : "Enable Tx to Rx command\n * 0 - disable\n * 1 - enable\n" + "description" : "Enable Tx to Rx command\n * 0 - disable\n * 1 - enable\n", + "minimum" : 0, + "maximum" : 1 }, "tx2rxCommand" : { "type" : "string", @@ -16337,21 +21500,30 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16385,12 +21557,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16419,23 +21595,33 @@ margin-bottom: 20px; "properties" : { "displayNames" : { "type" : "integer", - "description" : "Display names on the sky map (1 for yes, 0 for no)" + "description" : "Display names on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayConstellations" : { "type" : "integer", - "description" : "Display constellations on the sky map (1 for yes, 0 for no)" + "description" : "Display constellations on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayReticle" : { "type" : "integer", - "description" : "Display reticle on the sky map (1 for yes, 0 for no)" + "description" : "Display reticle on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayGrid" : { "type" : "integer", - "description" : "Display grid on the sky map (1 for yes, 0 for no)" + "description" : "Display grid on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "displayAntennaFoV" : { "type" : "integer", - "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "map" : { "type" : "string", @@ -16446,7 +21632,8 @@ margin-bottom: 20px; "description" : "Name of background image set" }, "projection" : { - "type" : "string" + "type" : "string", + "description" : "Projection setting for Sky map." }, "source" : { "type" : "string", @@ -16459,12 +21646,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16479,31 +21670,44 @@ margin-bottom: 20px; "useMyPosition" : { "type" : "number", "format" : "float", - "description" : "Use My Position instead of latitude/longitude settings" + "description" : "Use My Position instead of latitude/longitude settings", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -16524,12 +21728,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16563,12 +21771,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "altitude" : { "type" : "number", @@ -16590,10 +21802,12 @@ margin-bottom: 20px; defs.SoapySDRFrequencySetting = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "ranges" : { "type" : "array", + "description" : "List of ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } @@ -16604,9 +21818,11 @@ margin-bottom: 20px; defs.SoapySDRGainSetting = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "range" : { + "description" : "Range configuration for Definitions.", "$ref" : "#/definitions/RangeFloat" } }, @@ -16615,107 +21831,144 @@ margin-bottom: 20px; defs.SoapySDRInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "softDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "softIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterMode" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "antenna" : { - "type" : "string" + "type" : "string", + "description" : "Antenna setting for Soapy sdr input." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "tunableElements" : { "type" : "array", + "description" : "List of tunable elements.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "individualGains" : { "type" : "array", + "description" : "List of individual gains.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "autoGain" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "dcCorrection" : { + "description" : "Enable DC-offset correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "iqCorrection" : { + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "streamArgSettings" : { "type" : "array", + "description" : "List of stream arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "deviceArgSettings" : { "type" : "array", + "description" : "List of device arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SoapySDR" @@ -16723,92 +21976,122 @@ margin-bottom: 20px; defs.SoapySDROutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "LOppmTenths" : { - "type" : "integer" + "type" : "integer", + "description" : "Local-oscillator correction in tenths of a part per million." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp." }, "transverterMode" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "antenna" : { - "type" : "string" + "type" : "string", + "description" : "Antenna setting for Soapy sdr output." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "tunableElements" : { "type" : "array", + "description" : "List of tunable elements.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "globalGain" : { - "type" : "integer" + "type" : "integer", + "description" : "Overall device gain setting." }, "individualGains" : { "type" : "array", + "description" : "List of individual gains.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "autoGain" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoDCCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "autoIQCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "dcCorrection" : { + "description" : "Enable DC-offset correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "iqCorrection" : { + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", "$ref" : "#/definitions/Complex" }, "streamArgSettings" : { "type" : "array", + "description" : "List of stream arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "deviceArgSettings" : { "type" : "array", + "description" : "List of device arg settings.", "items" : { "$ref" : "#/definitions/ArgValue" } }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "SoapySDR" @@ -16817,86 +22100,141 @@ margin-bottom: 20px; "properties" : { "deviceSettingsArgs" : { "type" : "array", + "description" : "List of device settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "streamSettingsArgs" : { "type" : "array", + "description" : "List of stream settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "hasDCAutoCorrection" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasDCOffsetValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasIQBalanceValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "hasFrequencyCorrectionValue" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "antennas" : { "type" : "array", + "description" : "List of antennas.", "items" : { "type" : "string" } }, "hasAGC" : { "type" : "integer", - "description" : "boolean not zero for true" + "description" : "boolean not zero for true", + "minimum" : 0, + "maximum" : 1 }, "gainRange" : { + "description" : "Gain range data for Soapy sdr.", "$ref" : "#/definitions/RangeFloat" }, "gainSettings" : { "type" : "array", + "description" : "List of gain settings.", "items" : { "$ref" : "#/definitions/SoapySDRGainSetting" } }, "frequencySettings" : { "type" : "array", + "description" : "List of frequency settings.", "items" : { "$ref" : "#/definitions/SoapySDRFrequencySetting" } }, "frequencySettingsArgs" : { "type" : "array", + "description" : "List of frequency settings args.", "items" : { "$ref" : "#/definitions/ArgInfo" } }, "ratesRanges" : { "type" : "array", + "description" : "List of rates ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } }, "bandwidthsRanges" : { "type" : "array", + "description" : "List of bandwidths ranges.", "items" : { "$ref" : "#/definitions/RangeFloat" } } }, "description" : "SoapySDR" +}; + defs.SpectrumActions = { + "properties" : { + "autoscale" : { + "type" : "integer", + "description" : "Set the reference level and range from the spectrum currently displayed, as the autoscale button does. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "clearSpectrum" : { + "type" : "integer", + "description" : "Discard the accumulated histogram and max hold traces, as the clear button does. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "resetMeasurements" : { + "type" : "integer", + "description" : "Discard the accumulated measurement statistics, so the minimum, maximum and mean columns start again. Needs a running GUI (1 to do it, 0 to do nothing).\n", + "minimum" : 0, + "maximum" : 1 + }, + "freeze" : { + "type" : "integer", + "description" : "Stop or resume spectrum processing. Unlike the others this acts on the spectrum itself rather than its display, so it works without a GUI (1 to freeze, 0 to resume).\n", + "minimum" : 0, + "maximum" : 1 + }, + "gotoMarker" : { + "type" : "integer", + "description" : "Retune the device to the annotation marker at this index, counting from 0, as choosing it in the goto list does. Needs a running GUI.\n", + "minimum" : 0 + } + }, + "description" : "Actions on the main spectrum of a device set" }; defs.SpectrumAnnotationMarker = { "properties" : { "startFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Start frequency in Hz." }, "bandwidth" : { - "type" : "integer" + "type" : "integer", + "description" : "Bandwidth in Hz." }, "markerColor" : { "type" : "integer", @@ -16904,7 +22242,13 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "SpectrumAnnotationMarker::ShowState - Marker display state\n * 0 - Hidden\n * 1 - Only top marker visible\n * 2 - Fully visible with text and full sized limits\n" + "description" : "SpectrumAnnotationMarker::ShowState - Marker display state\n * 0 - Hidden\n * 1 - Only top marker visible\n * 2 - Fully visible with text and full sized limits\n * 3 - Text only\n", + "minimum" : 0, + "maximum" : 3 + }, + "text" : { + "type" : "string", + "description" : "Text displayed against the marker." } }, "description" : "Spectrum annotation marker settings" @@ -16913,15 +22257,18 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency in Hz." }, "powerRelativeReference" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power relative reference for Spectrum calibration point." }, "powerAbsoluteReference" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Power absolute reference for Spectrum calibration point." } }, "description" : "Spectrum calibration point settings" @@ -16930,7 +22277,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." }, "power" : { "type" : "number", @@ -16939,7 +22287,9 @@ margin-bottom: 20px; }, "markerType" : { "type" : "integer", - "description" : "Marker type\n * 0 - Fixed power\n * 1 - Current power\n * 2 - Max power\n" + "description" : "Marker type\n * 0 - Fixed power\n * 1 - Current power\n * 2 - Max power\n", + "minimum" : 0, + "maximum" : 2 }, "markerColor" : { "type" : "integer", @@ -16947,10 +22297,87 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n" + "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Spectrum histogram marker settings" +}; + defs.SpectrumHistorySignal = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the strongest bin in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Lower edge in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Upper edge in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width in Hz, to the bin." + }, + "peakDb" : { + "type" : "number", + "format" : "float" + }, + "dutyCycle" : { + "type" : "number", + "format" : "float", + "description" : "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + }, + "firstSeen" : { + "type" : "string", + "description" : "Time of the first row it was up in, ISO 8601." + }, + "lastSeen" : { + "type" : "string", + "description" : "Time of the last row it was up in, ISO 8601." + } + }, + "description" : "A signal found in the spectrum history" +}; + defs.SpectrumMemorySettings = { + "properties" : { + "display" : { + "type" : "integer", + "description" : "Display this saved spectrum memory (1 for yes, 0 for no).", + "minimum" : 0, + "maximum" : 1 + }, + "color" : { + "type" : "integer", + "description" : "Display colour encoded as an RGB integer." + }, + "label" : { + "type" : "string", + "description" : "User-visible label for this saved spectrum memory." + } + }, + "description" : "Display settings for one saved spectrum memory. The captured spectrum samples are not transferred through settings APIs." +}; + defs.SpectrumPeak = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the peak in Hz." + }, + "power" : { + "type" : "number", + "format" : "float", + "description" : "Power of the peak in dB." + } + }, + "description" : "One peak found in the spectrum" }; defs.SpectrumServer = { "properties" : { @@ -16988,7 +22415,8 @@ margin-bottom: 20px; "properties" : { "frequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Frequency in Hz." }, "time" : { "type" : "number", @@ -17001,7 +22429,9 @@ margin-bottom: 20px; }, "show" : { "type" : "integer", - "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n" + "description" : "Boolean - Marker display state\n * 0 - Hidden\n * 1 - Visible\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Spectrum waterfall marker settings" @@ -17010,7 +22440,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "Star Tracker actions" @@ -17018,7 +22450,8 @@ margin-bottom: 20px; defs.StarTrackerDisplayLoSSettings = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "b" : { "type" : "number", @@ -17041,7 +22474,8 @@ margin-bottom: 20px; defs.StarTrackerDisplayLoSSettings_2 = { "properties" : { "name" : { - "type" : "string" + "type" : "string", + "description" : "Name." }, "b" : { "type" : "number", @@ -17103,7 +22537,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "RigCtl server report" @@ -17155,12 +22591,16 @@ margin-bottom: 20px; "latitude" : { "type" : "number", "format" : "float", - "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location", + "minimum" : -90, + "maximum" : 90 }, "longitude" : { "type" : "number", "format" : "float", - "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location", + "minimum" : -180, + "maximum" : 180 }, "dateTime" : { "type" : "string", @@ -17202,7 +22642,9 @@ margin-bottom: 20px; }, "stellariumServerEnabled" : { "type" : "integer", - "description" : "Enable Stellarium server (1 for yes, 0 for no)" + "description" : "Enable Stellarium server (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "stellariumPort" : { "type" : "integer", @@ -17219,39 +22661,56 @@ margin-bottom: 20px; }, "drawSunOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "drawMoonOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "drawStarOnMap" : { "type" : "integer", - "description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)" + "description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -17435,20 +22894,28 @@ margin-bottom: 20px; defs.TestMISettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "streams" : { "type" : "array", @@ -17463,18 +22930,24 @@ margin-bottom: 20px; defs.TestMOSyncSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "sampleRate" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Sample rate in samples per second." }, "log2Interp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor; the output sample rate is multiplied by 2^log2Interp.", + "minimum" : 0, + "maximum" : 6 }, "fcPosTx" : { "type" : "integer", @@ -17491,56 +22964,72 @@ margin-bottom: 20px; }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "sampleSizeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample size index." }, "amplitudeBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Amplitude bits for Definitions." }, "autoCorrOptions" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto corr options for Definitions." }, "modulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation for Definitions." }, "modulationTone" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation tone for Definitions." }, "amModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Am modulation for Definitions." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "dcFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dc factor for Definitions." }, "iFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "I factor for Definitions." }, "qFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Q factor for Definitions." }, "phaseImbalance" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Phase imbalance for Definitions." } }, "description" : "TestMiStreamSettings" @@ -17548,73 +23037,108 @@ margin-bottom: 20px; defs.TestSourceSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "frequencyShift" : { - "type" : "integer" + "type" : "integer", + "description" : "Frequency shift in Hz." }, "sampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample rate in samples per second." }, "log2Decim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor; the output sample rate is divided by 2^log2Decim." }, "fcPos" : { - "type" : "integer" + "type" : "integer", + "description" : "Position of the decimated passband relative to the device center frequency." }, "sampleSizeIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected sample size index." }, "amplitudeBits" : { - "type" : "integer" + "type" : "integer", + "description" : "Amplitude bits setting for Test source." }, "autoCorrOptions" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto corr options setting for Test source." }, "modulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation setting for Test source." }, "modulationTone" : { - "type" : "integer" + "type" : "integer", + "description" : "Modulation tone setting for Test source." }, "amModulation" : { - "type" : "integer" + "type" : "integer", + "description" : "Am modulation setting for Test source." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "dcFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Dc factor setting for Test source." }, "iFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "I factor setting for Test source." }, "qFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Q factor setting for Test source." }, "phaseImbalance" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Phase imbalance setting for Test source." + }, + "period" : { + "type" : "integer", + "description" : "Period of the P1 and P2 patterns in samples.", + "minimum" : 1 + }, + "dutyCycle" : { + "type" : "integer", + "description" : "Percentage of the period the P2 pattern is high.", + "minimum" : 0, + "maximum" : 100 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "TestSource" @@ -17627,7 +23151,9 @@ margin-bottom: 20px; }, "projectionType" : { "type" : "integer", - "description" : "Complex to real projection type. See Projector::ProjectionType" + "description" : "Projection applied to turn the complex signal into a real trace\n * 0 - real part\n * 1 - imaginary part\n * 2 - magnitude, linear\n * 3 - squared magnitude (power), linear\n * 4 - time derivative of the squared magnitude\n * 5 - squared magnitude in dB\n * 6 - phase\n * 7 - direction of arrival from phase, positive branch\n * 8 - direction of arrival from phase, negative branch\n * 9 - phase derivative, instantaneous frequency\n * 10 - BPSK phase comparator\n * 11 - QPSK phase comparator\n * 12 - 8-PSK phase comparator\n * 13 - 16-PSK phase comparator\n", + "minimum" : 0, + "maximum" : 13 }, "inputIndex" : { "type" : "integer", @@ -17702,7 +23228,9 @@ margin-bottom: 20px; }, "projectionType" : { "type" : "integer", - "description" : "Complex to real projection type. See Projector::ProjectionType" + "description" : "Projection applied to turn the complex signal into a real trace\n * 0 - real part\n * 1 - imaginary part\n * 2 - magnitude, linear\n * 3 - squared magnitude (power), linear\n * 4 - time derivative of the squared magnitude\n * 5 - squared magnitude in dB\n * 6 - phase\n * 7 - direction of arrival from phase, positive branch\n * 8 - direction of arrival from phase, negative branch\n * 9 - phase derivative, instantaneous frequency\n * 10 - BPSK phase comparator\n * 11 - QPSK phase comparator\n * 12 - 8-PSK phase comparator\n * 13 - 16-PSK phase comparator\n", + "minimum" : 0, + "maximum" : 13 }, "inputIndex" : { "type" : "integer", @@ -17714,10 +23242,12 @@ margin-bottom: 20px; "description" : "Level in real units" }, "triggerLevelCoarse" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger level coarse for Trigger data." }, "triggerLevelFine" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger level fine for Trigger data." }, "triggerPositiveEdge" : { "type" : "integer", @@ -17741,10 +23271,12 @@ margin-bottom: 20px; "description" : "Trigger delay as a multiplier of trace length" }, "triggerDelayCoarse" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger delay coarse for Trigger data." }, "triggerDelayFine" : { - "type" : "integer" + "type" : "integer", + "description" : "Trigger delay fine for Trigger data." }, "triggerRepeat" : { "type" : "integer", @@ -17789,7 +23321,8 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "inputSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Input sample rate in samples per second." } }, "description" : "UDPSink" @@ -17798,29 +23331,37 @@ margin-bottom: 20px; "properties" : { "outputSampleRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Output sample rate in samples per second." }, "sampleFormat" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample format setting for UDP sink." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "channelMute" : { "type" : "integer", - "description" : "channel mute (1 if muted else 0)" + "description" : "channel mute (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "gain" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "squelchDB" : { "type" : "integer", @@ -17832,22 +23373,31 @@ margin-bottom: 20px; }, "squelchEnabled" : { "type" : "integer", - "description" : "squelch enable (1 if enabled else 0)" + "description" : "squelch enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC enable (1 if enabled else 0)" + "description" : "AGC enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "audioActive" : { "type" : "integer", - "description" : "Audio return enable (1 if enabled else 0)" + "description" : "Audio return enable (1 if enabled else 0)", + "minimum" : 0, + "maximum" : 1 }, "audioStereo" : { "type" : "integer", - "description" : "Audio return stereo (1 if stereo else 0)" + "description" : "Audio return stereo (1 if stereo else 0)", + "minimum" : 0, + "maximum" : 1 }, "volume" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio volume multiplier." }, "udpAddress" : { "type" : "string", @@ -17856,7 +23406,9 @@ margin-bottom: 20px; "udpPort" : { "type" : "integer", "format" : "uint16", - "description" : "destination UDP port (remote)" + "description" : "destination UDP port (remote)", + "minimum" : 1, + "maximum" : 65535 }, "audioPort" : { "type" : "integer", @@ -17864,10 +23416,12 @@ margin-bottom: 20px; "description" : "audio return UDP port (local)" }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -17875,27 +23429,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -17922,7 +23487,8 @@ margin-bottom: 20px; "description" : "buffer R/W balance indicator" }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "UDPSource" @@ -17930,78 +23496,106 @@ margin-bottom: 20px; defs.UDPSourceSettings = { "properties" : { "sampleFormat" : { - "type" : "integer" + "type" : "integer", + "description" : "Sample format setting for UDP source." }, "inputSampleRate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Input sample rate in samples per second." }, "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fmDeviation" : { - "type" : "integer" + "type" : "integer", + "description" : "FM frequency deviation in Hz." }, "amModFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Am mod factor setting for UDP source." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "gainIn" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain in setting for UDP source." }, "gainOut" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Gain out setting for UDP source." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "squelchGate" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch gate duration." }, "squelchEnabled" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable squelch (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "autoRWBalance" : { - "type" : "integer" + "type" : "integer", + "description" : "Auto rw balance setting for UDP source." }, "stereoInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Stereo input setting for UDP source." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "udpAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name used for UDP traffic." }, "udpPort" : { "type" : "integer", - "format" : "uint16" + "format" : "uint16", + "description" : "UDP port number.", + "minimum" : 1, + "maximum" : 65535 }, "multicastAddress" : { - "type" : "string" + "type" : "string", + "description" : "IP multicast group address." }, "multicastJoin" : { "type" : "integer", - "description" : "Join multicast group * 0 - leave group * 1 - join group\n" + "description" : "Join multicast group * 0 - leave group * 1 - join group\n", + "minimum" : 0, + "maximum" : 1 }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "streamIndex" : { "type" : "integer", @@ -18009,27 +23603,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18043,13 +23648,17 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "overrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream overrun events." }, "timeoutCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of timeout events or items." } }, "description" : "USRP" @@ -18057,70 +23666,100 @@ margin-bottom: 20px; defs.USRPInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "loOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "LO offset setting for Usrp input." }, "dcBlock" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable DSP DC-offset correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable I/Q imbalance correction (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "antennaPath" : { - "type" : "string" + "type" : "string", + "description" : "Selected RF antenna path." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "gainMode" : { "type" : "integer", - "description" : "0 for auto, 1 for manual" + "description" : "0 for auto, 1 for manual", + "minimum" : 0, + "maximum" : 1 }, "clockSource" : { - "type" : "string" + "type" : "string", + "description" : "Clock source setting for Usrp input." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "USRP" @@ -18133,13 +23772,17 @@ margin-bottom: 20px; }, "streamActive" : { "type" : "integer", - "description" : "1 if active else 0" + "description" : "1 if active else 0", + "minimum" : 0, + "maximum" : 1 }, "underrunCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of stream underrun events." }, "droppedPacketsCount" : { - "type" : "integer" + "type" : "integer", + "description" : "Number of dropped packets." } }, "description" : "USRP" @@ -18147,60 +23790,82 @@ margin-bottom: 20px; defs.USRPOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "loOffset" : { - "type" : "integer" + "type" : "integer", + "description" : "LO offset setting for Usrp output." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { - "type" : "integer" + "type" : "integer", + "description" : "Analog low-pass filter bandwidth in Hz." }, "gain" : { - "type" : "integer" + "type" : "integer", + "description" : "Gain setting; units and available values depend on the device or plugin." }, "antennaPath" : { - "type" : "string" + "type" : "string", + "description" : "Selected RF antenna path." }, "clockSource" : { - "type" : "string" + "type" : "string", + "description" : "Clock source setting for Usrp output." }, "transverterMode" : { - "type" : "integer" + "type" : "integer", + "description" : "Enable transverter frequency translation (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "transverterDeltaFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Frequency translation applied in transverter mode in Hz." }, "gpioDir" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO direction bit mask, with one bit per pin." }, "gpioPins" : { "type" : "integer", - "format" : "int8" + "format" : "int8", + "description" : "GPIO pin-state bit mask, with one bit per pin." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "USRP" @@ -18217,11 +23882,13 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "navId" : { "type" : "integer", @@ -18244,15 +23911,21 @@ margin-bottom: 20px; }, "validRadial" : { "type" : "integer", - "description" : "Radial validity estimation\n * 0 - Radial is invalid\n * 1 - Radial is valid\n" + "description" : "Radial validity estimation\n * 0 - Radial is invalid\n * 1 - Radial is valid\n", + "minimum" : 0, + "maximum" : 1 }, "validRefMag" : { "type" : "integer", - "description" : "Reference signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n" + "description" : "Reference signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n", + "minimum" : 0, + "maximum" : 1 }, "validVarMag" : { "type" : "integer", - "description" : "Variable signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n" + "description" : "Variable signal magnitude validity\n * 0 - Magnitude below threshold\n * 1 - Magnitude above threshold\n", + "minimum" : 0, + "maximum" : 1 }, "morseIdent" : { "type" : "string", @@ -18265,7 +23938,8 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "navId" : { "type" : "integer", @@ -18278,22 +23952,30 @@ margin-bottom: 20px; }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute audio output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "identBandpassEnable" : { - "type" : "integer" + "type" : "integer", + "description" : "Ident bandpass enable setting for Vor demod." }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18301,28 +23983,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "identThreshold" : { "type" : "integer", "description" : "Morse code ident threshold (linear SNR)" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18332,7 +24024,9 @@ margin-bottom: 20px; "properties" : { "run" : { "type" : "integer", - "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n" + "description" : "Set the plugin running state\n * 0 - idle\n * 1 - run\n", + "minimum" : 0, + "maximum" : 1 } }, "description" : "VORLocalizer" @@ -18341,7 +24035,9 @@ margin-bottom: 20px; "properties" : { "runningState" : { "type" : "integer", - "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n" + "description" : "Running state\n * 0 - not started\n * 1 - idle\n * 2 - running\n * 3 - error\n", + "minimum" : 0, + "maximum" : 3 } }, "description" : "VORLocalizers" @@ -18349,26 +24045,36 @@ margin-bottom: 20px; defs.VORLocalizerSettings = { "properties" : { "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIFeatureSetIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature-set index used by the reverse API peer." }, "reverseAPIFeatureIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Feature index used by the reverse API peer." }, "magDecAdjust" : { "type" : "integer", @@ -18380,23 +24086,28 @@ margin-bottom: 20px; }, "forceRRAveraging" : { "type" : "integer", - "description" : "Force radial and signal magnitudes averaging over the round robin turn\n * 0 - Do not force averaging\n * 1 - Force averaging\n" + "description" : "Force radial and signal magnitudes averaging over the round robin turn\n * 0 - Do not force averaging\n * 1 - Force averaging\n", + "minimum" : 0, + "maximum" : 1 }, "centerShift" : { "type" : "integer", "description" : "Shift of center frequency in Hz" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" }, "columnIndexes" : { "type" : "array", + "description" : "List of column indexes.", "items" : { "type" : "integer" } }, "columnSizes" : { "type" : "array", + "description" : "List of column sizes.", "items" : { "type" : "integer" } @@ -18416,10 +24127,12 @@ margin-bottom: 20px; "description" : "Audio squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WDSPRx" @@ -18428,18 +24141,23 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "profileIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Selected profile index." }, "demod" : { "type" : "integer", - "description" : "Demodulator type:\n * 0 - SSB\n * 1 - AM\n * 2 - SAM\n * 3 - FM\n" + "description" : "Demodulator type:\n * 0 - SSB\n * 1 - AM\n * 2 - SAM\n * 3 - FM\n", + "minimum" : 0, + "maximum" : 3 }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "audioBinaural" : { "type" : "integer", @@ -18455,15 +24173,21 @@ margin-bottom: 20px; }, "audioMute" : { "type" : "integer", - "description" : "Mute audio (1 if muted else 0)" + "description" : "Mute audio (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "agc" : { "type" : "integer", - "description" : "AGC (1 if AGC active else 0)" + "description" : "AGC (1 if AGC active else 0)", + "minimum" : 0, + "maximum" : 1 }, "agcMode" : { "type" : "integer", - "description" : "AGC Mode:\n * 0 - Long\n * 1 - Slow\n * 2 - Medium\n * 3 - Fast\n" + "description" : "AGC Mode:\n * 0 - Long\n * 1 - Slow\n * 2 - Medium\n * 3 - Fast\n", + "minimum" : 0, + "maximum" : 3 }, "agcGain" : { "type" : "integer", @@ -18474,19 +24198,26 @@ margin-bottom: 20px; "description" : "Slope in centi-Bels" }, "agcHangThreshold" : { - "type" : "integer" + "type" : "integer", + "description" : "Agc hang threshold setting for Wdsp receive." }, "dnb" : { "type" : "integer", - "description" : "Digital Noise Blanker:\n * 0 - Off\n * 1 - On\n" + "description" : "Digital Noise Blanker:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "nbScheme" : { "type" : "integer", - "description" : "Noise blanker scheme:\n * 0 - NB or Preemptive Wideband Noise Blanker\n * 1 - NB2 or Interpolating Wideband Noise Blanker\n" + "description" : "Noise blanker scheme:\n * 0 - NB or Preemptive Wideband Noise Blanker\n * 1 - NB2 or Interpolating Wideband Noise Blanker\n", + "minimum" : 0, + "maximum" : 1 }, "nb2Mode" : { "type" : "integer", - "description" : "NB2 Noise blanking mode:\n * 0 - Zero mode (estimate as zero)\n * 1 - Sample‐hold (take the value of non‐corrupt signal at the beginning of the impulse and hold that throughout the corrupt sequence)\n * 2 - Mean‐hold (average the non‐corrupt values at the beginning and end of the corrupt sequence and use that as the estimate during the corrupt sequence)\n * 3 - hold‐sample (take the value of non‐corrupt signal at the end of the impulse and hold that throughout the corrupt sequence)\n * 4 - linearly interpolate across the corrupt sequence.\n" + "description" : "NB2 Noise blanking mode:\n * 0 - Zero mode (estimate as zero)\n * 1 - Sample‐hold (take the value of non‐corrupt signal at the beginning of the impulse and hold that throughout the corrupt sequence)\n * 2 - Mean‐hold (average the non‐corrupt values at the beginning and end of the corrupt sequence and use that as the estimate during the corrupt sequence)\n * 3 - hold‐sample (take the value of non‐corrupt signal at the end of the impulse and hold that throughout the corrupt sequence)\n * 4 - linearly interpolate across the corrupt sequence.\n", + "minimum" : 0, + "maximum" : 4 }, "nbSlewTime" : { "type" : "number", @@ -18504,47 +24235,67 @@ margin-bottom: 20px; "description" : "Hang time (S)" }, "nbThreshold" : { - "type" : "integer" + "type" : "integer", + "description" : "Nb threshold setting for Wdsp receive." }, "nbAvgTime" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Nb avg time setting for Wdsp receive." }, "dnr" : { "type" : "integer", - "description" : "Digital Noise Reduction:\n * 0 - Off\n * 1 - On\n" + "description" : "Digital Noise Reduction:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "anf" : { "type" : "integer", - "description" : "Automatic Notch Filter:\n * 0 - Off\n * 1 - On\n" + "description" : "Automatic Notch Filter:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "nrScheme" : { "type" : "integer", - "description" : "Noise Reduction Scheme:\n * 0 - NR or LMS Noise Reduction\n * 1 - NR2 or Spectral Noise Reduction\n" + "description" : "Noise Reduction Scheme:\n * 0 - NR or LMS Noise Reduction\n * 1 - NR2 or Spectral Noise Reduction\n", + "minimum" : 0, + "maximum" : 1 }, "nr2Gain" : { "type" : "integer", - "description" : "Noise Reduction gain for NR2:\n * 0 - Linear\n * 1 - Log\n * 2 - Gamma\n" + "description" : "Noise Reduction gain for NR2:\n * 0 - Linear\n * 1 - Log\n * 2 - Gamma\n", + "minimum" : 0, + "maximum" : 2 }, "nr2NPE" : { "type" : "integer", - "description" : "Noise Power Estimation algorithm for NR2:\n * 0 - Optimal Smoothing Minimum Statistics (OSMS)\n * 1 - Minimum Mean‐Square Error (MMSE)\n" + "description" : "Noise Power Estimation algorithm for NR2:\n * 0 - Optimal Smoothing Minimum Statistics (OSMS)\n * 1 - Minimum Mean‐Square Error (MMSE)\n", + "minimum" : 0, + "maximum" : 1 }, "nrPosition" : { "type" : "integer", - "description" : "Noise reduction position:\n * 0 - Before AGC\n * 1 - After AGC\n" + "description" : "Noise reduction position:\n * 0 - Before AGC\n * 1 - After AGC\n", + "minimum" : 0, + "maximum" : 1 }, "nr2ArtifactReduction" : { "type" : "integer", - "description" : "NR2 artifacts reduction:\n * 0 - Off\n * 1 - On\n" + "description" : "NR2 artifacts reduction:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "amFadeLevel" : { "type" : "integer", - "description" : "AM fade levelling:\n * 0 - Off\n * 1 - On\n" + "description" : "AM fade levelling:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "cwPeaking" : { "type" : "integer", - "description" : "CW peaking filter:\n * 0 - Off\n * 1 - On\n" + "description" : "CW peaking filter:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "cwPeakFrequency" : { "type" : "number", @@ -18578,7 +24329,9 @@ margin-bottom: 20px; }, "fmAFLimiter" : { "type" : "integer", - "description" : "FM Audio level limiter (audio AGC)\n * 0 - Off\n * 1 - On\n" + "description" : "FM Audio level limiter (audio AGC)\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fmAFLimiterGain" : { "type" : "number", @@ -18587,7 +24340,9 @@ margin-bottom: 20px; }, "fmCTCSSNotch" : { "type" : "integer", - "description" : "FM CTCSS notch filter\n * 0 - Off\n * 1 - On\n" + "description" : "FM CTCSS notch filter\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "fmCTCSSNotchFrequency" : { "type" : "number", @@ -18596,7 +24351,9 @@ margin-bottom: 20px; }, "squelch" : { "type" : "integer", - "description" : "Squelch:\n * 0 - Off\n * 1 - On\n" + "description" : "Squelch:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "squelchThreshold" : { "type" : "integer", @@ -18604,12 +24361,16 @@ margin-bottom: 20px; }, "squelchMode" : { "type" : "integer", - "description" : "Squelch mode:\n * 0 - Voice squelch (for SSB). Based on voice artifacts.\n * 1 - AM squelch (for AM, SAM, CW). Signal power based.\n * 2 - FM squelch (for FM). Demod noise based squelch\n" + "description" : "Squelch mode:\n * 0 - Voice squelch (for SSB). Based on voice artifacts.\n * 1 - AM squelch (for AM, SAM, CW). Signal power based.\n * 2 - FM squelch (for FM). Demod noise based squelch\n", + "minimum" : 0, + "maximum" : 2 }, "ssqlTauMute" : { "type" : "number", "format" : "float", - "description" : "Voice squelch tau mute (s)" + "description" : "Voice squelch tau mute (s)", + "minimum" : 0, + "maximum" : 1 }, "ssqlTauUnmute" : { "type" : "number", @@ -18623,7 +24384,9 @@ margin-bottom: 20px; }, "equalizer" : { "type" : "integer", - "description" : "AF equalizer:\n * 0 - Off\n * 1 - On\n" + "description" : "AF equalizer:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "eqF" : { "type" : "array", @@ -18643,7 +24406,9 @@ margin-bottom: 20px; }, "rit" : { "type" : "integer", - "description" : "RIT:\n * 0 - Off\n * 1 - On\n" + "description" : "RIT:\n * 0 - Off\n * 1 - On\n", + "minimum" : 0, + "maximum" : 1 }, "ritFrequency" : { "type" : "number", @@ -18651,28 +24416,36 @@ margin-bottom: 20px; "description" : "RIT shift frequency (Hz)" }, "spanLog2" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent controlling the displayed or processed frequency span." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "lowCutoff" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Lower filter cutoff frequency in Hz." }, "fftWindow" : { "type" : "integer", - "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Blackman-Harris 4 term\n * 1 - Blackman-Harris 7 term\n" + "description" : "FFT Window index (FFTWindow::Function):\n * 0 - Blackman-Harris 4 term\n * 1 - Blackman-Harris 7 term\n", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18680,27 +24453,38 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "spectrumConfig" : { + "description" : "Spectrum-display configuration.", "$ref" : "#/definitions/GLSpectrum" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18718,10 +24502,12 @@ margin-bottom: 20px; "description" : "squelch status (1 if open else 0)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WFMDemod" @@ -18730,36 +24516,46 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "volume" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio volume multiplier." }, "squelch" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Squelch threshold in dB." }, "audioMute" : { "type" : "integer", - "description" : "audio mute (1 if muted else 0)" + "description" : "audio mute (1 if muted else 0)", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "streamIndex" : { "type" : "integer", @@ -18767,24 +24563,34 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, @@ -18798,10 +24604,12 @@ margin-bottom: 20px; "description" : "power transmitted in channel (dB)" }, "audioSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio sample rate in samples per second." }, "channelSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Effective sample rate delivered to the channel in samples per second." } }, "description" : "WFMMod" @@ -18810,45 +24618,61 @@ margin-bottom: 20px; "properties" : { "inputFrequencyOffset" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Channel frequency offset from the device center frequency in Hz." }, "rfBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "RF bandwidth in Hz." }, "afBandwidth" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Audio-frequency bandwidth in Hz." }, "fmDeviation" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "FM frequency deviation in Hz." }, "toneFrequency" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Tone frequency in Hz." }, "volumeFactor" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Volume factor setting for Wfm mod." }, "channelMute" : { - "type" : "integer" + "type" : "integer", + "description" : "Mute the channel output (1 muted, 0 unmuted).", + "minimum" : 0, + "maximum" : 1 }, "playLoop" : { - "type" : "integer" + "type" : "integer", + "description" : "Loop playback at end of file (1 enabled, 0 disabled).", + "minimum" : 0, + "maximum" : 1 }, "rgbColor" : { - "type" : "integer" + "type" : "integer", + "description" : "Display color encoded as an RGB integer." }, "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "audioDeviceName" : { - "type" : "string" + "type" : "string", + "description" : "Name of the audio device to use." }, "modAFInput" : { - "type" : "integer" + "type" : "integer", + "description" : "Audio-frequency modulation input selection." }, "streamIndex" : { "type" : "integer", @@ -18856,41 +24680,107 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "reverseAPIChannelIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Channel index used by the reverse API peer." }, "cwKeyer" : { + "description" : "CW keyer configuration.", "$ref" : "#/definitions/CWKeyerSettings" }, "channelMarker" : { + "description" : "Channel-marker display configuration.", "$ref" : "#/definitions/ChannelMarker" }, "rollupState" : { + "description" : "Saved expanded or collapsed state of the GUI sections.", "$ref" : "#/definitions/RollupState" } }, "description" : "WFMMod" +}; + defs.WindowInfo = { + "properties" : { + "kind" : { + "type" : "string", + "description" : "device, spectrum, channel or feature" + }, + "deviceSetIndex" : { + "type" : "integer", + "description" : "Index of the device set, for a device, spectrum or channel window" + }, + "index" : { + "type" : "integer", + "description" : "Channel index within the device set, or feature index; absent for a device or spectrum window" + }, + "title" : { + "type" : "string" + }, + "workspaceIndex" : { + "type" : "integer" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown" + } + }, + "description" : "One window of the GUI" +}; + defs.WindowList = { + "properties" : { + "windowCount" : { + "type" : "integer" + }, + "windows" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/WindowInfo" + } + } + }, + "description" : "Every device, spectrum, channel and feature window of the GUI" +}; + defs.WorkspaceActions = { + "required" : [ "arrange" ], + "properties" : { + "arrange" : { + "type" : "string", + "description" : "How to arrange the workspace's windows. cascade, tile, stackVertical and stack rearrange them once, and turn auto stacking and tabs off. autostack stacks them now and again whenever a window is added or resized, and stays on until another arrangement is asked for. tab shows one window at a time with a tab for each, and turns auto stacking off.\n", + "enum" : [ "cascade", "tile", "stackVertical", "stack", "autostack", "tab" ] + } + }, + "description" : "Actions on a workspace" }; defs.WorkspaceInfo = { - "required" : [ "index" ], "properties" : { "index" : { "type" : "integer", "description" : "index of workspace in the list of workspaces" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" } }, - "description" : "Workspace information" + "description" : "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" }; defs.XtrxInputReport = { "properties" : { @@ -18899,14 +24789,17 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", @@ -18918,28 +24811,37 @@ margin-bottom: 20px; defs.XtrxInputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware decimation factor." }, "dcBlock" : { "type" : "integer", - "description" : "Software DC blocking (1 for yes, 0 for no)" + "description" : "Software DC blocking (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Software IQ imbalance correction (1 for yes, 0 for no)" + "description" : "Software IQ imbalance correction (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "log2SoftDecim" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software decimation factor." }, "lpfBW" : { "type" : "integer", @@ -18951,7 +24853,9 @@ margin-bottom: 20px; }, "ncoEnable" : { "type" : "integer", - "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { "type" : "integer", @@ -18979,7 +24883,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Use external clock source (1 for yes, 0 for no)" + "description" : "Use external clock source (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -18991,20 +24897,29 @@ margin-bottom: 20px; }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "XTRX" @@ -19016,30 +24931,37 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFillRx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current receive FIFO fill level." }, "fifoFillTx" : { - "type" : "integer" + "type" : "integer", + "description" : "Current transmit FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", "description" : "1 if GPSDO is locked else 0" }, "actualInputRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported actual input rate." }, "actualOutputRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported actual output rate." }, "clockGenRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Reported clock gen rate." } }, "description" : "XTRX" @@ -19047,11 +24969,14 @@ margin-bottom: 20px; defs.XtrxMIMOSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "extClock" : { "type" : "integer", - "description" : "Boolean 1 if external clock source else 0" + "description" : "Boolean 1 if external clock source else 0", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -19067,7 +24992,9 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Boolean 1 use 0 do not use reverse API" + "description" : "Boolean 1 use 0 do not use reverse API", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { "type" : "string", @@ -19075,13 +25002,17 @@ margin-bottom: 20px; }, "reverseAPIPort" : { "type" : "integer", - "description" : "Network port from 1024 to 65535" + "description" : "Network port from 1024 to 65535", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." }, "rxDevSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Receive dev sample rate in samples per second." }, "log2HardDecim" : { "type" : "integer", @@ -19089,23 +25020,32 @@ margin-bottom: 20px; }, "log2SoftDecim" : { "type" : "integer", - "description" : "log2 of software decimation factor from 0 to 6" + "description" : "log2 of software decimation factor from 0 to 6", + "minimum" : 0, + "maximum" : 6 }, "rxCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Receive center frequency in Hz." }, "dcBlock" : { "type" : "integer", - "description" : "Software DC blocking (1 for yes, 0 for no)" + "description" : "Software DC blocking (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "iqCorrection" : { "type" : "integer", - "description" : "Software IQ imbalance correction (1 for yes, 0 for no)" + "description" : "Software IQ imbalance correction (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoEnableRx" : { "type" : "integer", - "description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO Rx on both channels and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyRx" : { "type" : "integer", @@ -19113,11 +25053,15 @@ margin-bottom: 20px; }, "antennaPathRx" : { "type" : "integer", - "description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n" + "description" : "Antenna selected (enum value from XTRXMIMOSettings::RxAntenna):\n * 0 - RXANT_LO low range\n * 1 - RXANT_WI wide range\n * 2 - RXANT_HI high range\n", + "minimum" : 0, + "maximum" : 2 }, "iqOrder" : { "type" : "integer", - "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" + "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWRx0" : { "type" : "integer", @@ -19129,7 +25073,9 @@ margin-bottom: 20px; }, "gainModeRx0" : { "type" : "integer", - "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n" + "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 0:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx0" : { "type" : "integer", @@ -19144,7 +25090,8 @@ margin-bottom: 20px; "description" : "Manual PGA gain (dB) for Rx channel 0" }, "pwrmodeRx0" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode rx0 setting for Xtrx MIMO." }, "lpfBWRx1" : { "type" : "integer", @@ -19156,7 +25103,9 @@ margin-bottom: 20px; }, "gainModeRx1" : { "type" : "integer", - "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n" + "description" : "Gain mode (XTRXMIMOSettings::GainMode) for Rx channel 1:\n * 0 - GAIN_AUTO automatic\n * 1 - GAIN_MANUAL manual\n", + "minimum" : 0, + "maximum" : 1 }, "lnaGainRx1" : { "type" : "integer", @@ -19171,10 +25120,12 @@ margin-bottom: 20px; "description" : "Manual PGA gain (dB) for Rx channel 1" }, "pwrmodeRx1" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode rx1 setting for Xtrx MIMO." }, "txDevSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Transmit dev sample rate in samples per second." }, "log2HardInterp" : { "type" : "integer", @@ -19182,15 +25133,20 @@ margin-bottom: 20px; }, "log2SoftInterp" : { "type" : "integer", - "description" : "log2 of software interpolation factor from 0 to 6" + "description" : "log2 of software interpolation factor from 0 to 6", + "minimum" : 0, + "maximum" : 6 }, "txCenterFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Transmit center frequency in Hz." }, "ncoEnableTx" : { "type" : "integer", - "description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO Tx on both channels and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequencyTx" : { "type" : "integer", @@ -19198,7 +25154,9 @@ margin-bottom: 20px; }, "antennaPathTx" : { "type" : "integer", - "description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n" + "description" : "Antenna selected (enum value from XTRXMIMOSettings::TxAntenna):\n * 0 - TXANT_HI high range\n * 1 - TXANT_WI wide range\n", + "minimum" : 0, + "maximum" : 1 }, "lpfBWTx0" : { "type" : "integer", @@ -19209,7 +25167,8 @@ margin-bottom: 20px; "description" : "Optimally distributed gain (dB) for Tx channel 0" }, "pwrmodeTx0" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode tx0 setting for Xtrx MIMO." }, "lpfBWTx1" : { "type" : "integer", @@ -19220,7 +25179,8 @@ margin-bottom: 20px; "description" : "Optimally distributed gain (dB) for Tx channel 1" }, "pwrmodeTx1" : { - "type" : "integer" + "type" : "integer", + "description" : "Pwrmode tx1 setting for Xtrx MIMO." } }, "description" : "XTRX" @@ -19232,14 +25192,17 @@ margin-bottom: 20px; "description" : "1 if info was successfully retrieved else 0" }, "fifoSize" : { - "type" : "integer" + "type" : "integer", + "description" : "FIFO capacity in samples." }, "fifoFill" : { - "type" : "integer" + "type" : "integer", + "description" : "Current FIFO fill level." }, "temperature" : { "type" : "number", - "format" : "float" + "format" : "float", + "description" : "Reported device temperature." }, "gpsLock" : { "type" : "integer", @@ -19251,20 +25214,25 @@ margin-bottom: 20px; defs.XtrxOutputSettings = { "properties" : { "title" : { - "type" : "string" + "type" : "string", + "description" : "User-visible title." }, "centerFrequency" : { "type" : "integer", - "format" : "int64" + "format" : "int64", + "description" : "Device center frequency in Hz." }, "devSampleRate" : { - "type" : "integer" + "type" : "integer", + "description" : "Device I/Q sample rate in samples per second before software decimation or interpolation." }, "log2HardInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the hardware interpolation factor." }, "log2SoftInterp" : { - "type" : "integer" + "type" : "integer", + "description" : "Base-2 exponent of the software interpolation factor." }, "lpfBW" : { "type" : "integer", @@ -19276,7 +25244,9 @@ margin-bottom: 20px; }, "ncoEnable" : { "type" : "integer", - "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)" + "description" : "Enable TSP NCO and mixing (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "ncoFrequency" : { "type" : "integer", @@ -19288,7 +25258,9 @@ margin-bottom: 20px; }, "extClock" : { "type" : "integer", - "description" : "Use external clock source (1 for yes, 0 for no)" + "description" : "Use external clock source (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "extClockFreq" : { "type" : "integer", @@ -19300,16 +25272,23 @@ margin-bottom: 20px; }, "useReverseAPI" : { "type" : "integer", - "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + "description" : "Synchronize with reverse API (1 for yes, 0 for no)", + "minimum" : 0, + "maximum" : 1 }, "reverseAPIAddress" : { - "type" : "string" + "type" : "string", + "description" : "IPv4 address or host name of the reverse API peer." }, "reverseAPIPort" : { - "type" : "integer" + "type" : "integer", + "description" : "TCP port of the reverse API peer.", + "minimum" : 1, + "maximum" : 65535 }, "reverseAPIDeviceIndex" : { - "type" : "integer" + "type" : "integer", + "description" : "Device-set index used by the reverse API peer." } }, "description" : "XTRX" @@ -19406,6 +25385,21 @@ margin-bottom: 20px;
  • devicesetGet
  • +
  • + devicesetSpectrumActionsPost +
  • +
  • + devicesetSpectrumDataGet +
  • +
  • + devicesetSpectrumHistoryGet +
  • +
  • + devicesetSpectrumHistoryImageGet +
  • +
  • + devicesetSpectrumReportGet +
  • devicesetSpectrumServerDelete
  • @@ -19606,6 +25600,9 @@ margin-bottom: 20px;
  • instanceSummary
  • +
  • + instanceWindowsGet +
  • instanceWorkspaceAdd @@ -19613,6 +25610,9 @@ margin-bottom: 20px;
  • instanceWorkspacesDeleteEmpty
  • +
  • + workspaceActionsPost +
  • @@ -31922,41 +37922,41 @@ except ApiException as e:

    -
    -
    +
    +
    -

    devicesetSpectrumServerDelete

    +

    devicesetSpectrumActionsPost

    -

    Stop main spectrum websocket server

    +

    post an action or actions on the main spectrum


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/actions

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -31971,18 +37971,19 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        SpectrumActions body = ; // SpectrumActions | Action(s) to apply to the main spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -31990,26 +37991,29 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        SpectrumActions body = ; // SpectrumActions | Action(s) to apply to the main spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +SpectrumActions *body = ; // Action(s) to apply to the main spectrum
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    +[apiInstance devicesetSpectrumActionsPostWith:deviceSetIndex
    +    body:body
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -32021,13 +38025,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var body = ; // {SpectrumActions} Action(s) to apply to the main spectrum
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32036,14 +38042,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
    +api.devicesetSpectrumActionsPost(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32052,22 +38058,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerDeleteExample
    +    public class devicesetSpectrumActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new SpectrumActions(); // SpectrumActions | Action(s) to apply to the main spectrum
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumActionsPost(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumActionsPost: " + e.Message );
                 }
             }
         }
    @@ -32075,40 +38082,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // SpectrumActions | Action(s) to apply to the main spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumActionsPost($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::SpectrumActions->new(); # SpectrumActions | Action(s) to apply to the main spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32118,12 +38127,13 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # SpectrumActions | Action(s) to apply to the main spectrum
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_actions_post(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumActionsPost: %s\n" % e)
    @@ -32139,7 +38149,7 @@ except ApiException as e: -
    +
    @@ -32161,26 +38171,68 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Server successfully stopped

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set index

    +

    Status: 400 - Unknown action, no action given, or an action that needs a spectrum display

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -32298,14 +38350,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32341,14 +38393,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerGet

    +

    devicesetSpectrumDataGet

    -

    Get main spectrum websocket server status

    +

    Get the main spectrum power values, reduced to a number of bins


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/data

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/data?bins=&startFrequency=&stopFrequency=&reduce="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -32432,18 +38484,22 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +        Long startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +        String reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumDataGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -32451,27 +38507,39 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +        Long startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +        String reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumDataGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *bins = 56; // Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional)
    +Long *startFrequency = 789; // Lowest frequency to return in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to return in Hz. Default is the end of the spectrum (optional)
    +String *reduce = reduce_example; // How several bins are combined into one, max or mean (default max) (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    -              completionHandler: ^(SpectrumServer output, NSError* error) {
    +[apiInstance devicesetSpectrumDataGetWith:deviceSetIndex
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    reduce:reduce
    +              completionHandler: ^(GLSpectrumData output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -32482,13 +38550,19 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'bins': 56, // {Integer} Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +  'startFrequency': 789, // {Long} Lowest frequency to return in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789, // {Long} Highest frequency to return in Hz. Default is the end of the spectrum
    +  'reduce': reduce_example // {String} How several bins are combined into one, max or mean (default max)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32497,14 +38571,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerGet(deviceSetIndex, callback);
    +api.devicesetSpectrumDataGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32513,22 +38587,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerGetExample
    +    public class devicesetSpectrumDataGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var bins = 56;  // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to return in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to return in Hz. Default is the end of the spectrum (optional) 
    +            var reduce = reduce_example;  // String | How several bins are combined into one, max or mean (default max) (optional) 
     
                 try
                 {
    -                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +                GLSpectrumData result = apiInstance.devicesetSpectrumDataGet(deviceSetIndex, bins, startFrequency, stopFrequency, reduce);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumDataGet: " + e.Message );
                 }
             }
         }
    @@ -32536,40 +38614,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$bins = 56; // Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +$startFrequency = 789; // Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +$reduce = reduce_example; // String | How several bins are combined into one, max or mean (default max)
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumDataGet($deviceSetIndex, $bins, $startFrequency, $stopFrequency, $reduce);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumDataGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $bins = 56; # Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many
    +my $startFrequency = 789; # Long | Lowest frequency to return in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to return in Hz. Default is the end of the spectrum
    +my $reduce = reduce_example; # String | How several bins are combined into one, max or mean (default max)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumDataGet(deviceSetIndex => $deviceSetIndex, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, reduce => $reduce);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumDataGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32579,12 +38665,16 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +bins = 56 # Integer | Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many (optional)
    +startFrequency = 789 # Long | Lowest frequency to return in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to return in Hz. Default is the end of the spectrum (optional)
    +reduce = reduce_example # String | How several bins are combined into one, max or mean (default max) (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_data_get(deviceSetIndex, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, reduce=reduce)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumDataGet: %s\n" % e)
    @@ -32600,7 +38690,7 @@ except ApiException as e: -
    +
    @@ -32624,26 +38714,119 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    bins + + +
    +
    +
    + + Integer + + +
    + Number of bins to return, 1 to 4096 (default 128). The spectrum is grouped down to this many +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to return in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to return in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    reduce + + +
    +
    +
    + + String + + +
    + How several bins are combined into one, max or mean (default max) +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return main spectrum server status

    +

    Status: 200 - On success return the reduced spectrum

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid bins, frequency range or reduction

    + + + +
    +
    +
    + +
    +
    @@ -32673,14 +38899,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32716,14 +38942,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -32759,14 +38985,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerPost

    +

    devicesetSpectrumHistoryGet

    -

    Start main spectrum websocket server

    +

    Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and occupancy over a period, and the signals found. Only rows taken with the device tuned and sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, scrollLength); the server keeps no history +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history?seconds=&bins=&startFrequency=&stopFrequency=&threshold="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -32850,18 +39077,23 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +        Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -32869,27 +39101,42 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +        Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
    +Integer *bins = 56; // Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
    +Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
    +Integer *threshold = 56; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumHistoryGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    threshold:threshold
    +              completionHandler: ^(GLSpectrumHistory output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -32900,13 +39147,20 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
    +  'bins': 56, // {Integer} Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +  'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789, // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +  'threshold': 56 // {Integer} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -32915,14 +39169,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerPost(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -32931,22 +39185,27 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerPostExample
    +    public class devicesetSpectrumHistoryGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var seconds = 56;  // Integer | How far back to look, in seconds (default 60) (optional) 
    +            var bins = 56;  // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
    +            var threshold = 56;  // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional) 
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +                GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryGet: " + e.Message );
                 }
             }
         }
    @@ -32954,40 +39213,50 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +$bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +$threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
    +my $bins = 56; # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
    +my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
    +my $threshold = 56; # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -32997,12 +39266,17 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
    +bins = 56 # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
    +startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
    +threshold = 56 # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: %s\n" % e)
    @@ -33018,7 +39292,7 @@ except ApiException as e: -
    +
    @@ -33042,69 +39316,139 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + -
    -
    -
    - -
    - -
    -
    -

    Status: 400 - Invalid device set index

    +
    +
    +
    + + Integer + + +
    + Number of bins to reduce the spectrum to, 1 to 4096 (default 128) +
    +
    +
    +
    + + + + + + + + + + + + + + + +
    NameDescription
    seconds -

    Responses

    -

    Status: 200 - Server successfully started

    - +
    + How far back to look, in seconds (default 60) +
    + + + +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    threshold + + +
    +
    +
    + + Integer + + +
    + How far above the measured floor a bin must rise to count as occupied, in dB (default 6) +
    +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - On success return the statistics

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsGet

    +

    devicesetSpectrumHistoryImageGet

    -

    Get main spectrum settings

    +

    The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row down with the newest row at the bottom, black a little below the noise floor and white at the strongest bin. The frequency and time extents come back in X-Spectrum-History headers and in the JSON form of the same call +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image?seconds=&bins=&rows=&startFrequency=&stopFrequency="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -33311,18 +39656,22 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +        Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -33330,30 +39679,41 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +        Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +        Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +        Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
    +Integer *bins = 56; // Width in pixels, 1 to 4096 (default 512) (optional)
    +Integer *rows = 56; // At most this many rows, the most recent (default 512, up to 4000) (optional)
    +Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    +[apiInstance devicesetSpectrumHistoryImageGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    rows:rows
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -33361,29 +39721,36 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var opts = { 
    +  'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
    +  'bins': 56, // {Integer} Width in pixels, 1 to 4096 (default 512)
    +  'rows': 56, // {Integer} At most this many rows, the most recent (default 512, up to 4000)
    +  'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
    +  'stopFrequency': 789 // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +};
     
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
       } else {
    -    console.log('API called successfully. Returned data: ' + data);
    +    console.log('API called successfully.');
       }
     };
    -api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryImageGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -33392,22 +39759,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsGetExample
    +    public class devicesetSpectrumHistoryImageGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var seconds = 56;  // Integer | How far back to look, in seconds (default 60) (optional) 
    +            var bins = 56;  // Integer | Width in pixels, 1 to 4096 (default 512) (optional) 
    +            var rows = 56;  // Integer | At most this many rows, the most recent (default 512, up to 4000) (optional) 
    +            var startFrequency = 789;  // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    -                Debug.WriteLine(result);
    +                apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryImageGet: " + e.Message );
                 }
             }
         }
    @@ -33415,40 +39786,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 56; // Integer | How far back to look, in seconds (default 60)
    +$bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
    +$rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
    +$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
    -    print_r($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet($deviceSetIndex, $seconds, $bins, $rows, $startFrequency, $stopFrequency);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
    +my $bins = 56; # Integer | Width in pixels, 1 to 4096 (default 512)
    +my $rows = 56; # Integer | At most this many rows, the most recent (default 512, up to 4000)
    +my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
    -    print Dumper($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, rows => $rows, startFrequency => $startFrequency, stopFrequency => $stopFrequency);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -33458,12 +39837,16 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
    +bins = 56 # Integer | Width in pixels, 1 to 4096 (default 512) (optional)
    +rows = 56 # Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
    +startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
    -    pprint(api_response)
    +    api_instance.deviceset_spectrum_history_image_get(deviceSetIndex, seconds=seconds, bins=bins, rows=rows, startFrequency=startFrequency, stopFrequency=stopFrequency)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: %s\n" % e)
    @@ -33479,7 +39862,7 @@ except ApiException as e: -
    +
    @@ -33503,67 +39886,145 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    seconds + + +
    +
    +
    + + Integer + + +
    + How far back to look, in seconds (default 60) +
    +
    +
    +
    +
    bins + + +
    +
    +
    + + Integer + + +
    + Width in pixels, 1 to 4096 (default 512) +
    +
    +
    +
    +
    rows + + +
    +
    +
    + + Integer + + +
    + At most this many rows, the most recent (default 512, up to 4000) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return details on the main spectrum

    +

    Status: 200 - The PNG image

    -
    -
    - -
    - -
    -

    Status: 404 - Invalid index

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPatch

    +

    devicesetSpectrumReportGet

    -

    Apply main spectrum settings differentially (no force)

    +

    Get the latest main spectrum measurement results


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -33729,19 +40190,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -33749,30 +40209,27 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrumReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -33783,15 +40240,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -33800,14 +40255,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
    +api.devicesetSpectrumReportGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -33816,23 +40271,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPatchExample
    +    public class devicesetSpectrumReportGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
                 }
             }
         }
    @@ -33840,42 +40294,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -33885,13 +40337,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    @@ -33907,7 +40358,7 @@ except ApiException as e: -
    +
    @@ -33929,70 +40380,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success returns new settings values

    +

    Status: 200 - On success return the results of the selected measurement

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -34065,14 +40474,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -34108,14 +40517,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPut

    +

    devicesetSpectrumServerDelete

    -

    Apply main spectrum settings unconditionally (force)

    +

    Stop main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -34199,19 +40608,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -34219,30 +40627,27 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -34253,15 +40658,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -34270,14 +40673,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -34286,23 +40689,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPutExample
    +    public class devicesetSpectrumServerDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
                 }
             }
         }
    @@ -34310,42 +40712,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -34355,13 +40755,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    @@ -34377,7 +40776,7 @@ except ApiException as e: -
    +
    @@ -34399,70 +40798,71 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully stopped

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -34535,14 +40935,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -34578,14 +40978,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspaceGet

    +

    devicesetSpectrumServerGet

    -

    Get main spectrum UI workspace information (GUI)

    +

    Get main spectrum websocket server status


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -34670,17 +41070,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -34689,26 +41089,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    +              completionHandler: ^(SpectrumServer output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -34719,7 +41119,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -34734,14 +41134,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +api.devicesetSpectrumServerGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -34750,7 +41150,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspaceGetExample
    +    public class devicesetSpectrumServerGetExample
         {
             public void main()
             {
    @@ -34760,12 +41160,12 @@ namespace Example
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
                 }
             }
         }
    @@ -34773,7 +41173,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -34781,15 +41181,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -34798,15 +41198,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -34818,10 +41218,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    @@ -34837,7 +41237,7 @@ except ApiException as e: -
    +
    @@ -34863,24 +41263,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return main spectrum UI workspace index

    +

    Status: 200 - On success return main spectrum server status

    -
    -
    +
    +
    - +
    @@ -34910,14 +41310,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -34953,14 +41353,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -34996,14 +41396,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspacePut

    +

    devicesetSpectrumServerPost

    -

    move main spectrum UI to workspace (GUI)

    +

    Start main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35087,19 +41487,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -35107,29 +41506,26 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -WorkspaceInfo *body = ; // Destination workspace information
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspacePutWith:deviceSetIndex
    -    body:body
    +[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -35141,15 +41537,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {WorkspaceInfo} Destination workspace information
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -35158,14 +41552,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspacePut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerPost(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -35174,23 +41568,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspacePutExample
    +    public class devicesetSpectrumServerPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspacePut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
                 }
             }
         }
    @@ -35198,42 +41591,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspacePut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspacePut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -35243,13 +41634,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    @@ -35265,7 +41655,7 @@ except ApiException as e: -
    +
    @@ -35287,70 +41677,71 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully started

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set or workspace index

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -35423,14 +41814,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -35466,14 +41857,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetDelete

    +

    devicesetSpectrumSettingsGet

    -

    Remove last device set. The GUI version does not remove the first device.

    +

    Get main spectrum settings


    -
    /sdrangel/deviceset
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35556,44 +41947,47 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance instanceDeviceSetDeleteWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -35604,11 +41998,14 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -35616,14 +42013,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetDelete(callback);
    +api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -35632,21 +42029,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetDeleteExample
    +    public class devicesetSpectrumSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceDeviceSetDelete();
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -35654,38 +42052,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->instanceDeviceSetDelete();
    +    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetDelete();
    +    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->instanceDeviceSetDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -35694,41 +42094,72 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.instance_device_set_delete()
    +    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->instanceDeviceSetDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +

    Responses

    -

    Status: 202 - Message to remove last device set was sent successfully

    +

    Status: 200 - On success return details on the main spectrum

    -
    -
    +
    +
    - +
    -

    Status: 404 - No more device sets to be deleted

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -35801,14 +42232,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -35844,14 +42275,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetPost

    +

    devicesetSpectrumSettingsPatch

    -

    Add (append) a new device set with default values

    +

    Apply main spectrum settings differentially (no force)


    -
    /sdrangel/deviceset
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset?direction="
    -
    -
    +
    +
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -35934,47 +42365,51 @@ public class DeviceSetApiExample {
         public static void main(String[] args) {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             DeviceSetApi apiInstance = new DeviceSetApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance instanceDeviceSetPostWith:direction
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -35985,14 +42420,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -36001,14 +42437,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetPost(opts, callback);
    +api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36017,22 +42453,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetPostExample
    +    public class devicesetSpectrumSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -36040,40 +42477,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->instanceDeviceSetPost($direction);
    +    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetPost(direction => $direction);
    +    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->instanceDeviceSetPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36082,33 +42521,30 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.DeviceSetApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.instance_device_set_post(direction=direction)
    +    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->instanceDeviceSetPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + @@ -36126,25 +42565,71 @@ except ApiException as e:
    NameDescription
    direction
    NameDescription
    deviceSetIndex* -
    +
    @@ -36116,9 +42552,12 @@ except ApiException as e:
    - 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) + Index of device set in the device set list
    +
    + Required +
    + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + +

    Responses

    -

    Status: 202 - Message to add a new device set was sent successfully

    +

    Status: 200 - On success returns new settings values

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    +
    @@ -36174,14 +42702,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -36217,14 +42745,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    -

    FeatureSet

    -
    -
    +
    +
    -

    featuresetFEatureSettingsPut

    +

    devicesetSpectrumSettingsPut

    -

    apply all settings unconditionally (force)

    +

    Apply main spectrum settings unconditionally (force)


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureSettings *body = ; // Feature settings to apply
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFEatureSettingsPutWith:featureIndex
    +[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
         body:body
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -36365,14 +42890,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    +var api = new SdRangel.DeviceSetApi()
     
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {FeatureSettings} Feature settings to apply
    +var body = ; // {GLSpectrum} Spectrum settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -36382,14 +42907,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFEatureSettingsPut(featureIndex, body, callback);
    +api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36398,23 +42923,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFEatureSettingsPutExample
    +    public class devicesetSpectrumSettingsPutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFEatureSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
                 }
             }
         }
    @@ -36422,42 +42947,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureSettings | Feature settings to apply
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->featuresetFEatureSettingsPut($featureIndex, $body);
    +    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFEatureSettingsPut(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36465,15 +42990,15 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureSettings | Feature settings to apply
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.featureset_f_eature_settings_put(featureIndex, body)
    +    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    @@ -36485,11 +43010,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -36497,7 +43022,7 @@ except ApiException as e:
    - Index of the feature in the features list + Index of device set in the device set list
    @@ -36526,10 +43051,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Feature settings to apply", + "description" : "Spectrum settings to apply", "required" : true, "schema" : { - "$ref" : "#/definitions/FeatureSettings" + "$ref" : "#/definitions/GLSpectrum" } }; var schema = schemaWrapper.schema; @@ -36543,12 +43068,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_featuresetFEatureSettingsPut_body'); + var result = $('#d2e199_devicesetSpectrumSettingsPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -36557,67 +43082,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return feature new settings

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 200 - On success returns new settings values

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Invalid device set index or device not found

    -
    -
    +
    +
    - +
    @@ -36690,14 +43172,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -36733,14 +43215,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureActionsPost

    +

    devicesetSpectrumWorkspaceGet

    -

    post an action or actions on a channel

    +

    Get main spectrum UI workspace information (GUI)


    -
    /sdrangel/featureset/feature/{featureIndex}/actions
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/actions"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureActions *body = ; // Action(s) to apply to the feature
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureActionsPostWith:featureIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -36878,14 +43356,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var api = new SdRangel.DeviceSetApi()
     
    -var body = ; // {FeatureActions} Action(s) to apply to the feature
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
     
     var callback = function(error, data, response) {
    @@ -36895,14 +43371,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureActionsPost(featureIndex, body, callback);
    +api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -36911,23 +43387,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureActionsPostExample
    +    public class devicesetSpectrumWorkspaceGetExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureActions(); // FeatureActions | Action(s) to apply to the feature
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
    +                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureActionsPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
                 }
             }
         }
    @@ -36935,42 +43410,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureActions | Action(s) to apply to the feature
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->featuresetFeatureActionsPost($featureIndex, $body);
    +    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureActionsPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureActions->new(); # FeatureActions | Action(s) to apply to the feature
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureActionsPost(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureActionsPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -36978,15 +43451,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureActions | Action(s) to apply to the feature
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.featureset_feature_actions_post(featureIndex, body)
    +    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureActionsPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    @@ -36998,11 +43470,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -37010,7 +43482,7 @@ except ApiException as e:
    - Index of the feature in the features list + Index of device set in the device set list
    @@ -37024,113 +43496,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 200 - On success return main spectrum UI workspace index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -37203,14 +43590,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -37246,14 +43633,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureDelete

    +

    devicesetSpectrumWorkspacePut

    -

    delete a feature

    +

    move main spectrum UI to workspace (GUI)


    -
    /sdrangel/featureset/feature/{featureIndex}
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}"
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +WorkspaceInfo *body = ; // Destination workspace information
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureDeleteWith:featureIndex
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance devicesetSpectrumWorkspacePutWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -37387,12 +43778,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    +var api = new SdRangel.DeviceSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {WorkspaceInfo} Destination workspace information
     
     
     var callback = function(error, data, response) {
    @@ -37402,14 +43795,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureDelete(featureIndex, callback);
    +api.devicesetSpectrumWorkspacePut(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -37418,22 +43811,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureDeleteExample
    +    public class devicesetSpectrumWorkspacePutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumWorkspacePut(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspacePut: " + e.Message );
                 }
             }
         }
    @@ -37441,40 +43835,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->featuresetFeatureDelete($featureIndex);
    +    $result = $api_instance->devicesetSpectrumWorkspacePut($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureDelete(featureIndex => $featureIndex);
    +    my $result = $api_instance->devicesetSpectrumWorkspacePut(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -37482,14 +43878,15 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.featureset_feature_delete(featureIndex)
    +    api_response = api_instance.deviceset_spectrum_workspace_put(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspacePut: %s\n" % e)
    @@ -37501,11 +43898,11 @@ except ApiException as e: Name Description - featureIndex* + deviceSetIndex* -
    +
    @@ -37513,7 +43910,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of device set in the device set list
    @@ -37527,28 +43924,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return deleted feature settings

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature index

    +

    Status: 400 - Invalid device set or workspace index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 500 - Error

    -
    -
    +
    +
    -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    -
    - +
    @@ -37707,14 +44103,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeaturePost

    +

    instanceDeviceSetDelete

    -

    add a feature

    +

    Remove last device set. The GUI version does not remove the first device.


    -
    /sdrangel/featureset/feature
    +
    /sdrangel/deviceset

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
    +        DeviceSetApi apiInstance = new DeviceSetApi();
             try {
    -            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
    +        DeviceSetApi apiInstance = new DeviceSetApi();
             try {
    -            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +            SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeatureSettings *body = ; // Feature identification (no settings data)
    -
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +                            
    +
    
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeaturePostWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceDeviceSetDeleteWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -37848,13 +44241,10 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var body = ; // {FeatureSettings} Feature identification (no settings data)
    -
    +var api = new SdRangel.DeviceSetApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -37863,14 +44253,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeaturePost(body, callback);
    +api.instanceDeviceSetDelete(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -37879,22 +44269,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeaturePostExample
    +    public class instanceDeviceSetDeleteExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var body = new FeatureSettings(); // FeatureSettings | Feature identification (no settings data)
    +            var apiInstance = new DeviceSetApi();
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeaturePost(body);
    +                SuccessResponse result = apiInstance.instanceDeviceSetDelete();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeaturePost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetDelete: " + e.Message );
                 }
             }
         }
    @@ -37902,40 +44291,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeatureSettings | Feature identification (no settings data)
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
     
     try {
    -    $result = $api_instance->featuresetFeaturePost($body);
    +    $result = $api_instance->instanceDeviceSetDelete();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeaturePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature identification (no settings data)
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
     
     eval { 
    -    my $result = $api_instance->featuresetFeaturePost(body => $body);
    +    my $result = $api_instance->instanceDeviceSetDelete();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeaturePost: $@\n";
    +    warn "Exception when calling DeviceSetApi->instanceDeviceSetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -37943,14 +44330,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeatureSettings | Feature identification (no settings data)
    +api_instance = swagger_sdrangel.DeviceSetApi()
     
     try: 
    -    api_response = api_instance.featureset_feature_post(body)
    +    api_response = api_instance.instance_device_set_delete()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeaturePost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->instanceDeviceSetDelete: %s\n" % e)
    @@ -37958,68 +44344,26 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to add a feature was sent successfully

    +

    Status: 202 - Message to remove last device set was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 404 - No more device sets to be deleted

    -
    -
    +
    +
    - +
    @@ -38094,14 +44438,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -38137,14 +44481,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureReportGet

    +

    instanceDeviceSetPost

    -

    get a feature report

    +

    Add (append) a new device set with default values


    -
    /sdrangel/featureset/feature/{featureIndex}/report
    +
    /sdrangel/deviceset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/report"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.FeatureSetApi;
    +import SWGSDRangel.api.DeviceSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
             
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.FeatureSetApi;
    +                          
    +
    import SWGSDRangel.api.DeviceSetApi;
     
    -public class FeatureSetApiExample {
    +public class DeviceSetApiExample {
     
         public static void main(String[] args) {
    -        FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +            SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#instanceDeviceSetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
    -FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance featuresetFeatureReportGetWith:featureIndex
    -              completionHandler: ^(FeatureReport output, NSError* error) {
    +[apiInstance instanceDeviceSetPostWith:direction
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38278,13 +44622,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.FeatureSetApi()
    -
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var api = new SdRangel.DeviceSetApi()
     
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -38293,14 +44638,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureReportGet(featureIndex, callback);
    +api.instanceDeviceSetPost(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38309,22 +44654,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureReportGetExample
    +    public class instanceDeviceSetPostExample
         {
             public void main()
             {
                 
    -            var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var apiInstance = new DeviceSetApi();
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
    +                SuccessResponse result = apiInstance.instanceDeviceSetPost(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureReportGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.instanceDeviceSetPost: " + e.Message );
                 }
             }
         }
    @@ -38332,40 +44677,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->featuresetFeatureReportGet($featureIndex);
    +    $result = $api_instance->instanceDeviceSetPost($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureReportGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::FeatureSetApi;
    +use SWGSDRangel::DeviceSetApi;
     
    -my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureReportGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->instanceDeviceSetPost(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureReportGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->instanceDeviceSetPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -38373,30 +44718,34 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.featureset_feature_report_get(featureIndex)
    +    api_response = api_instance.instance_device_set_post(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureReportGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->instanceDeviceSetPost: %s\n" % e)

    Parameters

    -
    Path parameters
    + + + + +
    Query parameters
    - - - - - + + + + + @@ -38417,29 +44763,25 @@ except ApiException as e:
    NameDescription
    featureIndex*
    NameDescription
    direction -
    +
    @@ -38404,12 +44753,9 @@ except ApiException as e:
    - Index of the feature in the features list + 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -
    - Required -
    - - - -

    Responses

    -

    Status: 200 - On success return feature report

    +

    Status: 202 - Message to add a new device set was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature index

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 501 - Function not implemented

    -
    -
    +
    +
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - +

    -
    -
    +
    +
    +

    FeatureSet

    +
    +
    -

    featuresetFeatureRunDelete

    +

    featuresetFEatureSettingsPut

    -

    stop feature

    +

    apply all settings unconditionally (force)


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -38688,47 +44947,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFEatureSettingsPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunDeleteWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFEatureSettingsPutWith:featureIndex
    +    body:body
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38739,12 +45002,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureSettings} Feature settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -38754,14 +45019,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunDelete(featureIndex, callback);
    +api.featuresetFEatureSettingsPut(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38770,22 +45035,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunDeleteExample
    +    public class featuresetFEatureSettingsPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
    +                FeatureSettings result = apiInstance.featuresetFEatureSettingsPut(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunDelete: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFEatureSettingsPut: " + e.Message );
                 }
             }
         }
    @@ -38793,40 +45059,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetFeatureRunDelete($featureIndex);
    +    $result = $api_instance->featuresetFEatureSettingsPut($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunDelete(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFEatureSettingsPut(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunDelete: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -38835,13 +45103,14 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_feature_run_delete(featureIndex)
    +    api_response = api_instance.featureset_f_eature_settings_put(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunDelete: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFEatureSettingsPut: %s\n" % e)
    @@ -38857,7 +45126,7 @@ except ApiException as e: -
    +
    @@ -38865,7 +45134,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of the feature in the features list
    @@ -38879,28 +45148,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return state before change

    +

    Status: 200 - On success return feature new settings

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set index

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Device not found

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -39016,14 +45327,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -39059,14 +45370,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureRunGet

    +

    featuresetFeatureActionsPost

    -

    get feature run status

    +

    post an action or actions on a channel


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}/actions

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39149,47 +45460,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the features list
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureActions body = ; // FeatureActions | Action(s) to apply to the feature
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the features list
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureActions *body = ; // Action(s) to apply to the feature
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunGetWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFeatureActionsPostWith:featureIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39200,12 +45515,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the features list
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureActions} Action(s) to apply to the feature
     
     
     var callback = function(error, data, response) {
    @@ -39215,14 +45532,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunGet(featureIndex, callback);
    +api.featuresetFeatureActionsPost(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39231,22 +45548,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunGetExample
    +    public class featuresetFeatureActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the features list
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureActions(); // FeatureActions | Action(s) to apply to the feature
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
    +                SuccessResponse result = apiInstance.featuresetFeatureActionsPost(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureActionsPost: " + e.Message );
                 }
             }
         }
    @@ -39254,40 +45572,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the features list
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureActions | Action(s) to apply to the feature
     
     try {
    -    $result = $api_instance->featuresetFeatureRunGet($featureIndex);
    +    $result = $api_instance->featuresetFeatureActionsPost($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the features list
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureActions->new(); # FeatureActions | Action(s) to apply to the feature
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureActionsPost(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39296,13 +45616,14 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the features list
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureActions | Action(s) to apply to the feature
     
     try: 
    -    api_response = api_instance.featureset_feature_run_get(featureIndex)
    +    api_response = api_instance.featureset_feature_actions_post(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureActionsPost: %s\n" % e)
    @@ -39318,7 +45639,7 @@ except ApiException as e: -
    +
    @@ -39326,7 +45647,7 @@ except ApiException as e:
    - Index of feature in the features list + Index of the feature in the features list
    @@ -39340,28 +45661,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - On success return current feature run state

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    +
    @@ -39477,14 +45883,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureRunPost

    +

    featuresetFeatureDelete

    -

    start feature

    +

    delete a feature


    -
    /sdrangel/featureset/feature/{featureIndex}/run
    +
    /sdrangel/featureset/feature/{featureIndex}

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39569,17 +45975,17 @@ public class FeatureSetApiExample {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
    @@ -39588,26 +45994,26 @@ public class FeatureSetApiExample {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +            FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureRunPostWith:featureIndex
    -              completionHandler: ^(DeviceState output, NSError* error) {
    +[apiInstance featuresetFeatureDeleteWith:featureIndex
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39618,7 +46024,7 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
    @@ -39633,14 +46039,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureRunPost(featureIndex, callback);
    +api.featuresetFeatureDelete(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39649,7 +46055,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureRunPostExample
    +    public class featuresetFeatureDeleteExample
         {
             public void main()
             {
    @@ -39659,12 +46065,12 @@ namespace Example
     
                 try
                 {
    -                DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
    +                FeatureSettings result = apiInstance.featuresetFeatureDelete(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunPost: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureDelete: " + e.Message );
                 }
             }
         }
    @@ -39672,7 +46078,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -39680,15 +46086,15 @@ $api_instance = new Swagger\Client\Api\FeatureSetApi();
     $featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureRunPost($featureIndex);
    +    $result = $api_instance->featuresetFeatureDelete($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
    @@ -39697,15 +46103,15 @@ my $api_instance = SWGSDRangel::FeatureSetApi->new();
     my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureRunPost(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureDelete(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureRunPost: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39717,10 +46123,10 @@ api_instance = swagger_sdrangel.FeatureSetApi()
     featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_run_post(featureIndex)
    +    api_response = api_instance.featureset_feature_delete(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureRunPost: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureDelete: %s\n" % e)
    @@ -39736,7 +46142,7 @@ except ApiException as e: -
    +
    @@ -39762,24 +46168,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return state before change

    +

    Status: 200 - On success return deleted feature settings

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Feature set or feature not found

    + + + +
    +
    +
    + +
    +
    @@ -39852,14 +46301,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -39895,14 +46344,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureSettingsGet

    +

    featuresetFeaturePost

    -

    get a feature settings

    +

    add a feature


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/featureset/feature

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39985,47 +46434,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature identification (no settings data)
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +            SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeaturePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of the feature in the features list
    +                            
    +
    FeatureSettings *body = ; // Feature identification (no settings data)
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureSettingsGetWith:featureIndex
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance featuresetFeaturePostWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40036,12 +46485,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of the feature in the features list
    +var body = ; // {FeatureSettings} Feature identification (no settings data)
     
     
     var callback = function(error, data, response) {
    @@ -40051,14 +46500,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureSettingsGet(featureIndex, callback);
    +api.featuresetFeaturePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40067,22 +46516,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureSettingsGetExample
    +    public class featuresetFeaturePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature identification (no settings data)
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
    +                SuccessResponse result = apiInstance.featuresetFeaturePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeaturePost: " + e.Message );
                 }
             }
         }
    @@ -40090,40 +46539,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature identification (no settings data)
     
     try {
    -    $result = $api_instance->featuresetFeatureSettingsGet($featureIndex);
    +    $result = $api_instance->featuresetFeaturePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeaturePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature identification (no settings data)
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureSettingsGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeaturePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeaturePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40132,44 +46581,58 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature identification (no settings data)
     
     try: 
    -    api_response = api_instance.featureset_feature_settings_get(featureIndex)
    +    api_response = api_instance.featureset_feature_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeaturePost: %s\n" % e)

    Parameters

    -
    Path parameters
    + + +
    Body parameters
    - - - - - + + + + + @@ -40177,70 +46640,25 @@ except ApiException as e: - -

    Responses

    -

    Status: 200 - On success return feature settings

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid feature index

    +

    Status: 202 - Message to add a feature was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set or feature not found

    +

    Status: 404 - Feature not found

    -
    -
    +
    +
    - +
    @@ -40313,14 +46731,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40356,14 +46774,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureSettingsPatch

    +

    featuresetFeatureReportGet

    -

    apply settings differentially (no force)

    +

    get a feature report


    -
    /sdrangel/featureset/feature/{featureIndex}/settings
    +
    /sdrangel/featureset/feature/{featureIndex}/report

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40447,19 +46865,18 @@ public class FeatureSetApiExample {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
    @@ -40467,30 +46884,27 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
             Integer featureIndex = 56; // Integer | Index of the feature in the features list
    -        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +            FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    -FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureSettingsPatchWith:featureIndex
    -    body:body
    -              completionHandler: ^(FeatureSettings output, NSError* error) {
    +[apiInstance featuresetFeatureReportGetWith:featureIndex
    +              completionHandler: ^(FeatureReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40501,15 +46915,13 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
     var featureIndex = 56; // {Integer} Index of the feature in the features list
     
    -var body = ; // {FeatureSettings} Feature settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -40518,14 +46930,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureSettingsPatch(featureIndex, body, callback);
    +api.featuresetFeatureReportGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40534,23 +46946,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureSettingsPatchExample
    +    public class featuresetFeatureReportGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
                 var featureIndex = 56;  // Integer | Index of the feature in the features list
    -            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
    +                FeatureReport result = apiInstance.featuresetFeatureReportGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureReportGet: " + e.Message );
                 }
             }
         }
    @@ -40558,42 +46969,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
     $featureIndex = 56; // Integer | Index of the feature in the features list
    -$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetFeatureSettingsPatch($featureIndex, $body);
    +    $result = $api_instance->featuresetFeatureReportGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
     my $featureIndex = 56; # Integer | Index of the feature in the features list
    -my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureSettingsPatch(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->featuresetFeatureReportGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40603,13 +47012,12 @@ from pprint import pprint
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
     featureIndex = 56 # Integer | Index of the feature in the features list
    -body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_feature_settings_patch(featureIndex, body)
    +    api_response = api_instance.featureset_feature_report_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureReportGet: %s\n" % e)
    @@ -40625,7 +47033,7 @@ except ApiException as e:
    NameDescription
    featureIndex*
    NameDescription
    body * -
    -
    -
    - - Integer - + +
    -
    +
    @@ -40647,70 +47055,28 @@ except ApiException as e:
    -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success return feature new settings

    +

    Status: 200 - On success return feature report

    -
    -
    +
    +
    - +
    @@ -40740,14 +47106,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40783,14 +47149,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40826,14 +47192,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -40869,14 +47235,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureWorkspaceGet

    +

    featuresetFeatureRunDelete

    -

    get feature UI workspace information (GUI)

    +

    stop feature


    -
    /sdrangel/featureset/feature/{featureIndex}/workspace
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40959,47 +47325,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +            DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the feature set
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureWorkspaceGetWith:featureIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance featuresetFeatureRunDeleteWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41010,12 +47376,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the feature set
    +var featureIndex = 56; // {Integer} Index of feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -41025,14 +47391,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureWorkspaceGet(featureIndex, callback);
    +api.featuresetFeatureRunDelete(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41041,22 +47407,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureWorkspaceGetExample
    +    public class featuresetFeatureRunDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the feature set
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
    +                DeviceState result = apiInstance.featuresetFeatureRunDelete(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunDelete: " + e.Message );
                 }
             }
         }
    @@ -41064,40 +47430,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the feature set
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureWorkspaceGet($featureIndex);
    +    $result = $api_instance->featuresetFeatureRunDelete($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the feature set
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureWorkspaceGet(featureIndex => $featureIndex);
    +    my $result = $api_instance->featuresetFeatureRunDelete(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41106,13 +47472,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the feature set
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_workspace_get(featureIndex)
    +    api_response = api_instance.featureset_feature_run_delete(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunDelete: %s\n" % e)
    @@ -41128,7 +47494,7 @@ except ApiException as e: -
    +
    @@ -41136,7 +47502,7 @@ except ApiException as e:
    - Index of feature in the feature set + Index of feature in the features list
    @@ -41154,24 +47520,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return workspace information

    +

    Status: 200 - On success return state before change

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid feature set index

    +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Device not found

    + + + +
    +
    +
    + +
    +
    @@ -41244,14 +47653,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -41287,14 +47696,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetFeatureWorkspacePut

    +

    featuresetFeatureRunGet

    -

    move feature UI to workspace (GUI)

    +

    get feature run status


    -
    /sdrangel/featureset/feature/{featureIndex}/workspace
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41377,51 +47786,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    -        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +            DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *featureIndex = 56; // Index of feature in the feature set
    -WorkspaceInfo *body = ; // Destination workspace information
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetFeatureWorkspacePutWith:featureIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance featuresetFeatureRunGetWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41432,14 +47837,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var featureIndex = 56; // {Integer} Index of feature in the feature set
    -
    -var body = ; // {WorkspaceInfo} Destination workspace information
    +var featureIndex = 56; // {Integer} Index of feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -41449,14 +47852,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetFeatureWorkspacePut(featureIndex, body, callback);
    +api.featuresetFeatureRunGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41465,23 +47868,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetFeatureWorkspacePutExample
    +    public class featuresetFeatureRunGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var featureIndex = 56;  // Integer | Index of feature in the feature set
    -            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
    +                DeviceState result = apiInstance.featuresetFeatureRunGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspacePut: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunGet: " + e.Message );
                 }
             }
         }
    @@ -41489,42 +47891,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$featureIndex = 56; // Integer | Index of feature in the feature set
    -$body = ; // WorkspaceInfo | Destination workspace information
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetFeatureWorkspacePut($featureIndex, $body);
    +    $result = $api_instance->featuresetFeatureRunGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $featureIndex = 56; # Integer | Index of feature in the feature set
    -my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetFeatureWorkspacePut(featureIndex => $featureIndex, body => $body);
    +    my $result = $api_instance->featuresetFeatureRunGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41533,14 +47933,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -featureIndex = 56 # Integer | Index of feature in the feature set
    -body =  # WorkspaceInfo | Destination workspace information
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_feature_workspace_put(featureIndex, body)
    +    api_response = api_instance.featureset_feature_run_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunGet: %s\n" % e)
    @@ -41556,7 +47955,7 @@ except ApiException as e: -
    +
    @@ -41564,7 +47963,7 @@ except ApiException as e:
    - Index of feature in the feature set + Index of feature in the features list
    @@ -41578,70 +47977,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    +

    Status: 200 - On success return current feature run state

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid device set or workspace index

    +

    Status: 404 - Feature not found

    -
    -
    +
    +
    - +
    @@ -41714,14 +48071,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41757,14 +48114,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetGet

    +

    featuresetFeatureRunPost

    -

    Get features information

    +

    start feature


    -
    /sdrangel/featureset
    +
    /sdrangel/featureset/feature/{featureIndex}/run

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featureset"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/feature/{featureIndex}/run"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41847,44 +48204,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            FeatureSet result = apiInstance.featuresetGet();
    +            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the features list
             try {
    -            FeatureSet result = apiInstance.featuresetGet();
    +            DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureRunPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the features list
    +
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetGetWithCompletionHandler: 
    -              ^(FeatureSet output, NSError* error) {
    +[apiInstance featuresetFeatureRunPostWith:featureIndex
    +              completionHandler: ^(DeviceState output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41895,11 +48255,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    +var featureIndex = 56; // {Integer} Index of feature in the features list
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -41907,14 +48270,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetGet(callback);
    +api.featuresetFeatureRunPost(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41923,21 +48286,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetGetExample
    +    public class featuresetFeatureRunPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    +            var featureIndex = 56;  // Integer | Index of feature in the features list
     
                 try
                 {
    -                FeatureSet result = apiInstance.featuresetGet();
    +                DeviceState result = apiInstance.featuresetFeatureRunPost(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureRunPost: " + e.Message );
                 }
             }
         }
    @@ -41945,38 +48309,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$featureIndex = 56; // Integer | Index of feature in the features list
     
     try {
    -    $result = $api_instance->featuresetGet();
    +    $result = $api_instance->featuresetFeatureRunPost($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureRunPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $featureIndex = 56; # Integer | Index of feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetGet();
    +    my $result = $api_instance->featuresetFeatureRunPost(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureRunPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41985,41 +48351,72 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    +featureIndex = 56 # Integer | Index of feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_get()
    +    api_response = api_instance.featureset_feature_run_post(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureRunPost: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of feature in the features list +
    +
    +
    + Required +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return details on the features present in the system

    +

    Status: 200 - On success return state before change

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Feature not found

    + + + +
    +
    +
    + +
    +
    @@ -42049,14 +48489,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -42092,14 +48532,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPatch

    +

    featuresetFeatureSettingsGet

    -

    Load a preset in features

    +

    get a feature settings


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42182,47 +48622,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // Load preset settings to the features
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPatchWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureSettingsGetWith:featureIndex
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42233,12 +48673,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} Load preset settings to the features
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
     
     
     var callback = function(error, data, response) {
    @@ -42248,14 +48688,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPatch(body, callback);
    +api.featuresetFeatureSettingsGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42264,22 +48704,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPatchExample
    +    public class featuresetFeatureSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | Load preset settings to the features
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
    +                FeatureSettings result = apiInstance.featuresetFeatureSettingsGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -42287,40 +48727,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | Load preset settings to the features
    +$featureIndex = 56; // Integer | Index of the feature in the features list
     
     try {
    -    $result = $api_instance->featuresetPresetPatch($body);
    +    $result = $api_instance->featuresetFeatureSettingsGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | Load preset settings to the features
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPatch(body => $body);
    +    my $result = $api_instance->featuresetFeatureSettingsGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42329,58 +48769,44 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | Load preset settings to the features
    +featureIndex = 56 # Integer | Index of the feature in the features list
     
     try: 
    -    api_response = api_instance.featureset_preset_patch(body)
    +    api_response = api_instance.featureset_feature_settings_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureSettingsGet: %s\n" % e)

    Parameters

    - - -
    Body parameters
    +
    Path parameters
    - - - - - + + + + + @@ -42388,25 +48814,27 @@ $(document).ready(function() { + +

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return feature settings

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 404 - No preset found

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -42522,14 +48950,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -42565,14 +48993,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPost

    +

    featuresetFeatureSettingsPatch

    -

    Create a new preset from features settings.

    +

    apply settings differentially (no force)


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/settings

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/featureset/feature/{featureIndex}/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42655,47 +49083,51 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +        Integer featureIndex = 56; // Integer | Index of the feature in the features list
    +        FeatureSettings body = ; // FeatureSettings | Feature settings to apply
             try {
    -            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +            FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // save features settings on a new preset
    +                            
    +
    Integer *featureIndex = 56; // Index of the feature in the features list
    +FeatureSettings *body = ; // Feature settings to apply
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureSettingsPatchWith:featureIndex
    +    body:body
    +              completionHandler: ^(FeatureSettings output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42706,12 +49138,14 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} save features settings on a new preset
    +var featureIndex = 56; // {Integer} Index of the feature in the features list
    +
    +var body = ; // {FeatureSettings} Feature settings to apply
     
     
     var callback = function(error, data, response) {
    @@ -42721,14 +49155,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPost(body, callback);
    +api.featuresetFeatureSettingsPatch(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42737,22 +49171,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPostExample
    +    public class featuresetFeatureSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings on a new preset
    +            var featureIndex = 56;  // Integer | Index of the feature in the features list
    +            var body = new FeatureSettings(); // FeatureSettings | Feature settings to apply
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.featuresetPresetPost(body);
    +                FeatureSettings result = apiInstance.featuresetFeatureSettingsPatch(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPost: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -42760,40 +49195,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | save features settings on a new preset
    +$featureIndex = 56; // Integer | Index of the feature in the features list
    +$body = ; // FeatureSettings | Feature settings to apply
     
     try {
    -    $result = $api_instance->featuresetPresetPost($body);
    +    $result = $api_instance->featuresetFeatureSettingsPatch($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings on a new preset
    +my $featureIndex = 56; # Integer | Index of the feature in the features list
    +my $body = SWGSDRangel::Object::FeatureSettings->new(); # FeatureSettings | Feature settings to apply
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPost(body => $body);
    +    my $result = $api_instance->featuresetFeatureSettingsPatch(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPost: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42802,18 +49239,49 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | save features settings on a new preset
    +featureIndex = 56 # Integer | Index of the feature in the features list
    +body =  # FeatureSettings | Feature settings to apply
     
     try: 
    -    api_response = api_instance.featureset_preset_post(body)
    +    api_response = api_instance.featureset_feature_settings_patch(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPost: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureSettingsPatch: %s\n" % e)

    Parameters

    +
    Path parameters
    +
    NameDescription
    body *
    NameDescription
    featureIndex* - -
    +
    + Index of the feature in the features list +
    + +
    + Required +
    + +
    + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of the feature in the features list +
    +
    +
    + Required +
    +
    +
    +
    Body parameters
    @@ -42831,10 +49299,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "save features settings on a new preset", + "description" : "Feature settings to apply", "required" : true, "schema" : { - "$ref" : "#/definitions/FeaturePresetIdentifier" + "$ref" : "#/definitions/FeatureSettings" } }; var schema = schemaWrapper.schema; @@ -42848,12 +49316,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_featuresetPresetPost_body'); + var result = $('#d2e199_featuresetFeatureSettingsPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -42862,67 +49330,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the created preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    +

    Status: 200 - On success return feature new settings

    -
    -
    +
    +
    - +
    -

    Status: 404 - Feature set not found

    +

    Status: 400 - Invalid feature index

    -
    -
    +
    +
    - +
    -

    Status: 409 - Preset already exists

    +

    Status: 404 - Feature set or feature not found

    -
    -
    +
    +
    - +
    @@ -43038,14 +49463,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -43081,14 +49506,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    featuresetPresetPut

    +

    featuresetFeatureWorkspaceGet

    -

    Update an existing preset with features settings.

    +

    get feature UI workspace information (GUI)


    -
    /sdrangel/featureset/preset
    +
    /sdrangel/featureset/feature/{featureIndex}/workspace

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/featureset/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -43171,47 +49596,47 @@ public class FeatureSetApiExample {
         public static void main(String[] args) {
             
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.FeatureSetApi;
     
     public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             FeatureSetApi apiInstance = new FeatureSetApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
             try {
    -            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspaceGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // save features settings to the preset
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the feature set
     
     FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance featuresetPresetPutWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance featuresetFeatureWorkspaceGetWith:featureIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -43222,12 +49647,12 @@ FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {FeaturePresetIdentifier} save features settings to the preset
    +var featureIndex = 56; // {Integer} Index of feature in the feature set
     
     
     var callback = function(error, data, response) {
    @@ -43237,14 +49662,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.featuresetPresetPut(body, callback);
    +api.featuresetFeatureWorkspaceGet(featureIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -43253,22 +49678,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class featuresetPresetPutExample
    +    public class featuresetFeatureWorkspaceGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new FeatureSetApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings to the preset
    +            var featureIndex = 56;  // Integer | Index of feature in the feature set
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +                WorkspaceInfo result = apiInstance.featuresetFeatureWorkspaceGet(featureIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPut: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspaceGet: " + e.Message );
                 }
             }
         }
    @@ -43276,40 +49701,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\FeatureSetApi();
    -$body = ; // FeaturePresetIdentifier | save features settings to the preset
    +$featureIndex = 56; // Integer | Index of feature in the feature set
     
     try {
    -    $result = $api_instance->featuresetPresetPut($body);
    +    $result = $api_instance->featuresetFeatureWorkspaceGet($featureIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling FeatureSetApi->featuresetPresetPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::FeatureSetApi;
     
     my $api_instance = SWGSDRangel::FeatureSetApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings to the preset
    +my $featureIndex = 56; # Integer | Index of feature in the feature set
     
     eval { 
    -    my $result = $api_instance->featuresetPresetPut(body => $body);
    +    my $result = $api_instance->featuresetFeatureWorkspaceGet(featureIndex => $featureIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling FeatureSetApi->featuresetPresetPut: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -43318,58 +49743,44 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.FeatureSetApi()
    -body =  # FeaturePresetIdentifier | save features settings to the preset
    +featureIndex = 56 # Integer | Index of feature in the feature set
     
     try: 
    -    api_response = api_instance.featureset_preset_put(body)
    +    api_response = api_instance.featureset_feature_workspace_get(featureIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling FeatureSetApi->featuresetPresetPut: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureWorkspaceGet: %s\n" % e)

    Parameters

    - - -
    Body parameters
    +
    Path parameters
    - - - - - + + + + + @@ -43377,25 +49788,27 @@ $(document).ready(function() { + +

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return workspace information

    -
    -
    +
    +
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - +
    -

    Status: 404 - No preset found

    +

    Status: 400 - Invalid feature set index

    -
    -
    +
    +
    - +
    @@ -43511,14 +49881,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -43554,14 +49924,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    - -
    -

    Instance

    -
    -
    +
    +
    -

    instanceAudioGet

    +

    featuresetFeatureWorkspacePut

    -

    Get audio devices list available to this instance

    +

    move feature UI to workspace (GUI)


    -
    /sdrangel/audio
    +
    /sdrangel/featureset/feature/{featureIndex}/workspace

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/audio"
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/feature/{featureIndex}/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            AudioDevices result = apiInstance.instanceAudioGet();
    +            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        Integer featureIndex = 56; // Integer | Index of feature in the feature set
    +        WorkspaceInfo body = ; // WorkspaceInfo | Destination workspace information
             try {
    -            AudioDevices result = apiInstance.instanceAudioGet();
    +            SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetFeatureWorkspacePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +                            
    +
    Integer *featureIndex = 56; // Index of feature in the feature set
    +WorkspaceInfo *body = ; // Destination workspace information
     
    -[apiInstance instanceAudioGetWithCompletionHandler: 
    -              ^(AudioDevices output, NSError* error) {
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +
    +[apiInstance featuresetFeatureWorkspacePutWith:featureIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -43695,10 +50069,15 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
    +
    +var featureIndex = 56; // {Integer} Index of feature in the feature set
    +
    +var body = ; // {WorkspaceInfo} Destination workspace information
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -43707,14 +50086,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioGet(callback);
    +api.featuresetFeatureWorkspacePut(featureIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -43723,21 +50102,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioGetExample
    +    public class featuresetFeatureWorkspacePutExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new FeatureSetApi();
    +            var featureIndex = 56;  // Integer | Index of feature in the feature set
    +            var body = new WorkspaceInfo(); // WorkspaceInfo | Destination workspace information
     
                 try
                 {
    -                AudioDevices result = apiInstance.instanceAudioGet();
    +                SuccessResponse result = apiInstance.featuresetFeatureWorkspacePut(featureIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioGet: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetFeatureWorkspacePut: " + e.Message );
                 }
             }
         }
    @@ -43745,38 +50126,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$featureIndex = 56; // Integer | Index of feature in the feature set
    +$body = ; // WorkspaceInfo | Destination workspace information
     
     try {
    -    $result = $api_instance->instanceAudioGet();
    +    $result = $api_instance->featuresetFeatureWorkspacePut($featureIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $featureIndex = 56; # Integer | Index of feature in the feature set
    +my $body = SWGSDRangel::Object::WorkspaceInfo->new(); # WorkspaceInfo | Destination workspace information
     
     eval { 
    -    my $result = $api_instance->instanceAudioGet();
    +    my $result = $api_instance->featuresetFeatureWorkspacePut(featureIndex => $featureIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioGet: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -43784,42 +50169,116 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +featureIndex = 56 # Integer | Index of feature in the feature set
    +body =  # WorkspaceInfo | Destination workspace information
     
     try: 
    -    api_response = api_instance.instance_audio_get()
    +    api_response = api_instance.featureset_feature_workspace_put(featureIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioGet: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetFeatureWorkspacePut: %s\n" % e)

    Parameters

    +
    Path parameters
    +
    NameDescription
    body *
    NameDescription
    featureIndex* - -
    +
    + Index of feature in the feature set +
    + +
    + Required +
    + +
    + + + + + + + + +
    NameDescription
    featureIndex* + + +
    +
    +
    + + Integer + + +
    + Index of feature in the feature set +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 202 - Message to perform action was sent successfully

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid device set or workspace index

    + + + +
    +
    +
    + +
    +
    @@ -43849,14 +50351,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -43892,14 +50394,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputCleanupPatch

    +

    featuresetGet

    -

    Remove registered parameters for devices not in list of available input devices for this instance

    +

    Get features information


    -
    /sdrangel/audio/input/cleanup
    +
    /sdrangel/featureset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/input/cleanup"
    +
    +
    curl -X GET "http://localhost/sdrangel/featureset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
             try {
    -            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            FeatureSet result = apiInstance.featuresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        FeatureSetApi apiInstance = new FeatureSetApi();
             try {
    -            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            FeatureSet result = apiInstance.featuresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputCleanupPatchWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance featuresetGetWithCompletionHandler: 
    +              ^(FeatureSet output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44030,10 +50532,10 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -44042,14 +50544,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputCleanupPatch(callback);
    +api.featuresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44058,21 +50560,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputCleanupPatchExample
    +    public class featuresetGetExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new FeatureSetApi();
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +                FeatureSet result = apiInstance.featuresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputCleanupPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetGet: " + e.Message );
                 }
             }
         }
    @@ -44080,38 +50582,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
     
     try {
    -    $result = $api_instance->instanceAudioInputCleanupPatch();
    +    $result = $api_instance->featuresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputCleanupPatch();
    +    my $result = $api_instance->featuresetGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputCleanupPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44119,13 +50621,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.FeatureSetApi()
     
     try: 
    -    api_response = api_instance.instance_audio_input_cleanup_patch()
    +    api_response = api_instance.featureset_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputCleanupPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetGet: %s\n" % e)
    @@ -44137,24 +50639,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Success.

    +

    Status: 200 - On success return details on the features present in the system

    -
    -
    +
    +
    - +
    @@ -44184,14 +50686,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -44227,14 +50729,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputDelete

    +

    featuresetPresetPatch

    -

    Delete audio input device parameters and return to defaults

    +

    Load a preset in features


    -
    /sdrangel/audio/input/parameters
    +
    /sdrangel/featureset/preset

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/featureset/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the features
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device.
    +                            
    +
    FeaturePresetIdentifier *body = ; // Load preset settings to the features
     
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputDeleteWith:body
    -              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +[apiInstance featuresetPresetPatchWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44368,12 +50870,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device.
    +var body = ; // {FeaturePresetIdentifier} Load preset settings to the features
     
     
     var callback = function(error, data, response) {
    @@ -44383,14 +50885,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputDelete(body, callback);
    +api.featuresetPresetPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44399,22 +50901,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputDeleteExample
    +    public class featuresetPresetPatchExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    -            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | Load preset settings to the features
     
                 try
                 {
    -                AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +                FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputDelete: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPatch: " + e.Message );
                 }
             }
         }
    @@ -44422,40 +50924,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | Load preset settings to the features
     
     try {
    -    $result = $api_instance->instanceAudioInputDelete($body);
    +    $result = $api_instance->featuresetPresetPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | Load preset settings to the features
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputDelete(body => $body);
    +    my $result = $api_instance->featuresetPresetPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputDelete: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44463,14 +50965,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | Load preset settings to the features
     
     try: 
    -    api_response = api_instance.instance_audio_input_delete(body)
    +    api_response = api_instance.featureset_preset_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputDelete: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetPresetPatch: %s\n" % e)
    @@ -44493,10 +50995,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Audio input parameters. Index is used to identify the device.", + "description" : "Load preset settings to the features", "required" : true, "schema" : { - "$ref" : "#/definitions/AudioInputDevice" + "$ref" : "#/definitions/FeaturePresetIdentifier" } }; var schema = schemaWrapper.schema; @@ -44510,12 +51012,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceAudioInputDelete_body'); + var result = $('#d2e199_featuresetPresetPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -44524,24 +51026,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success. Returns default parameters.

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 404 - Audio input device not found

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - No preset found

    + + + +
    +
    +
    + +
    +
    @@ -44614,14 +51159,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -44657,14 +51202,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioInputPatch

    +

    featuresetPresetPost

    -

    Set audio input device parameters

    +

    Create a new preset from features settings.


    -
    /sdrangel/audio/input/parameters
    +
    /sdrangel/featureset/preset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    curl -X POST "http://localhost/sdrangel/featureset/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.FeatureSetApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.FeatureSetApi;
     
    -public class InstanceApiExample {
    +public class FeatureSetApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    -        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings on a new preset
             try {
    -            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +                            
    +
    FeaturePresetIdentifier *body = ; // save features settings on a new preset
     
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
     
    -[apiInstance instanceAudioInputPatchWith:body
    -              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +[apiInstance featuresetPresetPostWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -44798,12 +51343,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.FeatureSetApi()
     
    -var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +var body = ; // {FeaturePresetIdentifier} save features settings on a new preset
     
     
     var callback = function(error, data, response) {
    @@ -44813,14 +51358,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioInputPatch(body, callback);
    +api.featuresetPresetPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -44829,22 +51374,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioInputPatchExample
    +    public class featuresetPresetPostExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    -            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings on a new preset
     
                 try
                 {
    -                AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +                PresetIdentifier result = apiInstance.featuresetPresetPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioInputPatch: " + e.Message );
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPost: " + e.Message );
                 }
             }
         }
    @@ -44852,40 +51397,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | save features settings on a new preset
     
     try {
    -    $result = $api_instance->instanceAudioInputPatch($body);
    +    $result = $api_instance->featuresetPresetPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioInputPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::FeatureSetApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instanceAudioInputPatch(body => $body);
    +    my $result = $api_instance->featuresetPresetPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioInputPatch: $@\n";
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -44893,14 +51438,14 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | save features settings on a new preset
     
     try: 
    -    api_response = api_instance.instance_audio_input_patch(body)
    +    api_response = api_instance.featureset_preset_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioInputPatch: %s\n" % e)
    + print("Exception when calling FeatureSetApi->featuresetPresetPost: %s\n" % e)
    @@ -44923,10 +51468,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Audio input parameters. Index is used to identify the device. Only settable fields are considered.", + "description" : "save features settings on a new preset", "required" : true, "schema" : { - "$ref" : "#/definitions/AudioInputDevice" + "$ref" : "#/definitions/FeaturePresetIdentifier" } }; var schema = schemaWrapper.schema; @@ -44940,12 +51485,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceAudioInputPatch_body'); + var result = $('#d2e199_featuresetPresetPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -44954,24 +51499,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    +

    Status: 202 - On successful sending of the message the created preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 404 - Audio input device not found

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Feature set not found

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 409 - Preset already exists

    -
    -
    +
    +
    - +
    -
    -
    -
    -
    -
    -
    -

    instanceAudioOutputCleanupPatch

    -

    -
    -
    -
    -

    -

    Remove registered parameters for devices not in list of available output devices for this instance

    -

    -
    -
    /sdrangel/audio/output/cleanup
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/output/cleanup"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +                            

    Status: 500 - Error

    -import java.io.File; -import java.util.*; + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    featuresetPresetPut

    +

    +
    +
    +
    +

    +

    Update an existing preset with features settings.

    +

    +
    +
    /sdrangel/featureset/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrangel/featureset/preset"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.FeatureSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class FeatureSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        try {
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.FeatureSetApi;
    +
    +public class FeatureSetApiExample {
    +
    +    public static void main(String[] args) {
    +        FeatureSetApi apiInstance = new FeatureSetApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | save features settings to the preset
    +        try {
    +            FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling FeatureSetApi#featuresetPresetPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    FeaturePresetIdentifier *body = ; // save features settings to the preset
    +
    +FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
    +
    +[apiInstance featuresetPresetPutWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.FeatureSetApi()
    +
    +var body = ; // {FeaturePresetIdentifier} save features settings to the preset
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.featuresetPresetPut(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class featuresetPresetPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new FeatureSetApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | save features settings to the preset
    +
    +            try
    +            {
    +                FeaturePresetIdentifier result = apiInstance.featuresetPresetPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\FeatureSetApi();
    +$body = ; // FeaturePresetIdentifier | save features settings to the preset
    +
    +try {
    +    $result = $api_instance->featuresetPresetPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling FeatureSetApi->featuresetPresetPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::FeatureSetApi;
    +
    +my $api_instance = SWGSDRangel::FeatureSetApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | save features settings to the preset
    +
    +eval { 
    +    my $result = $api_instance->featuresetPresetPut(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling FeatureSetApi->featuresetPresetPut: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.FeatureSetApi()
    +body =  # FeaturePresetIdentifier | save features settings to the preset
    +
    +try: 
    +    api_response = api_instance.featureset_preset_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling FeatureSetApi->featuresetPresetPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - No preset found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +

    Instance

    +
    +
    +
    +

    instanceAudioGet

    +

    +
    +
    +
    +

    +

    Get audio devices list available to this instance

    +

    +
    +
    /sdrangel/audio
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/audio"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            AudioDevices result = apiInstance.instanceAudioGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            AudioDevices result = apiInstance.instanceAudioGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioGetWithCompletionHandler: 
    +              ^(AudioDevices output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                AudioDevices result = apiInstance.instanceAudioGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputCleanupPatch

    +

    +
    +
    +
    +

    +

    Remove registered parameters for devices not in list of available input devices for this instance

    +

    +
    +
    /sdrangel/audio/input/cleanup
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/input/cleanup"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputCleanupPatchWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputCleanupPatch(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputCleanupPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.instanceAudioInputCleanupPatch();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputCleanupPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioInputCleanupPatch();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputCleanupPatch();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputCleanupPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_cleanup_patch()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputCleanupPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputDelete

    +

    +
    +
    +
    +

    +

    Delete audio input device parameters and return to defaults

    +

    +
    +
    /sdrangel/audio/input/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputDeleteWith:body
    +              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputDelete(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputDeleteExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +            try
    +            {
    +                AudioInputDevice result = apiInstance.instanceAudioInputDelete(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputDelete: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +try {
    +    $result = $api_instance->instanceAudioInputDelete($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputDelete: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputDelete(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputDelete: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device.
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_delete(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputDelete: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns default parameters.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio input device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioInputPatch

    +

    +
    +
    +
    +

    +

    Set audio input device parameters

    +

    +
    +
    /sdrangel/audio/input/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/input/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioInputDevice body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +        try {
    +            AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioInputPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioInputDevice *body = ; // Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioInputPatchWith:body
    +              completionHandler: ^(AudioInputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioInputDevice} Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioInputPatch(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioInputPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioInputDevice(); // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +            try
    +            {
    +                AudioInputDevice result = apiInstance.instanceAudioInputPatch(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioInputPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try {
    +    $result = $api_instance->instanceAudioInputPatch($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioInputPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioInputDevice->new(); # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioInputPatch(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioInputPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioInputDevice | Audio input parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try: 
    +    api_response = api_instance.instance_audio_input_patch(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioInputPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio input device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputCleanupPatch

    +

    +
    +
    +
    +

    +

    Remove registered parameters for devices not in list of available output devices for this instance

    +

    +
    +
    /sdrangel/audio/output/cleanup
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/output/cleanup"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioOutputCleanupPatchWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioOutputCleanupPatch(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioOutputCleanupPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputCleanupPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_cleanup_patch()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputDelete

    +

    +
    +
    +
    +

    +

    Delete audio output device parameters and return to defaults

    +

    +
    +
    /sdrangel/audio/output/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        try {
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        try {
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device.
    +
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceAudioOutputDeleteWith:body
    +              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device.
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceAudioOutputDelete(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceAudioOutputDeleteExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +            try
    +            {
    +                AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputDelete: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +try {
    +    $result = $api_instance->instanceAudioOutputDelete($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputDelete: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +eval { 
    +    my $result = $api_instance->instanceAudioOutputDelete(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceAudioOutputDelete: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_delete(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputDelete: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Audio output device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    instanceAudioOutputPatch

    +

    +
    +
    +
    +

    +

    Set audio output device parameters

    +

    +
    +
    /sdrangel/audio/output/parameters
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputCleanupPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputCleanupPatchWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceAudioOutputPatchWith:body
    +              completionHandler: ^(AudioOutputDevice output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45225,11 +54630,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -45237,14 +54645,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputCleanupPatch(callback);
    +api.instanceAudioOutputPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -45253,21 +54661,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputCleanupPatchExample
    +    public class instanceAudioOutputPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceAudioOutputCleanupPatch();
    +                AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputCleanupPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputPatch: " + e.Message );
                 }
             }
         }
    @@ -45275,81 +54684,169 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     try {
    -    $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    $result = $api_instance->instanceAudioOutputPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceAudioOutputPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputCleanupPatch();
    +    my $result = $api_instance->instanceAudioOutputPatch(body => $body);
         print Dumper($result);
     };
    -if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: $@\n";
    -}
    -
    +if ($@) { + warn "Exception when calling InstanceApi->instanceAudioOutputPatch: $@\n"; +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    +
    +try: 
    +    api_response = api_instance.instance_audio_output_patch(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceAudioOutputPatch: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + -# create an instance of the API class -api_instance = swagger_sdrangel.InstanceApi() +
    NameDescription
    body * + + + +
    +
    -try: - api_response = api_instance.instance_audio_output_cleanup_patch() - pprint(api_response) -except ApiException as e: - print("Exception when calling InstanceApi->instanceAudioOutputCleanupPatch: %s\n" % e)
    -
    -
    -

    Parameters

    +

    Responses

    +

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - Success.

    +

    Status: 404 - Audio output device not found

    -
    -
    +
    +
    - +
    @@ -45379,14 +54876,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -45422,14 +54919,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioOutputDelete

    +

    instanceChannels

    -

    Delete audio output device parameters and return to defaults

    +

    Get a list of channel plugins available in this instance


    -
    /sdrangel/audio/output/parameters
    +
    /sdrangel/channels

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    curl -X GET "http://localhost/sdrangel/channels?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -45512,47 +55009,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceChannels");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceChannels");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device.
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputDeleteWith:body
    -              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +[apiInstance instanceChannelsWith:direction
    +              completionHandler: ^(InstanceChannelsResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45563,13 +55060,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device.
    -
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -45578,14 +55076,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputDelete(body, callback);
    +api.instanceChannels(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -45594,22 +55092,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputDeleteExample
    +    public class instanceChannelsExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                AudioOutputDevice result = apiInstance.instanceAudioOutputDelete(body);
    +                InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceChannels: " + e.Message );
                 }
             }
         }
    @@ -45617,40 +55115,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceAudioOutputDelete($body);
    +    $result = $api_instance->instanceChannels($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputDelete(body => $body);
    +    my $result = $api_instance->instanceChannels(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceChannels: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -45659,13 +55157,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device.
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_audio_output_delete(body)
    +    api_response = api_instance.instance_channels(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioOutputDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceChannels: %s\n" % e)
    @@ -45673,113 +55171,55 @@ except ApiException as e: -
    Body parameters
    + + +
    Query parameters
    - +
    Name Description
    body *
    direction - -
    +
    + 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) +
    + + +
    - -

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Audio output device not found

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -45809,14 +55249,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -45852,14 +55292,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceAudioOutputPatch

    +

    instanceConfigGet

    -

    Set audio output device parameters

    +

    Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.


    -
    /sdrangel/audio/output/parameters
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/audio/output/parameters"
    +
    +
    curl -X GET "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -45942,47 +55382,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +            InstanceConfigResponse result = apiInstance.instanceConfigGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        AudioOutputDevice body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
             try {
    -            AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +            InstanceConfigResponse result = apiInstance.instanceConfigGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceAudioOutputPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    AudioOutputDevice *body = ; // Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceAudioOutputPatchWith:body
    -              completionHandler: ^(AudioOutputDevice output, NSError* error) {
    +[apiInstance instanceConfigGetWithCompletionHandler: 
    +              ^(InstanceConfigResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -45993,14 +55430,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {AudioOutputDevice} Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -46008,14 +55442,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceAudioOutputPatch(body, callback);
    +api.instanceConfigGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46024,22 +55458,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceAudioOutputPatchExample
    +    public class instanceConfigGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new AudioOutputDevice(); // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
                 try
                 {
    -                AudioOutputDevice result = apiInstance.instanceAudioOutputPatch(body);
    +                InstanceConfigResponse result = apiInstance.instanceConfigGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceAudioOutputPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
                 }
             }
         }
    @@ -46047,169 +55480,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     try {
    -    $result = $api_instance->instanceAudioOutputPatch($body);
    +    $result = $api_instance->instanceConfigGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceAudioOutputPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::AudioOutputDevice->new(); # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
     
     eval { 
    -    my $result = $api_instance->instanceAudioOutputPatch(body => $body);
    +    my $result = $api_instance->instanceConfigGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceAudioOutputPatch: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # AudioOutputDevice | Audio output parameters. Index is used to identify the device. Only settable fields are considered.
    -
    -try: 
    -    api_response = api_instance.instance_audio_output_patch(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceAudioOutputPatch: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
     
    -                            
    NameDescription
    body * - - - -
    -
    +# create an instance of the API class +api_instance = swagger_sdrangel.InstanceApi() +try: + api_response = api_instance.instance_config_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
    +
    +
    +

    Parameters

    -

    Responses

    -

    Status: 200 - Success. Returns actual data in particular the actual sample rate.

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 404 - Audio output device not found

    +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -46239,14 +55584,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -46282,14 +55627,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceChannels

    +

    instanceConfigPatch

    -

    Get a list of channel plugins available in this instance

    +

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Presets and Commands if available in the payload are added. Channels in the working preset are added. Devices in the working preset are patched or added (upsert).


    -
    /sdrangel/channels
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/channels?direction="
    +
    +
    curl -X PATCH "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -46372,47 +55717,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +            SuccessResponse result = apiInstance.instanceConfigPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceChannels");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +            SuccessResponse result = apiInstance.instanceConfigPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceChannels");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +                            
    +
    InstanceConfigResponse *body = ; // Config information
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceChannelsWith:direction
    -              completionHandler: ^(InstanceChannelsResponse output, NSError* error) {
    +[apiInstance instanceConfigPatchWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -46423,14 +55768,13 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    +var body = ; // {InstanceConfigResponse} Config information
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -46439,14 +55783,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceChannels(opts, callback);
    +api.instanceConfigPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46455,22 +55799,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceChannelsExample
    +    public class instanceConfigPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
    +            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
     
                 try
                 {
    -                InstanceChannelsResponse result = apiInstance.instanceChannels(direction);
    +                SuccessResponse result = apiInstance.instanceConfigPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceChannels: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigPatch: " + e.Message );
                 }
             }
         }
    @@ -46478,40 +55822,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +$body = ; // InstanceConfigResponse | Config information
     
     try {
    -    $result = $api_instance->instanceChannels($direction);
    +    $result = $api_instance->instanceConfigPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
     
     eval { 
    -    my $result = $api_instance->instanceChannels(direction => $direction);
    +    my $result = $api_instance->instanceConfigPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceChannels: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -46520,13 +55864,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +body =  # InstanceConfigResponse | Config information
     
     try: 
    -    api_response = api_instance.instance_channels(direction=direction)
    +    api_response = api_instance.instance_config_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceChannels: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigPatch: %s\n" % e)
    @@ -46534,55 +55878,70 @@ except ApiException as e: - - -
    Query parameters
    +
    Body parameters
    - +
    Name Description
    direction
    body * -
    -
    -
    - - Integer - + +
    + +

    Responses

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -46612,14 +55971,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46655,14 +56014,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigGet

    +

    instanceConfigPut

    -

    Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.

    +

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.


    -
    /sdrangel/config
    +
    /sdrangel/config

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/config"
    +
    +
    curl -X PUT "http://localhost/sdrangel/config"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -46745,44 +56104,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +            SuccessResponse result = apiInstance.instanceConfigPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
             try {
    -            InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +            SuccessResponse result = apiInstance.instanceConfigPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigGet");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    InstanceConfigResponse *body = ; // Config information
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigGetWithCompletionHandler: 
    -              ^(InstanceConfigResponse output, NSError* error) {
    +[apiInstance instanceConfigPutWith:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -46793,11 +56155,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {InstanceConfigResponse} Config information
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -46805,14 +56170,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigGet(callback);
    +api.instanceConfigPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -46821,21 +56186,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigGetExample
    +    public class instanceConfigPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
     
                 try
                 {
    -                InstanceConfigResponse result = apiInstance.instanceConfigGet();
    +                SuccessResponse result = apiInstance.instanceConfigPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
                 }
             }
         }
    @@ -46843,38 +56209,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // InstanceConfigResponse | Config information
     
     try {
    -    $result = $api_instance->instanceConfigGet();
    +    $result = $api_instance->instanceConfigPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
     
     eval { 
    -    my $result = $api_instance->instanceConfigGet();
    +    my $result = $api_instance->instanceConfigPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -46883,12 +56251,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # InstanceConfigResponse | Config information
     
     try: 
    -    api_response = api_instance.instance_config_get()
    +    api_response = api_instance.instance_config_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
    @@ -46896,6 +56265,48 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    @@ -46904,20 +56315,20 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46947,14 +56358,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -46990,14 +56401,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigPatch

    +

    instanceConfigurationBlobPost

    -

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Presets and Commands if available in the payload are added. Channels in the working preset are added. Devices in the working preset are patched or added (upsert).

    +

    serialize a configuration to a base64 blob.


    -
    /sdrangel/config
    +
    /sdrangel/configuration/blob

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/config"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47080,47 +56491,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    InstanceConfigResponse *body = ; // Config information
    +                            
    +
    ConfigurationIdentifier *body = ; // configuration identification
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigPatchWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceConfigurationBlobPostWith:body
    +              completionHandler: ^(Base64Blob output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47131,12 +56542,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {InstanceConfigResponse} Config information
    +var body = ; // {ConfigurationIdentifier} configuration identification
     
     
     var callback = function(error, data, response) {
    @@ -47146,14 +56557,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigPatch(body, callback);
    +api.instanceConfigurationBlobPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47162,22 +56573,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigPatchExample
    +    public class instanceConfigurationBlobPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | configuration identification
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceConfigPatch(body);
    +                Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPost: " + e.Message );
                 }
             }
         }
    @@ -47185,40 +56596,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // InstanceConfigResponse | Config information
    +$body = ; // ConfigurationIdentifier | configuration identification
     
     try {
    -    $result = $api_instance->instanceConfigPatch($body);
    +    $result = $api_instance->instanceConfigurationBlobPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | configuration identification
     
     eval { 
    -    my $result = $api_instance->instanceConfigPatch(body => $body);
    +    my $result = $api_instance->instanceConfigurationBlobPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationBlobPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -47227,13 +56638,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # InstanceConfigResponse | Config information
    +body =  # ConfigurationIdentifier | configuration identification
     
     try: 
    -    api_response = api_instance.instance_config_patch(body)
    +    api_response = api_instance.instance_configuration_blob_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationBlobPost: %s\n" % e)
    @@ -47256,10 +56667,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Config information", + "description" : "configuration identification", "required" : true, "schema" : { - "$ref" : "#/definitions/InstanceConfigResponse" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -47273,12 +56684,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigPatch_body'); + var result = $('#d2e199_instanceConfigurationBlobPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -47287,24 +56698,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return blob

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Preset not found

    + + + +
    +
    +
    + +
    +
    @@ -47334,14 +56831,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -47377,14 +56874,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigPut

    +

    instanceConfigurationBlobPut

    -

    Replace the Preferences, Working preset, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.

    +

    deserialize base64 blob to a new configuration.


    -
    /sdrangel/config
    +
    /sdrangel/configuration/blob

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/config"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47467,47 +56964,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            SuccessResponse result = apiInstance.instanceConfigPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    InstanceConfigResponse *body = ; // Config information
    +                            
    +
    Base64Blob *body = ; // Blob in base64 format
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigPutWith:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    +[apiInstance instanceConfigurationBlobPutWith:body
    +              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47518,12 +57015,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {InstanceConfigResponse} Config information
    +var body = ; // {Base64Blob} Blob in base64 format
     
     
     var callback = function(error, data, response) {
    @@ -47533,14 +57030,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigPut(body, callback);
    +api.instanceConfigurationBlobPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47549,22 +57046,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigPutExample
    +    public class instanceConfigurationBlobPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
    +            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceConfigPut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPut: " + e.Message );
                 }
             }
         }
    @@ -47572,40 +57069,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // InstanceConfigResponse | Config information
    +$body = ; // Base64Blob | Blob in base64 format
     
     try {
    -    $result = $api_instance->instanceConfigPut($body);
    +    $result = $api_instance->instanceConfigurationBlobPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
    +my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
     
     eval { 
    -    my $result = $api_instance->instanceConfigPut(body => $body);
    +    my $result = $api_instance->instanceConfigurationBlobPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationBlobPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -47614,13 +57111,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # InstanceConfigResponse | Config information
    +body =  # Base64Blob | Blob in base64 format
     
     try: 
    -    api_response = api_instance.instance_config_put(body)
    +    api_response = api_instance.instance_configuration_blob_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationBlobPut: %s\n" % e)
    @@ -47643,10 +57140,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Config information", + "description" : "Blob in base64 format", "required" : true, "schema" : { - "$ref" : "#/definitions/InstanceConfigResponse" + "$ref" : "#/definitions/Base64Blob" } }; var schema = schemaWrapper.schema; @@ -47660,12 +57157,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigPut_body'); + var result = $('#d2e199_instanceConfigurationBlobPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -47674,24 +57171,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return configuration identification

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    +
    @@ -47721,14 +57261,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -47764,14 +57304,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationBlobPost

    +

    instanceConfigurationDelete

    -

    serialize a configuration to a base64 blob.

    +

    Deletes a configuration


    -
    /sdrangel/configuration/blob
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration/blob"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -47854,47 +57394,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
             try {
    -            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | configuration identification
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
             try {
    -            Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // configuration identification
    +                            
    +
    ConfigurationIdentifier *body = ; // delete this configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationBlobPostWith:body
    -              completionHandler: ^(Base64Blob output, NSError* error) {
    +[apiInstance instanceConfigurationDeleteWith:body
    +              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -47905,12 +57445,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} configuration identification
    +var body = ; // {ConfigurationIdentifier} delete this configuration
     
     
     var callback = function(error, data, response) {
    @@ -47920,14 +57460,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationBlobPost(body, callback);
    +api.instanceConfigurationDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -47936,22 +57476,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationBlobPostExample
    +    public class instanceConfigurationDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | configuration identification
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | delete this configuration
     
                 try
                 {
    -                Base64Blob result = apiInstance.instanceConfigurationBlobPost(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationDelete: " + e.Message );
                 }
             }
         }
    @@ -47959,40 +57499,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | configuration identification
    +$body = ; // ConfigurationIdentifier | delete this configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationBlobPost($body);
    +    $result = $api_instance->instanceConfigurationDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | configuration identification
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | delete this configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationBlobPost(body => $body);
    +    my $result = $api_instance->instanceConfigurationDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationBlobPost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48001,13 +57541,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | configuration identification
    +body =  # ConfigurationIdentifier | delete this configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_blob_post(body)
    +    api_response = api_instance.instance_configuration_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationBlobPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationDelete: %s\n" % e)
    @@ -48030,7 +57570,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "configuration identification", + "description" : "delete this configuration", "required" : true, "schema" : { "$ref" : "#/definitions/ConfigurationIdentifier" @@ -48047,12 +57587,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationBlobPost_body'); + var result = $('#d2e199_instanceConfigurationDelete_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48061,24 +57601,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return blob

    +

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -48108,14 +57648,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Preset not found

    +

    Status: 404 - Configuration not found

    -
    -
    +
    +
    - +
    @@ -48194,14 +57734,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48237,14 +57777,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationBlobPut

    +

    instanceConfigurationFilePost

    -

    deserialize base64 blob to a new configuration.

    +

    export a configuration to file.


    -
    /sdrangel/configuration/blob
    +
    /sdrangel/configuration/file

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration/blob"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -48327,46 +57867,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Base64Blob *body = ; // Blob in base64 format
    +                            
    +
    ConfigurationImportExport *body = ; // export details
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationBlobPutWith:body
    +[apiInstance instanceConfigurationFilePostWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -48378,12 +57918,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {Base64Blob} Blob in base64 format
    +var body = ; // {ConfigurationImportExport} export details
     
     
     var callback = function(error, data, response) {
    @@ -48393,14 +57933,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationBlobPut(body, callback);
    +api.instanceConfigurationFilePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -48409,22 +57949,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationBlobPutExample
    +    public class instanceConfigurationFilePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
    +            var body = new ConfigurationImportExport(); // ConfigurationImportExport | export details
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationBlobPut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationBlobPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePost: " + e.Message );
                 }
             }
         }
    @@ -48432,40 +57972,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // Base64Blob | Blob in base64 format
    +$body = ; // ConfigurationImportExport | export details
     
     try {
    -    $result = $api_instance->instanceConfigurationBlobPut($body);
    +    $result = $api_instance->instanceConfigurationFilePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationBlobPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationFilePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
    +my $body = SWGSDRangel::Object::ConfigurationImportExport->new(); # ConfigurationImportExport | export details
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationBlobPut(body => $body);
    +    my $result = $api_instance->instanceConfigurationFilePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationBlobPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationFilePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48474,13 +58014,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # Base64Blob | Blob in base64 format
    +body =  # ConfigurationImportExport | export details
     
     try: 
    -    api_response = api_instance.instance_configuration_blob_put(body)
    +    api_response = api_instance.instance_configuration_file_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationBlobPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationFilePost: %s\n" % e)
    @@ -48503,10 +58043,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Blob in base64 format", + "description" : "export details", "required" : true, "schema" : { - "$ref" : "#/definitions/Base64Blob" + "$ref" : "#/definitions/ConfigurationImportExport" } }; var schema = schemaWrapper.schema; @@ -48520,12 +58060,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationBlobPut_body'); + var result = $('#d2e199_instanceConfigurationFilePost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48538,14 +58078,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48581,14 +58121,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Configuration or file path not found

    + + + +
    +
    +
    + +
    +
    @@ -48624,14 +58207,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -48667,14 +58250,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationDelete

    +

    instanceConfigurationFilePut

    -

    Deletes a configuration

    +

    import a configuration from file as a new configuration.


    -
    /sdrangel/configuration
    +
    /sdrangel/configuration/file

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/configuration"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -48757,46 +58340,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
    +        FilePath body = ; // FilePath | File path
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | delete this configuration
    +        FilePath body = ; // FilePath | File path
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // delete this configuration
    +                            
    +
    FilePath *body = ; // File path
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationDeleteWith:body
    +[apiInstance instanceConfigurationFilePutWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -48808,12 +58391,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} delete this configuration
    +var body = ; // {FilePath} File path
     
     
     var callback = function(error, data, response) {
    @@ -48823,14 +58406,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationDelete(body, callback);
    +api.instanceConfigurationFilePut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -48839,22 +58422,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationDeleteExample
    +    public class instanceConfigurationFilePutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | delete this configuration
    +            var body = new FilePath(); // FilePath | File path
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationDelete(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePut: " + e.Message );
                 }
             }
         }
    @@ -48862,40 +58445,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | delete this configuration
    +$body = ; // FilePath | File path
     
     try {
    -    $result = $api_instance->instanceConfigurationDelete($body);
    +    $result = $api_instance->instanceConfigurationFilePut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationFilePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | delete this configuration
    +my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationDelete(body => $body);
    +    my $result = $api_instance->instanceConfigurationFilePut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationFilePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -48904,13 +58487,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | delete this configuration
    +body =  # FilePath | File path
     
     try: 
    -    api_response = api_instance.instance_configuration_delete(body)
    +    api_response = api_instance.instance_configuration_file_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationFilePut: %s\n" % e)
    @@ -48933,10 +58516,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "delete this configuration", + "description" : "File path", "required" : true, "schema" : { - "$ref" : "#/definitions/ConfigurationIdentifier" + "$ref" : "#/definitions/FilePath" } }; var schema = schemaWrapper.schema; @@ -48950,12 +58533,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationDelete_body'); + var result = $('#d2e199_instanceConfigurationFilePut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -48964,22 +58547,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    +

    Status: 200 - On success return configuration identification

    -
    -
    +
    +
    - +
    @@ -49011,14 +58594,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Configuration not found

    +

    Status: 404 - File not found

    -
    -
    +
    +
    - +
    @@ -49097,14 +58680,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -49140,14 +58723,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationFilePost

    +

    instanceConfigurationPatch

    -

    export a configuration to file.

    +

    Load a configuration


    -
    /sdrangel/configuration/file
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration/file"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -49230,46 +58813,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationImportExport body = ; // ConfigurationImportExport | export details
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationImportExport *body = ; // export details
    +                            
    +
    ConfigurationIdentifier *body = ; // Load configuration settings
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationFilePostWith:body
    +[apiInstance instanceConfigurationPatchWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -49281,12 +58864,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationImportExport} export details
    +var body = ; // {ConfigurationIdentifier} Load configuration settings
     
     
     var callback = function(error, data, response) {
    @@ -49296,14 +58879,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationFilePost(body, callback);
    +api.instanceConfigurationPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -49312,22 +58895,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationFilePostExample
    +    public class instanceConfigurationPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationImportExport(); // ConfigurationImportExport | export details
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | Load configuration settings
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePost(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPatch: " + e.Message );
                 }
             }
         }
    @@ -49335,40 +58918,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationImportExport | export details
    +$body = ; // ConfigurationIdentifier | Load configuration settings
     
     try {
    -    $result = $api_instance->instanceConfigurationFilePost($body);
    +    $result = $api_instance->instanceConfigurationPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationFilePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationImportExport->new(); # ConfigurationImportExport | export details
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | Load configuration settings
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationFilePost(body => $body);
    +    my $result = $api_instance->instanceConfigurationPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationFilePost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -49377,13 +58960,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationImportExport | export details
    +body =  # ConfigurationIdentifier | Load configuration settings
     
     try: 
    -    api_response = api_instance.instance_configuration_file_post(body)
    +    api_response = api_instance.instance_configuration_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationFilePost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPatch: %s\n" % e)
    @@ -49406,10 +58989,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "export details", + "description" : "Load configuration settings", "required" : true, "schema" : { - "$ref" : "#/definitions/ConfigurationImportExport" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -49423,12 +59006,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationFilePost_body'); + var result = $('#d2e199_instanceConfigurationPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -49437,22 +59020,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return configuration identification

    +

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -49484,14 +59067,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Configuration or file path not found

    +

    Status: 404 - No configuration found

    -
    -
    +
    +
    - +
    @@ -49570,14 +59153,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -49613,14 +59196,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationFilePut

    +

    instanceConfigurationPost

    -

    import a configuration from file as a new configuration.

    +

    Create a new configuration from the current setup.


    -
    /sdrangel/configuration/file
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration/file"
    +
    +
    curl -X POST "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -49703,46 +59286,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationFilePut");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FilePath *body = ; // File path
    +                            
    +
    ConfigurationIdentifier *body = ; // save setup in a new configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationFilePutWith:body
    +[apiInstance instanceConfigurationPostWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -49754,12 +59337,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FilePath} File path
    +var body = ; // {ConfigurationIdentifier} save setup in a new configuration
     
     
     var callback = function(error, data, response) {
    @@ -49769,14 +59352,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationFilePut(body, callback);
    +api.instanceConfigurationPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -49785,22 +59368,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationFilePutExample
    +    public class instanceConfigurationPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FilePath(); // FilePath | File path
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup in a new configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationFilePut(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationFilePut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPost: " + e.Message );
                 }
             }
         }
    @@ -49808,40 +59391,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FilePath | File path
    +$body = ; // ConfigurationIdentifier | save setup in a new configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationFilePut($body);
    +    $result = $api_instance->instanceConfigurationPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationFilePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup in a new configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationFilePut(body => $body);
    +    my $result = $api_instance->instanceConfigurationPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationFilePut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -49850,13 +59433,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FilePath | File path
    +body =  # ConfigurationIdentifier | save setup in a new configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_file_put(body)
    +    api_response = api_instance.instance_configuration_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationFilePut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPost: %s\n" % e)
    @@ -49879,10 +59462,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "File path", + "description" : "save setup in a new configuration", "required" : true, "schema" : { - "$ref" : "#/definitions/FilePath" + "$ref" : "#/definitions/ConfigurationIdentifier" } }; var schema = schemaWrapper.schema; @@ -49896,12 +59479,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationFilePut_body'); + var result = $('#d2e199_instanceConfigurationPost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -49910,22 +59493,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return configuration identification

    +

    Status: 202 - On successful sending of the message the created configuration identification is returned

    -
    -
    +
    +
    - +
    @@ -49957,14 +59540,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - File not found

    +

    Status: 409 - Configuration already exists

    -
    -
    +
    +
    - +
    @@ -50043,14 +59626,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50086,14 +59669,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPatch

    +

    instanceConfigurationPut

    -

    Load a configuration

    +

    Update an existing configuration with current setup.


    -
    /sdrangel/configuration
    +
    /sdrangel/configuration

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/configuration"
    +
    +
    curl -X PUT "http://localhost/sdrangel/configuration"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -50176,46 +59759,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | Load configuration settings
    +        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPatch");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // Load configuration settings
    +                            
    +
    ConfigurationIdentifier *body = ; // save setup to the configuration
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPatchWith:body
    +[apiInstance instanceConfigurationPutWith:body
                   completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -50227,12 +59810,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} Load configuration settings
    +var body = ; // {ConfigurationIdentifier} save setup to the configuration
     
     
     var callback = function(error, data, response) {
    @@ -50242,14 +59825,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPatch(body, callback);
    +api.instanceConfigurationPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -50258,22 +59841,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPatchExample
    +    public class instanceConfigurationPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | Load configuration settings
    +            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup to the configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPatch(body);
    +                ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPut: " + e.Message );
                 }
             }
         }
    @@ -50281,40 +59864,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | Load configuration settings
    +$body = ; // ConfigurationIdentifier | save setup to the configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPatch($body);
    +    $result = $api_instance->instanceConfigurationPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | Load configuration settings
    +my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup to the configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPatch(body => $body);
    +    my $result = $api_instance->instanceConfigurationPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -50323,13 +59906,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | Load configuration settings
    +body =  # ConfigurationIdentifier | save setup to the configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_patch(body)
    +    api_response = api_instance.instance_configuration_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationPut: %s\n" % e)
    @@ -50352,7 +59935,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Load configuration settings", + "description" : "save setup to the configuration", "required" : true, "schema" : { "$ref" : "#/definitions/ConfigurationIdentifier" @@ -50369,12 +59952,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceConfigurationPatch_body'); + var result = $('#d2e199_instanceConfigurationPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -50387,14 +59970,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50430,14 +60013,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50473,14 +60056,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50516,14 +60099,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -50559,14 +60142,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPost

    +

    instanceConfigurationsGet

    -

    Create a new configuration from the current setup.

    +

    List all configurations in the instance


    -
    /sdrangel/configuration
    +
    /sdrangel/configurations

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/configuration"
    +
    +
    curl -X GET "http://localhost/sdrangel/configurations"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -50649,47 +60232,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +            Configurations result = apiInstance.instanceConfigurationsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup in a new configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +            Configurations result = apiInstance.instanceConfigurationsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPost");
    +            System.err.println("Exception when calling InstanceApi#instanceConfigurationsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // save setup in a new configuration
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPostWith:body
    -              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
    +[apiInstance instanceConfigurationsGetWithCompletionHandler: 
    +              ^(Configurations output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -50700,14 +60280,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} save setup in a new configuration
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -50715,14 +60292,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPost(body, callback);
    +api.instanceConfigurationsGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -50731,22 +60308,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPostExample
    +    public class instanceConfigurationsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup in a new configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPost(body);
    +                Configurations result = apiInstance.instanceConfigurationsGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceConfigurationsGet: " + e.Message );
                 }
             }
         }
    @@ -50754,40 +60330,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | save setup in a new configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPost($body);
    +    $result = $api_instance->instanceConfigurationsGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceConfigurationsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup in a new configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPost(body => $body);
    +    my $result = $api_instance->instanceConfigurationsGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPost: $@\n";
    +    warn "Exception when calling InstanceApi->instanceConfigurationsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -50796,13 +60370,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | save setup in a new configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_post(body)
    +    api_response = api_instance.instance_configurations_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceConfigurationsGet: %s\n" % e)
    @@ -50810,156 +60383,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the created configuration identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 409 - Configuration already exists

    +

    Status: 200 - On success return configurations list

    -
    -
    +
    +
    - +
    @@ -50989,14 +60434,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -51032,14 +60477,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationPut

    +

    instanceDelete

    -

    Update an existing configuration with current setup.

    +

    Stop SDRangel instance (server only)


    -
    /sdrangel/configuration
    +
    /sdrangel

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/configuration"
    +
    +
    curl -X DELETE "http://localhost/sdrangel"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -51122,47 +60567,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +            InstanceSummaryResponse result = apiInstance.instanceDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        ConfigurationIdentifier body = ; // ConfigurationIdentifier | save setup to the configuration
             try {
    -            ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +            InstanceSummaryResponse result = apiInstance.instanceDelete();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceConfigurationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    ConfigurationIdentifier *body = ; // save setup to the configuration
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceConfigurationPutWith:body
    -              completionHandler: ^(ConfigurationIdentifier output, NSError* error) {
    +[apiInstance instanceDeleteWithCompletionHandler: 
    +              ^(InstanceSummaryResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -51173,14 +60615,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {ConfigurationIdentifier} save setup to the configuration
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -51188,14 +60627,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceConfigurationPut(body, callback);
    +api.instanceDelete(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -51204,22 +60643,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceConfigurationPutExample
    +    public class instanceDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new ConfigurationIdentifier(); // ConfigurationIdentifier | save setup to the configuration
     
                 try
                 {
    -                ConfigurationIdentifier result = apiInstance.instanceConfigurationPut(body);
    +                InstanceSummaryResponse result = apiInstance.instanceDelete();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceConfigurationPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceDelete: " + e.Message );
                 }
             }
         }
    @@ -51227,40 +60665,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // ConfigurationIdentifier | save setup to the configuration
     
     try {
    -    $result = $api_instance->instanceConfigurationPut($body);
    +    $result = $api_instance->instanceDelete();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceConfigurationPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::ConfigurationIdentifier->new(); # ConfigurationIdentifier | save setup to the configuration
     
     eval { 
    -    my $result = $api_instance->instanceConfigurationPut(body => $body);
    +    my $result = $api_instance->instanceDelete();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceConfigurationPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -51269,13 +60705,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # ConfigurationIdentifier | save setup to the configuration
     
     try: 
    -    api_response = api_instance.instance_configuration_put(body)
    +    api_response = api_instance.instance_delete()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceConfigurationPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceDelete: %s\n" % e)
    @@ -51283,113 +60718,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected configuration identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    +

    Status: 202 - Message to stop the SDRangel instance was sent successfully

    -
    -
    +
    +
    - +
    -

    Status: 404 - No configuration found

    +

    Status: 400 - Unsupported (GUI instance)

    -
    -
    +
    +
    - +
    @@ -51462,14 +60812,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -51505,14 +60855,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceConfigurationsGet

    +

    instanceDeviceSetsGet

    -

    List all configurations in the instance

    +

    Get summary information about device sets opened in the instance


    -
    /sdrangel/configurations
    +
    /sdrangel/devicesets

    -

    Usage and SDK Samples

    -

    -

    -
    -
    +
    +
    -

    instanceDelete

    +

    instanceDevices

    -

    Stop SDRangel instance (server only)

    +

    Get a list of sampling devices that can be used to take part in a device set


    -
    /sdrangel
    +
    /sdrangel/devices

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel"
    +
    +
    curl -X GET "http://localhost/sdrangel/devices?direction="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -51930,44 +61280,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceDelete();
    +            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceDevices");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceDelete();
    +            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceDevices");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDeleteWithCompletionHandler: 
    -              ^(InstanceSummaryResponse output, NSError* error) {
    +[apiInstance instanceDevicesWith:direction
    +              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -51978,11 +61331,15 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var opts = { 
    +  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    +};
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -51990,14 +61347,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDelete(callback);
    +api.instanceDevices(opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52006,21 +61363,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeleteExample
    +    public class instanceDevicesExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                InstanceSummaryResponse result = apiInstance.instanceDelete();
    +                InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceDevices: " + e.Message );
                 }
             }
         }
    @@ -52028,38 +61386,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceDelete();
    +    $result = $api_instance->instanceDevices($direction);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceDelete();
    +    my $result = $api_instance->instanceDevices(direction => $direction);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceDevices: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52068,12 +61428,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_delete()
    +    api_response = api_instance.instance_devices(direction=direction)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceDevices: %s\n" % e)
    @@ -52083,69 +61444,53 @@ except ApiException as e: +
    Query parameters
    + + + + + + +
    NameDescription
    direction -

    Responses

    -

    Status: 202 - Message to stop the SDRangel instance was sent successfully

    - - +
    +
    +
    + + Integer + -
    -
    -
    - -
    - -
    -
    +
    -

    Status: 400 - Unsupported (GUI instance)

    +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -52175,14 +61520,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52218,14 +61563,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDeviceSetsGet

    +

    instanceFeaturePresetDelete

    -

    Get summary information about device sets opened in the instance

    +

    Deletes a feature preset


    -
    /sdrangel/devicesets
    +
    /sdrangel/featurepreset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/devicesets"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/featurepreset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -52308,44 +61653,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    FeaturePresetIdentifier *body = ; // delete this feature preset
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDeviceSetsGetWithCompletionHandler: 
    -              ^(DeviceSetList output, NSError* error) {
    +[apiInstance instanceFeaturePresetDeleteWith:body
    +              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -52356,11 +61704,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {FeaturePresetIdentifier} delete this feature preset
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -52368,14 +61719,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetsGet(callback);
    +api.instanceFeaturePresetDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52384,21 +61735,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetsGetExample
    +    public class instanceFeaturePresetDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | delete this feature preset
     
                 try
                 {
    -                DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +                FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetDelete: " + e.Message );
                 }
             }
         }
    @@ -52406,38 +61758,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // FeaturePresetIdentifier | delete this feature preset
     
     try {
    -    $result = $api_instance->instanceDeviceSetsGet();
    +    $result = $api_instance->instanceFeaturePresetDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDeviceSetsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeaturePresetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | delete this feature preset
     
     eval { 
    -    my $result = $api_instance->instanceDeviceSetsGet();
    +    my $result = $api_instance->instanceFeaturePresetDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDeviceSetsGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeaturePresetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52446,12 +61800,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # FeaturePresetIdentifier | delete this feature preset
     
     try: 
    -    api_response = api_instance.instance_device_sets_get()
    +    api_response = api_instance.instance_feature_preset_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDeviceSetsGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeaturePresetDelete: %s\n" % e)
    @@ -52459,28 +61814,156 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the selected feature preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - On success return device set list

    +

    Status: 404 - Preset not found

    -
    -
    +
    +
    - +
    @@ -52510,14 +61993,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52553,14 +62036,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceDevices

    +

    instanceFeaturePresetGet

    -

    Get a list of sampling devices that can be used to take part in a device set

    +

    List all feature presets in the instance


    -
    /sdrangel/devices
    +
    /sdrangel/featurepresets

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/devices?direction="
    +
    +
    curl -X GET "http://localhost/sdrangel/featurepresets"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -52643,47 +62126,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDevices");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Integer direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceDevices");
    +            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Integer *direction = 56; // 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceDevicesWith:direction
    -              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
    +[apiInstance instanceFeaturePresetGetWithCompletionHandler: 
    +              ^(FeaturePresets output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -52694,15 +62174,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var opts = { 
    -  'direction': 56 // {Integer} 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
    -};
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -52710,14 +62186,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDevices(opts, callback);
    +api.instanceFeaturePresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -52726,22 +62202,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceDevicesExample
    +    public class instanceFeaturePresetGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var direction = 56;  // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional) 
     
                 try
                 {
    -                InstanceDevicesResponse result = apiInstance.instanceDevices(direction);
    +                FeaturePresets result = apiInstance.instanceFeaturePresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceDevices: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetGet: " + e.Message );
                 }
             }
         }
    @@ -52749,40 +62224,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$direction = 56; // Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     try {
    -    $result = $api_instance->instanceDevices($direction);
    +    $result = $api_instance->instanceFeaturePresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeaturePresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $direction = 56; # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0)
     
     eval { 
    -    my $result = $api_instance->instanceDevices(direction => $direction);
    +    my $result = $api_instance->instanceFeaturePresetGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceDevices: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeaturePresetGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -52791,13 +62264,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -direction = 56 # Integer | 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) (optional)
     
     try: 
    -    api_response = api_instance.instance_devices(direction=direction)
    +    api_response = api_instance.instance_feature_preset_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceDevices: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeaturePresetGet: %s\n" % e)
    @@ -52807,53 +62279,26 @@ except ApiException as e: -
    Query parameters
    - - - - - - - - - -
    NameDescription
    direction - - -
    -
    -
    - - Integer - - -
    - 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) -
    -
    -
    -
    -

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return feature preset list

    -
    -
    +
    +
    - +
    @@ -52883,14 +62328,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -52926,14 +62371,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeaturePresetDelete

    +

    instanceFeatures

    -

    Deletes a feature preset

    +

    Get a list of feature plugins available in this instance


    -
    /sdrangel/featurepreset
    +
    /sdrangel/features

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/featurepreset"
    +
    +
    curl -X GET "http://localhost/sdrangel/features"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53016,47 +62461,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceFeatures");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | delete this feature preset
             try {
    -            FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instanceFeatures");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FeaturePresetIdentifier *body = ; // delete this feature preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturePresetDeleteWith:body
    -              completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
    +[apiInstance instanceFeaturesWithCompletionHandler: 
    +              ^(InstanceFeaturesResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53067,14 +62509,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FeaturePresetIdentifier} delete this feature preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -53082,14 +62521,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeaturePresetDelete(body, callback);
    +api.instanceFeatures(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53098,22 +62537,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturePresetDeleteExample
    +    public class instanceFeaturesExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | delete this feature preset
     
                 try
                 {
    -                FeaturePresetIdentifier result = apiInstance.instanceFeaturePresetDelete(body);
    +                InstanceFeaturesResponse result = apiInstance.instanceFeatures();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceFeatures: " + e.Message );
                 }
             }
         }
    @@ -53121,40 +62559,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FeaturePresetIdentifier | delete this feature preset
     
     try {
    -    $result = $api_instance->instanceFeaturePresetDelete($body);
    +    $result = $api_instance->instanceFeatures();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeaturePresetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceFeatures: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | delete this feature preset
     
     eval { 
    -    my $result = $api_instance->instanceFeaturePresetDelete(body => $body);
    +    my $result = $api_instance->instanceFeatures();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeaturePresetDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instanceFeatures: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53163,13 +62599,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FeaturePresetIdentifier | delete this feature preset
     
     try: 
    -    api_response = api_instance.instance_feature_preset_delete(body)
    +    api_response = api_instance.instance_features()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeaturePresetDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceFeatures: %s\n" % e)
    @@ -53177,156 +62612,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected feature preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Preset not found

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -53356,14 +62663,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -53399,14 +62706,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeaturePresetGet

    +

    instanceLocationGet

    -

    List all feature presets in the instance

    +

    Get instance geolocation information


    -
    /sdrangel/featurepresets
    +
    /sdrangel/location

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/featurepresets"
    +
    +
    curl -X GET "http://localhost/sdrangel/location"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53490,17 +62797,17 @@ public class InstanceApiExample {
             
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
    @@ -53508,25 +62815,25 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeaturePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturePresetGetWithCompletionHandler: 
    -              ^(FeaturePresets output, NSError* error) {
    +[apiInstance instanceLocationGetWithCompletionHandler: 
    +              ^(LocationInformation output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53537,7 +62844,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
    @@ -53549,14 +62856,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeaturePresetGet(callback);
    +api.instanceLocationGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53565,7 +62872,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturePresetGetExample
    +    public class instanceLocationGetExample
         {
             public void main()
             {
    @@ -53574,12 +62881,12 @@ namespace Example
     
                 try
                 {
    -                FeaturePresets result = apiInstance.instanceFeaturePresetGet();
    +                LocationInformation result = apiInstance.instanceLocationGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeaturePresetGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLocationGet: " + e.Message );
                 }
             }
         }
    @@ -53587,22 +62894,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
     
     try {
    -    $result = $api_instance->instanceFeaturePresetGet();
    +    $result = $api_instance->instanceLocationGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeaturePresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
    @@ -53610,15 +62917,15 @@ use SWGSDRangel::InstanceApi;
     my $api_instance = SWGSDRangel::InstanceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceFeaturePresetGet();
    +    my $result = $api_instance->instanceLocationGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeaturePresetGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLocationGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53629,10 +62936,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.InstanceApi()
     
     try: 
    -    api_response = api_instance.instance_feature_preset_get()
    +    api_response = api_instance.instance_location_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeaturePresetGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLocationGet: %s\n" % e)
    @@ -53644,24 +62951,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return feature preset list

    +

    Status: 200 - On success return location

    -
    -
    +
    +
    - +
    @@ -53691,14 +62998,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -53734,14 +63041,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceFeatures

    +

    instanceLocationPut

    -

    Get a list of feature plugins available in this instance

    +

    Set instance geolocation information


    -
    /sdrangel/features
    +
    /sdrangel/location

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/features"
    +
    +
    curl -X PUT "http://localhost/sdrangel/location"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -53824,44 +63131,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
             try {
    -            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +            LocationInformation result = apiInstance.instanceLocationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeatures");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
             try {
    -            InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +            LocationInformation result = apiInstance.instanceLocationPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceFeatures");
    +            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    LocationInformation *body = ; // Location of instance in latitude and longitude
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceFeaturesWithCompletionHandler: 
    -              ^(InstanceFeaturesResponse output, NSError* error) {
    +[apiInstance instanceLocationPutWith:body
    +              completionHandler: ^(LocationInformation output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -53872,11 +63182,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {LocationInformation} Location of instance in latitude and longitude
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -53884,14 +63197,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceFeatures(callback);
    +api.instanceLocationPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -53900,21 +63213,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceFeaturesExample
    +    public class instanceLocationPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
     
                 try
                 {
    -                InstanceFeaturesResponse result = apiInstance.instanceFeatures();
    +                LocationInformation result = apiInstance.instanceLocationPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceFeatures: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLocationPut: " + e.Message );
                 }
             }
         }
    @@ -53922,38 +63236,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // LocationInformation | Location of instance in latitude and longitude
     
     try {
    -    $result = $api_instance->instanceFeatures();
    +    $result = $api_instance->instanceLocationPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceFeatures: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::LocationInformation->new(); # LocationInformation | Location of instance in latitude and longitude
     
     eval { 
    -    my $result = $api_instance->instanceFeatures();
    +    my $result = $api_instance->instanceLocationPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceFeatures: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLocationPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -53962,12 +63278,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # LocationInformation | Location of instance in latitude and longitude
     
     try: 
    -    api_response = api_instance.instance_features()
    +    api_response = api_instance.instance_location_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceFeatures: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLocationPut: %s\n" % e)
    @@ -53975,28 +63292,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return location

    -
    -
    +
    +
    - +
    +

    Status: 400 - Location invalid

    + + + +
    +
    +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    @@ -54069,14 +63436,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLocationGet

    +

    instanceLoggingGet

    -

    Get instance geolocation information

    +

    Get logging information for this instance


    -
    /sdrangel/location
    +
    /sdrangel/logging

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/location"
    +
    +
    curl -X GET "http://localhost/sdrangel/logging"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54160,17 +63527,17 @@ public class InstanceApiExample {
             
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
    @@ -54178,25 +63545,25 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
             try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationGet");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLocationGetWithCompletionHandler: 
    -              ^(LocationInformation output, NSError* error) {
    +[apiInstance instanceLoggingGetWithCompletionHandler: 
    +              ^(LoggingInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54207,7 +63574,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
    @@ -54219,14 +63586,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLocationGet(callback);
    +api.instanceLoggingGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54235,7 +63602,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLocationGetExample
    +    public class instanceLoggingGetExample
         {
             public void main()
             {
    @@ -54244,12 +63611,12 @@ namespace Example
     
                 try
                 {
    -                LocationInformation result = apiInstance.instanceLocationGet();
    +                LoggingInfo result = apiInstance.instanceLoggingGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLocationGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLoggingGet: " + e.Message );
                 }
             }
         }
    @@ -54257,22 +63624,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
     
     try {
    -    $result = $api_instance->instanceLocationGet();
    +    $result = $api_instance->instanceLoggingGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
    @@ -54280,15 +63647,15 @@ use SWGSDRangel::InstanceApi;
     my $api_instance = SWGSDRangel::InstanceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceLocationGet();
    +    my $result = $api_instance->instanceLoggingGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLocationGet: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLoggingGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -54299,10 +63666,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.InstanceApi()
     
     try: 
    -    api_response = api_instance.instance_location_get()
    +    api_response = api_instance.instance_logging_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLocationGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLoggingGet: %s\n" % e)
    @@ -54314,24 +63681,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return location

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -54361,14 +63728,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -54404,14 +63771,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLocationPut

    +

    instanceLoggingPut

    -

    Set instance geolocation information

    +

    Change logging parameters for this instance


    -
    /sdrangel/location
    +
    /sdrangel/logging

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/location"
    +
    +
    curl -X PUT "http://localhost/sdrangel/logging"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54494,47 +63861,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    +        LoggingInfo body = ; // LoggingInfo | Logging information
             try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    +            LoggingInfo result = apiInstance.instanceLoggingPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    +        LoggingInfo body = ; // LoggingInfo | Logging information
             try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    +            LoggingInfo result = apiInstance.instanceLoggingPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLocationPut");
    +            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    LocationInformation *body = ; // Location of instance in latitude and longitude
    +                            
    +
    LoggingInfo *body = ; // Logging information
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLocationPutWith:body
    -              completionHandler: ^(LocationInformation output, NSError* error) {
    +[apiInstance instanceLoggingPutWith:body
    +              completionHandler: ^(LoggingInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54545,12 +63912,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {LocationInformation} Location of instance in latitude and longitude
    +var body = ; // {LoggingInfo} Logging information
     
     
     var callback = function(error, data, response) {
    @@ -54560,14 +63927,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLocationPut(body, callback);
    +api.instanceLoggingPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54576,22 +63943,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLocationPutExample
    +    public class instanceLoggingPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
    +            var body = new LoggingInfo(); // LoggingInfo | Logging information
     
                 try
                 {
    -                LocationInformation result = apiInstance.instanceLocationPut(body);
    +                LoggingInfo result = apiInstance.instanceLoggingPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLocationPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceLoggingPut: " + e.Message );
                 }
             }
         }
    @@ -54599,40 +63966,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // LocationInformation | Location of instance in latitude and longitude
    +$body = ; // LoggingInfo | Logging information
     
     try {
    -    $result = $api_instance->instanceLocationPut($body);
    +    $result = $api_instance->instanceLoggingPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::LocationInformation->new(); # LocationInformation | Location of instance in latitude and longitude
    +my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
     
     eval { 
    -    my $result = $api_instance->instanceLocationPut(body => $body);
    +    my $result = $api_instance->instanceLoggingPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLocationPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceLoggingPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -54641,13 +64008,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # LocationInformation | Location of instance in latitude and longitude
    +body =  # LoggingInfo | Logging information
     
     try: 
    -    api_response = api_instance.instance_location_put(body)
    +    api_response = api_instance.instance_logging_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLocationPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceLoggingPut: %s\n" % e)
    @@ -54670,10 +64037,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Location of instance in latitude and longitude", + "description" : "Logging information", "required" : true, "schema" : { - "$ref" : "#/definitions/LocationInformation" + "$ref" : "#/definitions/LoggingInfo" } }; var schema = schemaWrapper.schema; @@ -54687,12 +64054,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceLocationPut_body'); + var result = $('#d2e199_instanceLoggingPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -54701,24 +64068,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return location

    +

    Status: 200 - Return new data on success

    -
    -
    +
    +
    - +
    -

    Status: 400 - Location invalid

    +

    Status: 400 - Invalid data

    +
    +
    + +
    + +

    Status: 500 - Error

    -
    -
    +
    +
    - +
    @@ -54799,14 +64201,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLoggingGet

    +

    instancePresetBlobPost

    -

    Get logging information for this instance

    +

    serialize a preset to a base64 blob.


    -
    /sdrangel/logging
    +
    /sdrangel/preset/blob

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/logging"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -54889,44 +64291,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        PresetIdentifier body = ; // PresetIdentifier | Preset identification
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    +            Base64Blob result = apiInstance.instancePresetBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        PresetIdentifier body = ; // PresetIdentifier | Preset identification
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    +            Base64Blob result = apiInstance.instancePresetBlobPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    PresetIdentifier *body = ; // Preset identification
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLoggingGetWithCompletionHandler: 
    -              ^(LoggingInfo output, NSError* error) {
    +[apiInstance instancePresetBlobPostWith:body
    +              completionHandler: ^(Base64Blob output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -54937,11 +64342,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {PresetIdentifier} Preset identification
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -54949,14 +64357,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLoggingGet(callback);
    +api.instancePresetBlobPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -54965,21 +64373,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLoggingGetExample
    +    public class instancePresetBlobPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new PresetIdentifier(); // PresetIdentifier | Preset identification
     
                 try
                 {
    -                LoggingInfo result = apiInstance.instanceLoggingGet();
    +                Base64Blob result = apiInstance.instancePresetBlobPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLoggingGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPost: " + e.Message );
                 }
             }
         }
    @@ -54987,38 +64396,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // PresetIdentifier | Preset identification
     
     try {
    -    $result = $api_instance->instanceLoggingGet();
    +    $result = $api_instance->instancePresetBlobPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetBlobPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | Preset identification
     
     eval { 
    -    my $result = $api_instance->instanceLoggingGet();
    +    my $result = $api_instance->instancePresetBlobPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLoggingGet: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetBlobPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55027,12 +64438,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    +body =  # PresetIdentifier | Preset identification
     
     try: 
    -    api_response = api_instance.instance_logging_get()
    +    api_response = api_instance.instance_preset_blob_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLoggingGet: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetBlobPost: %s\n" % e)
    @@ -55040,28 +64452,70 @@ except ApiException as e: +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +

    Responses

    -

    Status: 200 - Success

    +

    Status: 200 - On success return blob

    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Preset not found

    + + + +
    +
    +
    + +
    +
    @@ -55091,14 +64631,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -55134,14 +64674,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceLoggingPut

    +

    instancePresetBlobPut

    -

    Change logging parameters for this instance

    +

    deserialize base64 blob to a new preset.


    -
    /sdrangel/logging
    +
    /sdrangel/preset/blob

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/logging"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset/blob"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -55224,47 +64764,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    +        Base64Blob body = ; // Base64Blob | Blob in base64 format
             try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceLoggingPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    LoggingInfo *body = ; // Logging information
    +                            
    +
    Base64Blob *body = ; // Blob in base64 format
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instanceLoggingPutWith:body
    -              completionHandler: ^(LoggingInfo output, NSError* error) {
    +[apiInstance instancePresetBlobPutWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -55275,12 +64815,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {LoggingInfo} Logging information
    +var body = ; // {Base64Blob} Blob in base64 format
     
     
     var callback = function(error, data, response) {
    @@ -55290,14 +64830,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceLoggingPut(body, callback);
    +api.instancePresetBlobPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -55306,22 +64846,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceLoggingPutExample
    +    public class instancePresetBlobPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new LoggingInfo(); // LoggingInfo | Logging information
    +            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
     
                 try
                 {
    -                LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +                PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceLoggingPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPut: " + e.Message );
                 }
             }
         }
    @@ -55329,40 +64869,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // LoggingInfo | Logging information
    +$body = ; // Base64Blob | Blob in base64 format
     
     try {
    -    $result = $api_instance->instanceLoggingPut($body);
    +    $result = $api_instance->instancePresetBlobPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetBlobPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
    +my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
     
     eval { 
    -    my $result = $api_instance->instanceLoggingPut(body => $body);
    +    my $result = $api_instance->instancePresetBlobPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceLoggingPut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetBlobPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55371,13 +64911,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # LoggingInfo | Logging information
    +body =  # Base64Blob | Blob in base64 format
     
     try: 
    -    api_response = api_instance.instance_logging_put(body)
    +    api_response = api_instance.instance_preset_blob_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceLoggingPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetBlobPut: %s\n" % e)
    @@ -55400,10 +64940,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Logging information", + "description" : "Blob in base64 format", "required" : true, "schema" : { - "$ref" : "#/definitions/LoggingInfo" + "$ref" : "#/definitions/Base64Blob" } }; var schema = schemaWrapper.schema; @@ -55417,12 +64957,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instanceLoggingPut_body'); + var result = $('#d2e199_instancePresetBlobPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -55431,24 +64971,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - Return new data on success

    +

    Status: 200 - On success return preset identification

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid data

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    @@ -55521,14 +65061,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55564,14 +65104,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetBlobPost

    +

    instancePresetDelete

    -

    serialize a preset to a base64 blob.

    +

    Deletes a preset


    -
    /sdrangel/preset/blob
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset/blob"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -55654,47 +65194,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | Preset identification
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | Preset identification
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetIdentifier *body = ; // Preset identification
    +                            
    +
    PresetIdentifier *body = ; // delete this preset
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetBlobPostWith:body
    -              completionHandler: ^(Base64Blob output, NSError* error) {
    +[apiInstance instancePresetDeleteWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -55705,12 +65245,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetIdentifier} Preset identification
    +var body = ; // {PresetIdentifier} delete this preset
     
     
     var callback = function(error, data, response) {
    @@ -55720,14 +65260,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetBlobPost(body, callback);
    +api.instancePresetDelete(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -55736,22 +65276,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetBlobPostExample
    +    public class instancePresetDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetIdentifier(); // PresetIdentifier | Preset identification
    +            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
     
                 try
                 {
    -                Base64Blob result = apiInstance.instancePresetBlobPost(body);
    +                PresetIdentifier result = apiInstance.instancePresetDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetDelete: " + e.Message );
                 }
             }
         }
    @@ -55759,40 +65299,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetIdentifier | Preset identification
    +$body = ; // PresetIdentifier | delete this preset
     
     try {
    -    $result = $api_instance->instancePresetBlobPost($body);
    +    $result = $api_instance->instancePresetDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetBlobPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | Preset identification
    +my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | delete this preset
     
     eval { 
    -    my $result = $api_instance->instancePresetBlobPost(body => $body);
    +    my $result = $api_instance->instancePresetDelete(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetBlobPost: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -55801,13 +65341,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetIdentifier | Preset identification
    +body =  # PresetIdentifier | delete this preset
     
     try: 
    -    api_response = api_instance.instance_preset_blob_post(body)
    +    api_response = api_instance.instance_preset_delete(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetBlobPost: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetDelete: %s\n" % e)
    @@ -55830,7 +65370,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Preset identification", + "description" : "delete this preset", "required" : true, "schema" : { "$ref" : "#/definitions/PresetIdentifier" @@ -55847,12 +65387,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetBlobPost_body'); + var result = $('#d2e199_instancePresetDelete_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -55861,24 +65401,24 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return blob

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    @@ -55908,14 +65448,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55951,14 +65491,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -55994,14 +65534,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56037,14 +65577,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetBlobPut

    +

    instancePresetFilePost

    -

    deserialize base64 blob to a new preset.

    +

    export a preset to file (server only).


    -
    /sdrangel/preset/blob
    +
    /sdrangel/preset/file

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset/blob"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -56127,46 +65667,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        Base64Blob body = ; // Base64Blob | Blob in base64 format
    +        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetBlobPut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    Base64Blob *body = ; // Blob in base64 format
    +                            
    +
    PresetExport *body = ; // export details
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetBlobPutWith:body
    +[apiInstance instancePresetFilePostWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -56178,12 +65718,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {Base64Blob} Blob in base64 format
    +var body = ; // {PresetExport} export details
     
     
     var callback = function(error, data, response) {
    @@ -56193,14 +65733,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetBlobPut(body, callback);
    +api.instancePresetFilePost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -56209,22 +65749,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetBlobPutExample
    +    public class instancePresetFilePostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new Base64Blob(); // Base64Blob | Blob in base64 format
    +            var body = new PresetExport(); // PresetExport | export details
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetBlobPut(body);
    +                PresetIdentifier result = apiInstance.instancePresetFilePost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetBlobPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetFilePost: " + e.Message );
                 }
             }
         }
    @@ -56232,40 +65772,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // Base64Blob | Blob in base64 format
    +$body = ; // PresetExport | export details
     
     try {
    -    $result = $api_instance->instancePresetBlobPut($body);
    +    $result = $api_instance->instancePresetFilePost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetBlobPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetFilePost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::Base64Blob->new(); # Base64Blob | Blob in base64 format
    +my $body = SWGSDRangel::Object::PresetExport->new(); # PresetExport | export details
     
     eval { 
    -    my $result = $api_instance->instancePresetBlobPut(body => $body);
    +    my $result = $api_instance->instancePresetFilePost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetBlobPut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetFilePost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -56274,13 +65814,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # Base64Blob | Blob in base64 format
    +body =  # PresetExport | export details
     
     try: 
    -    api_response = api_instance.instance_preset_blob_put(body)
    +    api_response = api_instance.instance_preset_file_post(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetBlobPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetFilePost: %s\n" % e)
    @@ -56303,10 +65843,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Blob in base64 format", + "description" : "export details", "required" : true, "schema" : { - "$ref" : "#/definitions/Base64Blob" + "$ref" : "#/definitions/PresetExport" } }; var schema = schemaWrapper.schema; @@ -56320,12 +65860,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetBlobPut_body'); + var result = $('#d2e199_instancePresetFilePost_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -56338,14 +65878,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56381,14 +65921,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 404 - Preset or file path not found

    + + + +
    +
    +
    + +
    +
    @@ -56424,14 +66007,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56467,14 +66050,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetDelete

    +

    instancePresetFilePut

    -

    Deletes a preset

    +

    import a preset from file as a new preset.


    -
    /sdrangel/preset
    +
    /sdrangel/preset/file

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/preset"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset/file"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -56557,46 +66140,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    +        FilePath body = ; // FilePath | File path
             try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    +        FilePath body = ; // FilePath | File path
             try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetDelete");
    +            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetIdentifier *body = ; // delete this preset
    +                            
    +
    FilePath *body = ; // File path
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetDeleteWith:body
    +[apiInstance instancePresetFilePutWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -56608,12 +66191,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetIdentifier} delete this preset
    +var body = ; // {FilePath} File path
     
     
     var callback = function(error, data, response) {
    @@ -56623,14 +66206,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetDelete(body, callback);
    +api.instancePresetFilePut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -56639,22 +66222,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetDeleteExample
    +    public class instancePresetFilePutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
    +            var body = new FilePath(); // FilePath | File path
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetDelete(body);
    +                PresetIdentifier result = apiInstance.instancePresetFilePut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetDelete: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetFilePut: " + e.Message );
                 }
             }
         }
    @@ -56662,40 +66245,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetIdentifier | delete this preset
    +$body = ; // FilePath | File path
     
     try {
    -    $result = $api_instance->instancePresetDelete($body);
    +    $result = $api_instance->instancePresetFilePut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetFilePut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetIdentifier->new(); # PresetIdentifier | delete this preset
    +my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
     
     eval { 
    -    my $result = $api_instance->instancePresetDelete(body => $body);
    +    my $result = $api_instance->instancePresetFilePut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetDelete: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetFilePut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -56704,13 +66287,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetIdentifier | delete this preset
    +body =  # FilePath | File path
     
     try: 
    -    api_response = api_instance.instance_preset_delete(body)
    +    api_response = api_instance.instance_preset_file_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetDelete: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetFilePut: %s\n" % e)
    @@ -56733,10 +66316,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "delete this preset", + "description" : "File path", "required" : true, "schema" : { - "$ref" : "#/definitions/PresetIdentifier" + "$ref" : "#/definitions/FilePath" } }; var schema = schemaWrapper.schema; @@ -56750,12 +66333,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetDelete_body'); + var result = $('#d2e199_instancePresetFilePut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -56764,22 +66347,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    +

    Status: 200 - On success return preset identification

    -
    -
    +
    +
    - +
    @@ -56811,14 +66394,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 404 - Preset not found

    +

    Status: 404 - File not found

    -
    -
    +
    +
    - +
    @@ -56897,14 +66480,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -56940,14 +66523,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetFilePost

    +

    instancePresetGet

    -

    export a preset to file (server only).

    +

    List all presets in the instance


    -
    /sdrangel/preset/file
    +
    /sdrangel/presets

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset/file"
    +
    +
    curl -X GET "http://localhost/sdrangel/presets"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57030,47 +66613,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +            Presets result = apiInstance.instancePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetExport body = ; // PresetExport | export details
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +            Presets result = apiInstance.instancePresetGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePost");
    +            System.err.println("Exception when calling InstanceApi#instancePresetGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetExport *body = ; // export details
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetFilePostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instancePresetGetWithCompletionHandler: 
    +              ^(Presets output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -57081,14 +66661,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetExport} export details
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -57096,14 +66673,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetFilePost(body, callback);
    +api.instancePresetGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -57112,22 +66689,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetFilePostExample
    +    public class instancePresetGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetExport(); // PresetExport | export details
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetFilePost(body);
    +                Presets result = apiInstance.instancePresetGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetFilePost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetGet: " + e.Message );
                 }
             }
         }
    @@ -57135,212 +66711,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetExport | export details
     
     try {
    -    $result = $api_instance->instancePresetFilePost($body);
    +    $result = $api_instance->instancePresetGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetFilePost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetExport->new(); # PresetExport | export details
     
     eval { 
    -    my $result = $api_instance->instancePresetFilePost(body => $body);
    +    my $result = $api_instance->instancePresetGet();
         print Dumper($result);
     };
    -if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetFilePost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetExport | export details
    -
    -try: 
    -    api_response = api_instance.instance_preset_file_post(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetFilePost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 200 - On success return preset identification

    - - - -
    -
    -
    - -
    - -
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_preset_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instancePresetGet: %s\n" % e)
    +
    -

    Status: 400 - Invalid JSON request

    +

    Parameters

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 404 - Preset or file path not found

    + +

    Responses

    +

    Status: 200 - On success return preset list

    -
    -
    +
    +
    - +
    @@ -57370,14 +66815,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -57413,14 +66858,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetFilePut

    +

    instancePresetPatch

    -

    import a preset from file as a new preset.

    +

    Load a preset in a device set


    -
    /sdrangel/preset/file
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset/file"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57503,46 +66948,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        FilePath body = ; // FilePath | File path
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetFilePut");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    FilePath *body = ; // File path
    +                            
    +
    PresetTransfer *body = ; // Load preset settings to the device set
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetFilePutWith:body
    +[apiInstance instancePresetPatchWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -57554,12 +66999,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {FilePath} File path
    +var body = ; // {PresetTransfer} Load preset settings to the device set
     
     
     var callback = function(error, data, response) {
    @@ -57569,14 +67014,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetFilePut(body, callback);
    +api.instancePresetPatch(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -57585,22 +67030,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetFilePutExample
    +    public class instancePresetPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new FilePath(); // FilePath | File path
    +            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetFilePut(body);
    +                PresetIdentifier result = apiInstance.instancePresetPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetFilePut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPatch: " + e.Message );
                 }
             }
         }
    @@ -57608,40 +67053,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // FilePath | File path
    +$body = ; // PresetTransfer | Load preset settings to the device set
     
     try {
    -    $result = $api_instance->instancePresetFilePut($body);
    +    $result = $api_instance->instancePresetPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetFilePut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::FilePath->new(); # FilePath | File path
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | Load preset settings to the device set
     
     eval { 
    -    my $result = $api_instance->instancePresetFilePut(body => $body);
    +    my $result = $api_instance->instancePresetPatch(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetFilePut: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -57650,13 +67095,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # FilePath | File path
    +body =  # PresetTransfer | Load preset settings to the device set
     
     try: 
    -    api_response = api_instance.instance_preset_file_put(body)
    +    api_response = api_instance.instance_preset_patch(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetFilePut: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetPatch: %s\n" % e)
    @@ -57679,10 +67124,10 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "File path", + "description" : "Load preset settings to the device set", "required" : true, "schema" : { - "$ref" : "#/definitions/FilePath" + "$ref" : "#/definitions/PresetTransfer" } }; var schema = schemaWrapper.schema; @@ -57696,12 +67141,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetFilePut_body'); + var result = $('#d2e199_instancePresetPatch_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -57710,22 +67155,22 @@ $(document).ready(function() {

    Responses

    -

    Status: 200 - On success return preset identification

    +

    Status: 202 - On successful sending of the message the selected preset identification is returned

    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request

    +

    Status: 400 - Invalid JSON request or preset type and device set type mismatch

    -
    -
    +
    +
    - +
    -

    Status: 404 - File not found

    +

    Status: 404 - No preset or device set found

    -
    -
    +
    +
    - +
    @@ -57843,14 +67288,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -57886,14 +67331,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetGet

    +

    instancePresetPost

    -

    List all presets in the instance

    +

    Create a new preset from a device set settings. Frequency and type is ignored and taken from the the device set values.


    -
    /sdrangel/presets
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/presets"
    +
    +
    curl -X POST "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -57976,44 +67421,47 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            Presets result = apiInstance.instancePresetGet();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            Presets result = apiInstance.instancePresetGet();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetGet");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    PresetTransfer *body = ; // save device set settings on a new preset
    +
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetGetWithCompletionHandler: 
    -              ^(Presets output, NSError* error) {
    +[apiInstance instancePresetPostWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -58024,11 +67472,14 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    +var body = ; // {PresetTransfer} save device set settings on a new preset
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -58036,14 +67487,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetGet(callback);
    +api.instancePresetPost(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58052,21 +67503,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetGetExample
    +    public class instancePresetPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    +            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
     
                 try
                 {
    -                Presets result = apiInstance.instancePresetGet();
    +                PresetIdentifier result = apiInstance.instancePresetPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetGet: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPost: " + e.Message );
                 }
             }
         }
    @@ -58074,81 +67526,255 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    +$body = ; // PresetTransfer | save device set settings on a new preset
     
     try {
    -    $result = $api_instance->instancePresetGet();
    +    $result = $api_instance->instancePresetPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instancePresetGet();
    +    my $result = $api_instance->instancePresetPost(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetGet: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPost: $@\n";
     }
    -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    +                            
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +body =  # PresetTransfer | save device set settings on a new preset
    +
    +try: 
    +    api_response = api_instance.instance_preset_post(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instancePresetPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - On successful sending of the message the created preset identification is returned

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + -try: - api_response = api_instance.instance_preset_get() - pprint(api_response) -except ApiException as e: - print("Exception when calling InstanceApi->instancePresetGet: %s\n" % e)
    -
    -
    +
    +
    +
    + +
    + +
    +
    +

    Status: 404 - Device set not found

    + +
    +
    +
    + +
    + +
    +
    -

    Responses

    -

    Status: 200 - On success return preset list

    +

    Status: 409 - Preset already exists

    -
    -
    +
    +
    - +
    @@ -58178,14 +67804,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -58221,14 +67847,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPatch

    +

    instancePresetPut

    -

    Load a preset in a device set

    +

    Update an existing preset with device set settings.


    -
    /sdrangel/preset
    +
    /sdrangel/preset

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/preset"
    +
    +
    curl -X PUT "http://localhost/sdrangel/preset"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -58311,46 +67937,46 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    +        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +            PresetIdentifier result = apiInstance.instancePresetPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPut");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    +        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +            PresetIdentifier result = apiInstance.instancePresetPut(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPatch");
    +            System.err.println("Exception when calling InstanceApi#instancePresetPut");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // Load preset settings to the device set
    +                            
    +
    PresetTransfer *body = ; // save device set settings to the preset
     
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPatchWith:body
    +[apiInstance instancePresetPutWith:body
                   completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -58362,12 +67988,12 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} Load preset settings to the device set
    +var body = ; // {PresetTransfer} save device set settings to the preset
     
     
     var callback = function(error, data, response) {
    @@ -58377,14 +68003,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPatch(body, callback);
    +api.instancePresetPut(body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58393,22 +68019,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPatchExample
    +    public class instancePresetPutExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
    +            var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPatch(body);
    +                PresetIdentifier result = apiInstance.instancePresetPut(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPatch: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instancePresetPut: " + e.Message );
                 }
             }
         }
    @@ -58416,40 +68042,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | Load preset settings to the device set
    +$body = ; // PresetTransfer | save device set settings to the preset
     
     try {
    -    $result = $api_instance->instancePresetPatch($body);
    +    $result = $api_instance->instancePresetPut($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | Load preset settings to the device set
    +my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings to the preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPatch(body => $body);
    +    my $result = $api_instance->instancePresetPut(body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPatch: $@\n";
    +    warn "Exception when calling InstanceApi->instancePresetPut: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -58458,13 +68084,13 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | Load preset settings to the device set
    +body =  # PresetTransfer | save device set settings to the preset
     
     try: 
    -    api_response = api_instance.instance_preset_patch(body)
    +    api_response = api_instance.instance_preset_put(body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPatch: %s\n" % e)
    + print("Exception when calling InstanceApi->instancePresetPut: %s\n" % e)
    @@ -58487,7 +68113,7 @@ $(document).ready(function() { var schemaWrapper = { "in" : "body", "name" : "body", - "description" : "Load preset settings to the device set", + "description" : "save device set settings to the preset", "required" : true, "schema" : { "$ref" : "#/definitions/PresetTransfer" @@ -58504,12 +68130,12 @@ $(document).ready(function() { } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_instancePresetPatch_body'); + var result = $('#d2e199_instancePresetPut_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -58522,14 +68148,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    -

    Status: 400 - Invalid JSON request or preset type and device set type mismatch

    +

    Status: 400 - Invalid JSON request

    -
    -
    +
    +
    - +
    @@ -58608,14 +68234,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -58651,14 +68277,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -58694,14 +68320,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPost

    +

    instanceSummary

    -

    Create a new preset from a device set settings. Frequency and type is ignored and taken from the the device set values.

    +

    SDRangel instance summary


    -
    /sdrangel/preset
    +
    /sdrangel

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -58784,47 +68410,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    +            InstanceSummaryResponse result = apiInstance.instanceSummary();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPost");
    +            System.err.println("Exception when calling InstanceApi#instanceSummary");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    +            InstanceSummaryResponse result = apiInstance.instanceSummary();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPost");
    +            System.err.println("Exception when calling InstanceApi#instanceSummary");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // save device set settings on a new preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instanceSummaryWithCompletionHandler: 
    +              ^(InstanceSummaryResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -58835,14 +68458,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} save device set settings on a new preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -58850,14 +68470,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPost(body, callback);
    +api.instanceSummary(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -58866,22 +68486,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPostExample
    +    public class instanceSummaryExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPost(body);
    +                InstanceSummaryResponse result = apiInstance.instanceSummary();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPost: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceSummary: " + e.Message );
                 }
             }
         }
    @@ -58889,255 +68508,81 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | save device set settings on a new preset
     
     try {
    -    $result = $api_instance->instancePresetPost($body);
    +    $result = $api_instance->instanceSummary();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings on a new preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPost(body => $body);
    +    my $result = $api_instance->instanceSummary();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPost: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import swagger_sdrangel
    -from swagger_sdrangel.rest import ApiException
    -from pprint import pprint
    -
    -# create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | save device set settings on a new preset
    -
    -try: 
    -    api_response = api_instance.instance_preset_post(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - On successful sending of the message the created preset identification is returned

    - - - -
    -
    -
    - -
    - -
    + warn "Exception when calling InstanceApi->instanceSummary: $@\n"; +}
    -

    Status: 400 - Invalid JSON request

    - - +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
     
    -                            
    -
    -
    - -
    - -
    +try: + api_response = api_instance.instance_summary() + pprint(api_response) +except ApiException as e: + print("Exception when calling InstanceApi->instanceSummary: %s\n" % e)
    +
    -

    Status: 404 - Device set not found

    +

    Parameters

    - -
    -
    -
    - -
    - -
    -
    -

    Status: 409 - Preset already exists

    + +

    Responses

    +

    Status: 200 - Success

    -
    -
    +
    +
    - +
    @@ -59167,14 +68612,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -59210,14 +68655,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instancePresetPut

    +

    instanceWindowsGet

    -

    Update an existing preset with device set settings.

    +

    List the windows of the GUI with their workspace and whether each is hidden (GUI)


    -
    /sdrangel/preset
    +
    /sdrangel/windows

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/preset"
    +
    +
    curl -X GET "http://localhost/sdrangel/windows"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -59300,47 +68745,44 @@ public class InstanceApiExample {
         public static void main(String[] args) {
             
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    +            WindowList result = apiInstance.instanceWindowsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPut");
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.InstanceApi;
     
     public class InstanceApiExample {
     
         public static void main(String[] args) {
             InstanceApi apiInstance = new InstanceApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
             try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    +            WindowList result = apiInstance.instanceWindowsGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instancePresetPut");
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    PresetTransfer *body = ; // save device set settings to the preset
    -
    +                            
    +
    
     InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -[apiInstance instancePresetPutWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +[apiInstance instanceWindowsGetWithCompletionHandler: 
    +              ^(WindowList output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -59351,14 +68793,11 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.InstanceApi()
     
    -var body = ; // {PresetTransfer} save device set settings to the preset
    -
    -
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -59366,14 +68805,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instancePresetPut(body, callback);
    +api.instanceWindowsGet(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -59382,22 +68821,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instancePresetPutExample
    +    public class instanceWindowsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new InstanceApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
     
                 try
                 {
    -                PresetIdentifier result = apiInstance.instancePresetPut(body);
    +                WindowList result = apiInstance.instanceWindowsGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instancePresetPut: " + e.Message );
    +                Debug.Print("Exception when calling InstanceApi.instanceWindowsGet: " + e.Message );
                 }
             }
         }
    @@ -59405,40 +68843,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\InstanceApi();
    -$body = ; // PresetTransfer | save device set settings to the preset
     
     try {
    -    $result = $api_instance->instancePresetPut($body);
    +    $result = $api_instance->instanceWindowsGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling InstanceApi->instanceWindowsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::InstanceApi;
     
     my $api_instance = SWGSDRangel::InstanceApi->new();
    -my $body = SWGSDRangel::Object::PresetTransfer->new(); # PresetTransfer | save device set settings to the preset
     
     eval { 
    -    my $result = $api_instance->instancePresetPut(body => $body);
    +    my $result = $api_instance->instanceWindowsGet();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instancePresetPut: $@\n";
    +    warn "Exception when calling InstanceApi->instanceWindowsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -59447,13 +68883,12 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.InstanceApi()
    -body =  # PresetTransfer | save device set settings to the preset
     
     try: 
    -    api_response = api_instance.instance_preset_put(body)
    +    api_response = api_instance.instance_windows_get()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instancePresetPut: %s\n" % e)
    + print("Exception when calling InstanceApi->instanceWindowsGet: %s\n" % e)
    @@ -59461,156 +68896,28 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 202 - On successful sending of the message the selected preset identification is returned

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid JSON request

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - No preset or device set found

    +

    Status: 200 - On success return the window list

    -
    -
    +
    +
    - +
    @@ -59640,14 +68947,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    Status: 501 - Function not implemented

    -
    -
    - -
    - -

    -
    -
    + +
    +

    Workspace

    +
    +
    -

    instanceSummary

    +

    instanceWorkspaceAdd

    -

    SDRangel instance summary

    +

    Add new workspace


    -
    /sdrangel
    +
    /sdrangel/workspace

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel"
    +
    +
    curl -X POST "http://localhost/sdrangel/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    -import SWGSDRangel.api.InstanceApi;
    +import SWGSDRangel.api.WorkspaceApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class InstanceApiExample {
    +public class WorkspaceApiExample {
     
         public static void main(String[] args) {
             
    -        InstanceApi apiInstance = new InstanceApi();
    +        WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceSummary");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    import SWGSDRangel.api.InstanceApi;
    +                          
    +
    import SWGSDRangel.api.WorkspaceApi;
     
    -public class InstanceApiExample {
    +public class WorkspaceApiExample {
     
         public static void main(String[] args) {
    -        InstanceApi apiInstance = new InstanceApi();
    +        WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling InstanceApi#instanceSummary");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
    -InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceSummaryWithCompletionHandler: 
    -              ^(InstanceSummaryResponse output, NSError* error) {
    +[apiInstance instanceWorkspaceAddWithCompletionHandler: 
    +              ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -59821,10 +69096,10 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new SdRangel.InstanceApi()
    +var api = new SdRangel.WorkspaceApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -59833,14 +69108,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceSummary(callback);
    +api.instanceWorkspaceAdd(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -59849,21 +69124,21 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceSummaryExample
    +    public class instanceWorkspaceAddExample
         {
             public void main()
             {
                 
    -            var apiInstance = new InstanceApi();
    +            var apiInstance = new WorkspaceApi();
     
                 try
                 {
    -                InstanceSummaryResponse result = apiInstance.instanceSummary();
    +                SuccessResponse result = apiInstance.instanceWorkspaceAdd();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling InstanceApi.instanceSummary: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspaceAdd: " + e.Message );
                 }
             }
         }
    @@ -59871,38 +69146,38 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new Swagger\Client\Api\InstanceApi();
    +$api_instance = new Swagger\Client\Api\WorkspaceApi();
     
     try {
    -    $result = $api_instance->instanceSummary();
    +    $result = $api_instance->instanceWorkspaceAdd();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling InstanceApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->instanceWorkspaceAdd: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
    -use SWGSDRangel::InstanceApi;
    +use SWGSDRangel::WorkspaceApi;
     
    -my $api_instance = SWGSDRangel::InstanceApi->new();
    +my $api_instance = SWGSDRangel::WorkspaceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceSummary();
    +    my $result = $api_instance->instanceWorkspaceAdd();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling InstanceApi->instanceSummary: $@\n";
    +    warn "Exception when calling WorkspaceApi->instanceWorkspaceAdd: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -59910,13 +69185,13 @@ from swagger_sdrangel.rest import ApiException
     from pprint import pprint
     
     # create an instance of the API class
    -api_instance = swagger_sdrangel.InstanceApi()
    +api_instance = swagger_sdrangel.WorkspaceApi()
     
     try: 
    -    api_response = api_instance.instance_summary()
    +    api_response = api_instance.instance_workspace_add()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling InstanceApi->instanceSummary: %s\n" % e)
    + print("Exception when calling WorkspaceApi->instanceWorkspaceAdd: %s\n" % e)
    @@ -59928,24 +69203,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Success

    +

    Status: 202 - Successful sending of the message

    -
    -
    +
    +
    - +
    @@ -59975,14 +69250,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60018,14 +69293,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    -

    Workspace

    -
    -
    +
    +
    -

    instanceWorkspaceAdd

    +

    instanceWorkspacesDeleteEmpty

    -

    Add new workspace

    +

    Delete empty workspaces


    -
    /sdrangel/workspace
    +
    /sdrangel/workspace

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/workspace"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/workspace"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -60112,17 +69384,17 @@ public class WorkspaceApiExample {
             
             WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.WorkspaceApi;
     
     public class WorkspaceApiExample {
    @@ -60130,24 +69402,24 @@ public class WorkspaceApiExample {
         public static void main(String[] args) {
             WorkspaceApi apiInstance = new WorkspaceApi();
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspaceAdd");
    +            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    
     WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceWorkspaceAddWithCompletionHandler: 
    +[apiInstance instanceWorkspacesDeleteEmptyWithCompletionHandler: 
                   ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -60159,7 +69431,7 @@ WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.WorkspaceApi()
    @@ -60171,14 +69443,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceWorkspaceAdd(callback);
    +api.instanceWorkspacesDeleteEmpty(callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -60187,7 +69459,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceWorkspaceAddExample
    +    public class instanceWorkspacesDeleteEmptyExample
         {
             public void main()
             {
    @@ -60196,12 +69468,12 @@ namespace Example
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceWorkspaceAdd();
    +                SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspaceAdd: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspacesDeleteEmpty: " + e.Message );
                 }
             }
         }
    @@ -60209,22 +69481,22 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\WorkspaceApi();
     
     try {
    -    $result = $api_instance->instanceWorkspaceAdd();
    +    $result = $api_instance->instanceWorkspacesDeleteEmpty();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling WorkspaceApi->instanceWorkspaceAdd: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::WorkspaceApi;
    @@ -60232,15 +69504,15 @@ use SWGSDRangel::WorkspaceApi;
     my $api_instance = SWGSDRangel::WorkspaceApi->new();
     
     eval { 
    -    my $result = $api_instance->instanceWorkspaceAdd();
    +    my $result = $api_instance->instanceWorkspacesDeleteEmpty();
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling WorkspaceApi->instanceWorkspaceAdd: $@\n";
    +    warn "Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -60251,10 +69523,10 @@ from pprint import pprint
     api_instance = swagger_sdrangel.WorkspaceApi()
     
     try: 
    -    api_response = api_instance.instance_workspace_add()
    +    api_response = api_instance.instance_workspaces_delete_empty()
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling WorkspaceApi->instanceWorkspaceAdd: %s\n" % e)
    + print("Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: %s\n" % e)
    @@ -60270,14 +69542,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60313,14 +69585,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60356,14 +69628,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    instanceWorkspacesDeleteEmpty

    +

    workspaceActionsPost

    -

    Delete empty workspaces

    +

    Arrange the windows of a workspace (GUI)


    -
    /sdrangel/workspace
    +
    /sdrangel/workspace/{workspaceIndex}/actions

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/workspace"
    +
    +
    curl -X POST "http://localhost/sdrangel/workspace/{workspaceIndex}/actions"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -60446,44 +69718,51 @@ public class WorkspaceApiExample {
         public static void main(String[] args) {
             
             WorkspaceApi apiInstance = new WorkspaceApi();
    +        Integer workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +        WorkspaceActions body = ; // WorkspaceActions | Action to perform
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +            SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
    +            System.err.println("Exception when calling WorkspaceApi#workspaceActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.WorkspaceApi;
     
     public class WorkspaceApiExample {
     
         public static void main(String[] args) {
             WorkspaceApi apiInstance = new WorkspaceApi();
    +        Integer workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +        WorkspaceActions body = ; // WorkspaceActions | Action to perform
             try {
    -            SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +            SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling WorkspaceApi#instanceWorkspacesDeleteEmpty");
    +            System.err.println("Exception when calling WorkspaceApi#workspaceActionsPost");
                 e.printStackTrace();
             }
         }
     }
    -
    -
    
    +                            
    +
    Integer *workspaceIndex = 56; // Index of workspace in the list of workspaces
    +WorkspaceActions *body = ; // Action to perform
    +
     WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -[apiInstance instanceWorkspacesDeleteEmptyWithCompletionHandler: 
    -              ^(SuccessResponse output, NSError* error) {
    +[apiInstance workspaceActionsPostWith:workspaceIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -60494,11 +69773,16 @@ WorkspaceApi *apiInstance = [[WorkspaceApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.WorkspaceApi()
     
    +var workspaceIndex = 56; // {Integer} Index of workspace in the list of workspaces
    +
    +var body = ; // {WorkspaceActions} Action to perform
    +
    +
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
    @@ -60506,14 +69790,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceWorkspacesDeleteEmpty(callback);
    +api.workspaceActionsPost(workspaceIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -60522,21 +69806,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class instanceWorkspacesDeleteEmptyExample
    +    public class workspaceActionsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new WorkspaceApi();
    +            var workspaceIndex = 56;  // Integer | Index of workspace in the list of workspaces
    +            var body = new WorkspaceActions(); // WorkspaceActions | Action to perform
     
                 try
                 {
    -                SuccessResponse result = apiInstance.instanceWorkspacesDeleteEmpty();
    +                SuccessResponse result = apiInstance.workspaceActionsPost(workspaceIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling WorkspaceApi.instanceWorkspacesDeleteEmpty: " + e.Message );
    +                Debug.Print("Exception when calling WorkspaceApi.workspaceActionsPost: " + e.Message );
                 }
             }
         }
    @@ -60544,38 +69830,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\WorkspaceApi();
    +$workspaceIndex = 56; // Integer | Index of workspace in the list of workspaces
    +$body = ; // WorkspaceActions | Action to perform
     
     try {
    -    $result = $api_instance->instanceWorkspacesDeleteEmpty();
    +    $result = $api_instance->workspaceActionsPost($workspaceIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling WorkspaceApi->workspaceActionsPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::WorkspaceApi;
     
     my $api_instance = SWGSDRangel::WorkspaceApi->new();
    +my $workspaceIndex = 56; # Integer | Index of workspace in the list of workspaces
    +my $body = SWGSDRangel::Object::WorkspaceActions->new(); # WorkspaceActions | Action to perform
     
     eval { 
    -    my $result = $api_instance->instanceWorkspacesDeleteEmpty();
    +    my $result = $api_instance->workspaceActionsPost(workspaceIndex => $workspaceIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: $@\n";
    +    warn "Exception when calling WorkspaceApi->workspaceActionsPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -60584,19 +69874,93 @@ from pprint import pprint
     
     # create an instance of the API class
     api_instance = swagger_sdrangel.WorkspaceApi()
    +workspaceIndex = 56 # Integer | Index of workspace in the list of workspaces
    +body =  # WorkspaceActions | Action to perform
     
     try: 
    -    api_response = api_instance.instance_workspaces_delete_empty()
    +    api_response = api_instance.workspace_actions_post(workspaceIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling WorkspaceApi->instanceWorkspacesDeleteEmpty: %s\n" % e)
    + print("Exception when calling WorkspaceApi->workspaceActionsPost: %s\n" % e)

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    workspaceIndex* + +
    +
    +
    + + Integer + +
    + Index of workspace in the list of workspaces +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    @@ -60605,14 +69969,14 @@ except ApiException as e:
    -
    -
    +
    +
    - + +
    +
    + +

    Status: 400 - Invalid JSON request

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid workspace index

    + + + +
    +
    +
    + +
    +
    @@ -60648,14 +70098,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60691,14 +70141,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -60747,7 +70197,7 @@ except ApiException as e:
    - Generated 2026-08-04T03:09:32.867+02:00 + Generated 2026-09-15T18:30:50.537+02:00
    diff --git a/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.cpp index 49f152ca1..b4bd342e6 100644 --- a/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.cpp @@ -36,8 +36,6 @@ SWGADSBDemodSettings::SWGADSBDemodSettings() { m_correlation_threshold_isSet = false; samples_per_bit = 0; m_samples_per_bit_isSet = false; - correlate_full_preamble = 0; - m_correlate_full_preamble_isSet = false; demod_mode_s = 0; m_demod_mode_s_isSet = false; interpolator_phase_steps = 0; @@ -120,8 +118,6 @@ SWGADSBDemodSettings::init() { m_correlation_threshold_isSet = false; samples_per_bit = 0; m_samples_per_bit_isSet = false; - correlate_full_preamble = 0; - m_correlate_full_preamble_isSet = false; demod_mode_s = 0; m_demod_mode_s_isSet = false; interpolator_phase_steps = 0; @@ -202,7 +198,6 @@ SWGADSBDemodSettings::cleanup() { - if(export_client_host != nullptr) { delete export_client_host; } @@ -279,8 +274,6 @@ SWGADSBDemodSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&samples_per_bit, pJson["samplesPerBit"], "qint32", ""); - ::SWGSDRangel::setValue(&correlate_full_preamble, pJson["correlateFullPreamble"], "qint32", ""); - ::SWGSDRangel::setValue(&demod_mode_s, pJson["demodModeS"], "qint32", ""); ::SWGSDRangel::setValue(&interpolator_phase_steps, pJson["interpolatorPhaseSteps"], "qint32", ""); @@ -375,9 +368,6 @@ SWGADSBDemodSettings::asJsonObject() { if(m_samples_per_bit_isSet){ obj->insert("samplesPerBit", QJsonValue(samples_per_bit)); } - if(m_correlate_full_preamble_isSet){ - obj->insert("correlateFullPreamble", QJsonValue(correlate_full_preamble)); - } if(m_demod_mode_s_isSet){ obj->insert("demodModeS", QJsonValue(demod_mode_s)); } @@ -521,16 +511,6 @@ SWGADSBDemodSettings::setSamplesPerBit(qint32 samples_per_bit) { this->m_samples_per_bit_isSet = true; } -qint32 -SWGADSBDemodSettings::getCorrelateFullPreamble() { - return correlate_full_preamble; -} -void -SWGADSBDemodSettings::setCorrelateFullPreamble(qint32 correlate_full_preamble) { - this->correlate_full_preamble = correlate_full_preamble; - this->m_correlate_full_preamble_isSet = true; -} - qint32 SWGADSBDemodSettings::getDemodModeS() { return demod_mode_s; @@ -878,9 +858,6 @@ SWGADSBDemodSettings::isSet(){ if(m_samples_per_bit_isSet){ isObjectUpdated = true; break; } - if(m_correlate_full_preamble_isSet){ - isObjectUpdated = true; break; - } if(m_demod_mode_s_isSet){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.h b/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.h index de41fc178..c664c3821 100644 --- a/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGADSBDemodSettings.h @@ -56,9 +56,6 @@ public: qint32 getSamplesPerBit(); void setSamplesPerBit(qint32 samples_per_bit); - qint32 getCorrelateFullPreamble(); - void setCorrelateFullPreamble(qint32 correlate_full_preamble); - qint32 getDemodModeS(); void setDemodModeS(qint32 demod_mode_s); @@ -174,9 +171,6 @@ private: qint32 samples_per_bit; bool m_samples_per_bit_isSet; - qint32 correlate_full_preamble; - bool m_correlate_full_preamble_isSet; - qint32 demod_mode_s; bool m_demod_mode_s_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGAISReport.cpp b/swagger/sdrangel/code/qt5/client/SWGAISReport.cpp new file mode 100644 index 000000000..bab83df93 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAISReport.cpp @@ -0,0 +1,162 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGAISReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAISReport::SWGAISReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAISReport::SWGAISReport() { + report_date_time = nullptr; + m_report_date_time_isSet = false; + vessel_count = 0; + m_vessel_count_isSet = false; + vessels = nullptr; + m_vessels_isSet = false; +} + +SWGAISReport::~SWGAISReport() { + this->cleanup(); +} + +void +SWGAISReport::init() { + report_date_time = new QString(""); + m_report_date_time_isSet = false; + vessel_count = 0; + m_vessel_count_isSet = false; + vessels = new QList(); + m_vessels_isSet = false; +} + +void +SWGAISReport::cleanup() { + if(report_date_time != nullptr) { + delete report_date_time; + } + + if(vessels != nullptr) { + auto arr = vessels; + for(auto o: *arr) { + delete o; + } + delete vessels; + } +} + +SWGAISReport* +SWGAISReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAISReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&report_date_time, pJson["reportDateTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&vessel_count, pJson["vesselCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&vessels, pJson["vessels"], "QList", "SWGAISVessel"); +} + +QString +SWGAISReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAISReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(report_date_time != nullptr && *report_date_time != QString("")){ + toJsonValue(QString("reportDateTime"), report_date_time, obj, QString("QString")); + } + if(m_vessel_count_isSet){ + obj->insert("vesselCount", QJsonValue(vessel_count)); + } + if(vessels && vessels->size() > 0){ + toJsonArray((QList*)vessels, obj, "vessels", "SWGAISVessel"); + } + + return obj; +} + +QString* +SWGAISReport::getReportDateTime() { + return report_date_time; +} +void +SWGAISReport::setReportDateTime(QString* report_date_time) { + this->report_date_time = report_date_time; + this->m_report_date_time_isSet = true; +} + +qint32 +SWGAISReport::getVesselCount() { + return vessel_count; +} +void +SWGAISReport::setVesselCount(qint32 vessel_count) { + this->vessel_count = vessel_count; + this->m_vessel_count_isSet = true; +} + +QList* +SWGAISReport::getVessels() { + return vessels; +} +void +SWGAISReport::setVessels(QList* vessels) { + this->vessels = vessels; + this->m_vessels_isSet = true; +} + + +bool +SWGAISReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(report_date_time && *report_date_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_vessel_count_isSet){ + isObjectUpdated = true; break; + } + if(vessels && (vessels->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAISReport.h b/swagger/sdrangel/code/qt5/client/SWGAISReport.h new file mode 100644 index 000000000..219600d87 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAISReport.h @@ -0,0 +1,73 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGAISReport.h + * + * Vessels heard by the AIS feature, which collects the decoded messages of every AIS demodulator in the instance. A field is present only once a message carrying it has been received, so an absent position means unknown rather than zero. + */ + +#ifndef SWGAISReport_H_ +#define SWGAISReport_H_ + +#include + + +#include "SWGAISVessel.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAISReport: public SWGObject { +public: + SWGAISReport(); + SWGAISReport(QString* json); + virtual ~SWGAISReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAISReport* fromJson(QString &jsonString) override; + + QString* getReportDateTime(); + void setReportDateTime(QString* report_date_time); + + qint32 getVesselCount(); + void setVesselCount(qint32 vessel_count); + + QList* getVessels(); + void setVessels(QList* vessels); + + + virtual bool isSet() override; + +private: + QString* report_date_time; + bool m_report_date_time_isSet; + + qint32 vessel_count; + bool m_vessel_count_isSet; + + QList* vessels; + bool m_vessels_isSet; + +}; + +} + +#endif /* SWGAISReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAISVessel.cpp b/swagger/sdrangel/code/qt5/client/SWGAISVessel.cpp new file mode 100644 index 000000000..c8806abeb --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAISVessel.cpp @@ -0,0 +1,521 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGAISVessel.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAISVessel::SWGAISVessel(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAISVessel::SWGAISVessel() { + mmsi = nullptr; + m_mmsi_isSet = false; + name = nullptr; + m_name_isSet = false; + callsign = nullptr; + m_callsign_isSet = false; + imo = nullptr; + m_imo_isSet = false; + country = nullptr; + m_country_isSet = false; + type = nullptr; + m_type_isSet = false; + ship_type = nullptr; + m_ship_type_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + course = 0.0f; + m_course_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + heading = 0; + m_heading_isSet = false; + status = nullptr; + m_status_isSet = false; + length = 0; + m_length_isSet = false; + destination = nullptr; + m_destination_isSet = false; + position_update = nullptr; + m_position_update_isSet = false; + last_update = nullptr; + m_last_update_isSet = false; + messages = 0; + m_messages_isSet = false; +} + +SWGAISVessel::~SWGAISVessel() { + this->cleanup(); +} + +void +SWGAISVessel::init() { + mmsi = new QString(""); + m_mmsi_isSet = false; + name = new QString(""); + m_name_isSet = false; + callsign = new QString(""); + m_callsign_isSet = false; + imo = new QString(""); + m_imo_isSet = false; + country = new QString(""); + m_country_isSet = false; + type = new QString(""); + m_type_isSet = false; + ship_type = new QString(""); + m_ship_type_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + course = 0.0f; + m_course_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + heading = 0; + m_heading_isSet = false; + status = new QString(""); + m_status_isSet = false; + length = 0; + m_length_isSet = false; + destination = new QString(""); + m_destination_isSet = false; + position_update = new QString(""); + m_position_update_isSet = false; + last_update = new QString(""); + m_last_update_isSet = false; + messages = 0; + m_messages_isSet = false; +} + +void +SWGAISVessel::cleanup() { + if(mmsi != nullptr) { + delete mmsi; + } + if(name != nullptr) { + delete name; + } + if(callsign != nullptr) { + delete callsign; + } + if(imo != nullptr) { + delete imo; + } + if(country != nullptr) { + delete country; + } + if(type != nullptr) { + delete type; + } + if(ship_type != nullptr) { + delete ship_type; + } + + + + + + if(status != nullptr) { + delete status; + } + + if(destination != nullptr) { + delete destination; + } + if(position_update != nullptr) { + delete position_update; + } + if(last_update != nullptr) { + delete last_update; + } + +} + +SWGAISVessel* +SWGAISVessel::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAISVessel::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&mmsi, pJson["mmsi"], "QString", "QString"); + + ::SWGSDRangel::setValue(&name, pJson["name"], "QString", "QString"); + + ::SWGSDRangel::setValue(&callsign, pJson["callsign"], "QString", "QString"); + + ::SWGSDRangel::setValue(&imo, pJson["imo"], "QString", "QString"); + + ::SWGSDRangel::setValue(&country, pJson["country"], "QString", "QString"); + + ::SWGSDRangel::setValue(&type, pJson["type"], "QString", "QString"); + + ::SWGSDRangel::setValue(&ship_type, pJson["shipType"], "QString", "QString"); + + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&course, pJson["course"], "float", ""); + + ::SWGSDRangel::setValue(&speed, pJson["speed"], "float", ""); + + ::SWGSDRangel::setValue(&heading, pJson["heading"], "qint32", ""); + + ::SWGSDRangel::setValue(&status, pJson["status"], "QString", "QString"); + + ::SWGSDRangel::setValue(&length, pJson["length"], "qint32", ""); + + ::SWGSDRangel::setValue(&destination, pJson["destination"], "QString", "QString"); + + ::SWGSDRangel::setValue(&position_update, pJson["positionUpdate"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_update, pJson["lastUpdate"], "QString", "QString"); + + ::SWGSDRangel::setValue(&messages, pJson["messages"], "qint32", ""); + +} + +QString +SWGAISVessel::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAISVessel::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(mmsi != nullptr && *mmsi != QString("")){ + toJsonValue(QString("mmsi"), mmsi, obj, QString("QString")); + } + if(name != nullptr && *name != QString("")){ + toJsonValue(QString("name"), name, obj, QString("QString")); + } + if(callsign != nullptr && *callsign != QString("")){ + toJsonValue(QString("callsign"), callsign, obj, QString("QString")); + } + if(imo != nullptr && *imo != QString("")){ + toJsonValue(QString("imo"), imo, obj, QString("QString")); + } + if(country != nullptr && *country != QString("")){ + toJsonValue(QString("country"), country, obj, QString("QString")); + } + if(type != nullptr && *type != QString("")){ + toJsonValue(QString("type"), type, obj, QString("QString")); + } + if(ship_type != nullptr && *ship_type != QString("")){ + toJsonValue(QString("shipType"), ship_type, obj, QString("QString")); + } + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_course_isSet){ + obj->insert("course", QJsonValue(course)); + } + if(m_speed_isSet){ + obj->insert("speed", QJsonValue(speed)); + } + if(m_heading_isSet){ + obj->insert("heading", QJsonValue(heading)); + } + if(status != nullptr && *status != QString("")){ + toJsonValue(QString("status"), status, obj, QString("QString")); + } + if(m_length_isSet){ + obj->insert("length", QJsonValue(length)); + } + if(destination != nullptr && *destination != QString("")){ + toJsonValue(QString("destination"), destination, obj, QString("QString")); + } + if(position_update != nullptr && *position_update != QString("")){ + toJsonValue(QString("positionUpdate"), position_update, obj, QString("QString")); + } + if(last_update != nullptr && *last_update != QString("")){ + toJsonValue(QString("lastUpdate"), last_update, obj, QString("QString")); + } + if(m_messages_isSet){ + obj->insert("messages", QJsonValue(messages)); + } + + return obj; +} + +QString* +SWGAISVessel::getMmsi() { + return mmsi; +} +void +SWGAISVessel::setMmsi(QString* mmsi) { + this->mmsi = mmsi; + this->m_mmsi_isSet = true; +} + +QString* +SWGAISVessel::getName() { + return name; +} +void +SWGAISVessel::setName(QString* name) { + this->name = name; + this->m_name_isSet = true; +} + +QString* +SWGAISVessel::getCallsign() { + return callsign; +} +void +SWGAISVessel::setCallsign(QString* callsign) { + this->callsign = callsign; + this->m_callsign_isSet = true; +} + +QString* +SWGAISVessel::getImo() { + return imo; +} +void +SWGAISVessel::setImo(QString* imo) { + this->imo = imo; + this->m_imo_isSet = true; +} + +QString* +SWGAISVessel::getCountry() { + return country; +} +void +SWGAISVessel::setCountry(QString* country) { + this->country = country; + this->m_country_isSet = true; +} + +QString* +SWGAISVessel::getType() { + return type; +} +void +SWGAISVessel::setType(QString* type) { + this->type = type; + this->m_type_isSet = true; +} + +QString* +SWGAISVessel::getShipType() { + return ship_type; +} +void +SWGAISVessel::setShipType(QString* ship_type) { + this->ship_type = ship_type; + this->m_ship_type_isSet = true; +} + +float +SWGAISVessel::getLatitude() { + return latitude; +} +void +SWGAISVessel::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGAISVessel::getLongitude() { + return longitude; +} +void +SWGAISVessel::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGAISVessel::getCourse() { + return course; +} +void +SWGAISVessel::setCourse(float course) { + this->course = course; + this->m_course_isSet = true; +} + +float +SWGAISVessel::getSpeed() { + return speed; +} +void +SWGAISVessel::setSpeed(float speed) { + this->speed = speed; + this->m_speed_isSet = true; +} + +qint32 +SWGAISVessel::getHeading() { + return heading; +} +void +SWGAISVessel::setHeading(qint32 heading) { + this->heading = heading; + this->m_heading_isSet = true; +} + +QString* +SWGAISVessel::getStatus() { + return status; +} +void +SWGAISVessel::setStatus(QString* status) { + this->status = status; + this->m_status_isSet = true; +} + +qint32 +SWGAISVessel::getLength() { + return length; +} +void +SWGAISVessel::setLength(qint32 length) { + this->length = length; + this->m_length_isSet = true; +} + +QString* +SWGAISVessel::getDestination() { + return destination; +} +void +SWGAISVessel::setDestination(QString* destination) { + this->destination = destination; + this->m_destination_isSet = true; +} + +QString* +SWGAISVessel::getPositionUpdate() { + return position_update; +} +void +SWGAISVessel::setPositionUpdate(QString* position_update) { + this->position_update = position_update; + this->m_position_update_isSet = true; +} + +QString* +SWGAISVessel::getLastUpdate() { + return last_update; +} +void +SWGAISVessel::setLastUpdate(QString* last_update) { + this->last_update = last_update; + this->m_last_update_isSet = true; +} + +qint32 +SWGAISVessel::getMessages() { + return messages; +} +void +SWGAISVessel::setMessages(qint32 messages) { + this->messages = messages; + this->m_messages_isSet = true; +} + + +bool +SWGAISVessel::isSet(){ + bool isObjectUpdated = false; + do{ + if(mmsi && *mmsi != QString("")){ + isObjectUpdated = true; break; + } + if(name && *name != QString("")){ + isObjectUpdated = true; break; + } + if(callsign && *callsign != QString("")){ + isObjectUpdated = true; break; + } + if(imo && *imo != QString("")){ + isObjectUpdated = true; break; + } + if(country && *country != QString("")){ + isObjectUpdated = true; break; + } + if(type && *type != QString("")){ + isObjectUpdated = true; break; + } + if(ship_type && *ship_type != QString("")){ + isObjectUpdated = true; break; + } + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_course_isSet){ + isObjectUpdated = true; break; + } + if(m_speed_isSet){ + isObjectUpdated = true; break; + } + if(m_heading_isSet){ + isObjectUpdated = true; break; + } + if(status && *status != QString("")){ + isObjectUpdated = true; break; + } + if(m_length_isSet){ + isObjectUpdated = true; break; + } + if(destination && *destination != QString("")){ + isObjectUpdated = true; break; + } + if(position_update && *position_update != QString("")){ + isObjectUpdated = true; break; + } + if(last_update && *last_update != QString("")){ + isObjectUpdated = true; break; + } + if(m_messages_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAISVessel.h b/swagger/sdrangel/code/qt5/client/SWGAISVessel.h new file mode 100644 index 000000000..3d2bc74f2 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAISVessel.h @@ -0,0 +1,161 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGAISVessel.h + * + * Vessel heard by the AIS feature + */ + +#ifndef SWGAISVessel_H_ +#define SWGAISVessel_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAISVessel: public SWGObject { +public: + SWGAISVessel(); + SWGAISVessel(QString* json); + virtual ~SWGAISVessel(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAISVessel* fromJson(QString &jsonString) override; + + QString* getMmsi(); + void setMmsi(QString* mmsi); + + QString* getName(); + void setName(QString* name); + + QString* getCallsign(); + void setCallsign(QString* callsign); + + QString* getImo(); + void setImo(QString* imo); + + QString* getCountry(); + void setCountry(QString* country); + + QString* getType(); + void setType(QString* type); + + QString* getShipType(); + void setShipType(QString* ship_type); + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getCourse(); + void setCourse(float course); + + float getSpeed(); + void setSpeed(float speed); + + qint32 getHeading(); + void setHeading(qint32 heading); + + QString* getStatus(); + void setStatus(QString* status); + + qint32 getLength(); + void setLength(qint32 length); + + QString* getDestination(); + void setDestination(QString* destination); + + QString* getPositionUpdate(); + void setPositionUpdate(QString* position_update); + + QString* getLastUpdate(); + void setLastUpdate(QString* last_update); + + qint32 getMessages(); + void setMessages(qint32 messages); + + + virtual bool isSet() override; + +private: + QString* mmsi; + bool m_mmsi_isSet; + + QString* name; + bool m_name_isSet; + + QString* callsign; + bool m_callsign_isSet; + + QString* imo; + bool m_imo_isSet; + + QString* country; + bool m_country_isSet; + + QString* type; + bool m_type_isSet; + + QString* ship_type; + bool m_ship_type_isSet; + + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float course; + bool m_course_isSet; + + float speed; + bool m_speed_isSet; + + qint32 heading; + bool m_heading_isSet; + + QString* status; + bool m_status_isSet; + + qint32 length; + bool m_length_isSet; + + QString* destination; + bool m_destination_isSet; + + QString* position_update; + bool m_position_update_isSet; + + QString* last_update; + bool m_last_update_isSet; + + qint32 messages; + bool m_messages_isSet; + +}; + +} + +#endif /* SWGAISVessel_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAPRSReport.cpp b/swagger/sdrangel/code/qt5/client/SWGAPRSReport.cpp new file mode 100644 index 000000000..1c855b2bf --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPRSReport.cpp @@ -0,0 +1,208 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGAPRSReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPRSReport::SWGAPRSReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPRSReport::SWGAPRSReport() { + running_state = 0; + m_running_state_isSet = false; + report_date_time = nullptr; + m_report_date_time_isSet = false; + station_count = 0; + m_station_count_isSet = false; + packet_count = 0; + m_packet_count_isSet = false; + stations = nullptr; + m_stations_isSet = false; +} + +SWGAPRSReport::~SWGAPRSReport() { + this->cleanup(); +} + +void +SWGAPRSReport::init() { + running_state = 0; + m_running_state_isSet = false; + report_date_time = new QString(""); + m_report_date_time_isSet = false; + station_count = 0; + m_station_count_isSet = false; + packet_count = 0; + m_packet_count_isSet = false; + stations = new QList(); + m_stations_isSet = false; +} + +void +SWGAPRSReport::cleanup() { + + if(report_date_time != nullptr) { + delete report_date_time; + } + + + if(stations != nullptr) { + auto arr = stations; + for(auto o: *arr) { + delete o; + } + delete stations; + } +} + +SWGAPRSReport* +SWGAPRSReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPRSReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&running_state, pJson["runningState"], "qint32", ""); + + ::SWGSDRangel::setValue(&report_date_time, pJson["reportDateTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&station_count, pJson["stationCount"], "qint32", ""); + + ::SWGSDRangel::setValue(&packet_count, pJson["packetCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&stations, pJson["stations"], "QList", "SWGAPRSStation"); +} + +QString +SWGAPRSReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPRSReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_running_state_isSet){ + obj->insert("runningState", QJsonValue(running_state)); + } + if(report_date_time != nullptr && *report_date_time != QString("")){ + toJsonValue(QString("reportDateTime"), report_date_time, obj, QString("QString")); + } + if(m_station_count_isSet){ + obj->insert("stationCount", QJsonValue(station_count)); + } + if(m_packet_count_isSet){ + obj->insert("packetCount", QJsonValue(packet_count)); + } + if(stations && stations->size() > 0){ + toJsonArray((QList*)stations, obj, "stations", "SWGAPRSStation"); + } + + return obj; +} + +qint32 +SWGAPRSReport::getRunningState() { + return running_state; +} +void +SWGAPRSReport::setRunningState(qint32 running_state) { + this->running_state = running_state; + this->m_running_state_isSet = true; +} + +QString* +SWGAPRSReport::getReportDateTime() { + return report_date_time; +} +void +SWGAPRSReport::setReportDateTime(QString* report_date_time) { + this->report_date_time = report_date_time; + this->m_report_date_time_isSet = true; +} + +qint32 +SWGAPRSReport::getStationCount() { + return station_count; +} +void +SWGAPRSReport::setStationCount(qint32 station_count) { + this->station_count = station_count; + this->m_station_count_isSet = true; +} + +qint32 +SWGAPRSReport::getPacketCount() { + return packet_count; +} +void +SWGAPRSReport::setPacketCount(qint32 packet_count) { + this->packet_count = packet_count; + this->m_packet_count_isSet = true; +} + +QList* +SWGAPRSReport::getStations() { + return stations; +} +void +SWGAPRSReport::setStations(QList* stations) { + this->stations = stations; + this->m_stations_isSet = true; +} + + +bool +SWGAPRSReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_running_state_isSet){ + isObjectUpdated = true; break; + } + if(report_date_time && *report_date_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_station_count_isSet){ + isObjectUpdated = true; break; + } + if(m_packet_count_isSet){ + isObjectUpdated = true; break; + } + if(stations && (stations->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPRSReport.h b/swagger/sdrangel/code/qt5/client/SWGAPRSReport.h new file mode 100644 index 000000000..1c6b0d251 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPRSReport.h @@ -0,0 +1,85 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGAPRSReport.h + * + * Stations and objects heard by the APRS feature, which collects the AX.25 packets of every packet demodulator in the instance. A field is present only once a packet carrying it has been received. + */ + +#ifndef SWGAPRSReport_H_ +#define SWGAPRSReport_H_ + +#include + + +#include "SWGAPRSStation.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPRSReport: public SWGObject { +public: + SWGAPRSReport(); + SWGAPRSReport(QString* json); + virtual ~SWGAPRSReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPRSReport* fromJson(QString &jsonString) override; + + qint32 getRunningState(); + void setRunningState(qint32 running_state); + + QString* getReportDateTime(); + void setReportDateTime(QString* report_date_time); + + qint32 getStationCount(); + void setStationCount(qint32 station_count); + + qint32 getPacketCount(); + void setPacketCount(qint32 packet_count); + + QList* getStations(); + void setStations(QList* stations); + + + virtual bool isSet() override; + +private: + qint32 running_state; + bool m_running_state_isSet; + + QString* report_date_time; + bool m_report_date_time_isSet; + + qint32 station_count; + bool m_station_count_isSet; + + qint32 packet_count; + bool m_packet_count_isSet; + + QList* stations; + bool m_stations_isSet; + +}; + +} + +#endif /* SWGAPRSReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAPRSSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGAPRSSettings.cpp index fc63ac5fb..7d7d9c4f7 100644 --- a/swagger/sdrangel/code/qt5/client/SWGAPRSSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGAPRSSettings.cpp @@ -308,40 +308,40 @@ SWGAPRSSettings::asJsonObject() { toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); } if(packets_table_column_indexes && packets_table_column_indexes->size() > 0){ - toJsonArray((QList*)packets_table_column_indexes, obj, "packetsTableColumnIndexes", "qint32"); + toJsonArray((QList*)packets_table_column_indexes, obj, "packetsTableColumnIndexes", ""); } if(packets_table_column_sizes && packets_table_column_sizes->size() > 0){ - toJsonArray((QList*)packets_table_column_sizes, obj, "packetsTableColumnSizes", "qint32"); + toJsonArray((QList*)packets_table_column_sizes, obj, "packetsTableColumnSizes", ""); } if(weather_table_column_indexes && weather_table_column_indexes->size() > 0){ - toJsonArray((QList*)weather_table_column_indexes, obj, "weatherTableColumnIndexes", "qint32"); + toJsonArray((QList*)weather_table_column_indexes, obj, "weatherTableColumnIndexes", ""); } if(weather_table_column_sizes && weather_table_column_sizes->size() > 0){ - toJsonArray((QList*)weather_table_column_sizes, obj, "weatherTableColumnSizes", "qint32"); + toJsonArray((QList*)weather_table_column_sizes, obj, "weatherTableColumnSizes", ""); } if(status_table_column_indexes && status_table_column_indexes->size() > 0){ - toJsonArray((QList*)status_table_column_indexes, obj, "statusTableColumnIndexes", "qint32"); + toJsonArray((QList*)status_table_column_indexes, obj, "statusTableColumnIndexes", ""); } if(status_table_column_sizes && status_table_column_sizes->size() > 0){ - toJsonArray((QList*)status_table_column_sizes, obj, "statusTableColumnSizes", "qint32"); + toJsonArray((QList*)status_table_column_sizes, obj, "statusTableColumnSizes", ""); } if(messages_table_column_indexes && messages_table_column_indexes->size() > 0){ - toJsonArray((QList*)messages_table_column_indexes, obj, "messagesTableColumnIndexes", "qint32"); + toJsonArray((QList*)messages_table_column_indexes, obj, "messagesTableColumnIndexes", ""); } if(messages_table_column_sizes && messages_table_column_sizes->size() > 0){ - toJsonArray((QList*)messages_table_column_sizes, obj, "messagesTableColumnSizes", "qint32"); + toJsonArray((QList*)messages_table_column_sizes, obj, "messagesTableColumnSizes", ""); } if(telemetry_table_column_indexes && telemetry_table_column_indexes->size() > 0){ - toJsonArray((QList*)telemetry_table_column_indexes, obj, "telemetryTableColumnIndexes", "qint32"); + toJsonArray((QList*)telemetry_table_column_indexes, obj, "telemetryTableColumnIndexes", ""); } if(telemetry_table_column_sizes && telemetry_table_column_sizes->size() > 0){ - toJsonArray((QList*)telemetry_table_column_sizes, obj, "telemetryTableColumnSizes", "qint32"); + toJsonArray((QList*)telemetry_table_column_sizes, obj, "telemetryTableColumnSizes", ""); } if(motion_table_column_indexes && motion_table_column_indexes->size() > 0){ - toJsonArray((QList*)motion_table_column_indexes, obj, "motionTableColumnIndexes", "qint32"); + toJsonArray((QList*)motion_table_column_indexes, obj, "motionTableColumnIndexes", ""); } if(motion_table_column_sizes && motion_table_column_sizes->size() > 0){ - toJsonArray((QList*)motion_table_column_sizes, obj, "motionTableColumnSizes", "qint32"); + toJsonArray((QList*)motion_table_column_sizes, obj, "motionTableColumnSizes", ""); } return obj; diff --git a/swagger/sdrangel/code/qt5/client/SWGAPRSStation.cpp b/swagger/sdrangel/code/qt5/client/SWGAPRSStation.cpp new file mode 100644 index 000000000..b1dbe1ae4 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPRSStation.cpp @@ -0,0 +1,584 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGAPRSStation.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPRSStation::SWGAPRSStation(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPRSStation::SWGAPRSStation() { + callsign = nullptr; + m_callsign_isSet = false; + is_object = 0; + m_is_object_isSet = false; + reporting_station = nullptr; + m_reporting_station_isSet = false; + symbol = nullptr; + m_symbol_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; + course = 0.0f; + m_course_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + status = nullptr; + m_status_isSet = false; + comment = nullptr; + m_comment_isSet = false; + power_watts = 0.0f; + m_power_watts_isSet = false; + antenna_height = 0.0f; + m_antenna_height_isSet = false; + antenna_gain = 0.0f; + m_antenna_gain_isSet = false; + antenna_directivity = nullptr; + m_antenna_directivity_isSet = false; + radio_range = 0.0f; + m_radio_range_isSet = false; + has_weather = 0; + m_has_weather_isSet = false; + has_telemetry = 0; + m_has_telemetry_isSet = false; + telemetry_project_name = nullptr; + m_telemetry_project_name_isSet = false; + packets = 0; + m_packets_isSet = false; + last_packet_date_time = nullptr; + m_last_packet_date_time_isSet = false; +} + +SWGAPRSStation::~SWGAPRSStation() { + this->cleanup(); +} + +void +SWGAPRSStation::init() { + callsign = new QString(""); + m_callsign_isSet = false; + is_object = 0; + m_is_object_isSet = false; + reporting_station = new QString(""); + m_reporting_station_isSet = false; + symbol = new QString(""); + m_symbol_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; + course = 0.0f; + m_course_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + status = new QString(""); + m_status_isSet = false; + comment = new QString(""); + m_comment_isSet = false; + power_watts = 0.0f; + m_power_watts_isSet = false; + antenna_height = 0.0f; + m_antenna_height_isSet = false; + antenna_gain = 0.0f; + m_antenna_gain_isSet = false; + antenna_directivity = new QString(""); + m_antenna_directivity_isSet = false; + radio_range = 0.0f; + m_radio_range_isSet = false; + has_weather = 0; + m_has_weather_isSet = false; + has_telemetry = 0; + m_has_telemetry_isSet = false; + telemetry_project_name = new QString(""); + m_telemetry_project_name_isSet = false; + packets = 0; + m_packets_isSet = false; + last_packet_date_time = new QString(""); + m_last_packet_date_time_isSet = false; +} + +void +SWGAPRSStation::cleanup() { + if(callsign != nullptr) { + delete callsign; + } + + if(reporting_station != nullptr) { + delete reporting_station; + } + if(symbol != nullptr) { + delete symbol; + } + + + + + + if(status != nullptr) { + delete status; + } + if(comment != nullptr) { + delete comment; + } + + + + if(antenna_directivity != nullptr) { + delete antenna_directivity; + } + + + + if(telemetry_project_name != nullptr) { + delete telemetry_project_name; + } + + if(last_packet_date_time != nullptr) { + delete last_packet_date_time; + } +} + +SWGAPRSStation* +SWGAPRSStation::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPRSStation::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&callsign, pJson["callsign"], "QString", "QString"); + + ::SWGSDRangel::setValue(&is_object, pJson["isObject"], "qint32", ""); + + ::SWGSDRangel::setValue(&reporting_station, pJson["reportingStation"], "QString", "QString"); + + ::SWGSDRangel::setValue(&symbol, pJson["symbol"], "QString", "QString"); + + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + + ::SWGSDRangel::setValue(&course, pJson["course"], "float", ""); + + ::SWGSDRangel::setValue(&speed, pJson["speed"], "float", ""); + + ::SWGSDRangel::setValue(&status, pJson["status"], "QString", "QString"); + + ::SWGSDRangel::setValue(&comment, pJson["comment"], "QString", "QString"); + + ::SWGSDRangel::setValue(&power_watts, pJson["powerWatts"], "float", ""); + + ::SWGSDRangel::setValue(&antenna_height, pJson["antennaHeight"], "float", ""); + + ::SWGSDRangel::setValue(&antenna_gain, pJson["antennaGain"], "float", ""); + + ::SWGSDRangel::setValue(&antenna_directivity, pJson["antennaDirectivity"], "QString", "QString"); + + ::SWGSDRangel::setValue(&radio_range, pJson["radioRange"], "float", ""); + + ::SWGSDRangel::setValue(&has_weather, pJson["hasWeather"], "qint32", ""); + + ::SWGSDRangel::setValue(&has_telemetry, pJson["hasTelemetry"], "qint32", ""); + + ::SWGSDRangel::setValue(&telemetry_project_name, pJson["telemetryProjectName"], "QString", "QString"); + + ::SWGSDRangel::setValue(&packets, pJson["packets"], "qint32", ""); + + ::SWGSDRangel::setValue(&last_packet_date_time, pJson["lastPacketDateTime"], "QString", "QString"); + +} + +QString +SWGAPRSStation::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPRSStation::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(callsign != nullptr && *callsign != QString("")){ + toJsonValue(QString("callsign"), callsign, obj, QString("QString")); + } + if(m_is_object_isSet){ + obj->insert("isObject", QJsonValue(is_object)); + } + if(reporting_station != nullptr && *reporting_station != QString("")){ + toJsonValue(QString("reportingStation"), reporting_station, obj, QString("QString")); + } + if(symbol != nullptr && *symbol != QString("")){ + toJsonValue(QString("symbol"), symbol, obj, QString("QString")); + } + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_altitude_isSet){ + obj->insert("altitude", QJsonValue(altitude)); + } + if(m_course_isSet){ + obj->insert("course", QJsonValue(course)); + } + if(m_speed_isSet){ + obj->insert("speed", QJsonValue(speed)); + } + if(status != nullptr && *status != QString("")){ + toJsonValue(QString("status"), status, obj, QString("QString")); + } + if(comment != nullptr && *comment != QString("")){ + toJsonValue(QString("comment"), comment, obj, QString("QString")); + } + if(m_power_watts_isSet){ + obj->insert("powerWatts", QJsonValue(power_watts)); + } + if(m_antenna_height_isSet){ + obj->insert("antennaHeight", QJsonValue(antenna_height)); + } + if(m_antenna_gain_isSet){ + obj->insert("antennaGain", QJsonValue(antenna_gain)); + } + if(antenna_directivity != nullptr && *antenna_directivity != QString("")){ + toJsonValue(QString("antennaDirectivity"), antenna_directivity, obj, QString("QString")); + } + if(m_radio_range_isSet){ + obj->insert("radioRange", QJsonValue(radio_range)); + } + if(m_has_weather_isSet){ + obj->insert("hasWeather", QJsonValue(has_weather)); + } + if(m_has_telemetry_isSet){ + obj->insert("hasTelemetry", QJsonValue(has_telemetry)); + } + if(telemetry_project_name != nullptr && *telemetry_project_name != QString("")){ + toJsonValue(QString("telemetryProjectName"), telemetry_project_name, obj, QString("QString")); + } + if(m_packets_isSet){ + obj->insert("packets", QJsonValue(packets)); + } + if(last_packet_date_time != nullptr && *last_packet_date_time != QString("")){ + toJsonValue(QString("lastPacketDateTime"), last_packet_date_time, obj, QString("QString")); + } + + return obj; +} + +QString* +SWGAPRSStation::getCallsign() { + return callsign; +} +void +SWGAPRSStation::setCallsign(QString* callsign) { + this->callsign = callsign; + this->m_callsign_isSet = true; +} + +qint32 +SWGAPRSStation::getIsObject() { + return is_object; +} +void +SWGAPRSStation::setIsObject(qint32 is_object) { + this->is_object = is_object; + this->m_is_object_isSet = true; +} + +QString* +SWGAPRSStation::getReportingStation() { + return reporting_station; +} +void +SWGAPRSStation::setReportingStation(QString* reporting_station) { + this->reporting_station = reporting_station; + this->m_reporting_station_isSet = true; +} + +QString* +SWGAPRSStation::getSymbol() { + return symbol; +} +void +SWGAPRSStation::setSymbol(QString* symbol) { + this->symbol = symbol; + this->m_symbol_isSet = true; +} + +float +SWGAPRSStation::getLatitude() { + return latitude; +} +void +SWGAPRSStation::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGAPRSStation::getLongitude() { + return longitude; +} +void +SWGAPRSStation::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGAPRSStation::getAltitude() { + return altitude; +} +void +SWGAPRSStation::setAltitude(float altitude) { + this->altitude = altitude; + this->m_altitude_isSet = true; +} + +float +SWGAPRSStation::getCourse() { + return course; +} +void +SWGAPRSStation::setCourse(float course) { + this->course = course; + this->m_course_isSet = true; +} + +float +SWGAPRSStation::getSpeed() { + return speed; +} +void +SWGAPRSStation::setSpeed(float speed) { + this->speed = speed; + this->m_speed_isSet = true; +} + +QString* +SWGAPRSStation::getStatus() { + return status; +} +void +SWGAPRSStation::setStatus(QString* status) { + this->status = status; + this->m_status_isSet = true; +} + +QString* +SWGAPRSStation::getComment() { + return comment; +} +void +SWGAPRSStation::setComment(QString* comment) { + this->comment = comment; + this->m_comment_isSet = true; +} + +float +SWGAPRSStation::getPowerWatts() { + return power_watts; +} +void +SWGAPRSStation::setPowerWatts(float power_watts) { + this->power_watts = power_watts; + this->m_power_watts_isSet = true; +} + +float +SWGAPRSStation::getAntennaHeight() { + return antenna_height; +} +void +SWGAPRSStation::setAntennaHeight(float antenna_height) { + this->antenna_height = antenna_height; + this->m_antenna_height_isSet = true; +} + +float +SWGAPRSStation::getAntennaGain() { + return antenna_gain; +} +void +SWGAPRSStation::setAntennaGain(float antenna_gain) { + this->antenna_gain = antenna_gain; + this->m_antenna_gain_isSet = true; +} + +QString* +SWGAPRSStation::getAntennaDirectivity() { + return antenna_directivity; +} +void +SWGAPRSStation::setAntennaDirectivity(QString* antenna_directivity) { + this->antenna_directivity = antenna_directivity; + this->m_antenna_directivity_isSet = true; +} + +float +SWGAPRSStation::getRadioRange() { + return radio_range; +} +void +SWGAPRSStation::setRadioRange(float radio_range) { + this->radio_range = radio_range; + this->m_radio_range_isSet = true; +} + +qint32 +SWGAPRSStation::getHasWeather() { + return has_weather; +} +void +SWGAPRSStation::setHasWeather(qint32 has_weather) { + this->has_weather = has_weather; + this->m_has_weather_isSet = true; +} + +qint32 +SWGAPRSStation::getHasTelemetry() { + return has_telemetry; +} +void +SWGAPRSStation::setHasTelemetry(qint32 has_telemetry) { + this->has_telemetry = has_telemetry; + this->m_has_telemetry_isSet = true; +} + +QString* +SWGAPRSStation::getTelemetryProjectName() { + return telemetry_project_name; +} +void +SWGAPRSStation::setTelemetryProjectName(QString* telemetry_project_name) { + this->telemetry_project_name = telemetry_project_name; + this->m_telemetry_project_name_isSet = true; +} + +qint32 +SWGAPRSStation::getPackets() { + return packets; +} +void +SWGAPRSStation::setPackets(qint32 packets) { + this->packets = packets; + this->m_packets_isSet = true; +} + +QString* +SWGAPRSStation::getLastPacketDateTime() { + return last_packet_date_time; +} +void +SWGAPRSStation::setLastPacketDateTime(QString* last_packet_date_time) { + this->last_packet_date_time = last_packet_date_time; + this->m_last_packet_date_time_isSet = true; +} + + +bool +SWGAPRSStation::isSet(){ + bool isObjectUpdated = false; + do{ + if(callsign && *callsign != QString("")){ + isObjectUpdated = true; break; + } + if(m_is_object_isSet){ + isObjectUpdated = true; break; + } + if(reporting_station && *reporting_station != QString("")){ + isObjectUpdated = true; break; + } + if(symbol && *symbol != QString("")){ + isObjectUpdated = true; break; + } + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_isSet){ + isObjectUpdated = true; break; + } + if(m_course_isSet){ + isObjectUpdated = true; break; + } + if(m_speed_isSet){ + isObjectUpdated = true; break; + } + if(status && *status != QString("")){ + isObjectUpdated = true; break; + } + if(comment && *comment != QString("")){ + isObjectUpdated = true; break; + } + if(m_power_watts_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_height_isSet){ + isObjectUpdated = true; break; + } + if(m_antenna_gain_isSet){ + isObjectUpdated = true; break; + } + if(antenna_directivity && *antenna_directivity != QString("")){ + isObjectUpdated = true; break; + } + if(m_radio_range_isSet){ + isObjectUpdated = true; break; + } + if(m_has_weather_isSet){ + isObjectUpdated = true; break; + } + if(m_has_telemetry_isSet){ + isObjectUpdated = true; break; + } + if(telemetry_project_name && *telemetry_project_name != QString("")){ + isObjectUpdated = true; break; + } + if(m_packets_isSet){ + isObjectUpdated = true; break; + } + if(last_packet_date_time && *last_packet_date_time != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPRSStation.h b/swagger/sdrangel/code/qt5/client/SWGAPRSStation.h new file mode 100644 index 000000000..b03f01b20 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPRSStation.h @@ -0,0 +1,179 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGAPRSStation.h + * + * Station or object heard by the APRS feature + */ + +#ifndef SWGAPRSStation_H_ +#define SWGAPRSStation_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPRSStation: public SWGObject { +public: + SWGAPRSStation(); + SWGAPRSStation(QString* json); + virtual ~SWGAPRSStation(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPRSStation* fromJson(QString &jsonString) override; + + QString* getCallsign(); + void setCallsign(QString* callsign); + + qint32 getIsObject(); + void setIsObject(qint32 is_object); + + QString* getReportingStation(); + void setReportingStation(QString* reporting_station); + + QString* getSymbol(); + void setSymbol(QString* symbol); + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAltitude(); + void setAltitude(float altitude); + + float getCourse(); + void setCourse(float course); + + float getSpeed(); + void setSpeed(float speed); + + QString* getStatus(); + void setStatus(QString* status); + + QString* getComment(); + void setComment(QString* comment); + + float getPowerWatts(); + void setPowerWatts(float power_watts); + + float getAntennaHeight(); + void setAntennaHeight(float antenna_height); + + float getAntennaGain(); + void setAntennaGain(float antenna_gain); + + QString* getAntennaDirectivity(); + void setAntennaDirectivity(QString* antenna_directivity); + + float getRadioRange(); + void setRadioRange(float radio_range); + + qint32 getHasWeather(); + void setHasWeather(qint32 has_weather); + + qint32 getHasTelemetry(); + void setHasTelemetry(qint32 has_telemetry); + + QString* getTelemetryProjectName(); + void setTelemetryProjectName(QString* telemetry_project_name); + + qint32 getPackets(); + void setPackets(qint32 packets); + + QString* getLastPacketDateTime(); + void setLastPacketDateTime(QString* last_packet_date_time); + + + virtual bool isSet() override; + +private: + QString* callsign; + bool m_callsign_isSet; + + qint32 is_object; + bool m_is_object_isSet; + + QString* reporting_station; + bool m_reporting_station_isSet; + + QString* symbol; + bool m_symbol_isSet; + + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float altitude; + bool m_altitude_isSet; + + float course; + bool m_course_isSet; + + float speed; + bool m_speed_isSet; + + QString* status; + bool m_status_isSet; + + QString* comment; + bool m_comment_isSet; + + float power_watts; + bool m_power_watts_isSet; + + float antenna_height; + bool m_antenna_height_isSet; + + float antenna_gain; + bool m_antenna_gain_isSet; + + QString* antenna_directivity; + bool m_antenna_directivity_isSet; + + float radio_range; + bool m_radio_range_isSet; + + qint32 has_weather; + bool m_has_weather_isSet; + + qint32 has_telemetry; + bool m_has_telemetry_isSet; + + QString* telemetry_project_name; + bool m_telemetry_project_name_isSet; + + qint32 packets; + bool m_packets_isSet; + + QString* last_packet_date_time; + bool m_last_packet_date_time_isSet; + +}; + +} + +#endif /* SWGAPRSStation_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp b/swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp index a99014d2f..4284ef13d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp @@ -46,6 +46,8 @@ SWGChannelReport::SWGChannelReport() { m_atv_mod_report_isSet = false; bfm_demod_report = nullptr; m_bfm_demod_report_isSet = false; + dab_demod_report = nullptr; + m_dab_demod_report_isSet = false; channel_power_report = nullptr; m_channel_power_report_isSet = false; chirp_chat_demod_report = nullptr; @@ -170,6 +172,8 @@ SWGChannelReport::init() { m_atv_mod_report_isSet = false; bfm_demod_report = new SWGBFMDemodReport(); m_bfm_demod_report_isSet = false; + dab_demod_report = new SWGDABDemodReport(); + m_dab_demod_report_isSet = false; channel_power_report = new SWGChannelPowerReport(); m_channel_power_report_isSet = false; chirp_chat_demod_report = new SWGChirpChatDemodReport(); @@ -297,6 +301,9 @@ SWGChannelReport::cleanup() { if(bfm_demod_report != nullptr) { delete bfm_demod_report; } + if(dab_demod_report != nullptr) { + delete dab_demod_report; + } if(channel_power_report != nullptr) { delete channel_power_report; } @@ -475,6 +482,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&bfm_demod_report, pJson["BFMDemodReport"], "SWGBFMDemodReport", "SWGBFMDemodReport"); + ::SWGSDRangel::setValue(&dab_demod_report, pJson["DABDemodReport"], "SWGDABDemodReport", "SWGDABDemodReport"); + ::SWGSDRangel::setValue(&channel_power_report, pJson["ChannelPowerReport"], "SWGChannelPowerReport", "SWGChannelPowerReport"); ::SWGSDRangel::setValue(&chirp_chat_demod_report, pJson["ChirpChatDemodReport"], "SWGChirpChatDemodReport", "SWGChirpChatDemodReport"); @@ -521,10 +530,10 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&meshtastic_demod_report, pJson["MeshtasticDemodReport"], "SWGMeshtasticDemodReport", "SWGMeshtasticDemodReport"); - ::SWGSDRangel::setValue(&meshcore_demod_report, pJson["MeshcoreDemodReport"], "SWGMeshcoreDemodReport", "SWGMeshcoreDemodReport"); - ::SWGSDRangel::setValue(&meshtastic_mod_report, pJson["MeshtasticModReport"], "SWGMeshtasticModReport", "SWGMeshtasticModReport"); + ::SWGSDRangel::setValue(&meshcore_demod_report, pJson["MeshcoreDemodReport"], "SWGMeshcoreDemodReport", "SWGMeshcoreDemodReport"); + ::SWGSDRangel::setValue(&meshcore_mod_report, pJson["MeshcoreModReport"], "SWGMeshcoreModReport", "SWGMeshcoreModReport"); ::SWGSDRangel::setValue(&navtex_demod_report, pJson["NavtexDemodReport"], "SWGNavtexDemodReport", "SWGNavtexDemodReport"); @@ -616,6 +625,9 @@ SWGChannelReport::asJsonObject() { if((bfm_demod_report != nullptr) && (bfm_demod_report->isSet())){ toJsonValue(QString("BFMDemodReport"), bfm_demod_report, obj, QString("SWGBFMDemodReport")); } + if((dab_demod_report != nullptr) && (dab_demod_report->isSet())){ + toJsonValue(QString("DABDemodReport"), dab_demod_report, obj, QString("SWGDABDemodReport")); + } if((channel_power_report != nullptr) && (channel_power_report->isSet())){ toJsonValue(QString("ChannelPowerReport"), channel_power_report, obj, QString("SWGChannelPowerReport")); } @@ -685,12 +697,12 @@ SWGChannelReport::asJsonObject() { if((meshtastic_demod_report != nullptr) && (meshtastic_demod_report->isSet())){ toJsonValue(QString("MeshtasticDemodReport"), meshtastic_demod_report, obj, QString("SWGMeshtasticDemodReport")); } - if((meshcore_demod_report != nullptr) && (meshcore_demod_report->isSet())){ - toJsonValue(QString("MeshcoreDemodReport"), meshcore_demod_report, obj, QString("SWGMeshcoreDemodReport")); - } if((meshtastic_mod_report != nullptr) && (meshtastic_mod_report->isSet())){ toJsonValue(QString("MeshtasticModReport"), meshtastic_mod_report, obj, QString("SWGMeshtasticModReport")); } + if((meshcore_demod_report != nullptr) && (meshcore_demod_report->isSet())){ + toJsonValue(QString("MeshcoreDemodReport"), meshcore_demod_report, obj, QString("SWGMeshcoreDemodReport")); + } if((meshcore_mod_report != nullptr) && (meshcore_mod_report->isSet())){ toJsonValue(QString("MeshcoreModReport"), meshcore_mod_report, obj, QString("SWGMeshcoreModReport")); } @@ -857,6 +869,16 @@ SWGChannelReport::setBfmDemodReport(SWGBFMDemodReport* bfm_demod_report) { this->m_bfm_demod_report_isSet = true; } +SWGDABDemodReport* +SWGChannelReport::getDabDemodReport() { + return dab_demod_report; +} +void +SWGChannelReport::setDabDemodReport(SWGDABDemodReport* dab_demod_report) { + this->dab_demod_report = dab_demod_report; + this->m_dab_demod_report_isSet = true; +} + SWGChannelPowerReport* SWGChannelReport::getChannelPowerReport() { return channel_power_report; @@ -1379,6 +1401,9 @@ SWGChannelReport::isSet(){ if(bfm_demod_report && bfm_demod_report->isSet()){ isObjectUpdated = true; break; } + if(dab_demod_report && dab_demod_report->isSet()){ + isObjectUpdated = true; break; + } if(channel_power_report && channel_power_report->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelReport.h b/swagger/sdrangel/code/qt5/client/SWGChannelReport.h index a2bc37353..59596bd74 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGChannelReport.h @@ -32,6 +32,7 @@ #include "SWGChannelPowerReport.h" #include "SWGChirpChatDemodReport.h" #include "SWGChirpChatModReport.h" +#include "SWGDABDemodReport.h" #include "SWGDATVDemodReport.h" #include "SWGDATVModReport.h" #include "SWGDOA2Report.h" @@ -51,10 +52,10 @@ #include "SWGInmarsatDemodReport.h" #include "SWGM17DemodReport.h" #include "SWGM17ModReport.h" -#include "SWGMeshtasticDemodReport.h" -#include "SWGMeshtasticModReport.h" #include "SWGMeshcoreDemodReport.h" #include "SWGMeshcoreModReport.h" +#include "SWGMeshtasticDemodReport.h" +#include "SWGMeshtasticModReport.h" #include "SWGNFMDemodReport.h" #include "SWGNFMModReport.h" #include "SWGNavtexDemodReport.h" @@ -125,6 +126,9 @@ public: SWGBFMDemodReport* getBfmDemodReport(); void setBfmDemodReport(SWGBFMDemodReport* bfm_demod_report); + SWGDABDemodReport* getDabDemodReport(); + void setDabDemodReport(SWGDABDemodReport* dab_demod_report); + SWGChannelPowerReport* getChannelPowerReport(); void setChannelPowerReport(SWGChannelPowerReport* channel_power_report); @@ -303,6 +307,9 @@ private: SWGBFMDemodReport* bfm_demod_report; bool m_bfm_demod_report_isSet; + SWGDABDemodReport* dab_demod_report; + bool m_dab_demod_report_isSet; + SWGChannelPowerReport* channel_power_report; bool m_channel_power_report_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp index 0f88ae1de..0247995c2 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp @@ -617,10 +617,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&meshtastic_demod_settings, pJson["MeshtasticDemodSettings"], "SWGMeshtasticDemodSettings", "SWGMeshtasticDemodSettings"); - ::SWGSDRangel::setValue(&meshcore_demod_settings, pJson["MeshcoreDemodSettings"], "SWGMeshcoreDemodSettings", "SWGMeshcoreDemodSettings"); - ::SWGSDRangel::setValue(&meshtastic_mod_settings, pJson["MeshtasticModSettings"], "SWGMeshtasticModSettings", "SWGMeshtasticModSettings"); + ::SWGSDRangel::setValue(&meshcore_demod_settings, pJson["MeshcoreDemodSettings"], "SWGMeshcoreDemodSettings", "SWGMeshcoreDemodSettings"); + ::SWGSDRangel::setValue(&meshcore_mod_settings, pJson["MeshcoreModSettings"], "SWGMeshcoreModSettings", "SWGMeshcoreModSettings"); ::SWGSDRangel::setValue(&navtex_demod_settings, pJson["NavtexDemodSettings"], "SWGNavtexDemodSettings", "SWGNavtexDemodSettings"); @@ -813,12 +813,12 @@ SWGChannelSettings::asJsonObject() { if((meshtastic_demod_settings != nullptr) && (meshtastic_demod_settings->isSet())){ toJsonValue(QString("MeshtasticDemodSettings"), meshtastic_demod_settings, obj, QString("SWGMeshtasticDemodSettings")); } - if((meshcore_demod_settings != nullptr) && (meshcore_demod_settings->isSet())){ - toJsonValue(QString("MeshcoreDemodSettings"), meshcore_demod_settings, obj, QString("SWGMeshcoreDemodSettings")); - } if((meshtastic_mod_settings != nullptr) && (meshtastic_mod_settings->isSet())){ toJsonValue(QString("MeshtasticModSettings"), meshtastic_mod_settings, obj, QString("SWGMeshtasticModSettings")); } + if((meshcore_demod_settings != nullptr) && (meshcore_demod_settings->isSet())){ + toJsonValue(QString("MeshcoreDemodSettings"), meshcore_demod_settings, obj, QString("SWGMeshcoreDemodSettings")); + } if((meshcore_mod_settings != nullptr) && (meshcore_mod_settings->isSet())){ toJsonValue(QString("MeshcoreModSettings"), meshcore_mod_settings, obj, QString("SWGMeshcoreModSettings")); } diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h index 4f7edd2ee..9cc730aa1 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h @@ -59,10 +59,10 @@ #include "SWGLocalSourceSettings.h" #include "SWGM17DemodSettings.h" #include "SWGM17ModSettings.h" -#include "SWGMeshtasticDemodSettings.h" -#include "SWGMeshtasticModSettings.h" #include "SWGMeshcoreDemodSettings.h" #include "SWGMeshcoreModSettings.h" +#include "SWGMeshtasticDemodSettings.h" +#include "SWGMeshtasticModSettings.h" #include "SWGNFMDemodSettings.h" #include "SWGNFMModSettings.h" #include "SWGNavtexDemodSettings.h" diff --git a/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.cpp b/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.cpp new file mode 100644 index 000000000..0a7ad3b76 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.cpp @@ -0,0 +1,586 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGDABDemodReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGDABDemodReport::SWGDABDemodReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGDABDemodReport::SWGDABDemodReport() { + channel_power_db = 0.0f; + m_channel_power_db_isSet = false; + channel_sample_rate = 0; + m_channel_sample_rate_isSet = false; + audio_sample_rate = 0; + m_audio_sample_rate_isSet = false; + sync = 0; + m_sync_isSet = false; + snr = 0; + m_snr_isSet = false; + frequency_offset = 0; + m_frequency_offset_isSet = false; + ensemble_name = nullptr; + m_ensemble_name_isSet = false; + ensemble_id = 0; + m_ensemble_id_isSet = false; + programs = nullptr; + m_programs_isSet = false; + selected_program = nullptr; + m_selected_program_isSet = false; + audio_active = 0; + m_audio_active_isSet = false; + bitrate = 0; + m_bitrate_isSet = false; + audio = nullptr; + m_audio_isSet = false; + language = nullptr; + m_language_isSet = false; + program_type = nullptr; + m_program_type_isSet = false; + frame_quality = 0; + m_frame_quality_isSet = false; + reed_solomon_quality = 0; + m_reed_solomon_quality_isSet = false; + aac_quality = 0; + m_aac_quality_isSet = false; + fib_quality = 0; + m_fib_quality_isSet = false; + tii = 0; + m_tii_isSet = false; + data = nullptr; + m_data_isSet = false; +} + +SWGDABDemodReport::~SWGDABDemodReport() { + this->cleanup(); +} + +void +SWGDABDemodReport::init() { + channel_power_db = 0.0f; + m_channel_power_db_isSet = false; + channel_sample_rate = 0; + m_channel_sample_rate_isSet = false; + audio_sample_rate = 0; + m_audio_sample_rate_isSet = false; + sync = 0; + m_sync_isSet = false; + snr = 0; + m_snr_isSet = false; + frequency_offset = 0; + m_frequency_offset_isSet = false; + ensemble_name = new QString(""); + m_ensemble_name_isSet = false; + ensemble_id = 0; + m_ensemble_id_isSet = false; + programs = new QList(); + m_programs_isSet = false; + selected_program = new QString(""); + m_selected_program_isSet = false; + audio_active = 0; + m_audio_active_isSet = false; + bitrate = 0; + m_bitrate_isSet = false; + audio = new QString(""); + m_audio_isSet = false; + language = new QString(""); + m_language_isSet = false; + program_type = new QString(""); + m_program_type_isSet = false; + frame_quality = 0; + m_frame_quality_isSet = false; + reed_solomon_quality = 0; + m_reed_solomon_quality_isSet = false; + aac_quality = 0; + m_aac_quality_isSet = false; + fib_quality = 0; + m_fib_quality_isSet = false; + tii = 0; + m_tii_isSet = false; + data = new QString(""); + m_data_isSet = false; +} + +void +SWGDABDemodReport::cleanup() { + + + + + + + if(ensemble_name != nullptr) { + delete ensemble_name; + } + + if(programs != nullptr) { + auto arr = programs; + for(auto o: *arr) { + delete o; + } + delete programs; + } + if(selected_program != nullptr) { + delete selected_program; + } + + + if(audio != nullptr) { + delete audio; + } + if(language != nullptr) { + delete language; + } + if(program_type != nullptr) { + delete program_type; + } + + + + + + if(data != nullptr) { + delete data; + } +} + +SWGDABDemodReport* +SWGDABDemodReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGDABDemodReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&channel_power_db, pJson["channelPowerDB"], "float", ""); + + ::SWGSDRangel::setValue(&channel_sample_rate, pJson["channelSampleRate"], "qint32", ""); + + ::SWGSDRangel::setValue(&audio_sample_rate, pJson["audioSampleRate"], "qint32", ""); + + ::SWGSDRangel::setValue(&sync, pJson["sync"], "qint32", ""); + + ::SWGSDRangel::setValue(&snr, pJson["snr"], "qint32", ""); + + ::SWGSDRangel::setValue(&frequency_offset, pJson["frequencyOffset"], "qint32", ""); + + ::SWGSDRangel::setValue(&ensemble_name, pJson["ensembleName"], "QString", "QString"); + + ::SWGSDRangel::setValue(&ensemble_id, pJson["ensembleId"], "qint32", ""); + + + ::SWGSDRangel::setValue(&programs, pJson["programs"], "QList", "SWGDABProgram"); + ::SWGSDRangel::setValue(&selected_program, pJson["selectedProgram"], "QString", "QString"); + + ::SWGSDRangel::setValue(&audio_active, pJson["audioActive"], "qint32", ""); + + ::SWGSDRangel::setValue(&bitrate, pJson["bitrate"], "qint32", ""); + + ::SWGSDRangel::setValue(&audio, pJson["audio"], "QString", "QString"); + + ::SWGSDRangel::setValue(&language, pJson["language"], "QString", "QString"); + + ::SWGSDRangel::setValue(&program_type, pJson["programType"], "QString", "QString"); + + ::SWGSDRangel::setValue(&frame_quality, pJson["frameQuality"], "qint32", ""); + + ::SWGSDRangel::setValue(&reed_solomon_quality, pJson["reedSolomonQuality"], "qint32", ""); + + ::SWGSDRangel::setValue(&aac_quality, pJson["aacQuality"], "qint32", ""); + + ::SWGSDRangel::setValue(&fib_quality, pJson["fibQuality"], "qint32", ""); + + ::SWGSDRangel::setValue(&tii, pJson["tii"], "qint32", ""); + + ::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString"); + +} + +QString +SWGDABDemodReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGDABDemodReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_channel_power_db_isSet){ + obj->insert("channelPowerDB", QJsonValue(channel_power_db)); + } + if(m_channel_sample_rate_isSet){ + obj->insert("channelSampleRate", QJsonValue(channel_sample_rate)); + } + if(m_audio_sample_rate_isSet){ + obj->insert("audioSampleRate", QJsonValue(audio_sample_rate)); + } + if(m_sync_isSet){ + obj->insert("sync", QJsonValue(sync)); + } + if(m_snr_isSet){ + obj->insert("snr", QJsonValue(snr)); + } + if(m_frequency_offset_isSet){ + obj->insert("frequencyOffset", QJsonValue(frequency_offset)); + } + if(ensemble_name != nullptr && *ensemble_name != QString("")){ + toJsonValue(QString("ensembleName"), ensemble_name, obj, QString("QString")); + } + if(m_ensemble_id_isSet){ + obj->insert("ensembleId", QJsonValue(ensemble_id)); + } + if(programs && programs->size() > 0){ + toJsonArray((QList*)programs, obj, "programs", "SWGDABProgram"); + } + if(selected_program != nullptr && *selected_program != QString("")){ + toJsonValue(QString("selectedProgram"), selected_program, obj, QString("QString")); + } + if(m_audio_active_isSet){ + obj->insert("audioActive", QJsonValue(audio_active)); + } + if(m_bitrate_isSet){ + obj->insert("bitrate", QJsonValue(bitrate)); + } + if(audio != nullptr && *audio != QString("")){ + toJsonValue(QString("audio"), audio, obj, QString("QString")); + } + if(language != nullptr && *language != QString("")){ + toJsonValue(QString("language"), language, obj, QString("QString")); + } + if(program_type != nullptr && *program_type != QString("")){ + toJsonValue(QString("programType"), program_type, obj, QString("QString")); + } + if(m_frame_quality_isSet){ + obj->insert("frameQuality", QJsonValue(frame_quality)); + } + if(m_reed_solomon_quality_isSet){ + obj->insert("reedSolomonQuality", QJsonValue(reed_solomon_quality)); + } + if(m_aac_quality_isSet){ + obj->insert("aacQuality", QJsonValue(aac_quality)); + } + if(m_fib_quality_isSet){ + obj->insert("fibQuality", QJsonValue(fib_quality)); + } + if(m_tii_isSet){ + obj->insert("tii", QJsonValue(tii)); + } + if(data != nullptr && *data != QString("")){ + toJsonValue(QString("data"), data, obj, QString("QString")); + } + + return obj; +} + +float +SWGDABDemodReport::getChannelPowerDb() { + return channel_power_db; +} +void +SWGDABDemodReport::setChannelPowerDb(float channel_power_db) { + this->channel_power_db = channel_power_db; + this->m_channel_power_db_isSet = true; +} + +qint32 +SWGDABDemodReport::getChannelSampleRate() { + return channel_sample_rate; +} +void +SWGDABDemodReport::setChannelSampleRate(qint32 channel_sample_rate) { + this->channel_sample_rate = channel_sample_rate; + this->m_channel_sample_rate_isSet = true; +} + +qint32 +SWGDABDemodReport::getAudioSampleRate() { + return audio_sample_rate; +} +void +SWGDABDemodReport::setAudioSampleRate(qint32 audio_sample_rate) { + this->audio_sample_rate = audio_sample_rate; + this->m_audio_sample_rate_isSet = true; +} + +qint32 +SWGDABDemodReport::getSync() { + return sync; +} +void +SWGDABDemodReport::setSync(qint32 sync) { + this->sync = sync; + this->m_sync_isSet = true; +} + +qint32 +SWGDABDemodReport::getSnr() { + return snr; +} +void +SWGDABDemodReport::setSnr(qint32 snr) { + this->snr = snr; + this->m_snr_isSet = true; +} + +qint32 +SWGDABDemodReport::getFrequencyOffset() { + return frequency_offset; +} +void +SWGDABDemodReport::setFrequencyOffset(qint32 frequency_offset) { + this->frequency_offset = frequency_offset; + this->m_frequency_offset_isSet = true; +} + +QString* +SWGDABDemodReport::getEnsembleName() { + return ensemble_name; +} +void +SWGDABDemodReport::setEnsembleName(QString* ensemble_name) { + this->ensemble_name = ensemble_name; + this->m_ensemble_name_isSet = true; +} + +qint32 +SWGDABDemodReport::getEnsembleId() { + return ensemble_id; +} +void +SWGDABDemodReport::setEnsembleId(qint32 ensemble_id) { + this->ensemble_id = ensemble_id; + this->m_ensemble_id_isSet = true; +} + +QList* +SWGDABDemodReport::getPrograms() { + return programs; +} +void +SWGDABDemodReport::setPrograms(QList* programs) { + this->programs = programs; + this->m_programs_isSet = true; +} + +QString* +SWGDABDemodReport::getSelectedProgram() { + return selected_program; +} +void +SWGDABDemodReport::setSelectedProgram(QString* selected_program) { + this->selected_program = selected_program; + this->m_selected_program_isSet = true; +} + +qint32 +SWGDABDemodReport::getAudioActive() { + return audio_active; +} +void +SWGDABDemodReport::setAudioActive(qint32 audio_active) { + this->audio_active = audio_active; + this->m_audio_active_isSet = true; +} + +qint32 +SWGDABDemodReport::getBitrate() { + return bitrate; +} +void +SWGDABDemodReport::setBitrate(qint32 bitrate) { + this->bitrate = bitrate; + this->m_bitrate_isSet = true; +} + +QString* +SWGDABDemodReport::getAudio() { + return audio; +} +void +SWGDABDemodReport::setAudio(QString* audio) { + this->audio = audio; + this->m_audio_isSet = true; +} + +QString* +SWGDABDemodReport::getLanguage() { + return language; +} +void +SWGDABDemodReport::setLanguage(QString* language) { + this->language = language; + this->m_language_isSet = true; +} + +QString* +SWGDABDemodReport::getProgramType() { + return program_type; +} +void +SWGDABDemodReport::setProgramType(QString* program_type) { + this->program_type = program_type; + this->m_program_type_isSet = true; +} + +qint32 +SWGDABDemodReport::getFrameQuality() { + return frame_quality; +} +void +SWGDABDemodReport::setFrameQuality(qint32 frame_quality) { + this->frame_quality = frame_quality; + this->m_frame_quality_isSet = true; +} + +qint32 +SWGDABDemodReport::getReedSolomonQuality() { + return reed_solomon_quality; +} +void +SWGDABDemodReport::setReedSolomonQuality(qint32 reed_solomon_quality) { + this->reed_solomon_quality = reed_solomon_quality; + this->m_reed_solomon_quality_isSet = true; +} + +qint32 +SWGDABDemodReport::getAacQuality() { + return aac_quality; +} +void +SWGDABDemodReport::setAacQuality(qint32 aac_quality) { + this->aac_quality = aac_quality; + this->m_aac_quality_isSet = true; +} + +qint32 +SWGDABDemodReport::getFibQuality() { + return fib_quality; +} +void +SWGDABDemodReport::setFibQuality(qint32 fib_quality) { + this->fib_quality = fib_quality; + this->m_fib_quality_isSet = true; +} + +qint32 +SWGDABDemodReport::getTii() { + return tii; +} +void +SWGDABDemodReport::setTii(qint32 tii) { + this->tii = tii; + this->m_tii_isSet = true; +} + +QString* +SWGDABDemodReport::getData() { + return data; +} +void +SWGDABDemodReport::setData(QString* data) { + this->data = data; + this->m_data_isSet = true; +} + + +bool +SWGDABDemodReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_channel_power_db_isSet){ + isObjectUpdated = true; break; + } + if(m_channel_sample_rate_isSet){ + isObjectUpdated = true; break; + } + if(m_audio_sample_rate_isSet){ + isObjectUpdated = true; break; + } + if(m_sync_isSet){ + isObjectUpdated = true; break; + } + if(m_snr_isSet){ + isObjectUpdated = true; break; + } + if(m_frequency_offset_isSet){ + isObjectUpdated = true; break; + } + if(ensemble_name && *ensemble_name != QString("")){ + isObjectUpdated = true; break; + } + if(m_ensemble_id_isSet){ + isObjectUpdated = true; break; + } + if(programs && (programs->size() > 0)){ + isObjectUpdated = true; break; + } + if(selected_program && *selected_program != QString("")){ + isObjectUpdated = true; break; + } + if(m_audio_active_isSet){ + isObjectUpdated = true; break; + } + if(m_bitrate_isSet){ + isObjectUpdated = true; break; + } + if(audio && *audio != QString("")){ + isObjectUpdated = true; break; + } + if(language && *language != QString("")){ + isObjectUpdated = true; break; + } + if(program_type && *program_type != QString("")){ + isObjectUpdated = true; break; + } + if(m_frame_quality_isSet){ + isObjectUpdated = true; break; + } + if(m_reed_solomon_quality_isSet){ + isObjectUpdated = true; break; + } + if(m_aac_quality_isSet){ + isObjectUpdated = true; break; + } + if(m_fib_quality_isSet){ + isObjectUpdated = true; break; + } + if(m_tii_isSet){ + isObjectUpdated = true; break; + } + if(data && *data != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.h b/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.h new file mode 100644 index 000000000..3508f681f --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGDABDemodReport.h @@ -0,0 +1,181 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGDABDemodReport.h + * + * Live DAB demodulator, ensemble and selected-programme status. Synchronization, discovered programmes and active audio do not by themselves prove clean reception; check SNR after selecting a programme and after every receiver gain change. + */ + +#ifndef SWGDABDemodReport_H_ +#define SWGDABDemodReport_H_ + +#include + + +#include "SWGDABProgram.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGDABDemodReport: public SWGObject { +public: + SWGDABDemodReport(); + SWGDABDemodReport(QString* json); + virtual ~SWGDABDemodReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGDABDemodReport* fromJson(QString &jsonString) override; + + float getChannelPowerDb(); + void setChannelPowerDb(float channel_power_db); + + qint32 getChannelSampleRate(); + void setChannelSampleRate(qint32 channel_sample_rate); + + qint32 getAudioSampleRate(); + void setAudioSampleRate(qint32 audio_sample_rate); + + qint32 getSync(); + void setSync(qint32 sync); + + qint32 getSnr(); + void setSnr(qint32 snr); + + qint32 getFrequencyOffset(); + void setFrequencyOffset(qint32 frequency_offset); + + QString* getEnsembleName(); + void setEnsembleName(QString* ensemble_name); + + qint32 getEnsembleId(); + void setEnsembleId(qint32 ensemble_id); + + QList* getPrograms(); + void setPrograms(QList* programs); + + QString* getSelectedProgram(); + void setSelectedProgram(QString* selected_program); + + qint32 getAudioActive(); + void setAudioActive(qint32 audio_active); + + qint32 getBitrate(); + void setBitrate(qint32 bitrate); + + QString* getAudio(); + void setAudio(QString* audio); + + QString* getLanguage(); + void setLanguage(QString* language); + + QString* getProgramType(); + void setProgramType(QString* program_type); + + qint32 getFrameQuality(); + void setFrameQuality(qint32 frame_quality); + + qint32 getReedSolomonQuality(); + void setReedSolomonQuality(qint32 reed_solomon_quality); + + qint32 getAacQuality(); + void setAacQuality(qint32 aac_quality); + + qint32 getFibQuality(); + void setFibQuality(qint32 fib_quality); + + qint32 getTii(); + void setTii(qint32 tii); + + QString* getData(); + void setData(QString* data); + + + virtual bool isSet() override; + +private: + float channel_power_db; + bool m_channel_power_db_isSet; + + qint32 channel_sample_rate; + bool m_channel_sample_rate_isSet; + + qint32 audio_sample_rate; + bool m_audio_sample_rate_isSet; + + qint32 sync; + bool m_sync_isSet; + + qint32 snr; + bool m_snr_isSet; + + qint32 frequency_offset; + bool m_frequency_offset_isSet; + + QString* ensemble_name; + bool m_ensemble_name_isSet; + + qint32 ensemble_id; + bool m_ensemble_id_isSet; + + QList* programs; + bool m_programs_isSet; + + QString* selected_program; + bool m_selected_program_isSet; + + qint32 audio_active; + bool m_audio_active_isSet; + + qint32 bitrate; + bool m_bitrate_isSet; + + QString* audio; + bool m_audio_isSet; + + QString* language; + bool m_language_isSet; + + QString* program_type; + bool m_program_type_isSet; + + qint32 frame_quality; + bool m_frame_quality_isSet; + + qint32 reed_solomon_quality; + bool m_reed_solomon_quality_isSet; + + qint32 aac_quality; + bool m_aac_quality_isSet; + + qint32 fib_quality; + bool m_fib_quality_isSet; + + qint32 tii; + bool m_tii_isSet; + + QString* data; + bool m_data_isSet; + +}; + +} + +#endif /* SWGDABDemodReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGDABProgram.cpp b/swagger/sdrangel/code/qt5/client/SWGDABProgram.cpp new file mode 100644 index 000000000..cb73d08fc --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGDABProgram.cpp @@ -0,0 +1,133 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGDABProgram.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGDABProgram::SWGDABProgram(QString* json) { + init(); + this->fromJson(*json); +} + +SWGDABProgram::SWGDABProgram() { + name = nullptr; + m_name_isSet = false; + id = 0; + m_id_isSet = false; +} + +SWGDABProgram::~SWGDABProgram() { + this->cleanup(); +} + +void +SWGDABProgram::init() { + name = new QString(""); + m_name_isSet = false; + id = 0; + m_id_isSet = false; +} + +void +SWGDABProgram::cleanup() { + if(name != nullptr) { + delete name; + } + +} + +SWGDABProgram* +SWGDABProgram::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGDABProgram::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&name, pJson["name"], "QString", "QString"); + + ::SWGSDRangel::setValue(&id, pJson["id"], "qint32", ""); + +} + +QString +SWGDABProgram::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGDABProgram::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(name != nullptr && *name != QString("")){ + toJsonValue(QString("name"), name, obj, QString("QString")); + } + if(m_id_isSet){ + obj->insert("id", QJsonValue(id)); + } + + return obj; +} + +QString* +SWGDABProgram::getName() { + return name; +} +void +SWGDABProgram::setName(QString* name) { + this->name = name; + this->m_name_isSet = true; +} + +qint32 +SWGDABProgram::getId() { + return id; +} +void +SWGDABProgram::setId(qint32 id) { + this->id = id; + this->m_id_isSet = true; +} + + +bool +SWGDABProgram::isSet(){ + bool isObjectUpdated = false; + do{ + if(name && *name != QString("")){ + isObjectUpdated = true; break; + } + if(m_id_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGDABProgram.h b/swagger/sdrangel/code/qt5/client/SWGDABProgram.h new file mode 100644 index 000000000..0e26e60aa --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGDABProgram.h @@ -0,0 +1,65 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGDABProgram.h + * + * A programme service discovered in the currently tuned DAB ensemble. + */ + +#ifndef SWGDABProgram_H_ +#define SWGDABProgram_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGDABProgram: public SWGObject { +public: + SWGDABProgram(); + SWGDABProgram(QString* json); + virtual ~SWGDABProgram(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGDABProgram* fromJson(QString &jsonString) override; + + QString* getName(); + void setName(QString* name); + + qint32 getId(); + void setId(qint32 id); + + + virtual bool isSet() override; + +private: + QString* name; + bool m_name_isSet; + + qint32 id; + bool m_id_isSet; + +}; + +} + +#endif /* SWGDABProgram_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp index 46230ed91..835296669 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp @@ -1442,6 +1442,388 @@ SWGDeviceSetApi::devicesetGetCallback(SWGHttpRequestWorker * worker) { } } +void +SWGDeviceSetApi::devicesetSpectrumActionsPost(qint32 device_set_index, SWGSpectrumActions& body) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/actions"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "POST"); + + + + QString output = body.asJson(); + input.request_body.append(output.toUtf8()); + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumActionsPostCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumActionsPostCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGSuccessResponse* output = static_cast(create(json, QString("SWGSuccessResponse"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumActionsPostSignal(output); + } else { + emit devicesetSpectrumActionsPostSignalE(output, error_type, error_str); + emit devicesetSpectrumActionsPostSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDeviceSetApi::devicesetSpectrumDataGet(qint32 device_set_index, qint32 bins, qint64 start_frequency, qint64 stop_frequency, QString* reduce) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/data"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("bins")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(bins))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("startFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(start_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("stopFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(stop_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("reduce")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(reduce))); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumDataGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumDataGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGGLSpectrumData* output = static_cast(create(json, QString("SWGGLSpectrumData"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumDataGetSignal(output); + } else { + emit devicesetSpectrumDataGetSignalE(output, error_type, error_str); + emit devicesetSpectrumDataGetSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, qint32 threshold) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/history"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("seconds")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(seconds))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("bins")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(bins))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("startFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(start_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("stopFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(stop_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("threshold")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(threshold))); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGGLSpectrumHistory* output = static_cast(create(json, QString("SWGGLSpectrumHistory"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumHistoryGetSignal(output); + } else { + emit devicesetSpectrumHistoryGetSignalE(output, error_type, error_str); + emit devicesetSpectrumHistoryGetSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryImageGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("seconds")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(seconds))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("bins")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(bins))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("rows")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(rows))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("startFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(start_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("stopFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(stop_frequency))); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumHistoryImageGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryImageGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumHistoryImageGetSignal(); + } else { + emit devicesetSpectrumHistoryImageGetSignalE(error_type, error_str); + emit devicesetSpectrumHistoryImageGetSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDeviceSetApi::devicesetSpectrumReportGet(qint32 device_set_index) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumReportGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumReportGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGGLSpectrumReport* output = static_cast(create(json, QString("SWGGLSpectrumReport"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumReportGetSignal(output); + } else { + emit devicesetSpectrumReportGetSignalE(output, error_type, error_str); + emit devicesetSpectrumReportGetSignalEFull(worker, error_type, error_str); + } +} + void SWGDeviceSetApi::devicesetSpectrumServerDelete(qint32 device_set_index) { QString fullPath; diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h index 81ac095eb..b46e88985 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h @@ -15,6 +15,7 @@ #include "SWGHttpRequest.h" +#include #include "SWGChannelActions.h" #include "SWGChannelReport.h" #include "SWGChannelSettings.h" @@ -27,6 +28,10 @@ #include "SWGDeviceState.h" #include "SWGErrorResponse.h" #include "SWGGLSpectrum.h" +#include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" +#include "SWGGLSpectrumReport.h" +#include "SWGSpectrumActions.h" #include "SWGSpectrumServer.h" #include "SWGSuccessResponse.h" #include "SWGWorkspaceInfo.h" @@ -72,6 +77,11 @@ public: void devicesetDeviceWorkspaceGet(qint32 device_set_index); void devicesetDeviceWorkspacePut(qint32 device_set_index, SWGWorkspaceInfo& body); void devicesetGet(qint32 device_set_index); + void devicesetSpectrumActionsPost(qint32 device_set_index, SWGSpectrumActions& body); + void devicesetSpectrumDataGet(qint32 device_set_index, qint32 bins, qint64 start_frequency, qint64 stop_frequency, QString* reduce); + void devicesetSpectrumHistoryGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, qint32 threshold); + void devicesetSpectrumHistoryImageGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency); + void devicesetSpectrumReportGet(qint32 device_set_index); void devicesetSpectrumServerDelete(qint32 device_set_index); void devicesetSpectrumServerGet(qint32 device_set_index); void devicesetSpectrumServerPost(qint32 device_set_index); @@ -109,6 +119,11 @@ private: void devicesetDeviceWorkspaceGetCallback (SWGHttpRequestWorker * worker); void devicesetDeviceWorkspacePutCallback (SWGHttpRequestWorker * worker); void devicesetGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumActionsPostCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumDataGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumHistoryGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumHistoryImageGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumReportGetCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumServerDeleteCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumServerGetCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumServerPostCallback (SWGHttpRequestWorker * worker); @@ -146,6 +161,11 @@ signals: void devicesetDeviceWorkspaceGetSignal(SWGWorkspaceInfo* summary); void devicesetDeviceWorkspacePutSignal(SWGSuccessResponse* summary); void devicesetGetSignal(SWGDeviceSet* summary); + void devicesetSpectrumActionsPostSignal(SWGSuccessResponse* summary); + void devicesetSpectrumDataGetSignal(SWGGLSpectrumData* summary); + void devicesetSpectrumHistoryGetSignal(SWGGLSpectrumHistory* summary); + void devicesetSpectrumHistoryImageGetSignal(); + void devicesetSpectrumReportGetSignal(SWGGLSpectrumReport* summary); void devicesetSpectrumServerDeleteSignal(SWGSuccessResponse* summary); void devicesetSpectrumServerGetSignal(SWGSpectrumServer* summary); void devicesetSpectrumServerPostSignal(SWGSuccessResponse* summary); @@ -182,6 +202,11 @@ signals: void devicesetDeviceWorkspaceGetSignalE(SWGWorkspaceInfo* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceWorkspacePutSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetGetSignalE(SWGDeviceSet* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumDataGetSignalE(SWGGLSpectrumData* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryGetSignalE(SWGGLSpectrumHistory* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryImageGetSignalE(QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumReportGetSignalE(SWGGLSpectrumReport* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerDeleteSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerGetSignalE(SWGSpectrumServer* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -218,6 +243,11 @@ signals: void devicesetDeviceWorkspaceGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceWorkspacePutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumDataGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryImageGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp index f3aaa31d7..b0607604c 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp @@ -50,6 +50,8 @@ SWGFeatureActions::SWGFeatureActions() { m_per_tester_actions_isSet = false; rig_ctl_server_actions = nullptr; m_rig_ctl_server_actions_isSet = false; + mcp_server_actions = nullptr; + m_mcp_server_actions_isSet = false; satellite_tracker_actions = nullptr; m_satellite_tracker_actions_isSet = false; simple_ptt_actions = nullptr; @@ -94,6 +96,8 @@ SWGFeatureActions::init() { m_per_tester_actions_isSet = false; rig_ctl_server_actions = new SWGRigCtlServerActions(); m_rig_ctl_server_actions_isSet = false; + mcp_server_actions = new SWGMCPServerActions(); + m_mcp_server_actions_isSet = false; satellite_tracker_actions = new SWGSatelliteTrackerActions(); m_satellite_tracker_actions_isSet = false; simple_ptt_actions = new SWGSimplePTTActions(); @@ -141,6 +145,9 @@ SWGFeatureActions::cleanup() { if(rig_ctl_server_actions != nullptr) { delete rig_ctl_server_actions; } + if(mcp_server_actions != nullptr) { + delete mcp_server_actions; + } if(satellite_tracker_actions != nullptr) { delete satellite_tracker_actions; } @@ -197,6 +204,8 @@ SWGFeatureActions::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&rig_ctl_server_actions, pJson["RigCtlServerActions"], "SWGRigCtlServerActions", "SWGRigCtlServerActions"); + ::SWGSDRangel::setValue(&mcp_server_actions, pJson["MCPServerActions"], "SWGMCPServerActions", "SWGMCPServerActions"); + ::SWGSDRangel::setValue(&satellite_tracker_actions, pJson["SatelliteTrackerActions"], "SWGSatelliteTrackerActions", "SWGSatelliteTrackerActions"); ::SWGSDRangel::setValue(&simple_ptt_actions, pJson["SimplePTTActions"], "SWGSimplePTTActions", "SWGSimplePTTActions"); @@ -260,6 +269,9 @@ SWGFeatureActions::asJsonObject() { if((rig_ctl_server_actions != nullptr) && (rig_ctl_server_actions->isSet())){ toJsonValue(QString("RigCtlServerActions"), rig_ctl_server_actions, obj, QString("SWGRigCtlServerActions")); } + if((mcp_server_actions != nullptr) && (mcp_server_actions->isSet())){ + toJsonValue(QString("MCPServerActions"), mcp_server_actions, obj, QString("SWGMCPServerActions")); + } if((satellite_tracker_actions != nullptr) && (satellite_tracker_actions->isSet())){ toJsonValue(QString("SatelliteTrackerActions"), satellite_tracker_actions, obj, QString("SWGSatelliteTrackerActions")); } @@ -395,6 +407,16 @@ SWGFeatureActions::setRigCtlServerActions(SWGRigCtlServerActions* rig_ctl_server this->m_rig_ctl_server_actions_isSet = true; } +SWGMCPServerActions* +SWGFeatureActions::getMcpServerActions() { + return mcp_server_actions; +} +void +SWGFeatureActions::setMcpServerActions(SWGMCPServerActions* mcp_server_actions) { + this->mcp_server_actions = mcp_server_actions; + this->m_mcp_server_actions_isSet = true; +} + SWGSatelliteTrackerActions* SWGFeatureActions::getSatelliteTrackerActions() { return satellite_tracker_actions; @@ -503,6 +525,9 @@ SWGFeatureActions::isSet(){ if(rig_ctl_server_actions && rig_ctl_server_actions->isSet()){ isObjectUpdated = true; break; } + if(mcp_server_actions && mcp_server_actions->isSet()){ + isObjectUpdated = true; break; + } if(satellite_tracker_actions && satellite_tracker_actions->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h index 1cda2aea2..3500d79d2 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h @@ -28,6 +28,7 @@ #include "SWGDenoiserActions.h" #include "SWGGS232ControllerActions.h" #include "SWGLimeRFEActions.h" +#include "SWGMCPServerActions.h" #include "SWGMapActions.h" #include "SWGMorseDecoderActions.h" #include "SWGPERTesterActions.h" @@ -90,6 +91,9 @@ public: SWGRigCtlServerActions* getRigCtlServerActions(); void setRigCtlServerActions(SWGRigCtlServerActions* rig_ctl_server_actions); + SWGMCPServerActions* getMcpServerActions(); + void setMcpServerActions(SWGMCPServerActions* mcp_server_actions); + SWGSatelliteTrackerActions* getSatelliteTrackerActions(); void setSatelliteTrackerActions(SWGSatelliteTrackerActions* satellite_tracker_actions); @@ -148,6 +152,9 @@ private: SWGRigCtlServerActions* rig_ctl_server_actions; bool m_rig_ctl_server_actions_isSet; + SWGMCPServerActions* mcp_server_actions; + bool m_mcp_server_actions_isSet; + SWGSatelliteTrackerActions* satellite_tracker_actions; bool m_satellite_tracker_actions_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp index 5bb59653b..eaa3ac1e7 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp @@ -30,6 +30,12 @@ SWGFeatureReport::SWGFeatureReport(QString* json) { SWGFeatureReport::SWGFeatureReport() { feature_type = nullptr; m_feature_type_isSet = false; + ais_report = nullptr; + m_ais_report_isSet = false; + aprs_report = nullptr; + m_aprs_report_isSet = false; + radiosonde_report = nullptr; + m_radiosonde_report_isSet = false; afc_report = nullptr; m_afc_report_isSet = false; ambe_report = nullptr; @@ -46,6 +52,8 @@ SWGFeatureReport::SWGFeatureReport() { m_per_tester_report_isSet = false; rig_ctl_server_report = nullptr; m_rig_ctl_server_report_isSet = false; + mcp_server_report = nullptr; + m_mcp_server_report_isSet = false; satellite_tracker_report = nullptr; m_satellite_tracker_report_isSet = false; simple_ptt_report = nullptr; @@ -66,6 +74,12 @@ void SWGFeatureReport::init() { feature_type = new QString(""); m_feature_type_isSet = false; + ais_report = new SWGAISReport(); + m_ais_report_isSet = false; + aprs_report = new SWGAPRSReport(); + m_aprs_report_isSet = false; + radiosonde_report = new SWGRadiosondeReport(); + m_radiosonde_report_isSet = false; afc_report = new SWGAFCReport(); m_afc_report_isSet = false; ambe_report = new SWGAMBEReport(); @@ -82,6 +96,8 @@ SWGFeatureReport::init() { m_per_tester_report_isSet = false; rig_ctl_server_report = new SWGRigCtlServerReport(); m_rig_ctl_server_report_isSet = false; + mcp_server_report = new SWGMCPServerReport(); + m_mcp_server_report_isSet = false; satellite_tracker_report = new SWGSatelliteTrackerReport(); m_satellite_tracker_report_isSet = false; simple_ptt_report = new SWGSimplePTTReport(); @@ -99,6 +115,15 @@ SWGFeatureReport::cleanup() { if(feature_type != nullptr) { delete feature_type; } + if(ais_report != nullptr) { + delete ais_report; + } + if(aprs_report != nullptr) { + delete aprs_report; + } + if(radiosonde_report != nullptr) { + delete radiosonde_report; + } if(afc_report != nullptr) { delete afc_report; } @@ -123,6 +148,9 @@ SWGFeatureReport::cleanup() { if(rig_ctl_server_report != nullptr) { delete rig_ctl_server_report; } + if(mcp_server_report != nullptr) { + delete mcp_server_report; + } if(satellite_tracker_report != nullptr) { delete satellite_tracker_report; } @@ -153,6 +181,12 @@ void SWGFeatureReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&feature_type, pJson["featureType"], "QString", "QString"); + ::SWGSDRangel::setValue(&ais_report, pJson["AISReport"], "SWGAISReport", "SWGAISReport"); + + ::SWGSDRangel::setValue(&aprs_report, pJson["APRSReport"], "SWGAPRSReport", "SWGAPRSReport"); + + ::SWGSDRangel::setValue(&radiosonde_report, pJson["RadiosondeReport"], "SWGRadiosondeReport", "SWGRadiosondeReport"); + ::SWGSDRangel::setValue(&afc_report, pJson["AFCReport"], "SWGAFCReport", "SWGAFCReport"); ::SWGSDRangel::setValue(&ambe_report, pJson["AMBEReport"], "SWGAMBEReport", "SWGAMBEReport"); @@ -169,6 +203,8 @@ SWGFeatureReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&rig_ctl_server_report, pJson["RigCtlServerReport"], "SWGRigCtlServerReport", "SWGRigCtlServerReport"); + ::SWGSDRangel::setValue(&mcp_server_report, pJson["MCPServerReport"], "SWGMCPServerReport", "SWGMCPServerReport"); + ::SWGSDRangel::setValue(&satellite_tracker_report, pJson["SatelliteTrackerReport"], "SWGSatelliteTrackerReport", "SWGSatelliteTrackerReport"); ::SWGSDRangel::setValue(&simple_ptt_report, pJson["SimplePTTReport"], "SWGSimplePTTReport", "SWGSimplePTTReport"); @@ -198,6 +234,15 @@ SWGFeatureReport::asJsonObject() { if(feature_type != nullptr && *feature_type != QString("")){ toJsonValue(QString("featureType"), feature_type, obj, QString("QString")); } + if((ais_report != nullptr) && (ais_report->isSet())){ + toJsonValue(QString("AISReport"), ais_report, obj, QString("SWGAISReport")); + } + if((aprs_report != nullptr) && (aprs_report->isSet())){ + toJsonValue(QString("APRSReport"), aprs_report, obj, QString("SWGAPRSReport")); + } + if((radiosonde_report != nullptr) && (radiosonde_report->isSet())){ + toJsonValue(QString("RadiosondeReport"), radiosonde_report, obj, QString("SWGRadiosondeReport")); + } if((afc_report != nullptr) && (afc_report->isSet())){ toJsonValue(QString("AFCReport"), afc_report, obj, QString("SWGAFCReport")); } @@ -222,6 +267,9 @@ SWGFeatureReport::asJsonObject() { if((rig_ctl_server_report != nullptr) && (rig_ctl_server_report->isSet())){ toJsonValue(QString("RigCtlServerReport"), rig_ctl_server_report, obj, QString("SWGRigCtlServerReport")); } + if((mcp_server_report != nullptr) && (mcp_server_report->isSet())){ + toJsonValue(QString("MCPServerReport"), mcp_server_report, obj, QString("SWGMCPServerReport")); + } if((satellite_tracker_report != nullptr) && (satellite_tracker_report->isSet())){ toJsonValue(QString("SatelliteTrackerReport"), satellite_tracker_report, obj, QString("SWGSatelliteTrackerReport")); } @@ -251,6 +299,36 @@ SWGFeatureReport::setFeatureType(QString* feature_type) { this->m_feature_type_isSet = true; } +SWGAISReport* +SWGFeatureReport::getAisReport() { + return ais_report; +} +void +SWGFeatureReport::setAisReport(SWGAISReport* ais_report) { + this->ais_report = ais_report; + this->m_ais_report_isSet = true; +} + +SWGAPRSReport* +SWGFeatureReport::getAprsReport() { + return aprs_report; +} +void +SWGFeatureReport::setAprsReport(SWGAPRSReport* aprs_report) { + this->aprs_report = aprs_report; + this->m_aprs_report_isSet = true; +} + +SWGRadiosondeReport* +SWGFeatureReport::getRadiosondeReport() { + return radiosonde_report; +} +void +SWGFeatureReport::setRadiosondeReport(SWGRadiosondeReport* radiosonde_report) { + this->radiosonde_report = radiosonde_report; + this->m_radiosonde_report_isSet = true; +} + SWGAFCReport* SWGFeatureReport::getAfcReport() { return afc_report; @@ -331,6 +409,16 @@ SWGFeatureReport::setRigCtlServerReport(SWGRigCtlServerReport* rig_ctl_server_re this->m_rig_ctl_server_report_isSet = true; } +SWGMCPServerReport* +SWGFeatureReport::getMcpServerReport() { + return mcp_server_report; +} +void +SWGFeatureReport::setMcpServerReport(SWGMCPServerReport* mcp_server_report) { + this->mcp_server_report = mcp_server_report; + this->m_mcp_server_report_isSet = true; +} + SWGSatelliteTrackerReport* SWGFeatureReport::getSatelliteTrackerReport() { return satellite_tracker_report; @@ -389,6 +477,15 @@ SWGFeatureReport::isSet(){ if(feature_type && *feature_type != QString("")){ isObjectUpdated = true; break; } + if(ais_report && ais_report->isSet()){ + isObjectUpdated = true; break; + } + if(aprs_report && aprs_report->isSet()){ + isObjectUpdated = true; break; + } + if(radiosonde_report && radiosonde_report->isSet()){ + isObjectUpdated = true; break; + } if(afc_report && afc_report->isSet()){ isObjectUpdated = true; break; } @@ -413,6 +510,9 @@ SWGFeatureReport::isSet(){ if(rig_ctl_server_report && rig_ctl_server_report->isSet()){ isObjectUpdated = true; break; } + if(mcp_server_report && mcp_server_report->isSet()){ + isObjectUpdated = true; break; + } if(satellite_tracker_report && satellite_tracker_report->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h index 8d6c9dec2..9a19cf301 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h @@ -23,12 +23,16 @@ #include "SWGAFCReport.h" +#include "SWGAISReport.h" #include "SWGAMBEReport.h" +#include "SWGAPRSReport.h" #include "SWGFreqDisplayReport.h" #include "SWGGS232ControllerReport.h" #include "SWGLimeRFEReport.h" +#include "SWGMCPServerReport.h" #include "SWGMapReport.h" #include "SWGPERTesterReport.h" +#include "SWGRadiosondeReport.h" #include "SWGRigCtlServerReport.h" #include "SWGSatelliteTrackerReport.h" #include "SWGSimplePTTReport.h" @@ -58,6 +62,15 @@ public: QString* getFeatureType(); void setFeatureType(QString* feature_type); + SWGAISReport* getAisReport(); + void setAisReport(SWGAISReport* ais_report); + + SWGAPRSReport* getAprsReport(); + void setAprsReport(SWGAPRSReport* aprs_report); + + SWGRadiosondeReport* getRadiosondeReport(); + void setRadiosondeReport(SWGRadiosondeReport* radiosonde_report); + SWGAFCReport* getAfcReport(); void setAfcReport(SWGAFCReport* afc_report); @@ -82,6 +95,9 @@ public: SWGRigCtlServerReport* getRigCtlServerReport(); void setRigCtlServerReport(SWGRigCtlServerReport* rig_ctl_server_report); + SWGMCPServerReport* getMcpServerReport(); + void setMcpServerReport(SWGMCPServerReport* mcp_server_report); + SWGSatelliteTrackerReport* getSatelliteTrackerReport(); void setSatelliteTrackerReport(SWGSatelliteTrackerReport* satellite_tracker_report); @@ -104,6 +120,15 @@ private: QString* feature_type; bool m_feature_type_isSet; + SWGAISReport* ais_report; + bool m_ais_report_isSet; + + SWGAPRSReport* aprs_report; + bool m_aprs_report_isSet; + + SWGRadiosondeReport* radiosonde_report; + bool m_radiosonde_report_isSet; + SWGAFCReport* afc_report; bool m_afc_report_isSet; @@ -128,6 +153,9 @@ private: SWGRigCtlServerReport* rig_ctl_server_report; bool m_rig_ctl_server_report_isSet; + SWGMCPServerReport* mcp_server_report; + bool m_mcp_server_report_isSet; + SWGSatelliteTrackerReport* satellite_tracker_report; bool m_satellite_tracker_report_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp index 91f135b8f..cb0744f3c 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp @@ -66,6 +66,8 @@ SWGFeatureSettings::SWGFeatureSettings() { m_radiosonde_settings_isSet = false; rig_ctl_server_settings = nullptr; m_rig_ctl_server_settings_isSet = false; + mcp_server_settings = nullptr; + m_mcp_server_settings_isSet = false; satellite_tracker_settings = nullptr; m_satellite_tracker_settings_isSet = false; sid_settings = nullptr; @@ -124,6 +126,8 @@ SWGFeatureSettings::init() { m_radiosonde_settings_isSet = false; rig_ctl_server_settings = new SWGRigCtlServerSettings(); m_rig_ctl_server_settings_isSet = false; + mcp_server_settings = new SWGMCPServerSettings(); + m_mcp_server_settings_isSet = false; satellite_tracker_settings = new SWGSatelliteTrackerSettings(); m_satellite_tracker_settings_isSet = false; sid_settings = new SWGSIDSettings(); @@ -193,6 +197,9 @@ SWGFeatureSettings::cleanup() { if(rig_ctl_server_settings != nullptr) { delete rig_ctl_server_settings; } + if(mcp_server_settings != nullptr) { + delete mcp_server_settings; + } if(satellite_tracker_settings != nullptr) { delete satellite_tracker_settings; } @@ -262,6 +269,8 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&rig_ctl_server_settings, pJson["RigCtlServerSettings"], "SWGRigCtlServerSettings", "SWGRigCtlServerSettings"); + ::SWGSDRangel::setValue(&mcp_server_settings, pJson["MCPServerSettings"], "SWGMCPServerSettings", "SWGMCPServerSettings"); + ::SWGSDRangel::setValue(&satellite_tracker_settings, pJson["SatelliteTrackerSettings"], "SWGSatelliteTrackerSettings", "SWGSatelliteTrackerSettings"); ::SWGSDRangel::setValue(&sid_settings, pJson["SIDSettings"], "SWGSIDSettings", "SWGSIDSettings"); @@ -347,6 +356,9 @@ SWGFeatureSettings::asJsonObject() { if((rig_ctl_server_settings != nullptr) && (rig_ctl_server_settings->isSet())){ toJsonValue(QString("RigCtlServerSettings"), rig_ctl_server_settings, obj, QString("SWGRigCtlServerSettings")); } + if((mcp_server_settings != nullptr) && (mcp_server_settings->isSet())){ + toJsonValue(QString("MCPServerSettings"), mcp_server_settings, obj, QString("SWGMCPServerSettings")); + } if((satellite_tracker_settings != nullptr) && (satellite_tracker_settings->isSet())){ toJsonValue(QString("SatelliteTrackerSettings"), satellite_tracker_settings, obj, QString("SWGSatelliteTrackerSettings")); } @@ -559,6 +571,16 @@ SWGFeatureSettings::setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_ser this->m_rig_ctl_server_settings_isSet = true; } +SWGMCPServerSettings* +SWGFeatureSettings::getMcpServerSettings() { + return mcp_server_settings; +} +void +SWGFeatureSettings::setMcpServerSettings(SWGMCPServerSettings* mcp_server_settings) { + this->mcp_server_settings = mcp_server_settings; + this->m_mcp_server_settings_isSet = true; +} + SWGSatelliteTrackerSettings* SWGFeatureSettings::getSatelliteTrackerSettings() { return satellite_tracker_settings; @@ -681,6 +703,9 @@ SWGFeatureSettings::isSet(){ if(rig_ctl_server_settings && rig_ctl_server_settings->isSet()){ isObjectUpdated = true; break; } + if(mcp_server_settings && mcp_server_settings->isSet()){ + isObjectUpdated = true; break; + } if(satellite_tracker_settings && satellite_tracker_settings->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h index a03955bdb..10ebb1a4d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h @@ -33,6 +33,7 @@ #include "SWGGS232ControllerSettings.h" #include "SWGJogdialControllerSettings.h" #include "SWGLimeRFESettings.h" +#include "SWGMCPServerSettings.h" #include "SWGMapSettings.h" #include "SWGMorseDecoderSettings.h" #include "SWGPERTesterSettings.h" @@ -121,6 +122,9 @@ public: SWGRigCtlServerSettings* getRigCtlServerSettings(); void setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_server_settings); + SWGMCPServerSettings* getMcpServerSettings(); + void setMcpServerSettings(SWGMCPServerSettings* mcp_server_settings); + SWGSatelliteTrackerSettings* getSatelliteTrackerSettings(); void setSatelliteTrackerSettings(SWGSatelliteTrackerSettings* satellite_tracker_settings); @@ -200,6 +204,9 @@ private: SWGRigCtlServerSettings* rig_ctl_server_settings; bool m_rig_ctl_server_settings_isSet; + SWGMCPServerSettings* mcp_server_settings; + bool m_mcp_server_settings_isSet; + SWGSatelliteTrackerSettings* satellite_tracker_settings; bool m_satellite_tracker_settings_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.cpp index 61eaf5c0e..eefc091ed 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.cpp @@ -42,6 +42,68 @@ SWGGLSpectrum::SWGGLSpectrum() { m_fps_period_ms_isSet = false; display_waterfall = 0; m_display_waterfall_isSet = false; + display3_d_spectrogram = 0; + m_display3_d_spectrogram_isSet = false; + spectrogram_style = 0; + m_spectrogram_style_isSet = false; + truncate_freq_scale = 0; + m_truncate_freq_scale_isSet = false; + color_map = nullptr; + m_color_map_isSet = false; + spectrum_style = 0; + m_spectrum_style_isSet = false; + measurement = 0; + m_measurement_isSet = false; + measurement_center_frequency_offset = 0; + m_measurement_center_frequency_offset_isSet = false; + measurement_bandwidth = 0; + m_measurement_bandwidth_isSet = false; + measurement_ch_spacing = 0; + m_measurement_ch_spacing_isSet = false; + measurement_adj_ch_bandwidth = 0; + m_measurement_adj_ch_bandwidth_isSet = false; + measurement_harmonics = 0; + m_measurement_harmonics_isSet = false; + measurement_peaks = 0; + m_measurement_peaks_isSet = false; + measurement_highlight = 0; + m_measurement_highlight_isSet = false; + measurements_position = 0; + m_measurements_position_isSet = false; + measurement_precision = 0; + m_measurement_precision_isSet = false; + find_histogram_peaks = 0; + m_find_histogram_peaks_isSet = false; + show_controls = 0; + m_show_controls_isSet = false; + frequency_zoom_factor = 0.0f; + m_frequency_zoom_factor_isSet = false; + frequency_zoom_pos = 0.0f; + m_frequency_zoom_pos_isSet = false; + waterfall_time_units = 0; + m_waterfall_time_units_isSet = false; + waterfall_time_format = nullptr; + m_waterfall_time_format_isSet = false; + scroll_bar = 0; + m_scroll_bar_isSet = false; + scroll_length = 0; + m_scroll_length_isSet = false; + math_mode = 0; + m_math_mode_isSet = false; + math_avg_count = 0; + m_math_avg_count_isSet = false; + measurement_mem_masks = 0; + m_measurement_mem_masks_isSet = false; + display_rbw = 0; + m_display_rbw_isSet = false; + display_cursor_stats = 0; + m_display_cursor_stats_isSet = false; + display_peak_stats = 0; + m_display_peak_stats_isSet = false; + spectrum_memory = nullptr; + m_spectrum_memory_isSet = false; + spectrum_color = 0; + m_spectrum_color_isSet = false; inverted_waterfall = 0; m_inverted_waterfall_isSet = false; display_max_hold = 0; @@ -90,6 +152,8 @@ SWGGLSpectrum::SWGGLSpectrum() { m_histogram_markers_isSet = false; waterfall_markers = nullptr; m_waterfall_markers_isSet = false; + annotation_markers_mode = 0; + m_annotation_markers_mode_isSet = false; annotation_markers = nullptr; m_annotation_markers_isSet = false; calibration_points = nullptr; @@ -116,6 +180,68 @@ SWGGLSpectrum::init() { m_fps_period_ms_isSet = false; display_waterfall = 0; m_display_waterfall_isSet = false; + display3_d_spectrogram = 0; + m_display3_d_spectrogram_isSet = false; + spectrogram_style = 0; + m_spectrogram_style_isSet = false; + truncate_freq_scale = 0; + m_truncate_freq_scale_isSet = false; + color_map = new QString(""); + m_color_map_isSet = false; + spectrum_style = 0; + m_spectrum_style_isSet = false; + measurement = 0; + m_measurement_isSet = false; + measurement_center_frequency_offset = 0; + m_measurement_center_frequency_offset_isSet = false; + measurement_bandwidth = 0; + m_measurement_bandwidth_isSet = false; + measurement_ch_spacing = 0; + m_measurement_ch_spacing_isSet = false; + measurement_adj_ch_bandwidth = 0; + m_measurement_adj_ch_bandwidth_isSet = false; + measurement_harmonics = 0; + m_measurement_harmonics_isSet = false; + measurement_peaks = 0; + m_measurement_peaks_isSet = false; + measurement_highlight = 0; + m_measurement_highlight_isSet = false; + measurements_position = 0; + m_measurements_position_isSet = false; + measurement_precision = 0; + m_measurement_precision_isSet = false; + find_histogram_peaks = 0; + m_find_histogram_peaks_isSet = false; + show_controls = 0; + m_show_controls_isSet = false; + frequency_zoom_factor = 0.0f; + m_frequency_zoom_factor_isSet = false; + frequency_zoom_pos = 0.0f; + m_frequency_zoom_pos_isSet = false; + waterfall_time_units = 0; + m_waterfall_time_units_isSet = false; + waterfall_time_format = new QString(""); + m_waterfall_time_format_isSet = false; + scroll_bar = 0; + m_scroll_bar_isSet = false; + scroll_length = 0; + m_scroll_length_isSet = false; + math_mode = 0; + m_math_mode_isSet = false; + math_avg_count = 0; + m_math_avg_count_isSet = false; + measurement_mem_masks = 0; + m_measurement_mem_masks_isSet = false; + display_rbw = 0; + m_display_rbw_isSet = false; + display_cursor_stats = 0; + m_display_cursor_stats_isSet = false; + display_peak_stats = 0; + m_display_peak_stats_isSet = false; + spectrum_memory = new QList(); + m_spectrum_memory_isSet = false; + spectrum_color = 0; + m_spectrum_color_isSet = false; inverted_waterfall = 0; m_inverted_waterfall_isSet = false; display_max_hold = 0; @@ -164,6 +290,8 @@ SWGGLSpectrum::init() { m_histogram_markers_isSet = false; waterfall_markers = new QList(); m_waterfall_markers_isSet = false; + annotation_markers_mode = 0; + m_annotation_markers_mode_isSet = false; annotation_markers = new QList(); m_annotation_markers_isSet = false; calibration_points = new QList(); @@ -182,6 +310,47 @@ SWGGLSpectrum::cleanup() { + if(color_map != nullptr) { + delete color_map; + } + + + + + + + + + + + + + + + + + if(waterfall_time_format != nullptr) { + delete waterfall_time_format; + } + + + + + + + + + if(spectrum_memory != nullptr) { + auto arr = spectrum_memory; + for(auto o: *arr) { + delete o; + } + delete spectrum_memory; + } + + + + @@ -217,6 +386,7 @@ SWGGLSpectrum::cleanup() { } delete waterfall_markers; } + if(annotation_markers != nullptr) { auto arr = annotation_markers; for(auto o: *arr) { @@ -258,6 +428,68 @@ SWGGLSpectrum::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&display_waterfall, pJson["displayWaterfall"], "qint32", ""); + ::SWGSDRangel::setValue(&display3_d_spectrogram, pJson["display3DSpectrogram"], "qint32", ""); + + ::SWGSDRangel::setValue(&spectrogram_style, pJson["spectrogramStyle"], "qint32", ""); + + ::SWGSDRangel::setValue(&truncate_freq_scale, pJson["truncateFreqScale"], "qint32", ""); + + ::SWGSDRangel::setValue(&color_map, pJson["colorMap"], "QString", "QString"); + + ::SWGSDRangel::setValue(&spectrum_style, pJson["spectrumStyle"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement, pJson["measurement"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_center_frequency_offset, pJson["measurementCenterFrequencyOffset"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_bandwidth, pJson["measurementBandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_ch_spacing, pJson["measurementChSpacing"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_adj_ch_bandwidth, pJson["measurementAdjChBandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_harmonics, pJson["measurementHarmonics"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_peaks, pJson["measurementPeaks"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_highlight, pJson["measurementHighlight"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurements_position, pJson["measurementsPosition"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_precision, pJson["measurementPrecision"], "qint32", ""); + + ::SWGSDRangel::setValue(&find_histogram_peaks, pJson["findHistogramPeaks"], "qint32", ""); + + ::SWGSDRangel::setValue(&show_controls, pJson["showControls"], "qint32", ""); + + ::SWGSDRangel::setValue(&frequency_zoom_factor, pJson["frequencyZoomFactor"], "float", ""); + + ::SWGSDRangel::setValue(&frequency_zoom_pos, pJson["frequencyZoomPos"], "float", ""); + + ::SWGSDRangel::setValue(&waterfall_time_units, pJson["waterfallTimeUnits"], "qint32", ""); + + ::SWGSDRangel::setValue(&waterfall_time_format, pJson["waterfallTimeFormat"], "QString", "QString"); + + ::SWGSDRangel::setValue(&scroll_bar, pJson["scrollBar"], "qint32", ""); + + ::SWGSDRangel::setValue(&scroll_length, pJson["scrollLength"], "qint32", ""); + + ::SWGSDRangel::setValue(&math_mode, pJson["mathMode"], "qint32", ""); + + ::SWGSDRangel::setValue(&math_avg_count, pJson["mathAvgCount"], "qint32", ""); + + ::SWGSDRangel::setValue(&measurement_mem_masks, pJson["measurementMemMasks"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_rbw, pJson["displayRBW"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_cursor_stats, pJson["displayCursorStats"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_peak_stats, pJson["displayPeakStats"], "qint32", ""); + + + ::SWGSDRangel::setValue(&spectrum_memory, pJson["spectrumMemory"], "QList", "SWGSpectrumMemorySettings"); + ::SWGSDRangel::setValue(&spectrum_color, pJson["spectrumColor"], "qint32", ""); + ::SWGSDRangel::setValue(&inverted_waterfall, pJson["invertedWaterfall"], "qint32", ""); ::SWGSDRangel::setValue(&display_max_hold, pJson["displayMaxHold"], "qint32", ""); @@ -306,6 +538,8 @@ SWGGLSpectrum::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&histogram_markers, pJson["histogramMarkers"], "QList", "SWGSpectrumHistogramMarker"); ::SWGSDRangel::setValue(&waterfall_markers, pJson["waterfallMarkers"], "QList", "SWGSpectrumWaterfallMarker"); + ::SWGSDRangel::setValue(&annotation_markers_mode, pJson["annotationMarkersMode"], "qint32", ""); + ::SWGSDRangel::setValue(&annotation_markers, pJson["annotationMarkers"], "QList", "SWGSpectrumAnnotationMarker"); @@ -347,6 +581,99 @@ SWGGLSpectrum::asJsonObject() { if(m_display_waterfall_isSet){ obj->insert("displayWaterfall", QJsonValue(display_waterfall)); } + if(m_display3_d_spectrogram_isSet){ + obj->insert("display3DSpectrogram", QJsonValue(display3_d_spectrogram)); + } + if(m_spectrogram_style_isSet){ + obj->insert("spectrogramStyle", QJsonValue(spectrogram_style)); + } + if(m_truncate_freq_scale_isSet){ + obj->insert("truncateFreqScale", QJsonValue(truncate_freq_scale)); + } + if(color_map != nullptr && *color_map != QString("")){ + toJsonValue(QString("colorMap"), color_map, obj, QString("QString")); + } + if(m_spectrum_style_isSet){ + obj->insert("spectrumStyle", QJsonValue(spectrum_style)); + } + if(m_measurement_isSet){ + obj->insert("measurement", QJsonValue(measurement)); + } + if(m_measurement_center_frequency_offset_isSet){ + obj->insert("measurementCenterFrequencyOffset", QJsonValue(measurement_center_frequency_offset)); + } + if(m_measurement_bandwidth_isSet){ + obj->insert("measurementBandwidth", QJsonValue(measurement_bandwidth)); + } + if(m_measurement_ch_spacing_isSet){ + obj->insert("measurementChSpacing", QJsonValue(measurement_ch_spacing)); + } + if(m_measurement_adj_ch_bandwidth_isSet){ + obj->insert("measurementAdjChBandwidth", QJsonValue(measurement_adj_ch_bandwidth)); + } + if(m_measurement_harmonics_isSet){ + obj->insert("measurementHarmonics", QJsonValue(measurement_harmonics)); + } + if(m_measurement_peaks_isSet){ + obj->insert("measurementPeaks", QJsonValue(measurement_peaks)); + } + if(m_measurement_highlight_isSet){ + obj->insert("measurementHighlight", QJsonValue(measurement_highlight)); + } + if(m_measurements_position_isSet){ + obj->insert("measurementsPosition", QJsonValue(measurements_position)); + } + if(m_measurement_precision_isSet){ + obj->insert("measurementPrecision", QJsonValue(measurement_precision)); + } + if(m_find_histogram_peaks_isSet){ + obj->insert("findHistogramPeaks", QJsonValue(find_histogram_peaks)); + } + if(m_show_controls_isSet){ + obj->insert("showControls", QJsonValue(show_controls)); + } + if(m_frequency_zoom_factor_isSet){ + obj->insert("frequencyZoomFactor", QJsonValue(frequency_zoom_factor)); + } + if(m_frequency_zoom_pos_isSet){ + obj->insert("frequencyZoomPos", QJsonValue(frequency_zoom_pos)); + } + if(m_waterfall_time_units_isSet){ + obj->insert("waterfallTimeUnits", QJsonValue(waterfall_time_units)); + } + if(waterfall_time_format != nullptr && *waterfall_time_format != QString("")){ + toJsonValue(QString("waterfallTimeFormat"), waterfall_time_format, obj, QString("QString")); + } + if(m_scroll_bar_isSet){ + obj->insert("scrollBar", QJsonValue(scroll_bar)); + } + if(m_scroll_length_isSet){ + obj->insert("scrollLength", QJsonValue(scroll_length)); + } + if(m_math_mode_isSet){ + obj->insert("mathMode", QJsonValue(math_mode)); + } + if(m_math_avg_count_isSet){ + obj->insert("mathAvgCount", QJsonValue(math_avg_count)); + } + if(m_measurement_mem_masks_isSet){ + obj->insert("measurementMemMasks", QJsonValue(measurement_mem_masks)); + } + if(m_display_rbw_isSet){ + obj->insert("displayRBW", QJsonValue(display_rbw)); + } + if(m_display_cursor_stats_isSet){ + obj->insert("displayCursorStats", QJsonValue(display_cursor_stats)); + } + if(m_display_peak_stats_isSet){ + obj->insert("displayPeakStats", QJsonValue(display_peak_stats)); + } + if(spectrum_memory && spectrum_memory->size() > 0){ + toJsonArray((QList*)spectrum_memory, obj, "spectrumMemory", "SWGSpectrumMemorySettings"); + } + if(m_spectrum_color_isSet){ + obj->insert("spectrumColor", QJsonValue(spectrum_color)); + } if(m_inverted_waterfall_isSet){ obj->insert("invertedWaterfall", QJsonValue(inverted_waterfall)); } @@ -419,6 +746,9 @@ SWGGLSpectrum::asJsonObject() { if(waterfall_markers && waterfall_markers->size() > 0){ toJsonArray((QList*)waterfall_markers, obj, "waterfallMarkers", "SWGSpectrumWaterfallMarker"); } + if(m_annotation_markers_mode_isSet){ + obj->insert("annotationMarkersMode", QJsonValue(annotation_markers_mode)); + } if(annotation_markers && annotation_markers->size() > 0){ toJsonArray((QList*)annotation_markers, obj, "annotationMarkers", "SWGSpectrumAnnotationMarker"); } @@ -499,6 +829,316 @@ SWGGLSpectrum::setDisplayWaterfall(qint32 display_waterfall) { this->m_display_waterfall_isSet = true; } +qint32 +SWGGLSpectrum::getDisplay3DSpectrogram() { + return display3_d_spectrogram; +} +void +SWGGLSpectrum::setDisplay3DSpectrogram(qint32 display3_d_spectrogram) { + this->display3_d_spectrogram = display3_d_spectrogram; + this->m_display3_d_spectrogram_isSet = true; +} + +qint32 +SWGGLSpectrum::getSpectrogramStyle() { + return spectrogram_style; +} +void +SWGGLSpectrum::setSpectrogramStyle(qint32 spectrogram_style) { + this->spectrogram_style = spectrogram_style; + this->m_spectrogram_style_isSet = true; +} + +qint32 +SWGGLSpectrum::getTruncateFreqScale() { + return truncate_freq_scale; +} +void +SWGGLSpectrum::setTruncateFreqScale(qint32 truncate_freq_scale) { + this->truncate_freq_scale = truncate_freq_scale; + this->m_truncate_freq_scale_isSet = true; +} + +QString* +SWGGLSpectrum::getColorMap() { + return color_map; +} +void +SWGGLSpectrum::setColorMap(QString* color_map) { + this->color_map = color_map; + this->m_color_map_isSet = true; +} + +qint32 +SWGGLSpectrum::getSpectrumStyle() { + return spectrum_style; +} +void +SWGGLSpectrum::setSpectrumStyle(qint32 spectrum_style) { + this->spectrum_style = spectrum_style; + this->m_spectrum_style_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurement() { + return measurement; +} +void +SWGGLSpectrum::setMeasurement(qint32 measurement) { + this->measurement = measurement; + this->m_measurement_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementCenterFrequencyOffset() { + return measurement_center_frequency_offset; +} +void +SWGGLSpectrum::setMeasurementCenterFrequencyOffset(qint32 measurement_center_frequency_offset) { + this->measurement_center_frequency_offset = measurement_center_frequency_offset; + this->m_measurement_center_frequency_offset_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementBandwidth() { + return measurement_bandwidth; +} +void +SWGGLSpectrum::setMeasurementBandwidth(qint32 measurement_bandwidth) { + this->measurement_bandwidth = measurement_bandwidth; + this->m_measurement_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementChSpacing() { + return measurement_ch_spacing; +} +void +SWGGLSpectrum::setMeasurementChSpacing(qint32 measurement_ch_spacing) { + this->measurement_ch_spacing = measurement_ch_spacing; + this->m_measurement_ch_spacing_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementAdjChBandwidth() { + return measurement_adj_ch_bandwidth; +} +void +SWGGLSpectrum::setMeasurementAdjChBandwidth(qint32 measurement_adj_ch_bandwidth) { + this->measurement_adj_ch_bandwidth = measurement_adj_ch_bandwidth; + this->m_measurement_adj_ch_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementHarmonics() { + return measurement_harmonics; +} +void +SWGGLSpectrum::setMeasurementHarmonics(qint32 measurement_harmonics) { + this->measurement_harmonics = measurement_harmonics; + this->m_measurement_harmonics_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementPeaks() { + return measurement_peaks; +} +void +SWGGLSpectrum::setMeasurementPeaks(qint32 measurement_peaks) { + this->measurement_peaks = measurement_peaks; + this->m_measurement_peaks_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementHighlight() { + return measurement_highlight; +} +void +SWGGLSpectrum::setMeasurementHighlight(qint32 measurement_highlight) { + this->measurement_highlight = measurement_highlight; + this->m_measurement_highlight_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementsPosition() { + return measurements_position; +} +void +SWGGLSpectrum::setMeasurementsPosition(qint32 measurements_position) { + this->measurements_position = measurements_position; + this->m_measurements_position_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementPrecision() { + return measurement_precision; +} +void +SWGGLSpectrum::setMeasurementPrecision(qint32 measurement_precision) { + this->measurement_precision = measurement_precision; + this->m_measurement_precision_isSet = true; +} + +qint32 +SWGGLSpectrum::getFindHistogramPeaks() { + return find_histogram_peaks; +} +void +SWGGLSpectrum::setFindHistogramPeaks(qint32 find_histogram_peaks) { + this->find_histogram_peaks = find_histogram_peaks; + this->m_find_histogram_peaks_isSet = true; +} + +qint32 +SWGGLSpectrum::getShowControls() { + return show_controls; +} +void +SWGGLSpectrum::setShowControls(qint32 show_controls) { + this->show_controls = show_controls; + this->m_show_controls_isSet = true; +} + +float +SWGGLSpectrum::getFrequencyZoomFactor() { + return frequency_zoom_factor; +} +void +SWGGLSpectrum::setFrequencyZoomFactor(float frequency_zoom_factor) { + this->frequency_zoom_factor = frequency_zoom_factor; + this->m_frequency_zoom_factor_isSet = true; +} + +float +SWGGLSpectrum::getFrequencyZoomPos() { + return frequency_zoom_pos; +} +void +SWGGLSpectrum::setFrequencyZoomPos(float frequency_zoom_pos) { + this->frequency_zoom_pos = frequency_zoom_pos; + this->m_frequency_zoom_pos_isSet = true; +} + +qint32 +SWGGLSpectrum::getWaterfallTimeUnits() { + return waterfall_time_units; +} +void +SWGGLSpectrum::setWaterfallTimeUnits(qint32 waterfall_time_units) { + this->waterfall_time_units = waterfall_time_units; + this->m_waterfall_time_units_isSet = true; +} + +QString* +SWGGLSpectrum::getWaterfallTimeFormat() { + return waterfall_time_format; +} +void +SWGGLSpectrum::setWaterfallTimeFormat(QString* waterfall_time_format) { + this->waterfall_time_format = waterfall_time_format; + this->m_waterfall_time_format_isSet = true; +} + +qint32 +SWGGLSpectrum::getScrollBar() { + return scroll_bar; +} +void +SWGGLSpectrum::setScrollBar(qint32 scroll_bar) { + this->scroll_bar = scroll_bar; + this->m_scroll_bar_isSet = true; +} + +qint32 +SWGGLSpectrum::getScrollLength() { + return scroll_length; +} +void +SWGGLSpectrum::setScrollLength(qint32 scroll_length) { + this->scroll_length = scroll_length; + this->m_scroll_length_isSet = true; +} + +qint32 +SWGGLSpectrum::getMathMode() { + return math_mode; +} +void +SWGGLSpectrum::setMathMode(qint32 math_mode) { + this->math_mode = math_mode; + this->m_math_mode_isSet = true; +} + +qint32 +SWGGLSpectrum::getMathAvgCount() { + return math_avg_count; +} +void +SWGGLSpectrum::setMathAvgCount(qint32 math_avg_count) { + this->math_avg_count = math_avg_count; + this->m_math_avg_count_isSet = true; +} + +qint32 +SWGGLSpectrum::getMeasurementMemMasks() { + return measurement_mem_masks; +} +void +SWGGLSpectrum::setMeasurementMemMasks(qint32 measurement_mem_masks) { + this->measurement_mem_masks = measurement_mem_masks; + this->m_measurement_mem_masks_isSet = true; +} + +qint32 +SWGGLSpectrum::getDisplayRbw() { + return display_rbw; +} +void +SWGGLSpectrum::setDisplayRbw(qint32 display_rbw) { + this->display_rbw = display_rbw; + this->m_display_rbw_isSet = true; +} + +qint32 +SWGGLSpectrum::getDisplayCursorStats() { + return display_cursor_stats; +} +void +SWGGLSpectrum::setDisplayCursorStats(qint32 display_cursor_stats) { + this->display_cursor_stats = display_cursor_stats; + this->m_display_cursor_stats_isSet = true; +} + +qint32 +SWGGLSpectrum::getDisplayPeakStats() { + return display_peak_stats; +} +void +SWGGLSpectrum::setDisplayPeakStats(qint32 display_peak_stats) { + this->display_peak_stats = display_peak_stats; + this->m_display_peak_stats_isSet = true; +} + +QList* +SWGGLSpectrum::getSpectrumMemory() { + return spectrum_memory; +} +void +SWGGLSpectrum::setSpectrumMemory(QList* spectrum_memory) { + this->spectrum_memory = spectrum_memory; + this->m_spectrum_memory_isSet = true; +} + +qint32 +SWGGLSpectrum::getSpectrumColor() { + return spectrum_color; +} +void +SWGGLSpectrum::setSpectrumColor(qint32 spectrum_color) { + this->spectrum_color = spectrum_color; + this->m_spectrum_color_isSet = true; +} + qint32 SWGGLSpectrum::getInvertedWaterfall() { return inverted_waterfall; @@ -739,6 +1379,16 @@ SWGGLSpectrum::setWaterfallMarkers(QList* waterfall this->m_waterfall_markers_isSet = true; } +qint32 +SWGGLSpectrum::getAnnotationMarkersMode() { + return annotation_markers_mode; +} +void +SWGGLSpectrum::setAnnotationMarkersMode(qint32 annotation_markers_mode) { + this->annotation_markers_mode = annotation_markers_mode; + this->m_annotation_markers_mode_isSet = true; +} + QList* SWGGLSpectrum::getAnnotationMarkers() { return annotation_markers; @@ -785,6 +1435,99 @@ SWGGLSpectrum::isSet(){ if(m_display_waterfall_isSet){ isObjectUpdated = true; break; } + if(m_display3_d_spectrogram_isSet){ + isObjectUpdated = true; break; + } + if(m_spectrogram_style_isSet){ + isObjectUpdated = true; break; + } + if(m_truncate_freq_scale_isSet){ + isObjectUpdated = true; break; + } + if(color_map && *color_map != QString("")){ + isObjectUpdated = true; break; + } + if(m_spectrum_style_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_center_frequency_offset_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_ch_spacing_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_adj_ch_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_harmonics_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_peaks_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_highlight_isSet){ + isObjectUpdated = true; break; + } + if(m_measurements_position_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_precision_isSet){ + isObjectUpdated = true; break; + } + if(m_find_histogram_peaks_isSet){ + isObjectUpdated = true; break; + } + if(m_show_controls_isSet){ + isObjectUpdated = true; break; + } + if(m_frequency_zoom_factor_isSet){ + isObjectUpdated = true; break; + } + if(m_frequency_zoom_pos_isSet){ + isObjectUpdated = true; break; + } + if(m_waterfall_time_units_isSet){ + isObjectUpdated = true; break; + } + if(waterfall_time_format && *waterfall_time_format != QString("")){ + isObjectUpdated = true; break; + } + if(m_scroll_bar_isSet){ + isObjectUpdated = true; break; + } + if(m_scroll_length_isSet){ + isObjectUpdated = true; break; + } + if(m_math_mode_isSet){ + isObjectUpdated = true; break; + } + if(m_math_avg_count_isSet){ + isObjectUpdated = true; break; + } + if(m_measurement_mem_masks_isSet){ + isObjectUpdated = true; break; + } + if(m_display_rbw_isSet){ + isObjectUpdated = true; break; + } + if(m_display_cursor_stats_isSet){ + isObjectUpdated = true; break; + } + if(m_display_peak_stats_isSet){ + isObjectUpdated = true; break; + } + if(spectrum_memory && (spectrum_memory->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_spectrum_color_isSet){ + isObjectUpdated = true; break; + } if(m_inverted_waterfall_isSet){ isObjectUpdated = true; break; } @@ -857,6 +1600,9 @@ SWGGLSpectrum::isSet(){ if(waterfall_markers && (waterfall_markers->size() > 0)){ isObjectUpdated = true; break; } + if(m_annotation_markers_mode_isSet){ + isObjectUpdated = true; break; + } if(annotation_markers && (annotation_markers->size() > 0)){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.h index c7af51130..c899ab7f4 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.h +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrum.h @@ -25,6 +25,7 @@ #include "SWGSpectrumAnnotationMarker.h" #include "SWGSpectrumCalibrationPoint.h" #include "SWGSpectrumHistogramMarker.h" +#include "SWGSpectrumMemorySettings.h" #include "SWGSpectrumWaterfallMarker.h" #include #include @@ -68,6 +69,99 @@ public: qint32 getDisplayWaterfall(); void setDisplayWaterfall(qint32 display_waterfall); + qint32 getDisplay3DSpectrogram(); + void setDisplay3DSpectrogram(qint32 display3_d_spectrogram); + + qint32 getSpectrogramStyle(); + void setSpectrogramStyle(qint32 spectrogram_style); + + qint32 getTruncateFreqScale(); + void setTruncateFreqScale(qint32 truncate_freq_scale); + + QString* getColorMap(); + void setColorMap(QString* color_map); + + qint32 getSpectrumStyle(); + void setSpectrumStyle(qint32 spectrum_style); + + qint32 getMeasurement(); + void setMeasurement(qint32 measurement); + + qint32 getMeasurementCenterFrequencyOffset(); + void setMeasurementCenterFrequencyOffset(qint32 measurement_center_frequency_offset); + + qint32 getMeasurementBandwidth(); + void setMeasurementBandwidth(qint32 measurement_bandwidth); + + qint32 getMeasurementChSpacing(); + void setMeasurementChSpacing(qint32 measurement_ch_spacing); + + qint32 getMeasurementAdjChBandwidth(); + void setMeasurementAdjChBandwidth(qint32 measurement_adj_ch_bandwidth); + + qint32 getMeasurementHarmonics(); + void setMeasurementHarmonics(qint32 measurement_harmonics); + + qint32 getMeasurementPeaks(); + void setMeasurementPeaks(qint32 measurement_peaks); + + qint32 getMeasurementHighlight(); + void setMeasurementHighlight(qint32 measurement_highlight); + + qint32 getMeasurementsPosition(); + void setMeasurementsPosition(qint32 measurements_position); + + qint32 getMeasurementPrecision(); + void setMeasurementPrecision(qint32 measurement_precision); + + qint32 getFindHistogramPeaks(); + void setFindHistogramPeaks(qint32 find_histogram_peaks); + + qint32 getShowControls(); + void setShowControls(qint32 show_controls); + + float getFrequencyZoomFactor(); + void setFrequencyZoomFactor(float frequency_zoom_factor); + + float getFrequencyZoomPos(); + void setFrequencyZoomPos(float frequency_zoom_pos); + + qint32 getWaterfallTimeUnits(); + void setWaterfallTimeUnits(qint32 waterfall_time_units); + + QString* getWaterfallTimeFormat(); + void setWaterfallTimeFormat(QString* waterfall_time_format); + + qint32 getScrollBar(); + void setScrollBar(qint32 scroll_bar); + + qint32 getScrollLength(); + void setScrollLength(qint32 scroll_length); + + qint32 getMathMode(); + void setMathMode(qint32 math_mode); + + qint32 getMathAvgCount(); + void setMathAvgCount(qint32 math_avg_count); + + qint32 getMeasurementMemMasks(); + void setMeasurementMemMasks(qint32 measurement_mem_masks); + + qint32 getDisplayRbw(); + void setDisplayRbw(qint32 display_rbw); + + qint32 getDisplayCursorStats(); + void setDisplayCursorStats(qint32 display_cursor_stats); + + qint32 getDisplayPeakStats(); + void setDisplayPeakStats(qint32 display_peak_stats); + + QList* getSpectrumMemory(); + void setSpectrumMemory(QList* spectrum_memory); + + qint32 getSpectrumColor(); + void setSpectrumColor(qint32 spectrum_color); + qint32 getInvertedWaterfall(); void setInvertedWaterfall(qint32 inverted_waterfall); @@ -140,6 +234,9 @@ public: QList* getWaterfallMarkers(); void setWaterfallMarkers(QList* waterfall_markers); + qint32 getAnnotationMarkersMode(); + void setAnnotationMarkersMode(qint32 annotation_markers_mode); + QList* getAnnotationMarkers(); void setAnnotationMarkers(QList* annotation_markers); @@ -171,6 +268,99 @@ private: qint32 display_waterfall; bool m_display_waterfall_isSet; + qint32 display3_d_spectrogram; + bool m_display3_d_spectrogram_isSet; + + qint32 spectrogram_style; + bool m_spectrogram_style_isSet; + + qint32 truncate_freq_scale; + bool m_truncate_freq_scale_isSet; + + QString* color_map; + bool m_color_map_isSet; + + qint32 spectrum_style; + bool m_spectrum_style_isSet; + + qint32 measurement; + bool m_measurement_isSet; + + qint32 measurement_center_frequency_offset; + bool m_measurement_center_frequency_offset_isSet; + + qint32 measurement_bandwidth; + bool m_measurement_bandwidth_isSet; + + qint32 measurement_ch_spacing; + bool m_measurement_ch_spacing_isSet; + + qint32 measurement_adj_ch_bandwidth; + bool m_measurement_adj_ch_bandwidth_isSet; + + qint32 measurement_harmonics; + bool m_measurement_harmonics_isSet; + + qint32 measurement_peaks; + bool m_measurement_peaks_isSet; + + qint32 measurement_highlight; + bool m_measurement_highlight_isSet; + + qint32 measurements_position; + bool m_measurements_position_isSet; + + qint32 measurement_precision; + bool m_measurement_precision_isSet; + + qint32 find_histogram_peaks; + bool m_find_histogram_peaks_isSet; + + qint32 show_controls; + bool m_show_controls_isSet; + + float frequency_zoom_factor; + bool m_frequency_zoom_factor_isSet; + + float frequency_zoom_pos; + bool m_frequency_zoom_pos_isSet; + + qint32 waterfall_time_units; + bool m_waterfall_time_units_isSet; + + QString* waterfall_time_format; + bool m_waterfall_time_format_isSet; + + qint32 scroll_bar; + bool m_scroll_bar_isSet; + + qint32 scroll_length; + bool m_scroll_length_isSet; + + qint32 math_mode; + bool m_math_mode_isSet; + + qint32 math_avg_count; + bool m_math_avg_count_isSet; + + qint32 measurement_mem_masks; + bool m_measurement_mem_masks_isSet; + + qint32 display_rbw; + bool m_display_rbw_isSet; + + qint32 display_cursor_stats; + bool m_display_cursor_stats_isSet; + + qint32 display_peak_stats; + bool m_display_peak_stats_isSet; + + QList* spectrum_memory; + bool m_spectrum_memory_isSet; + + qint32 spectrum_color; + bool m_spectrum_color_isSet; + qint32 inverted_waterfall; bool m_inverted_waterfall_isSet; @@ -243,6 +433,9 @@ private: QList* waterfall_markers; bool m_waterfall_markers_isSet; + qint32 annotation_markers_mode; + bool m_annotation_markers_mode_isSet; + QList* annotation_markers; bool m_annotation_markers_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.cpp new file mode 100644 index 000000000..dba65f949 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.cpp @@ -0,0 +1,345 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGGLSpectrumData.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGGLSpectrumData::SWGGLSpectrumData(QString* json) { + init(); + this->fromJson(*json); +} + +SWGGLSpectrumData::SWGGLSpectrumData() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + fft_size = 0; + m_fft_size_isSet = false; + linear = 0; + m_linear_isSet = false; + updated = nullptr; + m_updated_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0.0f; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + reduce = nullptr; + m_reduce_isSet = false; + power = new QList(); + m_power_isSet = false; +} + +SWGGLSpectrumData::~SWGGLSpectrumData() { + this->cleanup(); +} + +void +SWGGLSpectrumData::init() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + fft_size = 0; + m_fft_size_isSet = false; + linear = 0; + m_linear_isSet = false; + updated = new QString(""); + m_updated_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0.0f; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + reduce = new QString(""); + m_reduce_isSet = false; + power = new QList(); + m_power_isSet = false; +} + +void +SWGGLSpectrumData::cleanup() { + + + + + if(updated != nullptr) { + delete updated; + } + + + + + if(reduce != nullptr) { + delete reduce; + } + +} + +SWGGLSpectrumData* +SWGGLSpectrumData::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGGLSpectrumData::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(¢er_frequency, pJson["centerFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&fft_size, pJson["fftSize"], "qint32", ""); + + ::SWGSDRangel::setValue(&linear, pJson["linear"], "qint32", ""); + + ::SWGSDRangel::setValue(&updated, pJson["updated"], "QString", "QString"); + + ::SWGSDRangel::setValue(&start_frequency, pJson["startFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&stop_frequency, pJson["stopFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bin_bandwidth, pJson["binBandwidth"], "float", ""); + + ::SWGSDRangel::setValue(&bins, pJson["bins"], "qint32", ""); + + ::SWGSDRangel::setValue(&reduce, pJson["reduce"], "QString", "QString"); + + + ::SWGSDRangel::setValue(&power, pJson["power"], "QList", "float"); +} + +QString +SWGGLSpectrumData::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGGLSpectrumData::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_center_frequency_isSet){ + obj->insert("centerFrequency", QJsonValue(center_frequency)); + } + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + if(m_fft_size_isSet){ + obj->insert("fftSize", QJsonValue(fft_size)); + } + if(m_linear_isSet){ + obj->insert("linear", QJsonValue(linear)); + } + if(updated != nullptr && *updated != QString("")){ + toJsonValue(QString("updated"), updated, obj, QString("QString")); + } + if(m_start_frequency_isSet){ + obj->insert("startFrequency", QJsonValue(start_frequency)); + } + if(m_stop_frequency_isSet){ + obj->insert("stopFrequency", QJsonValue(stop_frequency)); + } + if(m_bin_bandwidth_isSet){ + obj->insert("binBandwidth", QJsonValue(bin_bandwidth)); + } + if(m_bins_isSet){ + obj->insert("bins", QJsonValue(bins)); + } + if(reduce != nullptr && *reduce != QString("")){ + toJsonValue(QString("reduce"), reduce, obj, QString("QString")); + } + if(power && power->size() > 0){ + toJsonArray((QList*)power, obj, "power", ""); + } + + return obj; +} + +qint64 +SWGGLSpectrumData::getCenterFrequency() { + return center_frequency; +} +void +SWGGLSpectrumData::setCenterFrequency(qint64 center_frequency) { + this->center_frequency = center_frequency; + this->m_center_frequency_isSet = true; +} + +qint32 +SWGGLSpectrumData::getBandwidth() { + return bandwidth; +} +void +SWGGLSpectrumData::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrumData::getFftSize() { + return fft_size; +} +void +SWGGLSpectrumData::setFftSize(qint32 fft_size) { + this->fft_size = fft_size; + this->m_fft_size_isSet = true; +} + +qint32 +SWGGLSpectrumData::getLinear() { + return linear; +} +void +SWGGLSpectrumData::setLinear(qint32 linear) { + this->linear = linear; + this->m_linear_isSet = true; +} + +QString* +SWGGLSpectrumData::getUpdated() { + return updated; +} +void +SWGGLSpectrumData::setUpdated(QString* updated) { + this->updated = updated; + this->m_updated_isSet = true; +} + +qint64 +SWGGLSpectrumData::getStartFrequency() { + return start_frequency; +} +void +SWGGLSpectrumData::setStartFrequency(qint64 start_frequency) { + this->start_frequency = start_frequency; + this->m_start_frequency_isSet = true; +} + +qint64 +SWGGLSpectrumData::getStopFrequency() { + return stop_frequency; +} +void +SWGGLSpectrumData::setStopFrequency(qint64 stop_frequency) { + this->stop_frequency = stop_frequency; + this->m_stop_frequency_isSet = true; +} + +float +SWGGLSpectrumData::getBinBandwidth() { + return bin_bandwidth; +} +void +SWGGLSpectrumData::setBinBandwidth(float bin_bandwidth) { + this->bin_bandwidth = bin_bandwidth; + this->m_bin_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrumData::getBins() { + return bins; +} +void +SWGGLSpectrumData::setBins(qint32 bins) { + this->bins = bins; + this->m_bins_isSet = true; +} + +QString* +SWGGLSpectrumData::getReduce() { + return reduce; +} +void +SWGGLSpectrumData::setReduce(QString* reduce) { + this->reduce = reduce; + this->m_reduce_isSet = true; +} + +QList* +SWGGLSpectrumData::getPower() { + return power; +} +void +SWGGLSpectrumData::setPower(QList* power) { + this->power = power; + this->m_power_isSet = true; +} + + +bool +SWGGLSpectrumData::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_center_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_fft_size_isSet){ + isObjectUpdated = true; break; + } + if(m_linear_isSet){ + isObjectUpdated = true; break; + } + if(updated && *updated != QString("")){ + isObjectUpdated = true; break; + } + if(m_start_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_stop_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bin_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_bins_isSet){ + isObjectUpdated = true; break; + } + if(reduce && *reduce != QString("")){ + isObjectUpdated = true; break; + } + if(m_power_isSet){ + isObjectUpdated = true; break; + } + if(power && (power->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.h new file mode 100644 index 000000000..80aad010f --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumData.h @@ -0,0 +1,120 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGGLSpectrumData.h + * + * A copy of the current power spectrum, reduced to the number of bins asked for so that the answer stays a sensible size whatever the FFT size. The spectrum is only computed while something is consuming it, a spectrum window or a websocket client, so updated says how old these values are and is absent if none has been produced yet. + */ + +#ifndef SWGGLSpectrumData_H_ +#define SWGGLSpectrumData_H_ + +#include + + +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGGLSpectrumData: public SWGObject { +public: + SWGGLSpectrumData(); + SWGGLSpectrumData(QString* json); + virtual ~SWGGLSpectrumData(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGGLSpectrumData* fromJson(QString &jsonString) override; + + qint64 getCenterFrequency(); + void setCenterFrequency(qint64 center_frequency); + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + qint32 getFftSize(); + void setFftSize(qint32 fft_size); + + qint32 getLinear(); + void setLinear(qint32 linear); + + QString* getUpdated(); + void setUpdated(QString* updated); + + qint64 getStartFrequency(); + void setStartFrequency(qint64 start_frequency); + + qint64 getStopFrequency(); + void setStopFrequency(qint64 stop_frequency); + + float getBinBandwidth(); + void setBinBandwidth(float bin_bandwidth); + + qint32 getBins(); + void setBins(qint32 bins); + + QString* getReduce(); + void setReduce(QString* reduce); + + QList* getPower(); + void setPower(QList* power); + + + virtual bool isSet() override; + +private: + qint64 center_frequency; + bool m_center_frequency_isSet; + + qint32 bandwidth; + bool m_bandwidth_isSet; + + qint32 fft_size; + bool m_fft_size_isSet; + + qint32 linear; + bool m_linear_isSet; + + QString* updated; + bool m_updated_isSet; + + qint64 start_frequency; + bool m_start_frequency_isSet; + + qint64 stop_frequency; + bool m_stop_frequency_isSet; + + float bin_bandwidth; + bool m_bin_bandwidth_isSet; + + qint32 bins; + bool m_bins_isSet; + + QString* reduce; + bool m_reduce_isSet; + + QList* power; + bool m_power_isSet; + +}; + +} + +#endif /* SWGGLSpectrumData_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp new file mode 100644 index 000000000..dd9ede0ed --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp @@ -0,0 +1,518 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGGLSpectrumHistory.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGGLSpectrumHistory::SWGGLSpectrumHistory(QString* json) { + init(); + this->fromJson(*json); +} + +SWGGLSpectrumHistory::SWGGLSpectrumHistory() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + rows = 0; + m_rows_isSet = false; + skipped_rows = 0; + m_skipped_rows_isSet = false; + first_time = nullptr; + m_first_time_isSet = false; + last_time = nullptr; + m_last_time_isSet = false; + seconds = 0.0f; + m_seconds_isSet = false; + floor_db = 0.0f; + m_floor_db_isSet = false; + threshold_db = 0.0f; + m_threshold_db_isSet = false; + max_db = new QList(); + m_max_db_isSet = false; + mean_db = new QList(); + m_mean_db_isSet = false; + occupancy = new QList(); + m_occupancy_isSet = false; + signal_count = 0; + m_signal_count_isSet = false; + signal_list = nullptr; + m_signal_list_isSet = false; +} + +SWGGLSpectrumHistory::~SWGGLSpectrumHistory() { + this->cleanup(); +} + +void +SWGGLSpectrumHistory::init() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + rows = 0; + m_rows_isSet = false; + skipped_rows = 0; + m_skipped_rows_isSet = false; + first_time = new QString(""); + m_first_time_isSet = false; + last_time = new QString(""); + m_last_time_isSet = false; + seconds = 0.0f; + m_seconds_isSet = false; + floor_db = 0.0f; + m_floor_db_isSet = false; + threshold_db = 0.0f; + m_threshold_db_isSet = false; + max_db = new QList(); + m_max_db_isSet = false; + mean_db = new QList(); + m_mean_db_isSet = false; + occupancy = new QList(); + m_occupancy_isSet = false; + signal_count = 0; + m_signal_count_isSet = false; + signal_list = new QList(); + m_signal_list_isSet = false; +} + +void +SWGGLSpectrumHistory::cleanup() { + + + + + + + + + if(first_time != nullptr) { + delete first_time; + } + if(last_time != nullptr) { + delete last_time; + } + + + + + + + + if(signal_list != nullptr) { + auto arr = signal_list; + for(auto o: *arr) { + delete o; + } + delete signal_list; + } +} + +SWGGLSpectrumHistory* +SWGGLSpectrumHistory::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGGLSpectrumHistory::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(¢er_frequency, pJson["centerFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&start_frequency, pJson["startFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&stop_frequency, pJson["stopFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bin_bandwidth, pJson["binBandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&bins, pJson["bins"], "qint32", ""); + + ::SWGSDRangel::setValue(&rows, pJson["rows"], "qint32", ""); + + ::SWGSDRangel::setValue(&skipped_rows, pJson["skippedRows"], "qint32", ""); + + ::SWGSDRangel::setValue(&first_time, pJson["firstTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_time, pJson["lastTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&seconds, pJson["seconds"], "float", ""); + + ::SWGSDRangel::setValue(&floor_db, pJson["floorDb"], "float", ""); + + ::SWGSDRangel::setValue(&threshold_db, pJson["thresholdDb"], "float", ""); + + + ::SWGSDRangel::setValue(&max_db, pJson["maxDb"], "QList", "float"); + + ::SWGSDRangel::setValue(&mean_db, pJson["meanDb"], "QList", "float"); + + ::SWGSDRangel::setValue(&occupancy, pJson["occupancy"], "QList", "float"); + ::SWGSDRangel::setValue(&signal_count, pJson["signalCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&signal_list, pJson["signalList"], "QList", "SWGSpectrumHistorySignal"); +} + +QString +SWGGLSpectrumHistory::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGGLSpectrumHistory::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_center_frequency_isSet){ + obj->insert("centerFrequency", QJsonValue(center_frequency)); + } + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + if(m_start_frequency_isSet){ + obj->insert("startFrequency", QJsonValue(start_frequency)); + } + if(m_stop_frequency_isSet){ + obj->insert("stopFrequency", QJsonValue(stop_frequency)); + } + if(m_bin_bandwidth_isSet){ + obj->insert("binBandwidth", QJsonValue(bin_bandwidth)); + } + if(m_bins_isSet){ + obj->insert("bins", QJsonValue(bins)); + } + if(m_rows_isSet){ + obj->insert("rows", QJsonValue(rows)); + } + if(m_skipped_rows_isSet){ + obj->insert("skippedRows", QJsonValue(skipped_rows)); + } + if(first_time != nullptr && *first_time != QString("")){ + toJsonValue(QString("firstTime"), first_time, obj, QString("QString")); + } + if(last_time != nullptr && *last_time != QString("")){ + toJsonValue(QString("lastTime"), last_time, obj, QString("QString")); + } + if(m_seconds_isSet){ + obj->insert("seconds", QJsonValue(seconds)); + } + if(m_floor_db_isSet){ + obj->insert("floorDb", QJsonValue(floor_db)); + } + if(m_threshold_db_isSet){ + obj->insert("thresholdDb", QJsonValue(threshold_db)); + } + if(max_db && max_db->size() > 0){ + toJsonArray((QList*)max_db, obj, "maxDb", ""); + } + if(mean_db && mean_db->size() > 0){ + toJsonArray((QList*)mean_db, obj, "meanDb", ""); + } + if(occupancy && occupancy->size() > 0){ + toJsonArray((QList*)occupancy, obj, "occupancy", ""); + } + if(m_signal_count_isSet){ + obj->insert("signalCount", QJsonValue(signal_count)); + } + if(signal_list && signal_list->size() > 0){ + toJsonArray((QList*)signal_list, obj, "signalList", "SWGSpectrumHistorySignal"); + } + + return obj; +} + +qint64 +SWGGLSpectrumHistory::getCenterFrequency() { + return center_frequency; +} +void +SWGGLSpectrumHistory::setCenterFrequency(qint64 center_frequency) { + this->center_frequency = center_frequency; + this->m_center_frequency_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBandwidth() { + return bandwidth; +} +void +SWGGLSpectrumHistory::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + +qint64 +SWGGLSpectrumHistory::getStartFrequency() { + return start_frequency; +} +void +SWGGLSpectrumHistory::setStartFrequency(qint64 start_frequency) { + this->start_frequency = start_frequency; + this->m_start_frequency_isSet = true; +} + +qint64 +SWGGLSpectrumHistory::getStopFrequency() { + return stop_frequency; +} +void +SWGGLSpectrumHistory::setStopFrequency(qint64 stop_frequency) { + this->stop_frequency = stop_frequency; + this->m_stop_frequency_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBinBandwidth() { + return bin_bandwidth; +} +void +SWGGLSpectrumHistory::setBinBandwidth(qint32 bin_bandwidth) { + this->bin_bandwidth = bin_bandwidth; + this->m_bin_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBins() { + return bins; +} +void +SWGGLSpectrumHistory::setBins(qint32 bins) { + this->bins = bins; + this->m_bins_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getRows() { + return rows; +} +void +SWGGLSpectrumHistory::setRows(qint32 rows) { + this->rows = rows; + this->m_rows_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getSkippedRows() { + return skipped_rows; +} +void +SWGGLSpectrumHistory::setSkippedRows(qint32 skipped_rows) { + this->skipped_rows = skipped_rows; + this->m_skipped_rows_isSet = true; +} + +QString* +SWGGLSpectrumHistory::getFirstTime() { + return first_time; +} +void +SWGGLSpectrumHistory::setFirstTime(QString* first_time) { + this->first_time = first_time; + this->m_first_time_isSet = true; +} + +QString* +SWGGLSpectrumHistory::getLastTime() { + return last_time; +} +void +SWGGLSpectrumHistory::setLastTime(QString* last_time) { + this->last_time = last_time; + this->m_last_time_isSet = true; +} + +float +SWGGLSpectrumHistory::getSeconds() { + return seconds; +} +void +SWGGLSpectrumHistory::setSeconds(float seconds) { + this->seconds = seconds; + this->m_seconds_isSet = true; +} + +float +SWGGLSpectrumHistory::getFloorDb() { + return floor_db; +} +void +SWGGLSpectrumHistory::setFloorDb(float floor_db) { + this->floor_db = floor_db; + this->m_floor_db_isSet = true; +} + +float +SWGGLSpectrumHistory::getThresholdDb() { + return threshold_db; +} +void +SWGGLSpectrumHistory::setThresholdDb(float threshold_db) { + this->threshold_db = threshold_db; + this->m_threshold_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getMaxDb() { + return max_db; +} +void +SWGGLSpectrumHistory::setMaxDb(QList* max_db) { + this->max_db = max_db; + this->m_max_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getMeanDb() { + return mean_db; +} +void +SWGGLSpectrumHistory::setMeanDb(QList* mean_db) { + this->mean_db = mean_db; + this->m_mean_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getOccupancy() { + return occupancy; +} +void +SWGGLSpectrumHistory::setOccupancy(QList* occupancy) { + this->occupancy = occupancy; + this->m_occupancy_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getSignalCount() { + return signal_count; +} +void +SWGGLSpectrumHistory::setSignalCount(qint32 signal_count) { + this->signal_count = signal_count; + this->m_signal_count_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getSignalList() { + return signal_list; +} +void +SWGGLSpectrumHistory::setSignalList(QList* signal_list) { + this->signal_list = signal_list; + this->m_signal_list_isSet = true; +} + + +bool +SWGGLSpectrumHistory::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_center_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_start_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_stop_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bin_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_bins_isSet){ + isObjectUpdated = true; break; + } + if(m_rows_isSet){ + isObjectUpdated = true; break; + } + if(m_skipped_rows_isSet){ + isObjectUpdated = true; break; + } + if(first_time && *first_time != QString("")){ + isObjectUpdated = true; break; + } + if(last_time && *last_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_seconds_isSet){ + isObjectUpdated = true; break; + } + if(m_floor_db_isSet){ + isObjectUpdated = true; break; + } + if(m_threshold_db_isSet){ + isObjectUpdated = true; break; + } + if(m_max_db_isSet){ + isObjectUpdated = true; break; + } + if(max_db && (max_db->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_mean_db_isSet){ + isObjectUpdated = true; break; + } + if(mean_db && (mean_db->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_occupancy_isSet){ + isObjectUpdated = true; break; + } + if(occupancy && (occupancy->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_signal_count_isSet){ + isObjectUpdated = true; break; + } + if(signal_list && (signal_list->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h new file mode 100644 index 000000000..e13ca5ed5 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h @@ -0,0 +1,163 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGGLSpectrumHistory.h + * + * Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted. + */ + +#ifndef SWGGLSpectrumHistory_H_ +#define SWGGLSpectrumHistory_H_ + +#include + + +#include "SWGSpectrumHistorySignal.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGGLSpectrumHistory: public SWGObject { +public: + SWGGLSpectrumHistory(); + SWGGLSpectrumHistory(QString* json); + virtual ~SWGGLSpectrumHistory(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGGLSpectrumHistory* fromJson(QString &jsonString) override; + + qint64 getCenterFrequency(); + void setCenterFrequency(qint64 center_frequency); + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + qint64 getStartFrequency(); + void setStartFrequency(qint64 start_frequency); + + qint64 getStopFrequency(); + void setStopFrequency(qint64 stop_frequency); + + qint32 getBinBandwidth(); + void setBinBandwidth(qint32 bin_bandwidth); + + qint32 getBins(); + void setBins(qint32 bins); + + qint32 getRows(); + void setRows(qint32 rows); + + qint32 getSkippedRows(); + void setSkippedRows(qint32 skipped_rows); + + QString* getFirstTime(); + void setFirstTime(QString* first_time); + + QString* getLastTime(); + void setLastTime(QString* last_time); + + float getSeconds(); + void setSeconds(float seconds); + + float getFloorDb(); + void setFloorDb(float floor_db); + + float getThresholdDb(); + void setThresholdDb(float threshold_db); + + QList* getMaxDb(); + void setMaxDb(QList* max_db); + + QList* getMeanDb(); + void setMeanDb(QList* mean_db); + + QList* getOccupancy(); + void setOccupancy(QList* occupancy); + + qint32 getSignalCount(); + void setSignalCount(qint32 signal_count); + + QList* getSignalList(); + void setSignalList(QList* signal_list); + + + virtual bool isSet() override; + +private: + qint64 center_frequency; + bool m_center_frequency_isSet; + + qint32 bandwidth; + bool m_bandwidth_isSet; + + qint64 start_frequency; + bool m_start_frequency_isSet; + + qint64 stop_frequency; + bool m_stop_frequency_isSet; + + qint32 bin_bandwidth; + bool m_bin_bandwidth_isSet; + + qint32 bins; + bool m_bins_isSet; + + qint32 rows; + bool m_rows_isSet; + + qint32 skipped_rows; + bool m_skipped_rows_isSet; + + QString* first_time; + bool m_first_time_isSet; + + QString* last_time; + bool m_last_time_isSet; + + float seconds; + bool m_seconds_isSet; + + float floor_db; + bool m_floor_db_isSet; + + float threshold_db; + bool m_threshold_db_isSet; + + QList* max_db; + bool m_max_db_isSet; + + QList* mean_db; + bool m_mean_db_isSet; + + QList* occupancy; + bool m_occupancy_isSet; + + qint32 signal_count; + bool m_signal_count_isSet; + + QList* signal_list; + bool m_signal_list_isSet; + +}; + +} + +#endif /* SWGGLSpectrumHistory_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.cpp new file mode 100644 index 000000000..8fcfe9c57 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.cpp @@ -0,0 +1,484 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGGLSpectrumReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGGLSpectrumReport::SWGGLSpectrumReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGGLSpectrumReport::SWGGLSpectrumReport() { + measurement = 0; + m_measurement_isSet = false; + updated = nullptr; + m_updated_isSet = false; + peaks = nullptr; + m_peaks_isSet = false; + channel_power = 0.0f; + m_channel_power_isSet = false; + adj_channel_power_left = 0.0f; + m_adj_channel_power_left_isSet = false; + adj_channel_power_left_ratio = 0.0f; + m_adj_channel_power_left_ratio_isSet = false; + adj_channel_power_centre = 0.0f; + m_adj_channel_power_centre_isSet = false; + adj_channel_power_right = 0.0f; + m_adj_channel_power_right_isSet = false; + adj_channel_power_right_ratio = 0.0f; + m_adj_channel_power_right_ratio_isSet = false; + occupied_bandwidth = 0.0f; + m_occupied_bandwidth_isSet = false; + bandwidth3d_b = 0.0f; + m_bandwidth3d_b_isSet = false; + snr = 0.0f; + m_snr_isSet = false; + snfr = 0.0f; + m_snfr_isSet = false; + thd = 0.0f; + m_thd_isSet = false; + thd_plus_noise = 0.0f; + m_thd_plus_noise_isSet = false; + sinad = 0.0f; + m_sinad_isSet = false; + sfdr = 0.0f; + m_sfdr_isSet = false; +} + +SWGGLSpectrumReport::~SWGGLSpectrumReport() { + this->cleanup(); +} + +void +SWGGLSpectrumReport::init() { + measurement = 0; + m_measurement_isSet = false; + updated = new QString(""); + m_updated_isSet = false; + peaks = new QList(); + m_peaks_isSet = false; + channel_power = 0.0f; + m_channel_power_isSet = false; + adj_channel_power_left = 0.0f; + m_adj_channel_power_left_isSet = false; + adj_channel_power_left_ratio = 0.0f; + m_adj_channel_power_left_ratio_isSet = false; + adj_channel_power_centre = 0.0f; + m_adj_channel_power_centre_isSet = false; + adj_channel_power_right = 0.0f; + m_adj_channel_power_right_isSet = false; + adj_channel_power_right_ratio = 0.0f; + m_adj_channel_power_right_ratio_isSet = false; + occupied_bandwidth = 0.0f; + m_occupied_bandwidth_isSet = false; + bandwidth3d_b = 0.0f; + m_bandwidth3d_b_isSet = false; + snr = 0.0f; + m_snr_isSet = false; + snfr = 0.0f; + m_snfr_isSet = false; + thd = 0.0f; + m_thd_isSet = false; + thd_plus_noise = 0.0f; + m_thd_plus_noise_isSet = false; + sinad = 0.0f; + m_sinad_isSet = false; + sfdr = 0.0f; + m_sfdr_isSet = false; +} + +void +SWGGLSpectrumReport::cleanup() { + + if(updated != nullptr) { + delete updated; + } + if(peaks != nullptr) { + auto arr = peaks; + for(auto o: *arr) { + delete o; + } + delete peaks; + } + + + + + + + + + + + + + + +} + +SWGGLSpectrumReport* +SWGGLSpectrumReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGGLSpectrumReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&measurement, pJson["measurement"], "qint32", ""); + + ::SWGSDRangel::setValue(&updated, pJson["updated"], "QString", "QString"); + + + ::SWGSDRangel::setValue(&peaks, pJson["peaks"], "QList", "SWGSpectrumPeak"); + ::SWGSDRangel::setValue(&channel_power, pJson["channelPower"], "float", ""); + + ::SWGSDRangel::setValue(&adj_channel_power_left, pJson["adjChannelPowerLeft"], "float", ""); + + ::SWGSDRangel::setValue(&adj_channel_power_left_ratio, pJson["adjChannelPowerLeftRatio"], "float", ""); + + ::SWGSDRangel::setValue(&adj_channel_power_centre, pJson["adjChannelPowerCentre"], "float", ""); + + ::SWGSDRangel::setValue(&adj_channel_power_right, pJson["adjChannelPowerRight"], "float", ""); + + ::SWGSDRangel::setValue(&adj_channel_power_right_ratio, pJson["adjChannelPowerRightRatio"], "float", ""); + + ::SWGSDRangel::setValue(&occupied_bandwidth, pJson["occupiedBandwidth"], "float", ""); + + ::SWGSDRangel::setValue(&bandwidth3d_b, pJson["bandwidth3dB"], "float", ""); + + ::SWGSDRangel::setValue(&snr, pJson["snr"], "float", ""); + + ::SWGSDRangel::setValue(&snfr, pJson["snfr"], "float", ""); + + ::SWGSDRangel::setValue(&thd, pJson["thd"], "float", ""); + + ::SWGSDRangel::setValue(&thd_plus_noise, pJson["thdPlusNoise"], "float", ""); + + ::SWGSDRangel::setValue(&sinad, pJson["sinad"], "float", ""); + + ::SWGSDRangel::setValue(&sfdr, pJson["sfdr"], "float", ""); + +} + +QString +SWGGLSpectrumReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGGLSpectrumReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_measurement_isSet){ + obj->insert("measurement", QJsonValue(measurement)); + } + if(updated != nullptr && *updated != QString("")){ + toJsonValue(QString("updated"), updated, obj, QString("QString")); + } + if(peaks && peaks->size() > 0){ + toJsonArray((QList*)peaks, obj, "peaks", "SWGSpectrumPeak"); + } + if(m_channel_power_isSet){ + obj->insert("channelPower", QJsonValue(channel_power)); + } + if(m_adj_channel_power_left_isSet){ + obj->insert("adjChannelPowerLeft", QJsonValue(adj_channel_power_left)); + } + if(m_adj_channel_power_left_ratio_isSet){ + obj->insert("adjChannelPowerLeftRatio", QJsonValue(adj_channel_power_left_ratio)); + } + if(m_adj_channel_power_centre_isSet){ + obj->insert("adjChannelPowerCentre", QJsonValue(adj_channel_power_centre)); + } + if(m_adj_channel_power_right_isSet){ + obj->insert("adjChannelPowerRight", QJsonValue(adj_channel_power_right)); + } + if(m_adj_channel_power_right_ratio_isSet){ + obj->insert("adjChannelPowerRightRatio", QJsonValue(adj_channel_power_right_ratio)); + } + if(m_occupied_bandwidth_isSet){ + obj->insert("occupiedBandwidth", QJsonValue(occupied_bandwidth)); + } + if(m_bandwidth3d_b_isSet){ + obj->insert("bandwidth3dB", QJsonValue(bandwidth3d_b)); + } + if(m_snr_isSet){ + obj->insert("snr", QJsonValue(snr)); + } + if(m_snfr_isSet){ + obj->insert("snfr", QJsonValue(snfr)); + } + if(m_thd_isSet){ + obj->insert("thd", QJsonValue(thd)); + } + if(m_thd_plus_noise_isSet){ + obj->insert("thdPlusNoise", QJsonValue(thd_plus_noise)); + } + if(m_sinad_isSet){ + obj->insert("sinad", QJsonValue(sinad)); + } + if(m_sfdr_isSet){ + obj->insert("sfdr", QJsonValue(sfdr)); + } + + return obj; +} + +qint32 +SWGGLSpectrumReport::getMeasurement() { + return measurement; +} +void +SWGGLSpectrumReport::setMeasurement(qint32 measurement) { + this->measurement = measurement; + this->m_measurement_isSet = true; +} + +QString* +SWGGLSpectrumReport::getUpdated() { + return updated; +} +void +SWGGLSpectrumReport::setUpdated(QString* updated) { + this->updated = updated; + this->m_updated_isSet = true; +} + +QList* +SWGGLSpectrumReport::getPeaks() { + return peaks; +} +void +SWGGLSpectrumReport::setPeaks(QList* peaks) { + this->peaks = peaks; + this->m_peaks_isSet = true; +} + +float +SWGGLSpectrumReport::getChannelPower() { + return channel_power; +} +void +SWGGLSpectrumReport::setChannelPower(float channel_power) { + this->channel_power = channel_power; + this->m_channel_power_isSet = true; +} + +float +SWGGLSpectrumReport::getAdjChannelPowerLeft() { + return adj_channel_power_left; +} +void +SWGGLSpectrumReport::setAdjChannelPowerLeft(float adj_channel_power_left) { + this->adj_channel_power_left = adj_channel_power_left; + this->m_adj_channel_power_left_isSet = true; +} + +float +SWGGLSpectrumReport::getAdjChannelPowerLeftRatio() { + return adj_channel_power_left_ratio; +} +void +SWGGLSpectrumReport::setAdjChannelPowerLeftRatio(float adj_channel_power_left_ratio) { + this->adj_channel_power_left_ratio = adj_channel_power_left_ratio; + this->m_adj_channel_power_left_ratio_isSet = true; +} + +float +SWGGLSpectrumReport::getAdjChannelPowerCentre() { + return adj_channel_power_centre; +} +void +SWGGLSpectrumReport::setAdjChannelPowerCentre(float adj_channel_power_centre) { + this->adj_channel_power_centre = adj_channel_power_centre; + this->m_adj_channel_power_centre_isSet = true; +} + +float +SWGGLSpectrumReport::getAdjChannelPowerRight() { + return adj_channel_power_right; +} +void +SWGGLSpectrumReport::setAdjChannelPowerRight(float adj_channel_power_right) { + this->adj_channel_power_right = adj_channel_power_right; + this->m_adj_channel_power_right_isSet = true; +} + +float +SWGGLSpectrumReport::getAdjChannelPowerRightRatio() { + return adj_channel_power_right_ratio; +} +void +SWGGLSpectrumReport::setAdjChannelPowerRightRatio(float adj_channel_power_right_ratio) { + this->adj_channel_power_right_ratio = adj_channel_power_right_ratio; + this->m_adj_channel_power_right_ratio_isSet = true; +} + +float +SWGGLSpectrumReport::getOccupiedBandwidth() { + return occupied_bandwidth; +} +void +SWGGLSpectrumReport::setOccupiedBandwidth(float occupied_bandwidth) { + this->occupied_bandwidth = occupied_bandwidth; + this->m_occupied_bandwidth_isSet = true; +} + +float +SWGGLSpectrumReport::getBandwidth3dB() { + return bandwidth3d_b; +} +void +SWGGLSpectrumReport::setBandwidth3dB(float bandwidth3d_b) { + this->bandwidth3d_b = bandwidth3d_b; + this->m_bandwidth3d_b_isSet = true; +} + +float +SWGGLSpectrumReport::getSnr() { + return snr; +} +void +SWGGLSpectrumReport::setSnr(float snr) { + this->snr = snr; + this->m_snr_isSet = true; +} + +float +SWGGLSpectrumReport::getSnfr() { + return snfr; +} +void +SWGGLSpectrumReport::setSnfr(float snfr) { + this->snfr = snfr; + this->m_snfr_isSet = true; +} + +float +SWGGLSpectrumReport::getThd() { + return thd; +} +void +SWGGLSpectrumReport::setThd(float thd) { + this->thd = thd; + this->m_thd_isSet = true; +} + +float +SWGGLSpectrumReport::getThdPlusNoise() { + return thd_plus_noise; +} +void +SWGGLSpectrumReport::setThdPlusNoise(float thd_plus_noise) { + this->thd_plus_noise = thd_plus_noise; + this->m_thd_plus_noise_isSet = true; +} + +float +SWGGLSpectrumReport::getSinad() { + return sinad; +} +void +SWGGLSpectrumReport::setSinad(float sinad) { + this->sinad = sinad; + this->m_sinad_isSet = true; +} + +float +SWGGLSpectrumReport::getSfdr() { + return sfdr; +} +void +SWGGLSpectrumReport::setSfdr(float sfdr) { + this->sfdr = sfdr; + this->m_sfdr_isSet = true; +} + + +bool +SWGGLSpectrumReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_measurement_isSet){ + isObjectUpdated = true; break; + } + if(updated && *updated != QString("")){ + isObjectUpdated = true; break; + } + if(peaks && (peaks->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_channel_power_isSet){ + isObjectUpdated = true; break; + } + if(m_adj_channel_power_left_isSet){ + isObjectUpdated = true; break; + } + if(m_adj_channel_power_left_ratio_isSet){ + isObjectUpdated = true; break; + } + if(m_adj_channel_power_centre_isSet){ + isObjectUpdated = true; break; + } + if(m_adj_channel_power_right_isSet){ + isObjectUpdated = true; break; + } + if(m_adj_channel_power_right_ratio_isSet){ + isObjectUpdated = true; break; + } + if(m_occupied_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth3d_b_isSet){ + isObjectUpdated = true; break; + } + if(m_snr_isSet){ + isObjectUpdated = true; break; + } + if(m_snfr_isSet){ + isObjectUpdated = true; break; + } + if(m_thd_isSet){ + isObjectUpdated = true; break; + } + if(m_thd_plus_noise_isSet){ + isObjectUpdated = true; break; + } + if(m_sinad_isSet){ + isObjectUpdated = true; break; + } + if(m_sfdr_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.h new file mode 100644 index 000000000..b2e1483e1 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumReport.h @@ -0,0 +1,157 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGGLSpectrumReport.h + * + * The latest values of whichever spectrum measurement is switched on. Which fields are present depends on the measurement: with none selected nothing is measured at all and only the measurement field is returned. The figures are those of the spectrum as displayed, so they match the window rather than the full span when it is zoomed, and they are only produced by a running GUI. + */ + +#ifndef SWGGLSpectrumReport_H_ +#define SWGGLSpectrumReport_H_ + +#include + + +#include "SWGSpectrumPeak.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGGLSpectrumReport: public SWGObject { +public: + SWGGLSpectrumReport(); + SWGGLSpectrumReport(QString* json); + virtual ~SWGGLSpectrumReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGGLSpectrumReport* fromJson(QString &jsonString) override; + + qint32 getMeasurement(); + void setMeasurement(qint32 measurement); + + QString* getUpdated(); + void setUpdated(QString* updated); + + QList* getPeaks(); + void setPeaks(QList* peaks); + + float getChannelPower(); + void setChannelPower(float channel_power); + + float getAdjChannelPowerLeft(); + void setAdjChannelPowerLeft(float adj_channel_power_left); + + float getAdjChannelPowerLeftRatio(); + void setAdjChannelPowerLeftRatio(float adj_channel_power_left_ratio); + + float getAdjChannelPowerCentre(); + void setAdjChannelPowerCentre(float adj_channel_power_centre); + + float getAdjChannelPowerRight(); + void setAdjChannelPowerRight(float adj_channel_power_right); + + float getAdjChannelPowerRightRatio(); + void setAdjChannelPowerRightRatio(float adj_channel_power_right_ratio); + + float getOccupiedBandwidth(); + void setOccupiedBandwidth(float occupied_bandwidth); + + float getBandwidth3dB(); + void setBandwidth3dB(float bandwidth3d_b); + + float getSnr(); + void setSnr(float snr); + + float getSnfr(); + void setSnfr(float snfr); + + float getThd(); + void setThd(float thd); + + float getThdPlusNoise(); + void setThdPlusNoise(float thd_plus_noise); + + float getSinad(); + void setSinad(float sinad); + + float getSfdr(); + void setSfdr(float sfdr); + + + virtual bool isSet() override; + +private: + qint32 measurement; + bool m_measurement_isSet; + + QString* updated; + bool m_updated_isSet; + + QList* peaks; + bool m_peaks_isSet; + + float channel_power; + bool m_channel_power_isSet; + + float adj_channel_power_left; + bool m_adj_channel_power_left_isSet; + + float adj_channel_power_left_ratio; + bool m_adj_channel_power_left_ratio_isSet; + + float adj_channel_power_centre; + bool m_adj_channel_power_centre_isSet; + + float adj_channel_power_right; + bool m_adj_channel_power_right_isSet; + + float adj_channel_power_right_ratio; + bool m_adj_channel_power_right_ratio_isSet; + + float occupied_bandwidth; + bool m_occupied_bandwidth_isSet; + + float bandwidth3d_b; + bool m_bandwidth3d_b_isSet; + + float snr; + bool m_snr_isSet; + + float snfr; + bool m_snfr_isSet; + + float thd; + bool m_thd_isSet; + + float thd_plus_noise; + bool m_thd_plus_noise_isSet; + + float sinad; + bool m_sinad_isSet; + + float sfdr; + bool m_sfdr_isSet; + +}; + +} + +#endif /* SWGGLSpectrumReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp index 08f2ff927..8fdf437cd 100644 --- a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp @@ -2199,5 +2199,57 @@ SWGInstanceApi::instanceSummaryCallback(SWGHttpRequestWorker * worker) { } } +void +SWGInstanceApi::instanceWindowsGet() { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/windows"); + + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGInstanceApi::instanceWindowsGetCallback); + + worker->execute(&input); +} + +void +SWGInstanceApi::instanceWindowsGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGWindowList* output = static_cast(create(json, QString("SWGWindowList"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit instanceWindowsGetSignal(output); + } else { + emit instanceWindowsGetSignalE(output, error_type, error_str); + emit instanceWindowsGetSignalEFull(worker, error_type, error_str); + } +} + } diff --git a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h index 3ea0cb05d..e3893e98d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h @@ -39,6 +39,7 @@ #include "SWGPresetTransfer.h" #include "SWGPresets.h" #include "SWGSuccessResponse.h" +#include "SWGWindowList.h" #include @@ -96,6 +97,7 @@ public: void instancePresetPost(SWGPresetTransfer& body); void instancePresetPut(SWGPresetTransfer& body); void instanceSummary(); + void instanceWindowsGet(); private: void instanceAudioGetCallback (SWGHttpRequestWorker * worker); @@ -138,6 +140,7 @@ private: void instancePresetPostCallback (SWGHttpRequestWorker * worker); void instancePresetPutCallback (SWGHttpRequestWorker * worker); void instanceSummaryCallback (SWGHttpRequestWorker * worker); + void instanceWindowsGetCallback (SWGHttpRequestWorker * worker); signals: void instanceAudioGetSignal(SWGAudioDevices* summary); @@ -180,6 +183,7 @@ signals: void instancePresetPostSignal(SWGPresetIdentifier* summary); void instancePresetPutSignal(SWGPresetIdentifier* summary); void instanceSummarySignal(SWGInstanceSummaryResponse* summary); + void instanceWindowsGetSignal(SWGWindowList* summary); void instanceAudioGetSignalE(SWGAudioDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputCleanupPatchSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -221,6 +225,7 @@ signals: void instancePresetPostSignalE(SWGPresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instancePresetPutSignalE(SWGPresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceSummarySignalE(SWGInstanceSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void instanceWindowsGetSignalE(SWGWindowList* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputCleanupPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); @@ -262,6 +267,7 @@ signals: void instancePresetPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instancePresetPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceSummarySignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void instanceWindowsGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); }; diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.cpp b/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.cpp new file mode 100644 index 000000000..001c7c388 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.cpp @@ -0,0 +1,108 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGMCPServerActions.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGMCPServerActions::SWGMCPServerActions(QString* json) { + init(); + this->fromJson(*json); +} + +SWGMCPServerActions::SWGMCPServerActions() { + run = 0; + m_run_isSet = false; +} + +SWGMCPServerActions::~SWGMCPServerActions() { + this->cleanup(); +} + +void +SWGMCPServerActions::init() { + run = 0; + m_run_isSet = false; +} + +void +SWGMCPServerActions::cleanup() { + +} + +SWGMCPServerActions* +SWGMCPServerActions::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGMCPServerActions::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&run, pJson["run"], "qint32", ""); + +} + +QString +SWGMCPServerActions::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGMCPServerActions::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_run_isSet){ + obj->insert("run", QJsonValue(run)); + } + + return obj; +} + +qint32 +SWGMCPServerActions::getRun() { + return run; +} +void +SWGMCPServerActions::setRun(qint32 run) { + this->run = run; + this->m_run_isSet = true; +} + + +bool +SWGMCPServerActions::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_run_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.h b/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.h new file mode 100644 index 000000000..b335414e8 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerActions.h @@ -0,0 +1,58 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGMCPServerActions.h + * + * MCP server actions + */ + +#ifndef SWGMCPServerActions_H_ +#define SWGMCPServerActions_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGMCPServerActions: public SWGObject { +public: + SWGMCPServerActions(); + SWGMCPServerActions(QString* json); + virtual ~SWGMCPServerActions(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGMCPServerActions* fromJson(QString &jsonString) override; + + qint32 getRun(); + void setRun(qint32 run); + + + virtual bool isSet() override; + +private: + qint32 run; + bool m_run_isSet; + +}; + +} + +#endif /* SWGMCPServerActions_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.cpp b/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.cpp new file mode 100644 index 000000000..669a26caf --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.cpp @@ -0,0 +1,131 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGMCPServerReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGMCPServerReport::SWGMCPServerReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGMCPServerReport::SWGMCPServerReport() { + running_state = 0; + m_running_state_isSet = false; + request_count = 0; + m_request_count_isSet = false; +} + +SWGMCPServerReport::~SWGMCPServerReport() { + this->cleanup(); +} + +void +SWGMCPServerReport::init() { + running_state = 0; + m_running_state_isSet = false; + request_count = 0; + m_request_count_isSet = false; +} + +void +SWGMCPServerReport::cleanup() { + + +} + +SWGMCPServerReport* +SWGMCPServerReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGMCPServerReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&running_state, pJson["runningState"], "qint32", ""); + + ::SWGSDRangel::setValue(&request_count, pJson["requestCount"], "qint32", ""); + +} + +QString +SWGMCPServerReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGMCPServerReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_running_state_isSet){ + obj->insert("runningState", QJsonValue(running_state)); + } + if(m_request_count_isSet){ + obj->insert("requestCount", QJsonValue(request_count)); + } + + return obj; +} + +qint32 +SWGMCPServerReport::getRunningState() { + return running_state; +} +void +SWGMCPServerReport::setRunningState(qint32 running_state) { + this->running_state = running_state; + this->m_running_state_isSet = true; +} + +qint32 +SWGMCPServerReport::getRequestCount() { + return request_count; +} +void +SWGMCPServerReport::setRequestCount(qint32 request_count) { + this->request_count = request_count; + this->m_request_count_isSet = true; +} + + +bool +SWGMCPServerReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_running_state_isSet){ + isObjectUpdated = true; break; + } + if(m_request_count_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.h b/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.h new file mode 100644 index 000000000..f43a652fd --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerReport.h @@ -0,0 +1,64 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGMCPServerReport.h + * + * MCP server report + */ + +#ifndef SWGMCPServerReport_H_ +#define SWGMCPServerReport_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGMCPServerReport: public SWGObject { +public: + SWGMCPServerReport(); + SWGMCPServerReport(QString* json); + virtual ~SWGMCPServerReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGMCPServerReport* fromJson(QString &jsonString) override; + + qint32 getRunningState(); + void setRunningState(qint32 running_state); + + qint32 getRequestCount(); + void setRequestCount(qint32 request_count); + + + virtual bool isSet() override; + +private: + qint32 running_state; + bool m_running_state_isSet; + + qint32 request_count; + bool m_request_count_isSet; + +}; + +} + +#endif /* SWGMCPServerReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.cpp new file mode 100644 index 000000000..51a47975e --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.cpp @@ -0,0 +1,373 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGMCPServerSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGMCPServerSettings::SWGMCPServerSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGMCPServerSettings::SWGMCPServerSettings() { + address = nullptr; + m_address_isSet = false; + port = 0; + m_port_isSet = false; + token = nullptr; + m_token_isSet = false; + capture_dir = nullptr; + m_capture_dir_isSet = false; + title = nullptr; + m_title_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = nullptr; + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_feature_set_index = 0; + m_reverse_api_feature_set_index_isSet = false; + reverse_api_feature_index = 0; + m_reverse_api_feature_index_isSet = false; + rollup_state = nullptr; + m_rollup_state_isSet = false; +} + +SWGMCPServerSettings::~SWGMCPServerSettings() { + this->cleanup(); +} + +void +SWGMCPServerSettings::init() { + address = new QString(""); + m_address_isSet = false; + port = 0; + m_port_isSet = false; + token = new QString(""); + m_token_isSet = false; + capture_dir = new QString(""); + m_capture_dir_isSet = false; + title = new QString(""); + m_title_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = new QString(""); + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_feature_set_index = 0; + m_reverse_api_feature_set_index_isSet = false; + reverse_api_feature_index = 0; + m_reverse_api_feature_index_isSet = false; + rollup_state = new SWGRollupState(); + m_rollup_state_isSet = false; +} + +void +SWGMCPServerSettings::cleanup() { + if(address != nullptr) { + delete address; + } + + if(token != nullptr) { + delete token; + } + if(capture_dir != nullptr) { + delete capture_dir; + } + if(title != nullptr) { + delete title; + } + + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + + if(rollup_state != nullptr) { + delete rollup_state; + } +} + +SWGMCPServerSettings* +SWGMCPServerSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGMCPServerSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&address, pJson["address"], "QString", "QString"); + + ::SWGSDRangel::setValue(&port, pJson["port"], "qint32", ""); + + ::SWGSDRangel::setValue(&token, pJson["token"], "QString", "QString"); + + ::SWGSDRangel::setValue(&capture_dir, pJson["captureDir"], "QString", "QString"); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); + + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); + + ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_feature_set_index, pJson["reverseAPIFeatureSetIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_feature_index, pJson["reverseAPIFeatureIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState"); + +} + +QString +SWGMCPServerSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGMCPServerSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(address != nullptr && *address != QString("")){ + toJsonValue(QString("address"), address, obj, QString("QString")); + } + if(m_port_isSet){ + obj->insert("port", QJsonValue(port)); + } + if(token != nullptr && *token != QString("")){ + toJsonValue(QString("token"), token, obj, QString("QString")); + } + if(capture_dir != nullptr && *capture_dir != QString("")){ + toJsonValue(QString("captureDir"), capture_dir, obj, QString("QString")); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_rgb_color_isSet){ + obj->insert("rgbColor", QJsonValue(rgb_color)); + } + if(m_use_reverse_api_isSet){ + obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); + } + if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ + toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); + } + if(m_reverse_api_port_isSet){ + obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); + } + if(m_reverse_api_feature_set_index_isSet){ + obj->insert("reverseAPIFeatureSetIndex", QJsonValue(reverse_api_feature_set_index)); + } + if(m_reverse_api_feature_index_isSet){ + obj->insert("reverseAPIFeatureIndex", QJsonValue(reverse_api_feature_index)); + } + if((rollup_state != nullptr) && (rollup_state->isSet())){ + toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); + } + + return obj; +} + +QString* +SWGMCPServerSettings::getAddress() { + return address; +} +void +SWGMCPServerSettings::setAddress(QString* address) { + this->address = address; + this->m_address_isSet = true; +} + +qint32 +SWGMCPServerSettings::getPort() { + return port; +} +void +SWGMCPServerSettings::setPort(qint32 port) { + this->port = port; + this->m_port_isSet = true; +} + +QString* +SWGMCPServerSettings::getToken() { + return token; +} +void +SWGMCPServerSettings::setToken(QString* token) { + this->token = token; + this->m_token_isSet = true; +} + +QString* +SWGMCPServerSettings::getCaptureDir() { + return capture_dir; +} +void +SWGMCPServerSettings::setCaptureDir(QString* capture_dir) { + this->capture_dir = capture_dir; + this->m_capture_dir_isSet = true; +} + +QString* +SWGMCPServerSettings::getTitle() { + return title; +} +void +SWGMCPServerSettings::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGMCPServerSettings::getRgbColor() { + return rgb_color; +} +void +SWGMCPServerSettings::setRgbColor(qint32 rgb_color) { + this->rgb_color = rgb_color; + this->m_rgb_color_isSet = true; +} + +qint32 +SWGMCPServerSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGMCPServerSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGMCPServerSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGMCPServerSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGMCPServerSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGMCPServerSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGMCPServerSettings::getReverseApiFeatureSetIndex() { + return reverse_api_feature_set_index; +} +void +SWGMCPServerSettings::setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index) { + this->reverse_api_feature_set_index = reverse_api_feature_set_index; + this->m_reverse_api_feature_set_index_isSet = true; +} + +qint32 +SWGMCPServerSettings::getReverseApiFeatureIndex() { + return reverse_api_feature_index; +} +void +SWGMCPServerSettings::setReverseApiFeatureIndex(qint32 reverse_api_feature_index) { + this->reverse_api_feature_index = reverse_api_feature_index; + this->m_reverse_api_feature_index_isSet = true; +} + +SWGRollupState* +SWGMCPServerSettings::getRollupState() { + return rollup_state; +} +void +SWGMCPServerSettings::setRollupState(SWGRollupState* rollup_state) { + this->rollup_state = rollup_state; + this->m_rollup_state_isSet = true; +} + + +bool +SWGMCPServerSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(address && *address != QString("")){ + isObjectUpdated = true; break; + } + if(m_port_isSet){ + isObjectUpdated = true; break; + } + if(token && *token != QString("")){ + isObjectUpdated = true; break; + } + if(capture_dir && *capture_dir != QString("")){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_rgb_color_isSet){ + isObjectUpdated = true; break; + } + if(m_use_reverse_api_isSet){ + isObjectUpdated = true; break; + } + if(reverse_api_address && *reverse_api_address != QString("")){ + isObjectUpdated = true; break; + } + if(m_reverse_api_port_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_feature_set_index_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_feature_index_isSet){ + isObjectUpdated = true; break; + } + if(rollup_state && rollup_state->isSet()){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.h b/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.h new file mode 100644 index 000000000..efa23a22f --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMCPServerSettings.h @@ -0,0 +1,126 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGMCPServerSettings.h + * + * MCP (Model Context Protocol) server settings + */ + +#ifndef SWGMCPServerSettings_H_ +#define SWGMCPServerSettings_H_ + +#include + + +#include "SWGRollupState.h" +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGMCPServerSettings: public SWGObject { +public: + SWGMCPServerSettings(); + SWGMCPServerSettings(QString* json); + virtual ~SWGMCPServerSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGMCPServerSettings* fromJson(QString &jsonString) override; + + QString* getAddress(); + void setAddress(QString* address); + + qint32 getPort(); + void setPort(qint32 port); + + QString* getToken(); + void setToken(QString* token); + + QString* getCaptureDir(); + void setCaptureDir(QString* capture_dir); + + QString* getTitle(); + void setTitle(QString* title); + + qint32 getRgbColor(); + void setRgbColor(qint32 rgb_color); + + qint32 getUseReverseApi(); + void setUseReverseApi(qint32 use_reverse_api); + + QString* getReverseApiAddress(); + void setReverseApiAddress(QString* reverse_api_address); + + qint32 getReverseApiPort(); + void setReverseApiPort(qint32 reverse_api_port); + + qint32 getReverseApiFeatureSetIndex(); + void setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index); + + qint32 getReverseApiFeatureIndex(); + void setReverseApiFeatureIndex(qint32 reverse_api_feature_index); + + SWGRollupState* getRollupState(); + void setRollupState(SWGRollupState* rollup_state); + + + virtual bool isSet() override; + +private: + QString* address; + bool m_address_isSet; + + qint32 port; + bool m_port_isSet; + + QString* token; + bool m_token_isSet; + + QString* capture_dir; + bool m_capture_dir_isSet; + + QString* title; + bool m_title_isSet; + + qint32 rgb_color; + bool m_rgb_color_isSet; + + qint32 use_reverse_api; + bool m_use_reverse_api_isSet; + + QString* reverse_api_address; + bool m_reverse_api_address_isSet; + + qint32 reverse_api_port; + bool m_reverse_api_port_isSet; + + qint32 reverse_api_feature_set_index; + bool m_reverse_api_feature_set_index_isSet; + + qint32 reverse_api_feature_index; + bool m_reverse_api_feature_index_isSet; + + SWGRollupState* rollup_state; + bool m_rollup_state_isSet; + +}; + +} + +#endif /* SWGMCPServerSettings_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGMapSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGMapSettings.cpp index 336f11aa6..ae7c3c314 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMapSettings.cpp @@ -30,8 +30,76 @@ SWGMapSettings::SWGMapSettings(QString* json) { SWGMapSettings::SWGMapSettings() { display_names = 0; m_display_names_isSet = false; + map2_d_enabled = 0; + m_map2_d_enabled_isSet = false; + map3_d_enabled = 0; + m_map3_d_enabled_isSet = false; + map_provider = nullptr; + m_map_provider_isSet = false; + map_type = nullptr; + m_map_type_isSet = false; + osm_url = nullptr; + m_osm_url_isSet = false; + map_box_styles = nullptr; + m_map_box_styles_isSet = false; + display_selected_ground_tracks = 0; + m_display_selected_ground_tracks_isSet = false; + display_all_ground_tracks = 0; + m_display_all_ground_tracks_isSet = false; terrain = nullptr; m_terrain_isSet = false; + buildings = nullptr; + m_buildings_isSet = false; + sun_light_enabled = 0; + m_sun_light_enabled_isSet = false; + light_intensity = 0.0f; + m_light_intensity_isSet = false; + eci_camera = 0; + m_eci_camera_isSet = false; + fxaa = 0; + m_fxaa_isSet = false; + msaa = 0; + m_msaa_isSet = false; + terrain_lighting = 0; + m_terrain_lighting_isSet = false; + water = 0; + m_water_isSet = false; + hdr = 0; + m_hdr_isSet = false; + fog = 0; + m_fog_isSet = false; + fps = 0; + m_fps_isSet = false; + display_muf = 0; + m_display_muf_isSet = false; + displayfo_f2 = 0; + m_displayfo_f2_isSet = false; + display_rain = 0; + m_display_rain_isSet = false; + display_clouds = 0; + m_display_clouds_isSet = false; + display_sea_marks = 0; + m_display_sea_marks_isSet = false; + display_railways = 0; + m_display_railways_isSet = false; + display_nasa_global_imagery = 0; + m_display_nasa_global_imagery_isSet = false; + nasa_global_imagery_identifier = nullptr; + m_nasa_global_imagery_identifier_isSet = false; + nasa_global_imagery_opacity = 0; + m_nasa_global_imagery_opacity_isSet = false; + display_aurora = 0; + m_display_aurora_isSet = false; + display_mag_dec = 0; + m_display_mag_dec_isSet = false; + display_maidenhead_grid = 0; + m_display_maidenhead_grid_isSet = false; + display_pfd = 0; + m_display_pfd_isSet = false; + view_first_person = 0; + m_view_first_person_isSet = false; + default_imagery = nullptr; + m_default_imagery_isSet = false; title = nullptr; m_title_isSet = false; rgb_color = 0; @@ -58,8 +126,76 @@ void SWGMapSettings::init() { display_names = 0; m_display_names_isSet = false; + map2_d_enabled = 0; + m_map2_d_enabled_isSet = false; + map3_d_enabled = 0; + m_map3_d_enabled_isSet = false; + map_provider = new QString(""); + m_map_provider_isSet = false; + map_type = new QString(""); + m_map_type_isSet = false; + osm_url = new QString(""); + m_osm_url_isSet = false; + map_box_styles = new QString(""); + m_map_box_styles_isSet = false; + display_selected_ground_tracks = 0; + m_display_selected_ground_tracks_isSet = false; + display_all_ground_tracks = 0; + m_display_all_ground_tracks_isSet = false; terrain = new QString(""); m_terrain_isSet = false; + buildings = new QString(""); + m_buildings_isSet = false; + sun_light_enabled = 0; + m_sun_light_enabled_isSet = false; + light_intensity = 0.0f; + m_light_intensity_isSet = false; + eci_camera = 0; + m_eci_camera_isSet = false; + fxaa = 0; + m_fxaa_isSet = false; + msaa = 0; + m_msaa_isSet = false; + terrain_lighting = 0; + m_terrain_lighting_isSet = false; + water = 0; + m_water_isSet = false; + hdr = 0; + m_hdr_isSet = false; + fog = 0; + m_fog_isSet = false; + fps = 0; + m_fps_isSet = false; + display_muf = 0; + m_display_muf_isSet = false; + displayfo_f2 = 0; + m_displayfo_f2_isSet = false; + display_rain = 0; + m_display_rain_isSet = false; + display_clouds = 0; + m_display_clouds_isSet = false; + display_sea_marks = 0; + m_display_sea_marks_isSet = false; + display_railways = 0; + m_display_railways_isSet = false; + display_nasa_global_imagery = 0; + m_display_nasa_global_imagery_isSet = false; + nasa_global_imagery_identifier = new QString(""); + m_nasa_global_imagery_identifier_isSet = false; + nasa_global_imagery_opacity = 0; + m_nasa_global_imagery_opacity_isSet = false; + display_aurora = 0; + m_display_aurora_isSet = false; + display_mag_dec = 0; + m_display_mag_dec_isSet = false; + display_maidenhead_grid = 0; + m_display_maidenhead_grid_isSet = false; + display_pfd = 0; + m_display_pfd_isSet = false; + view_first_person = 0; + m_view_first_person_isSet = false; + default_imagery = new QString(""); + m_default_imagery_isSet = false; title = new QString(""); m_title_isSet = false; rgb_color = 0; @@ -81,9 +217,57 @@ SWGMapSettings::init() { void SWGMapSettings::cleanup() { + + + if(map_provider != nullptr) { + delete map_provider; + } + if(map_type != nullptr) { + delete map_type; + } + if(osm_url != nullptr) { + delete osm_url; + } + if(map_box_styles != nullptr) { + delete map_box_styles; + } + + if(terrain != nullptr) { delete terrain; } + if(buildings != nullptr) { + delete buildings; + } + + + + + + + + + + + + + + + + + + if(nasa_global_imagery_identifier != nullptr) { + delete nasa_global_imagery_identifier; + } + + + + + + + if(default_imagery != nullptr) { + delete default_imagery; + } if(title != nullptr) { delete title; } @@ -113,8 +297,76 @@ void SWGMapSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&display_names, pJson["displayNames"], "qint32", ""); + ::SWGSDRangel::setValue(&map2_d_enabled, pJson["map2DEnabled"], "qint32", ""); + + ::SWGSDRangel::setValue(&map3_d_enabled, pJson["map3DEnabled"], "qint32", ""); + + ::SWGSDRangel::setValue(&map_provider, pJson["mapProvider"], "QString", "QString"); + + ::SWGSDRangel::setValue(&map_type, pJson["mapType"], "QString", "QString"); + + ::SWGSDRangel::setValue(&osm_url, pJson["osmURL"], "QString", "QString"); + + ::SWGSDRangel::setValue(&map_box_styles, pJson["mapBoxStyles"], "QString", "QString"); + + ::SWGSDRangel::setValue(&display_selected_ground_tracks, pJson["displaySelectedGroundTracks"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_all_ground_tracks, pJson["displayAllGroundTracks"], "qint32", ""); + ::SWGSDRangel::setValue(&terrain, pJson["terrain"], "QString", "QString"); + ::SWGSDRangel::setValue(&buildings, pJson["buildings"], "QString", "QString"); + + ::SWGSDRangel::setValue(&sun_light_enabled, pJson["sunLightEnabled"], "qint32", ""); + + ::SWGSDRangel::setValue(&light_intensity, pJson["lightIntensity"], "float", ""); + + ::SWGSDRangel::setValue(&eci_camera, pJson["eciCamera"], "qint32", ""); + + ::SWGSDRangel::setValue(&fxaa, pJson["fxaa"], "qint32", ""); + + ::SWGSDRangel::setValue(&msaa, pJson["msaa"], "qint32", ""); + + ::SWGSDRangel::setValue(&terrain_lighting, pJson["terrainLighting"], "qint32", ""); + + ::SWGSDRangel::setValue(&water, pJson["water"], "qint32", ""); + + ::SWGSDRangel::setValue(&hdr, pJson["hdr"], "qint32", ""); + + ::SWGSDRangel::setValue(&fog, pJson["fog"], "qint32", ""); + + ::SWGSDRangel::setValue(&fps, pJson["fps"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_muf, pJson["displayMUF"], "qint32", ""); + + ::SWGSDRangel::setValue(&displayfo_f2, pJson["displayfoF2"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_rain, pJson["displayRain"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_clouds, pJson["displayClouds"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_sea_marks, pJson["displaySeaMarks"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_railways, pJson["displayRailways"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_nasa_global_imagery, pJson["displayNASAGlobalImagery"], "qint32", ""); + + ::SWGSDRangel::setValue(&nasa_global_imagery_identifier, pJson["nasaGlobalImageryIdentifier"], "QString", "QString"); + + ::SWGSDRangel::setValue(&nasa_global_imagery_opacity, pJson["nasaGlobalImageryOpacity"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_aurora, pJson["displayAurora"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_mag_dec, pJson["displayMagDec"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_maidenhead_grid, pJson["displayMaidenheadGrid"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_pfd, pJson["displayPFD"], "qint32", ""); + + ::SWGSDRangel::setValue(&view_first_person, pJson["viewFirstPerson"], "qint32", ""); + + ::SWGSDRangel::setValue(&default_imagery, pJson["defaultImagery"], "QString", "QString"); + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); @@ -150,9 +402,111 @@ SWGMapSettings::asJsonObject() { if(m_display_names_isSet){ obj->insert("displayNames", QJsonValue(display_names)); } + if(m_map2_d_enabled_isSet){ + obj->insert("map2DEnabled", QJsonValue(map2_d_enabled)); + } + if(m_map3_d_enabled_isSet){ + obj->insert("map3DEnabled", QJsonValue(map3_d_enabled)); + } + if(map_provider != nullptr && *map_provider != QString("")){ + toJsonValue(QString("mapProvider"), map_provider, obj, QString("QString")); + } + if(map_type != nullptr && *map_type != QString("")){ + toJsonValue(QString("mapType"), map_type, obj, QString("QString")); + } + if(osm_url != nullptr && *osm_url != QString("")){ + toJsonValue(QString("osmURL"), osm_url, obj, QString("QString")); + } + if(map_box_styles != nullptr && *map_box_styles != QString("")){ + toJsonValue(QString("mapBoxStyles"), map_box_styles, obj, QString("QString")); + } + if(m_display_selected_ground_tracks_isSet){ + obj->insert("displaySelectedGroundTracks", QJsonValue(display_selected_ground_tracks)); + } + if(m_display_all_ground_tracks_isSet){ + obj->insert("displayAllGroundTracks", QJsonValue(display_all_ground_tracks)); + } if(terrain != nullptr && *terrain != QString("")){ toJsonValue(QString("terrain"), terrain, obj, QString("QString")); } + if(buildings != nullptr && *buildings != QString("")){ + toJsonValue(QString("buildings"), buildings, obj, QString("QString")); + } + if(m_sun_light_enabled_isSet){ + obj->insert("sunLightEnabled", QJsonValue(sun_light_enabled)); + } + if(m_light_intensity_isSet){ + obj->insert("lightIntensity", QJsonValue(light_intensity)); + } + if(m_eci_camera_isSet){ + obj->insert("eciCamera", QJsonValue(eci_camera)); + } + if(m_fxaa_isSet){ + obj->insert("fxaa", QJsonValue(fxaa)); + } + if(m_msaa_isSet){ + obj->insert("msaa", QJsonValue(msaa)); + } + if(m_terrain_lighting_isSet){ + obj->insert("terrainLighting", QJsonValue(terrain_lighting)); + } + if(m_water_isSet){ + obj->insert("water", QJsonValue(water)); + } + if(m_hdr_isSet){ + obj->insert("hdr", QJsonValue(hdr)); + } + if(m_fog_isSet){ + obj->insert("fog", QJsonValue(fog)); + } + if(m_fps_isSet){ + obj->insert("fps", QJsonValue(fps)); + } + if(m_display_muf_isSet){ + obj->insert("displayMUF", QJsonValue(display_muf)); + } + if(m_displayfo_f2_isSet){ + obj->insert("displayfoF2", QJsonValue(displayfo_f2)); + } + if(m_display_rain_isSet){ + obj->insert("displayRain", QJsonValue(display_rain)); + } + if(m_display_clouds_isSet){ + obj->insert("displayClouds", QJsonValue(display_clouds)); + } + if(m_display_sea_marks_isSet){ + obj->insert("displaySeaMarks", QJsonValue(display_sea_marks)); + } + if(m_display_railways_isSet){ + obj->insert("displayRailways", QJsonValue(display_railways)); + } + if(m_display_nasa_global_imagery_isSet){ + obj->insert("displayNASAGlobalImagery", QJsonValue(display_nasa_global_imagery)); + } + if(nasa_global_imagery_identifier != nullptr && *nasa_global_imagery_identifier != QString("")){ + toJsonValue(QString("nasaGlobalImageryIdentifier"), nasa_global_imagery_identifier, obj, QString("QString")); + } + if(m_nasa_global_imagery_opacity_isSet){ + obj->insert("nasaGlobalImageryOpacity", QJsonValue(nasa_global_imagery_opacity)); + } + if(m_display_aurora_isSet){ + obj->insert("displayAurora", QJsonValue(display_aurora)); + } + if(m_display_mag_dec_isSet){ + obj->insert("displayMagDec", QJsonValue(display_mag_dec)); + } + if(m_display_maidenhead_grid_isSet){ + obj->insert("displayMaidenheadGrid", QJsonValue(display_maidenhead_grid)); + } + if(m_display_pfd_isSet){ + obj->insert("displayPFD", QJsonValue(display_pfd)); + } + if(m_view_first_person_isSet){ + obj->insert("viewFirstPerson", QJsonValue(view_first_person)); + } + if(default_imagery != nullptr && *default_imagery != QString("")){ + toJsonValue(QString("defaultImagery"), default_imagery, obj, QString("QString")); + } if(title != nullptr && *title != QString("")){ toJsonValue(QString("title"), title, obj, QString("QString")); } @@ -191,6 +545,86 @@ SWGMapSettings::setDisplayNames(qint32 display_names) { this->m_display_names_isSet = true; } +qint32 +SWGMapSettings::getMap2DEnabled() { + return map2_d_enabled; +} +void +SWGMapSettings::setMap2DEnabled(qint32 map2_d_enabled) { + this->map2_d_enabled = map2_d_enabled; + this->m_map2_d_enabled_isSet = true; +} + +qint32 +SWGMapSettings::getMap3DEnabled() { + return map3_d_enabled; +} +void +SWGMapSettings::setMap3DEnabled(qint32 map3_d_enabled) { + this->map3_d_enabled = map3_d_enabled; + this->m_map3_d_enabled_isSet = true; +} + +QString* +SWGMapSettings::getMapProvider() { + return map_provider; +} +void +SWGMapSettings::setMapProvider(QString* map_provider) { + this->map_provider = map_provider; + this->m_map_provider_isSet = true; +} + +QString* +SWGMapSettings::getMapType() { + return map_type; +} +void +SWGMapSettings::setMapType(QString* map_type) { + this->map_type = map_type; + this->m_map_type_isSet = true; +} + +QString* +SWGMapSettings::getOsmUrl() { + return osm_url; +} +void +SWGMapSettings::setOsmUrl(QString* osm_url) { + this->osm_url = osm_url; + this->m_osm_url_isSet = true; +} + +QString* +SWGMapSettings::getMapBoxStyles() { + return map_box_styles; +} +void +SWGMapSettings::setMapBoxStyles(QString* map_box_styles) { + this->map_box_styles = map_box_styles; + this->m_map_box_styles_isSet = true; +} + +qint32 +SWGMapSettings::getDisplaySelectedGroundTracks() { + return display_selected_ground_tracks; +} +void +SWGMapSettings::setDisplaySelectedGroundTracks(qint32 display_selected_ground_tracks) { + this->display_selected_ground_tracks = display_selected_ground_tracks; + this->m_display_selected_ground_tracks_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayAllGroundTracks() { + return display_all_ground_tracks; +} +void +SWGMapSettings::setDisplayAllGroundTracks(qint32 display_all_ground_tracks) { + this->display_all_ground_tracks = display_all_ground_tracks; + this->m_display_all_ground_tracks_isSet = true; +} + QString* SWGMapSettings::getTerrain() { return terrain; @@ -201,6 +635,266 @@ SWGMapSettings::setTerrain(QString* terrain) { this->m_terrain_isSet = true; } +QString* +SWGMapSettings::getBuildings() { + return buildings; +} +void +SWGMapSettings::setBuildings(QString* buildings) { + this->buildings = buildings; + this->m_buildings_isSet = true; +} + +qint32 +SWGMapSettings::getSunLightEnabled() { + return sun_light_enabled; +} +void +SWGMapSettings::setSunLightEnabled(qint32 sun_light_enabled) { + this->sun_light_enabled = sun_light_enabled; + this->m_sun_light_enabled_isSet = true; +} + +float +SWGMapSettings::getLightIntensity() { + return light_intensity; +} +void +SWGMapSettings::setLightIntensity(float light_intensity) { + this->light_intensity = light_intensity; + this->m_light_intensity_isSet = true; +} + +qint32 +SWGMapSettings::getEciCamera() { + return eci_camera; +} +void +SWGMapSettings::setEciCamera(qint32 eci_camera) { + this->eci_camera = eci_camera; + this->m_eci_camera_isSet = true; +} + +qint32 +SWGMapSettings::getFxaa() { + return fxaa; +} +void +SWGMapSettings::setFxaa(qint32 fxaa) { + this->fxaa = fxaa; + this->m_fxaa_isSet = true; +} + +qint32 +SWGMapSettings::getMsaa() { + return msaa; +} +void +SWGMapSettings::setMsaa(qint32 msaa) { + this->msaa = msaa; + this->m_msaa_isSet = true; +} + +qint32 +SWGMapSettings::getTerrainLighting() { + return terrain_lighting; +} +void +SWGMapSettings::setTerrainLighting(qint32 terrain_lighting) { + this->terrain_lighting = terrain_lighting; + this->m_terrain_lighting_isSet = true; +} + +qint32 +SWGMapSettings::getWater() { + return water; +} +void +SWGMapSettings::setWater(qint32 water) { + this->water = water; + this->m_water_isSet = true; +} + +qint32 +SWGMapSettings::getHdr() { + return hdr; +} +void +SWGMapSettings::setHdr(qint32 hdr) { + this->hdr = hdr; + this->m_hdr_isSet = true; +} + +qint32 +SWGMapSettings::getFog() { + return fog; +} +void +SWGMapSettings::setFog(qint32 fog) { + this->fog = fog; + this->m_fog_isSet = true; +} + +qint32 +SWGMapSettings::getFps() { + return fps; +} +void +SWGMapSettings::setFps(qint32 fps) { + this->fps = fps; + this->m_fps_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayMuf() { + return display_muf; +} +void +SWGMapSettings::setDisplayMuf(qint32 display_muf) { + this->display_muf = display_muf; + this->m_display_muf_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayfoF2() { + return displayfo_f2; +} +void +SWGMapSettings::setDisplayfoF2(qint32 displayfo_f2) { + this->displayfo_f2 = displayfo_f2; + this->m_displayfo_f2_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayRain() { + return display_rain; +} +void +SWGMapSettings::setDisplayRain(qint32 display_rain) { + this->display_rain = display_rain; + this->m_display_rain_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayClouds() { + return display_clouds; +} +void +SWGMapSettings::setDisplayClouds(qint32 display_clouds) { + this->display_clouds = display_clouds; + this->m_display_clouds_isSet = true; +} + +qint32 +SWGMapSettings::getDisplaySeaMarks() { + return display_sea_marks; +} +void +SWGMapSettings::setDisplaySeaMarks(qint32 display_sea_marks) { + this->display_sea_marks = display_sea_marks; + this->m_display_sea_marks_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayRailways() { + return display_railways; +} +void +SWGMapSettings::setDisplayRailways(qint32 display_railways) { + this->display_railways = display_railways; + this->m_display_railways_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayNasaGlobalImagery() { + return display_nasa_global_imagery; +} +void +SWGMapSettings::setDisplayNasaGlobalImagery(qint32 display_nasa_global_imagery) { + this->display_nasa_global_imagery = display_nasa_global_imagery; + this->m_display_nasa_global_imagery_isSet = true; +} + +QString* +SWGMapSettings::getNasaGlobalImageryIdentifier() { + return nasa_global_imagery_identifier; +} +void +SWGMapSettings::setNasaGlobalImageryIdentifier(QString* nasa_global_imagery_identifier) { + this->nasa_global_imagery_identifier = nasa_global_imagery_identifier; + this->m_nasa_global_imagery_identifier_isSet = true; +} + +qint32 +SWGMapSettings::getNasaGlobalImageryOpacity() { + return nasa_global_imagery_opacity; +} +void +SWGMapSettings::setNasaGlobalImageryOpacity(qint32 nasa_global_imagery_opacity) { + this->nasa_global_imagery_opacity = nasa_global_imagery_opacity; + this->m_nasa_global_imagery_opacity_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayAurora() { + return display_aurora; +} +void +SWGMapSettings::setDisplayAurora(qint32 display_aurora) { + this->display_aurora = display_aurora; + this->m_display_aurora_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayMagDec() { + return display_mag_dec; +} +void +SWGMapSettings::setDisplayMagDec(qint32 display_mag_dec) { + this->display_mag_dec = display_mag_dec; + this->m_display_mag_dec_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayMaidenheadGrid() { + return display_maidenhead_grid; +} +void +SWGMapSettings::setDisplayMaidenheadGrid(qint32 display_maidenhead_grid) { + this->display_maidenhead_grid = display_maidenhead_grid; + this->m_display_maidenhead_grid_isSet = true; +} + +qint32 +SWGMapSettings::getDisplayPfd() { + return display_pfd; +} +void +SWGMapSettings::setDisplayPfd(qint32 display_pfd) { + this->display_pfd = display_pfd; + this->m_display_pfd_isSet = true; +} + +qint32 +SWGMapSettings::getViewFirstPerson() { + return view_first_person; +} +void +SWGMapSettings::setViewFirstPerson(qint32 view_first_person) { + this->view_first_person = view_first_person; + this->m_view_first_person_isSet = true; +} + +QString* +SWGMapSettings::getDefaultImagery() { + return default_imagery; +} +void +SWGMapSettings::setDefaultImagery(QString* default_imagery) { + this->default_imagery = default_imagery; + this->m_default_imagery_isSet = true; +} + QString* SWGMapSettings::getTitle() { return title; @@ -289,9 +983,111 @@ SWGMapSettings::isSet(){ if(m_display_names_isSet){ isObjectUpdated = true; break; } + if(m_map2_d_enabled_isSet){ + isObjectUpdated = true; break; + } + if(m_map3_d_enabled_isSet){ + isObjectUpdated = true; break; + } + if(map_provider && *map_provider != QString("")){ + isObjectUpdated = true; break; + } + if(map_type && *map_type != QString("")){ + isObjectUpdated = true; break; + } + if(osm_url && *osm_url != QString("")){ + isObjectUpdated = true; break; + } + if(map_box_styles && *map_box_styles != QString("")){ + isObjectUpdated = true; break; + } + if(m_display_selected_ground_tracks_isSet){ + isObjectUpdated = true; break; + } + if(m_display_all_ground_tracks_isSet){ + isObjectUpdated = true; break; + } if(terrain && *terrain != QString("")){ isObjectUpdated = true; break; } + if(buildings && *buildings != QString("")){ + isObjectUpdated = true; break; + } + if(m_sun_light_enabled_isSet){ + isObjectUpdated = true; break; + } + if(m_light_intensity_isSet){ + isObjectUpdated = true; break; + } + if(m_eci_camera_isSet){ + isObjectUpdated = true; break; + } + if(m_fxaa_isSet){ + isObjectUpdated = true; break; + } + if(m_msaa_isSet){ + isObjectUpdated = true; break; + } + if(m_terrain_lighting_isSet){ + isObjectUpdated = true; break; + } + if(m_water_isSet){ + isObjectUpdated = true; break; + } + if(m_hdr_isSet){ + isObjectUpdated = true; break; + } + if(m_fog_isSet){ + isObjectUpdated = true; break; + } + if(m_fps_isSet){ + isObjectUpdated = true; break; + } + if(m_display_muf_isSet){ + isObjectUpdated = true; break; + } + if(m_displayfo_f2_isSet){ + isObjectUpdated = true; break; + } + if(m_display_rain_isSet){ + isObjectUpdated = true; break; + } + if(m_display_clouds_isSet){ + isObjectUpdated = true; break; + } + if(m_display_sea_marks_isSet){ + isObjectUpdated = true; break; + } + if(m_display_railways_isSet){ + isObjectUpdated = true; break; + } + if(m_display_nasa_global_imagery_isSet){ + isObjectUpdated = true; break; + } + if(nasa_global_imagery_identifier && *nasa_global_imagery_identifier != QString("")){ + isObjectUpdated = true; break; + } + if(m_nasa_global_imagery_opacity_isSet){ + isObjectUpdated = true; break; + } + if(m_display_aurora_isSet){ + isObjectUpdated = true; break; + } + if(m_display_mag_dec_isSet){ + isObjectUpdated = true; break; + } + if(m_display_maidenhead_grid_isSet){ + isObjectUpdated = true; break; + } + if(m_display_pfd_isSet){ + isObjectUpdated = true; break; + } + if(m_view_first_person_isSet){ + isObjectUpdated = true; break; + } + if(default_imagery && *default_imagery != QString("")){ + isObjectUpdated = true; break; + } if(title && *title != QString("")){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGMapSettings.h b/swagger/sdrangel/code/qt5/client/SWGMapSettings.h index df3cde740..f77f5fb41 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGMapSettings.h @@ -46,9 +46,111 @@ public: qint32 getDisplayNames(); void setDisplayNames(qint32 display_names); + qint32 getMap2DEnabled(); + void setMap2DEnabled(qint32 map2_d_enabled); + + qint32 getMap3DEnabled(); + void setMap3DEnabled(qint32 map3_d_enabled); + + QString* getMapProvider(); + void setMapProvider(QString* map_provider); + + QString* getMapType(); + void setMapType(QString* map_type); + + QString* getOsmUrl(); + void setOsmUrl(QString* osm_url); + + QString* getMapBoxStyles(); + void setMapBoxStyles(QString* map_box_styles); + + qint32 getDisplaySelectedGroundTracks(); + void setDisplaySelectedGroundTracks(qint32 display_selected_ground_tracks); + + qint32 getDisplayAllGroundTracks(); + void setDisplayAllGroundTracks(qint32 display_all_ground_tracks); + QString* getTerrain(); void setTerrain(QString* terrain); + QString* getBuildings(); + void setBuildings(QString* buildings); + + qint32 getSunLightEnabled(); + void setSunLightEnabled(qint32 sun_light_enabled); + + float getLightIntensity(); + void setLightIntensity(float light_intensity); + + qint32 getEciCamera(); + void setEciCamera(qint32 eci_camera); + + qint32 getFxaa(); + void setFxaa(qint32 fxaa); + + qint32 getMsaa(); + void setMsaa(qint32 msaa); + + qint32 getTerrainLighting(); + void setTerrainLighting(qint32 terrain_lighting); + + qint32 getWater(); + void setWater(qint32 water); + + qint32 getHdr(); + void setHdr(qint32 hdr); + + qint32 getFog(); + void setFog(qint32 fog); + + qint32 getFps(); + void setFps(qint32 fps); + + qint32 getDisplayMuf(); + void setDisplayMuf(qint32 display_muf); + + qint32 getDisplayfoF2(); + void setDisplayfoF2(qint32 displayfo_f2); + + qint32 getDisplayRain(); + void setDisplayRain(qint32 display_rain); + + qint32 getDisplayClouds(); + void setDisplayClouds(qint32 display_clouds); + + qint32 getDisplaySeaMarks(); + void setDisplaySeaMarks(qint32 display_sea_marks); + + qint32 getDisplayRailways(); + void setDisplayRailways(qint32 display_railways); + + qint32 getDisplayNasaGlobalImagery(); + void setDisplayNasaGlobalImagery(qint32 display_nasa_global_imagery); + + QString* getNasaGlobalImageryIdentifier(); + void setNasaGlobalImageryIdentifier(QString* nasa_global_imagery_identifier); + + qint32 getNasaGlobalImageryOpacity(); + void setNasaGlobalImageryOpacity(qint32 nasa_global_imagery_opacity); + + qint32 getDisplayAurora(); + void setDisplayAurora(qint32 display_aurora); + + qint32 getDisplayMagDec(); + void setDisplayMagDec(qint32 display_mag_dec); + + qint32 getDisplayMaidenheadGrid(); + void setDisplayMaidenheadGrid(qint32 display_maidenhead_grid); + + qint32 getDisplayPfd(); + void setDisplayPfd(qint32 display_pfd); + + qint32 getViewFirstPerson(); + void setViewFirstPerson(qint32 view_first_person); + + QString* getDefaultImagery(); + void setDefaultImagery(QString* default_imagery); + QString* getTitle(); void setTitle(QString* title); @@ -80,9 +182,111 @@ private: qint32 display_names; bool m_display_names_isSet; + qint32 map2_d_enabled; + bool m_map2_d_enabled_isSet; + + qint32 map3_d_enabled; + bool m_map3_d_enabled_isSet; + + QString* map_provider; + bool m_map_provider_isSet; + + QString* map_type; + bool m_map_type_isSet; + + QString* osm_url; + bool m_osm_url_isSet; + + QString* map_box_styles; + bool m_map_box_styles_isSet; + + qint32 display_selected_ground_tracks; + bool m_display_selected_ground_tracks_isSet; + + qint32 display_all_ground_tracks; + bool m_display_all_ground_tracks_isSet; + QString* terrain; bool m_terrain_isSet; + QString* buildings; + bool m_buildings_isSet; + + qint32 sun_light_enabled; + bool m_sun_light_enabled_isSet; + + float light_intensity; + bool m_light_intensity_isSet; + + qint32 eci_camera; + bool m_eci_camera_isSet; + + qint32 fxaa; + bool m_fxaa_isSet; + + qint32 msaa; + bool m_msaa_isSet; + + qint32 terrain_lighting; + bool m_terrain_lighting_isSet; + + qint32 water; + bool m_water_isSet; + + qint32 hdr; + bool m_hdr_isSet; + + qint32 fog; + bool m_fog_isSet; + + qint32 fps; + bool m_fps_isSet; + + qint32 display_muf; + bool m_display_muf_isSet; + + qint32 displayfo_f2; + bool m_displayfo_f2_isSet; + + qint32 display_rain; + bool m_display_rain_isSet; + + qint32 display_clouds; + bool m_display_clouds_isSet; + + qint32 display_sea_marks; + bool m_display_sea_marks_isSet; + + qint32 display_railways; + bool m_display_railways_isSet; + + qint32 display_nasa_global_imagery; + bool m_display_nasa_global_imagery_isSet; + + QString* nasa_global_imagery_identifier; + bool m_nasa_global_imagery_identifier_isSet; + + qint32 nasa_global_imagery_opacity; + bool m_nasa_global_imagery_opacity_isSet; + + qint32 display_aurora; + bool m_display_aurora_isSet; + + qint32 display_mag_dec; + bool m_display_mag_dec_isSet; + + qint32 display_maidenhead_grid; + bool m_display_maidenhead_grid_isSet; + + qint32 display_pfd; + bool m_display_pfd_isSet; + + qint32 view_first_person; + bool m_view_first_person_isSet; + + QString* default_imagery; + bool m_default_imagery_isSet; + QString* title; bool m_title_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGMeshcoreDemodSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGMeshcoreDemodSettings.cpp index 0418c34eb..c18df277d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMeshcoreDemodSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMeshcoreDemodSettings.cpp @@ -160,6 +160,7 @@ SWGMeshcoreDemodSettings::cleanup() { + if(udp_address != nullptr) { delete udp_address; } @@ -220,7 +221,7 @@ SWGMeshcoreDemodSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&packet_length, pJson["packetLength"], "qint32", ""); ::SWGSDRangel::setValue(&send_via_udp, pJson["sendViaUDP"], "qint32", ""); - + ::SWGSDRangel::setValue(&send_json_via_udp, pJson["sendJsonViaUDP"], "qint32", ""); ::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); diff --git a/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.cpp b/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.cpp index 7b5ce263a..9f6892d83 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.cpp @@ -44,6 +44,7 @@ SWGMeshcoreModActions::init() { void SWGMeshcoreModActions::cleanup() { + } SWGMeshcoreModActions* @@ -58,7 +59,7 @@ SWGMeshcoreModActions::fromJson(QString &json) { void SWGMeshcoreModActions::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&send_now, pJson["sendNow"], "qint32", ""); - + } QString diff --git a/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.h b/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.h index c94e9bea4..e9fb92706 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.h +++ b/swagger/sdrangel/code/qt5/client/SWGMeshcoreModActions.h @@ -22,6 +22,7 @@ #include + #include "SWGObject.h" #include "export.h" diff --git a/swagger/sdrangel/code/qt5/client/SWGMeshtasticDemodSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGMeshtasticDemodSettings.cpp index da9fb49de..aad96adf1 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMeshtasticDemodSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMeshtasticDemodSettings.cpp @@ -160,6 +160,7 @@ SWGMeshtasticDemodSettings::cleanup() { + if(udp_address != nullptr) { delete udp_address; } @@ -220,7 +221,7 @@ SWGMeshtasticDemodSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&packet_length, pJson["packetLength"], "qint32", ""); ::SWGSDRangel::setValue(&send_via_udp, pJson["sendViaUDP"], "qint32", ""); - + ::SWGSDRangel::setValue(&send_json_via_udp, pJson["sendJsonViaUDP"], "qint32", ""); ::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index 605a23be8..3edcd95fe 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -25,7 +25,9 @@ #include "SWGAISModActions.h" #include "SWGAISModReport.h" #include "SWGAISModSettings.h" +#include "SWGAISReport.h" #include "SWGAISSettings.h" +#include "SWGAISVessel.h" #include "SWGAMBEActions.h" #include "SWGAMBEDevice.h" #include "SWGAMBEDeviceReport.h" @@ -36,7 +38,9 @@ #include "SWGAMDemodSettings.h" #include "SWGAMModReport.h" #include "SWGAMModSettings.h" +#include "SWGAPRSReport.h" #include "SWGAPRSSettings.h" +#include "SWGAPRSStation.h" #include "SWGAPTDemodActions.h" #include "SWGAPTDemodActions_aos.h" #include "SWGAPTDemodActions_los.h" @@ -100,7 +104,9 @@ #include "SWGConfigurationImportExport.h" #include "SWGConfigurationItem.h" #include "SWGConfigurations.h" +#include "SWGDABDemodReport.h" #include "SWGDABDemodSettings.h" +#include "SWGDABProgram.h" #include "SWGDATVDemodReport.h" #include "SWGDATVDemodSettings.h" #include "SWGDATVModReport.h" @@ -173,6 +179,9 @@ #include "SWGFrequencyRange.h" #include "SWGGLScope.h" #include "SWGGLSpectrum.h" +#include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" +#include "SWGGLSpectrumReport.h" #include "SWGGS232ControllerActions.h" #include "SWGGS232ControllerReport.h" #include "SWGGS232ControllerSettings.h" @@ -220,6 +229,9 @@ #include "SWGM17DemodSettings.h" #include "SWGM17ModReport.h" #include "SWGM17ModSettings.h" +#include "SWGMCPServerActions.h" +#include "SWGMCPServerReport.h" +#include "SWGMCPServerSettings.h" #include "SWGMapActions.h" #include "SWGMapAircraftState.h" #include "SWGMapAnimation.h" @@ -228,15 +240,15 @@ #include "SWGMapItem_2.h" #include "SWGMapReport.h" #include "SWGMapSettings.h" -#include "SWGMeshtasticDemodReport.h" -#include "SWGMeshtasticDemodSettings.h" -#include "SWGMeshtasticModReport.h" -#include "SWGMeshtasticModSettings.h" #include "SWGMeshcoreDemodReport.h" #include "SWGMeshcoreDemodSettings.h" #include "SWGMeshcoreModActions.h" #include "SWGMeshcoreModReport.h" #include "SWGMeshcoreModSettings.h" +#include "SWGMeshtasticDemodReport.h" +#include "SWGMeshtasticDemodSettings.h" +#include "SWGMeshtasticModReport.h" +#include "SWGMeshtasticModSettings.h" #include "SWGMetisMISOSettings.h" #include "SWGMorseDecoderActions.h" #include "SWGMorseDecoderSettings.h" @@ -295,8 +307,10 @@ #include "SWGRadioAstronomySettings.h" #include "SWGRadioClockReport.h" #include "SWGRadioClockSettings.h" +#include "SWGRadiosonde.h" #include "SWGRadiosondeDemodReport.h" #include "SWGRadiosondeDemodSettings.h" +#include "SWGRadiosondeReport.h" #include "SWGRadiosondeSettings.h" #include "SWGRange.h" #include "SWGRangeFloat.h" @@ -354,9 +368,13 @@ #include "SWGSoapySDRInputSettings.h" #include "SWGSoapySDROutputSettings.h" #include "SWGSoapySDRReport.h" +#include "SWGSpectrumActions.h" #include "SWGSpectrumAnnotationMarker.h" #include "SWGSpectrumCalibrationPoint.h" #include "SWGSpectrumHistogramMarker.h" +#include "SWGSpectrumHistorySignal.h" +#include "SWGSpectrumMemorySettings.h" +#include "SWGSpectrumPeak.h" #include "SWGSpectrumServer.h" #include "SWGSpectrumServer_clients.h" #include "SWGSpectrumWaterfallMarker.h" @@ -396,6 +414,9 @@ #include "SWGWFMDemodSettings.h" #include "SWGWFMModReport.h" #include "SWGWFMModSettings.h" +#include "SWGWindowInfo.h" +#include "SWGWindowList.h" +#include "SWGWorkspaceActions.h" #include "SWGWorkspaceInfo.h" #include "SWGXtrxInputReport.h" #include "SWGXtrxInputSettings.h" @@ -462,11 +483,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGAISReport").compare(type) == 0) { + SWGAISReport *obj = new SWGAISReport(); + obj->init(); + return obj; + } if(QString("SWGAISSettings").compare(type) == 0) { SWGAISSettings *obj = new SWGAISSettings(); obj->init(); return obj; } + if(QString("SWGAISVessel").compare(type) == 0) { + SWGAISVessel *obj = new SWGAISVessel(); + obj->init(); + return obj; + } if(QString("SWGAMBEActions").compare(type) == 0) { SWGAMBEActions *obj = new SWGAMBEActions(); obj->init(); @@ -517,11 +548,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGAPRSReport").compare(type) == 0) { + SWGAPRSReport *obj = new SWGAPRSReport(); + obj->init(); + return obj; + } if(QString("SWGAPRSSettings").compare(type) == 0) { SWGAPRSSettings *obj = new SWGAPRSSettings(); obj->init(); return obj; } + if(QString("SWGAPRSStation").compare(type) == 0) { + SWGAPRSStation *obj = new SWGAPRSStation(); + obj->init(); + return obj; + } if(QString("SWGAPTDemodActions").compare(type) == 0) { SWGAPTDemodActions *obj = new SWGAPTDemodActions(); obj->init(); @@ -837,11 +878,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGDABDemodReport").compare(type) == 0) { + SWGDABDemodReport *obj = new SWGDABDemodReport(); + obj->init(); + return obj; + } if(QString("SWGDABDemodSettings").compare(type) == 0) { SWGDABDemodSettings *obj = new SWGDABDemodSettings(); obj->init(); return obj; } + if(QString("SWGDABProgram").compare(type) == 0) { + SWGDABProgram *obj = new SWGDABProgram(); + obj->init(); + return obj; + } if(QString("SWGDATVDemodReport").compare(type) == 0) { SWGDATVDemodReport *obj = new SWGDATVDemodReport(); obj->init(); @@ -1202,6 +1253,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGGLSpectrumData").compare(type) == 0) { + SWGGLSpectrumData *obj = new SWGGLSpectrumData(); + obj->init(); + return obj; + } + if(QString("SWGGLSpectrumHistory").compare(type) == 0) { + SWGGLSpectrumHistory *obj = new SWGGLSpectrumHistory(); + obj->init(); + return obj; + } + if(QString("SWGGLSpectrumReport").compare(type) == 0) { + SWGGLSpectrumReport *obj = new SWGGLSpectrumReport(); + obj->init(); + return obj; + } if(QString("SWGGS232ControllerActions").compare(type) == 0) { SWGGS232ControllerActions *obj = new SWGGS232ControllerActions(); obj->init(); @@ -1437,6 +1503,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGMCPServerActions").compare(type) == 0) { + SWGMCPServerActions *obj = new SWGMCPServerActions(); + obj->init(); + return obj; + } + if(QString("SWGMCPServerReport").compare(type) == 0) { + SWGMCPServerReport *obj = new SWGMCPServerReport(); + obj->init(); + return obj; + } + if(QString("SWGMCPServerSettings").compare(type) == 0) { + SWGMCPServerSettings *obj = new SWGMCPServerSettings(); + obj->init(); + return obj; + } if(QString("SWGMapActions").compare(type) == 0) { SWGMapActions *obj = new SWGMapActions(); obj->init(); @@ -1477,48 +1558,48 @@ namespace SWGSDRangel { obj->init(); return obj; } - if(QString("SWGMeshtasticDemodReport").compare(type) == 0) { - SWGMeshtasticDemodReport *obj = new SWGMeshtasticDemodReport(); + if(QString("SWGMeshcoreDemodReport").compare(type) == 0) { + SWGMeshcoreDemodReport *obj = new SWGMeshcoreDemodReport(); obj->init(); return obj; } - if(QString("SWGMeshtasticDemodSettings").compare(type) == 0) { - SWGMeshtasticDemodSettings *obj = new SWGMeshtasticDemodSettings(); + if(QString("SWGMeshcoreDemodSettings").compare(type) == 0) { + SWGMeshcoreDemodSettings *obj = new SWGMeshcoreDemodSettings(); obj->init(); return obj; } - if(QString("SWGMeshtasticModReport").compare(type) == 0) { - SWGMeshtasticModReport *obj = new SWGMeshtasticModReport(); + if(QString("SWGMeshcoreModActions").compare(type) == 0) { + SWGMeshcoreModActions *obj = new SWGMeshcoreModActions(); obj->init(); return obj; } - if(QString("SWGMeshtasticModSettings").compare(type) == 0) { - SWGMeshtasticModSettings *obj = new SWGMeshtasticModSettings(); + if(QString("SWGMeshcoreModReport").compare(type) == 0) { + SWGMeshcoreModReport *obj = new SWGMeshcoreModReport(); obj->init(); return obj; } - if(QString("SWGMeshcoreDemodReport").compare(type) == 0) { - SWGMeshcoreDemodReport *obj = new SWGMeshcoreDemodReport(); + if(QString("SWGMeshcoreModSettings").compare(type) == 0) { + SWGMeshcoreModSettings *obj = new SWGMeshcoreModSettings(); obj->init(); return obj; } - if(QString("SWGMeshcoreDemodSettings").compare(type) == 0) { - SWGMeshcoreDemodSettings *obj = new SWGMeshcoreDemodSettings(); + if(QString("SWGMeshtasticDemodReport").compare(type) == 0) { + SWGMeshtasticDemodReport *obj = new SWGMeshtasticDemodReport(); obj->init(); return obj; } - if(QString("SWGMeshcoreModReport").compare(type) == 0) { - SWGMeshcoreModReport *obj = new SWGMeshcoreModReport(); + if(QString("SWGMeshtasticDemodSettings").compare(type) == 0) { + SWGMeshtasticDemodSettings *obj = new SWGMeshtasticDemodSettings(); obj->init(); return obj; } - if(QString("SWGMeshcoreModSettings").compare(type) == 0) { - SWGMeshcoreModSettings *obj = new SWGMeshcoreModSettings(); + if(QString("SWGMeshtasticModReport").compare(type) == 0) { + SWGMeshtasticModReport *obj = new SWGMeshtasticModReport(); obj->init(); return obj; } - if(QString("SWGMeshcoreModActions").compare(type) == 0) { - SWGMeshcoreModActions *obj = new SWGMeshcoreModActions(); + if(QString("SWGMeshtasticModSettings").compare(type) == 0) { + SWGMeshtasticModSettings *obj = new SWGMeshtasticModSettings(); obj->init(); return obj; } @@ -1812,6 +1893,11 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGRadiosonde").compare(type) == 0) { + SWGRadiosonde *obj = new SWGRadiosonde(); + obj->init(); + return obj; + } if(QString("SWGRadiosondeDemodReport").compare(type) == 0) { SWGRadiosondeDemodReport *obj = new SWGRadiosondeDemodReport(); obj->init(); @@ -1822,6 +1908,11 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGRadiosondeReport").compare(type) == 0) { + SWGRadiosondeReport *obj = new SWGRadiosondeReport(); + obj->init(); + return obj; + } if(QString("SWGRadiosondeSettings").compare(type) == 0) { SWGRadiosondeSettings *obj = new SWGRadiosondeSettings(); obj->init(); @@ -2107,6 +2198,11 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGSpectrumActions").compare(type) == 0) { + SWGSpectrumActions *obj = new SWGSpectrumActions(); + obj->init(); + return obj; + } if(QString("SWGSpectrumAnnotationMarker").compare(type) == 0) { SWGSpectrumAnnotationMarker *obj = new SWGSpectrumAnnotationMarker(); obj->init(); @@ -2122,6 +2218,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGSpectrumHistorySignal").compare(type) == 0) { + SWGSpectrumHistorySignal *obj = new SWGSpectrumHistorySignal(); + obj->init(); + return obj; + } + if(QString("SWGSpectrumMemorySettings").compare(type) == 0) { + SWGSpectrumMemorySettings *obj = new SWGSpectrumMemorySettings(); + obj->init(); + return obj; + } + if(QString("SWGSpectrumPeak").compare(type) == 0) { + SWGSpectrumPeak *obj = new SWGSpectrumPeak(); + obj->init(); + return obj; + } if(QString("SWGSpectrumServer").compare(type) == 0) { SWGSpectrumServer *obj = new SWGSpectrumServer(); obj->init(); @@ -2317,6 +2428,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGWindowInfo").compare(type) == 0) { + SWGWindowInfo *obj = new SWGWindowInfo(); + obj->init(); + return obj; + } + if(QString("SWGWindowList").compare(type) == 0) { + SWGWindowList *obj = new SWGWindowList(); + obj->init(); + return obj; + } + if(QString("SWGWorkspaceActions").compare(type) == 0) { + SWGWorkspaceActions *obj = new SWGWorkspaceActions(); + obj->init(); + return obj; + } if(QString("SWGWorkspaceInfo").compare(type) == 0) { SWGWorkspaceInfo *obj = new SWGWorkspaceInfo(); obj->init(); diff --git a/swagger/sdrangel/code/qt5/client/SWGPSK31ModActions_payload.h b/swagger/sdrangel/code/qt5/client/SWGPSK31ModActions_payload.h index b31b67605..26a1d62b0 100644 --- a/swagger/sdrangel/code/qt5/client/SWGPSK31ModActions_payload.h +++ b/swagger/sdrangel/code/qt5/client/SWGPSK31ModActions_payload.h @@ -13,7 +13,7 @@ /* * SWGPSK31ModActions_payload.h * - * + * Payload data. */ #ifndef SWGPSK31ModActions_payload_H_ diff --git a/swagger/sdrangel/code/qt5/client/SWGPacketModActions_payload.h b/swagger/sdrangel/code/qt5/client/SWGPacketModActions_payload.h index 15821f489..eeccf4e4a 100644 --- a/swagger/sdrangel/code/qt5/client/SWGPacketModActions_payload.h +++ b/swagger/sdrangel/code/qt5/client/SWGPacketModActions_payload.h @@ -13,7 +13,7 @@ /* * SWGPacketModActions_payload.h * - * + * Payload data. */ #ifndef SWGPacketModActions_payload_H_ diff --git a/swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h b/swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h index 7719dc914..802acc01e 100644 --- a/swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h +++ b/swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h @@ -13,7 +13,7 @@ /* * SWGRTTYModActions_payload.h * - * + * Payload data. */ #ifndef SWGRTTYModActions_payload_H_ diff --git a/swagger/sdrangel/code/qt5/client/SWGRadiosonde.cpp b/swagger/sdrangel/code/qt5/client/SWGRadiosonde.cpp new file mode 100644 index 000000000..df6ada798 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGRadiosonde.cpp @@ -0,0 +1,511 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGRadiosonde.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGRadiosonde::SWGRadiosonde(QString* json) { + init(); + this->fromJson(*json); +} + +SWGRadiosonde::SWGRadiosonde() { + serial = nullptr; + m_serial_isSet = false; + type = nullptr; + m_type_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; + altitude_max = 0.0f; + m_altitude_max_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + vertical_rate = 0.0f; + m_vertical_rate_isSet = false; + heading = 0.0f; + m_heading_isSet = false; + status = nullptr; + m_status_isSet = false; + pressure = 0.0f; + m_pressure_isSet = false; + temperature = 0.0f; + m_temperature_isSet = false; + humidity = 0.0f; + m_humidity_isSet = false; + frequency = 0L; + m_frequency_isSet = false; + burst_kill_status = nullptr; + m_burst_kill_status_isSet = false; + burst_kill_timer = nullptr; + m_burst_kill_timer_isSet = false; + last_update = nullptr; + m_last_update_isSet = false; + messages = 0; + m_messages_isSet = false; +} + +SWGRadiosonde::~SWGRadiosonde() { + this->cleanup(); +} + +void +SWGRadiosonde::init() { + serial = new QString(""); + m_serial_isSet = false; + type = new QString(""); + m_type_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; + altitude_max = 0.0f; + m_altitude_max_isSet = false; + speed = 0.0f; + m_speed_isSet = false; + vertical_rate = 0.0f; + m_vertical_rate_isSet = false; + heading = 0.0f; + m_heading_isSet = false; + status = new QString(""); + m_status_isSet = false; + pressure = 0.0f; + m_pressure_isSet = false; + temperature = 0.0f; + m_temperature_isSet = false; + humidity = 0.0f; + m_humidity_isSet = false; + frequency = 0L; + m_frequency_isSet = false; + burst_kill_status = new QString(""); + m_burst_kill_status_isSet = false; + burst_kill_timer = new QString(""); + m_burst_kill_timer_isSet = false; + last_update = new QString(""); + m_last_update_isSet = false; + messages = 0; + m_messages_isSet = false; +} + +void +SWGRadiosonde::cleanup() { + if(serial != nullptr) { + delete serial; + } + if(type != nullptr) { + delete type; + } + + + + + + + + if(status != nullptr) { + delete status; + } + + + + + if(burst_kill_status != nullptr) { + delete burst_kill_status; + } + if(burst_kill_timer != nullptr) { + delete burst_kill_timer; + } + if(last_update != nullptr) { + delete last_update; + } + +} + +SWGRadiosonde* +SWGRadiosonde::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGRadiosonde::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&serial, pJson["serial"], "QString", "QString"); + + ::SWGSDRangel::setValue(&type, pJson["type"], "QString", "QString"); + + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude_max, pJson["altitudeMax"], "float", ""); + + ::SWGSDRangel::setValue(&speed, pJson["speed"], "float", ""); + + ::SWGSDRangel::setValue(&vertical_rate, pJson["verticalRate"], "float", ""); + + ::SWGSDRangel::setValue(&heading, pJson["heading"], "float", ""); + + ::SWGSDRangel::setValue(&status, pJson["status"], "QString", "QString"); + + ::SWGSDRangel::setValue(&pressure, pJson["pressure"], "float", ""); + + ::SWGSDRangel::setValue(&temperature, pJson["temperature"], "float", ""); + + ::SWGSDRangel::setValue(&humidity, pJson["humidity"], "float", ""); + + ::SWGSDRangel::setValue(&frequency, pJson["frequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&burst_kill_status, pJson["burstKillStatus"], "QString", "QString"); + + ::SWGSDRangel::setValue(&burst_kill_timer, pJson["burstKillTimer"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_update, pJson["lastUpdate"], "QString", "QString"); + + ::SWGSDRangel::setValue(&messages, pJson["messages"], "qint32", ""); + +} + +QString +SWGRadiosonde::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGRadiosonde::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(serial != nullptr && *serial != QString("")){ + toJsonValue(QString("serial"), serial, obj, QString("QString")); + } + if(type != nullptr && *type != QString("")){ + toJsonValue(QString("type"), type, obj, QString("QString")); + } + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_altitude_isSet){ + obj->insert("altitude", QJsonValue(altitude)); + } + if(m_altitude_max_isSet){ + obj->insert("altitudeMax", QJsonValue(altitude_max)); + } + if(m_speed_isSet){ + obj->insert("speed", QJsonValue(speed)); + } + if(m_vertical_rate_isSet){ + obj->insert("verticalRate", QJsonValue(vertical_rate)); + } + if(m_heading_isSet){ + obj->insert("heading", QJsonValue(heading)); + } + if(status != nullptr && *status != QString("")){ + toJsonValue(QString("status"), status, obj, QString("QString")); + } + if(m_pressure_isSet){ + obj->insert("pressure", QJsonValue(pressure)); + } + if(m_temperature_isSet){ + obj->insert("temperature", QJsonValue(temperature)); + } + if(m_humidity_isSet){ + obj->insert("humidity", QJsonValue(humidity)); + } + if(m_frequency_isSet){ + obj->insert("frequency", QJsonValue(frequency)); + } + if(burst_kill_status != nullptr && *burst_kill_status != QString("")){ + toJsonValue(QString("burstKillStatus"), burst_kill_status, obj, QString("QString")); + } + if(burst_kill_timer != nullptr && *burst_kill_timer != QString("")){ + toJsonValue(QString("burstKillTimer"), burst_kill_timer, obj, QString("QString")); + } + if(last_update != nullptr && *last_update != QString("")){ + toJsonValue(QString("lastUpdate"), last_update, obj, QString("QString")); + } + if(m_messages_isSet){ + obj->insert("messages", QJsonValue(messages)); + } + + return obj; +} + +QString* +SWGRadiosonde::getSerial() { + return serial; +} +void +SWGRadiosonde::setSerial(QString* serial) { + this->serial = serial; + this->m_serial_isSet = true; +} + +QString* +SWGRadiosonde::getType() { + return type; +} +void +SWGRadiosonde::setType(QString* type) { + this->type = type; + this->m_type_isSet = true; +} + +float +SWGRadiosonde::getLatitude() { + return latitude; +} +void +SWGRadiosonde::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGRadiosonde::getLongitude() { + return longitude; +} +void +SWGRadiosonde::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGRadiosonde::getAltitude() { + return altitude; +} +void +SWGRadiosonde::setAltitude(float altitude) { + this->altitude = altitude; + this->m_altitude_isSet = true; +} + +float +SWGRadiosonde::getAltitudeMax() { + return altitude_max; +} +void +SWGRadiosonde::setAltitudeMax(float altitude_max) { + this->altitude_max = altitude_max; + this->m_altitude_max_isSet = true; +} + +float +SWGRadiosonde::getSpeed() { + return speed; +} +void +SWGRadiosonde::setSpeed(float speed) { + this->speed = speed; + this->m_speed_isSet = true; +} + +float +SWGRadiosonde::getVerticalRate() { + return vertical_rate; +} +void +SWGRadiosonde::setVerticalRate(float vertical_rate) { + this->vertical_rate = vertical_rate; + this->m_vertical_rate_isSet = true; +} + +float +SWGRadiosonde::getHeading() { + return heading; +} +void +SWGRadiosonde::setHeading(float heading) { + this->heading = heading; + this->m_heading_isSet = true; +} + +QString* +SWGRadiosonde::getStatus() { + return status; +} +void +SWGRadiosonde::setStatus(QString* status) { + this->status = status; + this->m_status_isSet = true; +} + +float +SWGRadiosonde::getPressure() { + return pressure; +} +void +SWGRadiosonde::setPressure(float pressure) { + this->pressure = pressure; + this->m_pressure_isSet = true; +} + +float +SWGRadiosonde::getTemperature() { + return temperature; +} +void +SWGRadiosonde::setTemperature(float temperature) { + this->temperature = temperature; + this->m_temperature_isSet = true; +} + +float +SWGRadiosonde::getHumidity() { + return humidity; +} +void +SWGRadiosonde::setHumidity(float humidity) { + this->humidity = humidity; + this->m_humidity_isSet = true; +} + +qint64 +SWGRadiosonde::getFrequency() { + return frequency; +} +void +SWGRadiosonde::setFrequency(qint64 frequency) { + this->frequency = frequency; + this->m_frequency_isSet = true; +} + +QString* +SWGRadiosonde::getBurstKillStatus() { + return burst_kill_status; +} +void +SWGRadiosonde::setBurstKillStatus(QString* burst_kill_status) { + this->burst_kill_status = burst_kill_status; + this->m_burst_kill_status_isSet = true; +} + +QString* +SWGRadiosonde::getBurstKillTimer() { + return burst_kill_timer; +} +void +SWGRadiosonde::setBurstKillTimer(QString* burst_kill_timer) { + this->burst_kill_timer = burst_kill_timer; + this->m_burst_kill_timer_isSet = true; +} + +QString* +SWGRadiosonde::getLastUpdate() { + return last_update; +} +void +SWGRadiosonde::setLastUpdate(QString* last_update) { + this->last_update = last_update; + this->m_last_update_isSet = true; +} + +qint32 +SWGRadiosonde::getMessages() { + return messages; +} +void +SWGRadiosonde::setMessages(qint32 messages) { + this->messages = messages; + this->m_messages_isSet = true; +} + + +bool +SWGRadiosonde::isSet(){ + bool isObjectUpdated = false; + do{ + if(serial && *serial != QString("")){ + isObjectUpdated = true; break; + } + if(type && *type != QString("")){ + isObjectUpdated = true; break; + } + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_max_isSet){ + isObjectUpdated = true; break; + } + if(m_speed_isSet){ + isObjectUpdated = true; break; + } + if(m_vertical_rate_isSet){ + isObjectUpdated = true; break; + } + if(m_heading_isSet){ + isObjectUpdated = true; break; + } + if(status && *status != QString("")){ + isObjectUpdated = true; break; + } + if(m_pressure_isSet){ + isObjectUpdated = true; break; + } + if(m_temperature_isSet){ + isObjectUpdated = true; break; + } + if(m_humidity_isSet){ + isObjectUpdated = true; break; + } + if(m_frequency_isSet){ + isObjectUpdated = true; break; + } + if(burst_kill_status && *burst_kill_status != QString("")){ + isObjectUpdated = true; break; + } + if(burst_kill_timer && *burst_kill_timer != QString("")){ + isObjectUpdated = true; break; + } + if(last_update && *last_update != QString("")){ + isObjectUpdated = true; break; + } + if(m_messages_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGRadiosonde.h b/swagger/sdrangel/code/qt5/client/SWGRadiosonde.h new file mode 100644 index 000000000..753081d09 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGRadiosonde.h @@ -0,0 +1,161 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGRadiosonde.h + * + * Radiosonde heard by the Radiosonde feature + */ + +#ifndef SWGRadiosonde_H_ +#define SWGRadiosonde_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGRadiosonde: public SWGObject { +public: + SWGRadiosonde(); + SWGRadiosonde(QString* json); + virtual ~SWGRadiosonde(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGRadiosonde* fromJson(QString &jsonString) override; + + QString* getSerial(); + void setSerial(QString* serial); + + QString* getType(); + void setType(QString* type); + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAltitude(); + void setAltitude(float altitude); + + float getAltitudeMax(); + void setAltitudeMax(float altitude_max); + + float getSpeed(); + void setSpeed(float speed); + + float getVerticalRate(); + void setVerticalRate(float vertical_rate); + + float getHeading(); + void setHeading(float heading); + + QString* getStatus(); + void setStatus(QString* status); + + float getPressure(); + void setPressure(float pressure); + + float getTemperature(); + void setTemperature(float temperature); + + float getHumidity(); + void setHumidity(float humidity); + + qint64 getFrequency(); + void setFrequency(qint64 frequency); + + QString* getBurstKillStatus(); + void setBurstKillStatus(QString* burst_kill_status); + + QString* getBurstKillTimer(); + void setBurstKillTimer(QString* burst_kill_timer); + + QString* getLastUpdate(); + void setLastUpdate(QString* last_update); + + qint32 getMessages(); + void setMessages(qint32 messages); + + + virtual bool isSet() override; + +private: + QString* serial; + bool m_serial_isSet; + + QString* type; + bool m_type_isSet; + + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float altitude; + bool m_altitude_isSet; + + float altitude_max; + bool m_altitude_max_isSet; + + float speed; + bool m_speed_isSet; + + float vertical_rate; + bool m_vertical_rate_isSet; + + float heading; + bool m_heading_isSet; + + QString* status; + bool m_status_isSet; + + float pressure; + bool m_pressure_isSet; + + float temperature; + bool m_temperature_isSet; + + float humidity; + bool m_humidity_isSet; + + qint64 frequency; + bool m_frequency_isSet; + + QString* burst_kill_status; + bool m_burst_kill_status_isSet; + + QString* burst_kill_timer; + bool m_burst_kill_timer_isSet; + + QString* last_update; + bool m_last_update_isSet; + + qint32 messages; + bool m_messages_isSet; + +}; + +} + +#endif /* SWGRadiosonde_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.cpp b/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.cpp new file mode 100644 index 000000000..edf32e376 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.cpp @@ -0,0 +1,162 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGRadiosondeReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGRadiosondeReport::SWGRadiosondeReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGRadiosondeReport::SWGRadiosondeReport() { + report_date_time = nullptr; + m_report_date_time_isSet = false; + radiosonde_count = 0; + m_radiosonde_count_isSet = false; + radiosondes = nullptr; + m_radiosondes_isSet = false; +} + +SWGRadiosondeReport::~SWGRadiosondeReport() { + this->cleanup(); +} + +void +SWGRadiosondeReport::init() { + report_date_time = new QString(""); + m_report_date_time_isSet = false; + radiosonde_count = 0; + m_radiosonde_count_isSet = false; + radiosondes = new QList(); + m_radiosondes_isSet = false; +} + +void +SWGRadiosondeReport::cleanup() { + if(report_date_time != nullptr) { + delete report_date_time; + } + + if(radiosondes != nullptr) { + auto arr = radiosondes; + for(auto o: *arr) { + delete o; + } + delete radiosondes; + } +} + +SWGRadiosondeReport* +SWGRadiosondeReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGRadiosondeReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&report_date_time, pJson["reportDateTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&radiosonde_count, pJson["radiosondeCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&radiosondes, pJson["radiosondes"], "QList", "SWGRadiosonde"); +} + +QString +SWGRadiosondeReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGRadiosondeReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(report_date_time != nullptr && *report_date_time != QString("")){ + toJsonValue(QString("reportDateTime"), report_date_time, obj, QString("QString")); + } + if(m_radiosonde_count_isSet){ + obj->insert("radiosondeCount", QJsonValue(radiosonde_count)); + } + if(radiosondes && radiosondes->size() > 0){ + toJsonArray((QList*)radiosondes, obj, "radiosondes", "SWGRadiosonde"); + } + + return obj; +} + +QString* +SWGRadiosondeReport::getReportDateTime() { + return report_date_time; +} +void +SWGRadiosondeReport::setReportDateTime(QString* report_date_time) { + this->report_date_time = report_date_time; + this->m_report_date_time_isSet = true; +} + +qint32 +SWGRadiosondeReport::getRadiosondeCount() { + return radiosonde_count; +} +void +SWGRadiosondeReport::setRadiosondeCount(qint32 radiosonde_count) { + this->radiosonde_count = radiosonde_count; + this->m_radiosonde_count_isSet = true; +} + +QList* +SWGRadiosondeReport::getRadiosondes() { + return radiosondes; +} +void +SWGRadiosondeReport::setRadiosondes(QList* radiosondes) { + this->radiosondes = radiosondes; + this->m_radiosondes_isSet = true; +} + + +bool +SWGRadiosondeReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(report_date_time && *report_date_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_radiosonde_count_isSet){ + isObjectUpdated = true; break; + } + if(radiosondes && (radiosondes->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.h b/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.h new file mode 100644 index 000000000..de9e9a8a9 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGRadiosondeReport.h @@ -0,0 +1,73 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGRadiosondeReport.h + * + * Radiosondes heard by the Radiosonde feature, which collects the decoded frames of every radiosonde demodulator in the instance. A field is present only once a frame carrying it has been received. + */ + +#ifndef SWGRadiosondeReport_H_ +#define SWGRadiosondeReport_H_ + +#include + + +#include "SWGRadiosonde.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGRadiosondeReport: public SWGObject { +public: + SWGRadiosondeReport(); + SWGRadiosondeReport(QString* json); + virtual ~SWGRadiosondeReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGRadiosondeReport* fromJson(QString &jsonString) override; + + QString* getReportDateTime(); + void setReportDateTime(QString* report_date_time); + + qint32 getRadiosondeCount(); + void setRadiosondeCount(qint32 radiosonde_count); + + QList* getRadiosondes(); + void setRadiosondes(QList* radiosondes); + + + virtual bool isSet() override; + +private: + QString* report_date_time; + bool m_report_date_time_isSet; + + qint32 radiosonde_count; + bool m_radiosonde_count_isSet; + + QList* radiosondes; + bool m_radiosondes_isSet; + +}; + +} + +#endif /* SWGRadiosondeReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGRadiosondeSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGRadiosondeSettings.cpp index 2d3cc4bc1..eae74ccea 100644 --- a/swagger/sdrangel/code/qt5/client/SWGRadiosondeSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGRadiosondeSettings.cpp @@ -170,10 +170,10 @@ SWGRadiosondeSettings::asJsonObject() { toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); } if(radiosondes_column_indexes && radiosondes_column_indexes->size() > 0){ - toJsonArray((QList*)radiosondes_column_indexes, obj, "radiosondesColumnIndexes", "qint32"); + toJsonArray((QList*)radiosondes_column_indexes, obj, "radiosondesColumnIndexes", ""); } if(radiosondes_column_sizes && radiosondes_column_sizes->size() > 0){ - toJsonArray((QList*)radiosondes_column_sizes, obj, "radiosondesColumnSizes", "qint32"); + toJsonArray((QList*)radiosondes_column_sizes, obj, "radiosondesColumnSizes", ""); } return obj; diff --git a/swagger/sdrangel/code/qt5/client/SWGSIDSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGSIDSettings.cpp index 332ebfabf..fcfccf291 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSIDSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGSIDSettings.cpp @@ -34,7 +34,7 @@ SWGSIDSettings::SWGSIDSettings() { m_autosave_isSet = false; autoload = 0; m_autoload_isSet = false; - filename = 0; + filename = nullptr; m_filename_isSet = false; autosave_period = 0; m_autosave_period_isSet = false; @@ -68,7 +68,7 @@ SWGSIDSettings::init() { m_autosave_isSet = false; autoload = 0; m_autoload_isSet = false; - filename = 0; + filename = new QString(""); m_filename_isSet = false; autosave_period = 0; m_autosave_period_isSet = false; @@ -95,7 +95,9 @@ SWGSIDSettings::cleanup() { - + if(filename != nullptr) { + delete filename; + } if(title != nullptr) { delete title; @@ -130,7 +132,7 @@ SWGSIDSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&autoload, pJson["autoload"], "qint32", ""); - ::SWGSDRangel::setValue(&filename, pJson["filename"], "qint32", ""); + ::SWGSDRangel::setValue(&filename, pJson["filename"], "QString", "QString"); ::SWGSDRangel::setValue(&autosave_period, pJson["autosavePeriod"], "qint32", ""); @@ -175,8 +177,8 @@ SWGSIDSettings::asJsonObject() { if(m_autoload_isSet){ obj->insert("autoload", QJsonValue(autoload)); } - if(m_filename_isSet){ - obj->insert("filename", QJsonValue(filename)); + if(filename != nullptr && *filename != QString("")){ + toJsonValue(QString("filename"), filename, obj, QString("QString")); } if(m_autosave_period_isSet){ obj->insert("autosavePeriod", QJsonValue(autosave_period)); @@ -239,12 +241,12 @@ SWGSIDSettings::setAutoload(qint32 autoload) { this->m_autoload_isSet = true; } -qint32 +QString* SWGSIDSettings::getFilename() { return filename; } void -SWGSIDSettings::setFilename(qint32 filename) { +SWGSIDSettings::setFilename(QString* filename) { this->filename = filename; this->m_filename_isSet = true; } @@ -353,7 +355,7 @@ SWGSIDSettings::isSet(){ if(m_autoload_isSet){ isObjectUpdated = true; break; } - if(m_filename_isSet){ + if(filename && *filename != QString("")){ isObjectUpdated = true; break; } if(m_autosave_period_isSet){ diff --git a/swagger/sdrangel/code/qt5/client/SWGSIDSettings.h b/swagger/sdrangel/code/qt5/client/SWGSIDSettings.h index e56ed7ca3..c51bba34c 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSIDSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGSIDSettings.h @@ -52,8 +52,8 @@ public: qint32 getAutoload(); void setAutoload(qint32 autoload); - qint32 getFilename(); - void setFilename(qint32 filename); + QString* getFilename(); + void setFilename(QString* filename); qint32 getAutosavePeriod(); void setAutosavePeriod(qint32 autosave_period); @@ -95,7 +95,7 @@ private: qint32 autoload; bool m_autoload_isSet; - qint32 filename; + QString* filename; bool m_filename_isSet; qint32 autosave_period; diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.cpp new file mode 100644 index 000000000..baa4a8307 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.cpp @@ -0,0 +1,200 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSpectrumActions.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSpectrumActions::SWGSpectrumActions(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSpectrumActions::SWGSpectrumActions() { + autoscale = 0; + m_autoscale_isSet = false; + clear_spectrum = 0; + m_clear_spectrum_isSet = false; + reset_measurements = 0; + m_reset_measurements_isSet = false; + freeze = 0; + m_freeze_isSet = false; + goto_marker = 0; + m_goto_marker_isSet = false; +} + +SWGSpectrumActions::~SWGSpectrumActions() { + this->cleanup(); +} + +void +SWGSpectrumActions::init() { + autoscale = 0; + m_autoscale_isSet = false; + clear_spectrum = 0; + m_clear_spectrum_isSet = false; + reset_measurements = 0; + m_reset_measurements_isSet = false; + freeze = 0; + m_freeze_isSet = false; + goto_marker = 0; + m_goto_marker_isSet = false; +} + +void +SWGSpectrumActions::cleanup() { + + + + + +} + +SWGSpectrumActions* +SWGSpectrumActions::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSpectrumActions::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&autoscale, pJson["autoscale"], "qint32", ""); + + ::SWGSDRangel::setValue(&clear_spectrum, pJson["clearSpectrum"], "qint32", ""); + + ::SWGSDRangel::setValue(&reset_measurements, pJson["resetMeasurements"], "qint32", ""); + + ::SWGSDRangel::setValue(&freeze, pJson["freeze"], "qint32", ""); + + ::SWGSDRangel::setValue(&goto_marker, pJson["gotoMarker"], "qint32", ""); + +} + +QString +SWGSpectrumActions::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSpectrumActions::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_autoscale_isSet){ + obj->insert("autoscale", QJsonValue(autoscale)); + } + if(m_clear_spectrum_isSet){ + obj->insert("clearSpectrum", QJsonValue(clear_spectrum)); + } + if(m_reset_measurements_isSet){ + obj->insert("resetMeasurements", QJsonValue(reset_measurements)); + } + if(m_freeze_isSet){ + obj->insert("freeze", QJsonValue(freeze)); + } + if(m_goto_marker_isSet){ + obj->insert("gotoMarker", QJsonValue(goto_marker)); + } + + return obj; +} + +qint32 +SWGSpectrumActions::getAutoscale() { + return autoscale; +} +void +SWGSpectrumActions::setAutoscale(qint32 autoscale) { + this->autoscale = autoscale; + this->m_autoscale_isSet = true; +} + +qint32 +SWGSpectrumActions::getClearSpectrum() { + return clear_spectrum; +} +void +SWGSpectrumActions::setClearSpectrum(qint32 clear_spectrum) { + this->clear_spectrum = clear_spectrum; + this->m_clear_spectrum_isSet = true; +} + +qint32 +SWGSpectrumActions::getResetMeasurements() { + return reset_measurements; +} +void +SWGSpectrumActions::setResetMeasurements(qint32 reset_measurements) { + this->reset_measurements = reset_measurements; + this->m_reset_measurements_isSet = true; +} + +qint32 +SWGSpectrumActions::getFreeze() { + return freeze; +} +void +SWGSpectrumActions::setFreeze(qint32 freeze) { + this->freeze = freeze; + this->m_freeze_isSet = true; +} + +qint32 +SWGSpectrumActions::getGotoMarker() { + return goto_marker; +} +void +SWGSpectrumActions::setGotoMarker(qint32 goto_marker) { + this->goto_marker = goto_marker; + this->m_goto_marker_isSet = true; +} + + +bool +SWGSpectrumActions::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_autoscale_isSet){ + isObjectUpdated = true; break; + } + if(m_clear_spectrum_isSet){ + isObjectUpdated = true; break; + } + if(m_reset_measurements_isSet){ + isObjectUpdated = true; break; + } + if(m_freeze_isSet){ + isObjectUpdated = true; break; + } + if(m_goto_marker_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.h new file mode 100644 index 000000000..316e0d92e --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumActions.h @@ -0,0 +1,82 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSpectrumActions.h + * + * Actions on the main spectrum of a device set + */ + +#ifndef SWGSpectrumActions_H_ +#define SWGSpectrumActions_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSpectrumActions: public SWGObject { +public: + SWGSpectrumActions(); + SWGSpectrumActions(QString* json); + virtual ~SWGSpectrumActions(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSpectrumActions* fromJson(QString &jsonString) override; + + qint32 getAutoscale(); + void setAutoscale(qint32 autoscale); + + qint32 getClearSpectrum(); + void setClearSpectrum(qint32 clear_spectrum); + + qint32 getResetMeasurements(); + void setResetMeasurements(qint32 reset_measurements); + + qint32 getFreeze(); + void setFreeze(qint32 freeze); + + qint32 getGotoMarker(); + void setGotoMarker(qint32 goto_marker); + + + virtual bool isSet() override; + +private: + qint32 autoscale; + bool m_autoscale_isSet; + + qint32 clear_spectrum; + bool m_clear_spectrum_isSet; + + qint32 reset_measurements; + bool m_reset_measurements_isSet; + + qint32 freeze; + bool m_freeze_isSet; + + qint32 goto_marker; + bool m_goto_marker_isSet; + +}; + +} + +#endif /* SWGSpectrumActions_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.cpp index 51b59cdbc..228037c4a 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.cpp @@ -36,6 +36,8 @@ SWGSpectrumAnnotationMarker::SWGSpectrumAnnotationMarker() { m_marker_color_isSet = false; show = 0; m_show_isSet = false; + text = nullptr; + m_text_isSet = false; } SWGSpectrumAnnotationMarker::~SWGSpectrumAnnotationMarker() { @@ -52,6 +54,8 @@ SWGSpectrumAnnotationMarker::init() { m_marker_color_isSet = false; show = 0; m_show_isSet = false; + text = new QString(""); + m_text_isSet = false; } void @@ -60,6 +64,9 @@ SWGSpectrumAnnotationMarker::cleanup() { + if(text != nullptr) { + delete text; + } } SWGSpectrumAnnotationMarker* @@ -81,6 +88,8 @@ SWGSpectrumAnnotationMarker::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&show, pJson["show"], "qint32", ""); + ::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString"); + } QString @@ -109,6 +118,9 @@ SWGSpectrumAnnotationMarker::asJsonObject() { if(m_show_isSet){ obj->insert("show", QJsonValue(show)); } + if(text != nullptr && *text != QString("")){ + toJsonValue(QString("text"), text, obj, QString("QString")); + } return obj; } @@ -153,6 +165,16 @@ SWGSpectrumAnnotationMarker::setShow(qint32 show) { this->m_show_isSet = true; } +QString* +SWGSpectrumAnnotationMarker::getText() { + return text; +} +void +SWGSpectrumAnnotationMarker::setText(QString* text) { + this->text = text; + this->m_text_isSet = true; +} + bool SWGSpectrumAnnotationMarker::isSet(){ @@ -170,6 +192,9 @@ SWGSpectrumAnnotationMarker::isSet(){ if(m_show_isSet){ isObjectUpdated = true; break; } + if(text && *text != QString("")){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.h index a50a6ea05..00926ca83 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.h +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumAnnotationMarker.h @@ -22,6 +22,7 @@ #include +#include #include "SWGObject.h" #include "export.h" @@ -53,6 +54,9 @@ public: qint32 getShow(); void setShow(qint32 show); + QString* getText(); + void setText(QString* text); + virtual bool isSet() override; @@ -69,6 +73,9 @@ private: qint32 show; bool m_show_isSet; + QString* text; + bool m_text_isSet; + }; } diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp new file mode 100644 index 000000000..3ee007719 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp @@ -0,0 +1,273 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSpectrumHistorySignal.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSpectrumHistorySignal::SWGSpectrumHistorySignal(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSpectrumHistorySignal::SWGSpectrumHistorySignal() { + frequency = 0L; + m_frequency_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + peak_db = 0.0f; + m_peak_db_isSet = false; + duty_cycle = 0.0f; + m_duty_cycle_isSet = false; + first_seen = nullptr; + m_first_seen_isSet = false; + last_seen = nullptr; + m_last_seen_isSet = false; +} + +SWGSpectrumHistorySignal::~SWGSpectrumHistorySignal() { + this->cleanup(); +} + +void +SWGSpectrumHistorySignal::init() { + frequency = 0L; + m_frequency_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + peak_db = 0.0f; + m_peak_db_isSet = false; + duty_cycle = 0.0f; + m_duty_cycle_isSet = false; + first_seen = new QString(""); + m_first_seen_isSet = false; + last_seen = new QString(""); + m_last_seen_isSet = false; +} + +void +SWGSpectrumHistorySignal::cleanup() { + + + + + + + if(first_seen != nullptr) { + delete first_seen; + } + if(last_seen != nullptr) { + delete last_seen; + } +} + +SWGSpectrumHistorySignal* +SWGSpectrumHistorySignal::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSpectrumHistorySignal::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&frequency, pJson["frequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&start_frequency, pJson["startFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&stop_frequency, pJson["stopFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&peak_db, pJson["peakDb"], "float", ""); + + ::SWGSDRangel::setValue(&duty_cycle, pJson["dutyCycle"], "float", ""); + + ::SWGSDRangel::setValue(&first_seen, pJson["firstSeen"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_seen, pJson["lastSeen"], "QString", "QString"); + +} + +QString +SWGSpectrumHistorySignal::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSpectrumHistorySignal::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_frequency_isSet){ + obj->insert("frequency", QJsonValue(frequency)); + } + if(m_start_frequency_isSet){ + obj->insert("startFrequency", QJsonValue(start_frequency)); + } + if(m_stop_frequency_isSet){ + obj->insert("stopFrequency", QJsonValue(stop_frequency)); + } + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + if(m_peak_db_isSet){ + obj->insert("peakDb", QJsonValue(peak_db)); + } + if(m_duty_cycle_isSet){ + obj->insert("dutyCycle", QJsonValue(duty_cycle)); + } + if(first_seen != nullptr && *first_seen != QString("")){ + toJsonValue(QString("firstSeen"), first_seen, obj, QString("QString")); + } + if(last_seen != nullptr && *last_seen != QString("")){ + toJsonValue(QString("lastSeen"), last_seen, obj, QString("QString")); + } + + return obj; +} + +qint64 +SWGSpectrumHistorySignal::getFrequency() { + return frequency; +} +void +SWGSpectrumHistorySignal::setFrequency(qint64 frequency) { + this->frequency = frequency; + this->m_frequency_isSet = true; +} + +qint64 +SWGSpectrumHistorySignal::getStartFrequency() { + return start_frequency; +} +void +SWGSpectrumHistorySignal::setStartFrequency(qint64 start_frequency) { + this->start_frequency = start_frequency; + this->m_start_frequency_isSet = true; +} + +qint64 +SWGSpectrumHistorySignal::getStopFrequency() { + return stop_frequency; +} +void +SWGSpectrumHistorySignal::setStopFrequency(qint64 stop_frequency) { + this->stop_frequency = stop_frequency; + this->m_stop_frequency_isSet = true; +} + +qint32 +SWGSpectrumHistorySignal::getBandwidth() { + return bandwidth; +} +void +SWGSpectrumHistorySignal::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + +float +SWGSpectrumHistorySignal::getPeakDb() { + return peak_db; +} +void +SWGSpectrumHistorySignal::setPeakDb(float peak_db) { + this->peak_db = peak_db; + this->m_peak_db_isSet = true; +} + +float +SWGSpectrumHistorySignal::getDutyCycle() { + return duty_cycle; +} +void +SWGSpectrumHistorySignal::setDutyCycle(float duty_cycle) { + this->duty_cycle = duty_cycle; + this->m_duty_cycle_isSet = true; +} + +QString* +SWGSpectrumHistorySignal::getFirstSeen() { + return first_seen; +} +void +SWGSpectrumHistorySignal::setFirstSeen(QString* first_seen) { + this->first_seen = first_seen; + this->m_first_seen_isSet = true; +} + +QString* +SWGSpectrumHistorySignal::getLastSeen() { + return last_seen; +} +void +SWGSpectrumHistorySignal::setLastSeen(QString* last_seen) { + this->last_seen = last_seen; + this->m_last_seen_isSet = true; +} + + +bool +SWGSpectrumHistorySignal::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_start_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_stop_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_peak_db_isSet){ + isObjectUpdated = true; break; + } + if(m_duty_cycle_isSet){ + isObjectUpdated = true; break; + } + if(first_seen && *first_seen != QString("")){ + isObjectUpdated = true; break; + } + if(last_seen && *last_seen != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h new file mode 100644 index 000000000..8ee2a318d --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h @@ -0,0 +1,101 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSpectrumHistorySignal.h + * + * A signal found in the spectrum history + */ + +#ifndef SWGSpectrumHistorySignal_H_ +#define SWGSpectrumHistorySignal_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSpectrumHistorySignal: public SWGObject { +public: + SWGSpectrumHistorySignal(); + SWGSpectrumHistorySignal(QString* json); + virtual ~SWGSpectrumHistorySignal(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSpectrumHistorySignal* fromJson(QString &jsonString) override; + + qint64 getFrequency(); + void setFrequency(qint64 frequency); + + qint64 getStartFrequency(); + void setStartFrequency(qint64 start_frequency); + + qint64 getStopFrequency(); + void setStopFrequency(qint64 stop_frequency); + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + float getPeakDb(); + void setPeakDb(float peak_db); + + float getDutyCycle(); + void setDutyCycle(float duty_cycle); + + QString* getFirstSeen(); + void setFirstSeen(QString* first_seen); + + QString* getLastSeen(); + void setLastSeen(QString* last_seen); + + + virtual bool isSet() override; + +private: + qint64 frequency; + bool m_frequency_isSet; + + qint64 start_frequency; + bool m_start_frequency_isSet; + + qint64 stop_frequency; + bool m_stop_frequency_isSet; + + qint32 bandwidth; + bool m_bandwidth_isSet; + + float peak_db; + bool m_peak_db_isSet; + + float duty_cycle; + bool m_duty_cycle_isSet; + + QString* first_seen; + bool m_first_seen_isSet; + + QString* last_seen; + bool m_last_seen_isSet; + +}; + +} + +#endif /* SWGSpectrumHistorySignal_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.cpp new file mode 100644 index 000000000..23f511e45 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.cpp @@ -0,0 +1,156 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSpectrumMemorySettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSpectrumMemorySettings::SWGSpectrumMemorySettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSpectrumMemorySettings::SWGSpectrumMemorySettings() { + display = 0; + m_display_isSet = false; + color = 0; + m_color_isSet = false; + label = nullptr; + m_label_isSet = false; +} + +SWGSpectrumMemorySettings::~SWGSpectrumMemorySettings() { + this->cleanup(); +} + +void +SWGSpectrumMemorySettings::init() { + display = 0; + m_display_isSet = false; + color = 0; + m_color_isSet = false; + label = new QString(""); + m_label_isSet = false; +} + +void +SWGSpectrumMemorySettings::cleanup() { + + + if(label != nullptr) { + delete label; + } +} + +SWGSpectrumMemorySettings* +SWGSpectrumMemorySettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSpectrumMemorySettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&display, pJson["display"], "qint32", ""); + + ::SWGSDRangel::setValue(&color, pJson["color"], "qint32", ""); + + ::SWGSDRangel::setValue(&label, pJson["label"], "QString", "QString"); + +} + +QString +SWGSpectrumMemorySettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSpectrumMemorySettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_display_isSet){ + obj->insert("display", QJsonValue(display)); + } + if(m_color_isSet){ + obj->insert("color", QJsonValue(color)); + } + if(label != nullptr && *label != QString("")){ + toJsonValue(QString("label"), label, obj, QString("QString")); + } + + return obj; +} + +qint32 +SWGSpectrumMemorySettings::getDisplay() { + return display; +} +void +SWGSpectrumMemorySettings::setDisplay(qint32 display) { + this->display = display; + this->m_display_isSet = true; +} + +qint32 +SWGSpectrumMemorySettings::getColor() { + return color; +} +void +SWGSpectrumMemorySettings::setColor(qint32 color) { + this->color = color; + this->m_color_isSet = true; +} + +QString* +SWGSpectrumMemorySettings::getLabel() { + return label; +} +void +SWGSpectrumMemorySettings::setLabel(QString* label) { + this->label = label; + this->m_label_isSet = true; +} + + +bool +SWGSpectrumMemorySettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_display_isSet){ + isObjectUpdated = true; break; + } + if(m_color_isSet){ + isObjectUpdated = true; break; + } + if(label && *label != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.h new file mode 100644 index 000000000..f25be4c90 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumMemorySettings.h @@ -0,0 +1,71 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSpectrumMemorySettings.h + * + * Display settings for one saved spectrum memory. The captured spectrum samples are not transferred through settings APIs. + */ + +#ifndef SWGSpectrumMemorySettings_H_ +#define SWGSpectrumMemorySettings_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSpectrumMemorySettings: public SWGObject { +public: + SWGSpectrumMemorySettings(); + SWGSpectrumMemorySettings(QString* json); + virtual ~SWGSpectrumMemorySettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSpectrumMemorySettings* fromJson(QString &jsonString) override; + + qint32 getDisplay(); + void setDisplay(qint32 display); + + qint32 getColor(); + void setColor(qint32 color); + + QString* getLabel(); + void setLabel(QString* label); + + + virtual bool isSet() override; + +private: + qint32 display; + bool m_display_isSet; + + qint32 color; + bool m_color_isSet; + + QString* label; + bool m_label_isSet; + +}; + +} + +#endif /* SWGSpectrumMemorySettings_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.cpp new file mode 100644 index 000000000..06885988c --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.cpp @@ -0,0 +1,131 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSpectrumPeak.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSpectrumPeak::SWGSpectrumPeak(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSpectrumPeak::SWGSpectrumPeak() { + frequency = 0L; + m_frequency_isSet = false; + power = 0.0f; + m_power_isSet = false; +} + +SWGSpectrumPeak::~SWGSpectrumPeak() { + this->cleanup(); +} + +void +SWGSpectrumPeak::init() { + frequency = 0L; + m_frequency_isSet = false; + power = 0.0f; + m_power_isSet = false; +} + +void +SWGSpectrumPeak::cleanup() { + + +} + +SWGSpectrumPeak* +SWGSpectrumPeak::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSpectrumPeak::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&frequency, pJson["frequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&power, pJson["power"], "float", ""); + +} + +QString +SWGSpectrumPeak::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSpectrumPeak::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_frequency_isSet){ + obj->insert("frequency", QJsonValue(frequency)); + } + if(m_power_isSet){ + obj->insert("power", QJsonValue(power)); + } + + return obj; +} + +qint64 +SWGSpectrumPeak::getFrequency() { + return frequency; +} +void +SWGSpectrumPeak::setFrequency(qint64 frequency) { + this->frequency = frequency; + this->m_frequency_isSet = true; +} + +float +SWGSpectrumPeak::getPower() { + return power; +} +void +SWGSpectrumPeak::setPower(float power) { + this->power = power; + this->m_power_isSet = true; +} + + +bool +SWGSpectrumPeak::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_power_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.h new file mode 100644 index 000000000..e4b12ecb2 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumPeak.h @@ -0,0 +1,64 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSpectrumPeak.h + * + * One peak found in the spectrum + */ + +#ifndef SWGSpectrumPeak_H_ +#define SWGSpectrumPeak_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSpectrumPeak: public SWGObject { +public: + SWGSpectrumPeak(); + SWGSpectrumPeak(QString* json); + virtual ~SWGSpectrumPeak(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSpectrumPeak* fromJson(QString &jsonString) override; + + qint64 getFrequency(); + void setFrequency(qint64 frequency); + + float getPower(); + void setPower(float power); + + + virtual bool isSet() override; + +private: + qint64 frequency; + bool m_frequency_isSet; + + float power; + bool m_power_isSet; + +}; + +} + +#endif /* SWGSpectrumPeak_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.cpp index cbe9abfa2..f7888797e 100644 --- a/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.cpp @@ -62,6 +62,10 @@ SWGTestSourceSettings::SWGTestSourceSettings() { m_q_factor_isSet = false; phase_imbalance = 0.0f; m_phase_imbalance_isSet = false; + period = 0; + m_period_isSet = false; + duty_cycle = 0; + m_duty_cycle_isSet = false; use_reverse_api = 0; m_use_reverse_api_isSet = false; reverse_api_address = nullptr; @@ -112,6 +116,10 @@ SWGTestSourceSettings::init() { m_q_factor_isSet = false; phase_imbalance = 0.0f; m_phase_imbalance_isSet = false; + period = 0; + m_period_isSet = false; + duty_cycle = 0; + m_duty_cycle_isSet = false; use_reverse_api = 0; m_use_reverse_api_isSet = false; reverse_api_address = new QString(""); @@ -144,6 +152,8 @@ SWGTestSourceSettings::cleanup() { + + if(reverse_api_address != nullptr) { delete reverse_api_address; } @@ -196,6 +206,10 @@ SWGTestSourceSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&phase_imbalance, pJson["phaseImbalance"], "float", ""); + ::SWGSDRangel::setValue(&period, pJson["period"], "qint32", ""); + + ::SWGSDRangel::setValue(&duty_cycle, pJson["dutyCycle"], "qint32", ""); + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); @@ -271,6 +285,12 @@ SWGTestSourceSettings::asJsonObject() { if(m_phase_imbalance_isSet){ obj->insert("phaseImbalance", QJsonValue(phase_imbalance)); } + if(m_period_isSet){ + obj->insert("period", QJsonValue(period)); + } + if(m_duty_cycle_isSet){ + obj->insert("dutyCycle", QJsonValue(duty_cycle)); + } if(m_use_reverse_api_isSet){ obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); } @@ -457,6 +477,26 @@ SWGTestSourceSettings::setPhaseImbalance(float phase_imbalance) { this->m_phase_imbalance_isSet = true; } +qint32 +SWGTestSourceSettings::getPeriod() { + return period; +} +void +SWGTestSourceSettings::setPeriod(qint32 period) { + this->period = period; + this->m_period_isSet = true; +} + +qint32 +SWGTestSourceSettings::getDutyCycle() { + return duty_cycle; +} +void +SWGTestSourceSettings::setDutyCycle(qint32 duty_cycle) { + this->duty_cycle = duty_cycle; + this->m_duty_cycle_isSet = true; +} + qint32 SWGTestSourceSettings::getUseReverseApi() { return use_reverse_api; @@ -553,6 +593,12 @@ SWGTestSourceSettings::isSet(){ if(m_phase_imbalance_isSet){ isObjectUpdated = true; break; } + if(m_period_isSet){ + isObjectUpdated = true; break; + } + if(m_duty_cycle_isSet){ + isObjectUpdated = true; break; + } if(m_use_reverse_api_isSet){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.h b/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.h index fe3f95dde..261753bd2 100644 --- a/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGTestSourceSettings.h @@ -93,6 +93,12 @@ public: float getPhaseImbalance(); void setPhaseImbalance(float phase_imbalance); + qint32 getPeriod(); + void setPeriod(qint32 period); + + qint32 getDutyCycle(); + void setDutyCycle(qint32 duty_cycle); + qint32 getUseReverseApi(); void setUseReverseApi(qint32 use_reverse_api); @@ -160,6 +166,12 @@ private: float phase_imbalance; bool m_phase_imbalance_isSet; + qint32 period; + bool m_period_isSet; + + qint32 duty_cycle; + bool m_duty_cycle_isSet; + qint32 use_reverse_api; bool m_use_reverse_api_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGVORLocalizerSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGVORLocalizerSettings.cpp index 33fd41e42..7fe3ca094 100644 --- a/swagger/sdrangel/code/qt5/client/SWGVORLocalizerSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGVORLocalizerSettings.cpp @@ -210,10 +210,10 @@ SWGVORLocalizerSettings::asJsonObject() { toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); } if(column_indexes && column_indexes->size() > 0){ - toJsonArray((QList*)column_indexes, obj, "columnIndexes", "qint32"); + toJsonArray((QList*)column_indexes, obj, "columnIndexes", ""); } if(column_sizes && column_sizes->size() > 0){ - toJsonArray((QList*)column_sizes, obj, "columnSizes", "qint32"); + toJsonArray((QList*)column_sizes, obj, "columnSizes", ""); } return obj; diff --git a/swagger/sdrangel/code/qt5/client/SWGWDSPRxSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGWDSPRxSettings.cpp index 38e53dfba..f5ee64999 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWDSPRxSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGWDSPRxSettings.cpp @@ -692,10 +692,10 @@ SWGWDSPRxSettings::asJsonObject() { obj->insert("equalizer", QJsonValue(equalizer)); } if(eq_f && eq_f->size() > 0){ - toJsonArray((QList*)eq_f, obj, "eqF", "float"); + toJsonArray((QList*)eq_f, obj, "eqF", ""); } if(eq_g && eq_g->size() > 0){ - toJsonArray((QList*)eq_g, obj, "eqG", "float"); + toJsonArray((QList*)eq_g, obj, "eqG", ""); } if(m_rit_isSet){ obj->insert("rit", QJsonValue(rit)); diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp new file mode 100644 index 000000000..09b64e4a8 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp @@ -0,0 +1,227 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGWindowInfo.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGWindowInfo::SWGWindowInfo(QString* json) { + init(); + this->fromJson(*json); +} + +SWGWindowInfo::SWGWindowInfo() { + kind = nullptr; + m_kind_isSet = false; + device_set_index = 0; + m_device_set_index_isSet = false; + index = 0; + m_index_isSet = false; + title = nullptr; + m_title_isSet = false; + workspace_index = 0; + m_workspace_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; +} + +SWGWindowInfo::~SWGWindowInfo() { + this->cleanup(); +} + +void +SWGWindowInfo::init() { + kind = new QString(""); + m_kind_isSet = false; + device_set_index = 0; + m_device_set_index_isSet = false; + index = 0; + m_index_isSet = false; + title = new QString(""); + m_title_isSet = false; + workspace_index = 0; + m_workspace_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; +} + +void +SWGWindowInfo::cleanup() { + if(kind != nullptr) { + delete kind; + } + + + if(title != nullptr) { + delete title; + } + + +} + +SWGWindowInfo* +SWGWindowInfo::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGWindowInfo::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&kind, pJson["kind"], "QString", "QString"); + + ::SWGSDRangel::setValue(&device_set_index, pJson["deviceSetIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&index, pJson["index"], "qint32", ""); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&workspace_index, pJson["workspaceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&hidden, pJson["hidden"], "qint32", ""); + +} + +QString +SWGWindowInfo::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGWindowInfo::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(kind != nullptr && *kind != QString("")){ + toJsonValue(QString("kind"), kind, obj, QString("QString")); + } + if(m_device_set_index_isSet){ + obj->insert("deviceSetIndex", QJsonValue(device_set_index)); + } + if(m_index_isSet){ + obj->insert("index", QJsonValue(index)); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_workspace_index_isSet){ + obj->insert("workspaceIndex", QJsonValue(workspace_index)); + } + if(m_hidden_isSet){ + obj->insert("hidden", QJsonValue(hidden)); + } + + return obj; +} + +QString* +SWGWindowInfo::getKind() { + return kind; +} +void +SWGWindowInfo::setKind(QString* kind) { + this->kind = kind; + this->m_kind_isSet = true; +} + +qint32 +SWGWindowInfo::getDeviceSetIndex() { + return device_set_index; +} +void +SWGWindowInfo::setDeviceSetIndex(qint32 device_set_index) { + this->device_set_index = device_set_index; + this->m_device_set_index_isSet = true; +} + +qint32 +SWGWindowInfo::getIndex() { + return index; +} +void +SWGWindowInfo::setIndex(qint32 index) { + this->index = index; + this->m_index_isSet = true; +} + +QString* +SWGWindowInfo::getTitle() { + return title; +} +void +SWGWindowInfo::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGWindowInfo::getWorkspaceIndex() { + return workspace_index; +} +void +SWGWindowInfo::setWorkspaceIndex(qint32 workspace_index) { + this->workspace_index = workspace_index; + this->m_workspace_index_isSet = true; +} + +qint32 +SWGWindowInfo::getHidden() { + return hidden; +} +void +SWGWindowInfo::setHidden(qint32 hidden) { + this->hidden = hidden; + this->m_hidden_isSet = true; +} + + +bool +SWGWindowInfo::isSet(){ + bool isObjectUpdated = false; + do{ + if(kind && *kind != QString("")){ + isObjectUpdated = true; break; + } + if(m_device_set_index_isSet){ + isObjectUpdated = true; break; + } + if(m_index_isSet){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_workspace_index_isSet){ + isObjectUpdated = true; break; + } + if(m_hidden_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h new file mode 100644 index 000000000..5870f7e49 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h @@ -0,0 +1,89 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGWindowInfo.h + * + * One window of the GUI + */ + +#ifndef SWGWindowInfo_H_ +#define SWGWindowInfo_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGWindowInfo: public SWGObject { +public: + SWGWindowInfo(); + SWGWindowInfo(QString* json); + virtual ~SWGWindowInfo(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGWindowInfo* fromJson(QString &jsonString) override; + + QString* getKind(); + void setKind(QString* kind); + + qint32 getDeviceSetIndex(); + void setDeviceSetIndex(qint32 device_set_index); + + qint32 getIndex(); + void setIndex(qint32 index); + + QString* getTitle(); + void setTitle(QString* title); + + qint32 getWorkspaceIndex(); + void setWorkspaceIndex(qint32 workspace_index); + + qint32 getHidden(); + void setHidden(qint32 hidden); + + + virtual bool isSet() override; + +private: + QString* kind; + bool m_kind_isSet; + + qint32 device_set_index; + bool m_device_set_index_isSet; + + qint32 index; + bool m_index_isSet; + + QString* title; + bool m_title_isSet; + + qint32 workspace_index; + bool m_workspace_index_isSet; + + qint32 hidden; + bool m_hidden_isSet; + +}; + +} + +#endif /* SWGWindowInfo_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp b/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp new file mode 100644 index 000000000..db9d4b5c2 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp @@ -0,0 +1,137 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGWindowList.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGWindowList::SWGWindowList(QString* json) { + init(); + this->fromJson(*json); +} + +SWGWindowList::SWGWindowList() { + window_count = 0; + m_window_count_isSet = false; + windows = nullptr; + m_windows_isSet = false; +} + +SWGWindowList::~SWGWindowList() { + this->cleanup(); +} + +void +SWGWindowList::init() { + window_count = 0; + m_window_count_isSet = false; + windows = new QList(); + m_windows_isSet = false; +} + +void +SWGWindowList::cleanup() { + + if(windows != nullptr) { + auto arr = windows; + for(auto o: *arr) { + delete o; + } + delete windows; + } +} + +SWGWindowList* +SWGWindowList::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGWindowList::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&window_count, pJson["windowCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&windows, pJson["windows"], "QList", "SWGWindowInfo"); +} + +QString +SWGWindowList::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGWindowList::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_window_count_isSet){ + obj->insert("windowCount", QJsonValue(window_count)); + } + if(windows && windows->size() > 0){ + toJsonArray((QList*)windows, obj, "windows", "SWGWindowInfo"); + } + + return obj; +} + +qint32 +SWGWindowList::getWindowCount() { + return window_count; +} +void +SWGWindowList::setWindowCount(qint32 window_count) { + this->window_count = window_count; + this->m_window_count_isSet = true; +} + +QList* +SWGWindowList::getWindows() { + return windows; +} +void +SWGWindowList::setWindows(QList* windows) { + this->windows = windows; + this->m_windows_isSet = true; +} + + +bool +SWGWindowList::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_window_count_isSet){ + isObjectUpdated = true; break; + } + if(windows && (windows->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowList.h b/swagger/sdrangel/code/qt5/client/SWGWindowList.h new file mode 100644 index 000000000..8ded1a5da --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowList.h @@ -0,0 +1,66 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGWindowList.h + * + * Every device, spectrum, channel and feature window of the GUI + */ + +#ifndef SWGWindowList_H_ +#define SWGWindowList_H_ + +#include + + +#include "SWGWindowInfo.h" +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGWindowList: public SWGObject { +public: + SWGWindowList(); + SWGWindowList(QString* json); + virtual ~SWGWindowList(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGWindowList* fromJson(QString &jsonString) override; + + qint32 getWindowCount(); + void setWindowCount(qint32 window_count); + + QList* getWindows(); + void setWindows(QList* windows); + + + virtual bool isSet() override; + +private: + qint32 window_count; + bool m_window_count_isSet; + + QList* windows; + bool m_windows_isSet; + +}; + +} + +#endif /* SWGWindowList_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.cpp b/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.cpp new file mode 100644 index 000000000..cd72fd684 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.cpp @@ -0,0 +1,110 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGWorkspaceActions.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGWorkspaceActions::SWGWorkspaceActions(QString* json) { + init(); + this->fromJson(*json); +} + +SWGWorkspaceActions::SWGWorkspaceActions() { + arrange = nullptr; + m_arrange_isSet = false; +} + +SWGWorkspaceActions::~SWGWorkspaceActions() { + this->cleanup(); +} + +void +SWGWorkspaceActions::init() { + arrange = new QString(""); + m_arrange_isSet = false; +} + +void +SWGWorkspaceActions::cleanup() { + if(arrange != nullptr) { + delete arrange; + } +} + +SWGWorkspaceActions* +SWGWorkspaceActions::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGWorkspaceActions::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&arrange, pJson["arrange"], "QString", "QString"); + +} + +QString +SWGWorkspaceActions::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGWorkspaceActions::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(arrange != nullptr && *arrange != QString("")){ + toJsonValue(QString("arrange"), arrange, obj, QString("QString")); + } + + return obj; +} + +QString* +SWGWorkspaceActions::getArrange() { + return arrange; +} +void +SWGWorkspaceActions::setArrange(QString* arrange) { + this->arrange = arrange; + this->m_arrange_isSet = true; +} + + +bool +SWGWorkspaceActions::isSet(){ + bool isObjectUpdated = false; + do{ + if(arrange && *arrange != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.h b/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.h new file mode 100644 index 000000000..fb0dcaf24 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceActions.h @@ -0,0 +1,59 @@ +/** + * SDRangel + * 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 --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGWorkspaceActions.h + * + * Actions on a workspace + */ + +#ifndef SWGWorkspaceActions_H_ +#define SWGWorkspaceActions_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGWorkspaceActions: public SWGObject { +public: + SWGWorkspaceActions(); + SWGWorkspaceActions(QString* json); + virtual ~SWGWorkspaceActions(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGWorkspaceActions* fromJson(QString &jsonString) override; + + QString* getArrange(); + void setArrange(QString* arrange); + + + virtual bool isSet() override; + +private: + QString* arrange; + bool m_arrange_isSet; + +}; + +} + +#endif /* SWGWorkspaceActions_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.cpp b/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.cpp index 8bda23922..cd7ddf847 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.cpp @@ -132,5 +132,62 @@ SWGWorkspaceApi::instanceWorkspacesDeleteEmptyCallback(SWGHttpRequestWorker * wo } } +void +SWGWorkspaceApi::workspaceActionsPost(qint32 workspace_index, SWGWorkspaceActions& body) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/workspace/{workspaceIndex}/actions"); + + QString workspace_indexPathParam("{"); workspace_indexPathParam.append("workspaceIndex").append("}"); + fullPath.replace(workspace_indexPathParam, stringValue(workspace_index)); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "POST"); + + + + QString output = body.asJson(); + input.request_body.append(output.toUtf8()); + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGWorkspaceApi::workspaceActionsPostCallback); + + worker->execute(&input); +} + +void +SWGWorkspaceApi::workspaceActionsPostCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGSuccessResponse* output = static_cast(create(json, QString("SWGSuccessResponse"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit workspaceActionsPostSignal(output); + } else { + emit workspaceActionsPostSignalE(output, error_type, error_str); + emit workspaceActionsPostSignalEFull(worker, error_type, error_str); + } +} + } diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.h b/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.h index f0a45fa8e..3c4b5cac2 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceApi.h @@ -17,6 +17,7 @@ #include "SWGErrorResponse.h" #include "SWGSuccessResponse.h" +#include "SWGWorkspaceActions.h" #include @@ -36,20 +37,25 @@ public: void instanceWorkspaceAdd(); void instanceWorkspacesDeleteEmpty(); + void workspaceActionsPost(qint32 workspace_index, SWGWorkspaceActions& body); private: void instanceWorkspaceAddCallback (SWGHttpRequestWorker * worker); void instanceWorkspacesDeleteEmptyCallback (SWGHttpRequestWorker * worker); + void workspaceActionsPostCallback (SWGHttpRequestWorker * worker); signals: void instanceWorkspaceAddSignal(SWGSuccessResponse* summary); void instanceWorkspacesDeleteEmptySignal(SWGSuccessResponse* summary); + void workspaceActionsPostSignal(SWGSuccessResponse* summary); void instanceWorkspaceAddSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceWorkspacesDeleteEmptySignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void workspaceActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceWorkspaceAddSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceWorkspacesDeleteEmptySignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void workspaceActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); }; diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp index 94de36bcc..bb988d3d8 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp @@ -30,6 +30,8 @@ SWGWorkspaceInfo::SWGWorkspaceInfo(QString* json) { SWGWorkspaceInfo::SWGWorkspaceInfo() { index = 0; m_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; } SWGWorkspaceInfo::~SWGWorkspaceInfo() { @@ -40,11 +42,14 @@ void SWGWorkspaceInfo::init() { index = 0; m_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; } void SWGWorkspaceInfo::cleanup() { + } SWGWorkspaceInfo* @@ -60,6 +65,8 @@ void SWGWorkspaceInfo::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&index, pJson["index"], "qint32", ""); + ::SWGSDRangel::setValue(&hidden, pJson["hidden"], "qint32", ""); + } QString @@ -79,6 +86,9 @@ SWGWorkspaceInfo::asJsonObject() { if(m_index_isSet){ obj->insert("index", QJsonValue(index)); } + if(m_hidden_isSet){ + obj->insert("hidden", QJsonValue(hidden)); + } return obj; } @@ -93,6 +103,16 @@ SWGWorkspaceInfo::setIndex(qint32 index) { this->m_index_isSet = true; } +qint32 +SWGWorkspaceInfo::getHidden() { + return hidden; +} +void +SWGWorkspaceInfo::setHidden(qint32 hidden) { + this->hidden = hidden; + this->m_hidden_isSet = true; +} + bool SWGWorkspaceInfo::isSet(){ @@ -101,6 +121,9 @@ SWGWorkspaceInfo::isSet(){ if(m_index_isSet){ isObjectUpdated = true; break; } + if(m_hidden_isSet){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h index e094b8b16..013c17451 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h @@ -13,7 +13,7 @@ /* * SWGWorkspaceInfo.h * - * Workspace information + * Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it */ #ifndef SWGWorkspaceInfo_H_ @@ -44,6 +44,9 @@ public: qint32 getIndex(); void setIndex(qint32 index); + qint32 getHidden(); + void setHidden(qint32 hidden); + virtual bool isSet() override; @@ -51,6 +54,9 @@ private: qint32 index; bool m_index_isSet; + qint32 hidden; + bool m_hidden_isSet; + }; }