facilitate automatic mbms service start

This commit is contained in:
yagoda 2018-05-17 10:19:25 +02:00
parent f554308632
commit a113d5164f
3 changed files with 10 additions and 1 deletions

View File

@ -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 {

View File

@ -138,7 +138,11 @@ void parse_args(all_args_t *args, int argc, char *argv[]) {
("expert.ip_netmask",
bpo::value<string>(&args->expert.ip_netmask)->default_value("255.255.255.0"),
"Netmask of the tun_srsue device")
("expert.mbms_service",
bpo::value<int>(&args->expert.mbms_service)->default_value(-1),
"automatically starts an mbms service of the number given")
("expert.phy.worker_cpu_mask",
bpo::value<int>(&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) {

View File

@ -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