Re: [Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one
Hi Faisal, The link that Kyeong Su Shin shared actually *directly* leads to scripts that can read the output of file sink. Best regards, Marcus On Wed, 2019-03-13 at 11:25 +0400, faisal wrote: > Ok when i save it in sink file then the data can not be readable what > to do for that please? > > في الأربعاء، ١٣ مارس، ٢٠١٩ ٥:٤٠ ص Kyeong Su Shin < > kss...@postech.ac.kr> كتب: > > Hello faisal: > > > > You can either just use "File Sink" blocks to dump the raw data > > into files and convert them to human-readable format using > > MATLAB/Octave ( > > https://github.com/gnuradio/gnuradio/tree/master/gr-utils/octave ) > > later, or write your own blocks (an embedded Python Block should be > > sufficient if the data rate is low; you can find some tutorials on > > Google. > > https://www.google.com/search?q=gnu+radio+embedded+python+block ). > > > > Regards, > > Kyeong Su Shin > > > > 보낸 사람: faisal 대신 Discuss-gnuradio < > > discuss-gnuradio-bounces+ksshin=postech.ac...@gnu.org> > > 보낸 날짜: 2019년 3월 13일 수요일 오전 12:31 > > 받는 사람: Discuss-gnuradio@gnu.org > > 제목: [Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one > > > > hello everyone > > can anyone help me i want to save data which comes from average > > block and threshold block. > > how can we save a date in text file or in an excel file? > > i attched the grc.file please have a look at it. > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one
You'd need to write your own block that can handle these formats. A word of warning: When doing SDR, you deal with MEGASAMPLES per second. A 32 bit floating point number has circa 9 significant digits. That makes 10 characters when you include the decimal dot. Then you also need to write down the exponent, that's another 4 characters, and the sign (on average, half a character, you could omit "+"). That makes on average 14.5 Bytes to represent a 4 Byte number. You need one real and one imaginary part per sample, that's on average 29 Bytes. Add one byte for the "," between these parts, and one byte for the newline character. You've just made 1 worth of samples at 1 MS/s take 31 MB on disk, where it really only contains 4 MB of actual data, and still introduced rounding errors. Excell is not better. At least the modern excel format applies zip afterwards. And: no one will *ever* scroll through 1 Million samples in Excel. Whatever the problem is, exporting millions of numbers to CSV or Excel is not the solution; excel is really a tool primarily for accounting, not for data analysis. Best regards, Marcus On Tue, 2019-03-12 at 19:31 +0400, faisal wrote: > hello everyone > can anyone help me i want to save data which comes from average block > and threshold block. > how can we save a date in text file or in an excel file? > i attched the grc.file please have a look at it. > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio smime.p7s Description: S/MIME cryptographic signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one
Hello faisal: You can either just use "File Sink" blocks to dump the raw data into files and convert them to human-readable format using MATLAB/Octave ( https://github.com/gnuradio/gnuradio/tree/master/gr-utils/octave ) later, or write your own blocks (an embedded Python Block should be sufficient if the data rate is low; you can find some tutorials on Google. https://www.google.com/search?q=gnu+radio+embedded+python+block ). Regards, Kyeong Su Shin 보낸 사람: faisal 대신 Discuss-gnuradio 보낸 날짜: 2019년 3월 13일 수요일 오전 12:31 받는 사람: Discuss-gnuradio@gnu.org 제목: [Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one hello everyone can anyone help me i want to save data which comes from average block and threshold block. how can we save a date in text file or in an excel file? i attched the grc.file please have a look at it. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Spectrum sensing using gnuradio + hackrf one
hello everyone can anyone help me i want to save data which comes from average block and threshold block. how can we save a date in text file or in an excel file? i attched the grc.file please have a look at it. gt.grc Description: Binary data ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio