summaryrefslogblamecommitdiffstats
path: root/vorlagen/thesis/src/kapitel_A.tex
blob: 4598f8e626e868d391885b504a37dcda7cb09c04 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
                            

                                                                               




                                                                                 



                                                                                                                             













                                                        
                                                                  
                                                                 













                                                                                  
                                                                                                    




















                                                                      
     












                                                                      
                                                        
        

                                                                                 







                                                                                  







                                                                      
                                   

                



























                                                                                

 


                                     
 














                            
\addchap{Appendix}
\section{Installation guide}
In order to evaluate the localization system, it is required to install OpenBSC
and to modify the proper source files and compile the system. The aim of this
section is to describe that process in such detail that the presented material is
sufficient to reproduce equivalent or similar results. The guide 
was successfully tested out on the following operating systems: 
Ubuntu 10.04 LTS 64 bit and Ubuntu 12.04 LTS 64 bit. A self-bootable test 
USB system is supplied with the thesis and it can be evaluated without executing
the given steps in A.1.
\subsection{Installation of OpenBSC}
In order to compile OpenBSC it is required to install the following precompiled
packages\footnote{If more details are required for the installation process a guide can be found at \citep{openbscInstall}.}:

\begin{itemize}\addtolength{\itemsep}{-0.8\baselineskip}
\item libdbi0
\item libdbi0-dev
\item libdbd-sqlite3
\item libortp-dev
\item build-essential
\item libtool
\item autoconf
\item automake
\item git-core
\item pkg-config
\end{itemize}

Before installing the required packages and libraries, to keep the
installation process clean and free of modifying other files, the
author will create a new directory. 
\begin{lstlisting}[backgroundcolor=\color{light-gray}]
mkdir gsm_localization
cd gsm_localization
\end{lstlisting}


By executing the following instructions the required libraries will be installed. 
\begin{lstlisting}[backgroundcolor=\color{light-gray}]
sudo apt-get install libdbi0-dev libdbd-sqlite3 build-essential
sudo apt-get install libtool autoconf automake git-core
sudo apt-get install pkg-config libortp-dev
\end{lstlisting}

After the packages were installed, $libosmocore$ library must be downloaded, compiled and installed.
By executing the following instructions: 
\begin{lstlisting}[backgroundcolor=\color{light-gray}][numbers = none]
git clone git://git.osmocom.org/libosmocore.git
cd libosmocore
autoreconf -fi
./configure
make
sudo make install
sudo ldconfig
cd ..
\end{lstlisting}

In the next step $libosmo-abis$ will be installed. 
\begin{lstlisting}[backgroundcolor=\color{light-gray}][numbers = none]
git clone git://git.osmocom.org/libosmo-abis.git
cd libosmo-abis
autoreconf -fi
./configure
make
sudo make install
sudo ldconfig
cd ..
\end{lstlisting}

After the previous steps have finished successfully, the author will
proceed with downloading, compiling and installing OpenBSC.
\begin{lstlisting}[backgroundcolor=\color{light-gray}][numbers = none]
git clone git://git.osmocom.org/openbsc.git
cd openbsc/openbsc
autoreconf -i
sudo export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure
make
\end{lstlisting}

At this point, OpenBSC should be successfully compiled. 
\newpage
\subsection{Configuring nanoBTS for OpenBSC}
To enable the nanoBTS and OpenBSC to be fully operational, the last configuration
steps have to be made. It is necessary to inform the nanoBTS of the IP address of 
the server that is running OpenBSC since it must connect to OpenBSC. We need
to find a free ARFCN channel where our system is
expected to operate\footnote{A licence has to be obtained from the Federal
Network Agency (German: $Bundesnetzagentur$), otherwise it is ilegal and may
be considered as a criminal act.}. 



We need to create the directory where the configuration file
will be located and to modify the configuration file.
\begin{lstlisting}[backgroundcolor=\color{light-gray}][numbers = none]
sudo mkdir /usr/local/lcr
cd ~/gsm_localization/openbsc/openbsc/doc/
cd examples/osmo-nitb/nanobts 
sudo cp openbsc.cfg /usr/local/lcr
sudo vim /usr/local/lcr/openbsc.cfg
\end{lstlisting}

A free ARFCN channel can be found using a spectrum analyzer and by
setting the frequency range to the GSM frequency band. One 
has to slide through the frequencies shown on the X-axis,
and by looking at the Y-axis with appropriate frequency 
resolution\footnote{The frequency resolution must be set to 
$f_{CB}=200 \,\mathrm{KHz}$ or more for faster movement in the
frequency spectrum.}, where the received power is represented\footnote{
Dependent of the manufacturer and settings of the spectrum analyzer,
it can show signal amplitude, magnitude and power.}. By patiently
observing the Y-axis it can be easily seen on the X-axis which channels are
taken by other GSM service providers and which are free. The chosen channel
ought to be peak free. Once a free frequency channel has been found, it is
necessary to instruct the nanoBTS to operate in that frequency range.
The line, numbered 58, has to be modified with the
correct free ARFCN channel,in this case 877\footnote{
A table with frequency channels can be found at the following URL:
\url{https://gsm.ks.uni-freiburg.de/arfcn.php} or it can be calculated
using the given formulas $f_{up}(ARFCN) = f_{start}+f_{CB}\cdot(ARFCN-Offset)$,
for the uplink where $f_{start}=1710.2 \,\mathrm{MHz}$ is the starting frequency
of the uplink bandwitdh for DCS1800, $f_{CB}=200 \,\mathrm{KHz}$ is the channel
bandwidth and $Offset=512$; whereas for downlink
$f_{down}(ARFCN) = f_{start}+f_{CB}\cdot(ARFCN-Offset)$ where 
$f_{start}=1805.2 \,\mathrm{MHz}$ and the rest of the variables remain same.}.
\begin{lstlisting}
arfcn 877
\end{lstlisting}




\newpage
\subsection{Installing RRLP software}
\newpage

\section{Sourcecode}
Beispiel:
\lstset{%
caption=,%
label=lst:example,%
}
\begin{lstlisting}
#include <stdio.h>
 
int main(void)
{
    printf("Hallo Welt!\n");
    return 0;
}
\end{lstlisting}