charlie-foxtrot / RTLSDR-Airband

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

Gain Error Failed to initialize gain for device #-536870912: error -1071395636 #468

Open mattfox27 opened 6 months ago

mattfox27 commented 6 months ago

When trying to run as a service I get this error

Failed to initialize gain for device #-536870912: error -1071395636

When I check the status of the service

nrussell88 commented 6 months ago

Hi @mattfox27, can you share your config file?

mattfox27 commented 6 months ago

` devices: ({ type = "rtlsdr"; index = 0; gain = 32; #Gain Setting correction = 0; #ppm mode = "scan"; channels: ( { freqs = ( 123.1, 119.0, 120.5, 132.2, 120.2, 119.3, 135.3, 124.3, 128.375, 119.> outputs: ( { type = "pulse"; server = "192.168.7.155";

sink = ... / default sink /

stream_name = "Utility channels";

continuous = false;

} ); } ); } ); `

mattfox27 commented 6 months ago

I fixed it, I had the wrong gain value in my config file

nrussell88 commented 6 months ago

I fixed it, I had the wrong gain value in my config file

Great news! Glad everything worked out well.

mattfox27 commented 6 months ago

So I was wrong, still gives that error

Mar 15 17:37:28 airband rtl_airband[13304]: pulse: 192.168.7.155: connecting... Mar 15 17:37:28 airband rtl_airband[13304]: Detached kernel driver Mar 15 17:37:28 airband rtl_airband[13304]: Found Fitipower FC0012 tuner Mar 15 17:37:28 airband rtl_airband[13304]: Failed to initialize gain for device #-536870912: error -1071395636 Mar 15 17:37:28 airband rtl_airband[13304]: Device #0: gain set to 7.10 dB Mar 15 17:37:28 airband rtl_airband[13304]: RTLSDR device 0 initialized Mar 15 17:37:28 airband rtl_airband[13304]: Allocating 10 zero-copy buffers Mar 15 17:37:37 airband rtl_airband[13304]: pulse: 192.168.7.155: connection failed: Connection refused Mar 15 17:37:38 airband rtl_airband[13304]: pulse: 192.168.7.155: connecting... Mar 15 17:37:38 airband rtl_airband[13304]: pulse: 192.168.7.155: stream "123.100 MHz" connected

mattfox27 commented 6 months ago

Mar 15 17:37:28 airband rtl_airband[13304]: Failed to initialize gain for device #-536870912: error -1071395636

so I was wrong, still get the error im using a cheap blue SDR off Aliexpress not sure if that is the issue

Mar 15 17:37:28 airband rtl_airband[13304]: Failed to initialize gain for device #-536870912: error -1071395636

R1ch1e-Lee commented 6 months ago

Have you determined the supported gain values of your sdr dongle?

If you will install rtl-sdr and run a simple test it will show you the supported gain values. Try this:

sudo apt install rtl-sdr

rtl_test -t

This should show you information about your dongle including gain values. My NESDR dongle shows these values:

Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6

Hope this helps