Tuesday, June 28, 2016

Re: [Discuss-gnuradio] Appending SYNC block to data

Hi Olivier,

is there a reason, besides you print the values afterwards, that you
copy your input data to your tab array?

Write a test which puts in your frame and checks if the output is
prepended by your sync word. [syncword, payload].
Just write your preamble to the output buffer and then continue with the
input.

Besides, I'd recommend using constants instead of a define for TAB_SIZE.

Cheers
Johannes

On 28.06.2016 18:27, Olivier Goyette wrote:
> Hi everyone,
>
> I'm actually coding a SYNC block for my application. I need to append a
> 36 bits sync word to some data coming from a Reed Solomon encoder. What
> I did is to initialize an array with my 36 bits sequence and then,
> plugging the data in the rest of the array. The total length of my SYNC
> + PAYLOAD + FEC PARITY is 420. So with basic calculation, 420 - 36 =
> 384, is the length that is left to fill the array. Actually, I can't get
> the data I'm sending into the array. I'm a bit newbie with programming
> GNU radio blocks so I'd like some help to understand. I'm giving my code
> for you to see :
>
> #ifdef HAVE_CONFIG_H
> #include "config.h"
>

No comments:

Post a Comment