aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_main.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-09 09:44:36 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commit94cde130ca78d6ca1b5f815180ccdd363b234407 (patch)
treee7443307dd30847d4d6c7bffad99c8a2023b8b7a /src/pcu_main.cpp
parente4bcb62dbf89bf882805e3824251a3013f3eecd7 (diff)
ms: Add UL CS selection based on L1 link quality
Currently the UL CS values are set to the corresponding DL CS value, eventually limited by a maximum value. This approach does not reflect the general situation of the RF link between ME and BTS, which is rather asymmetric e.g. due to a lower degree of TX efficiency of the built-in antenna. This means, that UL and DL CS control should be decoupled for better results. This commit adds automatic UL CS selection based on the link quality measurement parameter. Each coding scheme is mapped to a link quality range. If the link quality value leaves that range, the current UL CS value is increased/decreased accordingly. This value will be copied when the next PACKET_UPLINK_ACK_NACK or PACKET_UPLINK_ASSIGMENT is sent to the MS. The following VTY command will be added to the config-pcu node: - cs link-quality-ranges cs1 <0-35> cs2 <0-35> <0-35> cs3 <0-35> <0-35> cs4 <0-35> which sets the ranges for the four coding schemes. For instance the example below reflects the current default values: cs link-quality-ranges cs1 6 cs2 5 8 cs3 7 13 cs4 12 set the following ranges, where the overlapping is used to configure a hysteresis: CS1: -inf .. 6 CS2: 5 .. 8 CS3: 7 .. 13 CS4: 12 .. inf Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_main.cpp')
-rw-r--r--src/pcu_main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index cecf786e..416e48f3 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -178,6 +178,15 @@ int main(int argc, char *argv[])
bts->cs_adj_lower_limit = 10; /* Increase CS if the error rate is below */
bts->max_cs_ul = 4;
bts->max_cs_dl = 4;
+ /* CS-1 to CS-4 */
+ bts->cs_lqual_ranges[0].low = -256;
+ bts->cs_lqual_ranges[0].high = 6;
+ bts->cs_lqual_ranges[1].low = 5;
+ bts->cs_lqual_ranges[1].high = 8;
+ bts->cs_lqual_ranges[2].low = 7;
+ bts->cs_lqual_ranges[2].high = 13;
+ bts->cs_lqual_ranges[3].low = 12;
+ bts->cs_lqual_ranges[3].high = 256;
msgb_set_talloc_ctx(tall_pcu_ctx);