Difference between revisions of "GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz"

From OnnoWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 47: Line 47:
 
  libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \
 
  libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \
 
  libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
 
  libqt4-dev python-numpy ccache python-opengl libgsl0-dev \
  python-cheetah python-lxml doxygen qt4-dev-tools \
+
  python-cheetah python-lxml doxygen qt4-dev-tools libboost-all-dev \
 
  libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools \
 
  libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools \
 
  libpcre3 libpcre3-dbg libpcre3-dev libpcrecpp0 \
 
  libpcre3 libpcre3-dbg libpcre3-dev libpcrecpp0 \
Line 60: Line 60:
  
 
  Download dari http://sourceforge.net/projects/swig/files/swig/
 
  Download dari http://sourceforge.net/projects/swig/files/swig/
  cp swig-2.0.7.tar.gz /usr/local/src/
+
  cp swig-2.0.10.tar.gz /usr/local/src/
 
  cd /usr/local/src/
 
  cd /usr/local/src/
  tar zxvf swig-2.0.7.tar.gz  
+
  tar zxvf swig-2.0.10.tar.gz  
  cd /usr/local/src/swig-2.0.7/
+
  cd /usr/local/src/swig-2.0.10/
 
  ./configure
 
  ./configure
 
  make
 
  make
Line 73: Line 73:
  
 
  Download dari http://sourceforge.net/projects/qwt/files/
 
  Download dari http://sourceforge.net/projects/qwt/files/
  cp qwt-6.0.1.tar.bz2 /usr/local/src/
+
  cp qwt-6.1.0.tar.bz2 /usr/local/src/
 
  cd /usr/local/src/
 
  cd /usr/local/src/
  tar jxvf qwt-6.0.1.tar.bz2  
+
  tar jxvf qwt-6.1.0.tar.bz2  
  cd /usr/local/src/qwt-6.0.1/
+
  cd /usr/local/src/qwt-6.1.0/
 
  qmake
 
  qmake
 
  make
 
  make
 
  make install
 
  make install
 
  
 
==Instal boost==
 
==Instal boost==
Line 87: Line 86:
  
 
  Download dari http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download
 
  Download dari http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download
 +
http://sourceforge.net/projects/boost/files/latest/download?source=files
 +
 +
===instalasi boost 1.49===
  
 
  cp boost_1_49_0.zip /usr/local/src
 
  cp boost_1_49_0.zip /usr/local/src
 
  cd /usr/local/src
 
  cd /usr/local/src
 
  unzip boost_1_49_0.zip
 
  unzip boost_1_49_0.zip
  chmod -Rf 777 /usr/local/src/boost_1_49_
+
  chmod -Rf 777 /usr/local/src/boost_1_49_0
 
  mkdir /opt/boost_1_49_0
 
  mkdir /opt/boost_1_49_0
 
  BOOST_PREFIX=/opt/boost_1_49_0
 
  BOOST_PREFIX=/opt/boost_1_49_0
 
  cd /usr/local/src/boost_1_49_0   
 
  cd /usr/local/src/boost_1_49_0   
 +
./bootstrap.sh
 +
sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \
 +
--with-program_options --with-filesystem --with-system \
 +
--layout=versioned threading=multi variant=release install
 +
 +
===instalasi boost 1.53===
 +
 +
cp boost_1_53_0.tar.bz2 /usr/local/src/
 +
cd /usr/local/src/
 +
tar jxvf boost_1_53_0.tar.bz2
 +
chmod -Rf 777 /usr/local/src/boost_1_53_0
 +
mkdir /opt/boost_1_53_0
 +
BOOST_PREFIX=/opt/boost_1_53_0
 +
cd /usr/local/src/boost_1_53_0
 
  ./bootstrap.sh
 
  ./bootstrap.sh
 
  sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \
 
  sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \
Line 242: Line 258:
 
* [[USRP: Kalibrasi ClockTamer]]
 
* [[USRP: Kalibrasi ClockTamer]]
 
* [[USRP: ClockTamer Control Protocol]]
 
* [[USRP: ClockTamer Control Protocol]]
 +
* [[USRP: ClockTamer Flashing]]
 
* [[USRP: Instalasi Board]]
 
* [[USRP: Instalasi Board]]
 
* [[OpenBTS: GIT Source Code]]
 
* [[OpenBTS: GIT Source Code]]
Line 247: Line 264:
 
* [[OpenBTS: Tethr untuk Bencana Alam]]
 
* [[OpenBTS: Tethr untuk Bencana Alam]]
 
* [[USRP: Tip Pemesanan]]
 
* [[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 2.6===
 
===OpenBTS 2.6===
Line 255: Line 278:
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
 
* [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''RECOMMENDED'''
* [[GNURadio: Ubuntu 13.04 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: Contoh Aplikasi]]
 
* [[GNURadio: Spectrum Analizer GSM]]
 
* [[GNURadio: Spectrum Analizer GSM]]
Line 262: Line 285:
 
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
 
* [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
* [[OpenBTS: Ubuntu 13.04 Install OpenBTS 2.6 Clock 52MHz]] '''RECOMMENDED'''
+
* [[OpenBTS: Ubuntu 13.04 Install OpenBTS 2.6 Clock 52MHz]] ''NOT RECOMMENDED''
 
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 
* [[OpenBTS: Konfigurasi]] '''RECOMMENDED'''
 
* [[OpenBTS: Kalibrasi]]
 
* [[OpenBTS: Kalibrasi]]
Line 309: Line 332:
 
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Softswitch]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Softswitch install Ubuntu 12.10]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Softswitch install Ubuntu 12.10]] '''RECOMMENDED'''
 +
* [[OpenBTS: Yate Softswitch install Ubuntu 13.04]] '''RECOMMENDED'''
 
* [[OpenBTS: Yate Config Test]]
 
* [[OpenBTS: Yate Config Test]]
 
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 Menjalankan]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 Menjalankan]] '''RECOMMENDED'''
 
* [[OpenBTS: 2.8 Konfigurasi]]
 
* [[OpenBTS: 2.8 Konfigurasi]]
 +
* [[OpenBTS: 2.8 Konfigurasi Cognitive Radio Elsabagh]]
 
* [[OpenBTS: 2.8 Konfigurasi Subscriber Registery]]
 
* [[OpenBTS: 2.8 Konfigurasi Subscriber Registery]]
 
* [[OpenBTS: Database SQLite]]
 
* [[OpenBTS: Database SQLite]]
 +
* [[OpenBTS: Set SQLite Subscriber Registry secara manual]]
 +
* [[OpenBTS: FreeSWITCH]]
  
 
===Multi OpenBTS 2.8===
 
===Multi OpenBTS 2.8===
Line 328: Line 355:
 
* [[OpenBTS: E110 Mengubah Master Clock]]
 
* [[OpenBTS: E110 Mengubah Master Clock]]
 
* [[OpenBTS: E110 Kalibrasi Clock]]
 
* [[OpenBTS: E110 Kalibrasi Clock]]
 +
* [[OpenBTS: E110 Konfigurasi Jaringan]]
 
* [[OpenBTS: E110 Bekerja dengan opkg]]
 
* [[OpenBTS: E110 Bekerja dengan opkg]]
 +
* [[OpenBTS: E110 Instalasi iptables]]
 
* [[OpenBTS: E110 GNURadio]]
 
* [[OpenBTS: E110 GNURadio]]
* [[OpenBTS: E110 Compile UHD]] '''*RECOMMENDED*'''
+
* [[OpenBTS: E110 Compile UHD]] ''Not Recommended''
* [[OpenBTS: E110 UHD burn EEPROM RFX Board]] '''*RECOMMENDED*'''
+
* [[OpenBTS: E110 Compile UHD dari Release Bukan git]] ''Not Recommended''
* [[OpenBTS: E110 Install UHD Image]] '''*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]]
 
* [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED''
 
* [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED''
 
* [[OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS]] '''*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 Default Setting]]
  
 
===GPRS===
 
===GPRS===
  
 
* [[OpenBTS: GPRS]]
 
* [[OpenBTS: GPRS]]
 +
* [[OpenBTS: GPRS Konfigurasi]]
 +
* [[OpenBTS: GPRS untuk dibelakang Router dengan NAT]]
 +
 +
===Briker OpenBTS===
 +
 +
* [[OpenBTS: Briker]]
 +
 +
===FreeSWITCH OpenBTS===
 +
 +
* [[OpenBTS: FreeSWITCH]]
  
 
===Power Amplifier===
 
===Power Amplifier===
Line 379: Line 434:
 
* [[OpenBTS: Permohonan Kanal dan DID untuk OpenBTS]]
 
* [[OpenBTS: Permohonan Kanal dan DID untuk OpenBTS]]
 
* [[OpenBTS: 2013/02/19 - OpenBTS TelkomSel Mengudara di Muscat Oman]]
 
* [[OpenBTS: 2013/02/19 - OpenBTS TelkomSel Mengudara di Muscat Oman]]
 +
* [[OpenBTS: Beroperasi di Papua]]
  
 
===Dokumentasi Video===
 
===Dokumentasi Video===
Line 389: Line 445:
 
* http://youtu.be/6LCuoeI57ak (5/6)
 
* http://youtu.be/6LCuoeI57ak (5/6)
 
* http://youtu.be/-dEqcHoIlYk (6/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: Wireless]]
 
[[Category: Selular]]
 
[[Category: Selular]]

Latest revision as of 18:34, 5 January 2014

Handling USRP

Ubuntu menggunakan udev untuk menangani hotplug devices, dan secara default tidak memberikan akses non-root ke USRP. Script berikut akan memberikan akses bagi user untuk menghandel USRP via USB baik secara live atau hot-plug.

sudo addgroup usrp
sudo usermod -G usrp -a <YOUR_USERNAME>
echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"' > tmpfile
sudo chown root.root tmpfile
sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules

Pada titik ini, Ubuntu telah di konfigurasi untuk tahu apa yang harus di kerjakan jika medeteksi USRP di USB tapi "udev" perlu me-reload rules untuk memasukan rules yang baru kita buat. Langkah berikut dapat dilakukan sehingga kita tidak perlu me-reboot komputer.

sudo udevadm control --reload-rules

atau

sudo /etc/init.d/udev stop
sudo /etc/init.d/udev start

atau

sudo killall -HUP udevd

Kita dapat mencek jika USRP telah di kenali dengan mengamati /dev/bus/usb setelah USRP di pasang menggunakan perintah

ls -lR /dev/bus/usb | grep usrp

Harusnya akan keluar seperti

crw-rw---- 1 root usrp 189, 1 2010-12-09 17:38 002


Setiap USRP yang terpasang akan terdaftar pada group 'usrp' dan mode 'crw-rw----'.


Instal Library

Update

sudo apt-get update

Instal untuk Ubuntu 10.10

sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig \
g++ automake libtool python-dev libfftw3-dev \
libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries \
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 libboost-all-dev \
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 qt4-qmake \
libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang \
asterisk asterisk-mysql libortp8 libortp-dev libosip2-4 libosip2-dev

Instal SWIG

Install secara manual SWIG

Download dari http://sourceforge.net/projects/swig/files/swig/
cp swig-2.0.10.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf swig-2.0.10.tar.gz 
cd /usr/local/src/swig-2.0.10/
./configure
make
make install

Instal QWT

Install secara manual QWT

Download dari http://sourceforge.net/projects/qwt/files/
cp qwt-6.1.0.tar.bz2 /usr/local/src/
cd /usr/local/src/
tar jxvf qwt-6.1.0.tar.bz2 
cd /usr/local/src/qwt-6.1.0/
qmake
make
make install

Instal boost

Instalasi secara manual boost

Download dari http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download
http://sourceforge.net/projects/boost/files/latest/download?source=files

instalasi boost 1.49

cp boost_1_49_0.zip /usr/local/src
cd /usr/local/src
unzip boost_1_49_0.zip
chmod -Rf 777 /usr/local/src/boost_1_49_0
mkdir /opt/boost_1_49_0
BOOST_PREFIX=/opt/boost_1_49_0
cd /usr/local/src/boost_1_49_0  
./bootstrap.sh
sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \
--with-program_options --with-filesystem --with-system \
--layout=versioned threading=multi variant=release install

instalasi boost 1.53

cp boost_1_53_0.tar.bz2 /usr/local/src/
cd /usr/local/src/
tar jxvf boost_1_53_0.tar.bz2 
chmod -Rf 777 /usr/local/src/boost_1_53_0
mkdir /opt/boost_1_53_0
BOOST_PREFIX=/opt/boost_1_53_0
cd /usr/local/src/boost_1_53_0 
./bootstrap.sh
sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \
--with-program_options --with-filesystem --with-system \
--layout=versioned threading=multi variant=release install

Siapkan GIT

Install GIT minimal

apt-get install git-core git

jika ingin lebih eksis dapat menginstalasi lebih lengkap

apt-get install git-core git-doc gitk stgit git-arch git-cvs git-svn git-email gitweb

Install GNURadio

Sebaiknya pada saat melakukan instalasi GNURadio, kita pasang USRP ke USB port-nya.

Download aplikasi GNURadio dari

http://gnuradio.org/redmine/attachments/download/261/gnuradio-3.4.1.tar.gz
http://gnuradio.org/redmine/attachments/download/279/gnuradio-3.4.2.tar.gz

Install GNURadio

cp gnuradio-3.4.2.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf gnuradio-3.4.2.tar.gz 
cd /usr/local/src/gnuradio-3.4.2/

Patch untuk 52MHz

Edit

vi /usr/local/src/gnuradio-3.4.2/usrp/host/lib/usrp_basic.cc

Ubah line 110 menjadi

//  d_verbose (false), d_fpga_master_clock_freq(64000000), d_db(2)
    d_verbose (false), d_fpga_master_clock_freq(52000000), d_db(2)

Edit

vi /usr/local/src/gnuradio-3.4.2/usrp/host/lib/db_bitshark_rx.cc

Ubah line 151 menjadi

// set_clock_scheme(0,64000000);
set_clock_scheme(0,52000000);


JANGAN LUPA

  • modifikasi OpenBTS.config agar TRX.Path "../Transceiver52M/transceiver".

Compile & Install

cd /usr/local/src/gnuradio-3.4.2/
./bootstrap
./configure --disable-usrp2 --enable-usrp
make clean
make all
make
make check
make install
sudo ldconfig

Edit bashrc

Masukan PYTHONPATH dengan cara mengedit

vi ~/.bashrc

Tambahkan

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

Untuk memastikan ada baiknya lakukan

sudo ldconfig
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/


Test

Lakukan

cd /usr/local/src/gnuradio-3.4.2/gnuradio-examples/python/usrp
./usrp_benchmark_usb.py 

Hasilnya

Testing 2MB/sec... usb_throughput = 2M
ntotal    = 1000000
nright    = 998137
runlength = 998137
delta     = 1863
OK
Testing 4MB/sec... usb_throughput = 4M
ntotal    = 2000000
nright    = 1998117
runlength = 1998117
delta     = 1883
OK
Testing 8MB/sec... usb_throughput = 8M
ntotal    = 4000000
nright    = 3998437
runlength = 3998437
delta     = 1563
OK
Testing 16MB/sec... usb_throughput = 16M
ntotal    = 8000000
nright    = 7998859
runlength = 7998859
delta     = 1141
OK
Testing 32MB/sec... usb_throughput = 32M
ntotal    = 16000000
nright    = 15996766
runlength = 15996766
delta     = 3234
OK
Max USB/USRP throughput = 32MB/sec

Referensi

Pranala Menarik

Persiapan

Script


OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

Ettus E110

Ettus N210

RangeNetworks

GPRS

Briker OpenBTS

FreeSWITCH OpenBTS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video

Perjuangan OpenBTS