Dear LTP, your top_block [1] is a msg_accepter, just like every other block in your system, and a basic_block. Hence, it has a a post()[3] method, it has a message_port_register_in()[4] etc.
You should be able to follow what's described in the Guided tutorials, Part 5, section 5. [2] If you haven't already, I strongly recommend reading Part 1-4 first -- they are a fun read (I hope), and they explain a lot of the core concepts quite well. Best regards, Marcus Müller [1] http://gnuradio.org/doc/doxygen/classgr_1_1top__block.html [2] https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials [3] http://gnuradio.org/doc/doxygen/classgr_1_1msg__accepter.html#a03b0afcc820d3454d29f0ada3b89e2fc [4] http://gnuradio.org/doc/doxygen/classgr_1_1basic__block.html#a362b6de38292cca9c1d56439a6efad04 On 04/21/2015 07:09 AM, Luong Tan Phong wrote: > Hi, > > I'm newbie with PMT and I created a block was inherited from > gr::sync_block and sent out messages. > Could you tell me how to receive messages from my block on topblock to > process them, please? > > With best regards, > > LTP > > > _______________________________________________ > 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