From 1499f0343a78521c43c1656221abd1944b1ab5e7 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 25 Jul 2023 18:42:48 +0200 Subject: [PATCH] ms: update osmocom-bb ..and sync the log levels. Change-Id: I6f9fca7a4d6a02e82bf406fd136c5bde96bb93af --- Transceiver52M/Makefile.am | 1 + Transceiver52M/ms/logging.c | 52 ++++++++++++++++++++++------------ Transceiver52M/ms/ms_upper.cpp | 2 +- osmocom-bb | 2 +- 4 files changed, 37 insertions(+), 20 deletions(-) diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index 681809fa..f8556f0c 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -80,6 +80,7 @@ AM_CPPFLAGS += -I${srcdir} TRXCON_LDADD = \ $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libtrxcon.a \ $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libl1sched.a \ + $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libl1gprs.a \ $(LIBOSMOCODING_LIBS) MS_LOWER_SRC = \ diff --git a/Transceiver52M/ms/logging.c b/Transceiver52M/ms/logging.c index ee592993..af397e02 100644 --- a/Transceiver52M/ms/logging.c +++ b/Transceiver52M/ms/logging.c @@ -1,5 +1,7 @@ /* - * (C) 2016-2022 by Vadim Yanitskiy + * OsmocomBB <-> SDR connection bridge + * + * (C) 2016-2017 by Vadim Yanitskiy * * All Rights Reserved * @@ -19,48 +21,61 @@ #include #include -#include #include +#include static struct log_info_cat trxcon_log_info_cat[] = { [DAPP] = { .name = "DAPP", - .color = "\033[1;35m", .description = "Application", - .loglevel = LOGL_NOTICE, - .enabled = 1, + .color = "\033[1;35m", + .enabled = 1, .loglevel = LOGL_NOTICE, }, [DL1C] = { .name = "DL1C", - .color = "\033[1;31m", .description = "Layer 1 control interface", - .loglevel = LOGL_NOTICE, - .enabled = 1, + .color = "\033[1;31m", + .enabled = 1, .loglevel = LOGL_NOTICE, }, [DL1D] = { .name = "DL1D", - .color = "\033[1;31m", .description = "Layer 1 data", - .loglevel = LOGL_NOTICE, - .enabled = 1, + .color = "\033[1;31m", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, + [DTRXC] = { + .name = "DTRXC", + .description = "Transceiver control interface", + .color = "\033[1;33m", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, + [DTRXD] = { + .name = "DTRXD", + .description = "Transceiver data interface", + .color = "\033[1;33m", + .enabled = 1, .loglevel = LOGL_NOTICE, }, [DSCH] = { .name = "DSCH", - .color = "\033[1;36m", .description = "Scheduler management", - .loglevel = LOGL_NOTICE, - .enabled = 0, + .color = "\033[1;36m", + .enabled = 1, .loglevel = LOGL_NOTICE, }, [DSCHD] = { .name = "DSCHD", - .color = "\033[1;36m", .description = "Scheduler data", - .loglevel = LOGL_NOTICE, - .enabled = 0, + .color = "\033[1;36m", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, + [DGPRS] = { + .name = "DGPRS", + .description = "L1 GPRS (MAC layer)", + .color = "\033[1;36m", + .enabled = 1, .loglevel = LOGL_NOTICE, }, }; -static struct log_info trxcon_log_info = { +static const struct log_info trxcon_log_info = { .cat = trxcon_log_info_cat, .num_cat = ARRAY_SIZE(trxcon_log_info_cat), }; @@ -71,6 +86,7 @@ static const int trxcon_log_cfg[] = { [TRXCON_LOGC_L1D] = DL1D, [TRXCON_LOGC_SCHC] = DSCH, [TRXCON_LOGC_SCHD] = DSCHD, + [TRXCON_LOGC_GPRS] = DGPRS, }; void trxc_log_init(void *tallctx) diff --git a/Transceiver52M/ms/ms_upper.cpp b/Transceiver52M/ms/ms_upper.cpp index 4b2f9196..0a2c3338 100644 --- a/Transceiver52M/ms/ms_upper.cpp +++ b/Transceiver52M/ms/ms_upper.cpp @@ -395,7 +395,7 @@ int main(int argc, char *argv[]) msgb_talloc_ctx_init(tall_trxcon_ctx, 0); trxc_log_init(tall_trxcon_ctx); - g_trxcon = trxcon_inst_alloc(tall_trxcon_ctx, 0, 0); + g_trxcon = trxcon_inst_alloc(tall_trxcon_ctx, 0); g_trxcon->gsmtap = nullptr; g_trxcon->phyif = nullptr; g_trxcon->phy_quirks.fbsb_extend_fns = 866; // 4 seconds, known to work. diff --git a/osmocom-bb b/osmocom-bb index c209242d..3f409eb9 160000 --- a/osmocom-bb +++ b/osmocom-bb @@ -1 +1 @@ -Subproject commit c209242d196a9c30401c383104f5063d4dbde4cd +Subproject commit 3f409eb94eac9ffa67a7528f29f58275f0b836b8