-
Notifications
You must be signed in to change notification settings - Fork 182
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
SoapySDR crashes trying to use the SDRPlay slave option. #356
Comments
@righthalfplane - I think it is actually a little more complicated than that. If you look at the source code for the function For instance, assuming that the client requested a frequency of 100MHz, this algorithm would try to set the "RF" frequency to 100MHz, read the frequency back from the device, compute the difference, and try to assign that remaining "quota" of frequency to the next frequency type, i.e. "CORR" (which in that case doesn't make much sense, since "CORR" is the frequency correction in ppm). The problem you experienced might be that for in the case of an RSPduo in slave mode, the frequency correction cannot be assigned by the slave since it is under full control of the master, and I suspect this could be the cause of the crash. Franco |
Out of curiosity I just looked at what CubiCSDR (which I use as my reference in these cases) does, and I see that they always use the SoapySDR function Franco |
I did look at CubicSDR and that is why I tried the change. I have always used the version with out the "RF" until now in dozens of test programs and on rare occasions it had this problem - it acts like the address to setFrequency has been over written with a zero - and crashes - no clue as to why ? This is the first time I tried to track down the problem. The Dual Tuner (independent RX) version works fine without the "RF" and I just verified that it works with it also. I will be using the "RF" version from now on. I also found that the "RSPduo sample rate=8mhz" does not work - I posted that on the SoapSDRPlay3 issues. |
As I said in my previous comment, the problem you saw might be specific only to the RSPduo in Slave mode (but not Dual Tuner or Master mode), because in that mode changes to the frequency correction ( You should be able to see if this is the case by inserting a statement right before the 389 in SoapySDR Franco |
When I tried to run SdrGlut using the SDRpay slave mode it would always crash. I finally tracked it down.
It crashes if you call -
device->setFrequency(SOAPY_SDR_RX, rx->channel, rx->fc-rx->foffset);
but if you call -
device->setFrequency(SOAPY_SDR_RX,0,"RF",rx->fc-rx->foffset);
it works. I thought that the first one just calls the second.
The text was updated successfully, but these errors were encountered: