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 ... --- lib/demapping/tch_h_chans_demapper_impl.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/demapping') diff --git a/lib/demapping/tch_h_chans_demapper_impl.cc b/lib/demapping/tch_h_chans_demapper_impl.cc index 2c3dc79..73f49e1 100644 --- a/lib/demapping/tch_h_chans_demapper_impl.cc +++ b/lib/demapping/tch_h_chans_demapper_impl.cc @@ -87,6 +87,7 @@ void tch_h_chans_demapper_impl::filter_tch_chans(pmt::pmt_t msg) memcpy(new_msg, header, sizeof(gsmtap_hdr)+BURST_SIZE); new_hdr->sub_type = (fn_mod13 == 12 ? GSMTAP_CHANNEL_ACCH : 0) | GSMTAP_CHANNEL_TCH_H; + new_hdr->sub_slot = d_tch_h_channel; pmt::pmt_t msg_binary_blob = pmt::make_blob(new_msg,sizeof(gsmtap_hdr)+BURST_SIZE); pmt::pmt_t msg_out = pmt::cons(pmt::PMT_NIL, msg_binary_blob); -- cgit v1.2.3