From d9a2aa8d9909d93d96e421c7cb727932445fa8ab Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Aug 2014 10:44:31 +0200 Subject: add control interface to common BTS (for thermal attenuation) Using this control interface, an external program can request attentuation of the transmitter for thermal management reasons. The external application doesn't have to know anthing about the actual transmit power, but it can just configure a certian value of milli-dB (1/10000 bel) and update (increase/decrease) that value depending on the thermal environment. --- 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 d12421df..8c930965 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -45,6 +45,7 @@ #include #include #include +#include #define SYSMOBTS_RF_LOCK_PATH "/var/lock/bts_rf_lock" @@ -290,6 +291,8 @@ static int write_pid_file(char *procname) return 0; } +extern int sysmobts_ctrlif_inst_cmds(void); + int main(int argc, char **argv) { struct stat st; @@ -348,6 +351,8 @@ int main(int argc, char **argv) } write_pid_file("osmo-bts"); + bts_controlif_setup(bts, 3333); + rc = telnet_init(tall_bts_ctx, NULL, 4241); if (rc < 0) { fprintf(stderr, "Error initializing telnet\n"); -- cgit v1.2.3