Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At RPi 3 rpitx randomly shifting frequency during TX #21

Closed
ha7dcd opened this issue Apr 22, 2016 · 11 comments
Closed

At RPi 3 rpitx randomly shifting frequency during TX #21

ha7dcd opened this issue Apr 22, 2016 · 11 comments

Comments

@ha7dcd
Copy link

ha7dcd commented Apr 22, 2016

I've experienced a strange shifting of 2.8 MHz upwards from the carrier. Randomly the nominal 14MHz transmission is just shifted up to 16.8 MHz... then back.

Using latest Raspbian Jessie (as of today 22/04/2016), all the update, upgrade, disti upgrade done before. Cloned and installed riptx just right now from github.

strong_spurious_14mhz_rpi3_gpio18
strong_spurious_14mhz_rpi3_-c 1_switch

@tgeorgiop
Copy link

Hello! How did you see these diagrams? Thanks.

@ha7dcd
Copy link
Author

ha7dcd commented Apr 22, 2016

Using this: https://signalhound.com/products/usb-sa44b/
However you can catch the signals also with RTL-SDR or SDRPlay(better) too..

@tgeorgiop
Copy link

Ok, thank you!

@tomswartz07
Copy link
Contributor

Perhaps I'm reading the graphic incorrectly, but both images show Mkr1 and Mkr2 having the same frequency.

It appears that the only difference between the two images is the center frequency.
Image 1 has a center freq of 25MHz and Image 2 has a center freq of 14MHz.

Am I correct in reading this?

@ha7dcd
Copy link
Author

ha7dcd commented Apr 22, 2016

No, you are mistaken the fact that the Mkr1 is the intended transmission (14 MHz) Mkr2 showing the randomly shifter carrier (16.8 MHz)

The reason for two screenshot is the different span

@ha7dcd
Copy link
Author

ha7dcd commented Apr 22, 2016

Maybe this video gives a better understanding of this phenomena:
https://www.dropbox.com/s/xxihgxrakkejlji/14MHz_and_random_16M8_shifting_RPi3_gpio18.png.MP4?dl=0

@ha7dcd
Copy link
Author

ha7dcd commented Apr 24, 2016

My friend András, @ha7ilm noticed that this shift issue possibly caused by the dynamic CPU frequency change algorithm in RPi 3. I've tested it and looks like a workaround for the problem:
" sudo -s
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "

rpitx_rpi3_freq_shifting_issue_solved

@ha7ilm
Copy link
Contributor

ha7ilm commented Apr 24, 2016

It seems like this is caused by the cpufreq kernel module, which changes the frequency in order to save power. The ondemandgovernor is enabled by default.

@F5OEO
Copy link
Owner

F5OEO commented Jul 1, 2016

force_turbo=1 in /boot/config.txt shoud solve the issue

@jnk0le
Copy link
Contributor

jnk0le commented Jul 1, 2016

The problem is frequency of PLLC (used by rpitx), which drifts with overclock.

@F5OEO
Copy link
Owner

F5OEO commented Aug 27, 2016

Should be fixed with feb6f4c : PLL_D is used which is very stable compare to PLL_C (variable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants