-
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
RSPDuo dual tuner independent rx - center_frequency in tuner 2 always identical to tuner 1 #31
Comments
For reference, here is the .grc pasted into a text file for the above flow chart. |
I have also noticed that as with #8 , updating the frequency of tuner 2 in real time resolves the issue. |
@jcfitzpatrick12 - thanks for the kind words about this project - I am really glad you find it useful! I strongly suspect that the issue is with the API function To confirm this hypothesis, I would ask you to run this test:
After these changes, please rebuild and reinstall the You should see on the terminal a detailed list with all the settings both before and after the call to Franco |
I have made the change you suggested: and here is the output on running the flowgraph: Device config:RX channel=A fsHz=6e+06 RSPduo specific config:RX channel=A Device config:RX channel=A fsHz=6e+06 RSPduo specific config:RX channel=A |
@jcfitzpatrick12 - thanks for running that test. As you can see the results confirm what I was suspecting:
This morning I modified the You'll find the updated code in the branch Also while running a quick test with your GNU Radio Companion flowgraph, I noticed that you are using a sample rate of 300ksps, which is not valid for the RSPduo in dual tuner mode (the only valid values are 2Msps, 1Msps, 500ksps, 250ksps, 125ksps, and 62.5ksps); I had to change it to 500ksps in order to run the flowgraph without errors. Franco |
Hi Franco, Brilliant, that has fixed it got everything up and running as intended. Really appreciate your swift responses, this has been a big help :) Jimmy |
Jimmy, Franco |
Hi Franco, I just changed my container to run cloning off the If this is "my-end" issues, happy to resolve, but just thought to notify you as the issues were not present to the date of my last comment before the merge to main. gnuradio issueI am considering the following flowgraph, where tuner one is set to 95.8MHz (centered on local radio station) and tuner two is set to 95.9MHz (slightly displaced from local radio station). With the antenna plugged in to tuner 1: With the antenna plugged in to tuner 2: The frequency shift is as expected, but there is some odd filtering happening on tuner two. issue in applicationThis seems related to the same problem as above. Source code can be found in { For the first figure I plug the tuner into tuner 1, and tell the Duo to collect with parameters for flag 03 as above. I tell tuner 2 (with nothing plugged in) to use some other set of configuration variables. The RSPDuo is running in independent rx mode. Output from tuner 1 with configuration for flag "03" as above, is as expected: An analagous test is run where I plug the antenna instead into tuner 2, and tell the Duo to collect with parameters for flag 03 as above. I tell the duo to collect from tuner 1 (which has nothing plugged in) with some other set of configuration parameters. As before, the duo is in independent rx mode. The output from tuner 2 with configuration for flag "03" as above: And as you can see the result is very different from tuner 1, where it should be near identical. At the date of my last comment, both tuners were giving identical results as expected. As before, any guidance is much appreciated, apologies for the long issue. Jimmy |
@jcfitzpatrick12 - I agree that there's significant difference from what you can see coming in on tuner 1 and on tuner 2. A couple of things I would like you to try for me:
Thanks for all your tests! |
Please let me know if any of the below needs clarification. I have ran the tests you suggested, and included all files in text attachments.
I have pasted the terminal output of Is it notable that the bwType variable decreases significantly [from 1536 to 200] moving from tuner A to tuner B? I notice that the bwType is identical for tuner A and B in the single tuner mode cases (see terminal outputs later in this comment). I have also pasted the output of and for the analogous test as in my previous comment where I swap the configurations round from tuner 1 to tuner 2, and vice versa: In both cases I checked visually the spectrograms and they were similar to my previous comment. also I would like you to run a couple of tests (one for each tuner) with the same RSPduo in single tuner mode with the same sample rate, IF frequency (1620kHz), and IF bandwidth you used for dual tuner mode. Let me know if the results listening to the same range of frequencies are different between single tuner mode with tuner 1 and single tuner mode with tuner 2 (same antenna of course). These tests could help us understand if there is some other complexity introduced by dual tuner mode that is not present in single tuner mode For tuner 1 outputs are as expected: flowgraph: For tuner 2, outputs are also as expected: |
@jcfitzpatrick12 - thanks for the detailed debug information. I agree 100% with you that the bandwidth should be the same for both tuners. I also noticed a couple of other settings that should be the same but are different. I have been busy with a few other things these days but tonight (or tomorrow night) after work I hope I have time to look at this problem a little better and try to understand what's going on. Franco |
@jcfitzpatrick12 - I think I figured out the problem. I looked at what I was doing in the I modified my code to do just that, and it seems to be working correctly now. Franco |
Hi Franco, sorry for the delayed reply, was busy with work! Thanks for looking into this, I will check out everything now on my end and update you. |
@fventuri delighted, everything's working as expected! the spectrograms from tuner 1: Just a note, print_device_config() I think print_device_config() is still uncommented and is outputting to my terminal each time I am running (might have been intentional so I can check, but just letting you know just in case). Thanks so much for your time and help :) |
Jimmy, I 100% understand about work - the last few days have been very busy here too. I am glad to see that dual tuner mode with independent receivers now works correctly, and thanks for reminding to comment out the function I'll wait a couple of days, and then I'll create a new tag in git with this latest commit, so people and distributions should start using the updated version. Franco |
Hi Franco,
Firstly, thank you so much for your work on this repository, it has been hugely helpful for the project I am working on.
I have spent the evening trying to resolve an issue regarding the RSPDuo in dual tuner (independent rx) mode. I noticed that for a very simple flow graph:
which connects each output directly to a waterfall plot, that even when tuner 2 is set to a different frequency, it will be picking up an identical signal to that set for tuner 1.
With my antenna plugged in to tuner 1:
and tuner 2:
What's odd is that this is a very similar problem raised before: #8 , which you have already resolved! I am using the latest version of the API 3.14.0, however, I was running into the same issue using an older version 3.07.1. I have also verified I am using the latest version of the code from this repository, with the fix you listed in the previous issue.
Any guidance on how I can solve this is much appreciated.
The text was updated successfully, but these errors were encountered: