On 21. 12. 14 18:31, Peter Symonds wrote:
> It is a long way round of doing it. It is easier using the osmocom sink if you are going to use gnu radio anyway.
>
> It does prove that it needs samples sent to it in the 8 bit format.
I've added a format converter to ODR-DabMod's file output, that can
convert the complex floats to signed 8-bit integers. It applies a
normalisation factor of 128/50000 in order to use the full 8-bit range
[-127; 127], but you can tune this using the digital_gain. With this
reduced dynamic range you have to be more careful to avoid digital clipping.
I didn't try if this creates a valid signal because I'm in the train (as
if that was a valid excuse !), but the enclosed python script that does
the same conversion agrees with the implementation, which shows that I
agree with myself on how to do the conversion. I hope you will be able
to agree too :-)
An example is given in doc/example.ini, as usual on the "next" branch.
Cheers, and have a happy Christmas!
mpb