[Discuss-gnuradio] How to save bit stream?

2014-10-22 Thread Su Li
Hi,

After demodulation, I get a stream of 0 and 1 in UChar format, I want
to save this stream to a file and have a look at these raw bits before
decoding them. I tried to use File Sink block to save them, but I cannot
open the saved file with gedit. It can be opened with  GVim, but the
content are not 0 and 1. They are ^@ and ^A.

Is there anyway to save the bit stream so that when I can open the saved
file I can get the stream shown as 0 and 1?

The flow graph is shown as following


​Thanks in advance.

Best regards,
Su
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to save bit stream?

2014-10-22 Thread Tom Rondeau
On Wed, Oct 22, 2014 at 8:51 AM, Su Li liis...@gmail.com wrote:

 Hi,

 After demodulation, I get a stream of 0 and 1 in UChar format, I want
 to save this stream to a file and have a look at these raw bits before
 decoding them. I tried to use File Sink block to save them, but I cannot
 open the saved file with gedit. It can be opened with  GVim, but the
 content are not 0 and 1. They are ^@ and ^A.

 Is there anyway to save the bit stream so that when I can open the saved
 file I can get the stream shown as 0 and 1?

 The flow graph is shown as following


 ​Thanks in advance.

 Best regards,
 Su


Files are saved as binary bit streams. What you're seeing is the ASCII
representation of random 1's and 0's for each bit in the data stream. Have
a look here:

http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#What-is-the-file-format-of-a-gr_file_sink-How-can-I-read-files-produced-by-a-file-sink

Tom
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to save bit stream?

2014-10-22 Thread Dan CaJacob
I often use the unpacked_to_packed block inline as well to save space and
transfer time if I am saving a bunch of decoded data.  This may not be an
issue if you aren't doing things remotely.

Very Respectfully,

Dan CaJacob

On Wed, Oct 22, 2014 at 9:07 AM, Tom Rondeau t...@trondeau.com wrote:

 On Wed, Oct 22, 2014 at 8:51 AM, Su Li liis...@gmail.com wrote:

 Hi,

 After demodulation, I get a stream of 0 and 1 in UChar format, I want
 to save this stream to a file and have a look at these raw bits before
 decoding them. I tried to use File Sink block to save them, but I cannot
 open the saved file with gedit. It can be opened with  GVim, but the
 content are not 0 and 1. They are ^@ and ^A.

 Is there anyway to save the bit stream so that when I can open the saved
 file I can get the stream shown as 0 and 1?

 The flow graph is shown as following


 ​Thanks in advance.

 Best regards,
 Su


 Files are saved as binary bit streams. What you're seeing is the ASCII
 representation of random 1's and 0's for each bit in the data stream. Have
 a look here:


 http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#What-is-the-file-format-of-a-gr_file_sink-How-can-I-read-files-produced-by-a-file-sink

 Tom


 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio