Hi all,

I am recently doing a project on gnu radio and usrp2. My goal is to implement 
DSA: let Tx sense some bands, choose available one by energy detection, then 
tune the usrp2 to this frequency and transmit a signal.

This might sound quite simple and basic for you, but I find it very hard to get 
started. I have tried some ways:

1. To write blocks for GRC: 
I have written a energy detection block find no way to realize the band 
switching function. Also, my energy detection block can only sense the signal 
USRP2 received from a fixed frequency (i.e. from usrp2_source block). How could 
I change the frequency during the detection? I cannot think of a way to make 
the one-way flow of GRC to do some feedback functions.

2. To extend/modify usrp_spectrum_sense.py:
I cannot figure out what is going on in gr_bin_statistic block (even with the 
detailed explanation from Firas): dose it just copy data from FFT and window 
block and save them in a .dat file? If it can generate the raw file, what is 
happening in the main_loop and m.data? Is m.data a file too? 

Sorry for so much words but I feel I am totally lost in scripts. I am still new 
to this and I cannot find a place to dive into and get work done. I believe 
there should be some quite simple and straightforward way to realize DSA. Would 
anyone point a way for me to go?

Any help would be appreciated. Thank you.
-- 
Yang
Sent with Sparrow
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to