From a113d5164f4a8b753e29bc0e4beab72cb41e4b84 Mon Sep 17 00:00:00 2001 From: yagoda Date: Thu, 17 May 2018 10:19:25 +0200 Subject: [PATCH] facilitate automatic mbms service start --- srsue/hdr/ue_base.h | 1 + srsue/src/main.cc | 9 ++++++++- srsue/ue.conf.example | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/srsue/hdr/ue_base.h b/srsue/hdr/ue_base.h index 2f495d7d1..b03988545 100644 --- a/srsue/hdr/ue_base.h +++ b/srsue/hdr/ue_base.h @@ -116,6 +116,7 @@ typedef struct { bool print_buffer_state; bool metrics_csv_enable; std::string metrics_csv_filename; + int mbms_service; }expert_args_t; typedef struct { diff --git a/srsue/src/main.cc b/srsue/src/main.cc index 31d5a2306..6cf2d4aa0 100644 --- a/srsue/src/main.cc +++ b/srsue/src/main.cc @@ -138,7 +138,11 @@ void parse_args(all_args_t *args, int argc, char *argv[]) { ("expert.ip_netmask", bpo::value(&args->expert.ip_netmask)->default_value("255.255.255.0"), "Netmask of the tun_srsue device") - + + ("expert.mbms_service", + bpo::value(&args->expert.mbms_service)->default_value(-1), + "automatically starts an mbms service of the number given") + ("expert.phy.worker_cpu_mask", bpo::value(&args->expert.phy.worker_cpu_mask)->default_value(-1), "cpu bit mask (eg 255 = 1111 1111)") @@ -517,6 +521,9 @@ int main(int argc, char *argv[]) if (args.gui.enable) { ue->start_plot(); } + if(args.expert.mbms_service > -1){ + ue->mbms_service_start(args.expert.mbms_service, 4321); + } } int cnt=0; while (running) { diff --git a/srsue/ue.conf.example b/srsue/ue.conf.example index 11fbdc0e6..ec2c132fe 100644 --- a/srsue/ue.conf.example +++ b/srsue/ue.conf.example @@ -197,6 +197,7 @@ enable = false ##################################################################### [expert] #ip_netmask = 255.255.255.0 +#mbms_service = -1 #rssi_sensor_enabled = false #rx_gain_offset = 72 #prach_gain = 30