discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How i can implement this python block


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] How i can implement this python block
Date: Fri, 8 Sep 2017 20:18:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

;) Welcome to the wonderful world of open source, where we can ask you
to fix that header_formatter and submit your changes so that they become
available in future versions!


On 09/08/2017 08:05 PM, mohammad nejati wrote:
> Thank you Marcus ,
> I change line number 139 of file es_event.cc from this :
>
> memset(output_items[j], 0x00, noutput_items*itemsize);
>
> To this :
>
> int i;
> for (i = 0; i < noutput_items; i++) {
>       memset((char*)output_items[j]+i, rand(), 1);
> }
>
> And it's works .
>
>
> But i have one unexpected problem , i use header_formatter and
> unfortunately it work only when packet length is under 0x0FFF or 4095
> ! OOPS ...
>
> On Fri, Sep 8, 2017 at 6:49 PM, Marcus Müller <address@hidden> wrote:
>> Hi Mohammad,
>>
>>
>> On 09/08/2017 03:57 PM, mohammad nejati wrote:
>>
>> I need to insert random bit (to satisfy scrambling too) whenever there's no
>> input packet .
>>
>> so, just edit the es_source to not zero out the buffers but fill them with
>> what you want – either simply in the source code of the eventstream source,
>> or, more elegantly, by adding an optional stream input to the es_source from
>> which you copy into the output buffer instead of filling it with zeros!
>>
>> I'd, again, strongly recommend not trying to reinvent the wheel, but making
>> small changes where necessary.
>>
>> Best regards,
>> Marcus
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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