I find that the file generated by file sink block is binary format,which can not edit by gedit under linux or something else,So how can i edit the file?
I send a dat file contains 'hello world' and I want to recieve a file contains 'hello world'
This is asked very often. So here's a link to the FAQ and the excerpt:
Mar 12, 2014 Installing GNURadio (Windows) Jump to bottom. NOTE: These instructions don't include installation of drivers for the RTL dongles, and therefore are not very useful. I recommend the Anaconda Python distribution as it has a nice easy installer and comes with almost everything you need. It is very useful for experimenting with more advanced SDR concepts, and there are also many RTL-SDR compatible applications built with GNU Radio as well. GNU Radio is typically run on Linux, but can also run on Windows now too, although perhaps not every program will be compatible. Jul 16, 2016 Re: Discuss-gnuradio Installation of GNU Radio/UHD on Windows. The UHD build should be 64-bit, so it is mostly likely a labelling issue. But I will check to be sure. If you want to run -any- GNURadio utilities, I recommend doing so from the GNURadio Command Prompt (shortcut in start menu or rungr.bat in the /bin subdir). Free pepakura model files online. Windows binary install. Install the latest uhd installer from here. In the installer wizard, choose to add uhd to the system path. Install the latest gnuradio installer from here. In the installer wizard, choose to add gnuradio to the system path.
All files are in pure binary format. Just bits. That’s it. A floating point data stream is saved as 32 bits in the file, one after the other. A complex signal has 32 bits for the real part and 32 bits for the imaginary part. Reading back a complex number means reading in 32 bits, saving that to the real part of a complex data structure, and then reading in the next 32 bits as the imaginary part of the data structure. And just keep reading the data.
Take a look at the Octave and Python files in gr-utils for reading in data using Octave and Python’s Scipy module.
The exception to the format is when using the metadata file format. These files are produced by the File Meta Sink: http://gnuradio.org/doc/doxygen/classgr_1_1blocks_1_1file__meta__sink.html block and read by the File Meta Source block. See the manual page on the metadata file format for more information about how to deal with these files.
A one-line Python command to read the entire file into a numpy array is:
Replace the dtype with scipy.int16, scipy.int32, scipy.float32, scipy.complex64 or whatever type you were using.
Why cannot the recovered files be opened?A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. External hard drive error not accessible.
So your question 'How do I edit this?' boils down to understanding that this is raw data. You can of course just modify this on a byte level (e.g. using a hexeditor), but usually, you'd have (or write) some program that loads the data into an in-program represenation (e.g. an array of complex numbers) and look at that.
The way you're asking this suggests you're not really aware of what you're looking at (because you don't even mention how you transmit that string). Maybe your data has bit errors due to symbol errors due to noise? Quite possibly, there's no synchronization done, so your received bits did not end up on the same byte order as you meant them to be sent etc.
Gnuradio Windows Binary Software
I think this might be a very good place to point you to the GNU Radio Guided Tutorials.