Use ubuntu1404 to build Gnuradio environment

Source: Internet
Author: User
Tags redmine

Use ubuntu1404 to build Gnuradio environment

1. Update the software Source: $sudo apt-get update

2. Install CMake: $ sudo apt-get install cmake
(Note: The GNU Radio only provides hardware drivers for the USRP1 and USRP2, and in the GNU Radio 3.5.0 and later versions, it is no longer available for USRP drivers, so you can install the 3.4.2 prior to installing the version without UHD.) To use the GNU Radio 3.5.0 and later versions on USRP, you need to install UHD as a USRP driver. The GR-UHD component is available in the version after GNU Radio 3.4.0, and if you want to use both UHD and GNU Radio, you should install UHD before installing the GNU Radio. )

3. The dependent environment required to install the UHD:
sudo apt-get install python libboost-all-dev libusb-1.0-0-dev
The GNU radio runs normally and requires a lot of packages, including: Development tools, LIBRARY,WX GUI,QT GUI, etc. (and a lot, not to mention, nothing to install). These things can be installed automatically by entering the following command in the terminal:

sudo apt-get - yInstall Git-coreautoconf Automake Libtool G++Python-devSwig\Pkg-configLibboost-all-devLibfftw3-devLibcppunit-devLibgsl0-dev \Libusb-devSDCC LIBSDL1. 2-devPython-wxgtk2. 8Python-numpy \Python-cheetahPython-lxmlDoxygen python-qt4Python-qwt5-qt4Libxi-dev \Libqt4-opengl-devLibqwt5-qt4-devLibfontconfig1-devLibxrender-dev

Installation of 4.UHD:
(1) Version number: uhd-3.8.1:
Http://files.ettus.com/binaries/uhd
(2) UHD uncompressed to the home folder (Chinese characters are not included in all paths)

$cd$mkdir$cd$cmake$make$make$sudo

Reference: Http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build
(Note: B200 support is only available after installing Libusb-1.0-0-dev,cmake)
UHD Warning:
Could not locate B200 firmware.
Install the images package. Please run:
sudo "/usr/local/lib/uhd/utils/uhd_images_downloader.py"
Images successfully installed to:/usr/local/share/uhd/images

When sudo ldconfig a shared library is not found
Encountering Error:insufficient permissions for device issues
http://blog.csdn.net/xiaxiangnanxp1989/article/details/8605611
Installation of 5.gnuradio
(1) Version number: Latest Version Gnuradio-master
Https://github.com/gnuradio/gnuradio
(2) Unzip the Gnuradio source into the main folder (no Chinese characters are included in all paths)

$cd$mkdir$cd$cmake ../$make$make$sudo

Run $ sudo gnuradio-companion after installation is complete
Error message may be incorrect, run $ sudo ldconfig to eliminate error,
Finally $ sudo gnuradio-companion , you can open the Gnuradio, see if the Blocks is a UHD module, if not, UHD is not installed successfully.
Gnuradio installation Reference URL: Http://gnuradio.org/redmine/projects/gnuradio/wiki/Ubunt uinstall#install-dependencies

PS: This method is after trying the online many methods, uninstall and reload, and even Ubuntu has been uninstalled for several versions ... Comprehensively organized.

(2) First Use only USRP
Run at Terminal: uhd_find_devices , see if the PC is connected to the USRP
Here is a map这里写代码片

Connect the USRP and the computer with a companion USB cable. Run uhd_usrp_probe at terminal
After burning write Firmwa, it is likely not to continue to burn the FPGA image, show no devices found,
Unplug the USRP USB cable from the computer and plug it back in immediately.
uhd_usrp_probethe firmware and FPGA images can be burned normally when re-running.

Run an example to check the USRP receive function:
Run uhd_fft at terminal
Can run uhd_fft --help see how to set parameters

Run the program (to set the program to run at 440MHz, bit rate is 200Kbps,
The modulation method is GFSK for example):

python benchmark_rx.-f440e6-r200e3-m-A TX/RX--rxgain=25

Parameter description:
-F 440e6 Sets the receive center frequency to 440M
-R 200E3 set transmission bit rate to 200K
-M GFSK set modulation demodulation mode to GFSK
-a TX/RX set the receive antenna port to TX/RX (that is, the RF1 corresponds to the antenna port)
–rx-gain set receive gain of 25

The GNU Radio comes with a large number of sending and receiving examples.
Under the/usr/local/share/gnuradio/examples folder

Use ubuntu1404 to build Gnuradio environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.