Project

General

Profile

SDR OsmoTRX network from scratch » History » Revision 3

Revision 2 (jolly, 02/19/2016 10:47 PM) → Revision 3/48 (jolly, 02/19/2016 10:47 PM)

[[PageOutline]] 
 = Installing a GSM network from scratch = 

 This document describes how to install, configure and run BTS transceiver, OsmoBTS, OpenBSC and LCR. 

 In order to use this quick howto, you must have basic knowledge about GIT and be familiar with compiling packages from source. 


 == Prerequisite == 

 === opencore-amr === 

 This package installs GSM adaptive multirate codecs 

 It can downloaded at [http://sourceforge.net/projects/opencore-amr/files/opencore-amr/] 

 {{{ 
 tar xvzf opencore-amr-x.x.x.tar.gz 
 cd opencore-amr-x.x.x 
 ./configure 
 make 
 make install 
 ldconfig 
 cd .. 
 }}} 


 === Sip-Sofia === 

 This package installs the open source SIP stack of Nokia Research Center. 

 It can downloaded at [http://sourceforge.net/projects/sofia-sip/files/sofia-sip/]. 

 {{{ 
 tar xvzf sofia-sip-x.xx.xx.tar.gz 
 cd sofia-sip-x.xx.xx 
 ./configure 
 make 
 make install 
 ldconfig 
 cd .. 
 }}} 


 === oRTP === 

 This package installs the open source RTP protocol required for libosmo-abis. 

 It can downloaded at [http://download.savannah.gnu.org/releases/linphone/ortp/sources/]. 

 {{{ 
 tar xvzf ortp-x.xx.x.tar.gz 
 cd ortp-x.xx.x 
 ./configure 
 make 
 make install 
 ldconfig 
 cd .. 
 }}} 


 === others === 

 sqlite3 and libdbi should be available from your distribution. 



 == Installing    == 

 === Linux-Call-Router (LCR) === 

 This package installs the open source PBX software to bridge ISDN (DSS1) / SIP / GSM (MNCC protocol) 

 The latest version can downloaded via git: 
 {{{ 
 git clone git://git.misdn.eu/lcr.git/ 
 }}} 

 Now configure, as described here: 

 {{{ 
 cd lcr 
 autoreconf -i 
 ./configure --with-sip --with-gsm-bs --with-gsm-ms --enable-gsm-hr 
 }}} 

 Sometimes it is necessary to point to different pkgconfig path, because your distribution may use other pkgconfig path than the default path of the packages above. Use the following prefix: 
 {{{ 
 .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure ..... 
 }}} .....) 

 The configure result should include: 
 {{{ 
 configure: Compiled with GSM network side support 
 configure: Compiled with GSM mobile side support 
 configure: Compiled with GSM half rate codec support 
 configure: Compiled with GSM AMR codec support 
 configure: Compiled with SIP support 
 }}} 

 Finish the installation: 
 {{{ 
 make 
 make install 
 ldconfig 
 cd .. 
 }}} 


 === libosmocore === 

 This package installs the core 



 libosmocore: (core utility library for various Osmocom projects. osmocom projects) 

 The latest version can downloaded load via git: 
 {{{ 
 git clone git://git.osmocom.org/libosmocore.git 
 }}} 

 Finish the installation: 
 {{{ 
 cd libosmocore 
 git checkout -b 
 autoreconf -i 
 ./configure 
 make 
 make install 
 ldconfig 
 cd .. 



 libosmo-abis: (library for openbsc) 
 }}} 


 === libosmo-abis === 

 This package installs the core utility library for various Osmocom projects. 

 The latest version can downloaded load via git: 
 {{{ 
 git clone git://git.osmocom.org/libosmo-abis.git 
 }}} 

 Sometimes it is necessary to point to different pkgconfig path, because your distribution may use other pkgconfig path than the default path of the packages above. Use the following prefix: 
 {{{ 
 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure ..... 
 }}} 

 Finish the installation: 
 {{{ 
 cd libosmo-abis 
 autoreconf -i 
 ./configure 
 (sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....) 
 make 
 make install 
 ldconfig 
 cd .. 
 }}} 


 === OpenBSC === 

 This package installs the open source 



 openbsc: (GSM base station controller. controller) 

 The latest version can downloaded load via git: 
 {{{ 
 git clone git://git.osmocom.org/openbsc.git 
 }}} 

 Finish the installation: 
 {{{ 
 cd openbsc/openbsc/ 
 change repository: git checkout -b jolly/testing origin/jolly/testing 
 autoreconf -i 
 ./configure 
 (sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....) 
 make 
 make install 
 cd ../.. 
 }}} 


 === OsmoBTS === 

 osmo-bts: (BTS software) 

 This package installs the open source base transceiver station. 

 The latest version can downloaded load via git: 
 {{{ 
 git clone git://git.osmocom.org/osmo-bts.git 
 }}} 

 Finish the installation: 
 {{{ 
 cd osmo-bts 
 change repository: git checkout -b jolly/trx origin/jolly/trx 
 autoreconf -i 
 ./configure --enable-trx 
 (sometimes it is necessary to point to different .../lib/pkgconfig/ path: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure .....) 
 make 
 make install 
 cd .. 


 configuration examples: 
 }}} 


 == Configuration examples == ----------------------- 

 === OpenBSC === 

 {{{ 
 mkdir ~/.osmocom 
 edit 

 ~/.osmocom/osmo-bts.cfg 
 }}} 

 {{{ 
 bts 0 
  band DCS1800 
  ipa unit-id 1801 0 
  oml remote-ip 127.0.0.1 
  rtp bind-ip 127.0.0.1 
  rtp jitter-buffer 0 
  paging lifetime 0 
  radio-link-timeout 32 
  gsmtap-sapi bcch 
  gsmtap-sapi ccch 
  gsmtap-sapi rach 
  gsmtap-sapi agch 
  gsmtap-sapi pch 
  gsmtap-sapi sdcch 
  gsmtap-sapi pacch 
  gsmtap-sapi pdtch 
  gsmtap-sapi sacch 
  fn-advance 20 
  ms-power-loop -10 
  timing-advance-loop 
  trx 0 
   rxgain 0 
   power 0 
 }}} 

Add picture from clipboard (Maximum size: 48.8 MB)