I've followed those instructions to the letter, and it did not prevent this issue from occurring.
First, the top_block.py generated by gnuradio wasn't working, as it was returning "No module named sdrplay". After some digging I found an import statement in sdrplay_swig.py that stated "import sdrplay_swig as sdrplay". For whatever reason, this did not seem to be running. So I modified the top_block.py from gnuradio to have "import sdrplay_swig as sdrplay" and it worked - until this:
Code: Select all
> $ python top_block.py
shm_open: No such file or directory
Failed to open SDRplay device
Traceback (most recent call last):
File "top_block.py", line 63, in <module>
File "top_block.py", line 52, in main
tb = top_block_cls()
File "top_block.py", line 35, in __init__
File "/usr/local/lib64/python2.7/site-packages/sdrplay/sdrplay_swig.py", line 1442, in make
return _sdrplay_swig.rspduo_source_make(*args, **kwargs)
RuntimeError: Failed to open SDRplay device
Now, from my limited knowledge, it appears the Linux system is not recognizing the SDRPlay device connected on USB. An lsusb command outputs:
Code: Select all
Bus 001 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 006: ID 0461:4d51 Primax Electronics, Ltd 0Y357C PMX-MMOCZUL (B) [Dell Laser Mouse]
Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 004: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1 / SCR3310 SmartCard Reader
Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 012: ID 1df7:3020
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So it appears the 1df7 entry is the RSPduo, but I have no idea how to confirm whether this is the issue or not. In case it matters, I am not using a Debian based distro (I am on CentOS), and I had some issues following the SDRPlay Linux process (namely in installing boost, but I don't see how that matters), but did finally make it through the whole workflow.
I have to say the Linux install guide is very bare bones and quite disappointing. I have had to do so much manual digging and ensuring everything is properly included that is not even remotely mentioned anywhere in the SDRPlay documentation.