osmo-bts/src
Vadim Yanitskiy 284f16e7d7 measurement: fix matching of SUB frames by TDMA FN
3GPP TS 45.008, section 8.3 defines active TDMA frame subsets for
TCH channels, which shall always be transmitted even during the
silence periods in DTX mode of operation.  Each frame number
listed in this section corresponds to a single burst.

The Uplink measurements always contain TDMA FN of the *first* burst
of a block, so it does not make sense to match the given FN against
all FNs in the respective subset.  Instead, we should match only
specific FNs in accordance with the block mapping rules defined in
3GPP TS 45.002, section 7, table 1.

In the active subset for TCH/F there is only one *complete* block
starting at FN=52.  Incomplete blocks {52, 53, 54, 55} and {56, 57,
58, 59} contain only 50% of the useful bits (partial SID) and thus
~50% BER, so we don't treat them as SUB.

In the active subsets for TCH/H there are two *complete* blocks
for each sub-slot.  Their respective first FNs can be efficiently
defined in a lookup table (see ts45008_dtx_tchh_fn_map[]).  Note
that we can use a single lookup table for both sub-slots of TCH/H
because their TDMA FNs do not overlap.

This patch fixes unexpected SUB-RxQual values > 0 on TCH channels
with DTXu enabled and other than AMR (HR, FR, EFR) codec in use.

Change-Id: I8cc3a755a8ad4dc564439aab2298c1e97ac0592d
Related: SYS#5853
2022-05-10 16:49:16 +03:00
..
common measurement: fix matching of SUB frames by TDMA FN 2022-05-10 16:49:16 +03:00
osmo-bts-lc15 src/common/bts.c: set BTS_FEAT_PAGING_COORDINATION 2022-04-25 11:27:54 +02:00
osmo-bts-oc2g src/common/bts.c: set BTS_FEAT_PAGING_COORDINATION 2022-04-25 11:27:54 +02:00
osmo-bts-octphy model_init: order features alphabetically, part 2 2022-04-25 11:14:30 +02:00
osmo-bts-omldummy model_init: order features alphabetically, part 2 2022-04-25 11:14:30 +02:00
osmo-bts-sysmo src/common/bts.c: set BTS_FEAT_PAGING_COORDINATION 2022-04-25 11:27:54 +02:00
osmo-bts-trx osmo-bts-trx: drop Uplink loss detection from Downlink path 2022-05-06 12:55:18 +00:00
osmo-bts-virtual osmo-bts-trx: drop Uplink loss detection from Downlink path 2022-05-06 12:55:18 +00:00
Makefile.am osmo-bts-lc15: use consistent name for containing directory 2020-11-05 03:39:50 +07:00