Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimplePTT: bugfix and enhancement #1983

Merged
merged 1 commit into from Feb 12, 2024
Merged

Conversation

mxi-box
Copy link
Contributor

@mxi-box mxi-box commented Feb 12, 2024

  • Fix misuse of device index
  • Add "None" option to SimplePTT to disable partial Rx/Tx switching
  • Support MIMO device

@mxi-box mxi-box changed the title SimpltPTT: Fix bug and enhancement SimplePTT: Fix bug and enhancement Feb 12, 2024
@mxi-box mxi-box changed the title SimplePTT: Fix bug and enhancement SimplePTT: bugfix and enhancement Feb 12, 2024
else if (deviceMIMOEngine)
{
QString text = QString("M%1").arg(deviceIndex);
ui->rxDevice->addItem(text, deviceIndex);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For MIMO devices you also have to specify a stream index as it handles several I/Q streams simultaneously

Copy link
Contributor Author

@mxi-box mxi-box Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For MIMO devices you also have to specify a stream index as it handles several I/Q streams simultaneously

In SimplePTT's case, it needs only a switch of Rx/Tx.
Seems that specifying stream indexes is unnecessary here, as the MIMO interface is defined without a stream-specified switch.

virtual bool startRx() = 0;
virtual void stopRx() = 0;
virtual bool startTx() = 0;
virtual void stopTx() = 0;

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to check. It means all Rx or Tx streams start and stop at once or just the ones with index 0. If this is not a bug it is a limitation but maybe not to be addressed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I see, the current startRx/startTx implementation is switching all streams at once. Maybe an extension is needed for multi-stream devices.

if (!m_deviceSampleMIMO->startRx()) { // Start everything

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact this is normal as the different streams are supposed to run synchronously.

@f4exb f4exb merged commit 4f2824d into f4exb:master Feb 12, 2024
2 of 3 checks passed
@mxi-box mxi-box deleted the simpleptt_enhance branch February 26, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants