shajen / rtl-sdr-scanner

Automatically scan and record selected frequencies ranges using rtl-sdr.
GNU General Public License v3.0
58 stars 14 forks source link

Scanning through frequencies in config do not work for me #13

Closed dandud100 closed 2 years ago

dandud100 commented 2 years ago

Hello,

when i try to use your scanning tool it just does not work for me as it should do.

I have two bands in my config but the second one is getting ignored, but why?

config: { "frequencies_ranges": [ { "start": 144000000, "stop": 146000000, "modulation": "fm" }, { "start": 430000000, "stop": 440000000, "modulation": "fm" } ], "ignored_frequencies_ranges": [ { "start": 28799000, "stop": 28801000 }, { "start": 115199000, "stop": 115201000 }, { "start": 438470000, "stop": 438490000 }, { "start": 439000000, "stop": 439010000 } ], "device": { "ppm_error": 0, "tuner_gain": 0 }, "scanning": { "noise_level": -7.9, "bandwidth": 2000000, "samples": 1024000, "fft": 16384, "peak_width": 10 }, "recording": { "min_recording_time": 4, "max_recording_time": 600, "max_silence_time": 2, "samples_rate": 48000, "samples_count_to_adjust_frequency": 100, "channel_width": 12500 } }

command: ./sources/main.py config.json -pbf 1 -vvv

output:

pi@raspberrypi:~/rtl-sdr-scanner $ ./sources/main.py config.json -pbf 1 -vvv [2022-01-21 15:01:35.743][ INFO][ sdr] [2022-01-21 15:01:35.744][ INFO][ sdr] ################################################## ############################## [2022-01-21 15:01:35.744][ INFO][ sdr] ############################# IGNORED FREQUENCIES ############################## [2022-01-21 15:01:35.745][ INFO][ sdr] ################################################## ############################## [2022-01-21 15:01:35.745][ INFO][ sdr] ignored frequency range user defined: 28,799,000 H z - 28,801,000 Hz [2022-01-21 15:01:35.746][ INFO][ sdr] ignored frequency range user defined: 115,199,000 Hz - 115,201,000 Hz [2022-01-21 15:01:35.746][ INFO][ sdr] ignored frequency range user defined: 438,470,000 Hz - 438,490,000 Hz [2022-01-21 15:01:35.746][ INFO][ sdr] ignored frequency range user defined: 439,000,000 Hz - 439,010,000 Hz [2022-01-21 15:01:35.747][ INFO][ sdr] [2022-01-21 15:01:35.747][ INFO][ sdr] ################################################## ############################## [2022-01-21 15:01:35.747][ INFO][ sdr] ############################### SCANNING RANGES ## ############################## [2022-01-21 15:01:35.748][ INFO][ sdr] ################################################## ############################## [2022-01-21 15:01:35.748][ INFO][ sdr] scanned frequency range: 144,000,000 Hz - 146,000, 000 Hz [2022-01-21 15:01:35.749][ INFO][ sdr] scanned frequency range: 430,000,000 Hz - 440,000, 000 Hz [2022-01-21 15:01:35.749][ INFO][ sdr] [2022-01-21 15:01:35.750][ INFO][ sdr] ################################################## ############################## [2022-01-21 15:01:35.750][ INFO][ sdr] ############################### SCANNING STARTED # ############################## [2022-01-21 15:01:35.751][ INFO][ sdr] ################################################## ############################## Found Rafael Micro R820T tuner [R82XX] PLL not locked! Exact sample rate is: 2000000.052982 Hz [2022-01-21 15:01:37.984][ DEBUG][ sdr] frequency: 144,366,088 Hz, power: -10.51 dB ______ __________________________________ [2022-01-21 15:01:38.656][ DEBUG][ sdr] frequency: 144,464,355 Hz, power: -10.54 dB ______ __________________________________ [2022-01-21 15:01:39.329][ DEBUG][ sdr] frequency: 144,514,404 Hz, power: -10.58 dB ______ __________________________________ [2022-01-21 15:01:39.998][ DEBUG][ sdr] frequency: 144,387,451 Hz, power: -10.52 dB ______ __________________________________ [2022-01-21 15:01:40.676][ DEBUG][ sdr] frequency: 144,335,327 Hz, power: -10.56 dB ______ __________________________________ [2022-01-21 15:01:41.361][ DEBUG][ sdr] frequency: 144,370,483 Hz, power: -10.55 dB ______ __________________________________ [2022-01-21 15:01:42.052][ DEBUG][ sdr] frequency: 144,279,296 Hz, power: -10.57 dB ______ __________________________________ [2022-01-21 15:01:42.747][ DEBUG][ sdr] frequency: 144,271,972 Hz, power: -10.58 dB ______ __________________________________ [2022-01-21 15:01:43.450][ DEBUG][ sdr] frequency: 144,388,671 Hz, power: -10.54 dB ______ __________________________________ [2022-01-21 15:01:44.159][ DEBUG][ sdr] frequency: 144,337,158 Hz, power: -10.53 dB ______ __________________________________ [2022-01-21 15:01:44.860][ DEBUG][ sdr] frequency: 144,303,955 Hz, power: -10.60 dB ______ __________________________________ ^C[2022-01-21 15:01:45.225][WARNING][killer] stopping application [2022-01-21 15:01:45.543][ DEBUG][ sdr] frequency: 144,498,535 Hz, power: -10.54 dB ______ __________________________________ [2022-01-21 15:01:46.245][ DEBUG][ sdr] frequency: 144,374,145 Hz, power: -10.53 dB ______ __________________________________ pi@raspberrypi:~/rtl-sdr-scanner $ As you can see there is no scanning on 430-440mhz

shajen commented 2 years ago

It scans frequencies 430-440 too in background, but it prints only the strongest frequency per single loop tick (144-146 in your case). Please try to send some transmission on 430-440 and check.