Difference between revisions of "OpenBTS: RangeNetwork Compile OpenBTS 3.1.3"

From OnnoWiki
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sumber: http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313
 
Sumber: http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313
 +
 +
==Spesifikas Sistem==
 +
 +
* Sistem Operasi : Ubuntu 13.04
 +
* Hardware      : RangeNetworks Development Kit dengan RAD1
 +
  
 
==Install Pendukung==
 
==Install Pendukung==
  
 
  sudo apt-get -y install autoconf libtool libosip2-dev libusb-1.0-0-dev g++ sqlite3 \
 
  sudo apt-get -y install autoconf libtool libosip2-dev libusb-1.0-0-dev g++ sqlite3 \
  libsqlite3-dev erlang libreadline6-dev libncurses5-dev libortp-dev libortp
+
  libsqlite3-dev erlang libreadline6-dev libncurses5-dev libortp-dev \
 
  libfontconfig1-dev libxrender-dev libpulse-dev \
 
  libfontconfig1-dev libxrender-dev libpulse-dev \
 
  gcc-4.7 g++ automake libtool python-dev libfftw3-dev \
 
  gcc-4.7 g++ automake libtool python-dev libfftw3-dev \
Line 16: Line 22:
 
  autoconf libtool libosip2-dev libortp-dev \
 
  autoconf libtool libosip2-dev libortp-dev \
 
  libusb-1.0-0-dev g++ erlang bison flex
 
  libusb-1.0-0-dev g++ erlang bison flex
 
  
 
==Install SDCC==
 
==Install SDCC==
Line 27: Line 32:
 
  wget -c http://launchpadlibrarian.net/38689168/sdcc-libraries_2.9.0-5_all.deb
 
  wget -c http://launchpadlibrarian.net/38689168/sdcc-libraries_2.9.0-5_all.deb
 
  dpkg -i sdcc_2.9.0-5_amd64.deb sdcc-libraries_2.9.0-5_all.deb
 
  dpkg -i sdcc_2.9.0-5_amd64.deb sdcc-libraries_2.9.0-5_all.deb
 +
 +
Kalau nekad bisa mencoba. Download source code dari
 +
 +
http://sourceforge.net/projects/sdcc/files/sdcc/
 +
 +
Compile
 +
 +
cp sdcc-src-2.8.0.tar.bz2 /usr/local/src
 +
cd /usr/local/src
 +
tar jxvf sdcc-src-2.8.0.tar.bz2
 +
cd sdcc
 +
./configure
 +
make
 +
make install
  
 
==Download Source Code UHD==
 
==Download Source Code UHD==
Line 48: Line 67:
  
 
Image UHD ada di /usr/local/share/uhd/images
 
Image UHD ada di /usr/local/share/uhd/images
 
Rewrite Image USRP1 dengan Image RAD1
 
 
cd /OpenBTS/
 
cp ezusb.ihx /usr/local/share/uhd/images/usrp1_fw.ihx
 
cp fpga.rbf /usr/local/share/uhd/images/usrp1_fpga.rbf
 
  
 
==Install UHD USRP ke udev==
 
==Install UHD USRP ke udev==
Line 60: Line 73:
 
  sudo cp uhd-usrp.rules /etc/udev/rules.d/
 
  sudo cp uhd-usrp.rules /etc/udev/rules.d/
 
  sudo udevadm control --reload-rules
 
  sudo udevadm control --reload-rules
 
 
 
  
 
==Download Source Code OpenBTS==
 
==Download Source Code OpenBTS==
Line 78: Line 88:
 
  cd /home/openbts/software/public
 
  cd /home/openbts/software/public
 
  cd a53/trunk
 
  cd a53/trunk
  sudo make install
+
  make clean
 +
make
 +
make install
  
 
==Compile==
 
==Compile==
 +
 +
Perbaiki source code
 +
 +
vi /home/openbts/software/public/openbts/tags/rP3.1.3/Control/TransactionTable.cpp
 +
 +
Pastikan pada line 1071
 +
 +
// mSIP.RTPSession()->rtp.last_rtcp_report_snt_r << "," <<
 +
