Beta release of gr-osmosdr for Gnu Radio and GQRX

Post information or questions regarding SDRplay products here
josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 9:42 am

Here is what I get trying to run grc:
john@john-Inspiron-660:~/Desktop/sdrplay$ gnuradio-companion
<<< Welcome to GNU Radio Companion 3.7.9 >>>

Preferences file: /home/john/.gnuradio/grc.conf
Block paths:
/usr/local/share/gnuradio/grc/blocks
/usr/share/gnuradio/grc/blocks
/home/john/.grc_gnuradio

Loading: "/home/john/Desktop/n8jj.grc"
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

>>> Done

Showing: "/home/john/Desktop/n8jj.grc"

Generating: '/home/john/Desktop/top_block.py'

Executing: /usr/bin/python -u /home/john/Desktop/top_block.py

linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

Using Volk machine: avx_64_mmx_orc
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy redpitaya

FATAL: No supported devices found to pick from.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.


>>> Done


I was able to use the scripts from KB9RLW to get CubicSDR running with one minor error.
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 755
Joined: Wed Jan 07, 2015 7:58 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby sdrplay » Mon Mar 26, 2018 10:53 am

Presumably you've setup the environment variables and especially LD_LIBRARY_PATH? Can you share the relevant environment variables (they will be in setup_env.sh)

Best regards,

SDRplay Support

Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 11:46 am

That must have been it.
I reentered the LD_LIBRARY_PATH=~/dr-osmosdr .... line and it started working.
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 12:06 pm

Well it actually didn't work. I had an RTL connected and it latched onto that.

Here is the setup_env.sh contents:
# WARNING: This file is auto-generated by pybombs, any manual changes to it may be overwritten!
export PATH="/home/john/prefix/bin:$PATH"
export PYTHONPATH="/home/john/prefix/python:/home/john/prefix/lib/python2.6/site-packages:/home/john/prefix/lib64/python2.6/site-packages:/home/john/prefix/lib/python2.6/dist-packages:/home/john/prefix/lib64/python2.6/dist-packages:/home/john/prefix/lib/python2.7/site-packages:/home/john/prefix/lib64/python2.7/site-packages:/home/john/prefix/lib/python2.7/dist-packages:/home/john/prefix/lib64/python2.7/dist-packages:$PYTHONPATH"
export LD_LIBRARY_PATH="/home/john/prefix/lib:/home/john/prefix/lib64/:$LD_LIBRARY_PATH"
export LIBRARY_PATH="/home/john/prefix/lib:/home/john/prefix/lib64/:$LIBRARY_PATH"
export PKG_CONFIG_PATH="/home/john/prefix/lib/pkgconfig:/home/john/prefix/lib64/pkgconfig:$PKG_CONFIG_PATH"
export PYBOMBS_PREFIX="/home/john/prefix"
# If we're in a Python virtualenv, activate that
if [ -r /home/john/prefix/bin/activate ]; then
source /home/john/prefix/bin/activate
fi
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 755
Joined: Wed Jan 07, 2015 7:58 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby sdrplay » Mon Mar 26, 2018 2:42 pm

are you sourcing that file?

assuming you've built the new gr-osmosdr into ~/gr-osmosdr, you would use...

source ~/prefix/setup_env.sh
LD_LIBRARY_PATH=~/gr-osmosdr/lib:$LD_LIBRARY_PATH \
PYTHONPATH=~/gr-osmosdr/lib/python-2.7/dist-packages:$PYTHONPATH \
gnuradio-companion

Replace ~/gr-osmosdr as required.

Can you do that and post the result?

Best regards,

SDRplay Support

Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 4:00 pm

OK I think I had the directory "gr-osmosdr" in the wrong place.
I rebuilt it in the right place and it seems to work now

Thanks

N8JJ

Reason: No reason

vk2byf
Posts: 3
Joined: Fri Feb 17, 2017 12:45 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby vk2byf » Mon May 21, 2018 1:46 am

Hi
I'm a slow old learner. I run Linux Mint 18.3 Mate.

I have been using gqrx for more than a year with no issues except I't cant't see my SDRplay RSP
I have been playing with Gnu Radio Companion but can't use the osmosdr block. That's another story.

I have tried building this block with a variety of published methods including from source but have had no end of issues once I try to use the gr-osmosdr block. Trouble is I don't understand the errors and how to fix them but that is another story.

I did sudo apt-get --purge remove osmosdr and started again following instructions found here.

I got this far with the install

sudo apt install python-pip No problem, version 8.1.1-2ubuntu0.4 installed already.
pip install PyBOMBS No problem, pip 9.0.3 installed, 10.0.1 available

pip install --upgrade pip (this needed sudo, now I have pip 10.0.1)

Here is where it goes wrong

pip install git+https://github.com/gnuradio/pybombs.git (here it complained about needing markdown so I installed markdown and ran it again)
pip install git+https://github.com/gnuradio/pybombs.git (now it complains about needing markdown >2.0.1 but I can only find 1.0.1, I searched with apt, the update manager and I googled but to no avail. I would appreciate someone pointing me in the right direction please.

Thanks for sharing your expertise with a slow learner. 73 Bob vk2byf
Last edited by vk2byf on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

DVE
Posts: 29
Joined: Sat Mar 12, 2016 11:19 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby DVE » Sat May 26, 2018 4:54 pm

Hi all,
Is it possible to enable sdrplay support in Gnuradio for Windows? Do I need to rebuild it from sources?

Osmocom source does not work, and I see no 'sdrplay' in the log:

gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.11.1
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf airspy soapy redpitaya

Reason: No reason

DVE
Posts: 29
Joined: Sat Mar 12, 2016 11:19 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby DVE » Mon Jun 04, 2018 8:13 pm

Update for the Raspberry Pi: I was able to build gr-osmosdr without buildind gnuradio from sources, just added 'dev' component:

sudo apt-get install gnuradio gnuradio-dev

Than, git clone https://github.com/willcode/gr-osmosdr, git checkout sdrplay2, and build as usual.

"make -j4" does not work btw, showing error "virtual memory exhausted: Cannot allocate memory", but "make" with 1 thread works ok.

Reason: No reason


Return to “SDRplay related”

Who is online

Users browsing this forum: No registered users and 1 guest