Hi Tom,

What you have suggested is absolutely fine but it does not solve my problem. 
Actually, my custom block sends a burst of N samples whenever a condition in 
its code is met. Since that conditon is met pretty much regularly, I can say 
that the custom block sends a burst after every ~30 mS. Now, whenever 
noutput_items=2N are assigned to work() of my custom block, I observe that 
particular (to be transmitted) burst somehow does not get sent asap, rather it 
is sent after ~200mS. I have verified this by two ways: 
i) I receive the transmitted bursts at another node and measure the delay 
between successive bursts. 
ii) On the other hand, I time each bursts by means of tx_time_tag. Then, I do 
see that whenever noutput_items=2N, I see "L" printed in the console (which 
means packet is late and is discarded by the FPGA). 

So, in summary, I would like to send my bursts asap no matter what value 
noutput_items takes. Or, I want the scheduler to assign me exactly 
noutput_items=N items everytime. What do you suggest?

Thanks,
Yu.

p.s. 

Alex,


Could you explain a bit more how to accomplish what you have said? Thanks.


________________________________
 From: Tom Rondeau <[email protected]>
To: Zing Yu <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Friday, November 30, 2012 7:24 PM
Subject: Re: [Discuss-gnuradio] control of noutput_items by the user
 


Yu,

You don't always have to consume everything that's handed to you. So if you get 
kN items, just process N of them, return N, then the scheduler will pass you 
the next N items in the buffer next time.

Tom
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to