DSheirer / sdrtrunk

A cross-platform java application for decoding, monitoring, recording and streaming trunked mobile and related radio protocols using Software Defined Radios (SDR). Website:
GNU General Public License v3.0
1.58k stars 255 forks source link

Waterfall not tracking with tuner frequency #1941

Open chocymilk01 opened 3 months ago

chocymilk01 commented 3 months ago

Hello, I have an interesting issue that keeps me stuck from really using SDRtrunk well on Windows, but which doesn't seem to be a problem on MacOS.

Version: sdrtrunk Windowsx86-64 0.6.0, 0.6.1, and nightly (June 2 2024)

This bug is NOT present when I use the SDRtrunk 0.6.1 beta on MacOS.

Describe the bug: When setting the tuner frequency under the "tuners" tab, the waterfall fails to track to the new frequency center unless the tuner is disabled and then re-enabled.

Additionally, the tuner gain can not be adjusted. The "manual" tuner gain can be selected, but the manual tuner setting fields stay greyed out, not letting you change the values. The "master" tuner gain value can be changed from automatic to a value like 0 or 455, but the waterfall indicates that the SDR's tuner does not change value.

To Reproduce:

  1. Use sdr-trunk.bat to open SDRtrunk
  2. Tuner automatically opens at previous session's frequnecy, with waterfall looking correct
  3. Use the tuner tab to input a new tuner frequency
  4. No updates to the user's input are applied after changes are made

Note that the effects this issue carry over into using a playlist.

If I start to play a channel to listen, unless I've already tuned to a frequency range that has the control channel in its bandwidth, the RTL-SDR will say "No tuner available".

Expected behavior: The tuner behavior on MacOS works seemingly flawlessly. Once a frequency is input under the Tuners tab, the waterfall tracks to the new frequency range at the desired center frequency. Tuner gain can be changed, with visual feedback from the waterfall. The gain can be adjusted to "manual" and the manual gain input fields can be changed. Even if I'm out of the control channel's frequency range, the software automatically tunes to the right frequency, and I can start listening.

Screenshots image Figure 1: Tuner set to 101.500 MHz, with gain "Automatic"

image Figure 2: Tuner set to 101.500 MHz with gain set to "0" (no change to the signal levels on the waterfall)

image Figure 3: Tuner set to 101.500 MHz with gain set to "manual" (manual options still read "Automatic" and are greyed out"

image Figure 4: Tuner set to 857.500 MHz, after disabling and re-enabling the tuner to see any change

Application Log sdrtrunk_app.log

Desktop (optional - complete the following information):

Best, Ashton

DSheirer commented 2 months ago

Thanks for the detailed explanation and screenshots. I've looked at your application log and I don't see any errors. I'm not sure what could be causing this behavior.