Re: GNU Radio 3.7 on Ubuntu 20.04

2020-05-15 Thread Federico 'Larroca' La Rocca
Hi,
I've been playing around with docker these last days, and I got a running
3.7 on an Ubuntu 18.04 and compiled some OOTs. You may want to check my
repo: https://github.com/git-artes/docker-gnuradio (although it's  similar
to what Johannes suggests).
best
Federico

El vie., 15 may. 2020 a las 5:17, Johannes Demel ()
escribió:

> Hi all,
>
> we all saw the Python clock [0] run out on 2020-01-01 after over 10 years.
>
> Also, Maitland Bottoms had to add GR patches to switch from Qt4 to Qt5
> for GR 3.7 even earlier to be able to get GR3.7 into newer Debian
> versions. Apps are not accepted to the repos if they run with Qt
> versions < 5.
>
> All in all, new systems require new software. In this case GR3.8.
>
> If you really need a GR3.7 install, this worked for me:
> `sudo docker run --rm -it --net=host --env="DISPLAY"
> --volume="$HOME/.Xauthority:/root/.Xauthority:rw"
> `. cf [1]
> At least I could open and run flowgraphs and run UHD commands. I used
> GR3.8 from `ppa:gnuradio` though the docker command should work as well.
>   USB devices might be another adventure.
> You probably want to set up a new container with the latest GR3.7 release.
>
> Cheers
> Johannes
>
>
> [0] https://pythonclock.org/
> [1]
>
> https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110
>
> On 15.05.20 03:31, James Hayek wrote:
> > I tried it and ran into a ton of problems... I posted it earlier today.
> > Nothing as of yet, but I am still researching. I might give up and
> > install Ubuntu 18 so I can use the new Pluto I bought. ;)
> >
> >
> > iio Block Errors (WSL) Ubuntu 20.04 LTS
> >
> > I am running a Windows 10 system where I have installed the Windows
> > Subsystem for Linux running Ubuntu 20.04 LTS.
> > I followed the steps outlined here:
> > http://wiki.analog.com/resources/tools-software/linux-software/gnuradio
> >
> > After doing the steps outlined above, I ran into the following error.
> >
> > ·Traceback (most recent call last):
> >
> > ·File
> > "/home/jameshayek/GNURadio-Projects/FMReceiver/Simple_FM_Receiver.py",
> > line 35, in 
> >
> > ·from gnuradio.qtgui import Range, RangeWidget
> >
> > ·File "/usr/lib/python3/dist-packages/gnuradio/qtgui/__init__.py", line
> > 36, in 
> >
> > ·from .qtgui_swig import *
> >
> > ·File "/usr/lib/python3/dist-packages/gnuradio/qtgui/qtgui_swig.py",
> > line 13, in 
> >
> > ·from . import _qtgui_swig
> >
> > ·ImportError: libQt5Core.so.5: cannot open shared object file: No such
> > file or directory
> >
> >
> > I assume this is an issue with mapping the location of swig, so copied
> > the recursive directory to the gnuradio folder as the lesson said if
> > there is a swig import error. Still no luck.
> >
> > I also thought it was an issue with the qt5 library, so I ran "sudo
> > apt-get install -y qt5-default"
> >
> > But still no luck.
> >
> > /Is this an issue with Ubuntu 20?/
> >
> > /
> > /
> >
> > My exact steps are shown below.
> >
> > 1.Moving Post-Install to Pre-Install:
> >
> > oFor Python 3.8 I initially exported the following location to
> $PYTHONPATH
> >
> > §export PYTHONPATH=$PYTHONPATH:/usr/lib/python{PYTHON VERSION}/{site or
> > dist}-packages
> >
> > ·export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.8/dist-packages/
> >
> > oI used the python3.8 folder since GNC > About showed Python 3.8
> >
> > oI then noticed I must have added the wrong PATH, because find resulted
> > in: “/usr/lib/python3/dist-packages/gnuradio”
> >
> > oI re-ran the “export” command to include what “find” returned.
> >
> > 2.Installing all “apt install” dependencies:
> >
> > osudo apt install libxml2 libxml2-dev bison flex cmake git libaio-dev
> > libboost-all-dev
> >
> > osudo apt install liborc-dev
> >
> > osudo apt install swig
> >
> > §I was under the impression this was not needed for 3.8; however I did
> > have it installed as a failsafe.
> >
> > osudo apt install bison flex cmake git libgmp-dev
> >
> > oOther stuff that I didn’t need but installed anyway
> >
> > §sudo apt install libavahi-common-dev libavahi-client-dev
> >
> > §sudo apt install libusb-1.0-0-dev
> >
> > §sudo apt install doxygen
> >
> > 3.Building from source:
> >
> >
> > olibiio
> >
> > §git clone https://github.com/analogdevicesinc/libiio.git
> >
> > §cd libiio
> >
> > §cmake ./
> >
> > §make
> >
> > §sudo make install
> >
> > §cd ../
> >
> >
> > olibad9361-iio
> >
> > §git clone https://github.com/analogdevicesinc/libad9361-iio.git
> >
> > §cd libad9361-iio
> >
> > §cmake ./
> >
> > §make
> >
> > §sudo make install
> >
> > §cd ../
> >
> >
> > ogr-iio
> >
> > §git clone -b upgrade-3.8 https://github.com/analogdevicesinc/gr-iio.git
> >
> > §cd gr-iio
> >
> > §cmake ./
> >
> > §make
> >
> > §sudo make install
> >
> > §cd ../
> >
> > §sudo ldconfig
> >
> >
> >
> > 4.Because it seems like I have a swig import issue, I copied the
> > directory to the gnuradio folder
> >
> > osudo cp -r /usr/local/lib/python3/dist-packages/iio/
> > /usr/lib/python3/dist-packages/gnuradio/
> >
> > 

Problems with Correlation Estimator in GNURadio

2020-05-15 Thread Shruti Gupta

Hi!

I have been trying to use the packet communication examples under 
gr-digital in GNURadio(v 3.7.14.0) on ubuntu machines with LimeSDR Mini 
for over the air communication.  I am using the usrp_packet_tx.grc and 
uspr_packet_rx.grc  to transmit and receive BPSK modulated packets 
respectively. I have modified these examples for LimeSDR Mini by 
including LimeSDR source and sink blocks and setting up the parameters. 
Now, I am running TX on one machine and RX on another machine tuned to 
same frequency. However, when I keep the gain values for RX low since 
the distance between TX and RX is few feet and eliminating the 
possibility of RX saturation, the packets are not being detected, while 
for higher gain values packets get detected but the correlation start 
tags are tagged before the position of estimation tags. I am not too 
sure if that's how it is suppose to work.


Moreover, even after being detected the packets are not decoded and I 
receive following message  on console:


INFO: Parser returned #f

I think this is due to either incorrect header decoding or incorrect 
packet detection which freezes the header/payload demux block in the 
flowgraph. Also, even for very few packets that are decoded, the header 
is incorrect so why does the packet even gets decoded? Is there a way to 
work around this problem? Can we use some other block for packet detection?


Any suggestion or help is highly appreciated.

Thanks in anticipation
SG



Re: GNU Radio 3.7 on Ubuntu 20.04

2020-05-15 Thread Johannes Demel

Hi all,

we all saw the Python clock [0] run out on 2020-01-01 after over 10 years.

Also, Maitland Bottoms had to add GR patches to switch from Qt4 to Qt5 
for GR 3.7 even earlier to be able to get GR3.7 into newer Debian 
versions. Apps are not accepted to the repos if they run with Qt 
versions < 5.


All in all, new systems require new software. In this case GR3.8.

If you really need a GR3.7 install, this worked for me:
`sudo docker run --rm -it --net=host --env="DISPLAY" 
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" 
`. cf [1]
At least I could open and run flowgraphs and run UHD commands. I used 
GR3.8 from `ppa:gnuradio` though the docker command should work as well. 
 USB devices might be another adventure.

You probably want to set up a new container with the latest GR3.7 release.

Cheers
Johannes


[0] https://pythonclock.org/
[1] 
https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110


