Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattfox27 opened this issue Mar 11, 2024 · 7 comments

Comments

@mattfox27
Copy link

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
Copy link

Hi @mattfox27, can you share your config file?

@mattfox27
Copy link
Author

mattfox27 commented Mar 15, 2024

`
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
Copy link
Author

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

@nrussell88
Copy link

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

Great news! Glad everything worked out well.

@mattfox27
Copy link
Author

mattfox27 commented Mar 16, 2024

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
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants