From 7f259fdb68025d6e7b3cfc36c3958d9c6e5f60b8 Mon Sep 17 00:00:00 2001 From: Vasil Velichkov Date: Sun, 6 May 2018 02:13:36 +0300 Subject: 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 ... --- grc/decoding/CMakeLists.txt | 4 +- grc/decoding/gsm_tch_h_decoder.xml | 92 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 grc/decoding/gsm_tch_h_decoder.xml (limited to 'grc/decoding') diff --git a/grc/decoding/CMakeLists.txt b/grc/decoding/CMakeLists.txt index 2f6eada..d488f21 100644 --- a/grc/decoding/CMakeLists.txt +++ b/grc/decoding/CMakeLists.txt @@ -19,5 +19,7 @@ install(FILES gsm_control_channels_decoder.xml - gsm_tch_f_decoder.xml DESTINATION share/gnuradio/grc/blocks + gsm_tch_f_decoder.xml + gsm_tch_h_decoder.xml + DESTINATION share/gnuradio/grc/blocks ) diff --git a/grc/decoding/gsm_tch_h_decoder.xml b/grc/decoding/gsm_tch_h_decoder.xml new file mode 100644 index 0000000..895104e --- /dev/null +++ b/grc/decoding/gsm_tch_h_decoder.xml @@ -0,0 +1,92 @@ + + + TCH/H decoder + gsm_tch_h_decoder + import grgsm + grgsm.tch_h_decoder($sub_channel, $mode, $boundary_check) + + + sub-channel number + sub_channel + 0 + int + + + + + TCH/H coding mode + mode + enum + + + + + + + + + + Voice boundary detection + boundary_check + False + bool + + + + $sub_channel() > -1 and $sub_channel() < 2 + + bursts + message + + + msgs + message + 1 + + + voice + message + 1 + + + +If "Voice boundary detection" is enabled, then only bursts are decoded as voice where + +- the framenumber is greater then the framenumber of a received "Connect" or "Connect Acknowlegde" message, and +- the framenumber is less then the framenumber of a "Release" message + + + -- cgit v1.2.3