charlie-foxtrot / RTLSDR-Airband

Multichannel AM/NFM demodulator
GNU General Public License v3.0
761 stars 135 forks source link

[BUG] Scanner Crashes when not outputting signal #329

Open CSutter5 opened 2 years ago

CSutter5 commented 2 years ago

Describe your environment

What happened? It runs for about 5-10 seconds, then crashes with rtlsdr_demod_write_reg failed with -9 i2c wr failed=-9 reg=17 len=1 printed

What you expected to happen? It to keep running and not crash

Steps to Reproduce Run with my config file

Additional context It works just fine if squelch_threshold = -30;

My Config File

devices:({
    type = "rtlsdr";
    index = 0;
    gain = 25;
    mode = "scan";

    channels: ({
        freqs = ( 444.5, 444.75, 444.375, 451.275 );
        modulation = "nfm";

        outputs: ({
            type = "icecast";
            server = "127.0.0.1";
            port = 8000;
            mountpoint = "stream.mp3";
            name = "stream";
            username = "source";
            send_scan_freq_tags = false;
        });
    });
});
szpajder commented 2 years ago

This indicates a problem with communication with your device. rtl_airband can't do anything about it, so it shuts down. Please fix your hardware first - try another dongle, check USB cables, make sure you don't have power problems (https://github.com/szpajder/RTLSDR-Airband/issues/94#issuecomment-403890481).