Hi Dilip, Have a look at the scanoo GRC flowgraph build in GNU Radio 3.7 which uses the probe functions for spectrum sensing:
https://github.com/m0mik/scanoo This is the GRC flowgraph in question: https://raw.github.com/m0mik/scanoo/master/apps/scanoo.com_rx.grc The 'Function Probe' block is used to call either the 'level()' or 'unmuted()' function in the probe_avg_mag_sqrd block. You can then access the value using the name of the 'Function Probe' block. The same technique applies for calling the value of the 'Probe Signal' and 'Probe Signal Vector' blocks, however these only have the 'level()' function available. Regards, Mike -- Mike Jameson M0MIK BSc MIET Email: m...@scanoo.com Web: http://scanoo.com On Mon, Aug 19, 2013 at 6:07 AM, dilip thapa <palpa5b...@hotmail.com> wrote: > Hi, > > I am trying to detect the presence of primary user by energy detection. > And after searching I was advised to use probe block to do the sense. > (gr.probe_avg_mag_sqrd_f). > > Can anyone explain how this works. How level() method gives the energy > level. > > ~Dilip > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio