Coder Social home page Coder Social logo

sinak / gr-ltetrigger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ntia/gr-ltetrigger

0.0 1.0 0.0 10.93 MB

GNU Radio out-of-tree module for triggering on LTE signal

License: GNU General Public License v3.0

CMake 56.55% C 0.69% C++ 28.75% Python 14.01%

gr-ltetrigger's Introduction

gr-ltetrigger

gr-ltetrigger is a set of utilities for sensing LTE. It is built using GNU Radio and srsLTE.

Screenshots

GRC example showing LTE downlink parameters using RTL-SDR

GRC example showing cell detection algorithm performance by SNR

Building

  1. Install SWIG, GNU Radio, GNU Radio Companion, fftw and gr-osmosdr (example assumes Ubuntu 16.04, adjust as needed)

    $ sudo apt install gnuradio-dev swig fftw-dev gr-osmosdr gnuradio-companion
  2. Build and install srsLTE. There is a naming collision between srsLTE and a requirement of GNU Radio, which we must fix before building:

    $ git clone https://github.com/srslte/srslte
    $ cd srslte
    $ grep -R -l " DEBUG(" . |xargs sed -i 's/ DEBUG(/ SRSLTE_DEBUG(/g'
    $ find -name ue_cell_search.c |xargs sed -i 's/DEBUG/SRSLTE_DEBUG/g'
    $ mkdir build; cd build
    $ cmake ../
    $ make && make test
    $ sudo make install
  3. Build and install gr-ltetrigger:

    $ git clone https://github.com/NTIA/gr-ltetrigger
    $ cd gr-ltetrigger
    $ mkdir build; cd build
    $ cmake ../
    $ make && make test
    $ sudo make install
    $ sudo ldconfig

Quick Start

$ cd gr-ltetrigger/examples
$ ./cell_search_file.py --help
linux; GNU C++ version 5.3.1 20160413; Boost_105800; UHD_003.010.git-202-g9e0861e1

usage: cell_search_file.py [-h] -s Hz [-f Hz] [--repeat] [-c N]
[--throttle Hz] [--time-out sec]
[--threshold THRESHOLD]
filename

positional arguments:
filename

optional arguments:
-h, --help            show this help message and exit
-s Hz, --sample-rate Hz
input data's sample rate [Required]
-f Hz, --frequency Hz
input data's center frequency
--repeat              loop file until cell found or cut-off reached
[default=False]
-c N, --cut-off N     stop looping after N samples [default=-1]
--throttle Hz         throttle file source to lower CPU load [default=None]
--time-out sec        max time in seconds to perform search [default=-1]
--threshold THRESHOLD
set peak to side-lobe ratio threshold [default=4]
$ ./cell_search_file.py --sample-rate 15.36M ../test_frames/lte_frame_50prb_cellid_125 --repeat --time-out 1
linux; GNU C++ version 5.3.1 20160413; Boost_105800; UHD_003.010.git-202-g9e0861e1

Using Volk machine: avx2_64_mmx
Starting cell search... done.
{'cell_id': 125L,
'cp_len': 'Normal  ',
'nof_phich_resources': '1',
'nof_prb': 50L,
'nof_tx_ports': 1L,
'phich_len': 'Normal',
'sfn_offset': 0L,
'tracking_start_time': 1464123775L}

Support

Douglas Anderson | NTIA/Institute for Telecommunication Sciences | [email protected]

Copyright NTIA/Institute for Telecommunication Sciences. Released under GPL 3 - see LICENSE.

gr-ltetrigger's People

Contributors

djanderson avatar ranganathanm avatar sinak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.