sdr-enthusiasts / docker-readsb-protobuf

Multi-architecture readsb-protobuf container with support for RTLSDR, bladeRF and plutoSDR (x86_64, arm32v7, arm64v8)
224 stars 38 forks source link

autogain script issue #177

Open dirkhh opened 1 year ago

dirkhh commented 1 year ago

When in a place where a gain of 49.6 so overloads the SDR that it gets not messages at all, the script will keep sitting at the highest value and not progress. The obvious solution would seem to be to pass in a lower value for AUTOGAIN_MAX_GAIN_VALUE, but that's insufficient when then simply restarting the readsb container as it just continues on the value that it already started on.

As a hackish workaround I documented in the GitBook that one can simply overwrite the /run/autogain/autogain_current_value with something like

docker exec -it readsb sh -c "/bin/echo 34 > /run/autogain/autogain_current_value"
docker restart readsb

but it would be nicer if this, too, could be handled via changes to the environment variable.

wandering-andy commented 1 year ago

I been noticing this too. Thanks for coming up with workaround.