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>
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 @@
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 @@
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 @@
}
}
+ 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();