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

Program stop decoding after beacon detection #7

Open
HB9DUT opened this issue Jan 27, 2020 · 1 comment
Open

Program stop decoding after beacon detection #7

HB9DUT opened this issue Jan 27, 2020 · 1 comment

Comments

@HB9DUT
Copy link

HB9DUT commented Jan 27, 2020

Works great on Ubuntu but has an Issue on RPI 3 with Raspian Buster:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

Program stops decoding immediately after beacon detection:

./qo100websdr

Webserver Path: /var/www/htmlcopy Web Site files to: /var/www/html
SDR parameters:

SDR base QRG: 433250000 Hz
SDR sample rate: 1800000 S/s
WF width: 900000 Hz
WF width: 1500 pixel
1st downsampling:1800000 S/s
1st decim. rate: 1
1st FFT resol.: 600 Hz
1st FTT smp/pass:3000
found 4 cores, running FFT in multithreading mode
OK: catproc started

Initialisation complete, system running ... stop with Ctrl-C
Waiting for incoming connections...
found 1 RTLSDR devices
Device: Generic RTL2832U OEM

Found Rafael Micro R820T tuner
accepted client 0 4
Connection opened, client: 4 | addr: 192.168.1.51
1 users logged in
[R82XX] PLL not locked!
Setting gain to: 49.60
=== [R82XX] PLL locked, OK ===
Allocating 15 zero-copy buffers
*Beacon found at pos:2726 diff:274 -> 27400 Hz
Beacon found at pos:2726 diff:274 -> 27400
rtl hz : 27400
rtl qrg : 433222600
rtl qrg corr: 2133
[R82XX] PLL not locked!
rtl rf : 2133_

@HB9DUT
Copy link
Author

HB9DUT commented Jan 29, 2020

Declare RTL_TUNER_CORRECTION as float in rtlsdr.c solves the problem:

Line 77
unsigned long tqrg = (TUNED_FREQUENCY * (1000000L + float)RTL_TUNER_CORRECTION))/1000000L;

Line 138
qrg = (qrg * ((1000000L + (float) RTL_TUNER_CORRECTION) / 1000000L));`

...
*Beacon found at pos:2991 diff:9 -> 900 Hz
Beacon found at pos:2991 diff:9 -> 900
rtl hz : 900
rtl qrg : 433249100
rtl qrg corr: 433223072
rtl rf : 433223072
*Beacon found at pos:2987 diff:13 -> 1300 Hz
Beacon found at pos:2987 diff:13 -> 1300
rtl hz : 2200
rtl qrg : 433247800
rtl qrg corr: 433221792
rtl rf : 433221792
...

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