|
From: | Goodman Roy |
Subject: | [Discuss-gnuradio] Re: How to scan the whole ISM band? |
Date: | Thu, 17 Jul 2008 13:23:34 -0700 (PDT) |
I need time and power strength information to draw spectrogram. I have to finish this project as soon as possible, so I am looking for an easiest way to learn and solve this problem. I wonder if the following method can draw the spectrogram correctly. I really appreciate your help!
I run the command "./usrp_spectrum_sense.py -d 8 2400e6 2480e6", and then write the self.u into a file, "usrpoutput". Because I set the decimation equal to 8, there are 8M samples/sec at USB. I can get the interval between samples is 0.125usec(1/8=0.125). The self.u is in time domain. I can get the amplitude of the self.u from the file, usrpoutputand, and get the time index of self.u through n*0.125usec where n means nth sample. I put the time and amplitude information into matlab and then I can draw the spectrogram using the command "spectrogram" in the matlab.
---------------------------------------- code --------------------------------------------------------------- self.u = usrp.source_c(fusb_block_size=options.fusb_block_size, ----------------------------------------------------------------------------------------------------------------
I need time and amplitude information to draw spectrogram. I have to finish this project as soon as possible, so I am looking for an easiest way to learn and solve this problem. I wonder if the above method can draw the spectrogram correctly. I really appreciate your help!
Thank you, Roy |
[Prev in Thread] | Current Thread | [Next in Thread] |