[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] How to get the signal-to-noise ratio of a desired fre
[Discuss-gnuradio] How to get the signal-to-noise ratio of a desired frequency?
Tue, 23 Feb 2010 18:30:14 -0800 (PST)
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 for
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 802.11
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 results
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 some
threads that they say they use m.data file to see the data. I'm not sure how
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 saved
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
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 the
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!!
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.
|[Prev in Thread]
||[Next in Thread]|
- [Discuss-gnuradio] How to get the signal-to-noise ratio of a desired frequency?,