Commit Graph

34 Commits

Author SHA1 Message Date
Vasil Velichkov f6314031e7 Python 3 compatibility changes in fn_time.py
- Use range instead of xrange as it has been removed
- Use integer division operator (//)
- Import uniform and fn_time_delta_cpp only when started as a script
- Remove the unused imports

Change-Id: I268e0aec8fb8e6d490bfb8b0e9e6d169a9f6c352
2021-05-03 07:14:00 +02:00
Vasil Velichkov 46c90bec99 Various python3 related changes
- Use relative import for grgsm's modules
- Convert map to list
- Remove the hier_block.py workaround as as gnuradio 3.7 is no longer
  supported in this branch

Change-Id: I5ca8fd340823996e8c444aaf18ddacd85c92ab1c
2021-05-03 07:14:00 +02:00
Vasil Velichkov 1789ae28ee GNU Radio 3.8 support
https://wiki.gnuradio.org/index.php/GNU_Radio_3.8_OOT_Module_Porting_Guide

Change-Id: I23dd638c8c48ed0a4b50559ce33fbd5e60b7dcbc
2021-05-03 07:14:00 +02:00
Vasil Velichkov 54580d148d Filter out SoapyAudio devices
When gr-osmosdr is compiled with SoapySDR support and SoapyAudio is
installed the audio device is picked as a first choice when detecting
devices but grgsm tools are not able to work with audio devices. So in
such cases the user has to always specify the correct SDR device in the
args parameter which is a bit inconvenient.

When args is not specified call osmosdr.device_find to get all devices
and filter out unspported ones like SoapyAudio devices. When args is
specifed just try to create osmosdr.source with whatever value has been
specified.

Add -l and --list-devices command line option that prints information
about all detected devices.

Example commands:
  grgsm_capture --list-devices
  grgsm_capture --list-devices --args=nofake
  grgsm_capture --args=uhd,type=b210 -a 111 capture.cfile
  grgsm_livemon --args=rtl
  grgsm_livemon --args=uhd,type=b210

Change-Id: Ib84081041ca6c2bc18b9da0c32bac9d3ecef65ca
2019-05-03 00:20:34 +03:00
Vadim Yanitskiy 0aafe2856d Implement the 'burst_to_fn_time' block in C++ 2017-12-04 01:48:43 +07:00
Piotr Krysik 8d7b64d109 Added Python version of bursts to fn_time converter 2017-11-08 14:34:02 +01:00
Piotr Krysik 6e41d06bbf Corrections in fn_time 2017-11-03 09:56:49 +01:00
Piotr Krysik 1dd2afe367 Changed fn_time to use time_spec_t copied from libUHD 2017-10-31 12:57:26 +01:00
Piotr Krysik ffd09acd8d Corrections in fn_time conversions 2017-10-16 15:47:38 +02:00
Piotr Krysik eb62dc1735 Changes in fn_time 2017-09-27 21:59:19 +02:00
Piotr Krysik d890cd3b36 Added frame number operations 2017-09-19 07:52:34 +02:00
Piotr Krysik 9b5617a3ef Corrections in the buildsystem 2017-09-18 21:36:06 +02:00
Piotr Krysik 0945cc5512 Changed organization of cmake files
Cmake files were added into subdirectories.
2017-09-13 09:17:50 +02:00
Piotr Krysik 3dfa11b89e Making arfcn<->freq conversions more robust and uptading apps depending on it 2017-09-06 17:48:38 +02:00
Piotr Krysik aed9f5cc80 Fixed problems resulting from Nones returned when no such frequency or ARFCN exists. 2017-08-26 11:25:53 +02:00
Piotr Krysik a6268a5bc1 Big update of copyright statements so they can be automatically processed to produce debian/copyright file 2017-08-23 16:02:19 +02:00
Piotr Krysik ea34c017b5 Added license statements where it was missing 2016-10-02 18:53:43 +02:00
Roman Khassraf fb772f8228 #154: fix for arfcn conversion 2016-09-23 07:23:05 +02:00
Piotr Krysik 7973538ed2 Changing ppm parameter in clock offset corrector now takes effect on the fractional resampler 2016-07-20 21:39:40 +02:00
Piotr Krysik 74c4ca9627 Removed blocks related to old frequency correction loop (controlled const source and old clock offset corrector) 2016-07-18 10:23:24 +02:00
Piotr Krysik 83afe7390f Changed clock offset controller and company in order to remove from the gsm_input one of the resamplers. 2016-07-17 22:48:35 +02:00
Piotr Krysik d1ca389dbf Corrections to clock offset corrector that uses tags 2016-07-17 11:33:50 +02:00
Piotr Krysik 0982673af1 New clock offset corrector and clock offset control 2016-07-15 13:14:24 +02:00
Your Name 799133a2e6 Changed clock_offset_corrector in order to address the problem #152 - this is not ideal solution yet, as it involves removing of sampling frequency offset correction. 2016-06-08 22:30:52 +02:00
Piotr Krysik 8715da0893 Fixed all hierarchical blocks in the project
by adding a hier_block class that solves incompatibility between GNU Radio >=3.7.9 and <=3.7.8
and inheriting all hierarchical blocks from it.
This commit fixes #135
2016-01-06 22:21:09 +01:00
Piotr Krysik e3b652ddf3 Another approach to fix for problem #135
with message inputs of hierarhical blocks, caused by incompatibility introduced in GNU Radio 3.7.9.
2016-01-02 09:14:27 +01:00
Piotr Krysik 3a527f8e58 Fix for problem #135 with hierarhical blocks due to incompatibility introduced in GNU Radio 3.7.9 2016-01-01 16:01:26 +01:00
Roman Khassraf 5ec7987f8a Added functions to get first and last arfcn of a band 2015-09-26 08:29:13 +02:00
Roman Khassraf e7e75f0b84 Replaced band config dictionary by an OrderedDict 2015-08-22 19:26:12 +02:00
Roman Khassraf 91448618d4 Added arfcn functions 2015-08-21 11:14:51 +02:00
ptrkrysik 3be74a732b Changed grgsm install directories and prefixes from "gsm" to "grgsm". The old prefix caused conflicts with libraries already available. 2014-12-13 10:11:00 +01:00
ptrkrysik 381253a1d2 Changes in clock offset corrector and gsm_input - the previous version wasn't working well when samp_rate_in was different from samp_rate_out.
Now resampling is done outside of clock offset corrector.
2014-11-19 11:30:53 +01:00
ptrkrysik e518bbfedd Added capability to receive multiple channels of a single BTS to the receiver. It is now possible to receive bursts on channels for which frequency hopping was used. Changed examples to work without hierarhical GSM Receiver block. 2014-11-06 14:50:59 +01:00
Piotr K 66bb3cdc31 Changed directory structure.
Corrected clock_offset_corrector (for some streange and yet unknown reason fractional resampler eats strem tags for some values of sps).
(this commit may contain some changes that are not described)
2014-08-13 19:04:57 +02:00