Can we really put whatever rx_cfile obtained into ofdm receiver?

Hi,
I am going to give more detail about my experiment in case some one
could help me but didn’t understand my situation.
sender:
step 1.a : ./benchmark_ofdm_tx.py -f 10M -i 512 --fft-length=32
–occupied-tones=16 --cp-length=4
receiver:
step 1.b: ./usrp_rx_cfile.py -f 10M -d 256 ofdmdata.dat
offline at receiver:
step 2: ./benchmark_ofdm_rx.py -f 10M -d 256 --fft-length=32
–occupied-tones=16 --cp-length=4 ( after some necessary change in
./benchmark_ofdm_rx.py for example self.u =
gr.file_source(gr.sizeof_gr_complex, “data.dat”, False))
However, it looks doesn’t work, since tried several times, but no
packet
ever received correctly.
Does anyone can give some suggestion?

Thanks,
Bin

some change I made in benchmark_ofdm_rx.py file
# Set up USRP source
self._setup_usrp_source()
#ok = self.set_freq(self._rx_freq)
#if not ok:
# print “Failed to set Rx frequency to %s” %
(eng_notation.num_to_str(self._rx_freq))
# raise ValueError, eng_notation.num_to_str(self._rx_freq)
#g = self.subdev.gain_range()
#if options.show_rx_gain_range:
# print "Rx Gain Range: minimum = %g, maximum = %g, step size

%g" % (g[0], g[1], g[2])
#self.set_gain(options.rx_gain)
#self.set_auto_tr(True) # enable Auto
Transmit/Receive switching

    # Set up receive path
    self.rxpath = receive_path(callback, options)

    self.connect(self.u, self.rxpath)

def _setup_usrp_source(self):
    #self.u = usrp.source_c (fusb_block_size=self._fusb_block_size,
                            #fusb_nblocks=self._fusb_nblocks)
    #pdb.set_trace()
    self.u=gr.file_source(gr.sizeof_gr_complex,"ofdm.dat",False)
    #adc_rate = self.u.adc_rate()
    adc_rate=64000000

    #self.u.set_decim_rate(self._decim)
    self._decim=256

    # determine the daughterboard subdevice we're using
    #if self._rx_subdev_spec is None:
    #    self._rx_subdev_spec = usrp.pick_rx_subdevice(self.u)
    #self.subdev = usrp.selected_subdev(self.u, 

self._rx_subdev_spec)

    #self.u.set_mux(usrp.determine_rx_mux_value(self.u,

self._rx_subdev_spec))

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