How to Sense the spectrum bycomparing calculated energy with threshold

Hi, Omer,

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

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
detected, burst must have appropriate power and duration. This explains
nothing, but maybe you will get some ideas.


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
will be very large, even bigger than 5000 sometimes. Should I add the
parameter “log”? Do you know how to solve this problem? Thanks.