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

rspduo in diversity mode (mode 2) #17

Open
bob-uk opened this issue Nov 20, 2020 · 4 comments
Open

rspduo in diversity mode (mode 2) #17

bob-uk opened this issue Nov 20, 2020 · 4 comments

Comments

@bob-uk
Copy link

bob-uk commented Nov 20, 2020

I am working to get the rspduo working in mode 2 (diversity) feeding into gnu radio via the soapy interface. I have modified Streaming.cpp (probably inelegantly due to rusty c++!) to get both channels back to gnu radio (locally and remote). It appears to be working but the data doesn't appear to be synchronised, I think because the phase difference between the two channels varies considerably over short time spans. Modified Streaming.cpp attached, please no laughter😉. My soapy module in gnu radio is configured for 2 channels and sdrplay with a config line of "remote=192.168.0.10:1234,driver=remote,rspduo_mode=2". Any ideas about the data synchronisation? Thanks Bob
Streaming.cpp.zip

@fventuri
Copy link
Collaborator

Bob,
thanks for your input.

Since you say you use GNU Radio to connect to the SDRplay RSPduo, I am wondering if you looked into the GNU Radio OOT module for the SDRplay RSPs:

I am not familiar with your use case, but using the OOT modules (instead of passing through the SoapySDR interface first, and then the SoapySDRPlay driver) might help with your issue.

Franco

@bob-uk
Copy link
Author

bob-uk commented Nov 21, 2020

Franco
Thanks for getting back to me.
I have made progress (I think) with the SoapySDRPlay code and revised files attached. I think I still have a problem between rx_callback and receiveStream but it is mainly in sync.
SoapySDRPlay.zip

On the issue of the gr-sdrplay OOT modules, I hadn't clocked their import so am looking at them now. As I said I have gr 3.8 loaded and running so have built 3.9 and installed it to a diffefent location, hopefully they won't trample on each other. I am running on mac Catalina and have some problems compiling gr-sdrplay3, both with clang and gcc/g++

in rsp_impl.h this construct fails "const double (&get_freq_range() const override)[2];" with a compiler error requesting a ')' before the override?
and then it is failing deep in the Xcode includes
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1547:38: error:
implicit instantiation of undefined template
'std::__1::hash<sdrplay_api_ReasonForUpdateT>'
: public integral_constant<bool, __is_empty(_Tp)> {};

so a bit stuck on this route at present

Bob

@bob-uk bob-uk closed this as completed Nov 21, 2020
@bob-uk
Copy link
Author

bob-uk commented Nov 21, 2020

Sorry Franco, my bad didn't mean to close this, I am a novice in github

@bob-uk bob-uk reopened this Nov 21, 2020
@fventuri
Copy link
Collaborator

Bob,
I'll look at your changes to SoapySDRPlay tomorrow morning.
As per the issues compiling the GNU Radio OOT module gr-sdrplay3, I created a new issue here: fventuri/gr-sdrplay3#1 (see my answer there).

Franco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants