Changes

Jump to navigation Jump to search
no edit summary
The block at the top is standard from the GNU Radio install guide. The two additional below are vim so you get nice colors in your editor and liborc which is needed for the additional GNU Radio blocks that will be installed.<syntaxhighlight lang="bash">
sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins python3-zmq python3-scipy python3-gi python3-gi-cairo gobject-introspection gir1.2-gtk-3.0 xterm
</syntaxhighlight><code>sudo apt install liborc-0.4-dev vimlibsndfile1-dev graphviz curl</code>
==Install GNU Radio 3.89==
This guide and the blocks used here are all dependent on GNU Radio 3.8. As 3.9 has been released for a while more blocks and packages are getting support so this guide may be updated in the future to support 3.9.<syntaxhighlight lang="bash">
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.89
sudo apt update
sudo apt -get install gnuradiopython3-packaging
</syntaxhighlight>
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
git checkout gr3.8master
mkdir build
cd build/
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
git checkout gr3.8master
mkdir build
cd build/
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
git checkout gr3.8master
mkdir build
cd build/
git clone https://github.com/sandialabs/gr-pdu_utils.git
cd gr-pdu_utils/
git checkout maint-3.89
mkdir build
cd build
git clone https://github.com/sandialabs/gr-fhss_utils.git
cd gr-fhss_utils/
git checkout maint-3.8master
mkdir build
cd build/
git clone https://github.com/sandialabs/gr-timing_utils.git
cd gr-timing_utils/
git checkout maint-3.8master
mkdir build
cd build
</syntaxhighlight>
===Install Sandia Utilities(Possibly not needed for GR-3.9)===
<syntaxhighlight lang="bash">
git clone https://github.com/sandialabs/gr-sandia_utils.git
cd gr-sandia_utils/
git checkout maint-3.8master
mkdir build
cd build/
Add the following to the end of your .bashrc if there is no PYTHONPATH variable.
<code>export PYTHONPATH=/usr/local/lib/python3.8/dist-packages/</code>
====Finish up====
Current version of script which does GPS coordinates extraction requires Python 2.7 and numpy library installed.
<syntaxhighlight lang="bash">
sudo apt-get install python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.pysudo pip2 install numpy
</syntaxhighlight>
===Install gr-smart_meters===
git clone https://github.com/BitBangingBytes/gr-smart_meters.git
cd gr-smart_meters/
git checkout maint-3.8master
mkdir build
cd build/
===Start GNU Radio from a terminal window===
<code>gnuradio-companion</code>
 
 
 
If you get an error when you start GNU Radio "The xterm executable 'x-terminal-emulator' is missing, edit the following file:<syntaxhighlight lang="bash">
sudo nano /etc/gnuradio/conf.d/grc.conf
</syntaxhighlight>Edit the line to read 'xterm_executable = /usr/bin/gnome-terminal"
===Open flowgraph for your SDR===
In GNU Radio open a flowgraph and navigate to the gr-smart_meters/examples folder. If you have installed everything above you should be able to run it and see smart meter data!
The init value is what you enter into the GridStream block, you can now enable the CRC and know you have correct data!
 
{{#widget:CRCprefix}}

Navigation menu