Files

copied
Last update 2 years 3 months by Gianpaolo Macario
Filesdocssource
..
LPC43XX_Debugging.rst
LPC43XX_SGPIO_Configuration.rst
conf.py
enclosure_options.rst
expansion_interface.rst
external_clock_interface.rst
faq.rst
firmware_development_setup.rst
getting_help.rst
getting_started_hackrf_gnuradio.rst
hackrf_one.rst
hackrf_projects_mentions.rst
hackrf_sweep.rst
hackrfs_buttons.rst
hardware_components.rst
hardware_triggering.rst
index.rst
installing_hackrf_software.rst
jawbreaker.rst
libhackrf_api.rst
list_of_hardware_revisions.rst
opera_cake.rst
opera_cake_board_addressing.rst
opera_cake_faq.rst
opera_cake_hardware.rst
opera_cake_modes_of_operation.rst
opera_cake_port_configuration.rst
rf_shield_installation.rst
software_support.rst
tips_tricks.rst
troubleshooting.rst
updating_firmware.rst
getting_started_hackrf_gnuradio.rst
================================================ Getting Started with HackRF and GNU Radio ================================================ We recommend getting started by watching the `Software Defined Radio with HackRF <https://greatscottgadgets.com/sdr/>`__ video series. This series will introduce you to HackRF One, software including GNU Radio, and teach you the fundamentals of Digital Signal Processing (DSP) needed to take full advantage of the power of Software Defined Radio (SDR). Additional helpful information follows. .. _try_pentoo: Try Your HackRF with Pentoo Linux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The easiest way to get started with your HackRF and ensure that it works is to use Pentoo, a Linux distribution with full support for HackRF and GNU Radio. Download the latest Pentoo .iso image from one of the mirrors listed at `http://pentoo.ch/downloads/ <https://pentoo.ch/downloads>`__. Then burn the .iso to a DVD or use `UNetbootin <http://unetbootin.sourceforge.net/>`__ to install the .iso on a USB flash drive. Boot your computer using the DVD or USB flash drive to run Pentoo. Do this natively, not in a virtual machine. (Unfortunately high speed USB operation invariably fails when people try to run HackRF from a virtual machine.) Once Pentoo is running, you can immediately use it to :ref:`update firmware <updating_firmware>` on your HackRF or use other HackRF command line tools. For a walkthrough, watch `SDR with HackRF, Lesson 5: HackRF One <http://greatscottgadgets.com/sdr/5/>`__. To verify that your HackRF is detected, type ``hackrf_info`` at the command line. It should produce a few lines of output including "Found HackRF board." The 3V3, 1V8, RF, and USB LEDs should all be illuminated and are various colors. You can type ``startx`` at the command line to launch a desktop environment. Accept the "default config" in the first dialog box. The desktop environment is useful for GNU Radio Companion and other graphical applications but is not required for basic operations such as firmware updates. Now you can use programs such as gnuradio-companion or gqrx to start experimenting with your HackRF. Try the Examples below. If you are new to GNU Radio, an excellent place to start is with the `SDR with HackRF <http://greatscottgadgets.com/sdr/>`__ video series or with the `GNU Radio guided tutorials <https://wiki.gnuradio.org/index.php/Tutorials>`__. **Alternative: GNU Radio Live SDR Environment** The `GNU Radio Live SDR Environment <https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment>`__ is another nice bootable Linux .iso with support for HackRF and, of course, GNU Radio. Software Setup ~~~~~~~~~~~~~~ As mentioned above, the best way to get started with HackRF is to use Pentoo Linux. Eventually you may want to install software to use HackRF with your favorite operating system. If your package manager includes the most recent release of libhackrf and gr-osmosdr, then use it to install those packages in addition to GNU Radio. Otherwise, the recommended way to install these tools is by using `PyBOMBS <https://github.com/gnuradio/pybombs>`__. See the :ref:`Operating System Tips <operating_system_tips>` page for information on setting up HackRF software on particular Operating Systems and Linux distributions. If you have any trouble, make sure that things work when booted to Pentoo. This will allow you to easily determine if your problem is being caused by hardware or software, and it will give you a way to see how the software is supposed to function. Examples ~~~~~~~~ A great way to get started with HackRF is the `SDR with HackRF <http://greatscottgadgets.com/sdr/>`__ video series. Additional examples follow: Testing the HackRF #. Plug in the HackRF #. run the hackrf_info command ``$ hackrf_info`` If everything is OK, you should see something similar to the following: .. code-block:: sh hackrf_info version: 2017.02.1 libhackrf version: 2017.02.1 (0.5) Found HackRF Index: 0 Serial number: 0000000000000000################ Board ID Number: 2 (HackRF One) Firmware Version: 2017.02.1 (API:1.02) Part ID Number: 0x######## 0x######## **FM Radio Example** This Example was derived from the following works: * `RTL-SDR FM radio receiver with GNU Radio Companion <http://www.instructables.com/id/RTL-SDR-FM-radio-receiver-with-GNU-Radio-Companion/>`__ * `How To Build an FM Receiver with the USRP in Less Than 10 Minutes <https://www.youtube.com/watch?v=KWeY2yqwVA0>`__ #. Download the FM Radio Receiver python file `here <https://raw.githubusercontent.com/rrobotics/hackrf-tests/master/fm_radio/fm_radio_rx.py>`__ #. Run the file ``$ python ./fm_radio_rx.py`` #. You can find the GNU Radio Companion source file `here <https://raw.githubusercontent.com/rrobotics/hackrf-tests/master/fm_radio/fm_radio_rx.grc>`__
Report a bug