Commit Graph

908 Commits

Author SHA1 Message Date
Vadim Yanitskiy 89aa469cf3 python/trx: WIP: implement transmission chain 2017-11-29 23:11:14 +01:00
Vadim Yanitskiy 0e7c9a80ad apps/grgsm_trx: fix antenna selection options
Both '--rx-antenna' and '--tx-antenna' require an argument.
2017-11-29 23:11:14 +01:00
Vadim Yanitskiy 2ce294219c txtime_setter: clean up and simplify source code
This change formats the block implementation source code
according to a mix of GNURadio and the Kernel coding styles.

The main changes are:

  - Limit line length to 80 columns
  - Preffer the opposite conditions
  - Do not use curly braces for single line loops / conditions

For more details, see:

https://wiki.gnuradio.org/index.php/Coding_guide_impl
https://www.kernel.org/doc/html/v4.10/process/coding-style.html
2017-11-29 23:11:14 +01:00
Vadim Yanitskiy 70bec2039a preprocess_tx_burst: clean up and simplify source code
This change formats the block implementation source code
according to a mix of GNURadio and the Kernel coding styles.

The main changes are:

  - Limit line length to 80 columns
  - Preffer the opposite conditions
  - Do not use curly braces for single line loops / conditions

For more details, see:

https://wiki.gnuradio.org/index.php/Coding_guide_impl
https://www.kernel.org/doc/html/v4.10/process/coding-style.html
2017-11-29 23:11:14 +01:00
Vadim Yanitskiy 4f4e578ffd include/grgsm: remove forgotten 'trx_interface' dir
This directory was accidentally kept here during the
'TRX Burst Interface' migration into 'misc_utils'.
2017-11-29 23:11:14 +01:00
Piotr Krysik 800ac63109 Corrected wrong lenght of the Access Burst 2017-11-29 16:39:41 +01:00
Piotr Krysik 2344483869 Added a block for generating Access Bursts 2017-11-29 16:39:22 +01:00
Piotr Krysik 2f0406b76d Updates .gitignore and examples pointer 2017-11-11 11:22:23 +01:00
Piotr Krysik ba8b0a95d3 Fix: protections in txtime_setter against late bursts and bursts in too distant future.
Fixing bursts in too distant future is a bit problematic and better way than just looking at tx_time difference from current time would be desirable.
This way of fixing that issue can still cause that tx part will do nothing for about 10 seconds (after switching frequency from a BTS1 (with fn1) to BTS2 (with fn2) when fn1>fn2).
2017-11-11 11:19:26 +01:00
Piotr Krysik f849fafd92 Changed input and output name for burst_type_filter 2017-11-11 11:14:26 +01:00
Piotr Krysik 2c004741d6 Corrected output name for burst_to_fn_time 2017-11-11 11:13:52 +01:00
Piotr Krysik 6ed10a1dfc Missing __init__.py part for burst_to_fn_time 2017-11-11 11:12:36 +01:00
Piotr Krysik bfb47dca69 Fix: don't send SCH burst to the output if it wasn't correctly decoded
This had very bad effect of incorrect fn_time values coming into txtime_setter block.
They, subsequently, might have caused busts with tx_time values in distant future. The result on uhd sink is deadlock.
2017-11-11 11:12:02 +01:00
Piotr Krysik d8617a9064 Updated examples pointer 2017-11-08 14:35:14 +01:00
Piotr Krysik 1243ffaf3e Changed name of of preprocess_tx_burst xml file, and removed 'executable' bit from two xml files 2017-11-08 14:35:03 +01:00
Piotr Krysik 8d7b64d109 Added Python version of bursts to fn_time converter 2017-11-08 14:34:02 +01:00
Piotr Krysik 52f7416b3f Changed name of trx_interface directory to trx 2017-11-07 19:34:45 +01:00
Piotr Krysik ccb5e689e1 Added tx bursts preprocessing block 2017-11-07 19:34:22 +01:00
Piotr Krysik d7efc05b79 Moved gsm_constants file to include directory 2017-11-07 19:33:22 +01:00
Piotr Krysik acc365f2f1 Added C++ version of burst type filter 2017-11-07 19:31:42 +01:00
Vadim Yanitskiy 01c6afd495 trx/radio_if.py: fix RX / TX gain control 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy da5e21f123 trx/radio_if.py: clean up the stored fields
Only the fields that are going to be changed / used at runtime
should be stored in the radio_if instance.
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 9baaec24c6 trx/radio_if.py: get rid of useless getters / setters
We are only going to change the RF frequency and gain at runtime.
Other parameters (like sample rate) should remain unchanged.
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 790b6f0cc1 apps/grgsm_trx: add cmd line arguments for TX chain 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 5d68aa5620 apps/grgsm_trx: get rid of unused subdev_spec
This could be specified via the device_args,
for example: "subdev=B:0".
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 962e2d83bb misc_utils/trx_burst_if: get rid of built-in timeslot filter
Since the API of 'Timeslot Filter' block was exposed, we can
get rid of built-in timeslot filter and use the proper methods.
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 8e9b3075d7 grc/gsm_trx_burst_if.xml: fix prefix of <key> value 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 1a88dec147 trx/radio_if.py: fix: use proper block name
Since the 'TRX Burst Interface' block was renamed,
the followgraph is broken. Let's fix it.
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 51a95dfd40 grc/gsm_block_tree: add forgotten gsm_trx_burst_if block 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 6bac574686 misc_utils/trx_burst_if: get rid of clock interface
Clock indications are only required for BTS operation, while MS
can obtain current frame number from the messages on DATA interface.
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 25916f3908 Clean up the "TRX Burst Interface" block description 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy e601c366bd Refactor the 'TRX Burst Interface' block
The following changes were made:

  - Both implementation and headers were merged with misc_utils
  - Fixed namespace mess: was gr::grgsm, became gr::gsm
  - More accurate class name was chosen: "trx_burst_if"
