Skip to content

mubaarik/towers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this repository

This repository contains the python scripts and other files for collecting spectrum data with the USRP N200 device. For instructions concerning running the scripts please keep reading.

Running the commands

Check USRP connection

Before you run the scripts, please make sure that the device is connected via ethernet or USB3 port, with ethernet to USB adapter. You will need to specify the device ip address to run the scripts.

To assign an ip address to the device please run the following command.

sudo ifconfig <interface> <ip address> netmask <net mask>

Following is an example using the recommended configurations.

sudo ifconfig eth0 192.168.10.1 netmask 255.255.255.0 (recommended method)

for more informations regarding the USRP networking configuration, please visit the USRP hardware manual.

Run the data collection scripts

To run the scripts please use the following command. The command expects properly installed scripts.

usrp_rx_command <optional arguments>

OPtional Arguments

The following are the list of the most important arguments you can specify for a desired configuration with a fairly detailed discription of their intended influence.

  1. -a, --args
  • type: string
  • description: specifies the UHD device address.
  • expected format: -a "addr=" or --args "addr=
  • example: -a "addr=192.168.10.1"
  • defualt: 192.168.10.2
  1. -r, --samp-rate
  • type:float
  • Description: The device sample rate (bandwidth) in samples/second
  • expected format: -r --samp-rate= or --samp-rate . -examples: The following are equivalent: -a 20000000, -a 20M, -a 20e10, --samp-rate=20M, --samp-rate 20M
  • default: 10e6
  1. -z,--fft-size
  • type:int
  • Description: The number of FFT bins or fft resolution, expected to be power of 2.
  • expected format: -z --fft-size= or --fftt-size .
  • examples: --fft-size , --fft-size=, -z . should be power of 2 for better performance.
  • default: 4096
  1. -f, --freq,
  • type: float
  • Description: Center freq of the samples.
  • expected format: -f , --freq=
  • examples: -f 850M
  • default: 850M

5.-g, --gain

  • type: float
  • Description: Gain of the device in dB(default is midpoint)
  • expected format: -g , --gain=, or --gain
  • examples: -g 25
  • default: 20
  1. --num_ffts
  • type: int
  • Description: Number of ffts to collect at current center frequency.
  • expected format: --num_ffts= or --num_ffts
  • examples: --num_ffts=8
  • default: 8 The above parameters are the most the important and relevant arguments but there are many more commands you could specify. To see more detailed list of the optional arguments run usrp_rx_commannds --help.

This program uses the argparser module, for better understanding of the command line argument specifications please see. Thank you.

Rerefence

The above command runs towers/towers/uhd_scripts/usrp_commands.sh, which runs towers/towers/uhd_scripts/usrp_fft.py and towers/towers/uhd_scripts/file_processing.py as two separate processes. The following two sections.

Collecting the FFT Samples
Processing the FFT samples

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published