fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bts/+/42033?usp=email )
Change subject: osmo-bts-trx: apply 'max-initial' value before POWERON
......................................................................
osmo-bts-trx: apply 'max-initial' value before POWERON
Not applying this value before powering the transceiver on results
in transmission at full Tx power for a certain amount of time before
the power ramping begins.
Change-Id: Iff03d4dcb74f67629a59c8d6f8bb60929d9f6ddd
Related: OS#6939
---
M src/osmo-bts-trx/l1_if.h
M src/osmo-bts-trx/trx_provision_fsm.c
2 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/33/42033/1
diff --git a/src/osmo-bts-trx/l1_if.h b/src/osmo-bts-trx/l1_if.h
index 0180499..7ecd33e 100644
--- a/src/osmo-bts-trx/l1_if.h
+++ b/src/osmo-bts-trx/l1_if.h
@@ -97,6 +97,8 @@
bool nomtxpower_sent;
bool nomtxpower_acked;
+ bool setpower_sent;
+
bool maxdly_valid;
int maxdly;
bool maxdly_sent;
diff --git a/src/osmo-bts-trx/trx_provision_fsm.c
b/src/osmo-bts-trx/trx_provision_fsm.c
index 4aa0783..d0fe82a 100644
--- a/src/osmo-bts-trx/trx_provision_fsm.c
+++ b/src/osmo-bts-trx/trx_provision_fsm.c
@@ -130,6 +130,8 @@
l1h->config.nomtxpower_sent = false;
l1h->config.nomtxpower_acked = false;
+ l1h->config.setpower_sent = false;
+
l1h->config.maxdly_sent = false;
l1h->config.maxdlynb_sent = false;
@@ -173,6 +175,11 @@
l1h->config.txtune_sent = true;
l1h->config.txtune_acked = false;
}
+ if (!l1h->config.setpower_sent) {
+ int initial_mdBm =
power_ramp_initial_power_mdBm(pinst->trx);
+ bts_model_change_power(pinst->trx, initial_mdBm);
+ l1h->config.setpower_sent = true;
+ }
if (l1h->config.txtune_acked) {
/* After TXTUNE is sent to TRX, get the tx nominal power
* (which may vary precisly on band/arfcn. Avoid sending
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/42033?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Iff03d4dcb74f67629a59c8d6f8bb60929d9f6ddd
Gerrit-Change-Number: 42033
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>