Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-02 Thread AndroidT Tester
Thank you Paul, I had inspectrum but didn't use it much. I see that people extract samples by adding Plots in Inspectrum, but it never worked for me. Here is screenshot of my file in Inspectrum: http://imgur.com/a/kh6GG Can you tell me what you see here and what information you can extract from

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
No, I think the data is fine I’m just telling you it isn’t normalized to +/- 1 as the USRP does when you record fc32 format versus sc16. No big deal, just a constant scale factor throughout the record. I don’t really know what you are looking for, so I can’t really tell you if it looks good or

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread AndroidT Tester
Paul, This is indeen NI-USRP capture. So you think the Cfile that I've created using gr_fileman and gr_mkheader isn't correct? I can see lots of good data by loading the cfile in Gqrx. I think it's working, am I wrong? Also I had another question, I converted my file to Wav file after

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
Cheers, and thanks for finding the error. Also, you should note that the USRP scales fc32 format to +\- 1, but the sc16 format is ADC levels. gr_fileman doesn't scale during the conversion, so .sc16 converted to .fc32 will be scaled differently than straight out of the USRP. Paul Garver On

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread AndroidT Tester
Hello Paul, Indeed it's working now :) I successfully converted my 16-bit IQ sample file to a Cfile :) Thanks for all your help!! On Thu, Dec 1, 2016 at 4:04 PM, Garver, Paul W wrote: > I think you found an error in gr_mkheader! In truth, it isn’t particularly > well tested

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
I think you found an error in gr_mkheader! In truth, it isn’t particularly well tested so I’m glad you are using it. I just pushed a commit to fix this to github. git pull the changes, rebuild, and try again. Let me know if it solves the issue for you. PWG On Dec 1, 2016, at 11:46 AM, AndroidT

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread AndroidT Tester
Thank you once again Paul. ls -la drwx-- 1 Username Username 4096 Dec 1 13:40 . drwx-- 1 Username Username 12288 Nov 30 16:21 .. -rwx-- 1 Username Username 7683964928 Nov 20 18:23 Sample-408MHz gr_mkheader -r 1.8e6 -t sc16 -f 408e6 -l 1920991232 Sample-408MHz Now I have

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
It probably can’t find the header. The command # gr_mkheader -r 1.8e6 -t sc16 -f 408e6 -l 1920991232 Sample-408MHz should produce the file "Sample-408MHz.hdr" Check that the file Sample-408MHz.hdr is produced. You can read it with # gr_read_file_metadata Sample-408MHz.hdr -D Then, #

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread AndroidT Tester
Thank you Paul, I got this; sample_cnt_end=50,final_index=1920991232 Empty Header, quitting. I followed all your instructions and double checked all parameters. I did filesize / 4 for sample count. I did this first: gr_mkheader -r 1.8e6 -t sc16 -f 408e6 -l 1920991232 Sample-408MHz Then

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
There are two different metadata types: 1) Inline 2) Detached Here, you are using the detached headers. With detached, the raw samples are in a file, say myfile.sc16, and the metadata in myfile.sc16.hdr. See [1] for more information on GNURadio metadata. So suppose you have myfile.sc16 as your

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread AndroidT Tester
Thank you Paul, I never heard of gr-analysis before. So I tried this: gr_mkheader -r 1.8e6 -t sc16 -f 408e6 myheader This only created myheader.hdr file. How can I link this to my actual recording sample which is 16-bit IQ pair and then convert it to CFile? Do I concatenate the files? put

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-12-01 Thread Garver, Paul W
Please copy the list next time so other folks can respond besides me. Just attach a file sink to the ishort to complex block. There’s also a command-line tool called gr_fileman in gr-analysis [1] which will do this, but the file needs headers. If you don’t have them, you can generate with

Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion

2016-11-30 Thread Garver, Paul W
Use a file source block with “short” type into an “Ishort to Complex” block. The Ishort to Complex block will de-interleave the shorts into complex samples. PWG > On Nov 30, 2016, at 8:55 AM, AndroidT Tester > wrote: > > Hey guys, > > I have a sample file with IQ