Difference between revisions of "GNURadio: UHD"

From OnnoWiki
Jump to navigation Jump to search
Line 25: Line 25:
 
  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
 
  
 
==Install Image 003.004.002-180-gb6bb13bc==
 
==Install Image 003.004.002-180-gb6bb13bc==

Revision as of 07:14, 21 July 2013

Siapkan Aplikasi Pendukung

apt-get install git python-cheetah python

Download

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

Compile

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 -DENABLE_USRP1=ON ../
make
make test
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.004.002-180-gb6bb13bc

Download UHD image

cd ~
wget http://files.ettus.com/binaries/master_images/archive/uhd-images_003.004.002-180-gb6bb13bc.tar.gz

Install

rm -Rf /usr/share/uhd/images/*
rm -Rf /usr/local/share/uhd/images/*
cd ~
tar zxvf uhd-images_003.004.002-180-gb6bb13bc.tar.gz
cp -Rf uhd-images_003.004.002-180-gb6bb13bc/share/uhd/images/ /usr/local/share/uhd/

Dalam /usr/local/share/uhd/images/ , file

  • usrp1_fpga_4rx.rbf
  • usrp1_fpga.rbf

digunakan untuk USRP1

Test

Test clock 52MHz

cd /usr/local/bin
./uhd_usrp_probe --args="master_clock_rate=52e6"

Hasilnya kira-kira

linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.004.003-175-g09de3c07

-- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done
-- Opening a USRP1 device...
-- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done
-- Using FPGA clock rate of 52.000255MHz...

UHD Warning:
    Detected RX daughterboard Flex 900 Classic
    This board requires modification to use.
    See the daughterboard application notes.
  _____________________________________________________
 /
|       Device: USRP1 Device
|     _____________________________________________________
|    /
|   |       Mboard: USRP1
|   |   serial: 0R24X5U1
|   |   mcr: 52000255
|   |   
|   |   Time sources: none
|   |   Clock sources: internal
|   |   Sensors: 
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: 0
|   |   |   Freq range: -26.000 to 26.000 Mhz
|   |     _____________________________________________________
|   |    /

Test Benchmark

cd /usr/local/src/uhd.git/host/build/examples
./benchmark_rate --rx_rate 1000000 --tx_rate 1000000

Hasilnya kira-kira

linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.004.003-175-g09de3c07

*** Warning! ***
Benchmark results will be inaccurate on USRP1 due to insufficient features.

Creating the usrp device with: ...
-- Opening a USRP1 device...
-- Using FPGA clock rate of 52.000255MHz...

Using Device: Single USRP:
  Device: USRP1 Device
  Mboard 0: USRP1
  RX Channel: 0
    RX DSP: 0
    RX Dboard: B
    RX Subdev: Unknown (0x0005) - 0
  TX Channel: 0
    TX DSP: 0
    TX Dboard: B
    TX Subdev: Unknown (0x0009) - 0 

Testing receive rate 1.000005 Msps
Testing transmit rate 1.000005 Msps

Benchmark rate summary:
  Num received samples:    9998336
  Num dropped samples:     0
  Num overflows detected:  0
  Num transmitted samples: 10054912
  Num sequence errors:     0
  Num underflows detected: 1 
Done!

Referensi

Pranala Menarik

Persiapan

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

Ettus E110

GPRS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video