I have been working with gnuradio python programs for my project and I am trying to collect SNR data for the signals I receive using benchmark_rx.py.
self.probe =
gr.probe_avg_mag_sqrd_cf(thresh,alpha)
self.power_sink =
gr.file_sink(gr.sizeof_float, "rxpower.dat")
self.connect(self.probe,
self.power_sink) # should dump the power values in a
file.....hopefully....
# Set up receive path
self.rxpath =
usrp_receive_path.usrp_receive_path(demodulator, rx_callback, options)
#connects#
self.connect(self.rxpath)
self.connect(self.rxpath.channel_filter,self.probe)
I was then trying to use the similar list of commands to calculate the SNR using the block "gr.probe_mpsk_snr_c(thresh)" but it didnt work. I then tried the following statements,
self.probe = gr.probe_mpsk_snr_c(thresh)
self.rxpath = usrp_receive_path.usrp_receive_path(demodulator, rx_callback, options)
self.connect(self.rxpath)
self.connect(self.rxpath.channel_filter,self.probe)
But the receiver didnt receive anything properly and it was printing out weird symbols.
It will be really helpful if someone can explain to me about connecting this block and measure the SNR.
Thank you
--
Regards
Shantharam Balasubramanian
MS in Electrical and Computer Engineering
Rutgers University
Ph:732-543-6863
Email:address@hidden