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

Line endings, encoding, negative ifreq #2

Open
makrohard opened this issue Oct 23, 2024 · 0 comments
Open

Line endings, encoding, negative ifreq #2

makrohard opened this issue Oct 23, 2024 · 0 comments

Comments

@makrohard
Copy link

After using this great streight-forward script for years, it did not work anymore on a new system, using Gqrx 2.17.5 and Python 3.12.6.

I added a Pull request that changed the script:

  • Adding line endings \r\n to the data send to Gqrx made the script work again. \n only also worked, but \r\n seemed to me more interoperable

  • Specified utf-8 encoding explicitly to the send lines (can't hurt, can it?)

  • Finally, I have to use swap i/o in combination with a negative ifreq in order to get the frequency synced correctly. The script assumes positive ifreq, thus the calculations were wrong. I added a condition that checks is ifreq is positive or negative and does the calculations accordingly.

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

No branches or pull requests

1 participant