On 07/30/2013 06:14 PM, dilip thapa wrote:
Hi,
I need grc/script with energy detector. Algorithm is very simple

 1. sense in each 2 sec
 2. In each interval check the power (energy level) for given frequency
 3. If the energy level is greater than threshold
     1. return 1
     2. else return 0

Please help me, I'm stuck on this. I have checked usrp_spectrum_sense.py but can't get any clue.
Thanks in advance.
Dilip
Sent from Windows Mail


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
There's a probe_avg_mag**2 block, which computes the instantaneous power and runs it through an averager. You can then probe that at whatever
  rate you want in a Python routine.


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

Reply via email to