How to get the signal-to-noise ratio of a desired frequency?

Hi everyone.

I’m new at this and reading a lot currently on how to get S/N ratio of a
range of frequencies and other basic questions.

I’ve been trying to use “” to sense the spectrum
802.11 (2.402–2.4735 GHz) in the US and get the Signal-to-Noise Ratio of
their center frequencies.

I’d like to achieve a table like the following:

When applying the following command:
sudo ./ 2.402G 2.4725G

Got the following console log:

Changing line 152 of
usrp_rate = adc_rate / usrp_decim
usrp_rate = 5000000

And also changing line 176 of
self.freq_step = 0.75 * usrp_rate
self.freq_step = usrp_rate

I was able to get only the desired center frequencies I need for the
wireless spectrum.
Also had to set range to 2.4095-2.4625 GHz instead of 2.402–2.4735 GHz.

Issuing the following command after modifying the file:
sudo ./ 2.4095G 2.4625G

I got the following console output of this modified file is:

I wonder if making the above changes will not let me get adequate
since it would not discard the bins on both ends of the spectrum?

I’m also not understanding how to get the data to a file. I have read
threads that they say they use file to see the data. I’m not sure
to do this. Can anyone tell me how to save/overwrite this file so I can
access its data and do something useful with it? Maybe it’s already
and located in another folder? Or changes in code needed?

I was able to get this data to be displayed on the console by adding
“print” after “print m.center_freq” on main_loop function.

Maybe the correct question would be, how to save a spectrum cycle onto a

Also, from my understanding, the print contains the FFT value for
specified frequency correct?

How would I be able to find the S/N ratio from that? Where do I get the
noise from? I’m really confused :confused:



Any suggestions and enlightenments would be the great!

Thanks a lot everyone!!

David Cabrejos

View this message in context:
Sent from the GnuRadio mailing list archive at