diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2016-03-06 22:19:15 -0800 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2016-03-08 17:45:53 -0800 |
commit | af717b2d3c7fd9197edec715c3c0be70697c591a (patch) | |
tree | 99c4ea5a248fafd0fb62fdbf2a5a2934b558318a /Transceiver52M/osmo-trx.cpp | |
parent | 8ee2f38a87df07462467865cde16ab7e7508bd0e (diff) |
EDGE: Add random burst generator filler option
When EDGE is enabled with the '-e' option, the random burst generator
switches from GMSK normal bursts to 8-PSK EDGE bursts.
$ ./osmo-trx -e -r 7
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index e7b2a16..3026f55 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -181,9 +181,12 @@ bool trx_setup_config(struct trx_config *config) case Transceiver::FILLER_ZERO: fillstr = "Disabled"; break; - case Transceiver::FILLER_RAND: + case Transceiver::FILLER_NORM_RAND: fillstr = "Normal busrts with random payload"; break; + case Transceiver::FILLER_EDGE_RAND: + fillstr = "EDGE busrts with random payload"; + break; } std::ostringstream ost(""); @@ -376,7 +379,7 @@ static void handle_options(int argc, char **argv, struct trx_config *config) break; case 'r': config->rtsc = atoi(optarg); - config->filler = Transceiver::FILLER_RAND; + config->filler = Transceiver::FILLER_NORM_RAND; break; case 'R': config->rssi_offset = atof(optarg); @@ -394,6 +397,9 @@ static void handle_options(int argc, char **argv, struct trx_config *config) } } + if (config->edge && (config->filler == Transceiver::FILLER_NORM_RAND)) + config->filler = Transceiver::FILLER_EDGE_RAND; + if ((config->tx_sps != 1) && (config->tx_sps != 4)) { printf("Unsupported samples-per-symbol %i\n\n", config->tx_sps); print_help(); |