On 15.05.20 03:31, James Hayek wrote:
I tried it and ran into a ton of problems... I posted it earlier today. 
Nothing as of yet, but I am still researching. I might give up and 
install Ubuntu 18 so I can use the new Pluto I bought. ;)



iio Block Errors (WSL) Ubuntu 20.04 LTS

I am running a Windows 10 system where I have installed the Windows 
Subsystem for Linux running Ubuntu 20.04 LTS.
I followed the steps outlined here: 
http://wiki.analog.com/resources/tools-software/linux-software/gnuradio


After doing the steps outlined above, I ran into the following error.

·Traceback (most recent call last):

·File 
"/home/jameshayek/GNURadio-Projects/FMReceiver/Simple_FM_Receiver.py", 
line 35, in 


·from gnuradio.qtgui import Range, RangeWidget

·File "/usr/lib/python3/dist-packages/gnuradio/qtgui/__init__.py", line 
36, in 


·from .qtgui_swig import *

·File "/usr/lib/python3/dist-packages/gnuradio/qtgui/qtgui_swig.py", 
line 13, in 


·from . import _qtgui_swig

·ImportError: libQt5Core.so.5: cannot open shared object file: No such 
file or directory



I assume this is an issue with mapping the location of swig, so copied 
the recursive directory to the gnuradio folder as the lesson said if 
there is a swig import error. Still no luck.


I also thought it was an issue with the qt5 library, so I ran "sudo 
apt-get install -y qt5-default"


But still no luck.

/Is this an issue with Ubuntu 20?/

/
/

My exact steps are shown below.

1.Moving Post-Install to Pre-Install:

oFor Python 3.8 I initially exported the following location to $PYTHONPATH

§export PYTHONPATH=$PYTHONPATH:/usr/lib/python{PYTHON VERSION}/{site or 
dist}-packages


·export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.8/dist-packages/

oI used the python3.8 folder since GNC > About showed Python 3.8

oI then noticed I must have added the wrong PATH, because find resulted 
in: “/usr/lib/python3/dist-packages/gnuradio”


oI re-ran the “export” command to include what “find” returned.

2.Installing all “apt install” dependencies:

osudo apt install libxml2 libxml2-dev bison flex cmake git libaio-dev 
libboost-all-dev


osudo apt install liborc-dev

osudo apt install swig

§I was under the impression this was not needed for 3.8; however I did 
have it installed as a failsafe.


osudo apt install bison flex cmake git libgmp-dev

oOther stuff that I didn’t need but installed anyway

§sudo apt install libavahi-common-dev libavahi-client-dev

§sudo apt install libusb-1.0-0-dev

§sudo apt install doxygen

3.Building from source:


olibiio

§git clone https://github.com/analogdevicesinc/libiio.git

§cd libiio

§cmake ./

§make

§sudo make install

§cd ../


olibad9361-iio

§git clone https://github.com/analogdevicesinc/libad9361-iio.git

§cd libad9361-iio

§cmake ./

§make

§sudo make install

§cd ../


ogr-iio

§git clone -b upgrade-3.8 https://github.com/analogdevicesinc/gr-iio.git

§cd gr-iio

§cmake ./

§make

§sudo make install

§cd ../

§sudo ldconfig



4.Because it seems like I have a swig import issue, I copied the 
directory to the gnuradio folder


osudo cp -r /usr/local/lib/python3/dist-packages/iio/ 
/usr/lib/python3/dist-packages/gnuradio/


image.png


My $PYTHONPATH has the following locations:

image.png

Any advice as to what went wrong?

 
	Virus-free. www.avast.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, May 14, 2020 at 11:30 AM Alex Humberstone 
mailto:alex.m.humberst...@gmail.com>> wrote:


The new Ubuntu 20.04 does not include Python 2 anymore. But GNU
Radio 3.7 requires Python 2. So then can you run GNU Radio 3.7 on
Ubuntu 20.04? I think there's still a package that you can instal to
add Python 2 support in Ubuntu 20.04. I found a bunch of websites
that make it sound like this should be possible. So I'm thinking it
should still actually