On Fri, 02 Sep 2011 16:19:02 +0200, Kresimir Dabcevic 
<kresimir.dabce...@fer.hr> wrote:

>
>
>
> -----Original Message-----
> From: bjoe...@ee.ethz.ch [mailto:bjoe...@ee.ethz.ch]
> Sent: Fri 9/2/2011 2:29 PM
> To: Kresimir Dabcevic
> Subject: RE: RE: [Discuss-gnuradio]  Received Signal Power ?
>Hi,
>
> Thank you very much for that answer!
>
> "10*LOG10(DECIMATE(SINGLE_POLE_IIR_FILTER(COMPLEX_TO_MAG**2(SIGNAL))))"
>
> Where am I supposed to perform this? So would this be the log of the
> out[] vector within the clock_recovery?
>
> Could you give me an example?

Do something like this in your RX program:
        self.filesink = gr.file_sink(4, 'rx_test.dat')

        self.squelch = gr.pwr_squelch_cc(-55, 1, 0, True)
        self.complex_to_mag2 = gr.complex_to_mag_squared(1)
        self.iir_filter = gr.single_pole_iir_filter_ff(0.5,1)
        self.decimator = gr.keep_one_in_n(4,360)
        self.logarithmer = gr.nlog10_ff(10,1,4) 
        self.connect(self.u, self.squelch2, self.complex_to_mag2,
self.iir_filter, self.decimator, self.logarithmer, self.filesink)


Play around with the values you are feeding to the signal blocks until you get 
what you want.

This way, you are saving the (non-calibrated) RSS values of the signal stream 
you are getting from the USRP to .dat file.

Regards,
Kresimir
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to