discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Gnuradio Extras


From: lannan jiang
Subject: Re: Gnuradio Extras
Date: Wed, 12 Aug 2020 18:26:20 +0000

Hi,

Thanks again for the quick reply.  I want to use the basic block for the following purpose: 

I am currently using one Python interp block and one decim block for inserting a known pattern at Tx and parsing at Rx

 The code from the interp block allows me to insert a known pattern to my data. So, I would have one byte of known pattern, one byte of data, and so on.  I set the interpolation to 2 since I am feeding N bytes and outputting 2N bytes.

Then I use the decim block to parse the input and extract my data bytes, and the decimation is 2. So I'm feeding in 2N bytes but outputting N bytes of data. 

The purpose of inserting one byte of know pattern is to make the byte boundaries align. 

However, this is inefficient. So I want to know if the use of a basic block can help me to insert my known pattern less frequently? 
 

Regards,
Lannan 



From: Derek Kozel <derek@bitstovolts.com>
Sent: Wednesday, August 12, 2020, 14:08
To: lannan jiang; discuss-gnuradio@gnu.org
Subject: Re: Gnuradio Extras

Hi,

You should be able to modify the code in the Python Block template to be a basic_block rather than the default sync_block just by changing the class inheritance. The GNU Radio Extras block is over five years old and the documentation from it is probably unhelpful.

If you need for info it would be very helpful to understand why you need a basic block and what you're trying to do with it.

Cheers,
Derek

On 12/08/2020 19:01, lannan jiang wrote:
Hi Derek,
   Thank you for your info. 
   I am aware of that the python block is included, but there are four types of blocks as far as I am concerned (interp, decim, synchronous, and basic blocks shown in https://wiki.gnuradio.org/index.php/Types_of_Blocks).  
   I want to use the basic block and so i need to import GNURadio extras module, but I ran into the error message that no such module exists. Is this module also included by default? 
 
    Regards,
    Lannan Jiang 


From: Derek Kozel <derek@bitstovolts.com>
Sent: Wednesday, August 12, 2020 1:54 PM
To: lannan jiang <jln925@live.com>; discuss-gnuradio@gnu.org <discuss-gnuradio@gnu.org>
Subject: Re: Gnuradio Extras
 
Hi Lannan Jiang,

The Python Block is included by default now in GNU Radio. Here is a
tutorial showing it's use.
https://wiki.gnuradio.org/index.php/Embedded_Python_Block

Regards,
Derek

On 12/08/2020 18:33, lannan jiang wrote:
> Hi everyone,
>   I want to use an embedded python block in my flow graph, in
> particular the basic block.
>   I found that on this page
> https://github.com/guruofquality/grextras/wiki#id1, it states that
> this branch will not be compatible for GNUradio 3.7 API. So,
> is it possible to use it in GNURadio 3.8? If so, how can I install it
> as i found the installation guide not very explicit.
>
> Thanks in advance,
> Lannan Jiang
>




reply via email to

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