// mSIP.RTPSession()->rtp.last_rtcp_report_snt_s << "," <<
 +
// mSIP.RTPSession()->rtp.rtcp_report_snt_interval << "," <<
 +
 +
  
 
  cd /home/openbts/software/public/openbts/tags/rP3.1.3
 
  cd /home/openbts/software/public/openbts/tags/rP3.1.3
 +
sudo make clean
 
  sudo autoreconf -i
 
  sudo autoreconf -i
 
  sudo ./configure --with-uhd --with-resamp  
 
  sudo ./configure --with-uhd --with-resamp  
 
  sudo make
 
  sudo make
 
   
 
   
 +
cd /home/openbts/software/public/openbts/tags/rP3.1.3/TransceiverRAD1
 +
make
 +
 +
cd /home/openbts/software/public/openbts/tags/rP3.1.3
 
  cd apps
 
  cd apps
  sudo ln -s ../Transceiver52M/transceiver .
+
  sudo ln -s ../TransceiverRAD1/transceiver .
  
 
  cd /home/openbts/software/public/openbts/tags/rP3.1.3/TransceiverRAD1
 
  cd /home/openbts/software/public/openbts/tags/rP3.1.3/TransceiverRAD1
Line 105: Line 134:
 
  sudo mkdir /etc/OpenBTS  
 
  sudo mkdir /etc/OpenBTS  
 
  sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"  
 
  sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"  
 +
 +
Rewrite Image UHD USRP1 dengan Image UHD RAD1
 +
 +
cd /OpenBTS/
 +
cp ezusb.ihx /usr/local/share/uhd/images/usrp1_fw.ihx
 +
cp fpga.rbf /usr/local/share/uhd/images/usrp1_fpga.rbf
  
 
==Install Subscriber Registry==
 
==Install Subscriber Registry==
Line 115: Line 150:
  
 
  cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
 
  cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
 +
sudo make clean
 
  sudo make
 
  sudo make
  
Line 133: Line 169:
  
 
  cd /home/openbts/software/public/smqueue/tags/rP3.1.3
 
  cd /home/openbts/software/public/smqueue/tags/rP3.1.3
 +
make clean
 
  sudo autoreconf -i
 
  sudo autoreconf -i
 
  sudo ./configure
 
  sudo ./configure
Line 145: Line 182:
  
 
==Menjalankan OpenBTS==
 
==Menjalankan OpenBTS==
 +
 +
[[OpenBTS: RangeNetwork Yate Compile | Pastikan Yate di Compile & Install dengan baik]]
 +
  
 
Menjalankan dapat dari /OpenBTS/
 
Menjalankan dapat dari /OpenBTS/
  
 
  cd /OpenBTS/
 
  cd /OpenBTS/
 +
./sipauthserve &
 +
sleep 5
 +
./smqueue &
 +
sleep 5
 +
cd /usr/local/src/yate
 +
rm -Rf /var/log/yate
 +
rm -Rf /var/log/VBTS.log
 +
./run -t -l /var/log/yate -vvvv -c /usr/local/etc/yate -m /usr/local/lib/yate -e /usr/local/share/yate -d
 +
sleep 5
 +
mkdir /var/run/OpenBTS/
 +
touch /var/run/OpenBTS/TransactionTable.db
 +
cd /OpenBTS/
 +
./OpenBTS &
 +
 +
atau
  
 +
sleep 10
 +
cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
 
  ./sipauthserve &
 
  ./sipauthserve &
 
+
sleep 5
 +
cd /home/openbts/software/public/smqueue/tags/rP3.1.3/smqueue
 
  ./smqueue &
 
  ./smqueue &
 
+
sleep 5
 
  cd /usr/local/src/yate
 
  cd /usr/local/src/yate
 
  rm -Rf /var/log/yate
 
  rm -Rf /var/log/yate
 
  rm -Rf /var/log/VBTS.log  
 
  rm -Rf /var/log/VBTS.log  
 
  ./run -t -l /var/log/yate -vvvv -c /usr/local/etc/yate -m /usr/local/lib/yate -e /usr/local/share/yate -d
 
  ./run -t -l /var/log/yate -vvvv -c /usr/local/etc/yate -m /usr/local/lib/yate -e /usr/local/share/yate -d
 
