Forum: GNU Radio Usrp_spectrum_sense.py

Posted by Abdelrahman Ahmed (Guest)
on 2012-05-19 12:27
(Received via mailing list)
i am new to this and don't have enough experience in programing?
How to get output data from usrp_spectrum_sense.py and save it to file ?
Posted by Andrew Davis (Guest)
on 2012-05-19 23:27
(Received via mailing list)
There has been a lot of discussion about getting useful output, most
of the threads never go anywhere ( or at least not enough ). What I
believe really must be done is remove the python <-> C++ callbacks and
re-write it in one language ( Something that wasn't possible when it
was written ), and it needs ether a GUI or some type of sudo-frequency
translator to put the output into a file that a FFT viewer can parse.
Posted by Eric J. (eric_j)
on 2012-06-25 23:06
I have been banging my head over this the past few days. I'm trying to 
translate the output to dBm. The data in bin_statistic's message is 
composed of the magnitude squared (from the path fft_vcc to 
complex_to_mag_squared to bin_statistics).

The problem is that when I use the nlog10_ff block that they have set up 
but did not implement due to it being "dog slow", all of the data from 
bin_statistics turns to 0's. When I change the r value for the nlog10_ff 
block to something 400 or higher, the data is no longer composed of 
zeroes. Why is this?

Another question:

Why do the python and C++ callbacks cause problems?

Rewriting everything in one language sounds like it'd be very low level 
(requiring knowledge of hardware specifications and circuitry). I am 
very new to signal processing and the software radio scene, and a lot of 
that sounds pretty intimidating. I've slowly been educating myself.
Posted by Pradeep K. (pradeep_k)
on 2012-09-11 12:22
Eric J. wrote in post #1066031:
> I have been banging my head over this the past few days. I'm trying to
> translate the output to dBm. The data in bin_statistic's message is
> composed of the magnitude squared (from the path fft_vcc to
> complex_to_mag_squared to bin_statistics).
>
> The problem is that when I use the nlog10_ff block that they have set up
> but did not implement due to it being "dog slow", all of the data from
> bin_statistics turns to 0's. When I change the r value for the nlog10_ff
> block to something 400 or higher, the data is no longer composed of
> zeroes. Why is this?
>
> Another question:
>
> Why do the python and C++ callbacks cause problems?
>
> Rewriting everything in one language sounds like it'd be very low level
> (requiring knowledge of hardware specifications and circuitry). I am
> very new to signal processing and the software radio scene, and a lot of
> that sounds pretty intimidating. I've slowly been educating myself.

Hello my frnd..
i too faced same kind of problem and was not getting any output from 
usrp_spectrum_sense.py, only center frequencies were displayed on 
terminal.
Then i added "print m.data" after line no 238 "Print m.center freq" and 
saved it. Then to sense spectrum i gave command
$ sudo python usrp_spectrum_sense.py start_freq End_freq > capture.dat
and all your sensed data will get stored in this capture.dat file
Posted by Abdalla A. (abdalla_a)
on 2013-02-13 09:54
hello pradeep
i saw u replay on usrp_spectrum_sense.py post
after i add print m.data and i saved the result to xxx.dat file
how i can show this values in graphic ?
thanks,,
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.