Gr-smart meters Setup Guide: Difference between revisions
No edit summary |
|||
| Line 86: | Line 86: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Install Timing Utilities ==== | ====Install Timing Utilities==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git clone https://github.com/sandialabs/gr-timing_utils.git | git clone https://github.com/sandialabs/gr-timing_utils.git | ||
| Line 100: | Line 100: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Install Sandia Utilities ==== | ====Install Sandia Utilities==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git clone https://github.com/sandialabs/gr-sandia_utils.git | git clone https://github.com/sandialabs/gr-sandia_utils.git | ||
| Line 114: | Line 114: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Setup PYTHONPATH === | ===Setup PYTHONPATH=== | ||
gnuradio-companion will give you errors if it can't find your python libraries that were just installed. Also highly suggest starting gnuradio-companion from a terminal as opposed to the icon in Ubuntu. It gives you a nice way to see console output and you have to configure path variables in other places to run gnuradio-companion with the icon. | gnuradio-companion will give you errors if it can't find your python libraries that were just installed. Also highly suggest starting gnuradio-companion from a terminal as opposed to the icon in Ubuntu. It gives you a nice way to see console output and you have to configure path variables in other places to run gnuradio-companion with the icon. | ||
# Figure out where your dist-packages is located | #Figure out where your dist-packages is located | ||
# Open your .bashrc file and add that path | #Open your .bashrc file and add that path | ||
# close all open terminals and re-open them | #close all open terminals and re-open them | ||
==== Figure out where dist-packages is located ==== | ====Figure out where dist-packages is located==== | ||
If your system is like mine they will be in: | If your system is like mine they will be in: | ||
| Line 128: | Line 128: | ||
You can easily confirm by using "ls" to show all the files there, if you see folder names corresponding to the packages installed above you have the correct folder. If not, try searching for other occurrences of "dist-packages" on your system where they may have been placed. | You can easily confirm by using "ls" to show all the files there, if you see folder names corresponding to the packages installed above you have the correct folder. If not, try searching for other occurrences of "dist-packages" on your system where they may have been placed. | ||
==== Edit .bashrc and add PYTHONPATH ==== | ====Edit .bashrc and add PYTHONPATH==== | ||
Add the following to the end of your .bashrc if there is no PYTHONPATH variable. | Add the following to the end of your .bashrc if there is no PYTHONPATH variable. | ||
<code>export PYTHONPATH=/usr/local/lib/python3/dist-packages/</code> | <code>export PYTHONPATH=/usr/local/lib/python3/dist-packages/</code> | ||
==== Finish up ==== | ====Finish up==== | ||
Close all open terminal windows and then open a new one. | Close all open terminal windows and then open a new one. | ||
=== Start GNU Radio and open FHSS Flowgraph === | ===Start GNU Radio and open FHSS Flowgraph=== | ||
ToDo: | |||
* Add details here on where flowgraph is stored (FHSS Examples Folder) | |||
* Add information on what settings need to be changed to target smart meter data | |||