-
Notifications
You must be signed in to change notification settings - Fork 15
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
RF notch filter is always on #21
Comments
@iwiq - thanks for your feedback. Looking at the source code of Settings.cpp, I see there is a SoapySDR argument called 'rfnotch_ctrl' (see here: https://github.com/SDRplay/SoapySDRPlay/blob/master/Settings.cpp#L1368), that should do exactly that for the RSP1A. You should be able to see all the available arguments by running the command:
The output here (I have an RSP2 connected at this moment) shows that 'rfnotch_ctrl' should be already enabled by default:
I am not sure if you wrote your own application that uses the SoapySDRPlay driver, or if you are running a third party application, like CubicSDR; in the latter case, you may want to make sure the application does not disable the RF notch filter for your RSP1A (or perhaps there is a button somewhere in the UI to switch it on and off). Hope this helps, |
Thank you so much!!! When I use osmocom source block in GNURADIO with device argument "driver=sdrplay,soapy=0", RF notch filter is off, and I can't switch it on. |
@iwiq - yes, you should be able to just add 'rfnotch_ctrl=true' to your device argument in osmocom, like this:
and it should work with osmocom. If it still doesn't work, you may want to try out this fork of the gr-osmosdr GNU Radio module (https://github.com/fventuri/gr-osmosdr); there I made all the changes to the original 'gr-osmosdr' module to support SDRplay API version 3.X (3.07) natively, without requiring the SoapySDR framework (and therefore the SoapySDRPlus driver). Franco |
Thank you. Perhaps I am doing something wrong, because it not work. I still have to try. There is similar question in your repository. fventuri/gr-osmosdr#1 |
@iwiq - first of all, sorry for the confusion about the 'gr-osmosdr' module, since it looks that API does not support RF notch and several other settings (see my comment there). In order to troubleshoot your problem with the argument
If you don't mind, please compile and install this debug version on your computer, and then run gqrx using this debug SoapySDRPlay driver two times:
Each run should have a few debug messages like the example above; please put those messages here (indicating the value you set for Franco |
I'm sorry to be late with the reply. API 3.07.1, Ubuntu 18.04 LTS, Gqrx 2.9
|
@iWig - those messages should show in the terminal where you launched gqrx from; if you don't see anything like that there, it almost looks like the method In order to replicate (and then troubleshoot) the behavior you are seeing there, I tried to rebuild gqrx here, but unfortunately I am having some problems compiling it with the version of GNU Radio I have on my computer right now (3.8.2), so I'll have to figure out in the next few days where is the problem, and then go back to look into how the parameter I'll send you and update as soon as I have gqrx built and running on my computer. Franco |
Thank you
|
Hi Franco. I built your temp debug SoapySDRPlay branch to make test with gqrx. I confirm what @iwiq wrote, no debug when enablig rfnotch_ctrl=true in the device arguments form. |
@nmaster2042 Thank you |
Hmmmmmmmm, Debug logging can be enabled in Gqrx by setting the QT_LOGGING_RULES environment variable: |
@iwiq it means you can enable debuging of gqrx by starting the app that way: $ QT_LOGGING_RULES=".debug=true;plotter.debug=false;qt..debug=false" gqrx It adds debug in the terminal but in my case, not the one @fventuri added in the SoapySDRPlay driver for testing. That could mean function is not called so rf notch filter actually isn't activated. |
Thanks @iwiq and @nmaster2042 for your detailed report and info. Quick update on my side: I still have problems compiling gr-osmosdr here on my computer with GNU Radio 3.8 (the problems are due to the SWIG bindings for Python, which seem to use Franco |
Thanks @iwiq for your suggestion; I didn't know about 'GNU Radio Live'. I also thought last night that perhaps the reason for my build problems is the incompatibility among the different versions of GNU Radio, the gr-osmosdr OOT module, and gqrx; I'd like to know which version of the GNU Radio, gr-osmosdr, and gqrx (and the Linux distro) you and @nmaster2042 are running there, to see if I am using the wrong version for one of these components. Thanks, |
I installed everything from repositories, it is very fast and simple on Ubuntu 18.04 LTS. Even faster with a live distro that is installed on a USB flash drive - 1-2 minutes. But I haven't tried it with a virtual machine. |
Here I'm using kubuntu 20.10. |
Good news @iwiq and @nmaster2042 !
Please pull the code from the new Thanks for your patience while I was troubleshooting these build problems on my computer, |
@fventuri I pulled, built and tested the device_string_args branch. Now I have the debug messages in terminal. Here, rfnotch_ctrl=true and dabnotch_ctrl=true are working. biasT_ctrl=true I can see the debug message but bias T doesn't seem to activate on port B. I'm using a RSP Duo, signe tuner mode for my tests. Update: BiasT is working with this SoapySDRPlay driver version with Cubic SDR just built from source for testing. |
@nmaster2042 To better explain what I mean, I added a couple more of those 'DEBUG' messages to the code in the Franco |
I understand what you mean but on rsp devices with more than one antenna port (RSP2, Duo and Dx), bias T is only available on B port. 2 years ago I had a RSP1A, only one antenna port, that's probably why it worked. It means in soapySDRplay, biasT is enabled only when actual RX antenna is the B port witch makes sense. |
Good point @nmaster2042 ; I didn't realize that bias T is only available on antenna B. Based on this, I just added a couple of lines to the code in Please download the latest code from the Thanks for your feedback, |
Thank you very much @fventuri , It's ok now, I can enable/disable Bias T on the RSP Duo. I don't know if other options are working, ex extref_ctrl I haven't hardware to test and I don't know what iqcorr_ctrl is actually doing. But when enabling it doesn't makes gqrx to crash. Will your changes work with RSP2 and Dx ? |
Thanks for checking Bias-T on your RSPduo @nmaster2042 As per the RSP2 and RSPdx, I took a quick look at the code in Thanks for all your help, |
Thank you for your great support @fventuri. I will try with my other RSPs ASAP and let you know here. |
Hi, I just made new tests this time with RSP2 and RSP Dx. Everything is working on all devices: bias T, rfnotch and dab notch. Thank you very much @fventuri. I think you can merge this to the master branch. It will greatly improve RSP family sdrs support. |
I just merged these changes, i.e. the ability to control RF notch, DAB notch, and Bias-T using the device string, to the master branch (without the 'DEBUG' messages), and removed the Thanks for testing the new code with your RSPs, and confirming that everything works as expected, @nmaster2042 and @iwiq I'll leave this issue open for another few days, just in case you (or someone else) finds any problem with these changes. Franco |
Is there a way to activate the RF notch filter via a device argument so that it always stays on when using RSP1A ?
The text was updated successfully, but these errors were encountered: