Commit c74ef9b8 authored by Oscar Bejarano's avatar Oscar Bejarano

Change frequency in Python scripts to 2.5GHz for POWDER

parent 1fcf5883
......@@ -335,7 +335,7 @@ def rxsamples_app(args, srl, freq, bw, rxgain, clockRate, out):
def main():
parser = OptionParser()
parser.add_option("--args", type="string", dest="args", help="Device factory arguments", default="")
parser.add_option("--freq", type="float", dest="freq", help="Optional Rx freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Optional Rx freq (Hz)", default=2.5e9)
parser.add_option("--bw", type="float", dest="bw", help="Optional Tx filter bw (Hz)", default=30e6)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB)", default=90.0)
parser.add_option("--clockRate", type="float", dest="clockRate", help="Optional clock rate (Hz)", default=80e6)
......
......@@ -153,9 +153,9 @@ def main():
parser.add_option("--hub", type="string", dest="hub", help="serial number of the hub device", default="")
parser.add_option("--serials", type="string", dest="serials", help="serial numbers of the devices", default="")
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=5e6)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=30.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=30.0)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=40.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=50.0)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=512)
parser.add_option("--prefix-length", type="int", dest="prefix_length", help="prefix padding length for beacon and pilot", default=82)
......
......@@ -736,7 +736,7 @@ def main():
parser.add_option("--ref-ant", type="int", dest="ref_ant", help="Calibration reference antenna", default=0)
parser.add_option("--ampl", type="float", dest="ampl", help="Amplitude coefficient for downCal/upCal", default=0.5)
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=5e6)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB)", default=50.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB)", default=50.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]
parser.add_option("--bw", type="float", dest="bw", help="Optional Tx filter bw (Hz)", default=10e6)
......
......@@ -245,7 +245,7 @@ def main():
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=1e6)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=30.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=30.0)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=512)
parser.add_option("--prefix-pad", type="int", dest="prefix_length", help="prefix padding length for beacon and pilot", default=82)
parser.add_option("--postfix-pad", type="int", dest="postfix_length", help="postfix padding length for beacon and pilot", default=68)
......
......@@ -529,7 +529,7 @@ def main():
parser.add_option("--ant", type="string", dest="ant", help="Optional Tx antenna", default="A")
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=65.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=65.0)
parser.add_option("--freq", type="float", dest="freq", help="Tx RF freq (Hz)", default=3.597e9)
parser.add_option("--freq", type="float", dest="freq", help="Tx RF freq (Hz)", default=2.5e9)
parser.add_option("--bbfreq", type="float", dest="bbfreq", help="Lime chip Baseband frequency (Hz)", default=0)
parser.add_option("--nOFDMsym", type="int", dest="nOFDMsym", help="Number of OFDM symbols", default=20)
parser.add_option("--ltsCpLen", type="int", dest="ltsCpLen", help="Length of Cyclic Prefix - LTS", default=32)
......
......@@ -406,7 +406,7 @@ def main():
parser.add_option("--latitude", type="float", dest="latitude", help="Latitude", default=0.0)
parser.add_option("--longitude", type="float", dest="longitude", help="Longitude", default=0.0)
parser.add_option("--elevation", type="float", dest="elevation", help="Elevation", default=0.0)
parser.add_option("--freq", type="float", dest="freq", help="Optional Rx freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Optional Rx freq (Hz)", default=2.5e9)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=16384)
parser.add_option("--serial", type="string", dest="serial", help="Serial number of the device", default="RF3E000392") # "RF3E000375" "RF3E000392"
parser.add_option("--rxMode", type="string", dest="rxMode", help="RX Mode, Options:BASIC/REC/REPLAY", default="BASIC")
......
......@@ -193,7 +193,7 @@ def main():
parser.add_option("--ampl", type="float", dest="ampl", help="Tx digital amplitude scale", default=1)
parser.add_option("--ant", type="string", dest="ant", help="Optional Tx antenna", default="A")
parser.add_option("--gain", type="float", dest="gain", help="Tx gain [0:105] (dB)", default=52.0)
parser.add_option("--freq", type="float", dest="freq", help="Tx RF freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Tx RF freq (Hz)", default=2.5e9)
parser.add_option("--bbfreq", type="float", dest="bbfreq", help="Lime chip Baseband frequency (Hz)", default=0)
parser.add_option("--waveFreq", type="float", dest="waveFreq", help="Baseband waveform freq (Hz)", default=None)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=1024)
......
......@@ -215,12 +215,12 @@ def siso_tdd_burst(serial1, serial2, rate, freq, txgain, rxgain, numSamps, prefi
#########################################
def main():
parser = OptionParser()
parser.add_option("--serial1", type="string", dest="serial1", help="serial number of the device 1", default="RF3E000134")
parser.add_option("--serial2", type="string", dest="serial2", help="serial number of the device 2", default="RF3E000191")
parser.add_option("--serial1", type="string", dest="serial1", help="serial number of the device 1", default="RF3E000143")
parser.add_option("--serial2", type="string", dest="serial2", help="serial number of the device 2", default="RF3E000160")
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=5e6)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB)", default=25.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Tx gain (dB)", default=20.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB)", default=35.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Tx gain (dB)", default=35.0) # w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=512)
parser.add_option("--prefix-pad", type="int", dest="prefix_length", help="prefix padding length for beacon and pilot", default=82)
parser.add_option("--postfix-pad", type="int", dest="postfix_length", help="postfix padding length for beacon and pilot", default=68)
......
......@@ -393,12 +393,12 @@ def signal_handler(rate, numSyms, use_trig, signal, frame):
#########################################
def main():
parser = OptionParser()
parser.add_option("--bsnode", type="string", dest="bsnode", help="serial number of the master (base station node) device", default="")
parser.add_option("--clnode", type="string", dest="clnode", help="serial number of the slave (client node) device", default="")
parser.add_option("--bsnode", type="string", dest="bsnode", help="serial number of the master (base station node) device", default="RF3E000103")
parser.add_option("--clnode", type="string", dest="clnode", help="serial number of the slave (client node) device", default="RF3E000157")
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=5e6)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=30.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=30.0)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=65.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=65.0)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--numSamps", type="int", dest="numSamps", help="Num samples to receive", default=512)
parser.add_option("--prefix-length", type="int", dest="prefix_length", help="prefix padding length for beacon and pilot", default=100) # to compensate for front-end group delay
parser.add_option("--postfix-length", type="int", dest="postfix_length", help="postfix padding length for beacon and pilot", default=100) # to compensate for rf path delay
......
......@@ -353,7 +353,7 @@ def main():
parser.add_option("--ref-ant", type="int", dest="ref_ant", help="Calibration reference antenna", default=0)
parser.add_option("--ampl", type="float", dest="ampl", help="Pilot amplitude scaling coefficient", default=0.5)
parser.add_option("--rate", type="float", dest="rate", help="Tx sample rate", default=5e6)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=3.6e9)
parser.add_option("--freq", type="float", dest="freq", help="Optional Tx freq (Hz)", default=2.5e9)
parser.add_option("--txgain", type="float", dest="txgain", help="Optional Tx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:105]", default=30.0)
parser.add_option("--rxgain", type="float", dest="rxgain", help="Optional Rx gain (dB) w/CBRS 3.6GHz [0:105], 2.5GHZ [0:108]", default=30.0)
parser.add_option("--cp", action="store_true", dest="cyc_prefix", help="adds cyclic prefix to tx symbols", default=True)
......
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