+
sleep 5
 
  mkdir /var/run/OpenBTS/
 
  mkdir /var/run/OpenBTS/
 
  touch /var/run/OpenBTS/TransactionTable.db
 
  touch /var/run/OpenBTS/TransactionTable.db
  cd /OpenBTS/
+
  cd /home/openbts/software/public/openbts/tags/rP3.1.3/apps/
 
  ./OpenBTS &
 
  ./OpenBTS &
  
Line 167: Line 225:
  
 
* http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313
 
* http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313
 +
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[OpenBTS]]
 +
* [[OpenBTS: Arsitektur secara umum]]
 +
 +
===Persiapan===
 +
 +
* [[USRP: High Precision Clock]]
 +
* [[USRP: Menyambungkan ClockTamer ke USRP1]]
 +
* [[USRP: Kalibrasi ClockTamer]]
 +
* [[USRP: ClockTamer Control Protocol]]
 +
* [[USRP: ClockTamer Flashing]]
 +
* [[USRP: Instalasi Board]]
 +
* [[OpenBTS: GIT Source Code]]
 +
* [[USRP: Rangkaian Board USRP]]
 +
* [[OpenBTS: Tethr untuk Bencana Alam]]
 +
* [[USRP: Tip Pemesanan]]
 +
 +
===Script===
 +
 +
* [[OpenBTS: Script Membuat GNURadio 3.4.2 di Ubuntu 13.04]]
 +
* [[OpenBTS: Script Membuat OpenBTS dan yate di Ubuntu 13.04]]
 +
* [[OpenBTS: Script Membuat OpenBTS 2.8.0 di RangeNetwork Dev Kit]]
 +
* [[OpenBTS: Script Membuat OpenBTS di RangeNetwork Dev Kit]]
 +
 +
===OpenBTS 2.6===
 +
 +
* [[GNURadio]]
 +
* [[GNURadio: Ubuntu Install]]
 +
* [[GNURadio: Menggunakan UHD]]
 +
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 13.04 Install GNURadio 3.4.2 Clock 52MHz]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Contoh Aplikasi]]
 +
* [[GNURadio: Spectrum Analizer GSM]]
 +
* [[GNURadio: Mengubah board RFX1800 menjadi RFX900]]
 +
* [[GNURadio: Programming Untuk Pemula]]
 +
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 +
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: Ubuntu 13.04 Install OpenBTS 2.6 Clock 52MHz]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 +
* [[OpenBTS: Kalibrasi]]
 +
* [[OpenBTS: Konfigurasi Asterisk untuk OpenBTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Menjalankan smqueue]]
 +
* [[OpenBTS: Mengoperasikan BTS]] '''RECOMMENDED'''
 +
* [[OpenBTS: Tampilan di Nokia saat pakai OpenBTS]]
 +
* [[OpenBTS: Operasi 1800 MHz]]
 +
* [[OpenBTS: Beberapa Tips]]
 +
* [[OpenBTS: USRP2]]
 +
* [[OpenBTS: Amplifier]]
 +
* [[OpenBTS: SMS]]
 +
* [[AirProbe]]
 +
 +
===OpenBTS 2.8===
 +
 +
* [[GNURadio: Ubuntu 11.10 Install]] ''NOT RECOMMENED''
 +
* [[GNURadio: Ubuntu 11.10 instalasi menggunakan Repo]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Download GNURadio]]
 +
* [[GNURadio: Install UHD]]
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]]
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.3.0]]
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.4.1]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.04.1 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 12.10 Instal GNURadio 3.4.2]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 13.04 Instal GNURadio 3.4.2]] '''RECOMMENDED'''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 Install dari GIT GNURadio]] ''NOT RECOMMENDED''
 +
* [[GNURadio: Ubuntu 11.10 cek USRP Daughter Board]]
 +
* [[GNURadio: UHD]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Image]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD burn EEPROM RFX Board di USRP1]] ''NOT RECOMMENDED''
 +
