discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Generating hexadecimal data and printing directly


From: CEL
Subject: Re: [Discuss-gnuradio] Generating hexadecimal data and printing directly on the terminal
Date: Thu, 9 Aug 2018 08:37:12 +0000

Hi Guilherme,

as I explained in that StackOverflow post I wanted to link to and then
forgot:

https://stackoverflow.com/questions/51743074/gnu-radio-companion-how-ca
n-i-convert-float-stream-to-be-printed-to-console/51753814#51753814

add a file sink to your flow graph which writes to /tmp/randomname (or
anything else)

mkfifo /tmp/randomname #generates a named pipe
python2 myflow.py &
my_second_app.py < /tmp/randomname | …

Best regards,
Marcus

On Wed, 2018-08-08 at 21:33 +0200, Guilherme Theis wrote:
> 
> $ python2.7 -u myflow.py -options | my_second_app.py | ...
> 
> This would allow us to use some already validated codes and give a
> more modular approach.
> 
> Regards,
> 
> Guilherme
> 
> On Wed, Aug 8, 2018 at 9:01 PM Müller, Marcus (CEL) <address@hidden>
> wrote:
> > Hi Guilherme,
> > 
> > 1) "unpacked to packed" is probably what you want!
> > 2) don't do that, unless you really want to "humanly read" that
> > output.
> > 
> > Re 2): I just happen to explain why you shouldn't do that and how
> > you
> > can circumvent the need to do that. In essence, the standard output
> > (at
> > this time, at least) is not guaranteed to not be used by other
> > blocks
> > and the GNU Radio scheduler itself. So, you  get into trouble if
> > you
> > want to parse that.
> > Instead, use a file sink and a `mkfifo`-generated named pipe.
> > 
> > Best regards,
> > Marcus
> > 
> > On Wed, 2018-08-08 at 13:55 +0200, Guilherme Theis wrote:
> > > Hello,
> > > 
> > > I have developed a FSK demodulator flow in GRC and I am able to
> > > generate a file with the received bitstream. I have used the
> > > Parameter block to be able to fully setup my flow while running
> > it
> > > from the terminal. There are two things I seem to not be able to
> > find
> > > looking up online:
> > > 
> > > 1) How to convert my bits into a hexadecimal code (after my Bit
> > > Slicer);
> > > 2) Print the output in the terminal after running my "python -u
> > > myflow.py -options"
> > > 
> > > For the first point I could develop a embedded python block, but
> > it
> > > would be great to have an already validated and used block for
> > that.
> > > For the second point I have no clue at all to how to implement
> > it.
> > > 
> > > Best Regards,
> > > 
> > > Guilherme Theis
> > > 
> > > _______________________________________________
> > > Discuss-gnuradio mailing list
> > > address@hidden
> > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]