From: drowe67 Date: Sat, 24 Jun 2017 01:27:04 +0000 (+0000) Subject: broke up script int 3 pieces, about to test, added 1st pass instructions to readme X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=03d6899894227a4d1e06a0e5ae8099d073fcc923;p=freetel-svn-tracking.git broke up script int 3 pieces, about to test, added 1st pass instructions to readme git-svn-id: https://svn.code.sf.net/p/freetel/code@3241 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/misc/lilacsat1/1-install_packages.sh b/misc/lilacsat1/1-install_packages.sh new file mode 100644 index 00000000..c04efd3d --- /dev/null +++ b/misc/lilacsat1/1-install_packages.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# 1-install-packages.sh +# +# LilacSat-1 Rx Setup for AREG Club Project +# Mark Jessop and David Rowe +# June 2017 + +# Open a terminal and check you have Ubuntu 16.04 + +lsb_release -a + +# List of packages suggested by gnuradio install instructions + +sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin libfftw3-dev libfftw3-doc libcppunit-1.13-0v5 libcppunit-dev libcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git-core libqt4-dev python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq-dev libzmq1 python-requests python-sphinx libcomedi-dev python-zmq + +# Add gpredict-daily PPA and install (we want the latest version) + +sudo add-apt-repository ppa:gpredict-team/daily +sudo apt-get update +sudo apt-get install gpredict + diff --git a/misc/lilacsat1/2-build_gnu_radio.sh b/misc/lilacsat1/2-build_gnu_radio.sh new file mode 100644 index 00000000..80905a9a --- /dev/null +++ b/misc/lilacsat1/2-build_gnu_radio.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# 2-build_gnu_radio.sh +# +# LilacSat-1 Rx Setup for AREG Club Project +# Mark Jessop and David Rowe +# June 2017 + +# Setup pybombs, which handles the gnuradio installation + +sudo easy_install -U pip +sudo pip install construct pybombs + +# Building gnuradio - takes some time + +cd ~ +mkdir prefix +pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git +pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git +pybombs prefix init -a default prefix/default/ -R gnuradio-default + diff --git a/misc/lilacsat1/3-build_gqrx_gr-satellites.sh b/misc/lilacsat1/3-build_gqrx_gr-satellites.sh new file mode 100644 index 00000000..53298f57 --- /dev/null +++ b/misc/lilacsat1/3-build_gqrx_gr-satellites.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# 3-build_gqrx_gr-satellites.sh +# LilacSat-1 Rx Setup for AREG Club Project +# Mark Jessop and David Rowe +# June 2017 + +# Install gqrx + +sudo pybombs install gqrx + +# Install libfec, which gr-satellites needs. This is installed outside +# of pybombs ~/prefix/default environment + +git clone https://github.com/daniestevez/libfec.git +cd libfec && ./configure && make && sudo make install && cd .. + +# Hopefully by now we have everything needed to compile gr-satellites +# Note magic cmake command to set path that cost my 3 hours of my life +# that I want back + +cd prefix/default/ +source setup_env.sh +cd src +git clone https://github.com/daniestevez/gr-satellites.git +cd gr-satellites && mkdir build_linux && cd build_linux +cmake -DCMAKE_INSTALL_PREFIX=$PYBOMBS_PREFIX .. +cd .. +./compile_hierarchical.sh + +# OK now ready to run everything, back to REAME.txt diff --git a/misc/lilacsat1/README.txt b/misc/lilacsat1/README.txt index 9ecaa20a..1d25b337 100644 --- a/misc/lilacsat1/README.txt +++ b/misc/lilacsat1/README.txt @@ -1,13 +1,79 @@ README.txt -LilacSat-1 Rx Setup for AREG Club Project +LilacSat-1 Rx Setup AREG Club Project Mark Jessop and David Rowe June 2017 +Pre-requisities +--------------- + +1/ Codec 2 is built for Wenet in ~/codec2-dec/build + +2/ SVN is installed + +Installation +------------ + + $ cd ~ + $ svn co https://svn.code.sf.net/p/freetel/code/misc/lilacsat1 + $ cd lilacsat1 + lilacsat1$ ./1-install_packages.sh + lilacsat1$ ./2-build_gnu_radio.sh + lilacsat1$ ./3-build_gqrx_gr-satellites.sh + +Running +------- + +1/ Start Codec 2 decoder running in the background: + + $ nc -lu 7000 | ~/codec2-dev/build/src/c2dec 1300 - - | aplay -f S16_LE& + +2/ In a new Terminal start GNU Radio LilacSat-1 appliction running + + $ cd lilacsat1/preofix/default + $ source setup_ev.sh + $ gnuradio-companion + + + File-Open navigate to src/gr-satellites/apps/lilacsat1.grc + + Manually disable any missing blocks (right click - disable) + + Click on Green Button, new terminal should start + + see also lilacsat1/screenshots for other options + +3/ In a new Terminal start gqrx + + $ cd lilacsat1/preofix/default + $ source setup_ev.sh + $ gqrx + + + Set up to talk to your SDR of choice. + + Up top, look for settings icon. Make sure RX port set to 7356 + + Up top, make sure little 'Remote control via TCP' icon is selected (2 computers icon) + + In receiver options tab (on the right) set Mode to USB + + Drag passband indication abover waterfall so filter width is maybe 30 kHz wide. + + Bottom right, click "..." Network tab, set UDP port to 7355, hostname to localhost + + Suggest setting the 'main' audio output to a dummy audio device, you don't want to + hear the modem signal really. + + Click 'UDP' to have it start sending samples out via UDP port. + +4/ In a new Terminal start gpredict + + $ gpredict + + + Set up as normal, update keps, set location, add lilacsat-1 + + Edit -> Preferences -> Interfaces + + Add new interface, radio type RX Only + + Set port to 7356, hostname of localhost + + Back on gpredict main window, top right look for down arrow, go to Radio control + + Choose LilacSat-1 in target dropdown + + Set downlink freequency to 436.499.000 Hz + + Choose gqrx from radio list, set cycle to 5000, + + Click 'engage' then click 'track' + + You should now see gqrx's frequency adjusting every 5 seconds. + Build/Test Tips --------------- 1/ If the GNU Radio build fails, (e.g. due to a missing package, or -legacy package) you can restart it from the beginning with: + legacy package) you can restart it from the beginning with: $ cd prefix/default $ pybombs rebuild @@ -22,37 +88,6 @@ legacy package) you can restart it from the beginning with: $ source prefix/default/setup_env.sh $ gqrx -Running -------- - -# Now you have to make it all talk to each other :-) -# might need to ring me for that. - -# GQRX -- Set up to talk to your SDR of choice. -- Up top, look for settings icon. - - Make sure RX port set to 7356 -- Up top, make sure little 'Remote control via TCP' icon is selected (2 computers icon) -- In receiver options tab (on the right) set Mode to USB -- Drag passband indication abover waterfall so filter width is maybe 30 kHz wide. -- Bottom right, click ... - - Network tab, set UDP port to 7355, hostname to localhost -- I'd also suggest setting the 'main' audio output to a dummy audio device, you don't want to hear the modem signal really. -- Click 'UDP' to have it start sending samples out via UDP port. - -# Gpredict -- Set up as normal, update keps, set location, add lilacsat-1 -- Edit -> Preferences -> Interfaces - - Add new interface, radio type RX Only - - Set port to 7356, hostname of localhost -- Back on gpredict main window, top right look for down arrow, go to Radio control - - Choose LilacSat-1 in target dropdown - - Set downlink freequency to 436.499.000 Hz - - Choose gqrx from radio list, set cycle to 5000, - - Click 'engage' then click 'track' - - You should now see gqrx's frequency adjusting every 5 seconds. - - Links ----- diff --git a/misc/lilacsat1/lilacsat1_setup.sh b/misc/lilacsat1/lilacsat1_setup.sh deleted file mode 100644 index 0cb7f121..00000000 --- a/misc/lilacsat1/lilacsat1_setup.sh +++ /dev/null @@ -1,56 +0,0 @@ -# lilacsat1_setup.txt -# LilacSat-1 Rx Setup for AREG Club Project -# Mark Jessop and David Rowe -# June 2017 - -# Open a terminal and check you have Ubuntu 16.04 - -lsb_release -a - -# List of packages suggested by gnuradio install instructions - -sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin libfftw3-dev libfftw3-doc libcppunit-1.13-0v5 libcppunit-dev libcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev python-qt4-doc python-qt4-doc libqwt6abi1 libfftw3-bin libfftw3-dev libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk3.0 git-core libqt4-dev python-numpy ccache python-opengl libgsl-dev python-cheetah python-mako python-lxml doxygen qt4-default qt4-dev-tools libusb-1.0-0-dev libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq-dev libzmq1 python-requests python-sphinx libcomedi-dev python-zmq - -# Setup pybombs, which handles the gnuradio installation - -sudo easy_install -U pip -sudo pip install construct pybombs - -# Building gnuradio - takes some time - -cd ~ -mkdir prefix -pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git -pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git -pybombs prefix init -a default prefix/default/ -R gnuradio-default - -# Add gpredict-daily PPA and install (we want the latest version) - -sudo add-apt-repository ppa:gpredict-team/daily -sudo apt-get update -sudo apt-get install gpredict - -# Install gqrx - -sudo pybombs install gqrx - -# Install libfec, which gr-satellites needs. This is installed outside -# of pybombs ~/prefix/default environment - -git clone https://github.com/daniestevez/libfec.git -cd libfec && ./configure && make && sudo make install && cd .. - -# Hopefully by now we have everything needed to compile gr-satellites -# Note magic cmake command to set path that cost my 3 hours of my life -# that I want back - -cd prefix/default/ -source setup_env.sh -cd src -git clone https://github.com/daniestevez/gr-satellites.git -cd gr-satellites && mkdir build_linux && cd build_linux -cmake -DCMAKE_INSTALL_PREFIX=$PYBOMBS_PREFIX .. -cd .. -./compile_hierarchical.sh - -# OK now ready to run everything, back to REAME.txt