[Discuss-gnuradio] Reading ZMQ messages in Python

2015-09-08 Thread Daniel Mazzer
Hello, I have a flowgraph that send ZMQ PUB messages generated by a custom OOT block. The messages transmitted by GNURadio ZMQ PUB block are received by a Python application, using a standard ZMQ Library. [custom_oot_block] ---(GNURadio message)---> [ZMQ Publisher] .(ethernet).> [Python Z

Re: [Discuss-gnuradio] Reading ZMQ messages in Python

2015-09-08 Thread Daniel Mazzer
\x08\x00\x00\x00\x01\x01\x00?\xe4\xbe\x83\x00\x00\x00\x00' > p = pmt.deserialize_str(s) > python_numpy_array = pmt.pmt_to_python.pmt_to_python(p) > > Best regards, > Marcus > > > On 08.09.2015 20:17, Daniel Mazzer wrote: >> Hello, >> >> I have a

[Discuss-gnuradio] How to define a minimum number of input samples for a block.

2015-04-01 Thread Daniel Mazzer
Hi, I'm developing a block that need a minimum number of input samples to process, for example, the block must have at least 1000 samples. In the work() function may I compare if the ninput_items[] is greater than 1000 and if not I return zero? Should I need to create an internal buffer (history)

Re: [Discuss-gnuradio] How to define a minimum number of input samples for a block.

2015-04-01 Thread Daniel Mazzer
ttp://gnuradio.org/doc/doxygen/classgr_1_1block.html# > a65cfc579150dc4d10c6180d3365aa9a8 > > M > > > On 01.04.2015 10:04, Daniel Mazzer wrote: > >> Hi, >> >> I'm developing a block that need a minimum number of input samples to >> process, for example, th

Re: [Discuss-gnuradio] How to define a minimum number of input samples for a block.

2015-04-06 Thread Daniel Mazzer
Hi Martin, Ok, it really makes sense. I will modify my block and try that way. Thank you. Regards, Daniel. On Wed, Apr 1, 2015 at 6:41 PM, Martin Braun wrote: > On 01.04.2015 11:19, Daniel Mazzer wrote: > >> Hi Martin, >> >> Thank you, I will try. >> My bl