Hi Marcus,

This solved my problem, thank you! I also got another solution by using a
TCP sink (server mode) and then using netcat to connect to it.

After I run my `python -u myflow.py -options` I can see my output by doing
a simple `nc my_ip my_port | hexdump`.

I thank you again.

Best regards,

Guilherme

On Thu, Aug 9, 2018 at 10:37 AM Müller, Marcus (CEL) <muel...@kit.edu>
wrote:

> 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
> <https://stackoverflow.com/questions/51743074/gnu-radio-companion-how-can-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) <muel...@kit.edu>
> > 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
> > > > Discuss-gnuradio@gnu.org
> > > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> >



-- 
Guilherme THEIS

Élève ingénieur électronicien à ENSEIRB-MATMECA/UFPR (DOUBLE - DIPLOME)
Portable : +33 07 67 05 00 13

Graduando em Engenharia Elétrica - UFPR/ENSEIRB-MATMECA
Contato: +33 07 67 05 00 13
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to