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

Unstable frequency #146

Open
launchd opened this issue Aug 20, 2022 · 1 comment
Open

Unstable frequency #146

launchd opened this issue Aug 20, 2022 · 1 comment

Comments

@launchd
Copy link

launchd commented Aug 20, 2022

I'm having difficulty getting the frequency stay stable. Here's what it looks like

Found Rafael Micro R828D tuner Disabled direct sampling mode [R82XX] PLL not locked! 2022-08-20T14:03:00Z [monitor] gain: 14.01, freq: -14.0, omega: 2.589, vit(avg): 2119, rs(sum): 0, packets: 1, drops: 30 2022-08-20T14:03:01Z [monitor] gain: 34.07, freq: -201.9, omega: 2.589, vit(avg): 2192, rs(sum): 0, packets: 0, drops: 32 2022-08-20T14:03:02Z [monitor] gain: 48.96, freq: -341.8, omega: 2.589, vit(avg): 2183, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:03Z [monitor] gain: 59.34, freq: -1165.2, omega: 2.589, vit(avg): 2186, rs(sum): 0, packets: 0, drops: 38 2022-08-20T14:03:04Z [monitor] gain: 66.75, freq: -1954.4, omega: 2.590, vit(avg): 2196, rs(sum): 0, packets: 0, drops: 33 2022-08-20T14:03:05Z [monitor] gain: 71.27, freq: 85.5, omega: 2.589, vit(avg): 2202, rs(sum): 0, packets: 0, drops: 36 2022-08-20T14:03:06Z [monitor] gain: 73.94, freq: 554.9, omega: 2.588, vit(avg): 2202, rs(sum): 0, packets: 0, drops: 32 2022-08-20T14:03:07Z [monitor] gain: 76.37, freq: -1836.2, omega: 2.588, vit(avg): 2215, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:08Z [monitor] gain: 78.70, freq: -3464.7, omega: 2.588, vit(avg): 2211, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:09Z [monitor] gain: 80.86, freq: -3399.1, omega: 2.588, vit(avg): 2227, rs(sum): 0, packets: 0, drops: 33 2022-08-20T14:03:10Z [monitor] gain: 81.93, freq: -4202.1, omega: 2.590, vit(avg): 2216, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:11Z [monitor] gain: 81.98, freq: -4357.3, omega: 2.590, vit(avg): 2219, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:12Z [monitor] gain: 81.98, freq: -4442.8, omega: 2.590, vit(avg): 2226, rs(sum): 0, packets: 0, drops: 34 2022-08-20T14:03:13Z [monitor] gain: 81.98, freq: -4928.9, omega: 2.590, vit(avg): 2223, rs(sum): 0, packets: 0, drops: 33 2022-08-20T14:03:14Z [monitor] gain: 81.98, freq: -6293.6, omega: 2.590, vit(avg): 2213, rs(sum): 0, packe

I'm basically using the default config as well:

[demodulator]
mode = "hrit"
source = "rtlsdr"



[rtlsdr]
frequency = 1694100000
sample_rate = 2400000
gain = 30
bias_tee = false
device_index = 0

# [nanomsg]
# sample_rate = 2400000
# connect = "tcp://1.2.3.4:5005"
# receive_buffer = 2097152

[costas]
max_deviation = 200e3

[clock_recovery.sample_publisher]
bind = "tcp://0.0.0.0:5002"
send_buffer = 2097152

[quantization.soft_bit_publisher]
bind = "tcp://0.0.0.0:5001"
send_buffer = 1048576

[decoder.packet_publisher]
bind = "tcp://0.0.0.0:5004"
send_buffer = 1048576

# The demodulator stats publisher sends a JSON object that describes
# the state of the demodulator (gain, frequency correction, samples
# per symbol), for every block of samples.
[demodulator.stats_publisher]
bind = "tcp://0.0.0.0:6001"

# The decoder stats publisher sends a JSON object for every packet it
# decodes (Viterbi corrections, Reed-Solomon corrections, etc.).
[decoder.stats_publisher]
bind = "tcp://0.0.0.0:6002"

# The monitor can log aggregated stats (counters, gauges, and
# histograms) to a statsd daemon. Because this uses UDP, you can keep
# this enabled even if you haven't setup a statsd daemon yet.
[monitor]
statsd_address = "udp4://localhost:8125"
@N9ZL
Copy link

N9ZL commented May 6, 2023

I found changing the [rtlsdr] gain= line from 30 to 3 solved the freq instability for my Nooelec NESDR SmarteeXTR.

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

2 participants