Commit 6e051abb authored by winckel's avatar winckel

Reorganized oasim option handling.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4965 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 3ea0425a
...@@ -114,130 +114,212 @@ extern pdcp_mbms_t pdcp_mbms_array[MAX_MODULES][16*29]; ...@@ -114,130 +114,212 @@ extern pdcp_mbms_t pdcp_mbms_array[MAX_MODULES][16*29];
extern void help (void); extern void help (void);
enum {
LONG_OPTION_START = 0x100, /* Start after regular single char options */
LONG_OPTION_ENB_CONF,
LONG_OPTION_PDNC_PERIOD,
LONG_OPTION_OMG_PERIOD,
LONG_OPTION_ENB_RAL_LISTENING_PORT,
LONG_OPTION_ENB_RAL_IP_ADDRESS,
LONG_OPTION_ENB_RAL_LINK_ID,
LONG_OPTION_ENB_RAL_LINK_ADDRESS,
LONG_OPTION_ENB_MIHF_REMOTE_PORT,
LONG_OPTION_ENB_MIHF_IP_ADDRESS,
LONG_OPTION_ENB_MIHF_ID,
LONG_OPTION_UE_RAL_LISTENING_PORT,
LONG_OPTION_UE_RAL_IP_ADDRESS,
LONG_OPTION_UE_RAL_LINK_ID,
LONG_OPTION_UE_RAL_LINK_ADDRESS,
LONG_OPTION_UE_MIHF_REMOTE_PORT,
LONG_OPTION_UE_MIHF_IP_ADDRESS,
LONG_OPTION_UE_MIHF_ID,
} long_option_e;
static struct option long_options[] = {
{"enb-conf", required_argument, 0, LONG_OPTION_ENB_CONF},
{"pdcp_period", required_argument, 0, LONG_OPTION_PDNC_PERIOD},
{"omg_period", required_argument, 0, LONG_OPTION_OMG_PERIOD},
{"enb-ral-listening-port", required_argument, 0, LONG_OPTION_ENB_RAL_LISTENING_PORT},
{"enb-ral-ip-address", required_argument, 0, LONG_OPTION_ENB_RAL_IP_ADDRESS},
{"enb-ral-link-id", required_argument, 0, LONG_OPTION_ENB_RAL_LINK_ID},
{"enb-ral-link-address", required_argument, 0, LONG_OPTION_ENB_RAL_LINK_ADDRESS},
{"enb-mihf-remote-port", required_argument, 0, LONG_OPTION_ENB_MIHF_REMOTE_PORT},
{"enb-mihf-ip-address", required_argument, 0, LONG_OPTION_ENB_MIHF_IP_ADDRESS},
{"enb-mihf-id", required_argument, 0, LONG_OPTION_ENB_MIHF_ID},
{"ue-ral-listening-port", required_argument, 0, LONG_OPTION_UE_RAL_LISTENING_PORT},
{"ue-ral-ip-address", required_argument, 0, LONG_OPTION_UE_RAL_IP_ADDRESS},
{"ue-ral-link-id", required_argument, 0, LONG_OPTION_UE_RAL_LINK_ID},
{"ue-ral-link-address", required_argument, 0, LONG_OPTION_UE_RAL_LINK_ADDRESS},
{"ue-mihf-remote-port", required_argument, 0, LONG_OPTION_UE_MIHF_REMOTE_PORT},
{"ue-mihf-ip-address", required_argument, 0, LONG_OPTION_UE_MIHF_IP_ADDRESS},
{"ue-mihf-id", required_argument, 0, LONG_OPTION_UE_MIHF_ID},
{NULL, 0, NULL, 0}
};
void get_simulation_options(int argc, char *argv[]) { void get_simulation_options(int argc, char *argv[]) {
char c; int option;
int option_index;
static struct option long_options[] = { while ((option = getopt_long (argc, argv, "aA:b:B:c:C:D:d:eE:f:FGg:hHi:IJ:j:k:K:l:L:m:M:n:N:oO:p:P:Q:rR:s:S:t:T:u:U:vV:w:W:x:X:y:Y:z:Z:", long_options, NULL)) != -1) {
{"enb-conf", required_argument, 0, 0}, switch (option) {
{"pdcp_period", required_argument, 0, 0}, case LONG_OPTION_ENB_CONF:
{"omg_period", required_argument, 0, 0}, if (optarg) {
{"enb-ral-listening-port", required_argument, 0, 0}, g_conf_config_file_name = strdup(optarg);
{"enb-ral-ip-address", required_argument, 0, 0}, printf("eNB configuration file is %s\n", g_conf_config_file_name);
{"enb-ral-link-id", required_argument, 0, 0}, }
{"enb-ral-link-address", required_argument, 0, 0}, break;
{"enb-mihf-remote-port", required_argument, 0, 0},
{"enb-mihf-ip-address", required_argument, 0, 0}, case LONG_OPTION_PDNC_PERIOD:
{"enb-mihf-id", required_argument, 0, 0}, if (optarg) {
{"ue-ral-listening-port", required_argument, 0, 0}, pdcp_period = atoi(optarg);
{"ue-ral-ip-address", required_argument, 0, 0}, printf("PDCP period is %d\n", pdcp_period);
{"ue-ral-link-id", required_argument, 0, 0}, }
{"ue-ral-link-address", required_argument, 0, 0}, break;
{"ue-mihf-remote-port", required_argument, 0, 0},
{"ue-mihf-ip-address", required_argument, 0, 0}, case LONG_OPTION_OMG_PERIOD:
{"ue-mihf-id", required_argument, 0, 0}, if (optarg) {
{NULL, 0, NULL, 0} omg_period = atoi(optarg);
}; printf("OMG period is %d\n", omg_period);
while ((c = getopt_long (argc, argv, "aA:b:B:c:C:D:d:eE:f:FGg:hHi:IJ:j:k:K:l:L:m:M:n:N:oO:p:P:Q:rR:s:S:t:T:u:U:vV:w:W:x:X:y:Y:z:Z:", long_options, &option_index)) != -1) {
switch (c) {
case 0:
if (! strcmp(long_options[option_index].name, "enb-conf")) {
if (optarg) {
g_conf_config_file_name = strdup(optarg);
printf("eNB configuration file is %s\n", g_conf_config_file_name);
}
} else if (! strcmp(long_options[option_index].name, "pdcp_period")) {
if (optarg) {
pdcp_period = atoi(optarg);
printf("PDCP period is %d\n", pdcp_period);
}
} else if (! strcmp(long_options[option_index].name, "omg_period")) {
if (optarg) {
omg_period = atoi(optarg);
printf("OMG period is %d\n", omg_period);
}
} }
break;
#if defined(ENABLE_RAL) #if defined(ENABLE_RAL)
else if (! strcmp(long_options[option_index].name, "enb-ral-listening-port")) { case LONG_OPTION_ENB_RAL_LISTENING_PORT:
if (optarg) { if (optarg) {
g_conf_enb_ral_listening_port = strdup(optarg); g_conf_enb_ral_listening_port = strdup(optarg);
printf("eNB RAL listening port is %s\n", g_conf_enb_ral_listening_port); printf("eNB RAL listening port is %s\n", g_conf_enb_ral_listening_port);
} }
} else if (! strcmp(long_options[option_index].name, "enb-ral-ip-address")) { break;
if (optarg) {
g_conf_enb_ral_ip_address = strdup(optarg); case LONG_OPTION_ENB_RAL_IP_ADDRESS:
printf("eNB RAL IP address is %s\n", g_conf_enb_ral_ip_address); if (optarg) {
} g_conf_enb_ral_ip_address = strdup(optarg);
} else if (! strcmp(long_options[option_index].name, "enb-ral-link-address")) { printf("eNB RAL IP address is %s\n", g_conf_enb_ral_ip_address);
if (optarg) { }
g_conf_enb_ral_link_address = strdup(optarg); break;
printf("eNB RAL link address is %s\n", g_conf_enb_ral_link_address);
} case LONG_OPTION_ENB_RAL_LINK_ADDRESS:
} else if (! strcmp(long_options[option_index].name, "enb-mihf-remote-port")) { if (optarg) {
if (optarg) { g_conf_enb_ral_link_address = strdup(optarg);
g_conf_enb_mihf_remote_port = strdup(optarg); printf("eNB RAL link address is %s\n", g_conf_enb_ral_link_address);
printf("eNB MIH-F remote port is %s\n", g_conf_enb_mihf_remote_port); }
} break;
} else if (! strcmp(long_options[option_index].name, "enb-mihf-ip-address")) {
if (optarg) { case LONG_OPTION_ENB_RAL_LINK_ID:
g_conf_enb_mihf_ip_address = strdup(optarg); if (optarg) {
printf("eNB MIH-F IP address is %s\n", g_conf_enb_mihf_ip_address); g_conf_enb_ral_link_id = strdup(optarg);
} printf("eNB RAL link id is %s\n", g_conf_enb_ral_link_id);
} else if (! strcmp(long_options[option_index].name, "enb-ral-link-id")) { }
if (optarg) { break;
g_conf_enb_ral_link_id = strdup(optarg);
printf("eNB RAL link id is %s\n", g_conf_enb_ral_link_id); case LONG_OPTION_ENB_MIHF_REMOTE_PORT:
} if (optarg) {
} else if (! strcmp(long_options[option_index].name, "enb-mihf-id")) { g_conf_enb_mihf_remote_port = strdup(optarg);
if (optarg) { printf("eNB MIH-F remote port is %s\n", g_conf_enb_mihf_remote_port);
g_conf_enb_mihf_id = strdup(optarg); }
printf("eNB MIH-F id is %s\n", g_conf_enb_mihf_id); break;
}
} else if (! strcmp(long_options[option_index].name, "ue-ral-listening-port")) { case LONG_OPTION_ENB_MIHF_IP_ADDRESS:
if (optarg) { if (optarg) {
g_conf_ue_ral_listening_port = strdup(optarg); g_conf_enb_mihf_ip_address = strdup(optarg);
printf("UE RAL listening port is %s\n", g_conf_ue_ral_listening_port); printf("eNB MIH-F IP address is %s\n", g_conf_enb_mihf_ip_address);
} }
} else if (! strcmp(long_options[option_index].name, "ue-ral-ip-address")) { break;
if (optarg) {
g_conf_ue_ral_ip_address = strdup(optarg); case LONG_OPTION_ENB_MIHF_ID:
printf("UE RAL IP address is %s\n", g_conf_ue_ral_ip_address); if (optarg) {
} g_conf_enb_mihf_id = strdup(optarg);
} else if (! strcmp(long_options[option_index].name, "ue-ral-link-address")) { printf("eNB MIH-F id is %s\n", g_conf_enb_mihf_id);
if (optarg) { }
g_conf_ue_ral_link_address = strdup(optarg); break;
printf("UE RAL link address is %s\n", g_conf_ue_ral_link_address);
} case LONG_OPTION_UE_RAL_LISTENING_PORT:
} else if (! strcmp(long_options[option_index].name, "ue-mihf-remote-port")) { if (optarg) {
if (optarg) { g_conf_ue_ral_listening_port = strdup(optarg);
g_conf_ue_mihf_remote_port = strdup(optarg); printf("UE RAL listening port is %s\n", g_conf_ue_ral_listening_port);
printf("UE MIH-F remote port is %s\n", g_conf_ue_mihf_remote_port); }
} break;
} else if (! strcmp(long_options[option_index].name, "ue-mihf-ip-address")) {
if (optarg) { case LONG_OPTION_UE_RAL_IP_ADDRESS:
g_conf_ue_mihf_ip_address = strdup(optarg); if (optarg) {
printf("UE MIH-F IP address is %s\n", g_conf_ue_mihf_ip_address); g_conf_ue_ral_ip_address = strdup(optarg);
} printf("UE RAL IP address is %s\n", g_conf_ue_ral_ip_address);
} else if (! strcmp(long_options[option_index].name, "ue-ral-link-id")) { }
if (optarg) { break;
g_conf_ue_ral_link_id = strdup(optarg);
printf("UE RAL link id is %s\n", g_conf_ue_ral_link_id); case LONG_OPTION_UE_RAL_LINK_ID:
} if (optarg) {
} else if (! strcmp(long_options[option_index].name, "ue-mihf-id")) { g_conf_ue_ral_link_id = strdup(optarg);
if (optarg) { printf("UE RAL link id is %s\n", g_conf_ue_ral_link_id);
g_conf_ue_mihf_id = strdup(optarg);
printf("UE MIH-F id is %s\n", g_conf_ue_mihf_id);
}
} }
break;
case LONG_OPTION_UE_RAL_LINK_ADDRESS:
if (optarg) {
g_conf_ue_ral_link_address = strdup(optarg);
printf("UE RAL link address is %s\n", g_conf_ue_ral_link_address);
}
break;
case LONG_OPTION_UE_MIHF_REMOTE_PORT:
if (optarg) {
g_conf_ue_mihf_remote_port = strdup(optarg);
printf("UE MIH-F remote port is %s\n", g_conf_ue_mihf_remote_port);
}
break;
case LONG_OPTION_UE_MIHF_IP_ADDRESS:
if (optarg) {
g_conf_ue_mihf_ip_address = strdup(optarg);
printf("UE MIH-F IP address is %s\n", g_conf_ue_mihf_ip_address);
}
break;
case LONG_OPTION_UE_MIHF_ID:
if (optarg) {
g_conf_ue_mihf_id = strdup(optarg);
printf("UE MIH-F id is %s\n", g_conf_ue_mihf_id);
}
break;
#endif #endif
case 'a':
abstraction_flag = 1;
break; break;
case 'L': // set FDD
flag_LA = atoi(optarg); case 'A':
//oai_emulation.info.ocm_enabled=1;
if (optarg == NULL)
oai_emulation.environment_system_config.fading.small_scale.selected_option="AWGN";
else
oai_emulation.environment_system_config.fading.small_scale.selected_option= optarg;
//awgn_flag = 1;
break; break;
case 'F': // set FDD
printf("Setting Frame to FDD\n"); case 'b':
oai_emulation.info.frame_type = 0; oai_emulation.info.nb_enb_local = atoi (optarg);
break;
case 'B':
oai_emulation.topology_config.mobility.eNB_mobility.eNB_mobility_type.selected_option = optarg;
//oai_emulation.info.omg_model_enb = atoi (optarg);
break; break;
case 'c':
strcpy(oai_emulation.info.local_server, optarg);
oai_emulation.info.ocg_enabled=1;
break;
case 'C': case 'C':
oai_emulation.info.tdd_config = atoi (optarg); oai_emulation.info.tdd_config = atoi (optarg);
if (oai_emulation.info.tdd_config > 6) { if (oai_emulation.info.tdd_config > 6) {
...@@ -245,116 +327,92 @@ void get_simulation_options(int argc, char *argv[]) { ...@@ -245,116 +327,92 @@ void get_simulation_options(int argc, char *argv[]) {
exit (-1); exit (-1);
} }
break; break;
case 'Q':
//eMBMS_active=1; case 'D':
// 0 : not used (default), 1: eMBMS and RRC enabled, 2: eMBMS relaying and RRC enabled, 3: eMBMS enabled, RRC disabled, 4: eMBMS relaying enabled, RRC disabled oai_emulation.info.multicast_ifname = strdup(optarg);
oai_emulation.info.eMBMS_active_state = atoi (optarg);
break; break;
case 'R':
oai_emulation.info.N_RB_DL = atoi (optarg); case 'e':
if ((oai_emulation.info.N_RB_DL != 6) && (oai_emulation.info.N_RB_DL != 15) && (oai_emulation.info.N_RB_DL != 25) oai_emulation.info.extended_prefix_flag = 1;
&& (oai_emulation.info.N_RB_DL != 50) && (oai_emulation.info.N_RB_DL != 75) && (oai_emulation.info.N_RB_DL != 100)) { break;
printf("Illegal N_RB_DL %d (should be one of 6,15,25,50,75,100)\n", oai_emulation.info.N_RB_DL);
exit (-1); case 'E':
} set_seed = 1;
case 'N': oai_emulation.info.seed = atoi (optarg);
Nid_cell = atoi (optarg);
if (Nid_cell > 503) {
printf("Illegal Nid_cell %d (should be 0 ... 503)\n", Nid_cell);
exit(-1);
}
break; break;
case 'f':
forgetting_factor = atof (optarg);
break;
case 'F': // set FDD
printf("Setting Frame to FDD\n");
oai_emulation.info.frame_type = 0;
break;
case 'g':
oai_emulation.info.multicast_group = atoi (optarg);
break;
case 'G' :
oai_emulation.info.otg_bg_traffic_enabled = 1;
break;
case 'h': case 'h':
help (); help ();
exit (1); exit (1);
break; break;
case 'H': case 'H':
oai_emulation.info.handover_active=1; oai_emulation.info.handover_active=1;
printf("Activate the handover procedure at RRC\n"); printf("Activate the handover procedure at RRC\n");
break; break;
case 'x':
oai_emulation.info.transmission_mode = atoi (optarg); case 'i':
if ((oai_emulation.info.transmission_mode != 1) && (oai_emulation.info.transmission_mode != 2) && (oai_emulation.info.transmission_mode != 5) && (oai_emulation.info.transmission_mode != 6)) { #ifdef PROC
printf("Unsupported transmission mode %d\n",oai_emulation.info.transmission_mode); Process_Flag=1;
exit(-1); node_id = wgt+atoi(optarg);
} port+=atoi(optarg);
break; #endif
case 'y':
nb_antennas_rx=atoi(optarg);
if (nb_antennas_rx>4) {
printf("Cannot have more than 4 antennas\n");
exit(-1);
}
break;
case 'm':
target_dl_mcs = atoi (optarg);
break;
case 'r':
rate_adaptation_flag = 1;
break;
case 'n':
oai_emulation.info.n_frames = atoi (optarg);
//n_frames = (n_frames >1024) ? 1024: n_frames; // adjust the n_frames if higher that 1024
oai_emulation.info.n_frames_flag = 1;
break;
case 's':
snr_dB = atoi (optarg);
// set_snr = 1;
oai_emulation.info.ocm_enabled=0;
break; break;
case 'S':
sinr_dB = atoi (optarg); case 'I':
set_sinr = 1; oai_emulation.info.cli_enabled = 1;
oai_emulation.info.ocm_enabled=0;
break; break;
case 'j' : case 'j' :
// number of relay nodes: currently only applicable to eMBMS // number of relay nodes: currently only applicable to eMBMS
oai_emulation.info.nb_rn_local = atoi (optarg); oai_emulation.info.nb_rn_local = atoi (optarg);
break; break;
case 'J': case 'J':
ue_connection_test=1; ue_connection_test=1;
oai_emulation.info.ocm_enabled=0; oai_emulation.info.ocm_enabled=0;
snr_step = atof(optarg); snr_step = atof(optarg);
break; break;
case 'k': case 'k':
//ricean_factor = atof (optarg); //ricean_factor = atof (optarg);
printf("[SIM] Option k is no longer supported on the command line. Please specify your channel model in the xml template\n"); printf("[SIM] Option k is no longer supported on the command line. Please specify your channel model in the xml template\n");
exit(-1); exit(-1);
break; break;
case 'K': case 'K':
oai_emulation.info.itti_dump_file = optarg; oai_emulation.info.itti_dump_file = optarg;
break; break;
case 't':
//Td = atof (optarg); case 'l':
printf("[SIM] Option t is no longer supported on the command line. Please specify your channel model in the xml template\n"); oai_emulation.info.g_log_level = atoi(optarg);
exit(-1);
break;
case 'f':
forgetting_factor = atof (optarg);
break;
case 'z':
cooperation_flag = atoi (optarg);
break;
case 'u':
oai_emulation.info.nb_ue_local = atoi (optarg);
break;
case 'b':
oai_emulation.info.nb_enb_local = atoi (optarg);
break;
case 'a':
abstraction_flag = 1;
break; break;
case 'A':
//oai_emulation.info.ocm_enabled=1; case 'L': // set FDD
if (optarg == NULL) flag_LA = atoi(optarg);
oai_emulation.environment_system_config.fading.small_scale.selected_option="AWGN";
else
oai_emulation.environment_system_config.fading.small_scale.selected_option= optarg;
//awgn_flag = 1;
break; break;
case 'p':
oai_emulation.info.nb_master = atoi (optarg); case 'm':
target_dl_mcs = atoi (optarg);
break; break;
case 'M': case 'M':
abstraction_flag = 1; abstraction_flag = 1;
ethernet_flag = 1; ethernet_flag = 1;
...@@ -362,36 +420,33 @@ void get_simulation_options(int argc, char *argv[]) { ...@@ -362,36 +420,33 @@ void get_simulation_options(int argc, char *argv[]) {
oai_emulation.info.master_id = oai_emulation.info.ethernet_id; oai_emulation.info.master_id = oai_emulation.info.ethernet_id;
oai_emulation.info.ethernet_flag = 1; oai_emulation.info.ethernet_flag = 1;
break; break;
case 'e':
oai_emulation.info.extended_prefix_flag = 1; case 'n':
break; oai_emulation.info.n_frames = atoi (optarg);
case 'l': //n_frames = (n_frames >1024) ? 1024: n_frames; // adjust the n_frames if higher that 1024
oai_emulation.info.g_log_level = atoi(optarg); oai_emulation.info.n_frames_flag = 1;
break;
case 'Y':
oai_emulation.info.g_log_verbosity_option = strdup(optarg);
break;
case 'c':
strcpy(oai_emulation.info.local_server, optarg);
oai_emulation.info.ocg_enabled=1;
break;
case 'g':
oai_emulation.info.multicast_group = atoi (optarg);
break; break;
case 'D':
oai_emulation.info.multicast_ifname = strdup(optarg); case 'N':
Nid_cell = atoi (optarg);
if (Nid_cell > 503) {
printf("Illegal Nid_cell %d (should be 0 ... 503)\n", Nid_cell);
exit(-1);
}
break; break;
case 'B':
oai_emulation.topology_config.mobility.eNB_mobility.eNB_mobility_type.selected_option = optarg; case 'O':
//oai_emulation.info.omg_model_enb = atoi (optarg); g_conf_config_file_name = optarg;
break; break;
case 'U':
oai_emulation.topology_config.mobility.UE_mobility.UE_mobility_type.selected_option = optarg; case 'o':
oai_emulation.info.slot_isr = 1;
break; break;
case 'T':
oai_emulation.info.otg_enabled = 1; case 'p':
oai_emulation.info.otg_traffic = optarg; oai_emulation.info.nb_master = atoi (optarg);
break; break;
case 'P': case 'P':
oai_emulation.info.opt_enabled = 1; oai_emulation.info.opt_enabled = 1;
...@@ -409,70 +464,128 @@ void get_simulation_options(int argc, char *argv[]) { ...@@ -409,70 +464,128 @@ void get_simulation_options(int argc, char *argv[]) {
} }
oai_emulation.info.opt_mode = opt_type; oai_emulation.info.opt_mode = opt_type;
break; break;
case 'E':
set_seed = 1; case 'Q':
oai_emulation.info.seed = atoi (optarg); //eMBMS_active=1;
// 0 : not used (default), 1: eMBMS and RRC enabled, 2: eMBMS relaying and RRC enabled, 3: eMBMS enabled, RRC disabled, 4: eMBMS relaying enabled, RRC disabled
oai_emulation.info.eMBMS_active_state = atoi (optarg);
break; break;
case 'I':
oai_emulation.info.cli_enabled = 1; case 'r':
rate_adaptation_flag = 1;
break; break;
case 'X':
#ifdef PROC case 'R':
temp=atoi(optarg); oai_emulation.info.N_RB_DL = atoi (optarg);
if(temp==0){ if ((oai_emulation.info.N_RB_DL != 6) && (oai_emulation.info.N_RB_DL != 15) && (oai_emulation.info.N_RB_DL != 25)
port=CHANNEL_PORT; Channel_Flag=1; Process_Flag=0; wgt=0; && (oai_emulation.info.N_RB_DL != 50) && (oai_emulation.info.N_RB_DL != 75) && (oai_emulation.info.N_RB_DL != 100)) {
} printf("Illegal N_RB_DL %d (should be one of 6,15,25,50,75,100)\n", oai_emulation.info.N_RB_DL);
else if(temp==1){ exit (-1);
port=eNB_PORT; wgt=0;
}
else {
port=UE_PORT; wgt=MAX_eNB;
} }
#endif
break; break;
case 'i':
#ifdef PROC case 's':
Process_Flag=1; snr_dB = atoi (optarg);
node_id = wgt+atoi(optarg); // set_snr = 1;
port+=atoi(optarg); oai_emulation.info.ocm_enabled=0;
#endif break;
case 'S':
sinr_dB = atoi (optarg);
set_sinr = 1;
oai_emulation.info.ocm_enabled=0;
break; break;
case 't':
//Td = atof (optarg);
printf("[SIM] Option t is no longer supported on the command line. Please specify your channel model in the xml template\n");
exit(-1);
break;
case 'T':
oai_emulation.info.otg_enabled = 1;
oai_emulation.info.otg_traffic = optarg;
break;
case 'u':
oai_emulation.info.nb_ue_local = atoi (optarg);
break;
case 'U':
oai_emulation.topology_config.mobility.UE_mobility.UE_mobility_type.selected_option = optarg;
break;
case 'v': case 'v':
oai_emulation.info.omv_enabled = 1; oai_emulation.info.omv_enabled = 1;
break; break;
case 'V': case 'V':
ouput_vcd = 1; ouput_vcd = 1;
oai_emulation.info.vcd_enabled = 1; oai_emulation.info.vcd_enabled = 1;
oai_emulation.info.vcd_file = optarg; oai_emulation.info.vcd_file = optarg;
break; break;
case 'w': case 'w':
oai_emulation.info.cba_group_active = atoi (optarg); oai_emulation.info.cba_group_active = atoi (optarg);
break; break;
case 'W': case 'W':
#ifdef SMBV #ifdef SMBV
config_smbv = 1; config_smbv = 1;
if(atoi(optarg)!=0) if(atoi(optarg)!=0)
strcpy(smbv_ip,optarg); strcpy(smbv_ip,optarg);
#endif #endif
break; break;
case 'G' :
oai_emulation.info.otg_bg_traffic_enabled = 1; case 'x':
oai_emulation.info.transmission_mode = atoi (optarg);
if ((oai_emulation.info.transmission_mode != 1) && (oai_emulation.info.transmission_mode != 2) && (oai_emulation.info.transmission_mode != 5) && (oai_emulation.info.transmission_mode != 6)) {
printf("Unsupported transmission mode %d\n",oai_emulation.info.transmission_mode);
exit(-1);
}
break; break;
case 'Z':
/* Sebastien ROUX: Reserved for future use (currently used in ltenow branch) */ case 'X':
#ifdef PROC
temp=atoi(optarg);
if(temp==0){
port=CHANNEL_PORT; Channel_Flag=1; Process_Flag=0; wgt=0;
}
else if(temp==1){
port=eNB_PORT; wgt=0;
}
else {
port=UE_PORT; wgt=MAX_eNB;
}
#endif
break; break;
case 'O':
g_conf_config_file_name = optarg; case 'y':
nb_antennas_rx=atoi(optarg);
if (nb_antennas_rx>4) {
printf("Cannot have more than 4 antennas\n");
exit(-1);
}
break; break;
case 'o':
oai_emulation.info.slot_isr = 1; case 'Y':
oai_emulation.info.g_log_verbosity_option = strdup(optarg);
break;
case 'z':
cooperation_flag = atoi (optarg);
break;
case 'Z':
/* Sebastien ROUX: Reserved for future use (currently used in ltenow branch) */
break; break;
default: default:
help (); help ();
exit (-1); exit (-1);
break; break;
} }
} }
} }
void check_and_adjust_params() { void check_and_adjust_params() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment