Re: [Discuss-gnuradio] custom work function gets into an endless loop

2015-09-29 Thread Ron Economos
The dvb_bbheader_bb_impl.cc module in gr-dtv also uses set_output_multiple(). Ron On 09/28/2015 08:36 PM, Kolya wrote: Hi Martin and Sylvain, I obviously didn't understand the forecast function properly but with your help it works now. I tried both: set_output_multiple & a correct

Re: [Discuss-gnuradio] custom work function gets into an endless loop

2015-09-28 Thread Kolya
Hi Martin and Sylvain, I obviously didn't understand the forecast function properly but with your help it works now. I tried both: set_output_multiple & a correct forecast() and set_output_multiple & set_relative_rate both approaches worked as expected :) What threw me off was that I had

Re: [Discuss-gnuradio] custom work function gets into an endless loop

2015-09-28 Thread Sylvain Munaut
> /void > bbframer_bb_impl::forecast (int noutput_items, gr_vector_int > _items_required) > { > ninput_items_required[0] = ((noutput_items - 32) / 8); // 32 bit > postamble > }/ You should make sure forecast can never return <0 or even ==0 numbers. Returning 0 means you

Re: [Discuss-gnuradio] custom work function gets into an endless loop

2015-09-28 Thread Martin Braun
On 27.09.2015 15:25, Kolya wrote: > Hi, > > I'm trying to build a custom block that takes in a stream of input samples > and simply adds a postamble of 32bits every 352 bits. The package structure > is illustrated below (payload_bits = msg_bits+postamble_bits): >

[Discuss-gnuradio] custom work function gets into an endless loop

2015-09-27 Thread Kolya
Hi, I'm trying to build a custom block that takes in a stream of input samples and simply adds a postamble of 32bits every 352 bits. The package structure is illustrated below (payload_bits = msg_bits+postamble_bits): --- | msg_bits =