shajen / rtl-sdr-scanner-cpp

GNU General Public License v3.0
603 stars 61 forks source link

Devel branch problem with recordings #87

Open GarryCZ opened 7 months ago

GarryCZ commented 7 months ago

Hey, thanks for the great work. I have a problem here, I have one SDR running with frequencies: frequency range start: 152.000 kHz, stop: 154.000 kHz, sample rate: 002.048 kHz, fft: 0 frequency range start: 446.000 kHz, stop: 448.000 kHz, sample rate: 002.048 kHz, fft: 0 Spectrograms are generated , but when there is a broadcast, they are drawn on the spectrogram, but no wav is created with the recording. And after 8 minutes it completely stops generating spectrograms and even after restart it doesn't continue writing spectrograms. it just gets stuck.

Here is my log: https://pastebin.com/mRXbraFH

thank you very much!

GarryCZ commented 7 months ago

One more thing, if I take out the VHF and leave just one : frequency range start: 446.000 kHz, stop: 448.000 kHz, sample rate: 002.048 kHz, fft: 0 That works, it creates a wav. But the wav is unintelligible, it's completely broken.

sdr-sdr-scanner-1 | [2023-11-12 14:00:10.567674] [info ] [Scanner ] average samples time: 63.99 ms sdr-sdr-scanner-1 | [2023-11-12 14:00:10.567698] [info ] [RingBuffer ] pop/push: 235929600/235929600 (1.00) sdr-sdr-scanner-1 | [2023-11-12 14:00:10.568150] [info ] [Recorder ] average samples time: 64.00 ms sdr-sdr-scanner-1 | [2023-11-12 14:00:12.232219] [info ] [Recorder ] create worker frequency: 446.120 kHz, total workers: 1 sdr-sdr-scanner-1 | [2023-11-12 14:00:12.232804] [info ] [RecorderWrk] start thread id: 162, frequency: 446.120 kHz sdr-sdr-scanner-1 | [2023-11-12 14:00:12.322000] [info ] [DataCtrl ] start transmission frequency: 446.120 kHz sdr-sdr-scanner-1 | [2023-11-12 14:00:16.712184] [info ] [TornDtr ] report transmission frequency: 446.120 kHz, duration: 3.97 seconds sdr-sdr-scanner-1 | [2023-11-12 14:00:16.712290] [info ] [DataCtrl ] finish transmission frequency: 446.120 kHz, duration: 3.97 seconds, reach minimum: true sdr-sdr-scanner-1 | [2023-11-12 14:00:16.712307] [info ] [RecorderWrk] stop thread id: 162, frequency: 446.120 kHz, queue size: 0 sdr-sdr-scanner-1 | [2023-11-12 14:00:16.712422] [info ] [Recorder ] erase worker frequency: 446.120 kHz, total workers: 0 sdr-sdr-scanner-1 | [2023-11-12 14:00:16.967255] [info ] [SdrDevice ] average samples time: 64.00 ms sdr-sdr-scanner-1 | [2023-11-12 14:00:16.967894] [info ] [Scanner ] average samples time: 64.00 ms sdr-sdr-scanner-1 | [2023-11-12 14:00:16.967930] [info ] [RingBuffer ] pop/push: 249036800/249036800 (1.00) sdr-sdr-scanner-1 | [2023-11-12 14:00:16.968207] [info ] [Recorder ] average samples time: 64.00 ms

GarryCZ commented 7 months ago

I already solved the broken sound , I had to reduce the grouping size from 10000Hz to 1000Hz, it was hitting the frequency wrong , this solved the problem with the broken wav. But still the problem persists with multiple freq range on one sdr device.