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 “usrp_spectrum_sense.py” 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 ./usrp_spectrum_sense.py 2.402G 2.4725G
Got the following console log:
Changing line 152 of usrp_spectrum_sense.py
usrp_rate = adc_rate / usrp_decim
usrp_rate = 5000000
And also changing line 176 of usrp_spectrum_sense.py
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
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 ./usrp_spectrum_sense.py 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 m.data 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
m.data” 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 m.data 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
Any suggestions and enlightenments would be the great!
Thanks a lot everyone!!
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.