|
|
@ -458,14 +458,11 @@ static void execute_cmd(metrics_stdout* metrics, srsenb::enb_command_interface*
|
|
|
|
cout << "Usage: " << cmd[0] << " [number of seconds]" << endl;
|
|
|
|
cout << "Usage: " << cmd[0] << " [number of seconds]" << endl;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int nseconds = srsran::string_cast<int>(cmd[1]);
|
|
|
|
int nseconds = srsran::string_cast<int>(cmd[1]);
|
|
|
|
if (nseconds <= 0) {
|
|
|
|
if (nseconds <= 0) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(nseconds));
|
|
|
|
std::this_thread::sleep_for(std::chrono::seconds(nseconds));
|
|
|
|
|
|
|
|
|
|
|
|
} else if (cmd[0] == "p") {
|
|
|
|
} else if (cmd[0] == "p") {
|
|
|
|
do_padding = !do_padding;
|
|
|
|
do_padding = !do_padding;
|
|
|
|
if (do_padding) {
|
|
|
|
if (do_padding) {
|
|
|
@ -493,6 +490,7 @@ static void execute_cmd(metrics_stdout* metrics, srsenb::enb_command_interface*
|
|
|
|
cout << " t: starts console trace" << endl;
|
|
|
|
cout << " t: starts console trace" << endl;
|
|
|
|
cout << " q: quit srsenb" << endl;
|
|
|
|
cout << " q: quit srsenb" << endl;
|
|
|
|
cout << " cell_gain: set relative cell gain" << endl;
|
|
|
|
cout << " cell_gain: set relative cell gain" << endl;
|
|
|
|
|
|
|
|
cout << " sleep: pauses the commmand line operation for a given time in seconds" << endl;
|
|
|
|
cout << " p: starts MAC padding" << endl;
|
|
|
|
cout << " p: starts MAC padding" << endl;
|
|
|
|
cout << endl;
|
|
|
|
cout << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|