diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-12 16:59:41 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-09 21:57:13 +0100 |
commit | 50131c125e2298cc4f71fa2b69881f6a40a7000a (patch) | |
tree | 959d9c63902ae8e57b9562445cdc250933a29002 /src/osmo-bts-sysmo/misc/sysmobts_mgr.c | |
parent | 5a03e129a633637d0a6b57b3b5aa6d6596b938fe (diff) |
sysmobts: Begin with calib control from the sysmobts manager
In the long run we will connect to GPSD and wait for a fix and
then run the calibration. The first step is to open (and re-open)
the control connection to the BTS.
As the connection is on localhost there should not be a computation
overhead to always have the connection open. When connecting assume
that the ASYNC connect worked directly as otherwise we get no
notification of the failure.
This looks like a "bug" of libosmo-abis that should check if the
socket has been connected or not.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr.c')
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_mgr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c index ea83fb60..fce375b9 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c @@ -224,6 +224,12 @@ static struct log_info_cat mgr_log_info_cat[] = { .color = "\033[1;37m", .enabled = 1, .loglevel = LOGL_INFO, }, + [DCALIB] = { + .name = "DCALIB", + .description = "Calibration handling", + .color = "\033[1;37m", + .enabled = 1, .loglevel = LOGL_INFO, + }, }; static const struct log_info mgr_log_info = { @@ -292,6 +298,9 @@ int main(int argc, char **argv) /* Initialize the temperature control */ sysmobts_mgr_temp_init(&manager); + if (sysmobts_mgr_calib_init(&manager) != 0) + exit(3); + if (daemonize) { rc = osmo_daemonize(); if (rc < 0) { |