Gr-smart meters Setup Guide: Difference between revisions
Added overview video Tags: Mobile edit Mobile web edit |
m 1. xterm is needed for gnuradio (not included in basic 20.04 install) 2. directory change need to be done twice to get out from build and project folders 3. numpy installation for Python 2.7 4. RTL-SDR drivers (should be installed before gr-osmosdr) |
||
| Line 15: | Line 15: | ||
===Install dependencies=== | ===Install dependencies=== | ||
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"> | 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 | 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 vim</code> | </syntaxhighlight><code>sudo apt install liborc-0.4-dev vim</code> | ||
| Line 72: | Line 72: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== For AirSpy Support == | ==For AirSpy Support== | ||
=== Install necessary packages === | ===Install necessary packages=== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt install libairspy0 libairspy-dev | sudo apt install libairspy0 libairspy-dev | ||
| Line 92: | Line 92: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==For RTL-SDR Support== | ==For RTL-SDR Support== | ||
===Install RTL-SDR drivers=== | |||
Follow procedure to install RTL-SDR drivers: https://www.rtl-sdr.com/rtl-sdr-quick-start-guide/ | |||
Section: Getting Started on Linux | |||
===Install gr-osmosdr=== | ===Install gr-osmosdr=== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 131: | Line 134: | ||
sudo make install | sudo make install | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd ../.. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 145: | Line 148: | ||
sudo make install | sudo make install | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd ../.. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 159: | Line 162: | ||
sudo make install | sudo make install | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd ../.. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 173: | Line 176: | ||
sudo make install | sudo make install | ||
sudo ldconfig | sudo ldconfig | ||
cd .. | cd ../.. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 242: | Line 245: | ||
The init value is what you enter into the GridStream block, you can now enable the CRC and know you have correct data! | The init value is what you enter into the GridStream block, you can now enable the CRC and know you have correct data! | ||
===Python 2.7 dependencies=== | |||
Current version of script which does GPS coordinates extraction requires Python 2.7 and numpy library installed. | |||
<syntaxhighlight lang="bash"> | |||
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py | |||
python2 get-pip.py | |||
pip2 install numpy | |||
</syntaxhighlight> | |||