facilitate automatic mbms service start

master
yagoda 7 years ago
parent f554308632
commit a113d5164f

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

@ -139,6 +139,10 @@ void parse_args(all_args_t *args, int argc, char *argv[]) {
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) {

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

Loading…
Cancel
Save