Re: [Discuss-gnuradio] Store data with usrp_spectrum_sense.py

2011-05-21 Thread yulong yang
Hi, maybe you can try to catch them into a file, you know, write python script like f.open() and f.write(), that stuff. You can google it for its usage. Hope this helps. On Sun, May 22, 2011 at 2:04 AM, Miguel Angel Sanz Rodriguez < mikys...@hotmail.com> wrote: > Hi everyone, > I am new in GNUr

[Discuss-gnuradio] How exactly dose rx_callback work in benchmark script?

2011-05-21 Thread yulong yang
Hi all, I have been reading the benchmark_rx.py codes.I want to add the channel sensing and selecting in callback function. I understand rx_callback in benchmark_rx is a function that make the block wait for packet generating from the data that received from the receive_path while running. But ho

Re: [Discuss-gnuradio] Implementation of dynamic spectrum access

2011-05-07 Thread yulong yang
Thanks for reply. My plan is to extend the usrp_spectrum_sense.py: grab its output data and let a py script find the best available frequency in the data; then put this frequency into the usrp2_source block of file transmitter. In such case, my py script would contain two top_block and the second

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-21 Thread Yulong Yang
Hi, I try to add all it needs to put my custom block into this module. I add the corresponding .xml/.cc/.h/.i files into grc/lib/swig folder separately and modify MakeFile.am files in each folders. However, it still cannot work. When generating top_block.py in GRC, the console says: self.m

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Yulong Yang
11-04-20 at 16:43 -0700, Josh Blum wrote: > > On 04/20/2011 04:42 PM, yulong yang wrote: > > On Thu, Apr 21, 2011 at 7:17 AM, Josh Blum wrote: > > > >> > >> > >> On 04/20/2011 03:00 AM, Yulong Yang wrote: > >>> Hello, > >>> > &

Re: [Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread yulong yang
On Thu, Apr 21, 2011 at 7:17 AM, Josh Blum wrote: > > > On 04/20/2011 03:00 AM, Yulong Yang wrote: > > Hello, > > > > I am new to GNU radio. I am trying to write a simple block and add it to > > GRC. All steps before are fine. However, when I generate t

[Discuss-gnuradio] "ImportError: No module named myblock" when generating py file in GRC

2011-04-20 Thread Yulong Yang
Hello, I am new to GNU radio. I am trying to write a simple block and add it to GRC. All steps before are fine. However, when I generate the top_block.py file, it says "ImportError: No module named myblock". The myblock is actually the name of the folder I create to put all necessary files of my

[Discuss-gnuradio] (no subject)

2011-04-05 Thread Yulong Yang
Hi all, I have been trying to generate (from a random 0-1 source) and send a simple QAM signal from one side, receive and save as .dat file in another. Then I try to recover the signal I sent in Matlab/Octave. My method is to first use read_complex_binary() to extract points, and sample 2000 of

Re: [Discuss-gnuradio] User Generated Signals

2011-03-28 Thread Yulong Yang
Hello, I am a senior student that also studying GNU Radio. I have found your post about generating signal and transmit on gnuradio mailing list (though it is written in 2007). I am wondering if you could give me some hints on generating signal and transmit using USRP? I am new to gnu radio and ha

[Discuss-gnuradio] cannot detect USRP2 on ubuntu 9.10 whatsoever...various solutions adopted...

2010-12-20 Thread yulong yang
Hi all, I am new to gnuradio and stuck with the usrp2 connection for several days... I looked up tens of search results but no solution yet. Therefore I post my problem and hope someone could give me a hand: I am running gnu radio 3.2.2 on ubuntu9.10, and I think gnuradio works fine because dial_