|
From: | Nemanja Savic |
Subject: | Re: [Discuss-gnuradio] Hier signal processing block in Python |
Date: | Thu, 24 Jan 2013 23:10:11 +0100 |
Those old blocks are just hier blocks with some processing blocks from
On 01/24/2013 10:20 AM, Nemanja Savic wrote:
> Hi all,
>
> Can somebody explain me a bit the difference between blocks written in
> python in the way presented on the website and blocks like packet decoder,
> packet encoder, gfsk modulator, etc. The latter blocks are written also in
> Python, but they are different than the previous. Particularly I don't
> understand why there are also thread classes stick to the blocks from the
> second group.
gnuradio, where the python interface part is outside of the scheduler,
really just a python thread polling a message queue. The interface is a
python function call or something.
So, there are APIs to create blocks in python that actually use the
scheduler. For example, here is one that does the pkt framer/correlate
but presents a message interface. This block has inputs and outputs that
can be connected in a gnuradio flow graph.
https://github.com/guruofquality/grextras/blob/master/python/packet_framer.py
Then you can do cool things like this:
https://github.com/jmalsbury/pre-cog/wiki
Most of the feature above is in gnuradio master branch, but I dont think
> And the most important thing is I would like to know how to make such block
> out of tree.
there is a doc, so you will have to interpolate from this:
https://github.com/guruofquality/grextras/wiki/Blocks-Coding-Guide
-josh
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |