I'm trying to simultaneously send and receive a sine signal with the USRP2 with a RFX900 Daughterboard. My setting is:
- An arbritary signal generator sends a sinus signal to RX2 - The USRP2 sends a sine signal through TX/RX to an external Scope - The sampling rate is 1e6 - Interpolation at the sink and decimation at the source are both 100 - The center frequency is 900MHz - I use gnuradio 3.3git-696-glae689f - The USRP2 has the latest firmware on it I use the following computer: Thinkpad T41, 1.4GHz, 768MB RAM Intel Corporation 82540EP Gigabit Ethernet Controller The sine signal sent out by the USRP2 looks nice on the scope and has no gaps in it. The signal received by the USRP2 on RX2 is only once or twice visible with some gap inbetween and then disapears completely. Attached is a picture of the received signal and the code I used. When I only receive a signal without sending, the signal looks nice. Only sending signals works as well without any problems. Does anyone has an idea what went wrong and/or how to fix it? Is there any possibility to chose the antenna for transmission and reception? Thanks for any hint and answer Pascal Sachs
<<attachment: rx2_signal.png>>
#!/usr/bin/env python from gnuradio import eng_notation from gnuradio import gr from gnuradio import usrp2 from gnuradio.eng_option import eng_option from gnuradio.gr import firdes from optparse import OptionParser class top_block(gr.top_block): def __init__(self): gr.top_block.__init__(self, "Send and Receive") self.samp_rate = samp_rate = 1e6 self.gr_complex_to_mag_0 = gr.complex_to_mag(1) self.gr_file_sink_2 = gr.file_sink(gr.sizeof_float*1, "rx2_signal") self.gr_float_to_complex_0 = gr.float_to_complex(1) self.gr_sig_source_x_0 = gr.sig_source_f(samp_rate, gr.GR_SIN_WAVE, 1000, 0.1, 0) self.usrp2_sink_xxxx_0 = usrp2.sink_32fc() self.usrp2_sink_xxxx_0.set_interp(100) self.usrp2_sink_xxxx_0.set_center_freq(900e6) self.usrp2_sink_xxxx_0.set_gain(0) self.usrp2_source_32fc = usrp2.source_32fc() self.usrp2_source_32fc.set_decim(100) self.usrp2_source_32fc.set_center_freq(900e6) self.usrp2_source_32fc.set_gain(30) self.connect((self.gr_complex_to_mag_0, 0), (self.gr_file_sink_2, 0)) self.connect((self.usrp2_source_32fc, 0), (self.gr_complex_to_mag_0, 0)) self.connect((self.gr_sig_source_x_0, 0), (self.gr_float_to_complex_0, 0)) self.connect((self.gr_float_to_complex_0, 0), (self.usrp2_sink_xxxx_0, 0)) def set_samp_rate(self, samp_rate): self.samp_rate = samp_rate self.gr_sig_source_x_0.set_sampling_freq(self.samp_rate) if __name__ == '__main__': parser = OptionParser(option_class=eng_option, usage="%prog: [options]") (options, args) = parser.parse_args() tb = top_block() tb.start() raw_input('Press Enter to quit: ') tb.stop()
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio