From 579651bf300de002731dfd3bd39985c9fd15616c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 6 Dec 2014 20:30:52 +0100 Subject: power/sysmobts: Add a manual ms power level control Currently the DSP is instructed to achieve a given uplink power target but there are circumstances (e.g. EMV testing) where we need more control over it. The "manual/software/osmo" power control can only be implemented per TRX and not per lchan. Add a very very basic control that checks the MS Power used by the phone, the actual receive level and then adjust the power. The code doesn't take the history into account, if the phone can not reach the requested power level the code will be stuck (e.g. no timeout based on multiframes). It has a mode for a fixed power control but no way to set it yet. The change of the mode requires a restart of the software. --- include/osmo-bts/bts.h | 3 +++ include/osmo-bts/bts_model.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h index e4899736..bfa2dc3e 100644 --- a/include/osmo-bts/bts.h +++ b/include/osmo-bts/bts.h @@ -39,5 +39,8 @@ void load_timer_start(struct gsm_bts *bts); void bts_update_status(enum bts_global_status which, int on); +int trx_ms_pwr_ctrl_is_osmo(struct gsm_bts_trx *trx); + + #endif /* _BTS_H */ diff --git a/include/osmo-bts/bts_model.h b/include/osmo-bts/bts_model.h index 200d02d2..176b7877 100644 --- a/include/osmo-bts/bts_model.h +++ b/include/osmo-bts/bts_model.h @@ -47,5 +47,6 @@ void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx); int bts_model_oml_estab(struct gsm_bts *bts); int bts_model_change_power(struct gsm_bts_trx *trx, int p_trxout_mdBm); +int bts_model_adjst_ms_pwr(struct gsm_lchan *lchan); #endif -- cgit v1.2.3