项目作者: maiconkist

项目描述 :
HyDRA source code
高级语言: Python
项目地址: git://github.com/maiconkist/gr-hydra.git
创建时间: 2016-07-21T16:21:05Z
项目社区:https://github.com/maiconkist/gr-hydra

开源协议:GNU General Public License v3.0

下载


gr-hydra

Build Status
License: GPL v3

GETTING STARTED

REQUIRED LIBS

  • build-essential
  • cmake
  • libfftw3-dev
  • uhd-host
  • libuhd-dev
  • gnuradio-dev
  • libopencv-dev
  • libzmqpp-dev
  • swig
  1. sudo apt install build-essential cmake libfftw3-dev uhd-host libuhd-dev gnuradio-dev libopencv-dev libzmqpp-dev swig

INSTALLATION

STANDARD VERSION - NO GNURADIO SUPPORT

Clone the repository and enter in the created folder (default: gr-hydra). Execute the following commands:

  1. mkdir build; cd build;
  2. cmake ../
  3. make
  4. sudo make install
  5. sudo ldconfig

WITH GNURADIO SUPPORT

First install the STANDARD VERSION. Go to gr-hydra/grc_blocks and execute the following commands:

  1. mkdir build; cd build;
  2. cmake ../
  3. make
  4. sudo make install

RUNNING THE EXAMPLES

NOMENCLATURE

For all examples we:

  • We associate a terminal ID to a all terminals open in the form T_n, where n is the terminal number. Wherewer needed we are going to refer to a specific terminal by specifying its ID.

  • refer to USRP_n as a pair of PC+USRP, where n indentifies one of the pair. Ex: USRP_1 is what you consider your 1st PC+USRP, while USRP_2 is your second. Whenever we refer to USRP_1 you execute the instructions in that machine.

EXAMPLE 1

HARDWARE REQUIREMENTS: 2x [USRP] — IDEAL: 3x [USRP]

  1. Open a terminal in USRP_1 (T1). Start the Hydra-Server flowgraph:
    1. python grc_blocks/app/hydra_gr_server_example.py
  2. Open a terminal in USRP_1 (T2). Start the client that request 2 end-to-end TX/RX slices:
    1. python grc_blocks/app/hydra_gr_client_2tx_2rx_pdu_gen.py
  3. Open a terminal in USRP_2 (T3). Start the flowgraph that receives the messages (PDU) transmitted in slice 1:
    1. python grc_blocks/app/usrp_vr1_pdu_gen.grc
  4. In T3 you should see the log of messages being received from USRP_1:
    1. LOG
    2. LOG
    3. LOG
    4. LOG
  5. In T2 you should see the log of messages being received from USRP_2:
    1. LOG
    2. LOG
    3. LOG
    4. LOG
  6. If you have only 2 USRP: stop the flowgraph in T3. Otherwise go to next step.
  7. Open a terminal (T4) in USRP_3 (or USRP_2 if you have only 2 USRPs). Start the flowgraph that receives the messages (PDU) transmitted in slice 2:
    1. python grc_blocks/app/usrp_vr2_pdu_gen.grc
  8. In T2 you should see the log of messages being received from USRP_3 (or USRP_2):
    1. LOG
    2. LOG
    3. LOG
    4. LOG
  9. In T4 you should see the log of messages being received from USRP_1:
    1. LOG
    2. LOG
    3. LOG
    4. LOG

EXAMPLE 2

HARDWARE REQUIREMENTS:

LICENSE

ACKNOWLEDGEMENTS

TROUBLESHOOTING