From 09ba1cc70078d624044d6acba4ec6285a3cd60ab Mon Sep 17 00:00:00 2001 From: hexinyue02 Date: Sun, 4 Feb 2024 18:53:32 +0800 Subject: [PATCH 1/2] Fix: GUI handle Startstop message --- plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp | 9 +++++++++ plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp | 9 +++++++++ plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp index ec62638d6..43a7a6404 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mimogui.cpp @@ -366,6 +366,15 @@ bool BladeRF2MIMOGui::handleMessage(const Message& message) return true; } + else if (BladeRF2MIMO::MsgStartStop::match(message)) + { + BladeRF2MIMO::MsgStartStop& notif = (BladeRF2MIMO::MsgStartStop&) message; + blockApplySettings(true); + (notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop()); + blockApplySettings(false); + + return true; + } return false; } diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp index c8d5c0389..1b864e1fb 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp @@ -258,6 +258,15 @@ bool LimeSDRMIMOGUI::handleMessage(const Message& message) ui->gpioText->setText(tr("%1").arg(report.getGPIOPins(), 2, 16, QChar('0')).toUpper()); return true; } + else if (LimeSDRMIMO::MsgStartStop::match(message)) + { + LimeSDRMIMO::MsgStartStop& notif = (LimeSDRMIMO::MsgStartStop&) message; + blockApplySettings(true); + (notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop()); + blockApplySettings(false); + + return true; + } else { return false; diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp index 5a62409e8..0bd20b19b 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmimogui.cpp @@ -442,6 +442,15 @@ bool PlutoSDRMIMOGUI::handleMessage(const Message& message) return true; } + else if (PlutoSDRMIMO::MsgStartStop::match(message)) + { + PlutoSDRMIMO::MsgStartStop& notif = (PlutoSDRMIMO::MsgStartStop&) message; + blockApplySettings(true); + (notif.getRxElseTx() ? ui->startStopRx : ui->startStopTx)->setChecked(notif.getStartStop()); + blockApplySettings(false); + + return true; + } return false; } From 8f802e64bf9292113177ad09ee7689d5ab547f5f Mon Sep 17 00:00:00 2001 From: hexinyue02 Date: Sun, 4 Feb 2024 22:42:36 +0800 Subject: [PATCH 2/2] Fix: LimeSDR MIMO Tx gain mode --- plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp index 1b864e1fb..fa6b51c8d 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmimogui.cpp @@ -308,6 +308,8 @@ void LimeSDRMIMOGUI::displaySettings() updateADCRate(); + ui->gainMode->setEnabled(true); + if (m_streamIndex == 0) { ui->lpf->setValue(m_settings.m_lpfBWRx0 / 1000); @@ -389,6 +391,13 @@ void LimeSDRMIMOGUI::displaySettings() updateDACRate(); + + ui->gainMode->setEnabled(false); + ui->gain->setEnabled(true); + ui->lnaGain->setEnabled(false); + ui->tiaGain->setEnabled(false); + ui->pgaGain->setEnabled(false); + if (m_streamIndex == 0) { ui->lpf->setValue(m_settings.m_lpfBWTx0 / 1000);