From eececf5fa96875e93d622299408423766c6e35d0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 25 Jul 2014 19:53:21 +0200 Subject: sysmobts: Make it possible to slowly ramp up the output power For systems with a bigger PA enabling the full output power at once might draw more current than a power supply can provide. This code will step up the output power in smaller steps to avoid this situation. --- src/osmo-bts-sysmo/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/osmo-bts-sysmo/main.c') diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index bd11472b..fac45d9c 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -84,6 +84,11 @@ int bts_model_init(struct gsm_bts *bts) } bts->c0->nominal_power = rc; + /* Initial values for the power adjustments */ + bts->c0->pa.max_initial_power = 23; + bts->c0->pa.step_size = 2; + bts->c0->pa.step_interval = 1; + bts_model_vty_init(bts); return 0; -- cgit v1.2.3