Commit Graph

29 Commits

Author SHA1 Message Date
Vasil Velichkov dfcf7fd5a3 Print the error message on stderr in a python2 compatible way
Change-Id: Iaea1510b02a2df924ef9777d107d22c45cb37d12
2021-05-03 07:14:00 +02:00
Vasil Velichkov 9feb7da807 grgsm_decode: Print frequency or ARFCN message on stderr
For some yet unknown reasons in travis on Debian testing and Kali rolling
the message gets printed after the burst and decode.sh and decrypt.sh
tests fails because of this.

Instead of filtering this messages in the tests I think it is better
such messages to be printed on the standard error output

Change-Id: Ib18be898cac74769cabf1b748e40e21d23f08e98
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 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 7f259fdb68 Add TCH/H decoder block with AMR multirate support
Add new TCHH channel mode
Add two new optional arguments

    -m CHAN_MODE, --mode=CHAN_MODE
                        Channel mode. Valid options are 'BCCH' (Non-combined
                        C0), 'BCCH_SDCCH4'(Combined C0), 'SDCCH8' (Stand-alone
                        control channel) 'TCHF' (Traffic Channel, Full rate),
                        'TCHH' (Traffic Channel, Half rate)

    --sub-channel=TCH_H_CHANNEL
                        TCH/H sub-channel. [default=0]
    --multi-rate=MULTI_RATE
                        The MultiRrate configuration element from the
                        Assigment Command message. Example: 28111a40. See 3GPP
                        TS 44.018 - 10.5.2.21aa MultiRate configuration

Example:
    grgsm_decode -m TCHH --sub-channel 0 --multi-rate 2811 -o voice.amr ...
2018-12-29 00:52:05 +01:00
Piotr Krysik fcb45b021a Remove 'band' option from grgsm_decode altogether 2017-09-11 10:38:40 +02:00
leommxj caa7741d09 delete some useless code after the change of is_valid_arfcn(...) and arfcn2downlink(...) 2017-09-11 10:38:40 +02:00
leommxj ece9fd7f39 fix bug after commit 3dfa11b89e .change arfcn2downlink(a,b) to one argument in grgsm_decode and grgsm_capture and grgsm_channelize 2017-09-11 10:38:40 +02:00
leommxj 1a35cb973f fix bug after commit 3dfa11b89e .change is_valid_arfcn grgsm(a,b) to one argument in grgsm_decode and grgsm_capture 2017-09-11 10:38:40 +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 2770fc485c Added missing default value of voice-boundary parameter. Fixes #206 2017-07-23 22:05:10 +02:00
Roman Khassraf c0addfba83 #193: Adding option for enabling voice boundary detection in grgsm_decode 2016-09-27 20:11:42 +02:00
Piotr Krysik 2779172936 Updated TCH/F decoding so it writes data to a file. Flowgraph execution never ends. 2016-07-20 08:12:23 +02:00
Piotr Krysik 231aca74c2 Corrected the decoding app so it's possible to run it without frequency correction loop 2016-07-17 10:44:43 +02:00
Piotr Krysik 196982b6ce Removed old icmp packages preventing code 2016-07-17 10:43:00 +02:00
Piotr Krysik 388bc0d1cf Corrections of parameters of clock_offset_control block 2016-07-15 14:17:05 +02:00
Piotr Krysik 19028868cc Merge branch 'development' of https://github.com/ptrkrysik/gr-gsm into development 2016-07-15 13:21:44 +02:00
Piotr Krysik 6577ec215e Update applications to work with new gsm_input block 2016-07-15 13:21:09 +02:00
Piotr Krysik bd8a716369 Commented out old method of suppressing ICMP messages 2016-06-09 14:43:09 +02:00
Piotr Krysik 9d9f74edd4 Corrected order of creating socket_pdu* objects 2016-06-09 14:13:50 +02:00
Piotr Krysik beb36f4a19 Added socket_pdu server - closes issue #194 2016-06-09 13:58:52 +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 cdff492ff7 Merge branch 'master' into development 2016-05-14 07:15:15 +02:00
Piotr Krysik 7685bc0501 Change to print only content of bursts without tails and training sequences 2016-04-29 12:09:01 +02:00
Piotr Krysik 0679ceb0d1 Added option to print raw, unencrypted bursts - with dummy bursts filtered out. 2016-04-29 11:16:22 +02:00
Piotr Krysik 13d9e7a334 Corrected the example in grgsm_channelize, changed default sample rates in applications. 2016-04-24 15:23:15 +02:00
Piotr Krysik 8040e01751 Changes in grgsm_decode in order to enable working without frequency correction. 2016-03-08 21:42:11 +01:00
Piotr Krysik 72a1617854 Removed last parameter from socket_pdu in order to make grgsm_decode more compatible with GNU Radio 3.7.3 2016-02-22 14:30:02 +01:00
Piotr Krysik 332e0b5c6b Changes of names of applications
-removed 'airprobe' from names completely,
-removed '.py' from names,
-moved programs that don't use gr-gsm blocks to the 'apps/helpers' directory.
2016-02-13 18:37:32 +01:00