Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-05 Thread Marcus Müller
Hello Yang, On 12/05/2014 12:47 PM, Leo Yang wrote: > thank u sir, > > now, i just want to export the complex stream that goes into the sink, is > that possible? That is exactly what the file sink does, see the proposed solution I've discussed in this thread. > whats the format of the that complex

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-05 Thread Leo Yang
thank u sir, now, i just want to export the complex stream that goes into the sink, is that possible? whats the format of the that complex stream? cuz, in the my group design, USRP is in charge of signal collection, the rest signal processing(FFT) work will pass to a FPGA. -- View this message

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-05 Thread Marcus Müller
Hi Yang, the Power of the FFT is only calculated inside the graphical sink, the connection between the USRP source and the graphical sink represents a complex sample stream. I'm still not quite understanding what you really want the USRP to do, would you mind explaining that again? Best regards,

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-04 Thread Leo Yang
Hi sir, I have ran the uhd_msg_tune.grc,but its quiet hard to understand the python code for me. I just set the sample rate to 40M, and centre frequency to 2.4G, it comes out power against the frequency of the signal and the graph seems more static than dynamic. I wonder how it achieved without

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-04 Thread Marcus Müller
Hi Leo, thanks for following up on this! I'll just comment in your reply; I hope that is OK for you. On 12/04/2014 06:05 PM, Leo Yang wrote: > Hi sir, > I'm using USRP2 now, as the sample rate is limited to 25MHz for 16bit > sample, I thought it can only sweep 25MHz at one time, but when u said U

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-04 Thread Leo Yang
Hi sir, I'm using USRP2 now, as the sample rate is limited to 25MHz for 16bit sample, I thought it can only sweep 25MHz at one time, but when u said USRP source can get as much bandwidth at once, it confused me. The Wi-Fi frequency is from 2.38GHz to 2.42GHz,which 25MHz is not enough for such larg

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-04 Thread Marcus Müller
Hello Leo, with the USRP source you can get as much bandwidth at once as your sampling rate allows, and it will give you the complex samples. The USRP source will give you all the instantaneous bandwidth the USRP delivers to your PC. You won't see more at once when using usrp_spectrum_sense, as it

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-04 Thread Leo Yang
when u said:save the signal from a USRP to a file, that's a two block flow graph in the GNU Radio companion: Just connect the USRP Source to a File Sink, parameterize both to your likings, and you're done. the two block flow graph can only use for narrow band, my idea is to sensing the wide ban

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-01 Thread Marcus Müller
> When u say complex samples, i thought it should in time domain, yes, these are time domain samples. > I just want use USRP to > collect the a wide band signal around and save the data to the txt file, Usually, there's no good reason to save millions of samples in text format -- it's not reall

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-01 Thread Leo Yang
When u say complex samples, i thought it should in time domain, and after the the fft block, it transfer to frequency domain. I just want use USRP to collect the a wide band signal around and save the data to the txt file, so i use the usr_spectrum_sense. and how to make the binary samples visuali

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-01 Thread Marcus Müller
Hi Leo, usrp_spectrum_sense actually has nothing to do with the FPGA -- in fact, it just gets complex samples from a USRP, and displays them in frequency domain; so hopefully that answers your question :) Regarding writing the raw binary data to a file: These are binary samples, and not text, and

[Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py

2014-12-01 Thread Leo Yang
I'm using the usrp_spectrum_sense.py to get the raw data for the wide band spectrum for FFT in the FPGA . The thing confused me is what the raw data is. Is that the complex signal before fft ? As m.raw_data is a string that contains the binary floats, when i try to log it in a txt file, it output