Re: Sending pre-saved OFDM file to USRP

Well, the receiver USRP does detect some signal, but the
‘benchmark_ofdm_rx.py’ does not detect any packet.
Any ideas???

----- Original Message ----
From: Hoo-chang Shin [email protected]
To: [email protected]
Sent: Thursday, April 17, 2008 2:59:58 PM
Subject: Re: [Discuss-gnuradio] Sending pre-saved OFDM file to USRP

The problem is - the USRP at the receiver side does not detect anything.

----- Original Message ----
From: Hoo-chang Shin [email protected]
To: [email protected]
Sent: Thursday, April 17, 2008 1:24:42 PM
Subject: [Discuss-gnuradio] Sending pre-saved OFDM file to USRP

Hi,

I’m trying to send a pre-saved OFDM file to a transmitter USRP, and to
receive the signal from a receiver USRP.
From the ‘benchmark_ofdm_tx.py’ I’ve saved the OFDM signal to a file
using ‘gr.file_sink’, instead of sending it to ‘usrp.sink_c’.
And then I want to read the data from the saved file and send it though
the transmitter USRP, and receive it from the other USRP, but does not
work.

Could anyone give tip, why it does not work? Or give help how to make it
work?

This is my code:

#!/usr/bin/env python

from gnuradio import gr
from gnuradio import usrp

from numpy import *

class send_from_file_graph (gr.flow_graph):

def __init__(self):
gr.flow_graph.__init__(self)

filename = 'tx_usrp_data.dat'
# which I had saved from 'benchmark_ofdm_tx.py' using 

‘gr.file_sink(gr.sizeof_gr_complex, filename)’
src = gr.file_source ( gr.sizeof_gr_complex, filename, False)

self.v_snk = gr.vector_sink_c()

# setup usrp
self.u = usrp.sink_c(fusb_block_size=0, fusb_nblocks=0)
self.u.set_interp_rate(512)
self._tx_subdev_spec = usrp.pick_tx_subdevice(self.u)
self.subdev = usrp.selected_subdev(self.u, self._tx_subdev_spec)

self.u.tune(self.subdev._which, self.subdev, 2.45e9)
self.subdev.set_gain(200)
self.subdev.set_auto_tr(True)
# ##

self.connect(src, self.v_snk)
self.run()
v_src = gr.vector_source_c(self.v_snk.data())
self.connect(v_src, self.u)
self.run()

def main():

fg = send_from_file_graph ()
fg.start()

if name==‘main’:
try:
main()
except KeyboardInterrupt:
pass

  ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

  ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

  ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs