Difference between revisions of "OpenBTS: N210 GNURadio 3.7.0"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 103: | Line 103: | ||
tar -zxf gnuradio-3.7.0.tar.gz | tar -zxf gnuradio-3.7.0.tar.gz | ||
cd gnuradio-3.7.0 | cd gnuradio-3.7.0 | ||
+ | mkdir build | ||
+ | cd build | ||
+ | cmake ../ | ||
./configure --enable-gr-uhd --disable-usrp2 --disable-usrp | ./configure --enable-gr-uhd --disable-usrp2 --disable-usrp | ||
Revision as of 13:05, 23 July 2013
Persiapan
sudo apt-get -y install libboost-all-dev libusb-1.0-0-dev python-cheetah doxygen python-docutils \ git python cmake ethtool 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 \ subversion autoconf libtool libosip2-dev libortp-dev g++ sqlite3 libusb-1.0.0-dev \ libsqlite3-dev erlang libreadline6-dev libboost-all-dev swig libfftw3-dev libcppunit-dev \ libaudio-dev libusb-dev make
Lakukan
ethtool eth0
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 2 Transceiver: internal Auto-negotiation: on MDI-X: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000007 (7) drv probe link Link detected: yes
Set IP address interface
ifconfig eth0 192.168.10.1
ping 192.168.10.2
HARUS ADA Responds!!!
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data. 64 bytes from 192.168.10.2: icmp_req=1 ttl=32 time=1.74 ms
Install SDCC
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
alternatif lain
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
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
Download GNURadio
cd /usr/local/src wget -c http://gnuradio.org/releases/gnuradio/gnuradio-3.7.0.tar.gz
cd /usr/local/src tar -zxf gnuradio-3.7.0.tar.gz cd gnuradio-3.7.0 mkdir build cd build cmake ../ ./configure --enable-gr-uhd --disable-usrp2 --disable-usrp
Perbaiki error: ‘intptr_t’
vi /usr/local/src/gnuradio/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc
tambahkan
#include <unistd.h>
Compile GNURadio
cd /usr/local/src/gnuradio make make install ldconfig
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
Install Image 003.005.000
sudo /usr/local/lib/uhd/utils/uhd_images_downloader.py
Images successfully installed to: /usr/local/share/uhd/images
Lanjutkan
/usr/local/bin/usrp_n2xx_simple_net_burner --addr="192.168.10.2"
linux; GNU C++ version 4.7.3; Boost_104900; UHD_003.005.003-112-gea418a85 Searching for USRP N2XX with IP address 192.168.10.2. Found n210_r4. Searching for specified images. Will burn the following images: * Firmware: /usr/local/share/uhd/images/usrp_n210_fw.bin * FPGA: /usr/local/share/uhd/images/usrp_n210_r4_fpga.bin Querying n210_r4 for flash information. * Flash size: 4194304 * Sector size: 65536 Erasing FPGA image. * Successfully erased 1572864 bytes at 1572864. Writing FPGA image. * Successfully wrote 1311644 bytes. Verifying FPGA image. * Successful. Erasing firmware image. * Successfully erased 31744 bytes at 3145728. Writing firmware image. * Successfully wrote 16383 bytes. Verifying firmware image. * Successful. Image burning successful. Reset USRP (Y/n)? Y Resetting USRP.
Test
Find Device
uhd_find_devices
linux; GNU C++ version 4.7.3; Boost_104900; UHD_003.005.003-112-gea418a85 -------------------------------------------------- -- UHD Device 0 -------------------------------------------------- Device Address: type: usrp2 addr: 192.168.10.2 name: serial: F306BB
Test GPSDO
cd /usr/local/src/uhd.git/host/examples wget https://sites.google.com/site/byungchulweb/gnufile/gps_test.cpp
Masukan
vi /usr/local/src/uhd.git/host/examples/CMakeLists.txt
masukan
gps_test.cpp
Compile
cd .. cd build cmake ../ make make test sudo make install sudo ldconfig
Test
cd /usr/local/src/uhd.git/host/build/examples sudo ./gps_test
Hsilnya
.. .. -- Setting references to the internal GPSDO -- Initializing time to the internal GPSDO Using Device: Single USRP: Device: USRP2 / N-Series Device Mboard 0: N210r4 RX Channel: 0 RX DSP: 0 RX Dboard: A RX Subdev: WBXv3 RX+GDB TX Channel: 0 TX DSP: 0 TX Dboard: A TX Subdev: WBXv3 TX+GDB GPS epoch time: 1136081736 seconds GPS lock status: unlocked PS_GPGGA: $GPGGA,021536.00,0000.0000,N,00000.0000,E,0,99,1.0,0.0,M,0.0,M,,*5F PS_GPRMC: $GPRMC,021536.00,V,0000.0000,N,00000.0000,E,0.0,0.0,010106,,*21
Test uhd usrp probe
cd /usr/local/bin ./uhd_usrp_probe
Hasilnya
.. .. -- Detecting internal GPSDO.... Found a Jackson Labs GPS -- found -- Setting references to the internal GPSDO -- Initializing time to the internal GPSDO _____________________________________________________ / | Device: USRP2 / N-Series Device | _____________________________________________________ | / | | Mboard: N210r4 | | hardware: 2577 | | mac-addr: 00:80:2f:0a:d0:9c | | ip-addr: 192.168.10.2 | | subnet: 255.255.255.255 | | gateway: 255.255.255.255 | | gpsdo: none | | serial: F306BB | | FW Version: 12.3 | | FPGA Version: 10.0 | | | | Time sources: none, external, _external_, mimo, gpsdo | | Clock sources: internal, external, mimo, gpsdo | | Sensors: gps_gpgga, gps_gprmc, gps_time, gps_locked, gps_servo, mimo_locked, ref_locked | | _____________________________________________________ | | / | | | RX DSP: 0 | | | Freq range: -50.000 to 50.000 Mhz | | _____________________________________________________ | | / | | | RX DSP: 1 | | | Freq range: -50.000 to 50.000 Mhz | | _____________________________________________________ | | / | | | RX Dboard: A | | | ID: WBX v3, WBX v3 + Simple GDB (0x0057) | | | Serial: F35DB9 | | | _____________________________________________________ | | | / | | | | RX Frontend: 0 | | | | Name: WBXv3 RX+GDB | | | | Antennas: TX/RX, RX2, CAL | | | | Sensors: lo_locked | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB | | | | Connection Type: IQ | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | RX Codec: A | | | | Name: ads62p44 | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB | | | | Gain range fine: 0.0 to 0.5 step 0.1 dB | | _____________________________________________________ | | / | | | TX DSP: 0 | | | Freq range: -250.000 to 250.000 Mhz | | _____________________________________________________ | | / | | | TX Dboard: A | | | ID: WBX v3 (0x0056) | | | Serial: F35DB9 | | | ID: WBX + Simple GDB, WBX v3 + Simple GDB, WBX v4 + Simple GDB (0x004f) | | | Serial: 0 | | | _____________________________________________________ | | | / | | | | TX Frontend: 0 | | | | Name: WBXv3 TX+GDB | | | | Antennas: TX/RX, CAL | | | | Sensors: lo_locked | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.0 step 1.0 dB | | | | Connection Type: IQ | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | TX Codec: A | | | | Name: ad9777 | | | | Gain Elements: None
Test clock 52MHz
cd /usr/local/bin ./uhd_usrp_probe --args="master_clock_rate=52e6"
Hasilnya kira-kira
.. .. -- Detecting internal GPSDO.... Found a Jackson Labs GPS -- found -- Setting references to the internal GPSDO -- Initializing time to the internal GPSDO _____________________________________________________ / | Device: USRP2 / N-Series Device | _____________________________________________________ | / | | Mboard: N210r4 | | hardware: 2577 | | mac-addr: 00:80:2f:0a:d0:9c | | ip-addr: 192.168.10.2 | | subnet: 255.255.255.255 | | gateway: 255.255.255.255 | | gpsdo: none | | serial: F306BB | | FW Version: 12.3 | | FPGA Version: 10.0 | | | | Time sources: none, external, _external_, mimo, gpsdo | | Clock sources: internal, external, mimo, gpsdo | | Sensors: gps_gpgga, gps_gprmc, gps_time, gps_locked, gps_servo, mimo_locked, ref_locked | | _____________________________________________________ | | / | | | RX DSP: 0 | | | Freq range: -50.000 to 50.000 Mhz | | _____________________________________________________ | | / | | | RX DSP: 1 | | | Freq range: -50.000 to 50.000 Mhz | | _____________________________________________________ | | / | | | RX Dboard: A | | | ID: WBX v3, WBX v3 + Simple GDB (0x0057) | | | Serial: F35DB9 | | | _____________________________________________________ | | | / | | | | RX Frontend: 0 | | | | Name: WBXv3 RX+GDB | | | | Antennas: TX/RX, RX2, CAL | | | | Sensors: lo_locked | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB | | | | Connection Type: IQ | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | RX Codec: A | | | | Name: ads62p44 | | | | Gain range digital: 0.0 to 6.0 step 0.5 dB | | | | Gain range fine: 0.0 to 0.5 step 0.1 dB | | _____________________________________________________ | | / | | | TX DSP: 0 | | | Freq range: -250.000 to 250.000 Mhz | | _____________________________________________________ | | / | | | TX Dboard: A | | | ID: WBX v3 (0x0056) | | | Serial: F35DB9 | | | ID: WBX + Simple GDB, WBX v3 + Simple GDB, WBX v4 + Simple GDB (0x004f) | | | Serial: 0 | | | _____________________________________________________ | | | / | | | | TX Frontend: 0 | | | | Name: WBXv3 TX+GDB | | | | Antennas: TX/RX, CAL | | | | Sensors: lo_locked | | | | Freq range: 68.750 to 2200.000 Mhz | | | | Gain range PGA0: 0.0 to 31.0 step 1.0 dB | | | | Connection Type: IQ | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | TX Codec: A | | | | Name: ad9777 | | | | Gain Elements: None
Test Benchmark
cd /usr/local/src/uhd.git/host/build/examples ./benchmark_rate --rx_rate 10000000 --tx_rate 10000000
Hasilnya kira-kira
.. .. -- Detecting internal GPSDO.... Found a Jackson Labs GPS -- found -- Setting references to the internal GPSDO -- Initializing time to the internal GPSDO UHD Warning: get_time: ValueError: get_nmea(): no GPRMC message found Using Device: Single USRP: Device: USRP2 / N-Series Device Mboard 0: N210r4 RX Channel: 0 RX DSP: 0 RX Dboard: A RX Subdev: WBXv3 RX+GDB TX Channel: 0 TX DSP: 0 TX Dboard: A TX Subdev: WBXv3 TX+GDB Testing receive rate 10.000000 Msps on 1 channels Testing transmit rate 10.000000 Msps on 1 channels Benchmark rate summary: Num received samples: 100107777 Num dropped samples: 0 Num overflows detected: 0 Num transmitted samples: 100229019 Num sequence errors: 0 Num underflows detected: 0 Done!
Referensi
- http://voiprakyat.or.id/pub/openbts/install.txt
- http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD
- http://files.ettus.com/uhd_docs/manual/html/build.html
- http://files.ettus.com/uhd_docs/manual/html/images.html
- http://files.ettus.com/uhd_docs/manual/html/transport.html#linux-specific-notes
Pranala Menarik
Persiapan
- USRP: High Precision Clock
- USRP: Menyambungkan ClockTamer ke USRP1
- USRP: Kalibrasi ClockTamer
- USRP: ClockTamer Control Protocol
- USRP: Instalasi Board
- OpenBTS: GIT Source Code
- USRP: Rangkaian Board USRP
- OpenBTS: Tethr untuk Bencana Alam
- USRP: Tip Pemesanan
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 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 Subscriber Registery
- OpenBTS: Database SQLite
Multi OpenBTS 2.8
- OpenBTS: Pola Multi OpenBTS RECOMMENDED
- Multi OpenBTS: Catatan Konfigurasi RECOMMENDED
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 Bekerja dengan opkg
- OpenBTS: E110 GNURadio
- OpenBTS: E110 Compile UHD *RECOMMENDED*
- OpenBTS: E110 UHD burn EEPROM RFX Board *RECOMMENDED*
- OpenBTS: E110 Install UHD Image *RECOMMENDED*
- OpenBTS: E110 Instalasi OpenBTS
- OpenBTS: E110 Instalasi OpenBTS 2.6 NOT RECOMMENDED
- OpenBTS: E110 Instalasi OpenBTS 2.8 untuk MultiBTS *RECOMMENDED*
Ettus N210
- OpenBTS: N210 GNURadio
- OpenBTS: N210 Instalasi OpenBTS
- OpenBTS: N210 Instalasi Yate
- OpenBTS: N210 Yate Config Test
- OpenBTS: N210 Burn Firmware
GPRS
Power Amplifier
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