Raspberry pi

 Memoria:

Crear Bash

-creamos un archivo .sh

En la primera línea de este escribimos:


#!/bin/bash

"aquí desarrollamos el ejecutable"

***************************************

INSTALACION TELIVE Y SUS REPOSITORIOS

Si ya tenemos instalado GNURADIO, OSMOSDR y RTLSDR ignoramos estos pasos.

Sino lo tenemos empezaremos por aquí entonces.

Tendremos que ir a esta pagina e instalar primeramente osmosdr y rtlsdr.

http://sdr.osmocom.org/trac/wiki/rtl-sdr

Luego tendremos que instalar GNURADIO, instalaremos la versión 3.6 ya que la 3.7 da muchos fallos.


Instalamos los prerequisitos.

CÓDIGO: SELECCIONAR TODO

sudo apt-get update
sudo apt-get install vorbis-tools
sudo apt-get install sox
sudo apt-get install alsa-utils
sudo apt-get install libncurses-dev

Dependiendo de nuestra version de ubuntu que tengamos, tambien ara falta instalar estas dependencias.

CÓDIGO: SELECCIONAR TODO

sudo apt-get install git-core autoconf automake libtool g++ python-dev swig libpcap0.8-dev

CÓDIGO: SELECCIONAR TODO

sudo apt-get install cmake git libboost-all-dev libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev swig python-numpy


INSTALACION GNURADIO 3.6

CÓDIGO: SELECCIONAR TODO

wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./buildgnuradio && ./build-gnuradio -o

Si os fijais en el script e añadido -o esto lo que hace es instalar la version de gnuradio 3.6 y no la 3.7.

Tambien hay la posibilidad de instalar el gnuradio manualmente. Yo lo recomiendo ya que no tarda tanto y no suele dar ningun fallo.

Comenzaremos instalando de las dependencias:

CÓDIGO: SELECCIONAR TODO

sudo apt-get update

CÓDIGO: SELECCIONAR TODO

sudo apt-get install build-essential

CÓDIGO: SELECCIONAR TODO

sudo apt-get install linux-headers-$(uname -r)

CÓDIGO: SELECCIONAR TODO

sudo apt-get install -y libvolk0.0.0 \
libc6-dev-i386 \
git-core \
autoconf automake \
libtool \
tofrodos \
libvolk0.0.0 \
libusb-1.0-0 \
libusb-1.0-0-dev \
libboost1.54 \
libboost1.54-dev \
libboost1.54-*

CÓDIGO: SELECCIONAR TODO

sudo apt-get -y install git-core autoconf automake  libtool g++ python-dev swig \
pkg-config libboost-all-dev libfftw3-dev libcppunit-dev libgsl0-dev \
libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \
python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \
libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev

Ahora descargaremos y compilaremos el gnuradio.

cd
mkdir src
cd src
wget http://gnuradio.org/releases/gnuradio/g ... 5.1.tar.gz
tar xzvf gnuradio-3.6.5.1.tar.gz
mkdir gnuradio_build
cd gnuradio_build
cmake -DENABLE_GR_FCD=ON -DENABLE_GR_UHD=ON ../gnuradio-3.6.5.1

Obtendremos una salida como esta:

--
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
-- * python-support
-- * testing-support
-- * volk
-- * doxygen
-- * gruel
-- * gnuradio-core
-- * gnuradio-companion
-- * gr-blocks
-- * gr-fft
-- * gr-filter
-- * gr-atsc
-- * gr-audio
-- * gr-analog
-- * gr-digital
-- * gr-noaa
-- * gr-pager
-- * gr-qtgui
-- * gr-trellis
-- * gr-uhd
-- * gr-utils
-- * gr-video-sdl
-- * gr-vocoder
-- * gr-fcd
-- * gr-wavelet
-- * gr-wxgui
--
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
-- * sphinx
-- * gr-comedi
-- * gr-shd
--
-- Using install prefix: /usr/local
-- Building for version: 3.6.5.1 / 3.6.5.1
-- Configuring done
-- Generating done


Ahora ejecutaremos:

make

make test ( es normal si da 1 fallo en librerias)

y por ultimo

sudo make install

Una vez echo esto actualizaremos las bibliotecas del sistema:

sudo ldconfig

es conveniente agregar la variable de entorno PYTHONPATH al sistema, para ello editamos el siguiente archivo:

sudo gedit /etc/environment

y agregamos esta línea:

PYTHONPATH="/usr/local/lib/python2.7/dist-packages"

Reiniciamos el sistema y ya estara instalado gnuradio.



INSTALACION TELIVE

Instalando libosmocore-sq5bpf

CÓDIGO: SELECCIONAR TODO

cd
git clone https://github.com/sq5bpf/libosmocore-sq5bpf
cd libosmocore-sq5bpf
autoreconf -i
./configure
make
sudo make install
sudo ldconfig

Instalando osmo-tetra-sq5bpf

CÓDIGO: SELECCIONAR TODO

cd
git clone https://github.com/sq5bpf/osmo-tetra-sq5bpf
cd osmo-tetra-sq5bpf
cd src
make

Instalando telive

CÓDIGO: SELECCIONAR TODO

cd
git clone https://github.com/sq5bpf/telive
cd telive
make
sudo mkdir /tetra
sudo chown YOURUSER.YOURGROUP /tetra
sh install.sh

Hay que cambiar lo de YOURUSER.YOURGROUP por el nombre de nuestro pc y
grupo. Para saberlo en un terminal ponemos ls –l y lo sabremos.


Instalar TETRA Codecs

Ir a http://pda.etsi.org/
Entrar como un término de búsqueda "en 300 395-2" e inicia la busqueda.
Encuentra el resultado de la búsqueda etiquetado como REN / TETRA-
05.059.
Haga clic en el icono de WinZip a la derecha del
resultado para descargar en_30039502v010301p0.zip.

Mueve este archivo zip en

CÓDIGO: SELECCIONAR TODO

/osmo-tetra-sq5bpf/etsi_codec-patches

Abre un nuevo terminal y vas a:

CÓDIGO: SELECCIONAR TODO

/osmo-tetra-sq5bpf/etsi_codec-patches


Descomprimir el archivo, asegurándose de descomprimir con letras
minúsculas utilizando el siguiente comando unzip.

unzip -L en_30039502v010301p0.zip

Utilice el archivo codec.diff para modificar los archivos de
codecs que acabamos de descomprimir escribiendo el comando siguiente

patch -p1 -N -E < codec.diff

Abra la carpeta c-code y ejecuta

make

Copia los archivos compilados cdecoder y sdecoder a / tetra / bin escribiendo el siguiente comando, o simplemente Copia y pega en la interfaz gráfica de Linux.

cp cdecoder sdecoder /tetra/bin



Antes de reiniciar nuestro pc es recomendable añadir unas linias a nuestra blacklist.


Abrimos un terminal y ponemos:

cd/etc/modprobe.d/
sudo gedit blacklist.conf

se abrirá un archivo, vamos al final de todo y añadimos estas linias.

CÓDIGO: SELECCIONAR TODO

# BLACKLIST RTL2832#

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

y reiniciamos el pc.


Antes de acabar tambien queria comentar que en este tutorial e utilizado la parte de instalacion de gnuradio del compañero jackbauer de su foro(http://www.espectrodigital.com), asi que un agradecimiento para el tambien.