-
Notifications
You must be signed in to change notification settings - Fork 7
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
Problem managing two data stream from SDRplay RSPduo #10
Comments
@AugustoMarziani I used the gr-sdrplay3 code from the new branch Please try building and running your workflow using this latest branch, and let me know how it goes. If you still are having problems, please try to run a simple test with just three blocks: the RSPduo source, your custom block, and a GUI frequency sink, to see if it works. If that very simple test still gets stuck, see if you can generate a core dump and analyze it with gdb/coredumpctl, as I mentioned in the other thread here: #9 (comment) In bocca al lupo, |
@fventuri thanks a lot. So now the original error seems to be solved. But another one appeared. It seems that in this way the SDR only work with the Automatic Gain Control setting turned on. If I disable it, I get the error: I just realized that in dual channel mode, the attenuation levels are not the same as for the single channel. There is a maximum level of RF att = 40 dB, more than this generate the above error. Is there a way to bypass that? |
@fventuri |
Ciao Augusto, To understand the exact reason of that invalid configuration (so I can fix the bug), I need you to do two things:
After that, rerun your GNU Radio flowchart; it will fail again, but it will print the full configuration on the terminal.
(as you can see in this case the value of the gain reduction was out of range). Having the information should allow me to understand exactly what's going on and hopefully be able to fix this problem quickly. Unfortunately between work and family, I don't have much time to get in touch directly, but if you send me the information above, I should be able to help you. Saluti, |
@fventuri
Attached the full debug info. Tuner3 refers to dual channel mode? Saluti, |
@AugustoMarziani - thanks for the debug info; it helps me understand what is the problem. The LNA state is not a gain (or gain reduction), but it is rather a value/index that tells the RSPduo what the the gain reduction in the RF stage should be (and it is dependent on the RSP model, on the frequency range, and on the antenna input). To better understand what I mean, please take a look at the tables in section 5 (page 38) of the SDRplary API Specification Guide (I think the latest version is this one: https://www.sdrplay.com/docs/SDRplay_API_Specification_v3.07.pdf): as you can see for the RSPduo the LNAstate value can only be in the range [0-9] (depending on the frequency), and therefore the value of 40 is out of range. Also another document that you might find useful is the 'RSPduo Technical Information' (https://www.sdrplay.com/wp-content/uploads/2018/06/RSPDuo-Technical-Information-R1P1.pdf); in that document at pages 14-16 you'll find a block diagram of the RSPduo that should help you have a good idea of how all the various components of the RSPduo work together. Ciao, |
@fventuri |
@AugustoMarziani Anyway, in the properties for the
I just ran the RSPduo dual tuner example from the repository (https://github.com/fventuri/gr-sdrplay3/blob/master/examples/rspduo_dual_tuner.grc), changing the dual tuner configuration to 'diversity reception', and setting the IF attenuation to 40dB and the RF attenuation to 70dB (as shown in the picture above), and in my case the flowchart ran without any errors (I can see the RF spectrum changing in the frequency sink window). Franco |
Hi Franco, |
@AugustoMarziani - no problem if you are on leave; you always know how to reach me here on GitHub if you need help. Here I run the Linux distribution Fedora version 34, SDRplay API version 3.07 (which I think is the latest available for Linux), and GNU Radio built directly from the Ciao, |
Hi everybody!
I am working on a project. The aim of this is to measure the power of the two signals at the same frequency coming from the RSPduo (diversity mode). I need to filter the two channels to reduce the noise bandwidth before measuring the power.
The problem is that, when I try to filter the data through the FFT low pass filter block, the processing crash.
If I use only one filter, and the other channel without, and setting the option of 4 threads, it goes on. If I use a filter on both channels it gets stuck.
I do not understand why it happens. It does not generate errors on the gr console, but I only see a horizontal line in the graphs and the code seems to be stuck (other operations are not working).
Attached the block diagram of the first part of the project.
The first block is a python custom block. It is a pass thorugh for the two signal, while it retrieve the frequency for the tuner from an external file.
Any suggestion to solve this problem? Can someone help me closing this project?
Thanks in advance!!
The text was updated successfully, but these errors were encountered: