RE: Re: Developing KrakenSDR Source

2022-08-17 Thread Jim Melton
Subject: [EXTERNAL] Re: Developing KrakenSDR Source Oh, maybe the confusion is over how many items you need to output at one time. You can hold on to your buffer - one get_iq_online() worth - until it is empty, through multiple work() calls. Copy out min(amount_left_from_fetch, output_items) and

Re: Developing KrakenSDR Source

2022-08-17 Thread Carl Laufer
> > Oh, maybe the confusion is over how many items you need to output at one > time. You can hold on to your buffer - one get_iq_online() worth - until it > is empty, through multiple work() calls. Copy out > min(amount_left_from_fetch, output_items) and return the number of items > you copied (not

Re: Developing KrakenSDR Source

2022-08-16 Thread Jeff Long
Oh, maybe the confusion is over how many items you need to output at one time. You can hold on to your buffer - one get_iq_online() worth - until it is empty, through multiple work() calls. Copy out min(amount_left_from_fetch, output_items) and return the number of items you copied (not the max siz

Re: Developing KrakenSDR Source

2022-08-16 Thread Jeff Long
Output buffer size is adjustable - set_min_output_buffer(min_items) will give a buffer that is at least num_items in size, but is often larger due to alignment requirements. I wouldn't use vectors just to get around buffer sizes. Very large buffers may not work due to the way they are allocated. Gi

Re: Developing KrakenSDR Source

2022-08-16 Thread Carl Laufer
Thanks. I think it has to be a vector output. It seems that if I'm using a stream output, and have decimation blocks downstream, output_items in the source is always smaller than cpi_size, and I can't fit the 2^20 array into output_items. I think it expects the source to adjust its output buffer s

Re: Developing KrakenSDR Source

2022-08-16 Thread Jeff Long
Once this is all working, you could have get_iq_online() work in a separate thread so that you don't have to hit the network every time work() is called. Maybe buffer a small number of frames in a queue. On Tue, Aug 16, 2022 at 10:13 AM Jeff Long wrote: > Hi Carl, > > Use vectors only if data al

Re: Developing KrakenSDR Source

2022-08-16 Thread Jeff Long
Hi Carl, Use vectors only if data always needs to be grouped in exact quantities, e.g., if the GR flowgraph needs to always handle blocks of 2^20 items. In general, a 5-channel stream would be more flexible. The variation in the number of items would be due to the output buffer sometimes being emp