Commit Graph

54 Commits

Author SHA1 Message Date
Vasil Velichkov c7134fff20 Do not add python/misc_utils to PYTHONPATH when executing tests
Change-Id: Ib19a181a3fd9bb78c1d3989bad0e55433f060950
2021-05-03 07:14:00 +02:00
Vasil Velichkov 6eea94f7de Fix grcc compilation with python3 by adding local subdirs to __path__
As the directory structure in the repository is different then the one
after the package gets installed we need to add those subdirectories to
the __path__ otherwise python3 is not able to load the modules using the
relative import syntax and grcc compilation and some unit tests fail.

Mofiy __path__ only when the CMAKE_BINARY_DIR environment variable is
present.

Revert "grgsm_livemon: Set cell_allocation to [0]"

This reverts commit 013d4c258c6ad31c2581f0caa4eee3aa609fd9de.

Change-Id: I223fd6181e8e36027039301186b671712a597ff8
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 ff88ba41ec Add control channels demappers tests
3GPP TS 45.002 version 15.1.0 Release 15
Table 3 : Mapping of logical channels onto physical channels (see subclauses 6.3, 6.4, 6.5)
Table 4 : Mapping of logical channels onto physical channels (see subclauses 6.3, 6.4, 6.5)
Figure 8a: TDMA frame mapping for FCCH + SCH + BCCH + CCCH
Figure 8b: TDMA frame mapping for FCCH + SCH + BCCH + CCCH + SDCCH/4(0...3) + SACCH/4(0...3)

Five of the six tests currently fail and are marked with
@unittest.expectedFailure. Fixes in subsequent commits.

Change-Id: I33b0948832a0c2506bffd389cc134c3236c74d27
2019-07-29 21:09:07 +03:00
Vasil Velichkov c5bb436cda Fix the TCH/H decoder and demapper XML definitions
- The second argument of tch_h_decoder constructor is a string that
  accepts the value of MultiRate configuration element and not an enum
  like the tch_f_decoder decoder.
- Make the demapper's burst sink required.
- Make all parameters visible.
- Rename the TCH/H Channel parameter to Sub-channel number.
- Add the qa_tch_h_decoder test in the CMakeLists.txt
- Fix several typos

Change-Id: I92d4f49955c634df7d76f17cfb58d7106846c1bd
2019-03-19 17:36:28 +02:00
Vasil Velichkov 0ccec373b3 Add tests for the TCH/F and TCH/H Demappers 2018-12-29 00:52:05 +01:00
Vasil Velichkov 89585b374b burst_file_source: Fix reading longer bursts
- Read bursts with pmt::deserialize directly from the std::filebuf
- Remove the unused unserialized variable
- Add tests

Since df978693 when the rx_time tags are present in the incomming stream
the gsm receiver adds fm_time to the burst's PMT and the bursts that
burst file sink writes becomes longer because of the additional field.

The burst file source block was expecting all burst to be 147 bytes long
and reading files with longer bursts was failing with an unhandled exception.

terminate called after throwing an instance of 'pmt::exception'
thread[thread-per-block[5]: <block dummy_burst_filter (2)>]: pmt_cdr: wrong_type : #f
  what():  pmt::deserialize: malformed input stream, tag value = : 115

