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

Slow retuning? #168

Open
adampbeardsley opened this issue Mar 15, 2022 · 2 comments
Open

Slow retuning? #168

adampbeardsley opened this issue Mar 15, 2022 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@adampbeardsley
Copy link
Collaborator

@Dachelemma and I are looking at the lost dutchman data from 2019 and noticed an RFI line that doesn't shift as expected between files. Recall that our observing script would tune the SDR, take some data, then shift up by 1 MHz and continue taking data. Each tuning is a separate file.

Here is a waterfall from one tuning, centered at 1.410 GHz.
image
There is a very bright RFI line at about 1.41075 GHz. The astute observer will notice the line does not start at time = 0, but there are actually a few integrations with no line.

The next file, centered at 1.411 GHz
image
and zoomed in on the first few integrations...
image
We see that after the retuning, the line started at 1.41075 GHz + 1 MHz, then in the middle of integration 3 it switched to the correct frequency. I think this is because the radio didn't actually retune until the third integration.

Perhaps we need to put in a delay to be sure the radio has time to retune? Even better would be if it's possible to query the radio to ensure it's ready.

@adampbeardsley adampbeardsley added bug Something isn't working good first issue Good for newcomers labels Mar 15, 2022
@adampbeardsley
Copy link
Collaborator Author

Updating with a few references that might be helpful (or not).
I started to wonder if the RTL-SDR might have a way to check if it's ready to start collecting data - e.g. a "data ready" flag somewhere.
RTL-SDRv3 datasheet - doesn't have a ton of useful info about interfacing with it. But it does tell us the tuning chip is R820T2. I'm curious if the tuner itself tells us if it's ready.
R820T2 datasheet
R820T2 register description - I haven't found anything yet, and even if the chip has a "ready" flag, it doesn't mean it's exposed to the RTL-SDR USB interface...

Along another line, I started looking at gnuradio code to see if they've exposed anything there. The documentation is rough. However, I noticed in our own top block, in our set_c_freq function we do sleep to "allow the radio to settle."

sleep: Time to sleep to allow the radio to settle. Default 0.5 seconds.

I'm not sure what motivated us to put that in, or how we chose 0.5s as the default (I was the one that put it in, and don't know why). So an easy test will be to try a longer wait. Would be nice to know why it takes so long to retune, if that is the culprit.

@adampbeardsley
Copy link
Collaborator Author

Some more evidence. We see this in data from a different run as well. I don't recall the exact setup here, but I think it was on the roof at ASU (data from July 31, 2019. It was probably hot.)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant