Thanks, Mike. Then how should I calculate the power for each channel? 
We have analog and digital channels. 

已通过MOTOBLUR™连接

-----原始信息-----
来自: Mike Jameson <m...@scanoo.com>
收件人: Jincheng Zhang <perfume0...@gmail.com>
抄送: "discuss-gnuradio@gnu.org" <discuss-gnuradio@gnu.org>
已发送: 2013-04-07, 周日, 16:39:05 格林尼治标准时间+0000
主题: Re: [Discuss-gnuradio] usrp_spectrum_sense.py FFT bin values are all zero.

Hi,

For your application, please experiment with the following command:

./usrp_spectrum_sense.py -A TX/RX --fft-size=25 --samp-rate=25e6 --gain=15
--dwell-delay=0.25 --tune-delay=0.25 --channel-bandwidth=8e6 470e6 800e6

Note that 'freq_step' should remain unchanged at '0.75 * usrp_rate' in the
script to make sure signals at the edge of the incoming front-end signal
bandwidth (25MHz) are not missed.

Mike

--
Mike Jameson M0MIK BSc
Email: m...@scanoo.com
Web: http://scanoo.com


On 7 April 2013 17:22, Jincheng Zhang <perfume0...@gmail.com> wrote:

> Thanks Mike. I'm a little confused. The parameters are listed as follows:
>
> sample-rate:
> channel-bandwidth:
> freq_step:
> fft_size:
>
> You mean that I should set sample-rate be 25e6, channel-bandwidth be 8e6,
> freq_step be 8e6 and fft_size be 25?
>
> If we set the fft-size be 25, then which 8 bins I should select to
> calculate the power? By the way, since the magnitude of FFT bin is decimal,
> maybe I should change the magnitude of FFT bin values to mw and add the 8
> bins, and then transfer to decimal again? Since we cannot straightly add
> the FFT bin values in decimal.
>
> By the way, how about the "self.connect", should I add the log parameter
> to it?
>
> Thanks. Hope for your reply.
>
>
>
> On Mon, Apr 8, 2013 at 12:11 AM, Mike Jameson <m...@scanoo.com> wrote:
>
>> Hi Jincheng,
>>
>> Try setting the UHD sample rate to 25e6 and the number of fft bins to 25
>> which will give you 1e6 Hz per bin.  Adding 
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to