Hi, I intend to transmit and receive full duplex using my USRP N200 SBX on 2 FDM basis. I have one transmit python script which could transmit m-seq LFSR data stream which is working perfectly.
I have combined it with the uhd_rx_cfile.py by having 2 instances of the parent class gr.top_block. I have few queries which is why I am not able to get any output: 1. I have attached 2 antennas. How do I address each one of them? or how Do i address each sub devices? Which one should be TX/RX or RX2. 2. By passing 2 frequency arguments, I am not able to separate 2 frequencies - one transmit one receive. Even if I change the OptParse statements, it has the '-f' notation clashing between tx and rx flowgraphs. Following is my OptParse Statements- def get_options(): usage="%prog: [options]" parser = OptionParser(option_class=eng_option, usage=usage) #parser.add_option("-S", "--save", type="string", default=None, help="Save pulse shape, m-seq, and other info to file SAVE.m") parser.add_option("-c", "--chip-rate", type="eng_float", default=1e6,help="set chip rate [default=%default]") parser.add_option("-d", "--degree", type="eng_float", default=7,help="degree of LFSR, [default=%default]") parser.add_option("-x", "--excess-bw", type="eng_float", default=0.5,help="set excess BW/ roll-off factor, [default=%default]") parser.add_option("-a", "--args", type="string", default="",help="UHD device address args , [default=%default]") #parser.add_option("-a", "--args_tx", type="string", default="",help="UHD device address args , [default=%default]") parser.add_option("", "--spec", type="string", default=None,help="Subdevice of UHD device where appropriate") parser.add_option("", "--antenna", type="string", default=None,help="select Antenna where appropriate") parser.add_option("", "--freq_rx", type="eng_float", default=None,help="set Receiver frequency to FREQ", metavar="FREQ") parser.add_option("", "--freq_tx", type="eng_float", default=None,help="set transmitter frequency to FREQ", metavar="FREQ") parser.add_option("-g", "--gain", type="eng_float", default=0.0,help="set gain in dB, [default=%default]") parser.add_option("-N", "--nsamples", type="eng_float", default=None, help="number of samples to collect [default=+inf]") parser.add_option("", "--otw-format", type="string", default="sc16",help="set over-the-wire format to USRP [default=%default]") parser.add_option("", "--fullscale", type="eng_float", default=1.0,help="set full scale value for complex32 format [default=%default]") (options, args) = parser.parse_args () if len(args)!=1: parser.print_help() raise SystemExit, 1 if options.freq_rx is None: parser.print_help() sys.stderr.write('You must specify the Receiver frequency with -f_rx FREQ\n'); raise SystemExit, 1 if options.freq_tx is None: parser.print_help() sys.stderr.write('You must specify the Transmit frequency with -f_tx FREQ\n'); raise SystemExit, 1 -- -Regards, Ankan Roybardhan University of Florida, Gainesville. Florida, USA.
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio