-
Notifications
You must be signed in to change notification settings - Fork 256
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
Make stream deactivated before a sample-rate change and reactivated afterwards #718
Conversation
@Dantali0n @juribeparada @guruofquality you can now give it a try with LimeSDR. |
Works great on LimeSDR-USB, time taken between deactivate / activate is significantly decreased as well. Audio & waterfall stutters persist at 65Mhz sampling but that is just a limitation of my computer. MTU seems now to be consistently set to 4080 haven't seen other values. |
I can confirm that LimeSDR-USB works great (I also see a significant decrease of deactivate/activate time), but unfortunately this PR breaks LimeSDR-Mini when I try to change the sample rate. It looks like LimeSDR-Mini works OK only when changing sample rate while streaming(!), totally the opposite of LimeSDR-USB. The commit |
OK, now I tested this PR on Ubuntu 18 (run native in other PC), and it works great for LimeSDR-USB and LimeSDR-Mini, even solves the "limitation" of sample rate < 5 MSPS in LimeSDR-Mini. |
also...
Well looks like both devices have serious problems of changing samplerates, that somewhat got fixed by accident and broken the other way.
|
Now tested 3355111 on macOS and Linux, and I get the same results as before, all work great with high/low sample rates, except LimeSDR-Mini on macOS, due to the specific issue commented before (see https://discourse.myriadrf.org/t/limesdr-mini-macbook-pro-a1398-high-sierra-10-13-6-usb-hub-success/3326). I will try to find more information about the LimeSDR-Mini / macOS problem. |
3355111
to
485edba
Compare
This works as well. |
Please look at myriadrf/LimeSuite#254 |
Thanks @juribeparada for all your investigation on this problem ! @guruofquality, Charles ( @cjcliffe ) could you give it a try and report if you have such devices ? Thank you. |
485edba
to
aeaa9e8
Compare
aeaa9e8
to
d7796f6
Compare
@vsonnier code changes look solid; going to give it a go with AirSpy and HackRF here. |
@vsonnier all looks good here with SDRPlay RSP1A & RSP2, Airspy Mini and HackRF on Ubuntu 18. |
Thanks @cjcliffe and all for your feedback, I think we cover the most used devices now. Time to make these changes live ! |
Sorry to ask a question on a closed PR, but when can we expect a new release with this change (preferably with a new build for macOS)? |
@bertjwregeer hoping to wrap up some more bugs and get an 0.2.6 build out in early June |
Origin : #716 where LimeSDR do not like
setSampleRate
while streaming. This PR changes CubicSDR behaviour to shut-up stream withdeactivateStream
before doing the sample rate change, then onlyactivateStream
again at the end.I've tested this on RTL-SDR, SDRPlay RSP2, Adalm-PlutoSDR on Windows10 1809 x64. With these, changing sample rates works neither better nor worse that before.
I've also tried these devices through a (localhost) SoapyRemote connection, everything is fine.
For these devices at least, the change if not visibly longer on CubicSDR.