Spectrum sensing in gnuradio-companion


I am looking for a way to assemble a spectrum sensing in
Here in gnuradio.blogspot only found information about the file
usrp_spectrum_sense.py, but would like to know how to implement spectrum
sensing (including detection of energy) in gnuradio-companion.

Could anyone help me?

I am actually doing something similar for cognitive radio, the best way
go about it is to follow the tutorial online for how to write a signal
processing block
http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html (I do
find a little vague on some parts); you can browse google for a more in
depth guide from University of Notre Dame. Keep in mind the FFT is a
output so you need adjust your sensing block to accept such a stream. If
you understand the underlying concepts of spectrum sensing then you
be able to program it. For example, energy detection is based of the
Chi-squared test at a certain threshold of energy. Plenty of white
covering spectrum sensing.