shajen / rtl-sdr-scanner-cpp

GNU General Public License v3.0
629 stars 64 forks source link

Using step of 2500 not working #16

Closed smokedsalmonbagel closed 1 year ago

smokedsalmonbagel commented 1 year ago

Firstly, this a really great application - thanks!

I had tried to use a step size of 2500. Took me a while to figure out what was causing no rtl-scanner-sdr-monitor-reader output. Seemed like no scanning was happening. When I changed it back to 1000 it works fine. Am I misunderstanding what step means here? Did not work:

{
      "device_serial": "02",
      "ranges": [
        {
          "start": 115000000,
          "stop": 136000000,
          "step": 2500,
          "sample_rate": 2048000
        }
      ]
    },

Worked:

{
      "device_serial": "02",
      "ranges": [
        {
          "start": 115000000,
          "stop": 136000000,
          "step": 1000,
          "sample_rate": 2048000
        }
      ]
    },

Can post my full config and console output but nothing seemed to stand out. Just no output from the rtl-scanner-sdr-monitor-reader container.

shajen commented 1 year ago

See the manual here, it explains corelaction between step and sample_rate: https://github.com/shajen/rtl-sdr-scanner-cpp#custom-sample-rate-step-and-frequency-range

smokedsalmonbagel commented 1 year ago

Ok , yes I saw that but was not sure what n is here:

Please note that sample_rate must fit to step. You should meet the following equation sample_rate / step = 2 ^ n.

shajen commented 1 year ago

n is any value that satisfies the equation.

smokedsalmonbagel commented 1 year ago

I see the issue, I miscounted the number of zeros. Thanks for the quick reply!