* [[GNURadio: UHD Identifikasi Device]]
 +
* [[OpenBTS: Ubuntu 11.10 Install]]
 +
* [[OpenBTS: dari GIT ttsou]]
 +
* [[OpenBTS: 2.8 dari SVN Install]]
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz di Ubuntu 12.10]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz di Ubuntu 13.04]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN 2.8.0 Install Clock 52MHz di Ubuntu 13.04]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 dari SVN Install Clock 52MHz dengan UHD tanpa GNURadio]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: 2.8 Edit User di sqlite3.db]] '''RECOMMEND'''
 +
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Softswitch install Ubuntu 12.10]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Softswitch install Ubuntu 13.04]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Config Test]]
 +
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Menjalankan]] '''RECOMMENDED'''
 +
* [[OpenBTS: 2.8 Konfigurasi]]
 +
* [[OpenBTS: 2.8 Konfigurasi Cognitive Radio Elsabagh]]
 +
* [[OpenBTS: 2.8 Konfigurasi Subscriber Registery]]
 +
* [[OpenBTS: Database SQLite]]
 +
* [[OpenBTS: Set SQLite Subscriber Registry secara manual]]
 +
* [[OpenBTS: Set SQLite parameter smqueue]]
 +
* [[OpenBTS: FreeSWITCH]]
 +
 +
===Multi OpenBTS 2.8===
 +
 +
* [[OpenBTS: Pola Multi OpenBTS]] '''RECOMMENDED'''
 +
* [[Multi OpenBTS: Catatan Konfigurasi]] '''RECOMMENDED'''
 +
* [[Multi OpenBTS: Catatan BSIC=NCC+BCC]]
 +
* [[Multi OpenBTS: Catatan Frekuensi Planning di GSM]]
 +
* [[Multi OpenBTS: Catatan BTS Color Code BCC di GSM]]
 +
* [[Multi OpenBTS: Catatan Network Color Code NCC di GSM]]
 +
* [[Multi OpenBTS: Catatan BCCH]]
 +
* [[Multi OpenBTS: Catatan Public Land Mobile Network PLMN]]
 +
 +
===OpenBTS 3.1.x===
 +
 +
* [[OpenBTS: Install UHD untuk USRP1]]
 +
* [[OpenBTS: UHD Identifikasi Device]]
 +
* [[OpenBTS: OpenBTS 3.1.3 Compile]] '''Tidak bisa untuk USRP1'''
 +
* [[OpenBTS: Yate Compile]]
 +
 +
===Ettus E110===
 +
 +
* [[OpenBTS: E110 Cara Login]]
 +
* [[OpenBTS: E110 Install Image di MicroSD]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Cek Daughter Board]]
 +
* [[OpenBTS: E110 Mengubah Master Clock]]
 +
* [[OpenBTS: E110 Kalibrasi Clock]]
 +
* [[OpenBTS: E110 Konfigurasi Jaringan]]
 +
* [[OpenBTS: E110 Bekerja dengan opkg]]
 +
* [[OpenBTS: E110 Instalasi iptables]]
 +
* [[OpenBTS: E110 GNURadio]]
 +
* [[OpenBTS: E110 Compile UHD]] ''Not Recommended''
 +
* [[OpenBTS: E110 Compile UHD dari Release Bukan git]] ''Not Recommended''
 +
* [[OpenBTS: E110 UHD burn EEPROM RFX Board]] ''Not Recommended''
 +
* [[OpenBTS: E110 Install UHD Image]] ''Not Recommended''
 +
* [[OpenBTS: E110 Instalasi OpenBTS]]
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED''
 +
* [[OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: E110 Yate Softswitch]]
 +
 +
===Ettus N210===
 +
 +
* [[OpenBTS: N210 Instalasi GPSDO Kit]]
 +
* [[OpenBTS: N210 GNURadio]]
 +
* [[OpenBTS: N210 GNURadio 3.7.0]]
 +
* [[OpenBTS: N210 Instalasi OpenBTS]]
 +
