How to Sense the spectrum bycomparing calculated energy with threshold

Hi, Omer,

That’s exactly what I want to do. But I use the usrp_spectrum_sense.py
to
get each channel’s power and then compare with the threshold. Maybe you
should try the usrp_spectrum_sense.py.

I was designing something similar. It’s a block that calculates square
value of the signal and there are two “thresholds”, first is power
threshold and the second is time threshold, which means that in order to
be
detected, burst must have appropriate power and duration. This explains
nothing, but maybe you will get some ideas.

Best

Now I have a strange problem. When I add the parameter “log” to the
function “self.connect”, the FFT bin values I got are all zero. But if I
just use self.connect(self.u, s2v, fft, c2mag, stats), some FFT bin
values
will be very large, even bigger than 5000 sometimes. Should I add the
parameter “log”? Do you know how to solve this problem? Thanks.