Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread David Rowe
Hi, Just want to point out that, last time I tested them, the 4FSK waveforms (FreeDV 2400A, and 800XA) work just fine - unmodified and without a scrambler. 800XA is being used by people over the air - in fact I'm working with some UK Hams on exciting high power experiments using simple and

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread glen english
The simplist explanation for this is that if there was only one tone present (out of the four) , IE in the extreme case, the input to the modulator was stuck on one symbol value, there demodulator would not know what tone that was with respect to any of the others, not be able to derive any

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
Yes. You can't see it on the FreeDV spectrum display, as that display is filtered and averaging. But I'm sure an oscillator or two disappears. This particular scrambler resets itself every frame. It has a starting bit pattern. So every modem frame starts-off with the same value, and is only 64

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread glen english
The simplist explanation for this is that if there was only one tone present (out of the four) , IE in the extreme case, the input to the modulator was stuck on one symbol value, there demodulator would not know what tone that was with respect to any of the others, not be able to derive any

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
I never gave much thought to the raw vocoder bits, so it was an interesting development. On Wed, Jun 13, 2018 at 10:27 PM Bruce Perens wrote: > > Probably anything that avoids long streams one symbol is going to help here.

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Bruce Perens
Probably anything that avoids long streams one symbol is going to help here. On Wed, Jun 13, 2018 at 8:20 PM, Steve wrote: > I played around a bit with the bit scrambler, first to make sure it > was a two-way function, and then by running the sm1000 scrambled > result into FreeDV on my x86. > >

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
I played around a bit with the bit scrambler, first to make sure it was a two-way function, and then by running the sm1000 scrambled result into FreeDV on my x86. Without the scrambler, after I was done talking, the frequency error would waver around +/- and then slide off almost -600 Hz. The SNR

Re: [Freetel-codec2] SM1000 / STM32 CMake build system ready for testing!

2018-06-13 Thread David Rowe
I've tried Richards new stm32 cmake system and it's very nice - thank you so much Richard! I haven't had a chance to try the SM1000.bin image yet, would be great if some one here could please try that with an image built using the new stm32 cmake system. Re MSVC generator, a developer from

[Freetel-codec2] SM1000 / STM32 CMake build system ready for testing!

2018-06-13 Thread Richard Shaw
For those of you that would like to help with the SM1000 / STM32 development I have implemented a CMake build system that will replace the custom Makefile. To setup a build system read both the README.txt (just as to which packages that need to be installed) and README.cmake for CMake specific

[Freetel-codec2] freedv_tx with an external VCO

2018-06-13 Thread David Rowe
I have modified freedv_tx to output VCO frequencies for the 2400A and 800XA modes: Example 1: ./freedv_tx 2400A ../../raw/hts1a.raw - --extvco | hexdump -v -e '/2 "%04d\n"' 3600 3600 1200 3600 1200 1200 1200 4800 Example 2: ./freedv_tx 800XA ../../raw/hts1a.raw - --extvco | hexdump -v -e

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
I used a bit version of the horus byte scrambler, and got this: [image: 4fsk-scrambled.png] ​ /** * In-Place 15 bit additive scrambler with 0x4a80 Frame Sync * * Sync1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 *

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
Thanks Adrian, It wouldn't be compatible, but I am interested in that idea. I'm going to whip one up and see what it does. Thanks On Wed, Jun 13, 2018 at 4:02 PM Adrian Musceac wrote: > > Hi Steve, > You could try scrambling the output of the vocoder. I use a scrambler > block from GNU radio

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Adrian Musceac
> > By the way those views are via the freedv spectrum display. > > What I was thinking was the random numbers are of course hitting all > the tones equally, whereas the vocoder bits are not as pure, and may > in fact favor bit combinations over another. Maybe a sequence of the > same bit

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
Thanks David, I wasn't too concerned, except playing into Freedv the modem seems to lose sync, and the SNR drops away. I'm also not getting a very loud decoded voice, and if I raise the SM1000 gain pot it becomes distorted. I might need to test more on the x86 as you suggest. Thanks!

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread glen english
the spectrum looks as I would expect. are your random numbers uniformly distributed ? I dont know how the spectrum display is generated in the freeDV IE if it is just taking slabs of samples with some arbritrary FFT boundary, or it is aligned to the symbol clocks etc. or how many grabs are

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
Thanks Glen, By the way those views are via the freedv spectrum display. What I was thinking was the random numbers are of course hitting all the tones equally, whereas the vocoder bits are not as pure, and may in fact favor bit combinations over another. Maybe a sequence of the same bit

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread David Rowe
Hi Steve, I wouldn't be too concerned, spectrums move in mysterious ways. Couple of ideas: 1/ Try the same test on an x86 2/ Measure the BER of the transmitted signal with calibrated noise, that's the ultimate test of any modem. Cheers, David On 14/06/18 05:57, Steve wrote: In modulating

Re: [Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread glen english
Hi STeve With all modulation schemes the components are never single spectral lines, as of course the tones are modulated and thus the modulation will show depending how the spectrum analysis is captured. You are right it is a dirty process switching from one to another. However it is a

[Freetel-codec2] Modulation Woes on SM1000

2018-06-13 Thread Steve
In modulating the 4FSK using a random number (rand() % 4) I get this spectrum: [image: 4fsk-rand.png] ​ Looks good. Now if I modulate it with the vocoder bits instead: [image: 4fsk-voice.png] ​ Well, isn't that special. I have no idea where those harmonics comes from, but there is always a pip