ask help for the format of outcome IQ data

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

kainwen kainwen at gmail.com
Tue Apr 16 13:03:38 UTC 2013


Hello,
      I use rtl_sdr to collect some data into a bin file(file.bin).
      As from the wiki, I think it is parsed like this :
/fd = open("file.bin","r") ;//
//        char I[];//
//        char Q[];//
////loop ://
//             read(fd, I, 1) ;//
//             read(fd, Q,1) ;//
//        endloop//
//        char *p = Q ;//
//        loop ://
//            printf("%f\n", (float*)p);//
//            p += 4 ;//
////endloop/
      But this code can only print 0.00000

      I don't know where the error is.
      Please help me.
      Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20130416/7e778837/attachment.htm>


More information about the osmocom-sdr mailing list