GNU Radio Installation Instructions

Total Page:16

File Type:pdf, Size:1020Kb

GNU Radio Installation Instructions GNU Radio Installation Instructions 1. Access the terminal window by clicking Applications then Accessories, and finally Terminal. 2. Then type the following commands in the terminal mkdir 3.0.3-usb-fix (this creates a directory called gnuradio) cd 3.0.3-usb-fix (this changes the directory to the one just created) 3. Type the following command line in the terminal to download gnuradio. This subversion is used because the version available under the Download link will not recognize the USRP. svn co http://gnuradio.org/svn/gnuradio/tags/releases/3.0.3-usb-fix 4. Copy the following command line into the terminal and press enter. This command line is taken from the Ubuntu build guide under “Install required packages” sudo apt-get -y install g++ automake1.9 libtool python-dev fftw3-dev libcppunit-dev libboost-dev sdcc libusb-dev libasound2-dev libsdl1.2-dev python-wxgtk2.6 subversion guile- 1.6 libqt3-mt-dev python-numpy-ext • A message may appear telling the user to remove the –y from the commands to be entered in steps 4 and 5. If the message appears remove the –y and repeat steps 4 and 5. • Also a prompt may appear asking the user to continue, simply press Y and hit enter 5. Copy the following command line into the terminal. This command was taken from the Ubuntu build guide under the heading “Install optional packages” with the exception of the added packages gnuplot, r-base, gsl and swig sudo apt-get -y install gkrellm wx-common libwxgtk2.6-dev alsa-base autoconf xorg-dev g77 gawk bison openssh-server emacs cvs usbview octave gnuplot r-base gsl swig 7. Copy the qwt-5.0.2.tar.bz2 into your home directory. The tarball can be obtained by entering the following command in the terminal wget http://superb-east.dl.sourceforge.net/sourceforge/qwt/qwt-5.0.2.tar.bz2 8. To compile and install the qwt type the following tar jxf qwt-5.0.2.tar.bz2 cd qwt-5.0.2 qmake make sudo make install 9. Copy the 3.0.3-usb-fix.tar.gz into your home directory. The tarball can be accessed by using the following command svn co http://gnuradio.org/svn/gnuradio/tags/releases/3.0.3- usb-fix.tar.gz 10. To bootsrap, configure, and compile gnuradio enter the following commands tar xzvf 3.0.3-usb-fix.tar.gz cd 3.0.3-usb-fix ./bootstrap ./configure make make check 11.Now run the following command to install GNU Radio sudo make install FYI: To uninstall GNU Radio type the following sudo make uninstall 12. Now the USRP can be enabled to work under Linux by entering the following commands in the terminal sudo addgroup usrp sudo addgroup <YOUR_USERNAME> usrp 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 Replacing YOUR_USERNAME with your actual username. If unknown type in the command whoami 13. Plug in the USRP if you have not already done so and reboot the computer. 14. Now to test the throughput of the USB port on your computer. Running properly at full speed the system rate should be 32MB/s. The following commands are an example to test if the USRP has been installed correctly. cd gnuradio-examples/python/usrp ./benchmark_usb.py 15. The operating system may be upgraded by entering the following command lines in the terminal sudo apt-get -y upgrade sudo apt-get -y dist-upgrade 16.Reboot the computer and you are now ready to use GNU Radio! Simple exercise that does not use the USRP: cd gnuradio-examples/python/audio ./dial_tone.py 17. We now need to add a line to “octaverc” so that octave can use GNU Radio files: cd /usr/share/octave/2.1.73/m/startup sudo gedit octaverc If you receive an error message stating that there is no such file, go to Places -> Search for Files and enter “octaverc”; remember to change Look in folder to the File System. Put this in the file and save, replacing <YOUR_USERNAME> with your login name. LOADPATH = [ ":/home/<YOUR_USERNAME>/3.0.3-usb-fix/gnuradio- core/src/utils", LOADPATH ]; .
Recommended publications
  • The Shogun Machine Learning Toolbox
    The Shogun Machine Learning Toolbox Heiko Strathmann, Gatsby Unit, UCL London Open Machine Learning Workshop, MSR, NY August 22, 2014 A bit about Shogun I Open-Source tools for ML problems I Started 1999 by SÖren Sonnenburg & GUNnar Rätsch, made public in 2004 I Currently 8 core-developers + 20 regular contributors I Purely open-source community driven I In Google Summer of Code since 2010 (29 projects!) Ohloh - Summary Ohloh - Code Supervised Learning Given: x y n , want: y ∗ x ∗ I f( i ; i )gi=1 j I Classication: y discrete I Support Vector Machine I Gaussian Processes I Logistic Regression I Decision Trees I Nearest Neighbours I Naive Bayes I Regression: y continuous I Gaussian Processes I Support Vector Regression I (Kernel) Ridge Regression I (Group) LASSO Unsupervised Learning Given: x n , want notion of p x I f i gi=1 ( ) I Clustering: I K-Means I (Gaussian) Mixture Models I Hierarchical clustering I Latent Models I (K) PCA I Latent Discriminant Analysis I Independent Component Analysis I Dimension reduction I (K) Locally Linear Embeddings I Many more... And many more I Multiple Kernel Learning I Structured Output I Metric Learning I Variational Inference I Kernel hypothesis testing I Deep Learning (whooo!) I ... I Bindings to: LibLinear, VowpalWabbit, etc.. http://www.shogun-toolbox.org/page/documentation/ notebook Some Large-Scale Applications I Splice Site prediction: 50m examples of 200m dimensions I Face recognition: 20k examples of 750k dimensions ML in Practice I Modular data represetation I Dense, Sparse, Strings, Streams, ... I Multiple types: 8-128 bit word size I Preprocessing tools I Evaluation I Cross-Validation I Accuracy, ROC, MSE, ..
    [Show full text]
  • Inventors, Technologists and Entrepreneurs
    19 November 2013 We, the undersigned, are a group of inventors, technologists and entrepreneurs. Many of us have founded technology businesses; we have invented many of the protocols, systems and devices that make the Internet work, and we are collectively listed as the inventors on over 150 patents. We write to you today about the U.S. patent system. That system is broken. Based on our experiences building and deploying new digital technologies, we believe that software patents are doing more harm than good. Perhaps it is time to reexamine the idea, dating from the 1980s, that government-issued monopolies on algorithms, protocols and data structures are the best way to promote the advancement of computer science. But that will be a complex task, and one we don't expect to happen quickly. Unfortunately, aspects of the problem have become so acute they must be addressed immediately. Broad, vague patents covering software-type inventions—some of which we ourselves are listed as inventors on—are a malfunctioning component of America's inventive machinery. This is particularly the case when those patents end up in the hands of non-practicing patent trolls. These non-practicing entities do not make or sell anything. Their exploitation of patents as a tool for extortion is undermining America’s technological progress; patent trolls are collecting taxes on innovation by extracting billions of dollars in dubious licensing fees, and wasting the time and management resources of creative businesses. Many of us would have achieved much less in our careers if the trolling problem had been as dire in past decades as it is now.
    [Show full text]
  • A Software Defined Radio Testbed for Research in Dynamic Spectrum Access
    A SOFTWARE DEFINED RADIO TESTBED FOR RESEARCH IN DYNAMIC SPECTRUM ACCESS A Thesis Submitted to the Faculty of Purdue University by David A. Clendenen In Partial Fulfillment of the Requirements for the Degree of Master of Science in Engineering May 2012 Purdue University Fort Wayne, Indiana ii For my uncle, Jeffrey Davis, who instilled in me from a young age the desire to learn how things work and inspired me to become an electrical engineer. iii ACKNOWLEDGMENTS I first thank Dr. Todor Cooklev for providing me with the opportunity to expand my engineering background to the world of wireless communications and software defined radio. I appreciate his patience and flexibility in working with me as I balanced my career, graduate courses and this research. Next, I thank my graduate committee; Dr. Chao Chen and Dr. Yanfei Liu and my thesis format advisor, Barbara Lloyd for their support and direction in my thesis writing. I also thank Dr. Elizabeth Thompson for first informing me of the National Science Foundation grant and Dr. Donald Mueller and Dr. Carlos Raez for selecting me as a recipient for the grant. I would also like to thank my colleagues at Regal Beloit and my manager, Dr. Roger Becerra, whose support and flexibility allowed me to accomplish my professional and educational goals. I thank my parents for always encouraging me and instilling in me the value of hard work. Most importantly I thank my wife, Tish, for her encouragement and understanding throughout my graduate studies. Above all else, without her support none of this would have been possible.
    [Show full text]
  • Software Libre Para Una Sociedad Libre
    Software libre para una sociedad libre Richard M. Stallman Software libre para una sociedad libre Richard M. Stallman Introducción de Lawrence Lessig Diciembre 2004 Versión 1.0 Software libre para una sociedad libre Richard M. Stallman Título original: Free Software, Free Society: Selected Essays of Richard M. Stallman (GNU Press, 2002) Primera edición en castellano (en papel): Noviembre 2004 Traducción principal: Jaron Rowan, Diego Sanz Paratcha y Laura Trinidad Edición: Traficantes de Sueños c/ Hortaleza 19, 1o Dcha. 28004 Madrid. Tlfno: +34 1 5320928 http://traficantes.net c Copyright 2004 de los artículos de este libro, Richard M. Stallman c Copyright 2004 de la Introducción, Lawrence Lessig c Copyright 2004 de la Edición, Traficantes de Sueños Se permite la copia, ya sea de uno o más artículos completos de esta obra o del conjunto de la edición, en cualquier formato, mecánico o digital, siempre y cuando no se modifique el contenido de los textos, se respete su autoría y esta nota se mantenga. ISBN: 84-933555-1-8 Depósito Legal: M-44298-2004 Edición digital a cargo de: Miquel Vidal <[email protected]>. Esta edición electrónica se ha realizado íntegramente con software libre, mediante el procesador LATEX 2ε, GNU Emacs y AUCTEX. 3 Traficantes de Sueños Traficantes de Sueños no es una casa editorial, ni siquiera una editorial independiente que contempla la publicación de una colección variable de textos críticos. Es, por el contrario, un proyecto, en el sentido estricto de «apuesta», que se dirige a cartografíar las líneas constituyentes de otros órdenes de vida. La construcción teórica y práctica de la caja de herramientas que, con palabras propias, puede componer el ciclo de luchas de las próximas décadas.
    [Show full text]
  • SWIG and Ruby
    SWIG and Ruby David Grayson Las Vegas Ruby Meetup 2014-09-10 SWIG ● SWIG stands for: Simplified Wrapper and Interface Generator ● SWIG helps you access C or C++ code from 22 different languages, including Ruby SWIG inputs and outputs Ruby C extension SWIG interface file (.i) source (.c or .cxx) Simple C++ example libdavid.h: libdavid.i #include <stdio.h> %module "david" class David %{ { #include <libdavid.h> public: %} David(int x) { class David this->x = x; { } public: David(int x); void announce() void announce(); { int x; }; printf("David %d\n", x); } int x; }; Compiling Simple C++ example extconf.rb require 'mkmf' system('swig -c++ -ruby libdavid.i') or abort create_makefile('david') Commands to run: $ ruby extconf.rb # create libdavid_wrap.cxx and Makefile $ make # compile david.so $ irb -r./david # try it out irb(main):001:0> d = David::David.new(4) => #<David::David:0x007f40090a5280 @__swigtype__="_p_David"> irb(main):002:0> d.announce David 4 => nil (This example worked for me with SWIG 3.0.2 and Ruby 2.1.2.) That example was pretty simple ● All code was in a .h file ● No external libraries ● Simple data types ● No consideration of deployment ...but SWIG has tons of features C: C++: ● All ISO C datatypes ● All C++ datatypes ● Global functions ● References ● Global variables, constants ● Pointers to members ● Structures and unions ● Classes ● Pointers ● (Multiple) inheritance ● (Multidimensional) arrays ● Overloaded functions ● Pointers to functions ● Overloaded methods ● Variable length arguments ● Overloaded operators ● Typedefs ● Static members ● Enums ● Namespaces ● Templates ● Nested classes ... SWIG Typemaps ● Define custom ways to map between scripting- language types and C++ types. ● Can be used to add and remove parameters from of exposed functions.
    [Show full text]
  • Internet of Things Spectrum Monitoring and Localization
    MQP 2A18 Internet of Things Spectrum Monitoring and Localization A Major Qualifying Project Submitted to the Faculty of WORCESTER POLYTECHNIC INSTITUTE In partial fulfillment of the requirements for the Degree of Bachelor of Science By: _________________________________ Lauren Getz _________________________________ William Schwartz _________________________________ Katherine Smith Project Advisors: ____________________________________________ Professor Stephen J. Bitar, Electrical & Computer Engineering- Advisor-of-Record ____________________________________________ Professor Michael J. Ciaraldi, Computer Science -Co-Advisor ____________________________________________ Professor Alexander M. Wyglinski, Electrical & Computer Engineering- Co-Advisor Abstract A system which localizes indoor sub-1GHz transmission signals provides a low cost and effective alternative to traditional signal sensing and localization. The system uses a pre-existing WiFi network, PlutoSDRs, and a web server to visualize the estimated location of the transmitted signals. The system achieved 2.5-meter accuracy under ideal conditions satisfying the goal of 3- meter accuracy set forth by the team. i Acknowledgements We would like to thank our advisors, Stephen Bitar, Michael Ciaraldi, and Alex Wyglinski for their mentorship throughout the duration of this project. ii Executive Summary Implementing localization with SDR devices is more cost effective and more accurate than other spectrum sensing products currently on the market. With the development of Internet of Things (IoT), many smart devices are increasingly using wireless communication, making localization of these devices an important security measure. Using the PlutoSDR, signals were effectively localized within 3-meter accuracy on the 900MHz band. Problem Statement IoT devices can pose a threat to a secure network. Since there are a lot of known IoT vulnerabilities [1], many malicious actors will target them in order to gain access to an otherwise secure network.
    [Show full text]
  • PHP Beyond the Web Shell Scripts, Desktop Software, System Daemons and More
    PHP Beyond the web Shell scripts, desktop software, system daemons and more Rob Aley This book is for sale at http://leanpub.com/php This version was published on 2013-11-25 This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do. ©2012 - 2013 Rob Aley Tweet This Book! Please help Rob Aley by spreading the word about this book on Twitter! The suggested hashtag for this book is #phpbeyondtheweb. Find out what other people are saying about the book by clicking on this link to search for this hashtag on Twitter: https://twitter.com/search?q=#phpbeyondtheweb Contents Welcome ............................................ i About the author ...................................... i Acknowledgements ..................................... ii 1 Introduction ........................................ 1 1.1 “Use PHP? We’re not building a website, you know!”. ............... 1 1.2 Are you new to PHP? ................................. 2 1.3 Reader prerequisites. Or, what this book isn’t .................... 3 1.4 An important note for Windows and Mac users ................... 3 1.5 About the sample code ................................ 4 1.6 External resources ................................... 4 1.7 Book formats/versions available, and access to updates ............... 5 1.8 English. The Real English. .............................. 5 2 Getting away from the Web - the basics ......................... 6 2.1 PHP without a web server .............................. 6 2.2 PHP versions - what’s yours? ............................. 7 2.3 A few good reasons NOT to do it in PHP ...................... 8 2.4 Thinking about security ...............................
    [Show full text]
  • Analytic Center Cutting Plane Method for Multiple Kernel Learning
    Ann Math Artif Intell DOI 10.1007/s10472-013-9331-4 Analytic center cutting plane method for multiple kernel learning Sharon Wulff · Cheng Soon Ong © Springer Science+Business Media Dordrecht 2013 Abstract Multiple Kernel Learning (MKL) is a popular generalization of kernel methods which allows the practitioner to optimize over convex combinations of kernels. We observe that many recent MKL solutions can be cast in the framework of oracle based optimization, and show that they vary in terms of query point generation. The popularity of such methods is because the oracle can fortuitously be implemented as a support vector machine. Motivated by the success of centering approaches in interior point methods, we propose a new approach to optimize the MKL objective based on the analytic center cutting plane method (accpm). Our experimental results show that accpm outperforms state of the art in terms of rate of convergence and robustness. Further analysis sheds some light as to why MKL may not always improve classification accuracy over naive solutions. Keywords Multiple kernel learning · accpm · Oracle methods · Machine learning Mathematics Subject Classification (2010) 68T05 1 Introduction Kernel methods, for example the support vector machine (SVM), are a class of algorithms that consider only the similarity between examples [1]. A kernel function S. Wulff Department of Computer Science, ETH, Zürich, Switzerland e-mail: [email protected] C. S. Ong (B) NICTA, The University of Melbourne, Melbourne, Australia e-mail: [email protected] S. Wulff, C.S. Ong k implicitly maps examples x to a feature space given by a feature map via the identity k(xi, x j) = (xi), (x j) .
    [Show full text]
  • Python and Epics: Channel Access Interface to Python
    Python and Epics: Channel Access Interface to Python Matthew Newville Consortium for Advanced Radiation Sciences University of Chicago October 12, 2010 http://cars9.uchicago.edu/software/python/pyepics3/ Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Python? The Standard Answers Clean Syntax Easy to learn, remember, and read High Level Language No pointers, dynamic memory, automatic memory Cross Platform code portable to Unix, Windows, Mac. Object Oriented full object model, name spaces. Also: procedural! Extensible with C, C++, Fortran, Java, .NET Many Libraries GUIs, Databases, Web, Image Processing, Array math Free Both senses of the word. No, really: completely free. Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Python? The Real Answer Scientists use Python. Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 All of these tools use the C implementation of Python. NOT Jython (Python in Java) or IronPython (Python in .NET): I am not talking about Jython. Why Do Scientists Use Python? Python is great. The tools are even better: numpy Fast arrays. matplotlib Excellent Plotting library scipy Numerical Algorithms (FFT, lapack, fitting, . ) f2py Wrapping Fortran for Python sage Symbolic math (ala Maple, Mathematica) GUI Choices Tk, wxWidgets, Qt, . Free Python is Free. All these tools are Free (BSD). Matthew Newville (CARS, Univ Chicago) Epics and Python October 12, 2010 Why Do Scientists Use Python? Python is great. The tools are even better: numpy Fast arrays. matplotlib Excellent Plotting library scipy Numerical Algorithms (FFT, lapack, fitting, . ) f2py Wrapping Fortran for Python sage Symbolic math (ala Maple, Mathematica) GUI Choices Tk, wxWidgets, Qt, .
    [Show full text]
  • Foreign Library Interface by Daniel Adler Dia Applications That Can Run on a Multitude of Plat- Forms
    30 CONTRIBUTED RESEARCH ARTICLES Foreign Library Interface by Daniel Adler dia applications that can run on a multitude of plat- forms. Abstract We present an improved Foreign Function Interface (FFI) for R to call arbitary na- tive functions without the need for C wrapper Foreign function interfaces code. Further we discuss a dynamic linkage framework for binding standard C libraries to FFIs provide the backbone of a language to inter- R across platforms using a universal type infor- face with foreign code. Depending on the design of mation format. The package rdyncall comprises this service, it can largely unburden developers from the framework and an initial repository of cross- writing additional wrapper code. In this section, we platform bindings for standard libraries such as compare the built-in R FFI with that provided by (legacy and modern) OpenGL, the family of SDL rdyncall. We use a simple example that sketches the libraries and Expat. The package enables system- different work flow paths for making an R binding to level programming using the R language; sam- a function from a foreign C library. ple applications are given in the article. We out- line the underlying automation tool-chain that extracts cross-platform bindings from C headers, FFI of base R making the repository extendable and open for Suppose that we wish to invoke the C function sqrt library developers. of the Standard C Math library. The function is de- clared as follows in C: Introduction double sqrt(double x); We present an improved Foreign Function Interface The .C function from the base R FFI offers a call (FFI) for R that significantly reduces the amount of gate to C code with very strict conversion rules, and C wrapper code needed to interface with C.
    [Show full text]
  • Dynamic Message-Oriented Middleware with Open Sound Control and Odot
    http://www.cnmat.berkeley.edu/publications/dynamic-message-oriented-middleware-open-sound-control-and-odot Dynamic Message-Oriented Middleware with Open Sound Control and Odot John MacCallum1, Rama Gottfried1, Ilya Rostovtsev1, Jean Bresson2, and Adrian Freed1 1Center for New Music and Audio Technologies, Department of Music, University of California, Berkeley, [email protected], [email protected], [email protected], [email protected] 2UMR STMS: IRCAM-CNRS-UPMC, Paris, [email protected] ABSTRACT coding, and the odot framework provides a set of tools for constructing such a layer in a dynamic and agile fashion. We present recent work on odot, a system that extends Open We begin with brief descriptions of Message-Oriented Mid- Sound Control and facilitates the rapid and dynamic con- dleware, OSC, and odot. We then discuss our ongoing work struction of Message-Oriented Middleware providing an in- to provide support for a variety of host and nested host envi- teroperability layer for communication between applications. ronments that can be made to communicate by passing OSC Unlike traditional middleware systems, odot, when embedded between them. Finally, we conclude by discussing a number in a host environment, provides a node where computation of examples and future work. can take place, allowing middleware to take shape dynami- cally as the needs of the system develop. 2. OPEN SOUND CONTROL AND ODOT 2.1 Open Sound Control (OSC) 1. INTRODUCTION Open Sound Control[1][2][3] is a popular encoding in the In the course of a complex design project we often encounter music and media/arts programming communities for moving the need to use multiple applications to satisfy a diverse set data between sensors and actuators, as well as processes and of requirements.
    [Show full text]
  • Programovacı Jazyky Pro Vy´Uku Programova´Nı Na
    MASARYKOVA UNIVERZITA }w¡¢£¤¥¦§¨ FAKULTA INFORMATIKY !"#$%&'()+,-./012345<yA| Programovacı´jazyky pro vy´uku programova´nı´na SSˇ DIPLOMOVA´ PRA´ CE Bc. Luka´sˇRy´dlo Brno, 2012 Prohla´sˇenı´ Prohlasˇuji, zˇe tato diplomova´pra´ce je my´m pu˚vodnı´m autorsky´m dı´lem, ktere´ jsem vypracoval samostatneˇ. Vsˇechny zdroje, prameny a literaturu, ktere´jsem prˇi vypracova´nı´pouzˇı´val nebo z nich cˇerpal, v pra´ci rˇa´dneˇcituji s uvedenı´m u´plne´ho odkazu na prˇı´slusˇny´zdroj. Vedoucı´pra´ce: doc. RNDr. Toma´sˇPitner, Ph.D. iii Podeˇkova´nı´ Ra´d bych podeˇkoval vedoucı´mu sve´pra´ce, doc. RNDr. Toma´sˇi Pitnerovi, Ph.D. za ochotu ve´st me´te´ma, nevsˇednı´vstrˇı´cnost a trpeˇlivost i konkre´tnı´tipy. v Abstrakt Pra´ce prˇina´sˇı´zhodnocenı´ru˚zny´ch programovacı´ch jazyku˚, metodik a prostrˇedı´ pro potrˇeby vy´uky na strˇednı´ch sˇkola´ch. V u´vodnı´kapitole jsou popsane´teoreticke´ koncepty, formy vy´uky, analy´za metodik v oblasti vy´uky programova´nı´, vhodnost jednotlivy´ch paradigmat. Druha´kapitola prˇina´sˇı´prˇehled za´kladnı´ch metod graficke´ho popisu algoritmu, jejich vhodnost a vyuzˇitelnost prˇi vy´uce. Trˇetı´kapitola zacˇı´na´na´vrhem metodiky hodnocenı´programovacı´ch jazyku˚pro potrˇeby vy´uky a jejich prˇehledem. Dalsˇı´ka- pitola hodnotı´pro zmeˇnu ru˚zna´vy´vojova´prostrˇedı´, at’uzˇpouzˇı´vana´v beˇzˇne´praxi nebo urcˇena´prˇı´mo pro vy´uku. Za´veˇr pra´ce je veˇnova´n vy´ukovy´m materia´lu˚m pro semina´rˇz programova´nı´na gymna´ziu v jazyce Java metodou objects first, resp.
    [Show full text]