* [[OpenBTS: N210 Instalasi Yate]]
 +
* [[OpenBTS: N210 Yate Config Test]]
 +
* [[OpenBTS: N210 Burn Firmware]]
 +
 +
===RangeNetworks===
 +
 +
* [[OpenBTS: RangeNetwork Foto]]
 +
* [[OpenBTS: RangeNetwork menggunakan USB recovery image]]
 +
* [[OpenBTS: RangeNetwork Default Setting]]
 +
* [[OpenBTS: RangeNetwork Instalasi UHD]]
 +
* [[OpenBTS: RangeNetwork Compile GNURadio UHD]]
 +
* [[OpenBTS: RangeNetwork Compile]]
 +
* [[OpenBTS: RangeNetwork Compile OpenBTS 2.8.0]]
 +
* [[OpenBTS: RangeNetwork Compile OpenBTS 3.1.3]]
 +
* [[OpenBTS: RangeNetwork Yate Compile]] '''*RECOMMENDED*'''
 +
* [[OpenBTS: RangeNetwork Web Interface]]
 +
* [[OpenBTS: RangeNetwork Trunk ke Asterisk Lain]]
 +
* [[VoIP: Trunk]]
 +
 +
===GPRS===
 +
 +
* [[OpenBTS: GPRS]]
 +
* [[OpenBTS: GPRS Konfigurasi]]
 +
* [[OpenBTS: GPRS untuk dibelakang Router dengan NAT]]
 +
 +
===Briker OpenBTS===
 +
 +
* [[OpenBTS: Briker]]
 +
 +
===FreeSWITCH OpenBTS===
 +
 +
* [[OpenBTS: FreeSWITCH]]
 +
 +
===Power Amplifier===
 +
 +
* [[Driver 900MHz]]
 +
* [[Power Amplifier 900MHz]]
 +
* [[Duplexer]]
 +
* [[OpenBTS: Menaikan Jangkauan OpenBTS]]
 +
 +
===Lain Lain===
 +
 +
* [[OpenBTS: Materi Magang di ICTWATCH]]
 +
* [[OpenBTS: Seminar Outline]]
 +
* [[OpenBTS: Workshop Outline]]
 +
* [[Membuat Base Station GSM Open Source]]
 +
* [[Teknologi Selular]]
 +
* [[GSM: Daftar Channel Frekuensi]]
 +
* [[Wireless Internet]]
 +
* [[OpenBSC]]
 +
* [[AirProbe]]
 +
* [[Base station subsystem]]
 +
* [[GSM]]
 +
* [[Asterisk]]
 +
* [[Mobile phone]]
 +
 +
===Catatan Legal dan Pendukung===
 +
 +
* [[Siapa Bilang OpenBTS Ilegal?]]
 +
* [[OpenBTS: Catatan MNC dan MCC Indonesia]]
 +
* [[OpenBTS: Catatan MNC dan MCC COOL]]
 +
* [[OpenBTS : Alokasi Frekuensi Operator GSM Indonesia]]
 +
* [[GSM: Daftar Channel Frekuensi]]
 +
 +
===Catatan Sejarah===
 +
 +
* [[2011/04/30 - Workshop OpenBTS Pertama di Indonesia dilakukan di Univ Gajah Putih Takengon Aceh Tengah]]
 +
* [[OpenBTS: Daftar Workshop atau Seminar yang pernah dilakukan]]
 +
* [[OpenBTS: Daftar Artikel di Media]]
 +
* [[OpenBTS: Permohonan Kanal dan DID untuk OpenBTS]]
 +
* [[OpenBTS: 2013/02/19 - OpenBTS TelkomSel Mengudara di Muscat Oman]]
 +
* [[OpenBTS: Beroperasi di Papua]]
 +
 +
===Dokumentasi Video===
 +
 +
* http://www.metrotvnews.com/read/newsprograms/2012/10/14/14624/212/Teknologi-BTS
 +
* http://youtu.be/8ogOcUSpINU (1/6)
 +
* http://youtu.be/F5d7HGuhppk (2/6)
 +
* http://youtu.be/90Jgq6bOgrQ (3/6)
 +
