diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-03-23 17:06:32 +0300 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2016-04-20 13:46:02 -0700 |
commit | 5efe05021a97606ee5f98235424eddb85628e25a (patch) | |
tree | c79b17d556a51fa3b7b2da20170605b4f863e6b8 /Transceiver52M/osmo-trx.cpp | |
parent | 78d1fc9a13f84b273facb2f22a291c3d2e6ebd33 (diff) |
transceiver: Add an option to generate random Access Bursts.
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index 3026f55..a734a0b 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -187,6 +187,9 @@ bool trx_setup_config(struct trx_config *config) case Transceiver::FILLER_EDGE_RAND: fillstr = "EDGE busrts with random payload"; break; + case Transceiver::FILLER_ACCESS_RAND: + fillstr = "Access busrts with random payload"; + break; } std::ostringstream ost(""); @@ -319,6 +322,7 @@ static void print_help() " -f Enable C0 filler table\n" " -o Set baseband frequency offset (default=auto)\n" " -r Random burst test mode with TSC\n" + " -A Random burst test mode with Access Bursts\n" " -R RSSI to dBm offset in dB (default=0)\n" " -S Swap channels (UmTRX only)\n", "EMERG, ALERT, CRT, ERR, WARNING, NOTICE, INFO, DEBUG"); @@ -341,7 +345,7 @@ static void handle_options(int argc, char **argv, struct trx_config *config) config->swap_channels = false; config->edge = false; - while ((option = getopt(argc, argv, "ha:l:i:p:c:dxfo:s:r:R:Se")) != -1) { + while ((option = getopt(argc, argv, "ha:l:i:p:c:dxfo:s:r:AR:Se")) != -1) { switch (option) { case 'h': print_help(); @@ -381,6 +385,9 @@ static void handle_options(int argc, char **argv, struct trx_config *config) config->rtsc = atoi(optarg); config->filler = Transceiver::FILLER_NORM_RAND; break; + case 'A': + config->filler = Transceiver::FILLER_ACCESS_RAND; + break; case 'R': config->rssi_offset = atof(optarg); break; |