Forum: GNU Radio What's the meaning of the m.data in usrp_spectrum_sense.py?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4146f6f004e8e3221262f876b89d5ae5?d=identicon&s=25 Ling Huang (Guest)
on 2008-12-23 14:52
(Received via mailing list)
Hi,all

I've change the usrp_spectrum_sense.py to print out the m.data. And I
got
the numbers like 9376200 2976546 34170452.... But I just don't
understand
what these numbers stand for . Are they stand for the power or the
energy?
And what's these numbers' dimension?
Sorry for my bad English.

Ling
--
View this message in context:
http://www.nabble.com/What%27s-the-meaning-of-the-...
Sent from the GnuRadio mailing list archive at Nabble.com.
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2008-12-23 22:52
(Received via mailing list)
On Tue, Dec 23, 2008 at 05:52:03AM -0800, Ling Huang wrote:
>
> Hi,all
>
> I've change the usrp_spectrum_sense.py to print out the m.data. And I got
> the numbers like 9376200 2976546 34170452.... But I just don't understand
> what these numbers stand for . Are they stand for the power or the energy?
> And what's these numbers' dimension?
> Sorry for my bad English.
>
> Ling

They are the single precision floating point magnitude squared of the
FFT output.  That is, for each FFT bin[i], mag_squared[i] = re[i]*re[i]
+ im[i]*im[i].
If you want power, take the square root.  We don't do it by default
since most users are going to be computing a log somewhere downstream,
and the square root can be trivially folded into that calculation.

To see what the FFT bins contain, see the FFTW documentation (fftw.org).

The actual mapping from the levels at the daughterboard antenna port
to sample values depends on a lot of factors including any
daughterboard gain and decimation specific gain in the digital down
converter.  You'll need to calibrate the system if you need something
that maps to dBm.

Eric
4146f6f004e8e3221262f876b89d5ae5?d=identicon&s=25 Ling Huang (Guest)
on 2008-12-24 02:03
(Received via mailing list)
Eric
Thanks!Now I get it.
Ling

Eric Blossom wrote:
>> Sorry for my bad English.
> To see what the FFT bins contain, see the FFTW documentation (fftw.org).
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>

--
View this message in context:
http://www.nabble.com/What%27s-the-meaning-of-the-...
Sent from the GnuRadio mailing list archive at Nabble.com.
This topic is locked and can not be replied to.