Usrp_spectrum_sense.py

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 ?

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.

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.

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

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,