* http://youtu.be/cNkx_qNqdfc (4/6)
 +
* http://youtu.be/6LCuoeI57ak (5/6)
 +
* http://youtu.be/-dEqcHoIlYk (6/6)
 +
* http://www.youtube.com/watch?v=Ff_rw4kAOZg&feature=share
 +
 +
===Perjuangan OpenBTS===
 +
 +
* http://www.technologyreview.com/news/522371/how-remote-places-can-get-cellular-coverage-by-doing-it-themselves/?utm_campaign=socialsync&utm_medium=social-post&utm_source=twitter
 +
 +
 +
 +
[[Category: Wireless]]
 +
[[Category: Selular]]

Latest revision as of 14:11, 2 March 2014

Sumber: http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313

Spesifikas Sistem

  • Sistem Operasi : Ubuntu 13.04
  • Hardware : RangeNetworks Development Kit dengan RAD1


Install Pendukung

sudo apt-get -y install autoconf libtool libosip2-dev libusb-1.0-0-dev g++ sqlite3 \
libsqlite3-dev erlang libreadline6-dev libncurses5-dev libortp-dev \
libfontconfig1-dev libxrender-dev libpulse-dev \
gcc-4.7 g++ automake libtool python-dev libfftw3-dev \
libcppunit-dev libboost-all-dev libusb-dev fort77 \
libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \
libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
python-cheetah python-lxml doxygen qt4-dev-tools \
libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools \
libpcre3 libpcre3-dbg libpcre3-dev libpcrecpp0 \
python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev \
autoconf libtool libosip2-dev libortp-dev \
libusb-1.0-0-dev g++ erlang bison flex

Install SDCC

Sebaiknya jangan mengcompile dari source code karena membuat pusing kepala. Install sdcc sebaiknya langsung dari file .deb saja.

cd /usr/local/src
wget -c http://launchpadlibrarian.net/38703081/sdcc_2.9.0-5_amd64.deb
wget -c http://launchpadlibrarian.net/38689168/sdcc-libraries_2.9.0-5_all.deb
dpkg -i sdcc_2.9.0-5_amd64.deb sdcc-libraries_2.9.0-5_all.deb

Kalau nekad bisa mencoba. Download source code dari

http://sourceforge.net/projects/sdcc/files/sdcc/ 

Compile

cp sdcc-src-2.8.0.tar.bz2 /usr/local/src
cd /usr/local/src
tar jxvf sdcc-src-2.8.0.tar.bz2
cd sdcc
./configure
make
make install

Download Source Code UHD

echo "/usr/local/lib" >> /etc/ld.so.conf
cd /usr/local/src
git clone git://ettus.sourcerepo.com/ettus/uhd.git uhd.git

Compile UHD

cd /usr/local/src/uhd.git/host/
mkdir build
cd /usr/local/src/uhd.git/host/build
cmake -DENABLE_LIBUHD=ON -DENABLE_EXAMPLES=ON -DENABLE_UTILS=ON -DENABLE_TESTS=ON ../
make
make test
make install
ldconfig
/usr/local/lib/uhd/utils/uhd_images_downloader.py

Image UHD ada di /usr/local/share/uhd/images

Install UHD USRP ke udev

cd /usr/local/share/uhd/utils
sudo cp uhd-usrp.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules

Download Source Code OpenBTS

ROOT_OPENBTS berada di /home/openbts/software/public

mkdir -p /OpenBTS/
mkdir -p /home/openbts/software/public
cd /home/openbts/software
svn co http://wush.net/svn/range/software/public public


Install liba53

cd /home/openbts/software/public
cd a53/trunk
make clean
make
make install

Compile

Perbaiki source code

vi /home/openbts/software/public/openbts/tags/rP3.1.3/Control/TransactionTable.cpp

Pastikan pada line 1071

// mSIP.RTPSession()->rtp.last_rtcp_report_snt_r << "," <<
// mSIP.RTPSession()->rtp.last_rtcp_report_snt_s << "," <<
// mSIP.RTPSession()->rtp.rtcp_report_snt_interval << "," <<