Change-Id: I989b0d6a6b214088b7880e5cbf7bb6725492dbfc
2018-09-13 09:35:28 +00:00
Piotr Krysik 8a8d41a583 Merge branch 'ptrkrysik/trx' into development 2018-04-16 22:21:29 +02:00
Vasil Velichkov bb7d94a712 Add tch_f_decoder tests 2018-04-06 15:18:26 +02: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 902f4ebaf0 Moved trx utilities from apps subdirectory - the grgsm_trx app need to be updated 2017-09-19 08:04:33 +02:00
Piotr Krysik cb04d0dd50 Merge branch 'development' into ptrkrysik/trx
# Conflicts:
#	swig/grgsm_swig.i
2017-09-19 07:58:49 +02:00
Piotr Krysik 9b5617a3ef Corrections in the buildsystem 2017-09-18 21:36:06 +02:00
Piotr Krysik 531d978480 Added cmake files for transmitter 2017-09-13 09:35:51 +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 c97a7ff8a0 Removed wideband_input_adaptor 2017-06-11 17:39:05 +02:00
Roman Khassraf fb772f8228 #154: fix for arfcn conversion 2016-09-23 07:23:05 +02:00
Piotr Krysik a3405b285d Changed path (flow_control) and name of uplink_downlink_filter to splitter 2016-08-30 21:31:24 +02:00
Piotr Krysik 2bb54c8fcd Added uplink/downlink splitter 2016-08-16 16:05:23 +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 5f480d3116 Merge branch 'packaging_piotr' into development
# Conflicts:
#	.travis.yml
#	python/CMakeLists.txt
2016-07-15 14:09:55 +02:00
Piotr Krysik a693483ee9 Removed not written tests 2016-07-15 13:46:43 +02:00
Piotr Krysik 0982673af1 New clock offset corrector and clock offset control 2016-07-15 13:14:24 +02:00
Piotr Krysik 5c7b3748b1 Corrected the tests so they can be run without installation of gr-gsm
Arfcn test had to be disabled as it still doesn't work (addition of arfcn.py's directory to the PYTHONPATH is needed).
2016-06-21 07:12:32 +02:00
Piotr Krysik c6eb3b5c6a Added msg_to_tag block - currently it does nothing 2016-05-29 13:06:39 +02:00
Piotr Krysik 773a194c32 Big change of the universal control channels demapper:
-simplification of the universal demapper,
-addition of hierarhical blocks for each of the demappers - so they also look well and readable in python,
-addition of helper script for compilation of the demappers.
2016-05-20 12:45:54 +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
rpp a49a4d2b96 Implemented multiband channelizer as gr-gsm block. 2015-10-05 09:57:03 +02:00
Roman Khassraf 91448618d4 Added arfcn functions 2015-08-21 11:14:51 +02:00
Roman Khassraf 8b64d873ca Implemented burst sdcch subslot filter. Issue #100 2015-08-06 17:30:04 +02:00
Roman Khassraf d7e3eec3ae Implemented burst timeslot filter. Issue #100 2015-08-06 11:54:22 +02:00
Roman Khassraf 98da635ccc Merged origin/flow-control-100 into dev, fixed conflicts 2015-08-05 13:02:12 +02:00
Roman Khassraf 64c74463ba Merged origin/test-utils-98 into dev, fixed conflicts 2015-08-05 12:51:33 +02:00
Roman Khassraf a1eb188b97 Implemented burst sub-slot splitter. Issue #100 2015-08-05 12:30:29 +02:00
Roman Khassraf 7cccb52ef3 Implemented dummy burst filter. Issue #100 2015-08-04 12:26:54 +02:00
Roman Khassraf 8e3b0eca89 Implemented burst framenumber filter. Issue #100 2015-08-04 11:16:04 +02:00
Roman Khassraf dbc3a50c31 Implemented burst timeslot splitter for flow control. Issue #100 2015-08-03 23:20:20 +02:00
Roman Khassraf fa92b61aec Implemented unit tests for message printer block 2015-07-29 11:34:31 +02:00
Roman Khassraf 298700dfa3 Added CMakeLists entry for qa_burst_printer 2015-07-25 15:35:58 +02:00
Roman Khassraf 9f1cfcee69 Added QA / unit testing for decryption block 2015-07-21 10:57:07 +02:00
ptrkrysik dfdf878ac2 Changes to buildsystem from libgnuradio-gsm to libgnuradio-grgsm 2015-06-27 10:43:30 +02:00
ptrkrysik f8c7e83298 Reimplemented clock_offset_control block in C++ 2015-04-04 12:28:20 +02:00
ptrkrysik 18b631eb71 Added new decryption block (be careful - untested component). Changed CMakeFiles to reflect more modular design (not finished for the lib directory) 2014-12-15 09:09:18 +01: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 dac3b2a309 Added new block which adapts stream of samples to GSM receiver's input requirements (integer multiply of 1625000/6 symbol rate, LP filtering) 2014-11-06 14:47:33 +01:00
ptrkrysik b108d6b7c7 Removed receiver_hier and wireshark_sink 2014-11-06 13:51:02 +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
piotr 1c8de50663 Changes to make clock_offset_corrector install and work on other machines 2014-08-06 16:01:40 +02:00
piotr 4089c1a7f3 Added new blocks for clock freqeuncy correction 2014-08-06 14:10:56 +02:00
piotr dda22272e7 Added new block for extracting info about base stations 2014-08-04 11:31:54 +02:00