2017-11-05 17:33:26 +01:00
Vadim Yanitskiy ba7ad29638 apps/grgsm_trx: import helper classes from grgsm.trx 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy eecab7eaf4 python/trx: install helper classes as a grgsm submodule 2017-11-05 17:33:26 +01:00
Vadim Yanitskiy 873e44e68d python/trx: follow GNU Radio class naming conventions 2017-11-05 17:33:26 +01:00
Piotr Krysik 52917b1034 Merge branch 'ptrkrysik/trx' of https://github.com/ptrkrysik/gr-gsm into ptrkrysik/trx 2017-11-05 12:27:22 +01:00
Piotr Krysik 264fbf69f7 Corrected namespaces from grgsm to gsm 2017-11-05 12:25:51 +01:00
Piotr Krysik 776b67f82c Missing cmakelists file for txtime_setter 2017-11-05 12:24:17 +01:00
Piotr Krysik 517464c0a9 Added txtime_setter block (a c++ version of txtime_bursts_tagger Python block) 2017-11-05 12:23:15 +01:00
Piotr Krysik 5f1185edd4 change just to invoke automatic tests on TravisCI 2017-11-03 11:27:06 +01:00
Piotr Krysik d32ba5b471 Removed unused (and problematic during SWIG) part of time_spec_t and exposed time_spec_t in the library's ABI 2017-11-03 09:58:13 +01:00
Piotr Krysik 6e41d06bbf Corrections in fn_time 2017-11-03 09:56:49 +01:00
Piotr Krysik 8926c1f621 Correction in time_spec.cc 2017-10-31 13:01:43 +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 34ce7a02f0 Added C++ version of fn_time 2017-10-31 11:30:59 +01:00
Piotr Krysik 29ec39b3bd Updating examples pointer 2017-10-31 06:31:49 +01:00
Piotr Krysik 33fbc28500 Correction of bursts tagger 2017-10-31 05:54:31 +01:00
Piotr Krysik 12dd9cba1f Updated examples pointer 2017-10-19 16:47:52 +02:00
Piotr Krysik 42b2186b17 Added timing advance and delay corerrection to txtime_burst_tagger block 2017-10-19 09:20:23 +02:00
Piotr Krysik 714cb44959 New pointer to examples 2017-10-16 15:54:13 +02:00