cd /home/openbts/software/public/openbts/tags/rP3.1.3
sudo make clean
sudo autoreconf -i
sudo ./configure --with-uhd --with-resamp 
sudo make

cd /home/openbts/software/public/openbts/tags/rP3.1.3/TransceiverRAD1
make

cd /home/openbts/software/public/openbts/tags/rP3.1.3
cd apps
sudo ln -s ../TransceiverRAD1/transceiver .
cd /home/openbts/software/public/openbts/tags/rP3.1.3/TransceiverRAD1
cp transceiver /OpenBTS/
cp ezusb.ihx /OpenBTS/
cp fpga.rbf /OpenBTS/
cd /home/openbts/software/public/openbts/tags/rP3.1.3/apps
cp OpenBTS /OpenBTS/
cp OpenBTSDo /OpenBTS/
cp OpenBTSCLI /OpenBTS/
cp runloop.OpenBTS.sh /OpenBTS/

Set database konfigurasi OpenBTS

sudo mkdir /etc/OpenBTS 
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit" 

Rewrite Image UHD USRP1 dengan Image UHD RAD1

cd /OpenBTS/
cp ezusb.ihx /usr/local/share/uhd/images/usrp1_fw.ihx
cp fpga.rbf /usr/local/share/uhd/images/usrp1_fpga.rbf

Install Subscriber Registry

Buat directory Asterisk subscriber.

sudo mkdir -p /var/lib/asterisk/sqlite3dir  

Build SIPAuthServe.

cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
sudo make clean
sudo make
cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
cp comp128 /usr/local/bin/
cp comp128 /OpenBTS/ 
cp sipauthserve /OpenBTS/
cp runloop.sipauthserve.sh /OpenBTS/

Inisialisasi subscriberRegistry config database. Run:

cd subscriberRegistry
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db ".quit"

Install smqueue

Build SMQueue.

cd /home/openbts/software/public/smqueue/tags/rP3.1.3
make clean
sudo autoreconf -i
sudo ./configure
sudo make
cd /home/openbts/software/public/smqueue/tags/rP3.1.3
sudo sqlite3 -init smqueue/smqueue.example.sql /etc/OpenBTS/smqueue.db ".quit"
cd /home/openbts/software/public/smqueue/tags/rP3.1.3/smqueue
cp runloop.smqueue.sh /OpenBTS/
cp smqueue /OpenBTS/

Menjalankan OpenBTS

Pastikan Yate di Compile & Install dengan baik


Menjalankan dapat dari /OpenBTS/

cd /OpenBTS/
./sipauthserve &
sleep 5
./smqueue &
sleep 5
cd /usr/local/src/yate
rm -Rf /var/log/yate
rm -Rf /var/log/VBTS.log 
./run -t -l /var/log/yate -vvvv -c /usr/local/etc/yate -m /usr/local/lib/yate -e /usr/local/share/yate -d
sleep 5
mkdir /var/run/OpenBTS/
touch /var/run/OpenBTS/TransactionTable.db
cd /OpenBTS/
./OpenBTS &

atau

sleep 10
cd /home/openbts/software/public/subscriberRegistry/tags/rP3.1.3
./sipauthserve &
sleep 5
cd /home/openbts/software/public/smqueue/tags/rP3.1.3/smqueue
./smqueue &
sleep 5
cd /usr/local/src/yate
rm -Rf /var/log/yate
rm -Rf /var/log/VBTS.log 
./run -t -l /var/log/yate -vvvv -c /usr/local/etc/yate -m /usr/local/lib/yate -e /usr/local/share/yate -d
sleep 5
mkdir /var/run/OpenBTS/
touch /var/run/OpenBTS/TransactionTable.db
cd /home/openbts/software/public/openbts/tags/rP3.1.3/apps/
./OpenBTS &

Referensi


Pranala Menarik

Persiapan

Script

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

OpenBTS 3.1.x

Ettus E110

Ettus N210

RangeNetworks

GPRS

Briker OpenBTS

FreeSWITCH OpenBTS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video

Perjuangan OpenBTS